diff --git a/extended/src/main/java/io/kubernetes/client/extended/event/v1beta1/EventSink.java b/extended/src/main/java/io/kubernetes/client/extended/event/v1/EventSink.java similarity index 67% rename from extended/src/main/java/io/kubernetes/client/extended/event/v1beta1/EventSink.java rename to extended/src/main/java/io/kubernetes/client/extended/event/v1/EventSink.java index 045c9321c5..88a65c5fc1 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/event/v1beta1/EventSink.java +++ b/extended/src/main/java/io/kubernetes/client/extended/event/v1/EventSink.java @@ -10,19 +10,19 @@ See the License for the specific language governing permissions and limitations under the License. */ -package io.kubernetes.client.extended.event.v1beta1; +package io.kubernetes.client.extended.event.v1; import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.models.CoreV1Event; -import io.kubernetes.client.openapi.models.V1beta1Event; +import io.kubernetes.client.openapi.models.EventsV1Event; -// placeholder interface for event v1beta1 api +// placeholder interface for event v1 api public interface EventSink { - CoreV1Event create(V1beta1Event event) throws ApiException; + CoreV1Event create(EventsV1Event event) throws ApiException; - CoreV1Event update(V1beta1Event event) throws ApiException; + CoreV1Event update(EventsV1Event event) throws ApiException; - CoreV1Event patch(V1beta1Event event, V1Patch patch) throws ApiException; + CoreV1Event patch(EventsV1Event event, V1Patch patch) throws ApiException; } diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java index 7e215be205..f39907563d 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java @@ -12,17 +12,18 @@ */ package io.kubernetes.client.fluent; +import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map.Entry; import java.util.Objects; import java.util.Set; import java.util.stream.Collectors; -public class BaseFluent> - implements io.kubernetes.client.fluent.Fluent, Visitable { +public class BaseFluent> implements Fluent, Visitable { public static final String VISIT = "visit"; public final VisitableMap _visitables = new VisitableMap(); @@ -45,34 +46,34 @@ public class BaseFluent> } public static List build( - java.util.List> list) { + List> list) { return list == null ? null : new ArrayList(list.stream().map(Builder::build).collect(Collectors.toList())); } public static Set build( - java.util.Set> set) { + Set> set) { return set == null ? null : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); } - public static java.util.List aggregate(java.util.List... lists) { + public static List aggregate(List... lists) { return new ArrayList( Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); } - public static java.util.Set aggregate(java.util.Set... sets) { + public static Set aggregate(Set... sets) { return new LinkedHashSet( Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); } - public F accept(Visitor... visitors) { + public F accept(io.kubernetes.client.fluent.Visitor... visitors) { return accept(Collections.emptyList(), visitors); } - public F accept(Class type, io.kubernetes.client.fluent.Visitor visitor) { + public F accept(Class type, Visitor visitor) { return accept( Collections.emptyList(), new Visitor() { @@ -82,7 +83,7 @@ public Class getType() { } @Override - public void visit(List path, V element) { + public void visit(List> path, V element) { visitor.visit(path, element); } @@ -93,7 +94,15 @@ public void visit(V element) { }); } - public F accept(java.util.List path, io.kubernetes.client.fluent.Visitor... visitors) { + public F accept( + List> path, io.kubernetes.client.fluent.Visitor... visitors) { + return accept(path, "", visitors); + } + + public F accept( + List> path, + String currentKey, + io.kubernetes.client.fluent.Visitor... visitors) { Arrays.stream(visitors) .map(v -> VisitorListener.wrap(v)) .filter(v -> ((Visitor) v).canVisit(path, this)) @@ -103,18 +112,32 @@ public F accept(java.util.List path, io.kubernetes.client.fluent.Visitor ((Visitor) v).visit(path, this); }); - List copyOfPath = path != null ? new ArrayList(path) : new ArrayList<>(); - copyOfPath.add(this); - List newPath = Collections.unmodifiableList(copyOfPath); - - for (Visitable visitable : _visitables) { - Arrays.stream(visitors) - .filter(v -> v.getType() != null && v.getType().isAssignableFrom(visitable.getClass())) - .forEach(v -> visitable.accept(newPath, v)); - Arrays.stream(visitors) - .filter(v -> v.getType() == null || !v.getType().isAssignableFrom(visitable.getClass())) - .forEach(v -> visitable.accept(newPath, v)); - } + List> copyOfPath = path != null ? new ArrayList(path) : new ArrayList<>(); + copyOfPath.add(new AbstractMap.SimpleEntry(currentKey, this)); + + _visitables.forEach( + (key, visitables) -> { + List> newPath = Collections.unmodifiableList(copyOfPath); + // Copy visitables to avoid ConcurrrentModificationException when Visitors add/remove + // Visitables + new ArrayList<>(visitables) + .forEach( + visitable -> { + Arrays.stream(visitors) + .filter( + v -> + v.getType() != null + && v.getType().isAssignableFrom(visitable.getClass())) + .forEach(v -> visitable.accept(newPath, key, v)); + + Arrays.stream(visitors) + .filter( + v -> + v.getType() == null + || !v.getType().isAssignableFrom(visitable.getClass())) + .forEach(v -> visitable.accept(newPath, key, v)); + }); + }); return (F) this; } @@ -125,7 +148,7 @@ public int hashCode() { return result; } - public boolean equals(java.lang.Object obj) { + public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java index 9d9a5a23a9..9ef24e6866 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java @@ -13,18 +13,19 @@ package io.kubernetes.client.fluent; import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; public class DelegatingVisitor implements Visitor { - DelegatingVisitor(Class type, io.kubernetes.client.fluent.Visitor delegate) { + DelegatingVisitor(Class type, Visitor delegate) { this.type = type; this.delegate = delegate; } - private final java.lang.Class type; - private final io.kubernetes.client.fluent.Visitor delegate; + private final Class type; + private final Visitor delegate; - public java.lang.Class getType() { + public Class getType() { return type; } @@ -36,11 +37,11 @@ public int order() { return delegate.order(); } - public void visit(List path, T target) { + public void visit(List> path, T target) { delegate.visit(path, target); } - public Predicate> getRequirement() { + public Predicate>> getRequirement() { return delegate.getRequirement(); } } diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java index 30e4232d9e..9cbf594b4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java @@ -13,6 +13,7 @@ package io.kubernetes.client.fluent; import java.util.List; +import java.util.Map.Entry; public class PathAwareTypedVisitor extends TypedVisitor { PathAwareTypedVisitor() { @@ -26,19 +27,19 @@ public class PathAwareTypedVisitor extends TypedVisitor { } private final Class type; - private final java.lang.Class

parentType; + private final Class

parentType; public void visit(V element) {} - public void visit(List path, V element) { + public void visit(List> path, V element) { visit(element); } - public P getParent(java.util.List path) { + public P getParent(List> path) { return path.size() - 1 >= 0 ? (P) path.get(path.size() - 1) : null; } - public java.lang.Class

getParentType() { + public Class

getParentType() { return parentType; } } 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 acad53e9f0..353b6a30cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java @@ -14,6 +14,7 @@ import java.util.Collections; import java.util.List; +import java.util.Map.Entry; public interface Visitable { default T accept(Class type, Visitor visitor) { @@ -40,7 +41,15 @@ default T accept(io.kubernetes.client.fluent.Visitor... visitors) { return getTarget(this); } - default T accept(List path, io.kubernetes.client.fluent.Visitor... visitors) { + default T accept( + List> path, io.kubernetes.client.fluent.Visitor... visitors) { + return accept(path, "", visitors); + } + + default T accept( + List> path, + String currentKey, + io.kubernetes.client.fluent.Visitor... visitors) { for (Visitor visitor : visitors) { if (visitor.canVisit(path, this)) { visitor.visit(path, this); diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java index e5b9ba733f..b1f43452ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java @@ -21,23 +21,23 @@ import java.util.stream.Collectors; public class VisitableMap extends HashMap>> - implements Iterable> { - public java.util.List> get(Object key) { + implements Iterable> { + public List> get(Object key) { if (!containsKey(key)) { put(String.valueOf(key), new ArrayList()); } return super.get(key); } - public java.util.List> aggregate() { + public List> aggregate() { return values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); } - public Iterator> iterator() { + public Iterator> iterator() { return aggregate().iterator(); } - public void forEach(Consumer> action) { + public void forEach(Consumer> action) { aggregate().forEach(action); } diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java index dbbef52725..720d808bc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java @@ -14,6 +14,7 @@ import java.lang.reflect.Method; import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; @FunctionalInterface @@ -32,11 +33,11 @@ default int order() { return 0; } - default void visit(List path, T element) { + default void visit(List> path, T element) { visit(element); } - default Boolean canVisit(java.util.List path, F target) { + default Boolean canVisit(List> path, F target) { if (target == null) { return false; } @@ -56,7 +57,7 @@ default Boolean canVisit(java.util.List path, F target) { } } - default java.lang.Boolean hasVisitMethodMatching(F target) { + default Boolean hasVisitMethodMatching(F target) { for (Method method : getClass().getMethods()) { if (!method.getName().equals("visit") || method.getParameterTypes().length != 1) { continue; @@ -71,24 +72,27 @@ default java.lang.Boolean hasVisitMethodMatching(F target) { return false; } - default Predicate> getRequirement() { + default Predicate>> getRequirement() { return p -> true; } - default java.util.function.Predicate> hasItem( - java.lang.Class type, java.util.function.Predicate predicate) { - Predicate> result = - l -> l.stream().filter(i -> type.isInstance(i)).map(i -> type.cast(i)).anyMatch(predicate); + default Predicate>> hasItem( + Class type, Predicate predicate) { + Predicate>> result = + l -> + l.stream() + .map(Entry::getValue) + .filter(i -> type.isInstance(i)) + .map(i -> type.cast(i)) + .anyMatch(predicate); return result; } - default

Visitor addRequirement( - java.lang.Class

type, java.util.function.Predicate

predicate) { + default

Visitor addRequirement(Class

type, Predicate

predicate) { return addRequirement(predicate); } - default io.kubernetes.client.fluent.Visitor addRequirement( - java.util.function.Predicate predicate) { + default Visitor addRequirement(Predicate predicate) { return new DelegatingVisitor(getType(), this) { @Override public Predicate> getRequirement() { diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java index 948da9f992..df65cbae4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java @@ -14,6 +14,7 @@ import java.util.HashSet; import java.util.List; +import java.util.Map.Entry; import java.util.ServiceLoader; import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; @@ -22,7 +23,7 @@ public interface VisitorListener { static AtomicBoolean loaded = new AtomicBoolean(); static Set listeners = new HashSet<>(); - public static java.util.Set getListeners() { + public static Set getListeners() { if (loaded.get()) { return listeners; } @@ -44,25 +45,21 @@ public static java.util.Set getListeners() { return listeners; } - public static io.kubernetes.client.fluent.Visitor wrap( - io.kubernetes.client.fluent.Visitor visitor) { + public static Visitor wrap(Visitor visitor) { return VisitorWiretap.create(visitor, getListeners()); } - public static void register(io.kubernetes.client.fluent.VisitorListener listener) { + public static void register(VisitorListener listener) { listeners.add(listener); } - public static void unregister(io.kubernetes.client.fluent.VisitorListener listener) { + public static void unregister(VisitorListener listener) { listeners.add(listener); } - default void beforeVisit( - io.kubernetes.client.fluent.Visitor v, List path, T target) {} + default void beforeVisit(Visitor v, List> path, T target) {} - default void afterVisit( - io.kubernetes.client.fluent.Visitor v, java.util.List path, T target) {} + default void afterVisit(Visitor v, List> path, T target) {} - default void onCheck( - io.kubernetes.client.fluent.Visitor v, boolean canVisit, T target) {} + default void onCheck(Visitor v, boolean canVisit, T target) {} } diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java index 0e8d7235e4..e3761ec320 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java @@ -15,20 +15,19 @@ import java.util.Collection; import java.util.Collections; import java.util.List; +import java.util.Map.Entry; public final class VisitorWiretap implements Visitor { - private VisitorWiretap( - io.kubernetes.client.fluent.Visitor delegate, Collection listeners) { + private VisitorWiretap(Visitor delegate, Collection listeners) { this.delegate = delegate; this.listeners = listeners; } - private final java.util.Collection listeners; - private final io.kubernetes.client.fluent.Visitor delegate; + private final Collection listeners; + private final Visitor delegate; public static VisitorWiretap create( - io.kubernetes.client.fluent.Visitor visitor, - java.util.Collection listeners) { + Visitor visitor, Collection listeners) { if (visitor instanceof VisitorWiretap) { return (VisitorWiretap) visitor; } @@ -49,13 +48,13 @@ public int order() { return delegate.order(); } - public void visit(List path, T target) { + public void visit(List> path, T target) { listeners.forEach(l -> l.beforeVisit(delegate, path, target)); delegate.visit(path, target); listeners.forEach(l -> l.afterVisit(delegate, path, target)); } - public Boolean canVisit(java.util.List path, F target) { + public Boolean canVisit(List> path, F target) { boolean canVisit = delegate.canVisit(path, target); listeners.forEach(l -> l.onCheck(delegate, canVisit, target)); return canVisit; 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 d99aa03a08..48db76be17 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java @@ -29,13 +29,12 @@ private Visitors() { // Utility Class } - public static Visitor newVisitor( - Class type, io.kubernetes.client.fluent.Visitor visitor) { + public static Visitor newVisitor(Class type, Visitor visitor) { return new DelegatingVisitor(type, visitor); } - protected static List getTypeArguments( - java.lang.Class baseClass, java.lang.Class childClass) { + protected static List getTypeArguments( + Class baseClass, Class childClass) { Map resolvedTypes = new LinkedHashMap(); Type type = childClass; // start walking up the inheritance hierarchy until we hit baseClass @@ -100,7 +99,7 @@ private static String getRawName(Type type) { : type.getTypeName(); } - private static java.lang.Class getClass(java.lang.reflect.Type type) { + private static Class getClass(Type type) { if (type instanceof Class) { return (Class) type; } else if (type instanceof ParameterizedType) { @@ -118,8 +117,8 @@ private static java.lang.Class getClass(java.lang.reflect.Type type) { } } - private static Optional getMatchingInterface( - java.lang.Class targetInterface, java.lang.reflect.Type... candidates) { + private static Optional getMatchingInterface( + Class targetInterface, java.lang.reflect.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 c176049891..502f11f3ff 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 @@ -18,8 +18,7 @@ public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluentImpl< AdmissionregistrationV1ServiceReferenceBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference, - AdmissionregistrationV1ServiceReferenceBuilder> { + AdmissionregistrationV1ServiceReference, AdmissionregistrationV1ServiceReferenceBuilder> { public AdmissionregistrationV1ServiceReferenceBuilder() { this(false); } @@ -34,21 +33,20 @@ public AdmissionregistrationV1ServiceReferenceBuilder( } public AdmissionregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + AdmissionregistrationV1ServiceReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new AdmissionregistrationV1ServiceReference(), validationEnabled); } public AdmissionregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent fluent, - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference instance) { + AdmissionregistrationV1ServiceReferenceFluent fluent, + AdmissionregistrationV1ServiceReference instance) { this(fluent, instance, false); } public AdmissionregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent fluent, - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference instance, - java.lang.Boolean validationEnabled) { + AdmissionregistrationV1ServiceReferenceFluent fluent, + AdmissionregistrationV1ServiceReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -62,13 +60,12 @@ public AdmissionregistrationV1ServiceReferenceBuilder( } public AdmissionregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference instance) { + AdmissionregistrationV1ServiceReference instance) { this(instance, false); } public AdmissionregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference instance, - java.lang.Boolean validationEnabled) { + AdmissionregistrationV1ServiceReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -81,10 +78,10 @@ public AdmissionregistrationV1ServiceReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceFluent fluent; - java.lang.Boolean validationEnabled; + AdmissionregistrationV1ServiceReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference build() { + public AdmissionregistrationV1ServiceReference build() { AdmissionregistrationV1ServiceReference buildable = new AdmissionregistrationV1ServiceReference(); buildable.setName(fluent.getName()); 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 a6ea100fa7..c4177da0d3 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 @@ -20,25 +20,25 @@ public interface AdmissionregistrationV1ServiceReferenceFluent< extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java index 1958f13d56..ae584ee5a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluentImpl.java @@ -22,7 +22,7 @@ public class AdmissionregistrationV1ServiceReferenceFluentImpl< public AdmissionregistrationV1ServiceReferenceFluentImpl() {} public AdmissionregistrationV1ServiceReferenceFluentImpl( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference instance) { + AdmissionregistrationV1ServiceReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); @@ -33,15 +33,15 @@ public AdmissionregistrationV1ServiceReferenceFluentImpl( } private String name; - private java.lang.String namespace; - private java.lang.String path; + private String namespace; + private String path; private Integer port; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -50,42 +50,42 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -106,7 +106,7 @@ public int hashCode() { return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 70cf1ebb1c..b8a3a9d462 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 @@ -18,7 +18,7 @@ public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluentImpl< AdmissionregistrationV1WebhookClientConfigBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig, + AdmissionregistrationV1WebhookClientConfig, AdmissionregistrationV1WebhookClientConfigBuilder> { public AdmissionregistrationV1WebhookClientConfigBuilder() { this(false); @@ -29,30 +29,25 @@ public AdmissionregistrationV1WebhookClientConfigBuilder(Boolean validationEnabl } public AdmissionregistrationV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - fluent) { + AdmissionregistrationV1WebhookClientConfigFluent fluent) { this(fluent, false); } public AdmissionregistrationV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - fluent, - java.lang.Boolean validationEnabled) { + AdmissionregistrationV1WebhookClientConfigFluent fluent, Boolean validationEnabled) { this(fluent, new AdmissionregistrationV1WebhookClientConfig(), validationEnabled); } public AdmissionregistrationV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - fluent, - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig instance) { + AdmissionregistrationV1WebhookClientConfigFluent fluent, + AdmissionregistrationV1WebhookClientConfig instance) { this(fluent, instance, false); } public AdmissionregistrationV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - fluent, - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig instance, - java.lang.Boolean validationEnabled) { + AdmissionregistrationV1WebhookClientConfigFluent fluent, + AdmissionregistrationV1WebhookClientConfig instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCaBundle(instance.getCaBundle()); @@ -64,13 +59,12 @@ public AdmissionregistrationV1WebhookClientConfigBuilder( } public AdmissionregistrationV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig instance) { + AdmissionregistrationV1WebhookClientConfig instance) { this(instance, false); } public AdmissionregistrationV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig instance, - java.lang.Boolean validationEnabled) { + AdmissionregistrationV1WebhookClientConfig instance, Boolean validationEnabled) { this.fluent = this; this.withCaBundle(instance.getCaBundle()); @@ -81,10 +75,10 @@ public AdmissionregistrationV1WebhookClientConfigBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent fluent; - java.lang.Boolean validationEnabled; + AdmissionregistrationV1WebhookClientConfigFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig build() { + public AdmissionregistrationV1WebhookClientConfig build() { AdmissionregistrationV1WebhookClientConfig buildable = new AdmissionregistrationV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); 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 3ce6d45ff0..523356e079 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 @@ -26,15 +26,15 @@ public interface AdmissionregistrationV1WebhookClientConfigFluent< public A addToCaBundle(Integer index, Byte item); - public A setToCaBundle(java.lang.Integer index, java.lang.Byte item); + public A setToCaBundle(Integer index, Byte item); public A addToCaBundle(java.lang.Byte... items); - public A addAllToCaBundle(Collection items); + public A addAllToCaBundle(Collection items); public A removeFromCaBundle(java.lang.Byte... items); - public A removeAllFromCaBundle(java.util.Collection items); + public A removeAllFromCaBundle(Collection items); public Boolean hasCaBundle(); @@ -46,42 +46,29 @@ public interface AdmissionregistrationV1WebhookClientConfigFluent< @Deprecated public AdmissionregistrationV1ServiceReference getService(); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference buildService(); + public AdmissionregistrationV1ServiceReference buildService(); - public A withService( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference service); + public A withService(AdmissionregistrationV1ServiceReference service); - public java.lang.Boolean hasService(); + public Boolean hasService(); public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewService(); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - withNewServiceLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference item); + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( + AdmissionregistrationV1ServiceReference item); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - editService(); + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editService(); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - editOrNewService(); + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewService(); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - editOrNewServiceLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference item); + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( + AdmissionregistrationV1ServiceReference item); public String getUrl(); - public A withUrl(java.lang.String url); + public A withUrl(String url); - public java.lang.Boolean hasUrl(); + public Boolean hasUrl(); public interface ServiceNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java index 1a0ef8ef58..3465875891 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluentImpl.java @@ -26,7 +26,7 @@ public class AdmissionregistrationV1WebhookClientConfigFluentImpl< public AdmissionregistrationV1WebhookClientConfigFluentImpl() {} public AdmissionregistrationV1WebhookClientConfigFluentImpl( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig instance) { + AdmissionregistrationV1WebhookClientConfig instance) { this.withCaBundle(instance.getCaBundle()); this.withService(instance.getService()); @@ -64,17 +64,17 @@ public byte[] getCaBundle() { return result; } - public A addToCaBundle(Integer index, java.lang.Byte item) { + public A addToCaBundle(Integer index, Byte item) { if (this.caBundle == null) { - this.caBundle = new ArrayList(); + this.caBundle = new ArrayList(); } this.caBundle.add(index, item); return (A) this; } - public A setToCaBundle(java.lang.Integer index, java.lang.Byte item) { + public A setToCaBundle(Integer index, Byte item) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } this.caBundle.set(index, item); return (A) this; @@ -82,26 +82,26 @@ public A setToCaBundle(java.lang.Integer index, java.lang.Byte item) { public A addToCaBundle(java.lang.Byte... items) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.caBundle.add(item); } return (A) this; } - public A addAllToCaBundle(Collection items) { + public A addAllToCaBundle(Collection items) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.caBundle.add(item); } return (A) this; } public A removeFromCaBundle(java.lang.Byte... items) { - for (java.lang.Byte item : items) { + for (Byte item : items) { if (this.caBundle != null) { this.caBundle.remove(item); } @@ -109,8 +109,8 @@ public A removeFromCaBundle(java.lang.Byte... items) { return (A) this; } - public A removeAllFromCaBundle(java.util.Collection items) { - for (java.lang.Byte item : items) { + public A removeAllFromCaBundle(Collection items) { + for (Byte item : items) { if (this.caBundle != null) { this.caBundle.remove(item); } @@ -128,26 +128,27 @@ public Boolean hasCaBundle() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference getService() { + public AdmissionregistrationV1ServiceReference getService() { return this.service != null ? this.service.build() : null; } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference - buildService() { + public AdmissionregistrationV1ServiceReference buildService() { return this.service != null ? this.service.build() : null; } - public A withService( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference service) { + public A withService(AdmissionregistrationV1ServiceReference service) { _visitables.get("service").remove(this.service); if (service != null) { this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); _visitables.get("service").add(this.service); + } else { + this.service = null; + _visitables.get("service").remove(this.service); } return (A) this; } - public java.lang.Boolean hasService() { + public Boolean hasService() { return this.service != null; } @@ -155,51 +156,37 @@ public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNew return new AdmissionregistrationV1WebhookClientConfigFluentImpl.ServiceNestedImpl(); } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - withNewServiceLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference item) { + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( + AdmissionregistrationV1ServiceReference item) { return new AdmissionregistrationV1WebhookClientConfigFluentImpl.ServiceNestedImpl(item); } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - editService() { + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - editOrNewService() { + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewService() { return withNewServiceLike( getService() != null ? getService() - : new io.kubernetes.client.openapi.models - .AdmissionregistrationV1ServiceReferenceBuilder() - .build()); + : new AdmissionregistrationV1ServiceReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigFluent - .ServiceNested< - A> - editOrNewServiceLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReference item) { + public AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( + AdmissionregistrationV1ServiceReference item) { return withNewServiceLike(getService() != null ? getService() : item); } - public java.lang.String getUrl() { + public String getUrl() { return this.url; } - public A withUrl(java.lang.String url) { + public A withUrl(String url) { this.url = url; return (A) this; } - public java.lang.Boolean hasUrl() { + public Boolean hasUrl() { return this.url != null; } @@ -218,7 +205,7 @@ public int hashCode() { return java.util.Objects.hash(caBundle, service, url, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (caBundle != null && !caBundle.isEmpty()) { @@ -240,21 +227,16 @@ public java.lang.String toString() { class ServiceNestedImpl extends AdmissionregistrationV1ServiceReferenceFluentImpl< AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested> - implements io.kubernetes.client.openapi.models - .AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested< - N>, - Nested { + implements AdmissionregistrationV1WebhookClientConfigFluent.ServiceNested, Nested { ServiceNestedImpl(AdmissionregistrationV1ServiceReference item) { this.builder = new AdmissionregistrationV1ServiceReferenceBuilder(this, item); } ServiceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceBuilder( - this); + this.builder = new AdmissionregistrationV1ServiceReferenceBuilder(this); } - io.kubernetes.client.openapi.models.AdmissionregistrationV1ServiceReferenceBuilder builder; + AdmissionregistrationV1ServiceReferenceBuilder builder; public N and() { return (N) 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 2f05f971c4..47b6ba1407 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 @@ -17,8 +17,7 @@ public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference, - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceBuilder> { + ApiextensionsV1ServiceReference, ApiextensionsV1ServiceReferenceBuilder> { public ApiextensionsV1ServiceReferenceBuilder() { this(false); } @@ -32,21 +31,19 @@ public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFlu } public ApiextensionsV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + ApiextensionsV1ServiceReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new ApiextensionsV1ServiceReference(), validationEnabled); } public ApiextensionsV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceFluent fluent, - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference instance) { + ApiextensionsV1ServiceReferenceFluent fluent, ApiextensionsV1ServiceReference instance) { this(fluent, instance, false); } public ApiextensionsV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceFluent fluent, - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference instance, - java.lang.Boolean validationEnabled) { + ApiextensionsV1ServiceReferenceFluent fluent, + ApiextensionsV1ServiceReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -59,14 +56,12 @@ public ApiextensionsV1ServiceReferenceBuilder( this.validationEnabled = validationEnabled; } - public ApiextensionsV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference instance) { + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference instance) { this(instance, false); } public ApiextensionsV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference instance, - java.lang.Boolean validationEnabled) { + ApiextensionsV1ServiceReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -79,10 +74,10 @@ public ApiextensionsV1ServiceReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceFluent fluent; - java.lang.Boolean validationEnabled; + ApiextensionsV1ServiceReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference build() { + public ApiextensionsV1ServiceReference build() { ApiextensionsV1ServiceReference buildable = new ApiextensionsV1ServiceReference(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); 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 df325f1c67..52aa478ca3 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 @@ -20,25 +20,25 @@ public interface ApiextensionsV1ServiceReferenceFluent< extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java index 0d94762302..c124391b61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluentImpl.java @@ -21,8 +21,7 @@ public class ApiextensionsV1ServiceReferenceFluentImpl< extends BaseFluent implements ApiextensionsV1ServiceReferenceFluent { public ApiextensionsV1ServiceReferenceFluentImpl() {} - public ApiextensionsV1ServiceReferenceFluentImpl( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference instance) { + public ApiextensionsV1ServiceReferenceFluentImpl(ApiextensionsV1ServiceReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); @@ -33,15 +32,15 @@ public ApiextensionsV1ServiceReferenceFluentImpl( } private String name; - private java.lang.String namespace; - private java.lang.String path; + private String namespace; + private String path; private Integer port; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -50,42 +49,42 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -105,7 +104,7 @@ public int hashCode() { return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 c1513d8a2f..096c2cdd6b 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 @@ -17,8 +17,7 @@ public class ApiextensionsV1WebhookClientConfigBuilder extends ApiextensionsV1WebhookClientConfigFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig, - ApiextensionsV1WebhookClientConfigBuilder> { + ApiextensionsV1WebhookClientConfig, ApiextensionsV1WebhookClientConfigBuilder> { public ApiextensionsV1WebhookClientConfigBuilder() { this(false); } @@ -28,26 +27,25 @@ public ApiextensionsV1WebhookClientConfigBuilder(Boolean validationEnabled) { } public ApiextensionsV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent fluent) { + ApiextensionsV1WebhookClientConfigFluent fluent) { this(fluent, false); } public ApiextensionsV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent fluent, - java.lang.Boolean validationEnabled) { + ApiextensionsV1WebhookClientConfigFluent fluent, Boolean validationEnabled) { this(fluent, new ApiextensionsV1WebhookClientConfig(), validationEnabled); } public ApiextensionsV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent fluent, - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig instance) { + ApiextensionsV1WebhookClientConfigFluent fluent, + ApiextensionsV1WebhookClientConfig instance) { this(fluent, instance, false); } public ApiextensionsV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent fluent, - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig instance, - java.lang.Boolean validationEnabled) { + ApiextensionsV1WebhookClientConfigFluent fluent, + ApiextensionsV1WebhookClientConfig instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCaBundle(instance.getCaBundle()); @@ -58,14 +56,12 @@ public ApiextensionsV1WebhookClientConfigBuilder( this.validationEnabled = validationEnabled; } - public ApiextensionsV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig instance) { + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfig instance) { this(instance, false); } public ApiextensionsV1WebhookClientConfigBuilder( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig instance, - java.lang.Boolean validationEnabled) { + ApiextensionsV1WebhookClientConfig instance, Boolean validationEnabled) { this.fluent = this; this.withCaBundle(instance.getCaBundle()); @@ -76,10 +72,10 @@ public ApiextensionsV1WebhookClientConfigBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent fluent; - java.lang.Boolean validationEnabled; + ApiextensionsV1WebhookClientConfigFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig build() { + public ApiextensionsV1WebhookClientConfig build() { ApiextensionsV1WebhookClientConfig buildable = new ApiextensionsV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); buildable.setService(fluent.getService()); 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 63df3fb2cf..659fcd65a9 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 @@ -26,15 +26,15 @@ public interface ApiextensionsV1WebhookClientConfigFluent< public A addToCaBundle(Integer index, Byte item); - public A setToCaBundle(java.lang.Integer index, java.lang.Byte item); + public A setToCaBundle(Integer index, Byte item); public A addToCaBundle(java.lang.Byte... items); - public A addAllToCaBundle(Collection items); + public A addAllToCaBundle(Collection items); public A removeFromCaBundle(java.lang.Byte... items); - public A removeAllFromCaBundle(java.util.Collection items); + public A removeAllFromCaBundle(Collection items); public Boolean hasCaBundle(); @@ -46,36 +46,29 @@ public interface ApiextensionsV1WebhookClientConfigFluent< @Deprecated public ApiextensionsV1ServiceReference getService(); - public io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference buildService(); + public ApiextensionsV1ServiceReference buildService(); - public A withService(io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference service); + public A withService(ApiextensionsV1ServiceReference service); - public java.lang.Boolean hasService(); + public Boolean hasService(); public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewService(); - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - withNewServiceLike(io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference item); + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( + ApiextensionsV1ServiceReference item); - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - editService(); + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editService(); - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - editOrNewService(); + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewService(); - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - editOrNewServiceLike( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference item); + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( + ApiextensionsV1ServiceReference item); public String getUrl(); - public A withUrl(java.lang.String url); + public A withUrl(String url); - public java.lang.Boolean hasUrl(); + public Boolean hasUrl(); public interface ServiceNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java index 472c00c9aa..779eca7c4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluentImpl.java @@ -25,8 +25,7 @@ public class ApiextensionsV1WebhookClientConfigFluentImpl< extends BaseFluent implements ApiextensionsV1WebhookClientConfigFluent { public ApiextensionsV1WebhookClientConfigFluentImpl() {} - public ApiextensionsV1WebhookClientConfigFluentImpl( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig instance) { + public ApiextensionsV1WebhookClientConfigFluentImpl(ApiextensionsV1WebhookClientConfig instance) { this.withCaBundle(instance.getCaBundle()); this.withService(instance.getService()); @@ -64,17 +63,17 @@ public byte[] getCaBundle() { return result; } - public A addToCaBundle(Integer index, java.lang.Byte item) { + public A addToCaBundle(Integer index, Byte item) { if (this.caBundle == null) { - this.caBundle = new ArrayList(); + this.caBundle = new ArrayList(); } this.caBundle.add(index, item); return (A) this; } - public A setToCaBundle(java.lang.Integer index, java.lang.Byte item) { + public A setToCaBundle(Integer index, Byte item) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } this.caBundle.set(index, item); return (A) this; @@ -82,26 +81,26 @@ public A setToCaBundle(java.lang.Integer index, java.lang.Byte item) { public A addToCaBundle(java.lang.Byte... items) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.caBundle.add(item); } return (A) this; } - public A addAllToCaBundle(Collection items) { + public A addAllToCaBundle(Collection items) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.caBundle.add(item); } return (A) this; } public A removeFromCaBundle(java.lang.Byte... items) { - for (java.lang.Byte item : items) { + for (Byte item : items) { if (this.caBundle != null) { this.caBundle.remove(item); } @@ -109,8 +108,8 @@ public A removeFromCaBundle(java.lang.Byte... items) { return (A) this; } - public A removeAllFromCaBundle(java.util.Collection items) { - for (java.lang.Byte item : items) { + public A removeAllFromCaBundle(Collection items) { + for (Byte item : items) { if (this.caBundle != null) { this.caBundle.remove(item); } @@ -128,25 +127,27 @@ public Boolean hasCaBundle() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference getService() { + public ApiextensionsV1ServiceReference getService() { return this.service != null ? this.service.build() : null; } - public io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference buildService() { + public ApiextensionsV1ServiceReference buildService() { return this.service != null ? this.service.build() : null; } - public A withService( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference service) { + public A withService(ApiextensionsV1ServiceReference service) { _visitables.get("service").remove(this.service); if (service != null) { this.service = new ApiextensionsV1ServiceReferenceBuilder(service); _visitables.get("service").add(this.service); + } else { + this.service = null; + _visitables.get("service").remove(this.service); } return (A) this; } - public java.lang.Boolean hasService() { + public Boolean hasService() { return this.service != null; } @@ -154,45 +155,35 @@ public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewService( return new ApiextensionsV1WebhookClientConfigFluentImpl.ServiceNestedImpl(); } - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - withNewServiceLike(io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference item) { + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested withNewServiceLike( + ApiextensionsV1ServiceReference item) { return new ApiextensionsV1WebhookClientConfigFluentImpl.ServiceNestedImpl(item); } - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - editService() { + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - editOrNewService() { + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewService() { return withNewServiceLike( - getService() != null - ? getService() - : new io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceBuilder() - .build()); + getService() != null ? getService() : new ApiextensionsV1ServiceReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent.ServiceNested< - A> - editOrNewServiceLike( - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference item) { + public ApiextensionsV1WebhookClientConfigFluent.ServiceNested editOrNewServiceLike( + ApiextensionsV1ServiceReference item) { return withNewServiceLike(getService() != null ? getService() : item); } - public java.lang.String getUrl() { + public String getUrl() { return this.url; } - public A withUrl(java.lang.String url) { + public A withUrl(String url) { this.url = url; return (A) this; } - public java.lang.Boolean hasUrl() { + public Boolean hasUrl() { return this.url != null; } @@ -211,7 +202,7 @@ public int hashCode() { return java.util.Objects.hash(caBundle, service, url, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (caBundle != null && !caBundle.isEmpty()) { @@ -233,20 +224,16 @@ public java.lang.String toString() { class ServiceNestedImpl extends ApiextensionsV1ServiceReferenceFluentImpl< ApiextensionsV1WebhookClientConfigFluent.ServiceNested> - implements io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigFluent - .ServiceNested< - N>, - Nested { - ServiceNestedImpl(io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReference item) { + implements ApiextensionsV1WebhookClientConfigFluent.ServiceNested, Nested { + ServiceNestedImpl(ApiextensionsV1ServiceReference item) { this.builder = new ApiextensionsV1ServiceReferenceBuilder(this, item); } ServiceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceBuilder(this); + this.builder = new ApiextensionsV1ServiceReferenceBuilder(this); } - io.kubernetes.client.openapi.models.ApiextensionsV1ServiceReferenceBuilder builder; + ApiextensionsV1ServiceReferenceBuilder builder; public N and() { return (N) ApiextensionsV1WebhookClientConfigFluentImpl.this.withService(builder.build()); 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 368a8be7ab..5c2b26ee59 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 @@ -17,8 +17,7 @@ public class ApiregistrationV1ServiceReferenceBuilder extends ApiregistrationV1ServiceReferenceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference, - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceBuilder> { + ApiregistrationV1ServiceReference, ApiregistrationV1ServiceReferenceBuilder> { public ApiregistrationV1ServiceReferenceBuilder() { this(false); } @@ -33,21 +32,20 @@ public ApiregistrationV1ServiceReferenceBuilder( } public ApiregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + ApiregistrationV1ServiceReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new ApiregistrationV1ServiceReference(), validationEnabled); } public ApiregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceFluent fluent, - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference instance) { + ApiregistrationV1ServiceReferenceFluent fluent, + ApiregistrationV1ServiceReference instance) { this(fluent, instance, false); } public ApiregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceFluent fluent, - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference instance, - java.lang.Boolean validationEnabled) { + ApiregistrationV1ServiceReferenceFluent fluent, + ApiregistrationV1ServiceReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -58,14 +56,12 @@ public ApiregistrationV1ServiceReferenceBuilder( this.validationEnabled = validationEnabled; } - public ApiregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference instance) { + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReference instance) { this(instance, false); } public ApiregistrationV1ServiceReferenceBuilder( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference instance, - java.lang.Boolean validationEnabled) { + ApiregistrationV1ServiceReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -76,10 +72,10 @@ public ApiregistrationV1ServiceReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceFluent fluent; - java.lang.Boolean validationEnabled; + ApiregistrationV1ServiceReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference build() { + public ApiregistrationV1ServiceReference build() { ApiregistrationV1ServiceReference buildable = new ApiregistrationV1ServiceReference(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); 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 9fca67d63b..f77a27fb39 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 @@ -20,19 +20,19 @@ public interface ApiregistrationV1ServiceReferenceFluent< extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java index 9876137b2f..61471dee98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluentImpl.java @@ -21,8 +21,7 @@ public class ApiregistrationV1ServiceReferenceFluentImpl< extends BaseFluent implements ApiregistrationV1ServiceReferenceFluent { public ApiregistrationV1ServiceReferenceFluentImpl() {} - public ApiregistrationV1ServiceReferenceFluentImpl( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference instance) { + public ApiregistrationV1ServiceReferenceFluentImpl(ApiregistrationV1ServiceReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); @@ -31,14 +30,14 @@ public ApiregistrationV1ServiceReferenceFluentImpl( } private String name; - private java.lang.String namespace; + private String namespace; private Integer port; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -47,29 +46,29 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -89,7 +88,7 @@ public int hashCode() { return java.util.Objects.hash(name, namespace, port, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 9153905859..05bb0dbac4 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 @@ -16,9 +16,7 @@ public class AuthenticationV1TokenRequestBuilder extends AuthenticationV1TokenRequestFluentImpl - implements VisitableBuilder< - AuthenticationV1TokenRequest, - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestBuilder> { + implements VisitableBuilder { public AuthenticationV1TokenRequestBuilder() { this(false); } @@ -32,21 +30,19 @@ public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent } public AuthenticationV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent fluent, - java.lang.Boolean validationEnabled) { + AuthenticationV1TokenRequestFluent fluent, Boolean validationEnabled) { this(fluent, new AuthenticationV1TokenRequest(), validationEnabled); } public AuthenticationV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent fluent, - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest instance) { + AuthenticationV1TokenRequestFluent fluent, AuthenticationV1TokenRequest instance) { this(fluent, instance, false); } public AuthenticationV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent fluent, - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest instance, - java.lang.Boolean validationEnabled) { + AuthenticationV1TokenRequestFluent fluent, + AuthenticationV1TokenRequest instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public AuthenticationV1TokenRequestBuilder( this.validationEnabled = validationEnabled; } - public AuthenticationV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest instance) { + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequest instance) { this(instance, false); } public AuthenticationV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest instance, - java.lang.Boolean validationEnabled) { + AuthenticationV1TokenRequest instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public AuthenticationV1TokenRequestBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent fluent; - java.lang.Boolean validationEnabled; + AuthenticationV1TokenRequestFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest build() { + public AuthenticationV1TokenRequest build() { AuthenticationV1TokenRequest buildable = new AuthenticationV1TokenRequest(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 d2cb371e26..7f7b057b34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java @@ -20,15 +20,15 @@ public interface AuthenticationV1TokenRequestFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,81 +38,74 @@ public interface AuthenticationV1TokenRequestFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - editMetadata(); + public AuthenticationV1TokenRequestFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - editOrNewMetadata(); + public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenRequestSpec getSpec(); - public io.kubernetes.client.openapi.models.V1TokenRequestSpec buildSpec(); + public V1TokenRequestSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1TokenRequestSpec spec); + public A withSpec(V1TokenRequestSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public AuthenticationV1TokenRequestFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1TokenRequestSpec item); + public AuthenticationV1TokenRequestFluent.SpecNested withNewSpecLike(V1TokenRequestSpec item); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - editSpec(); + public AuthenticationV1TokenRequestFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - editOrNewSpec(); + public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1TokenRequestSpec item); + public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpecLike( + V1TokenRequestSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenRequestStatus getStatus(); - public io.kubernetes.client.openapi.models.V1TokenRequestStatus buildStatus(); + public V1TokenRequestStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1TokenRequestStatus status); + public A withStatus(V1TokenRequestStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public AuthenticationV1TokenRequestFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1TokenRequestStatus item); + public AuthenticationV1TokenRequestFluent.StatusNested withNewStatusLike( + V1TokenRequestStatus item); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - editStatus(); + public AuthenticationV1TokenRequestFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - editOrNewStatus(); + public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1TokenRequestStatus item); + public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatusLike( + V1TokenRequestStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -122,7 +115,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1TokenRequestSpecFluent> { public N and(); @@ -130,7 +123,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1TokenRequestStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java index bce445fe5d..05786f73e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluentImpl.java @@ -21,8 +21,7 @@ public class AuthenticationV1TokenRequestFluentImpl implements AuthenticationV1TokenRequestFluent { public AuthenticationV1TokenRequestFluentImpl() {} - public AuthenticationV1TokenRequestFluentImpl( - io.kubernetes.client.openapi.models.AuthenticationV1TokenRequest instance) { + public AuthenticationV1TokenRequestFluentImpl(AuthenticationV1TokenRequest instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public AuthenticationV1TokenRequestFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1TokenRequestSpecBuilder spec; private V1TokenRequestStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,22 @@ public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadata() { return new AuthenticationV1TokenRequestFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new AuthenticationV1TokenRequestFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - editMetadata() { + public AuthenticationV1TokenRequestFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - editOrNewMetadata() { + public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public AuthenticationV1TokenRequestFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +123,28 @@ public AuthenticationV1TokenRequestFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1TokenRequestSpec getSpec() { + @Deprecated + public V1TokenRequestSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1TokenRequestSpec buildSpec() { + public V1TokenRequestSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1TokenRequestSpec spec) { + public A withSpec(V1TokenRequestSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1TokenRequestSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,27 +152,20 @@ public AuthenticationV1TokenRequestFluent.SpecNested withNewSpec() { return new AuthenticationV1TokenRequestFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1TokenRequestSpec item) { - return new io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluentImpl - .SpecNestedImpl(item); + public AuthenticationV1TokenRequestFluent.SpecNested withNewSpecLike(V1TokenRequestSpec item) { + return new AuthenticationV1TokenRequestFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - editSpec() { + public AuthenticationV1TokenRequestFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1TokenRequestSpecBuilder().build()); + public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1TokenRequestSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1TokenRequestSpec item) { + public AuthenticationV1TokenRequestFluent.SpecNested editOrNewSpecLike( + V1TokenRequestSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -180,25 +174,28 @@ public AuthenticationV1TokenRequestFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenRequestStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1TokenRequestStatus buildStatus() { + public V1TokenRequestStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1TokenRequestStatus status) { + public A withStatus(V1TokenRequestStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1TokenRequestStatusBuilder(status); + this.status = new V1TokenRequestStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -206,27 +203,22 @@ public AuthenticationV1TokenRequestFluent.StatusNested withNewStatus() { return new AuthenticationV1TokenRequestFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1TokenRequestStatus item) { - return new io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluentImpl - .StatusNestedImpl(item); + public AuthenticationV1TokenRequestFluent.StatusNested withNewStatusLike( + V1TokenRequestStatus item) { + return new AuthenticationV1TokenRequestFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - editStatus() { + public AuthenticationV1TokenRequestFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - editOrNewStatus() { + public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1TokenRequestStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1TokenRequestStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1TokenRequestStatus item) { + public AuthenticationV1TokenRequestFluent.StatusNested editOrNewStatusLike( + V1TokenRequestStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -247,7 +239,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -276,19 +268,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent - .MetadataNested< - N>, - Nested { + implements AuthenticationV1TokenRequestFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) AuthenticationV1TokenRequestFluentImpl.this.withMetadata(builder.build()); @@ -301,18 +290,16 @@ public N endMetadata() { class SpecNestedImpl extends V1TokenRequestSpecFluentImpl> - implements io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent.SpecNested< - N>, - io.kubernetes.client.fluent.Nested { + implements AuthenticationV1TokenRequestFluent.SpecNested, Nested { SpecNestedImpl(V1TokenRequestSpec item) { this.builder = new V1TokenRequestSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1TokenRequestSpecBuilder(this); + this.builder = new V1TokenRequestSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1TokenRequestSpecBuilder builder; + V1TokenRequestSpecBuilder builder; public N and() { return (N) AuthenticationV1TokenRequestFluentImpl.this.withSpec(builder.build()); @@ -325,19 +312,16 @@ public N endSpec() { class StatusNestedImpl extends V1TokenRequestStatusFluentImpl> - implements io.kubernetes.client.openapi.models.AuthenticationV1TokenRequestFluent - .StatusNested< - N>, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1TokenRequestStatus item) { + implements AuthenticationV1TokenRequestFluent.StatusNested, Nested { + StatusNestedImpl(V1TokenRequestStatus item) { this.builder = new V1TokenRequestStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1TokenRequestStatusBuilder(this); + this.builder = new V1TokenRequestStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1TokenRequestStatusBuilder builder; + V1TokenRequestStatusBuilder builder; public N and() { return (N) AuthenticationV1TokenRequestFluentImpl.this.withStatus(builder.build()); 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 2fe0c4277c..2094361ee4 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 @@ -16,9 +16,7 @@ public class CoreV1EndpointPortBuilder extends CoreV1EndpointPortFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.CoreV1EndpointPort, - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder> { + implements VisitableBuilder { public CoreV1EndpointPortBuilder() { this(false); } @@ -31,22 +29,17 @@ public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent) { this(fluent, false); } - public CoreV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.CoreV1EndpointPortFluent fluent, - java.lang.Boolean validationEnabled) { + public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent, Boolean validationEnabled) { this(fluent, new CoreV1EndpointPort(), validationEnabled); } public CoreV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.CoreV1EndpointPortFluent fluent, - io.kubernetes.client.openapi.models.CoreV1EndpointPort instance) { + CoreV1EndpointPortFluent fluent, CoreV1EndpointPort instance) { this(fluent, instance, false); } public CoreV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.CoreV1EndpointPortFluent fluent, - io.kubernetes.client.openapi.models.CoreV1EndpointPort instance, - java.lang.Boolean validationEnabled) { + CoreV1EndpointPortFluent fluent, CoreV1EndpointPort instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAppProtocol(instance.getAppProtocol()); @@ -59,14 +52,11 @@ public CoreV1EndpointPortBuilder( this.validationEnabled = validationEnabled; } - public CoreV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.CoreV1EndpointPort instance) { + public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance) { this(instance, false); } - public CoreV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.CoreV1EndpointPort instance, - java.lang.Boolean validationEnabled) { + public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance, Boolean validationEnabled) { this.fluent = this; this.withAppProtocol(instance.getAppProtocol()); @@ -79,10 +69,10 @@ public CoreV1EndpointPortBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.CoreV1EndpointPortFluent fluent; - java.lang.Boolean validationEnabled; + CoreV1EndpointPortFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.CoreV1EndpointPort build() { + public CoreV1EndpointPort build() { CoreV1EndpointPort buildable = new CoreV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); buildable.setName(fluent.getName()); 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 6c023e453f..4733c8ff1e 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 @@ -18,25 +18,25 @@ public interface CoreV1EndpointPortFluent> extends Fluent { public String getAppProtocol(); - public A withAppProtocol(java.lang.String appProtocol); + public A withAppProtocol(String appProtocol); public Boolean hasAppProtocol(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); - public java.lang.String getProtocol(); + public String getProtocol(); - public A withProtocol(java.lang.String protocol); + public A withProtocol(String protocol); - public java.lang.Boolean hasProtocol(); + public Boolean hasProtocol(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java index 0493561227..47b4fa3565 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluentImpl.java @@ -20,8 +20,7 @@ public class CoreV1EndpointPortFluentImpl> extends BaseFluent implements CoreV1EndpointPortFluent { public CoreV1EndpointPortFluentImpl() {} - public CoreV1EndpointPortFluentImpl( - io.kubernetes.client.openapi.models.CoreV1EndpointPort instance) { + public CoreV1EndpointPortFluentImpl(CoreV1EndpointPort instance) { this.withAppProtocol(instance.getAppProtocol()); this.withName(instance.getName()); @@ -32,15 +31,15 @@ public CoreV1EndpointPortFluentImpl( } private String appProtocol; - private java.lang.String name; + private String name; private Integer port; - private java.lang.String protocol; + private String protocol; - public java.lang.String getAppProtocol() { + public String getAppProtocol() { return this.appProtocol; } - public A withAppProtocol(java.lang.String appProtocol) { + public A withAppProtocol(String appProtocol) { this.appProtocol = appProtocol; return (A) this; } @@ -49,42 +48,42 @@ public Boolean hasAppProtocol() { return this.appProtocol != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } - public java.lang.String getProtocol() { + public String getProtocol() { return this.protocol; } - public A withProtocol(java.lang.String protocol) { + public A withProtocol(String protocol) { this.protocol = protocol; return (A) this; } - public java.lang.Boolean hasProtocol() { + public Boolean hasProtocol() { return this.protocol != null; } @@ -104,7 +103,7 @@ public int hashCode() { return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (appProtocol != null) { 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 4466a8cdc3..d1cebec34d 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class CoreV1EventBuilder extends CoreV1EventFluentImpl - implements VisitableBuilder< - CoreV1Event, io.kubernetes.client.openapi.models.CoreV1EventBuilder> { + implements VisitableBuilder { public CoreV1EventBuilder() { this(false); } @@ -25,26 +24,20 @@ public CoreV1EventBuilder(Boolean validationEnabled) { this(new CoreV1Event(), validationEnabled); } - public CoreV1EventBuilder(io.kubernetes.client.openapi.models.CoreV1EventFluent fluent) { + public CoreV1EventBuilder(CoreV1EventFluent fluent) { this(fluent, false); } - public CoreV1EventBuilder( - io.kubernetes.client.openapi.models.CoreV1EventFluent fluent, - java.lang.Boolean validationEnabled) { + public CoreV1EventBuilder(CoreV1EventFluent fluent, Boolean validationEnabled) { this(fluent, new CoreV1Event(), validationEnabled); } - public CoreV1EventBuilder( - io.kubernetes.client.openapi.models.CoreV1EventFluent fluent, - io.kubernetes.client.openapi.models.CoreV1Event instance) { + public CoreV1EventBuilder(CoreV1EventFluent fluent, CoreV1Event instance) { this(fluent, instance, false); } public CoreV1EventBuilder( - io.kubernetes.client.openapi.models.CoreV1EventFluent fluent, - io.kubernetes.client.openapi.models.CoreV1Event instance, - java.lang.Boolean validationEnabled) { + CoreV1EventFluent fluent, CoreV1Event instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAction(instance.getAction()); @@ -83,13 +76,11 @@ public CoreV1EventBuilder( this.validationEnabled = validationEnabled; } - public CoreV1EventBuilder(io.kubernetes.client.openapi.models.CoreV1Event instance) { + public CoreV1EventBuilder(CoreV1Event instance) { this(instance, false); } - public CoreV1EventBuilder( - io.kubernetes.client.openapi.models.CoreV1Event instance, - java.lang.Boolean validationEnabled) { + public CoreV1EventBuilder(CoreV1Event instance, Boolean validationEnabled) { this.fluent = this; this.withAction(instance.getAction()); @@ -128,10 +119,10 @@ public CoreV1EventBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.CoreV1EventFluent fluent; - java.lang.Boolean validationEnabled; + CoreV1EventFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.CoreV1Event build() { + public CoreV1Event build() { CoreV1Event buildable = new CoreV1Event(); buildable.setAction(fluent.getAction()); buildable.setApiVersion(fluent.getApiVersion()); 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 d702f31c74..c0a40318ea 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 @@ -20,33 +20,33 @@ public interface CoreV1EventFluent> extends Fluent { public String getAction(); - public A withAction(java.lang.String action); + public A withAction(String action); public Boolean hasAction(); - public java.lang.String getApiVersion(); + public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); - public java.lang.Boolean hasApiVersion(); + public Boolean hasApiVersion(); public Integer getCount(); - public A withCount(java.lang.Integer count); + public A withCount(Integer count); - public java.lang.Boolean hasCount(); + public Boolean hasCount(); public OffsetDateTime getEventTime(); - public A withEventTime(java.time.OffsetDateTime eventTime); + public A withEventTime(OffsetDateTime eventTime); - public java.lang.Boolean hasEventTime(); + public Boolean hasEventTime(); - public java.time.OffsetDateTime getFirstTimestamp(); + public OffsetDateTime getFirstTimestamp(); - public A withFirstTimestamp(java.time.OffsetDateTime firstTimestamp); + public A withFirstTimestamp(OffsetDateTime firstTimestamp); - public java.lang.Boolean hasFirstTimestamp(); + public Boolean hasFirstTimestamp(); /** * This method has been deprecated, please use method buildInvolvedObject instead. @@ -56,172 +56,161 @@ public interface CoreV1EventFluent> extends Fluen @Deprecated public V1ObjectReference getInvolvedObject(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildInvolvedObject(); + public V1ObjectReference buildInvolvedObject(); - public A withInvolvedObject(io.kubernetes.client.openapi.models.V1ObjectReference involvedObject); + public A withInvolvedObject(V1ObjectReference involvedObject); - public java.lang.Boolean hasInvolvedObject(); + public Boolean hasInvolvedObject(); public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObject(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - withNewInvolvedObjectLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObjectLike( + V1ObjectReference item); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - editInvolvedObject(); + public CoreV1EventFluent.InvolvedObjectNested editInvolvedObject(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - editOrNewInvolvedObject(); + public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObject(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - editOrNewInvolvedObjectLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObjectLike( + V1ObjectReference item); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.time.OffsetDateTime getLastTimestamp(); + public OffsetDateTime getLastTimestamp(); - public A withLastTimestamp(java.time.OffsetDateTime lastTimestamp); + public A withLastTimestamp(OffsetDateTime lastTimestamp); - public java.lang.Boolean hasLastTimestamp(); + public Boolean hasLastTimestamp(); - public java.lang.String getMessage(); + public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public CoreV1EventFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public CoreV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested editMetadata(); + public CoreV1EventFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested - editOrNewMetadata(); + public CoreV1EventFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public CoreV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); /** * This method has been deprecated, please use method buildRelated instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRelated(); + @Deprecated + public V1ObjectReference getRelated(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildRelated(); + public V1ObjectReference buildRelated(); - public A withRelated(io.kubernetes.client.openapi.models.V1ObjectReference related); + public A withRelated(V1ObjectReference related); - public java.lang.Boolean hasRelated(); + public Boolean hasRelated(); public CoreV1EventFluent.RelatedNested withNewRelated(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested withNewRelatedLike( - io.kubernetes.client.openapi.models.V1ObjectReference item); + public CoreV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested editRelated(); + public CoreV1EventFluent.RelatedNested editRelated(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested editOrNewRelated(); + public CoreV1EventFluent.RelatedNested editOrNewRelated(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested - editOrNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public CoreV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item); - public java.lang.String getReportingComponent(); + public String getReportingComponent(); - public A withReportingComponent(java.lang.String reportingComponent); + public A withReportingComponent(String reportingComponent); - public java.lang.Boolean hasReportingComponent(); + public Boolean hasReportingComponent(); - public java.lang.String getReportingInstance(); + public String getReportingInstance(); - public A withReportingInstance(java.lang.String reportingInstance); + public A withReportingInstance(String reportingInstance); - public java.lang.Boolean hasReportingInstance(); + public Boolean hasReportingInstance(); /** * This method has been deprecated, please use method buildSeries instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public CoreV1EventSeries getSeries(); - public io.kubernetes.client.openapi.models.CoreV1EventSeries buildSeries(); + public CoreV1EventSeries buildSeries(); - public A withSeries(io.kubernetes.client.openapi.models.CoreV1EventSeries series); + public A withSeries(CoreV1EventSeries series); - public java.lang.Boolean hasSeries(); + public Boolean hasSeries(); public CoreV1EventFluent.SeriesNested withNewSeries(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested withNewSeriesLike( - io.kubernetes.client.openapi.models.CoreV1EventSeries item); + public CoreV1EventFluent.SeriesNested withNewSeriesLike(CoreV1EventSeries item); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested editSeries(); + public CoreV1EventFluent.SeriesNested editSeries(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested editOrNewSeries(); + public CoreV1EventFluent.SeriesNested editOrNewSeries(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested editOrNewSeriesLike( - io.kubernetes.client.openapi.models.CoreV1EventSeries item); + public CoreV1EventFluent.SeriesNested editOrNewSeriesLike(CoreV1EventSeries item); /** * This method has been deprecated, please use method buildSource instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1EventSource getSource(); - public io.kubernetes.client.openapi.models.V1EventSource buildSource(); + public V1EventSource buildSource(); - public A withSource(io.kubernetes.client.openapi.models.V1EventSource source); + public A withSource(V1EventSource source); - public java.lang.Boolean hasSource(); + public Boolean hasSource(); public CoreV1EventFluent.SourceNested withNewSource(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested withNewSourceLike( - io.kubernetes.client.openapi.models.V1EventSource item); + public CoreV1EventFluent.SourceNested withNewSourceLike(V1EventSource item); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested editSource(); + public CoreV1EventFluent.SourceNested editSource(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested editOrNewSource(); + public CoreV1EventFluent.SourceNested editOrNewSource(); - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested editOrNewSourceLike( - io.kubernetes.client.openapi.models.V1EventSource item); + public CoreV1EventFluent.SourceNested editOrNewSourceLike(V1EventSource item); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface InvolvedObjectNested extends Nested, V1ObjectReferenceFluent> { @@ -231,32 +220,28 @@ public interface InvolvedObjectNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); } public interface RelatedNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endRelated(); } public interface SeriesNested - extends io.kubernetes.client.fluent.Nested, - CoreV1EventSeriesFluent> { + extends Nested, CoreV1EventSeriesFluent> { public N and(); public N endSeries(); } public interface SourceNested - extends io.kubernetes.client.fluent.Nested, - V1EventSourceFluent> { + extends Nested, V1EventSourceFluent> { public N and(); public N endSource(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java index 4e9518f1d2..006d8a694d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluentImpl.java @@ -22,7 +22,7 @@ public class CoreV1EventFluentImpl> extends BaseF implements CoreV1EventFluent { public CoreV1EventFluentImpl() {} - public CoreV1EventFluentImpl(io.kubernetes.client.openapi.models.CoreV1Event instance) { + public CoreV1EventFluentImpl(CoreV1Event instance) { this.withAction(instance.getAction()); this.withApiVersion(instance.getApiVersion()); @@ -59,28 +59,28 @@ public CoreV1EventFluentImpl(io.kubernetes.client.openapi.models.CoreV1Event ins } private String action; - private java.lang.String apiVersion; + private String apiVersion; private Integer count; private OffsetDateTime eventTime; - private java.time.OffsetDateTime firstTimestamp; + private OffsetDateTime firstTimestamp; private V1ObjectReferenceBuilder involvedObject; - private java.lang.String kind; - private java.time.OffsetDateTime lastTimestamp; - private java.lang.String message; + private String kind; + private OffsetDateTime lastTimestamp; + private String message; private V1ObjectMetaBuilder metadata; - private java.lang.String reason; + private String reason; private V1ObjectReferenceBuilder related; - private java.lang.String reportingComponent; - private java.lang.String reportingInstance; + private String reportingComponent; + private String reportingInstance; private CoreV1EventSeriesBuilder series; private V1EventSourceBuilder source; - private java.lang.String type; + private String type; - public java.lang.String getAction() { + public String getAction() { return this.action; } - public A withAction(java.lang.String action) { + public A withAction(String action) { this.action = action; return (A) this; } @@ -89,55 +89,55 @@ public Boolean hasAction() { return this.action != null; } - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.Integer getCount() { + public Integer getCount() { return this.count; } - public A withCount(java.lang.Integer count) { + public A withCount(Integer count) { this.count = count; return (A) this; } - public java.lang.Boolean hasCount() { + public Boolean hasCount() { return this.count != null; } - public java.time.OffsetDateTime getEventTime() { + public OffsetDateTime getEventTime() { return this.eventTime; } - public A withEventTime(java.time.OffsetDateTime eventTime) { + public A withEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; return (A) this; } - public java.lang.Boolean hasEventTime() { + public Boolean hasEventTime() { return this.eventTime != null; } - public java.time.OffsetDateTime getFirstTimestamp() { + public OffsetDateTime getFirstTimestamp() { return this.firstTimestamp; } - public A withFirstTimestamp(java.time.OffsetDateTime firstTimestamp) { + public A withFirstTimestamp(OffsetDateTime firstTimestamp) { this.firstTimestamp = firstTimestamp; return (A) this; } - public java.lang.Boolean hasFirstTimestamp() { + public Boolean hasFirstTimestamp() { return this.firstTimestamp != null; } @@ -147,26 +147,27 @@ public java.lang.Boolean hasFirstTimestamp() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getInvolvedObject() { + public V1ObjectReference getInvolvedObject() { return this.involvedObject != null ? this.involvedObject.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildInvolvedObject() { + public V1ObjectReference buildInvolvedObject() { return this.involvedObject != null ? this.involvedObject.build() : null; } - public A withInvolvedObject( - io.kubernetes.client.openapi.models.V1ObjectReference involvedObject) { + public A withInvolvedObject(V1ObjectReference involvedObject) { _visitables.get("involvedObject").remove(this.involvedObject); if (involvedObject != null) { - this.involvedObject = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(involvedObject); + this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); _visitables.get("involvedObject").add(this.involvedObject); + } else { + this.involvedObject = null; + _visitables.get("involvedObject").remove(this.involvedObject); } return (A) this; } - public java.lang.Boolean hasInvolvedObject() { + public Boolean hasInvolvedObject() { return this.involvedObject != null; } @@ -174,65 +175,61 @@ public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObject() { return new CoreV1EventFluentImpl.InvolvedObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - withNewInvolvedObjectLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public CoreV1EventFluent.InvolvedObjectNested withNewInvolvedObjectLike( + V1ObjectReference item) { return new CoreV1EventFluentImpl.InvolvedObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - editInvolvedObject() { + public CoreV1EventFluent.InvolvedObjectNested editInvolvedObject() { return withNewInvolvedObjectLike(getInvolvedObject()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - editOrNewInvolvedObject() { + public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObject() { return withNewInvolvedObjectLike( - getInvolvedObject() != null - ? getInvolvedObject() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getInvolvedObject() != null ? getInvolvedObject() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested - editOrNewInvolvedObjectLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public CoreV1EventFluent.InvolvedObjectNested editOrNewInvolvedObjectLike( + V1ObjectReference item) { return withNewInvolvedObjectLike(getInvolvedObject() != null ? getInvolvedObject() : item); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.time.OffsetDateTime getLastTimestamp() { + public OffsetDateTime getLastTimestamp() { return this.lastTimestamp; } - public A withLastTimestamp(java.time.OffsetDateTime lastTimestamp) { + public A withLastTimestamp(OffsetDateTime lastTimestamp) { this.lastTimestamp = lastTimestamp; return (A) this; } - public java.lang.Boolean hasLastTimestamp() { + public Boolean hasLastTimestamp() { return this.lastTimestamp != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } @@ -241,25 +238,28 @@ public java.lang.Boolean hasMessage() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -267,38 +267,33 @@ public CoreV1EventFluent.MetadataNested withNewMetadata() { return new CoreV1EventFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.CoreV1EventFluentImpl.MetadataNestedImpl(item); + public CoreV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new CoreV1EventFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested editMetadata() { + public CoreV1EventFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested - editOrNewMetadata() { + public CoreV1EventFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public CoreV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } @@ -307,25 +302,28 @@ public java.lang.Boolean hasReason() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRelated() { + @Deprecated + public V1ObjectReference getRelated() { return this.related != null ? this.related.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildRelated() { + public V1ObjectReference buildRelated() { return this.related != null ? this.related.build() : null; } - public A withRelated(io.kubernetes.client.openapi.models.V1ObjectReference related) { + public A withRelated(V1ObjectReference related) { _visitables.get("related").remove(this.related); if (related != null) { - this.related = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(related); + this.related = new V1ObjectReferenceBuilder(related); _visitables.get("related").add(this.related); + } else { + this.related = null; + _visitables.get("related").remove(this.related); } return (A) this; } - public java.lang.Boolean hasRelated() { + public Boolean hasRelated() { return this.related != null; } @@ -333,50 +331,46 @@ public CoreV1EventFluent.RelatedNested withNewRelated() { return new CoreV1EventFluentImpl.RelatedNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested withNewRelatedLike( - io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.CoreV1EventFluentImpl.RelatedNestedImpl(item); + public CoreV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item) { + return new CoreV1EventFluentImpl.RelatedNestedImpl(item); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested editRelated() { + public CoreV1EventFluent.RelatedNested editRelated() { return withNewRelatedLike(getRelated()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested editOrNewRelated() { + public CoreV1EventFluent.RelatedNested editOrNewRelated() { return withNewRelatedLike( - getRelated() != null - ? getRelated() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getRelated() != null ? getRelated() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested - editOrNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public CoreV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item) { return withNewRelatedLike(getRelated() != null ? getRelated() : item); } - public java.lang.String getReportingComponent() { + public String getReportingComponent() { return this.reportingComponent; } - public A withReportingComponent(java.lang.String reportingComponent) { + public A withReportingComponent(String reportingComponent) { this.reportingComponent = reportingComponent; return (A) this; } - public java.lang.Boolean hasReportingComponent() { + public Boolean hasReportingComponent() { return this.reportingComponent != null; } - public java.lang.String getReportingInstance() { + public String getReportingInstance() { return this.reportingInstance; } - public A withReportingInstance(java.lang.String reportingInstance) { + public A withReportingInstance(String reportingInstance) { this.reportingInstance = reportingInstance; return (A) this; } - public java.lang.Boolean hasReportingInstance() { + public Boolean hasReportingInstance() { return this.reportingInstance != null; } @@ -385,25 +379,28 @@ public java.lang.Boolean hasReportingInstance() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public CoreV1EventSeries getSeries() { return this.series != null ? this.series.build() : null; } - public io.kubernetes.client.openapi.models.CoreV1EventSeries buildSeries() { + public CoreV1EventSeries buildSeries() { return this.series != null ? this.series.build() : null; } - public A withSeries(io.kubernetes.client.openapi.models.CoreV1EventSeries series) { + public A withSeries(CoreV1EventSeries series) { _visitables.get("series").remove(this.series); if (series != null) { - this.series = new io.kubernetes.client.openapi.models.CoreV1EventSeriesBuilder(series); + this.series = new CoreV1EventSeriesBuilder(series); _visitables.get("series").add(this.series); + } else { + this.series = null; + _visitables.get("series").remove(this.series); } return (A) this; } - public java.lang.Boolean hasSeries() { + public Boolean hasSeries() { return this.series != null; } @@ -411,24 +408,20 @@ public CoreV1EventFluent.SeriesNested withNewSeries() { return new CoreV1EventFluentImpl.SeriesNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested withNewSeriesLike( - io.kubernetes.client.openapi.models.CoreV1EventSeries item) { - return new io.kubernetes.client.openapi.models.CoreV1EventFluentImpl.SeriesNestedImpl(item); + public CoreV1EventFluent.SeriesNested withNewSeriesLike(CoreV1EventSeries item) { + return new CoreV1EventFluentImpl.SeriesNestedImpl(item); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested editSeries() { + public CoreV1EventFluent.SeriesNested editSeries() { return withNewSeriesLike(getSeries()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested editOrNewSeries() { + public CoreV1EventFluent.SeriesNested editOrNewSeries() { return withNewSeriesLike( - getSeries() != null - ? getSeries() - : new io.kubernetes.client.openapi.models.CoreV1EventSeriesBuilder().build()); + getSeries() != null ? getSeries() : new CoreV1EventSeriesBuilder().build()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested editOrNewSeriesLike( - io.kubernetes.client.openapi.models.CoreV1EventSeries item) { + public CoreV1EventFluent.SeriesNested editOrNewSeriesLike(CoreV1EventSeries item) { return withNewSeriesLike(getSeries() != null ? getSeries() : item); } @@ -437,25 +430,28 @@ public io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested edi * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1EventSource getSource() { return this.source != null ? this.source.build() : null; } - public io.kubernetes.client.openapi.models.V1EventSource buildSource() { + public V1EventSource buildSource() { return this.source != null ? this.source.build() : null; } - public A withSource(io.kubernetes.client.openapi.models.V1EventSource source) { + public A withSource(V1EventSource source) { _visitables.get("source").remove(this.source); if (source != null) { - this.source = new io.kubernetes.client.openapi.models.V1EventSourceBuilder(source); + this.source = new V1EventSourceBuilder(source); _visitables.get("source").add(this.source); + } else { + this.source = null; + _visitables.get("source").remove(this.source); } return (A) this; } - public java.lang.Boolean hasSource() { + public Boolean hasSource() { return this.source != null; } @@ -463,37 +459,33 @@ public CoreV1EventFluent.SourceNested withNewSource() { return new CoreV1EventFluentImpl.SourceNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested withNewSourceLike( - io.kubernetes.client.openapi.models.V1EventSource item) { - return new io.kubernetes.client.openapi.models.CoreV1EventFluentImpl.SourceNestedImpl(item); + public CoreV1EventFluent.SourceNested withNewSourceLike(V1EventSource item) { + return new CoreV1EventFluentImpl.SourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested editSource() { + public CoreV1EventFluent.SourceNested editSource() { return withNewSourceLike(getSource()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested editOrNewSource() { + public CoreV1EventFluent.SourceNested editOrNewSource() { return withNewSourceLike( - getSource() != null - ? getSource() - : new io.kubernetes.client.openapi.models.V1EventSourceBuilder().build()); + getSource() != null ? getSource() : new V1EventSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested editOrNewSourceLike( - io.kubernetes.client.openapi.models.V1EventSource item) { + public CoreV1EventFluent.SourceNested editOrNewSourceLike(V1EventSource item) { return withNewSourceLike(getSource() != null ? getSource() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -555,7 +547,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (action != null) { @@ -632,17 +624,16 @@ public java.lang.String toString() { class InvolvedObjectNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventFluent.InvolvedObjectNested, - Nested { - InvolvedObjectNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements CoreV1EventFluent.InvolvedObjectNested, Nested { + InvolvedObjectNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } InvolvedObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) CoreV1EventFluentImpl.this.withInvolvedObject(builder.build()); @@ -654,17 +645,16 @@ public N endInvolvedObject() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements CoreV1EventFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) CoreV1EventFluentImpl.this.withMetadata(builder.build()); @@ -676,17 +666,16 @@ public N endMetadata() { } class RelatedNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventFluent.RelatedNested, - io.kubernetes.client.fluent.Nested { - RelatedNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements CoreV1EventFluent.RelatedNested, Nested { + RelatedNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } RelatedNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) CoreV1EventFluentImpl.this.withRelated(builder.build()); @@ -698,17 +687,16 @@ public N endRelated() { } class SeriesNestedImpl extends CoreV1EventSeriesFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventFluent.SeriesNested, - io.kubernetes.client.fluent.Nested { + implements CoreV1EventFluent.SeriesNested, Nested { SeriesNestedImpl(CoreV1EventSeries item) { this.builder = new CoreV1EventSeriesBuilder(this, item); } SeriesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.CoreV1EventSeriesBuilder(this); + this.builder = new CoreV1EventSeriesBuilder(this); } - io.kubernetes.client.openapi.models.CoreV1EventSeriesBuilder builder; + CoreV1EventSeriesBuilder builder; public N and() { return (N) CoreV1EventFluentImpl.this.withSeries(builder.build()); @@ -720,17 +708,16 @@ public N endSeries() { } class SourceNestedImpl extends V1EventSourceFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventFluent.SourceNested, - io.kubernetes.client.fluent.Nested { + implements CoreV1EventFluent.SourceNested, Nested { SourceNestedImpl(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } SourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EventSourceBuilder(this); + this.builder = new V1EventSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EventSourceBuilder builder; + V1EventSourceBuilder builder; public N and() { return (N) CoreV1EventFluentImpl.this.withSource(builder.build()); 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 0758bea42b..f16bfe429f 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class CoreV1EventListBuilder extends CoreV1EventListFluentImpl - implements VisitableBuilder< - CoreV1EventList, io.kubernetes.client.openapi.models.CoreV1EventListBuilder> { + implements VisitableBuilder { public CoreV1EventListBuilder() { this(false); } @@ -25,27 +24,20 @@ public CoreV1EventListBuilder(Boolean validationEnabled) { this(new CoreV1EventList(), validationEnabled); } - public CoreV1EventListBuilder( - io.kubernetes.client.openapi.models.CoreV1EventListFluent fluent) { + public CoreV1EventListBuilder(CoreV1EventListFluent fluent) { this(fluent, false); } - public CoreV1EventListBuilder( - io.kubernetes.client.openapi.models.CoreV1EventListFluent fluent, - java.lang.Boolean validationEnabled) { + public CoreV1EventListBuilder(CoreV1EventListFluent fluent, Boolean validationEnabled) { this(fluent, new CoreV1EventList(), validationEnabled); } - public CoreV1EventListBuilder( - io.kubernetes.client.openapi.models.CoreV1EventListFluent fluent, - io.kubernetes.client.openapi.models.CoreV1EventList instance) { + public CoreV1EventListBuilder(CoreV1EventListFluent fluent, CoreV1EventList instance) { this(fluent, instance, false); } public CoreV1EventListBuilder( - io.kubernetes.client.openapi.models.CoreV1EventListFluent fluent, - io.kubernetes.client.openapi.models.CoreV1EventList instance, - java.lang.Boolean validationEnabled) { + CoreV1EventListFluent fluent, CoreV1EventList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public CoreV1EventListBuilder( this.validationEnabled = validationEnabled; } - public CoreV1EventListBuilder(io.kubernetes.client.openapi.models.CoreV1EventList instance) { + public CoreV1EventListBuilder(CoreV1EventList instance) { this(instance, false); } - public CoreV1EventListBuilder( - io.kubernetes.client.openapi.models.CoreV1EventList instance, - java.lang.Boolean validationEnabled) { + public CoreV1EventListBuilder(CoreV1EventList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public CoreV1EventListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.CoreV1EventListFluent fluent; - java.lang.Boolean validationEnabled; + CoreV1EventListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.CoreV1EventList build() { + public CoreV1EventList build() { CoreV1EventList buildable = new CoreV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 d3d1590d61..92b6cbcad1 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 @@ -22,23 +22,21 @@ public interface CoreV1EventListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, CoreV1Event item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1Event item); + public A setToItems(Integer index, CoreV1Event item); public A addToItems(io.kubernetes.client.openapi.models.CoreV1Event... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.CoreV1Event... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,81 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.CoreV1Event buildItem(java.lang.Integer index); + public CoreV1Event buildItem(Integer index); - public io.kubernetes.client.openapi.models.CoreV1Event buildFirstItem(); + public CoreV1Event buildFirstItem(); - public io.kubernetes.client.openapi.models.CoreV1Event buildLastItem(); + public CoreV1Event buildLastItem(); - public io.kubernetes.client.openapi.models.CoreV1Event buildMatchingItem( - java.util.function.Predicate - predicate); + public CoreV1Event buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public CoreV1EventListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.CoreV1Event item); + public CoreV1EventListFluent.ItemsNested addNewItemLike(CoreV1Event item); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1Event item); + public CoreV1EventListFluent.ItemsNested setNewItemLike(Integer index, CoreV1Event item); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editItem( - java.lang.Integer index); + public CoreV1EventListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editFirstItem(); + public CoreV1EventListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editLastItem(); + public CoreV1EventListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public CoreV1EventListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public CoreV1EventListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public CoreV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested editMetadata(); + public CoreV1EventListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - editOrNewMetadata(); + public CoreV1EventListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public CoreV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, CoreV1EventFluent> { @@ -132,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java index eed81e9131..a100dc306b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluentImpl.java @@ -38,14 +38,14 @@ public CoreV1EventListFluentImpl(CoreV1EventList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.CoreV1Event item) { + public A addToItems(Integer index, CoreV1Event item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EventBuilder(item); + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1Event item) { + public A setToItems(Integer index, CoreV1Event item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EventBuilder(item); + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.CoreV1Event item : items) { - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EventBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.CoreV1Event item : items) { - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EventBuilder(item); + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.CoreV1Event item : items) { - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EventBuilder(item); + public A removeAllFromItems(Collection items) { + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder = each.next(); + CoreV1EventBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.CoreV1Event buildItem(java.lang.Integer index) { + public CoreV1Event buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.CoreV1Event buildFirstItem() { + public CoreV1Event buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.CoreV1Event buildLastItem() { + public CoreV1Event buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.CoreV1Event buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.CoreV1EventBuilder item : items) { + public CoreV1Event buildMatchingItem(Predicate predicate) { + for (CoreV1EventBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.CoreV1Event buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.CoreV1EventBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (CoreV1EventBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.CoreV1Event item : items) { + this.items = new ArrayList(); + for (CoreV1Event item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.CoreV1Event item : items) { + for (CoreV1Event item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public CoreV1EventListFluent.ItemsNested addNewItem() { return new CoreV1EventListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.CoreV1Event item) { + public CoreV1EventListFluent.ItemsNested addNewItemLike(CoreV1Event item) { return new CoreV1EventListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1Event item) { - return new io.kubernetes.client.openapi.models.CoreV1EventListFluentImpl.ItemsNestedImpl( - index, item); + public CoreV1EventListFluent.ItemsNested setNewItemLike(Integer index, CoreV1Event item) { + return new CoreV1EventListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editItem( - java.lang.Integer index) { + public CoreV1EventListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editFirstItem() { + public CoreV1EventListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editLastItem() { + public CoreV1EventListFluent.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 io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public CoreV1EventListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public CoreV1EventListFluent.MetadataNested withNewMetadata() { return new CoreV1EventListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.CoreV1EventListFluentImpl.MetadataNestedImpl( - item); + public CoreV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new CoreV1EventListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - editMetadata() { + public CoreV1EventListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - editOrNewMetadata() { + public CoreV1EventListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public CoreV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,20 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends CoreV1EventFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventListFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1Event item) { + implements CoreV1EventListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, CoreV1Event item) { this.index = index; this.builder = new CoreV1EventBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.CoreV1EventBuilder(this); + this.builder = new CoreV1EventBuilder(this); } - io.kubernetes.client.openapi.models.CoreV1EventBuilder builder; - java.lang.Integer index; + CoreV1EventBuilder builder; + Integer index; public N and() { return (N) CoreV1EventListFluentImpl.this.setToItems(index, builder.build()); @@ -413,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.CoreV1EventListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements CoreV1EventListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) CoreV1EventListFluentImpl.this.withMetadata(builder.build()); 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 26b260ea0c..a174728307 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluentImpl - implements VisitableBuilder< - CoreV1EventSeries, io.kubernetes.client.openapi.models.CoreV1EventSeriesBuilder> { + implements VisitableBuilder { public CoreV1EventSeriesBuilder() { this(false); } @@ -25,27 +24,20 @@ public CoreV1EventSeriesBuilder(Boolean validationEnabled) { this(new CoreV1EventSeries(), validationEnabled); } - public CoreV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.CoreV1EventSeriesFluent fluent) { + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent) { this(fluent, false); } - public CoreV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.CoreV1EventSeriesFluent fluent, - java.lang.Boolean validationEnabled) { + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent, Boolean validationEnabled) { this(fluent, new CoreV1EventSeries(), validationEnabled); } - public CoreV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.CoreV1EventSeriesFluent fluent, - io.kubernetes.client.openapi.models.CoreV1EventSeries instance) { + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent, CoreV1EventSeries instance) { this(fluent, instance, false); } public CoreV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.CoreV1EventSeriesFluent fluent, - io.kubernetes.client.openapi.models.CoreV1EventSeries instance, - java.lang.Boolean validationEnabled) { + CoreV1EventSeriesFluent fluent, CoreV1EventSeries instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCount(instance.getCount()); @@ -54,13 +46,11 @@ public CoreV1EventSeriesBuilder( this.validationEnabled = validationEnabled; } - public CoreV1EventSeriesBuilder(io.kubernetes.client.openapi.models.CoreV1EventSeries instance) { + public CoreV1EventSeriesBuilder(CoreV1EventSeries instance) { this(instance, false); } - public CoreV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.CoreV1EventSeries instance, - java.lang.Boolean validationEnabled) { + public CoreV1EventSeriesBuilder(CoreV1EventSeries instance, Boolean validationEnabled) { this.fluent = this; this.withCount(instance.getCount()); @@ -69,10 +59,10 @@ public CoreV1EventSeriesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.CoreV1EventSeriesFluent fluent; - java.lang.Boolean validationEnabled; + CoreV1EventSeriesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.CoreV1EventSeries build() { + public CoreV1EventSeries build() { CoreV1EventSeries buildable = new CoreV1EventSeries(); buildable.setCount(fluent.getCount()); buildable.setLastObservedTime(fluent.getLastObservedTime()); 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 c82207adde..4f72cef332 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 @@ -19,13 +19,13 @@ public interface CoreV1EventSeriesFluent> extends Fluent { public Integer getCount(); - public A withCount(java.lang.Integer count); + public A withCount(Integer count); public Boolean hasCount(); public OffsetDateTime getLastObservedTime(); - public A withLastObservedTime(java.time.OffsetDateTime lastObservedTime); + public A withLastObservedTime(OffsetDateTime lastObservedTime); - public java.lang.Boolean hasLastObservedTime(); + public Boolean hasLastObservedTime(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java index 5847af68cf..211da48b50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluentImpl.java @@ -21,8 +21,7 @@ public class CoreV1EventSeriesFluentImpl> e implements CoreV1EventSeriesFluent { public CoreV1EventSeriesFluentImpl() {} - public CoreV1EventSeriesFluentImpl( - io.kubernetes.client.openapi.models.CoreV1EventSeries instance) { + public CoreV1EventSeriesFluentImpl(CoreV1EventSeries instance) { this.withCount(instance.getCount()); this.withLastObservedTime(instance.getLastObservedTime()); @@ -31,11 +30,11 @@ public CoreV1EventSeriesFluentImpl( private Integer count; private OffsetDateTime lastObservedTime; - public java.lang.Integer getCount() { + public Integer getCount() { return this.count; } - public A withCount(java.lang.Integer count) { + public A withCount(Integer count) { this.count = count; return (A) this; } @@ -44,16 +43,16 @@ public Boolean hasCount() { return this.count != null; } - public java.time.OffsetDateTime getLastObservedTime() { + public OffsetDateTime getLastObservedTime() { return this.lastObservedTime; } - public A withLastObservedTime(java.time.OffsetDateTime lastObservedTime) { + public A withLastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return (A) this; } - public java.lang.Boolean hasLastObservedTime() { + public Boolean hasLastObservedTime() { return this.lastObservedTime != null; } 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 d69949aefe..381cf2c8e1 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 @@ -16,9 +16,7 @@ public class DiscoveryV1EndpointPortBuilder extends DiscoveryV1EndpointPortFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort, - DiscoveryV1EndpointPortBuilder> { + implements VisitableBuilder { public DiscoveryV1EndpointPortBuilder() { this(false); } @@ -32,21 +30,19 @@ public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent) { } public DiscoveryV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortFluent fluent, - java.lang.Boolean validationEnabled) { + DiscoveryV1EndpointPortFluent fluent, Boolean validationEnabled) { this(fluent, new DiscoveryV1EndpointPort(), validationEnabled); } public DiscoveryV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortFluent fluent, - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort instance) { + DiscoveryV1EndpointPortFluent fluent, DiscoveryV1EndpointPort instance) { this(fluent, instance, false); } public DiscoveryV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortFluent fluent, - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort instance, - java.lang.Boolean validationEnabled) { + DiscoveryV1EndpointPortFluent fluent, + DiscoveryV1EndpointPort instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAppProtocol(instance.getAppProtocol()); @@ -59,14 +55,12 @@ public DiscoveryV1EndpointPortBuilder( this.validationEnabled = validationEnabled; } - public DiscoveryV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort instance) { + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPort instance) { this(instance, false); } public DiscoveryV1EndpointPortBuilder( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort instance, - java.lang.Boolean validationEnabled) { + DiscoveryV1EndpointPort instance, Boolean validationEnabled) { this.fluent = this; this.withAppProtocol(instance.getAppProtocol()); @@ -79,10 +73,10 @@ public DiscoveryV1EndpointPortBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortFluent fluent; - java.lang.Boolean validationEnabled; + DiscoveryV1EndpointPortFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort build() { + public DiscoveryV1EndpointPort build() { DiscoveryV1EndpointPort buildable = new DiscoveryV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); buildable.setName(fluent.getName()); 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 2c91a3a6f3..ccb3c74845 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java @@ -19,25 +19,25 @@ public interface DiscoveryV1EndpointPortFluent { public String getAppProtocol(); - public A withAppProtocol(java.lang.String appProtocol); + public A withAppProtocol(String appProtocol); public Boolean hasAppProtocol(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); - public java.lang.String getProtocol(); + public String getProtocol(); - public A withProtocol(java.lang.String protocol); + public A withProtocol(String protocol); - public java.lang.Boolean hasProtocol(); + public Boolean hasProtocol(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java index f954532c0a..a1c8a3bf55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluentImpl.java @@ -20,8 +20,7 @@ public class DiscoveryV1EndpointPortFluentImpl implements DiscoveryV1EndpointPortFluent { public DiscoveryV1EndpointPortFluentImpl() {} - public DiscoveryV1EndpointPortFluentImpl( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort instance) { + public DiscoveryV1EndpointPortFluentImpl(DiscoveryV1EndpointPort instance) { this.withAppProtocol(instance.getAppProtocol()); this.withName(instance.getName()); @@ -32,15 +31,15 @@ public DiscoveryV1EndpointPortFluentImpl( } private String appProtocol; - private java.lang.String name; + private String name; private Integer port; - private java.lang.String protocol; + private String protocol; - public java.lang.String getAppProtocol() { + public String getAppProtocol() { return this.appProtocol; } - public A withAppProtocol(java.lang.String appProtocol) { + public A withAppProtocol(String appProtocol) { this.appProtocol = appProtocol; return (A) this; } @@ -49,42 +48,42 @@ public Boolean hasAppProtocol() { return this.appProtocol != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } - public java.lang.String getProtocol() { + public String getProtocol() { return this.protocol; } - public A withProtocol(java.lang.String protocol) { + public A withProtocol(String protocol) { this.protocol = protocol; return (A) this; } - public java.lang.Boolean hasProtocol() { + public Boolean hasProtocol() { return this.protocol != null; } @@ -104,7 +103,7 @@ public int hashCode() { return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (appProtocol != null) { 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 e2fcc02458..7ad1687616 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class EventsV1EventBuilder extends EventsV1EventFluentImpl - implements VisitableBuilder< - EventsV1Event, io.kubernetes.client.openapi.models.EventsV1EventBuilder> { + implements VisitableBuilder { public EventsV1EventBuilder() { this(false); } @@ -29,22 +28,16 @@ public EventsV1EventBuilder(EventsV1EventFluent fluent) { this(fluent, false); } - public EventsV1EventBuilder( - io.kubernetes.client.openapi.models.EventsV1EventFluent fluent, - java.lang.Boolean validationEnabled) { + public EventsV1EventBuilder(EventsV1EventFluent fluent, Boolean validationEnabled) { this(fluent, new EventsV1Event(), validationEnabled); } - public EventsV1EventBuilder( - io.kubernetes.client.openapi.models.EventsV1EventFluent fluent, - io.kubernetes.client.openapi.models.EventsV1Event instance) { + public EventsV1EventBuilder(EventsV1EventFluent fluent, EventsV1Event instance) { this(fluent, instance, false); } public EventsV1EventBuilder( - io.kubernetes.client.openapi.models.EventsV1EventFluent fluent, - io.kubernetes.client.openapi.models.EventsV1Event instance, - java.lang.Boolean validationEnabled) { + EventsV1EventFluent fluent, EventsV1Event instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAction(instance.getAction()); @@ -83,13 +76,11 @@ public EventsV1EventBuilder( this.validationEnabled = validationEnabled; } - public EventsV1EventBuilder(io.kubernetes.client.openapi.models.EventsV1Event instance) { + public EventsV1EventBuilder(EventsV1Event instance) { this(instance, false); } - public EventsV1EventBuilder( - io.kubernetes.client.openapi.models.EventsV1Event instance, - java.lang.Boolean validationEnabled) { + public EventsV1EventBuilder(EventsV1Event instance, Boolean validationEnabled) { this.fluent = this; this.withAction(instance.getAction()); @@ -128,10 +119,10 @@ public EventsV1EventBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.EventsV1EventFluent fluent; - java.lang.Boolean validationEnabled; + EventsV1EventFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.EventsV1Event build() { + public EventsV1Event build() { EventsV1Event buildable = new EventsV1Event(); buildable.setAction(fluent.getAction()); buildable.setApiVersion(fluent.getApiVersion()); 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 d7dd2dcdaa..dd61ef3685 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 @@ -20,33 +20,33 @@ public interface EventsV1EventFluent> extends Fluent { public String getAction(); - public A withAction(java.lang.String action); + public A withAction(String action); public Boolean hasAction(); - public java.lang.String getApiVersion(); + public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); - public java.lang.Boolean hasApiVersion(); + public Boolean hasApiVersion(); public Integer getDeprecatedCount(); - public A withDeprecatedCount(java.lang.Integer deprecatedCount); + public A withDeprecatedCount(Integer deprecatedCount); - public java.lang.Boolean hasDeprecatedCount(); + public Boolean hasDeprecatedCount(); public OffsetDateTime getDeprecatedFirstTimestamp(); - public A withDeprecatedFirstTimestamp(java.time.OffsetDateTime deprecatedFirstTimestamp); + public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp); - public java.lang.Boolean hasDeprecatedFirstTimestamp(); + public Boolean hasDeprecatedFirstTimestamp(); - public java.time.OffsetDateTime getDeprecatedLastTimestamp(); + public OffsetDateTime getDeprecatedLastTimestamp(); - public A withDeprecatedLastTimestamp(java.time.OffsetDateTime deprecatedLastTimestamp); + public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp); - public java.lang.Boolean hasDeprecatedLastTimestamp(); + public Boolean hasDeprecatedLastTimestamp(); /** * This method has been deprecated, please use method buildDeprecatedSource instead. @@ -56,174 +56,161 @@ public interface EventsV1EventFluent> extends F @Deprecated public V1EventSource getDeprecatedSource(); - public io.kubernetes.client.openapi.models.V1EventSource buildDeprecatedSource(); + public V1EventSource buildDeprecatedSource(); - public A withDeprecatedSource(io.kubernetes.client.openapi.models.V1EventSource deprecatedSource); + public A withDeprecatedSource(V1EventSource deprecatedSource); - public java.lang.Boolean hasDeprecatedSource(); + public Boolean hasDeprecatedSource(); public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSource(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - withNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item); + public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSourceLike( + V1EventSource item); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - editDeprecatedSource(); + public EventsV1EventFluent.DeprecatedSourceNested editDeprecatedSource(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSource(); + public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSource(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item); + public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSourceLike( + V1EventSource item); - public java.time.OffsetDateTime getEventTime(); + public OffsetDateTime getEventTime(); - public A withEventTime(java.time.OffsetDateTime eventTime); + public A withEventTime(OffsetDateTime eventTime); - public java.lang.Boolean hasEventTime(); + public Boolean hasEventTime(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public EventsV1EventFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public EventsV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested editMetadata(); + public EventsV1EventFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested - editOrNewMetadata(); + public EventsV1EventFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public EventsV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public java.lang.String getNote(); + public String getNote(); - public A withNote(java.lang.String note); + public A withNote(String note); - public java.lang.Boolean hasNote(); + public Boolean hasNote(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); /** * This method has been deprecated, please use method buildRegarding instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectReference getRegarding(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildRegarding(); + public V1ObjectReference buildRegarding(); - public A withRegarding(io.kubernetes.client.openapi.models.V1ObjectReference regarding); + public A withRegarding(V1ObjectReference regarding); - public java.lang.Boolean hasRegarding(); + public Boolean hasRegarding(); public EventsV1EventFluent.RegardingNested withNewRegarding(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - withNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public EventsV1EventFluent.RegardingNested withNewRegardingLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested editRegarding(); + public EventsV1EventFluent.RegardingNested editRegarding(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - editOrNewRegarding(); + public EventsV1EventFluent.RegardingNested editOrNewRegarding(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - editOrNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public EventsV1EventFluent.RegardingNested editOrNewRegardingLike(V1ObjectReference item); /** * This method has been deprecated, please use method buildRelated instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRelated(); + @Deprecated + public V1ObjectReference getRelated(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildRelated(); + public V1ObjectReference buildRelated(); - public A withRelated(io.kubernetes.client.openapi.models.V1ObjectReference related); + public A withRelated(V1ObjectReference related); - public java.lang.Boolean hasRelated(); + public Boolean hasRelated(); public EventsV1EventFluent.RelatedNested withNewRelated(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested - withNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public EventsV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested editRelated(); + public EventsV1EventFluent.RelatedNested editRelated(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested - editOrNewRelated(); + public EventsV1EventFluent.RelatedNested editOrNewRelated(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested - editOrNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public EventsV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item); - public java.lang.String getReportingController(); + public String getReportingController(); - public A withReportingController(java.lang.String reportingController); + public A withReportingController(String reportingController); - public java.lang.Boolean hasReportingController(); + public Boolean hasReportingController(); - public java.lang.String getReportingInstance(); + public String getReportingInstance(); - public A withReportingInstance(java.lang.String reportingInstance); + public A withReportingInstance(String reportingInstance); - public java.lang.Boolean hasReportingInstance(); + public Boolean hasReportingInstance(); /** * This method has been deprecated, please use method buildSeries instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public EventsV1EventSeries getSeries(); - public io.kubernetes.client.openapi.models.EventsV1EventSeries buildSeries(); + public EventsV1EventSeries buildSeries(); - public A withSeries(io.kubernetes.client.openapi.models.EventsV1EventSeries series); + public A withSeries(EventsV1EventSeries series); - public java.lang.Boolean hasSeries(); + public Boolean hasSeries(); public EventsV1EventFluent.SeriesNested withNewSeries(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested withNewSeriesLike( - io.kubernetes.client.openapi.models.EventsV1EventSeries item); + public EventsV1EventFluent.SeriesNested withNewSeriesLike(EventsV1EventSeries item); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested editSeries(); + public EventsV1EventFluent.SeriesNested editSeries(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested editOrNewSeries(); + public EventsV1EventFluent.SeriesNested editOrNewSeries(); - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested - editOrNewSeriesLike(io.kubernetes.client.openapi.models.EventsV1EventSeries item); + public EventsV1EventFluent.SeriesNested editOrNewSeriesLike(EventsV1EventSeries item); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface DeprecatedSourceNested extends Nested, V1EventSourceFluent> { @@ -233,32 +220,28 @@ public interface DeprecatedSourceNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); } public interface RegardingNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endRegarding(); } public interface RelatedNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endRelated(); } public interface SeriesNested - extends io.kubernetes.client.fluent.Nested, - EventsV1EventSeriesFluent> { + extends Nested, EventsV1EventSeriesFluent> { public N and(); public N endSeries(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java index 53fbf8e918..2f2c6d436e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluentImpl.java @@ -22,7 +22,7 @@ public class EventsV1EventFluentImpl> extends B implements EventsV1EventFluent { public EventsV1EventFluentImpl() {} - public EventsV1EventFluentImpl(io.kubernetes.client.openapi.models.EventsV1Event instance) { + public EventsV1EventFluentImpl(EventsV1Event instance) { this.withAction(instance.getAction()); this.withApiVersion(instance.getApiVersion()); @@ -59,28 +59,28 @@ public EventsV1EventFluentImpl(io.kubernetes.client.openapi.models.EventsV1Event } private String action; - private java.lang.String apiVersion; + private String apiVersion; private Integer deprecatedCount; private OffsetDateTime deprecatedFirstTimestamp; - private java.time.OffsetDateTime deprecatedLastTimestamp; + private OffsetDateTime deprecatedLastTimestamp; private V1EventSourceBuilder deprecatedSource; - private java.time.OffsetDateTime eventTime; - private java.lang.String kind; + private OffsetDateTime eventTime; + private String kind; private V1ObjectMetaBuilder metadata; - private java.lang.String note; - private java.lang.String reason; + private String note; + private String reason; private V1ObjectReferenceBuilder regarding; private V1ObjectReferenceBuilder related; - private java.lang.String reportingController; - private java.lang.String reportingInstance; + private String reportingController; + private String reportingInstance; private EventsV1EventSeriesBuilder series; - private java.lang.String type; + private String type; - public java.lang.String getAction() { + public String getAction() { return this.action; } - public A withAction(java.lang.String action) { + public A withAction(String action) { this.action = action; return (A) this; } @@ -89,55 +89,55 @@ public Boolean hasAction() { return this.action != null; } - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.Integer getDeprecatedCount() { + public Integer getDeprecatedCount() { return this.deprecatedCount; } - public A withDeprecatedCount(java.lang.Integer deprecatedCount) { + public A withDeprecatedCount(Integer deprecatedCount) { this.deprecatedCount = deprecatedCount; return (A) this; } - public java.lang.Boolean hasDeprecatedCount() { + public Boolean hasDeprecatedCount() { return this.deprecatedCount != null; } - public java.time.OffsetDateTime getDeprecatedFirstTimestamp() { + public OffsetDateTime getDeprecatedFirstTimestamp() { return this.deprecatedFirstTimestamp; } - public A withDeprecatedFirstTimestamp(java.time.OffsetDateTime deprecatedFirstTimestamp) { + public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return (A) this; } - public java.lang.Boolean hasDeprecatedFirstTimestamp() { + public Boolean hasDeprecatedFirstTimestamp() { return this.deprecatedFirstTimestamp != null; } - public java.time.OffsetDateTime getDeprecatedLastTimestamp() { + public OffsetDateTime getDeprecatedLastTimestamp() { return this.deprecatedLastTimestamp; } - public A withDeprecatedLastTimestamp(java.time.OffsetDateTime deprecatedLastTimestamp) { + public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; return (A) this; } - public java.lang.Boolean hasDeprecatedLastTimestamp() { + public Boolean hasDeprecatedLastTimestamp() { return this.deprecatedLastTimestamp != null; } @@ -151,22 +151,23 @@ public V1EventSource getDeprecatedSource() { return this.deprecatedSource != null ? this.deprecatedSource.build() : null; } - public io.kubernetes.client.openapi.models.V1EventSource buildDeprecatedSource() { + public V1EventSource buildDeprecatedSource() { return this.deprecatedSource != null ? this.deprecatedSource.build() : null; } - public A withDeprecatedSource( - io.kubernetes.client.openapi.models.V1EventSource deprecatedSource) { + public A withDeprecatedSource(V1EventSource deprecatedSource) { _visitables.get("deprecatedSource").remove(this.deprecatedSource); if (deprecatedSource != null) { - this.deprecatedSource = - new io.kubernetes.client.openapi.models.V1EventSourceBuilder(deprecatedSource); + this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); _visitables.get("deprecatedSource").add(this.deprecatedSource); + } else { + this.deprecatedSource = null; + _visitables.get("deprecatedSource").remove(this.deprecatedSource); } return (A) this; } - public java.lang.Boolean hasDeprecatedSource() { + public Boolean hasDeprecatedSource() { return this.deprecatedSource != null; } @@ -174,53 +175,49 @@ public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSource() { return new EventsV1EventFluentImpl.DeprecatedSourceNestedImpl(); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - withNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item) { + public EventsV1EventFluent.DeprecatedSourceNested withNewDeprecatedSourceLike( + V1EventSource item) { return new EventsV1EventFluentImpl.DeprecatedSourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - editDeprecatedSource() { + public EventsV1EventFluent.DeprecatedSourceNested editDeprecatedSource() { return withNewDeprecatedSourceLike(getDeprecatedSource()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSource() { + public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSource() { return withNewDeprecatedSourceLike( - getDeprecatedSource() != null - ? getDeprecatedSource() - : new io.kubernetes.client.openapi.models.V1EventSourceBuilder().build()); + getDeprecatedSource() != null ? getDeprecatedSource() : new V1EventSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item) { + public EventsV1EventFluent.DeprecatedSourceNested editOrNewDeprecatedSourceLike( + V1EventSource item) { return withNewDeprecatedSourceLike( getDeprecatedSource() != null ? getDeprecatedSource() : item); } - public java.time.OffsetDateTime getEventTime() { + public OffsetDateTime getEventTime() { return this.eventTime; } - public A withEventTime(java.time.OffsetDateTime eventTime) { + public A withEventTime(OffsetDateTime eventTime) { this.eventTime = eventTime; return (A) this; } - public java.lang.Boolean hasEventTime() { + public Boolean hasEventTime() { return this.eventTime != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -229,25 +226,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -255,51 +255,46 @@ public EventsV1EventFluent.MetadataNested withNewMetadata() { return new EventsV1EventFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.EventsV1EventFluentImpl.MetadataNestedImpl(item); + public EventsV1EventFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new EventsV1EventFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested editMetadata() { + public EventsV1EventFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested - editOrNewMetadata() { + public EventsV1EventFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public EventsV1EventFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public java.lang.String getNote() { + public String getNote() { return this.note; } - public A withNote(java.lang.String note) { + public A withNote(String note) { this.note = note; return (A) this; } - public java.lang.Boolean hasNote() { + public Boolean hasNote() { return this.note != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } @@ -308,25 +303,28 @@ public java.lang.Boolean hasReason() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRegarding() { + @Deprecated + public V1ObjectReference getRegarding() { return this.regarding != null ? this.regarding.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildRegarding() { + public V1ObjectReference buildRegarding() { return this.regarding != null ? this.regarding.build() : null; } - public A withRegarding(io.kubernetes.client.openapi.models.V1ObjectReference regarding) { + public A withRegarding(V1ObjectReference regarding) { _visitables.get("regarding").remove(this.regarding); if (regarding != null) { - this.regarding = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(regarding); + this.regarding = new V1ObjectReferenceBuilder(regarding); _visitables.get("regarding").add(this.regarding); + } else { + this.regarding = null; + _visitables.get("regarding").remove(this.regarding); } return (A) this; } - public java.lang.Boolean hasRegarding() { + public Boolean hasRegarding() { return this.regarding != null; } @@ -334,27 +332,20 @@ public EventsV1EventFluent.RegardingNested withNewRegarding() { return new EventsV1EventFluentImpl.RegardingNestedImpl(); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - withNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.EventsV1EventFluentImpl.RegardingNestedImpl( - item); + public EventsV1EventFluent.RegardingNested withNewRegardingLike(V1ObjectReference item) { + return new EventsV1EventFluentImpl.RegardingNestedImpl(item); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - editRegarding() { + public EventsV1EventFluent.RegardingNested editRegarding() { return withNewRegardingLike(getRegarding()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - editOrNewRegarding() { + public EventsV1EventFluent.RegardingNested editOrNewRegarding() { return withNewRegardingLike( - getRegarding() != null - ? getRegarding() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getRegarding() != null ? getRegarding() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested - editOrNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public EventsV1EventFluent.RegardingNested editOrNewRegardingLike(V1ObjectReference item) { return withNewRegardingLike(getRegarding() != null ? getRegarding() : item); } @@ -363,25 +354,28 @@ public EventsV1EventFluent.RegardingNested withNewRegarding() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRelated() { + @Deprecated + public V1ObjectReference getRelated() { return this.related != null ? this.related.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildRelated() { + public V1ObjectReference buildRelated() { return this.related != null ? this.related.build() : null; } - public A withRelated(io.kubernetes.client.openapi.models.V1ObjectReference related) { + public A withRelated(V1ObjectReference related) { _visitables.get("related").remove(this.related); if (related != null) { - this.related = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(related); + this.related = new V1ObjectReferenceBuilder(related); _visitables.get("related").add(this.related); + } else { + this.related = null; + _visitables.get("related").remove(this.related); } return (A) this; } - public java.lang.Boolean hasRelated() { + public Boolean hasRelated() { return this.related != null; } @@ -389,51 +383,46 @@ public EventsV1EventFluent.RelatedNested withNewRelated() { return new EventsV1EventFluentImpl.RelatedNestedImpl(); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested - withNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.EventsV1EventFluentImpl.RelatedNestedImpl(item); + public EventsV1EventFluent.RelatedNested withNewRelatedLike(V1ObjectReference item) { + return new EventsV1EventFluentImpl.RelatedNestedImpl(item); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested editRelated() { + public EventsV1EventFluent.RelatedNested editRelated() { return withNewRelatedLike(getRelated()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested - editOrNewRelated() { + public EventsV1EventFluent.RelatedNested editOrNewRelated() { return withNewRelatedLike( - getRelated() != null - ? getRelated() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getRelated() != null ? getRelated() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested - editOrNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public EventsV1EventFluent.RelatedNested editOrNewRelatedLike(V1ObjectReference item) { return withNewRelatedLike(getRelated() != null ? getRelated() : item); } - public java.lang.String getReportingController() { + public String getReportingController() { return this.reportingController; } - public A withReportingController(java.lang.String reportingController) { + public A withReportingController(String reportingController) { this.reportingController = reportingController; return (A) this; } - public java.lang.Boolean hasReportingController() { + public Boolean hasReportingController() { return this.reportingController != null; } - public java.lang.String getReportingInstance() { + public String getReportingInstance() { return this.reportingInstance; } - public A withReportingInstance(java.lang.String reportingInstance) { + public A withReportingInstance(String reportingInstance) { this.reportingInstance = reportingInstance; return (A) this; } - public java.lang.Boolean hasReportingInstance() { + public Boolean hasReportingInstance() { return this.reportingInstance != null; } @@ -442,25 +431,28 @@ public java.lang.Boolean hasReportingInstance() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.EventsV1EventSeries getSeries() { + @Deprecated + public EventsV1EventSeries getSeries() { return this.series != null ? this.series.build() : null; } - public io.kubernetes.client.openapi.models.EventsV1EventSeries buildSeries() { + public EventsV1EventSeries buildSeries() { return this.series != null ? this.series.build() : null; } - public A withSeries(io.kubernetes.client.openapi.models.EventsV1EventSeries series) { + public A withSeries(EventsV1EventSeries series) { _visitables.get("series").remove(this.series); if (series != null) { this.series = new EventsV1EventSeriesBuilder(series); _visitables.get("series").add(this.series); + } else { + this.series = null; + _visitables.get("series").remove(this.series); } return (A) this; } - public java.lang.Boolean hasSeries() { + public Boolean hasSeries() { return this.series != null; } @@ -468,37 +460,33 @@ public EventsV1EventFluent.SeriesNested withNewSeries() { return new EventsV1EventFluentImpl.SeriesNestedImpl(); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested withNewSeriesLike( - io.kubernetes.client.openapi.models.EventsV1EventSeries item) { - return new io.kubernetes.client.openapi.models.EventsV1EventFluentImpl.SeriesNestedImpl(item); + public EventsV1EventFluent.SeriesNested withNewSeriesLike(EventsV1EventSeries item) { + return new EventsV1EventFluentImpl.SeriesNestedImpl(item); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested editSeries() { + public EventsV1EventFluent.SeriesNested editSeries() { return withNewSeriesLike(getSeries()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested editOrNewSeries() { + public EventsV1EventFluent.SeriesNested editOrNewSeries() { return withNewSeriesLike( - getSeries() != null - ? getSeries() - : new io.kubernetes.client.openapi.models.EventsV1EventSeriesBuilder().build()); + getSeries() != null ? getSeries() : new EventsV1EventSeriesBuilder().build()); } - public io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested - editOrNewSeriesLike(io.kubernetes.client.openapi.models.EventsV1EventSeries item) { + public EventsV1EventFluent.SeriesNested editOrNewSeriesLike(EventsV1EventSeries item) { return withNewSeriesLike(getSeries() != null ? getSeries() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -563,7 +551,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (action != null) { @@ -640,17 +628,16 @@ public java.lang.String toString() { class DeprecatedSourceNestedImpl extends V1EventSourceFluentImpl> - implements io.kubernetes.client.openapi.models.EventsV1EventFluent.DeprecatedSourceNested, - Nested { + implements EventsV1EventFluent.DeprecatedSourceNested, Nested { DeprecatedSourceNestedImpl(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } DeprecatedSourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EventSourceBuilder(this); + this.builder = new V1EventSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EventSourceBuilder builder; + V1EventSourceBuilder builder; public N and() { return (N) EventsV1EventFluentImpl.this.withDeprecatedSource(builder.build()); @@ -662,17 +649,16 @@ public N endDeprecatedSource() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.EventsV1EventFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements EventsV1EventFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) EventsV1EventFluentImpl.this.withMetadata(builder.build()); @@ -685,17 +671,16 @@ public N endMetadata() { class RegardingNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.EventsV1EventFluent.RegardingNested, - io.kubernetes.client.fluent.Nested { - RegardingNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements EventsV1EventFluent.RegardingNested, Nested { + RegardingNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } RegardingNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) EventsV1EventFluentImpl.this.withRegarding(builder.build()); @@ -708,17 +693,16 @@ public N endRegarding() { class RelatedNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.EventsV1EventFluent.RelatedNested, - io.kubernetes.client.fluent.Nested { - RelatedNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements EventsV1EventFluent.RelatedNested, Nested { + RelatedNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } RelatedNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) EventsV1EventFluentImpl.this.withRelated(builder.build()); @@ -731,17 +715,16 @@ public N endRelated() { class SeriesNestedImpl extends EventsV1EventSeriesFluentImpl> - implements io.kubernetes.client.openapi.models.EventsV1EventFluent.SeriesNested, - io.kubernetes.client.fluent.Nested { - SeriesNestedImpl(io.kubernetes.client.openapi.models.EventsV1EventSeries item) { + implements EventsV1EventFluent.SeriesNested, Nested { + SeriesNestedImpl(EventsV1EventSeries item) { this.builder = new EventsV1EventSeriesBuilder(this, item); } SeriesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.EventsV1EventSeriesBuilder(this); + this.builder = new EventsV1EventSeriesBuilder(this); } - io.kubernetes.client.openapi.models.EventsV1EventSeriesBuilder builder; + EventsV1EventSeriesBuilder builder; public N and() { return (N) EventsV1EventFluentImpl.this.withSeries(builder.build()); 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 f8568b42df..badc6fa1f0 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class EventsV1EventListBuilder extends EventsV1EventListFluentImpl - implements VisitableBuilder< - EventsV1EventList, io.kubernetes.client.openapi.models.EventsV1EventListBuilder> { + implements VisitableBuilder { public EventsV1EventListBuilder() { this(false); } @@ -29,22 +28,16 @@ public EventsV1EventListBuilder(EventsV1EventListFluent fluent) { this(fluent, false); } - public EventsV1EventListBuilder( - io.kubernetes.client.openapi.models.EventsV1EventListFluent fluent, - java.lang.Boolean validationEnabled) { + public EventsV1EventListBuilder(EventsV1EventListFluent fluent, Boolean validationEnabled) { this(fluent, new EventsV1EventList(), validationEnabled); } - public EventsV1EventListBuilder( - io.kubernetes.client.openapi.models.EventsV1EventListFluent fluent, - io.kubernetes.client.openapi.models.EventsV1EventList instance) { + public EventsV1EventListBuilder(EventsV1EventListFluent fluent, EventsV1EventList instance) { this(fluent, instance, false); } public EventsV1EventListBuilder( - io.kubernetes.client.openapi.models.EventsV1EventListFluent fluent, - io.kubernetes.client.openapi.models.EventsV1EventList instance, - java.lang.Boolean validationEnabled) { + EventsV1EventListFluent fluent, EventsV1EventList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public EventsV1EventListBuilder( this.validationEnabled = validationEnabled; } - public EventsV1EventListBuilder(io.kubernetes.client.openapi.models.EventsV1EventList instance) { + public EventsV1EventListBuilder(EventsV1EventList instance) { this(instance, false); } - public EventsV1EventListBuilder( - io.kubernetes.client.openapi.models.EventsV1EventList instance, - java.lang.Boolean validationEnabled) { + public EventsV1EventListBuilder(EventsV1EventList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public EventsV1EventListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.EventsV1EventListFluent fluent; - java.lang.Boolean validationEnabled; + EventsV1EventListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.EventsV1EventList build() { + public EventsV1EventList build() { EventsV1EventList buildable = new EventsV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 dc79f3baeb..d223c64554 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 @@ -22,23 +22,21 @@ public interface EventsV1EventListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.EventsV1Event item); + public A addToItems(Integer index, EventsV1Event item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.EventsV1Event item); + public A setToItems(Integer index, EventsV1Event item); public A addToItems(io.kubernetes.client.openapi.models.EventsV1Event... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.EventsV1Event... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,83 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.EventsV1Event buildItem(java.lang.Integer index); + public EventsV1Event buildItem(Integer index); - public io.kubernetes.client.openapi.models.EventsV1Event buildFirstItem(); + public EventsV1Event buildFirstItem(); - public io.kubernetes.client.openapi.models.EventsV1Event buildLastItem(); + public EventsV1Event buildLastItem(); - public io.kubernetes.client.openapi.models.EventsV1Event buildMatchingItem( - java.util.function.Predicate - predicate); + public EventsV1Event buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public EventsV1EventListFluent.ItemsNested addNewItem(); - public EventsV1EventListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.EventsV1Event item); + public EventsV1EventListFluent.ItemsNested addNewItemLike(EventsV1Event item); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.EventsV1Event item); + public EventsV1EventListFluent.ItemsNested setNewItemLike(Integer index, EventsV1Event item); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested editItem( - java.lang.Integer index); + public EventsV1EventListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested editFirstItem(); + public EventsV1EventListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested editLastItem(); + public EventsV1EventListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public EventsV1EventListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public EventsV1EventListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public EventsV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - editMetadata(); + public EventsV1EventListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - editOrNewMetadata(); + public EventsV1EventListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public EventsV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, EventsV1EventFluent> { @@ -134,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java index 503fbe0841..3abb33adfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluentImpl.java @@ -26,8 +26,7 @@ public class EventsV1EventListFluentImpl> e implements EventsV1EventListFluent { public EventsV1EventListFluentImpl() {} - public EventsV1EventListFluentImpl( - io.kubernetes.client.openapi.models.EventsV1EventList instance) { + public EventsV1EventListFluentImpl(EventsV1EventList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public EventsV1EventListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.EventsV1Event item) { + public A addToItems(Integer index, EventsV1Event item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder = - new io.kubernetes.client.openapi.models.EventsV1EventBuilder(item); + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.EventsV1Event item) { + public A setToItems(Integer index, EventsV1Event item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder = - new io.kubernetes.client.openapi.models.EventsV1EventBuilder(item); + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.EventsV1Event item : items) { - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder = - new io.kubernetes.client.openapi.models.EventsV1EventBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.EventsV1Event item : items) { - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder = - new io.kubernetes.client.openapi.models.EventsV1EventBuilder(item); + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.EventsV1Event item : items) { - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder = - new io.kubernetes.client.openapi.models.EventsV1EventBuilder(item); + public A removeAllFromItems(Collection items) { + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder = each.next(); + EventsV1EventBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.EventsV1Event buildItem(java.lang.Integer index) { + public EventsV1Event buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.EventsV1Event buildFirstItem() { + public EventsV1Event buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.EventsV1Event buildLastItem() { + public EventsV1Event buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.EventsV1Event buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.EventsV1EventBuilder item : items) { + public EventsV1Event buildMatchingItem(Predicate predicate) { + for (EventsV1EventBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.EventsV1Event buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.EventsV1EventBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (EventsV1EventBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.EventsV1Event item : items) { + this.items = new ArrayList(); + for (EventsV1Event item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.EventsV1Event item : items) { + for (EventsV1Event item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,39 +221,32 @@ public EventsV1EventListFluent.ItemsNested addNewItem() { return new EventsV1EventListFluentImpl.ItemsNestedImpl(); } - public EventsV1EventListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.EventsV1Event item) { + public EventsV1EventListFluent.ItemsNested addNewItemLike(EventsV1Event item) { return new EventsV1EventListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.EventsV1Event item) { - return new io.kubernetes.client.openapi.models.EventsV1EventListFluentImpl.ItemsNestedImpl( - index, item); + public EventsV1EventListFluent.ItemsNested setNewItemLike(Integer index, EventsV1Event item) { + return new EventsV1EventListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested editItem( - java.lang.Integer index) { + public EventsV1EventListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested - editFirstItem() { + public EventsV1EventListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested editLastItem() { + public EventsV1EventListFluent.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 io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public EventsV1EventListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -284,16 +258,16 @@ public io.kubernetes.client.openapi.models.EventsV1EventListFluent.ItemsNested withNewMetadata() { return new EventsV1EventListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.EventsV1EventListFluentImpl.MetadataNestedImpl( - item); + public EventsV1EventListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new EventsV1EventListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - editMetadata() { + public EventsV1EventListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - editOrNewMetadata() { + public EventsV1EventListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public EventsV1EventListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -368,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -393,19 +363,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends EventsV1EventFluentImpl> implements EventsV1EventListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.EventsV1Event item) { + ItemsNestedImpl(Integer index, EventsV1Event item) { this.index = index; this.builder = new EventsV1EventBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.EventsV1EventBuilder(this); + this.builder = new EventsV1EventBuilder(this); } - io.kubernetes.client.openapi.models.EventsV1EventBuilder builder; - java.lang.Integer index; + EventsV1EventBuilder builder; + Integer index; public N and() { return (N) EventsV1EventListFluentImpl.this.setToItems(index, builder.build()); @@ -418,17 +387,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.EventsV1EventListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements EventsV1EventListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) EventsV1EventListFluentImpl.this.withMetadata(builder.build()); 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 78ac867ce7..3d1d648e0b 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 @@ -16,8 +16,7 @@ public class EventsV1EventSeriesBuilder extends EventsV1EventSeriesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.EventsV1EventSeries, EventsV1EventSeriesBuilder> { + implements VisitableBuilder { public EventsV1EventSeriesBuilder() { this(false); } @@ -26,27 +25,24 @@ public EventsV1EventSeriesBuilder(Boolean validationEnabled) { this(new EventsV1EventSeries(), validationEnabled); } - public EventsV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.EventsV1EventSeriesFluent fluent) { + public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent) { this(fluent, false); } public EventsV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.EventsV1EventSeriesFluent fluent, - java.lang.Boolean validationEnabled) { + EventsV1EventSeriesFluent fluent, Boolean validationEnabled) { this(fluent, new EventsV1EventSeries(), validationEnabled); } public EventsV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.EventsV1EventSeriesFluent fluent, - io.kubernetes.client.openapi.models.EventsV1EventSeries instance) { + EventsV1EventSeriesFluent fluent, EventsV1EventSeries instance) { this(fluent, instance, false); } public EventsV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.EventsV1EventSeriesFluent fluent, - io.kubernetes.client.openapi.models.EventsV1EventSeries instance, - java.lang.Boolean validationEnabled) { + EventsV1EventSeriesFluent fluent, + EventsV1EventSeries instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCount(instance.getCount()); @@ -55,14 +51,11 @@ public EventsV1EventSeriesBuilder( this.validationEnabled = validationEnabled; } - public EventsV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.EventsV1EventSeries instance) { + public EventsV1EventSeriesBuilder(EventsV1EventSeries instance) { this(instance, false); } - public EventsV1EventSeriesBuilder( - io.kubernetes.client.openapi.models.EventsV1EventSeries instance, - java.lang.Boolean validationEnabled) { + public EventsV1EventSeriesBuilder(EventsV1EventSeries instance, Boolean validationEnabled) { this.fluent = this; this.withCount(instance.getCount()); @@ -71,10 +64,10 @@ public EventsV1EventSeriesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.EventsV1EventSeriesFluent fluent; - java.lang.Boolean validationEnabled; + EventsV1EventSeriesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.EventsV1EventSeries build() { + public EventsV1EventSeries build() { EventsV1EventSeries buildable = new EventsV1EventSeries(); buildable.setCount(fluent.getCount()); buildable.setLastObservedTime(fluent.getLastObservedTime()); 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 d46f9f4aea..eaa40f7f5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java @@ -20,13 +20,13 @@ public interface EventsV1EventSeriesFluent { public Integer getCount(); - public A withCount(java.lang.Integer count); + public A withCount(Integer count); public Boolean hasCount(); public OffsetDateTime getLastObservedTime(); - public A withLastObservedTime(java.time.OffsetDateTime lastObservedTime); + public A withLastObservedTime(OffsetDateTime lastObservedTime); - public java.lang.Boolean hasLastObservedTime(); + public Boolean hasLastObservedTime(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java index 574538d81d..8952b5ea06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluentImpl.java @@ -21,8 +21,7 @@ public class EventsV1EventSeriesFluentImpl implements EventsV1EventSeriesFluent { public EventsV1EventSeriesFluentImpl() {} - public EventsV1EventSeriesFluentImpl( - io.kubernetes.client.openapi.models.EventsV1EventSeries instance) { + public EventsV1EventSeriesFluentImpl(EventsV1EventSeries instance) { this.withCount(instance.getCount()); this.withLastObservedTime(instance.getLastObservedTime()); @@ -31,11 +30,11 @@ public EventsV1EventSeriesFluentImpl( private Integer count; private OffsetDateTime lastObservedTime; - public java.lang.Integer getCount() { + public Integer getCount() { return this.count; } - public A withCount(java.lang.Integer count) { + public A withCount(Integer count) { this.count = count; return (A) this; } @@ -44,16 +43,16 @@ public Boolean hasCount() { return this.count != null; } - public java.time.OffsetDateTime getLastObservedTime() { + public OffsetDateTime getLastObservedTime() { return this.lastObservedTime; } - public A withLastObservedTime(java.time.OffsetDateTime lastObservedTime) { + public A withLastObservedTime(OffsetDateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; return (A) this; } - public java.lang.Boolean hasLastObservedTime() { + public Boolean hasLastObservedTime() { return this.lastObservedTime != null; } 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 3b2c5c3d09..9bae439bbe 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 @@ -16,9 +16,7 @@ public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.StorageV1TokenRequest, - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder> { + implements VisitableBuilder { public StorageV1TokenRequestBuilder() { this(false); } @@ -32,21 +30,19 @@ public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent) { } public StorageV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.StorageV1TokenRequestFluent fluent, - java.lang.Boolean validationEnabled) { + StorageV1TokenRequestFluent fluent, Boolean validationEnabled) { this(fluent, new StorageV1TokenRequest(), validationEnabled); } public StorageV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.StorageV1TokenRequestFluent fluent, - io.kubernetes.client.openapi.models.StorageV1TokenRequest instance) { + StorageV1TokenRequestFluent fluent, StorageV1TokenRequest instance) { this(fluent, instance, false); } public StorageV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.StorageV1TokenRequestFluent fluent, - io.kubernetes.client.openapi.models.StorageV1TokenRequest instance, - java.lang.Boolean validationEnabled) { + StorageV1TokenRequestFluent fluent, + StorageV1TokenRequest instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAudience(instance.getAudience()); @@ -55,14 +51,11 @@ public StorageV1TokenRequestBuilder( this.validationEnabled = validationEnabled; } - public StorageV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.StorageV1TokenRequest instance) { + public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance) { this(instance, false); } - public StorageV1TokenRequestBuilder( - io.kubernetes.client.openapi.models.StorageV1TokenRequest instance, - java.lang.Boolean validationEnabled) { + public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance, Boolean validationEnabled) { this.fluent = this; this.withAudience(instance.getAudience()); @@ -71,10 +64,10 @@ public StorageV1TokenRequestBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.StorageV1TokenRequestFluent fluent; - java.lang.Boolean validationEnabled; + StorageV1TokenRequestFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.StorageV1TokenRequest build() { + public StorageV1TokenRequest build() { StorageV1TokenRequest buildable = new StorageV1TokenRequest(); buildable.setAudience(fluent.getAudience()); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); 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 b193e7f57a..bd81edc207 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java @@ -19,13 +19,13 @@ public interface StorageV1TokenRequestFluent { public String getAudience(); - public A withAudience(java.lang.String audience); + public A withAudience(String audience); public Boolean hasAudience(); public Long getExpirationSeconds(); - public A withExpirationSeconds(java.lang.Long expirationSeconds); + public A withExpirationSeconds(Long expirationSeconds); - public java.lang.Boolean hasExpirationSeconds(); + public Boolean hasExpirationSeconds(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java index 6a86cc493e..445be3347d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluentImpl.java @@ -20,8 +20,7 @@ public class StorageV1TokenRequestFluentImpl implements StorageV1TokenRequestFluent { public StorageV1TokenRequestFluentImpl() {} - public StorageV1TokenRequestFluentImpl( - io.kubernetes.client.openapi.models.StorageV1TokenRequest instance) { + public StorageV1TokenRequestFluentImpl(StorageV1TokenRequest instance) { this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); @@ -30,11 +29,11 @@ public StorageV1TokenRequestFluentImpl( private String audience; private Long expirationSeconds; - public java.lang.String getAudience() { + public String getAudience() { return this.audience; } - public A withAudience(java.lang.String audience) { + public A withAudience(String audience) { this.audience = audience; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasAudience() { return this.audience != null; } - public java.lang.Long getExpirationSeconds() { + public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(java.lang.Long expirationSeconds) { + public A withExpirationSeconds(Long expirationSeconds) { this.expirationSeconds = expirationSeconds; return (A) this; } - public java.lang.Boolean hasExpirationSeconds() { + public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } @@ -71,7 +70,7 @@ public int hashCode() { return java.util.Objects.hash(audience, expirationSeconds, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (audience != null) { 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 b73f6c6103..072351d873 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIGroupBuilder extends V1APIGroupFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1APIGroupBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1APIGroupBuilder(V1APIGroupFluent fluent) { this(fluent, false); } - public V1APIGroupBuilder( - io.kubernetes.client.openapi.models.V1APIGroupFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIGroupBuilder(V1APIGroupFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIGroup(), validationEnabled); } - public V1APIGroupBuilder( - io.kubernetes.client.openapi.models.V1APIGroupFluent fluent, - io.kubernetes.client.openapi.models.V1APIGroup instance) { + public V1APIGroupBuilder(V1APIGroupFluent fluent, V1APIGroup instance) { this(fluent, instance, false); } public V1APIGroupBuilder( - io.kubernetes.client.openapi.models.V1APIGroupFluent fluent, - io.kubernetes.client.openapi.models.V1APIGroup instance, - java.lang.Boolean validationEnabled) { + V1APIGroupFluent fluent, V1APIGroup instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +54,11 @@ public V1APIGroupBuilder( this.validationEnabled = validationEnabled; } - public V1APIGroupBuilder(io.kubernetes.client.openapi.models.V1APIGroup instance) { + public V1APIGroupBuilder(V1APIGroup instance) { this(instance, false); } - public V1APIGroupBuilder( - io.kubernetes.client.openapi.models.V1APIGroup instance, - java.lang.Boolean validationEnabled) { + public V1APIGroupBuilder(V1APIGroup instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +75,10 @@ public V1APIGroupBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIGroupFluent fluent; - java.lang.Boolean validationEnabled; + V1APIGroupFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIGroup build() { + public V1APIGroup build() { V1APIGroup buildable = new V1APIGroup(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 fba6f03d03..28ed1cc8ee 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 @@ -22,21 +22,21 @@ public interface V1APIGroupFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildPreferredVersion instead. @@ -46,46 +46,37 @@ public interface V1APIGroupFluent> extends Fluent< @Deprecated public V1GroupVersionForDiscovery getPreferredVersion(); - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildPreferredVersion(); + public V1GroupVersionForDiscovery buildPreferredVersion(); - public A withPreferredVersion( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery preferredVersion); + public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion); - public java.lang.Boolean hasPreferredVersion(); + public Boolean hasPreferredVersion(); public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersion(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - withNewPreferredVersionLike( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item); + public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersionLike( + V1GroupVersionForDiscovery item); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - editPreferredVersion(); + public V1APIGroupFluent.PreferredVersionNested editPreferredVersion(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - editOrNewPreferredVersion(); + public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersion(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - editOrNewPreferredVersionLike( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item); + public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersionLike( + V1GroupVersionForDiscovery item); public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); - public A setToServerAddressByClientCIDRs( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item); + public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); public A addToServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - public A addAllToServerAddressByClientCIDRs( - Collection items); + public A addAllToServerAddressByClientCIDRs(Collection items); public A removeFromServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - public A removeAllFromServerAddressByClientCIDRs( - java.util.Collection items); + public A removeAllFromServerAddressByClientCIDRs(Collection items); public A removeMatchingFromServerAddressByClientCIDRs( Predicate predicate); @@ -95,144 +86,107 @@ public A removeMatchingFromServerAddressByClientCIDRs( * * @return The buildable object. */ - @java.lang.Deprecated - public List - getServerAddressByClientCIDRs(); + @Deprecated + public List getServerAddressByClientCIDRs(); - public java.util.List - buildServerAddressByClientCIDRs(); + public List buildServerAddressByClientCIDRs(); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildServerAddressByClientCIDR(java.lang.Integer index); + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildFirstServerAddressByClientCIDR(); + public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildLastServerAddressByClientCIDR(); + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate); + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( + Predicate predicate); - public java.lang.Boolean hasMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate); + public Boolean hasMatchingServerAddressByClientCIDR( + Predicate predicate); public A withServerAddressByClientCIDRs( - java.util.List - serverAddressByClientCIDRs); + List serverAddressByClientCIDRs); public A withServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs); - public java.lang.Boolean hasServerAddressByClientCIDRs(); + public Boolean hasServerAddressByClientCIDRs(); public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - addNewServerAddressByClientCIDRLike( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike( + V1ServerAddressByClientCIDR item); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - setNewServerAddressByClientCIDRLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike( + Integer index, V1ServerAddressByClientCIDR item); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editServerAddressByClientCIDR(java.lang.Integer index); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( + Integer index); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editFirstServerAddressByClientCIDR(); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editLastServerAddressByClientCIDR(); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR( + Predicate predicate); - public A addToVersions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item); + public A addToVersions(Integer index, V1GroupVersionForDiscovery item); - public A setToVersions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item); + public A setToVersions(Integer index, V1GroupVersionForDiscovery item); public A addToVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items); - public A addAllToVersions( - java.util.Collection items); + public A addAllToVersions(Collection items); public A removeFromVersions( io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items); - public A removeAllFromVersions( - java.util.Collection items); + public A removeAllFromVersions(Collection items); - public A removeMatchingFromVersions( - java.util.function.Predicate predicate); + public A removeMatchingFromVersions(Predicate predicate); /** * This method has been deprecated, please use method buildVersions instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getVersions(); + @Deprecated + public List getVersions(); - public java.util.List - buildVersions(); + public List buildVersions(); - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildVersion( - java.lang.Integer index); + public V1GroupVersionForDiscovery buildVersion(Integer index); - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildFirstVersion(); + public V1GroupVersionForDiscovery buildFirstVersion(); - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildLastVersion(); + public V1GroupVersionForDiscovery buildLastVersion(); - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate); + public V1GroupVersionForDiscovery buildMatchingVersion( + Predicate predicate); - public java.lang.Boolean hasMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate); + public Boolean hasMatchingVersion(Predicate predicate); - public A withVersions( - java.util.List versions); + public A withVersions(List versions); public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... versions); - public java.lang.Boolean hasVersions(); + public Boolean hasVersions(); public V1APIGroupFluent.VersionsNested addNewVersion(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested addNewVersionLike( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item); + public V1APIGroupFluent.VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested setNewVersionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item); + public V1APIGroupFluent.VersionsNested setNewVersionLike( + Integer index, V1GroupVersionForDiscovery item); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editVersion( - java.lang.Integer index); + public V1APIGroupFluent.VersionsNested editVersion(Integer index); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editFirstVersion(); + public V1APIGroupFluent.VersionsNested editFirstVersion(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editLastVersion(); + public V1APIGroupFluent.VersionsNested editLastVersion(); - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate); + public V1APIGroupFluent.VersionsNested editMatchingVersion( + Predicate predicate); public interface PreferredVersionNested extends Nested, @@ -243,7 +197,7 @@ public interface PreferredVersionNested } public interface ServerAddressByClientCIDRsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ServerAddressByClientCIDRFluent> { public N and(); @@ -251,8 +205,7 @@ public interface ServerAddressByClientCIDRsNested } public interface VersionsNested - extends io.kubernetes.client.fluent.Nested, - V1GroupVersionForDiscoveryFluent> { + extends Nested, V1GroupVersionForDiscoveryFluent> { public N and(); public N endVersion(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java index 63593c470b..0d9b6fc9de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluentImpl.java @@ -26,7 +26,7 @@ public class V1APIGroupFluentImpl> extends BaseFlu implements V1APIGroupFluent { public V1APIGroupFluentImpl() {} - public V1APIGroupFluentImpl(io.kubernetes.client.openapi.models.V1APIGroup instance) { + public V1APIGroupFluentImpl(V1APIGroup instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -41,17 +41,17 @@ public V1APIGroupFluentImpl(io.kubernetes.client.openapi.models.V1APIGroup insta } private String apiVersion; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; private V1GroupVersionForDiscoveryBuilder preferredVersion; private ArrayList serverAddressByClientCIDRs; - private java.util.ArrayList versions; + private ArrayList versions; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -60,29 +60,29 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -92,27 +92,27 @@ public java.lang.Boolean hasName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery getPreferredVersion() { + public V1GroupVersionForDiscovery getPreferredVersion() { return this.preferredVersion != null ? this.preferredVersion.build() : null; } - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildPreferredVersion() { + public V1GroupVersionForDiscovery buildPreferredVersion() { return this.preferredVersion != null ? this.preferredVersion.build() : null; } - public A withPreferredVersion( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery preferredVersion) { + public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { _visitables.get("preferredVersion").remove(this.preferredVersion); if (preferredVersion != null) { - this.preferredVersion = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder( - preferredVersion); + this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); _visitables.get("preferredVersion").add(this.preferredVersion); + } else { + this.preferredVersion = null; + _visitables.get("preferredVersion").remove(this.preferredVersion); } return (A) this; } - public java.lang.Boolean hasPreferredVersion() { + public Boolean hasPreferredVersion() { return this.preferredVersion != null; } @@ -120,40 +120,33 @@ public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersion() { return new V1APIGroupFluentImpl.PreferredVersionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - withNewPreferredVersionLike( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { + public V1APIGroupFluent.PreferredVersionNested withNewPreferredVersionLike( + V1GroupVersionForDiscovery item) { return new V1APIGroupFluentImpl.PreferredVersionNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - editPreferredVersion() { + public V1APIGroupFluent.PreferredVersionNested editPreferredVersion() { return withNewPreferredVersionLike(getPreferredVersion()); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - editOrNewPreferredVersion() { + public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersion() { return withNewPreferredVersionLike( getPreferredVersion() != null ? getPreferredVersion() - : new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder().build()); + : new V1GroupVersionForDiscoveryBuilder().build()); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested - editOrNewPreferredVersionLike( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { + public V1APIGroupFluent.PreferredVersionNested editOrNewPreferredVersionLike( + V1GroupVersionForDiscovery item) { return withNewPreferredVersionLike( getPreferredVersion() != null ? getPreferredVersion() : item); } public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables .get("serverAddressByClientCIDRs") .add(index >= 0 ? index : _visitables.get("serverAddressByClientCIDRs").size(), builder); @@ -162,16 +155,11 @@ public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientC return (A) this; } - public A setToServerAddressByClientCIDRs( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item) { + public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= _visitables.get("serverAddressByClientCIDRs").size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); } else { @@ -188,29 +176,22 @@ public A setToServerAddressByClientCIDRs( public A addToServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + 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) { + public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").add(builder); this.serverAddressByClientCIDRs.add(builder); } @@ -219,9 +200,8 @@ public A addAllToServerAddressByClientCIDRs( public A removeFromServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").remove(builder); if (this.serverAddressByClientCIDRs != null) { this.serverAddressByClientCIDRs.remove(builder); @@ -230,11 +210,9 @@ public A removeFromServerAddressByClientCIDRs( return (A) this; } - public A removeAllFromServerAddressByClientCIDRs( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + public A removeAllFromServerAddressByClientCIDRs(Collection items) { + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").remove(builder); if (this.serverAddressByClientCIDRs != null) { this.serverAddressByClientCIDRs.remove(builder); @@ -244,13 +222,12 @@ public A removeAllFromServerAddressByClientCIDRs( } public A removeMatchingFromServerAddressByClientCIDRs( - Predicate predicate) { + Predicate predicate) { if (serverAddressByClientCIDRs == null) return (A) this; - final Iterator each = - serverAddressByClientCIDRs.iterator(); + final Iterator each = serverAddressByClientCIDRs.iterator(); final List visitables = _visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = each.next(); + V1ServerAddressByClientCIDRBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -264,39 +241,30 @@ public A removeMatchingFromServerAddressByClientCIDRs( * * @return The buildable object. */ - @java.lang.Deprecated - public List - getServerAddressByClientCIDRs() { + @Deprecated + public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public java.util.List - buildServerAddressByClientCIDRs() { + public List buildServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildServerAddressByClientCIDR(java.lang.Integer index) { + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index) { return this.serverAddressByClientCIDRs.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildFirstServerAddressByClientCIDR() { + public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildLastServerAddressByClientCIDR() { + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder item : - serverAddressByClientCIDRs) { + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( + Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { return item.build(); } @@ -304,12 +272,9 @@ public A removeMatchingFromServerAddressByClientCIDRs( return null; } - public java.lang.Boolean hasMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder item : - serverAddressByClientCIDRs) { + public Boolean hasMatchingServerAddressByClientCIDR( + Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { return true; } @@ -318,15 +283,13 @@ public java.lang.Boolean hasMatchingServerAddressByClientCIDR( } public A withServerAddressByClientCIDRs( - java.util.List - serverAddressByClientCIDRs) { + List serverAddressByClientCIDRs) { if (this.serverAddressByClientCIDRs != null) { _visitables.get("serverAddressByClientCIDRs").removeAll(this.serverAddressByClientCIDRs); } if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : - serverAddressByClientCIDRs) { + this.serverAddressByClientCIDRs = new ArrayList(); + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { this.addToServerAddressByClientCIDRs(item); } } else { @@ -342,15 +305,14 @@ public A withServerAddressByClientCIDRs( this.serverAddressByClientCIDRs.clear(); } if (serverAddressByClientCIDRs != null) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : - serverAddressByClientCIDRs) { + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { this.addToServerAddressByClientCIDRs(item); } } return (A) this; } - public java.lang.Boolean hasServerAddressByClientCIDRs() { + public Boolean hasServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty(); } @@ -358,48 +320,38 @@ public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressB return new V1APIGroupFluentImpl.ServerAddressByClientCIDRsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - addNewServerAddressByClientCIDRLike( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item) { - return new io.kubernetes.client.openapi.models.V1APIGroupFluentImpl - .ServerAddressByClientCIDRsNestedImpl(-1, item); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike( + V1ServerAddressByClientCIDR item) { + return new V1APIGroupFluentImpl.ServerAddressByClientCIDRsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - setNewServerAddressByClientCIDRLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item) { - return new io.kubernetes.client.openapi.models.V1APIGroupFluentImpl - .ServerAddressByClientCIDRsNestedImpl(index, item); + public V1APIGroupFluent.ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike( + Integer index, V1ServerAddressByClientCIDR item) { + return new V1APIGroupFluentImpl.ServerAddressByClientCIDRsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editServerAddressByClientCIDR(java.lang.Integer index) { + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( + Integer index) { if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editFirstServerAddressByClientCIDR() { + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editLastServerAddressByClientCIDR() { + public V1APIGroupFluent.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)); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.ServerAddressByClientCIDRsNested - editMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate) { + public V1APIGroupFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR( + Predicate predicate) { int index = -1; for (int i = 0; i < serverAddressByClientCIDRs.size(); i++) { if (predicate.test(serverAddressByClientCIDRs.get(i))) { @@ -412,16 +364,11 @@ public V1APIGroupFluent.ServerAddressByClientCIDRsNested addNewServerAddressB return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - public A addToVersions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { + public A addToVersions(Integer index, V1GroupVersionForDiscovery item) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder>(); + this.versions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(item); + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); _visitables .get("versions") .add(index >= 0 ? index : _visitables.get("versions").size(), builder); @@ -429,16 +376,11 @@ public A addToVersions( return (A) this; } - public A setToVersions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { + public A setToVersions(Integer index, V1GroupVersionForDiscovery item) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder>(); + this.versions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(item); + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); if (index < 0 || index >= _visitables.get("versions").size()) { _visitables.get("versions").add(builder); } else { @@ -454,29 +396,22 @@ public A setToVersions( public A addToVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder>(); + this.versions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item : items) { - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(item); + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); _visitables.get("versions").add(builder); this.versions.add(builder); } return (A) this; } - public A addAllToVersions( - java.util.Collection items) { + public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder>(); + this.versions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item : items) { - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(item); + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); _visitables.get("versions").add(builder); this.versions.add(builder); } @@ -485,9 +420,8 @@ public A addAllToVersions( public A removeFromVersions( io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item : items) { - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(item); + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); _visitables.get("versions").remove(builder); if (this.versions != null) { this.versions.remove(builder); @@ -496,11 +430,9 @@ public A removeFromVersions( return (A) this; } - public A removeAllFromVersions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item : items) { - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(item); + public A removeAllFromVersions(Collection items) { + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); _visitables.get("versions").remove(builder); if (this.versions != null) { this.versions.remove(builder); @@ -509,16 +441,12 @@ public A removeAllFromVersions( return (A) this; } - public A removeMatchingFromVersions( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate) { + public A removeMatchingFromVersions(Predicate predicate) { if (versions == null) return (A) this; - final Iterator each = - versions.iterator(); + final Iterator each = versions.iterator(); final List visitables = _visitables.get("versions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder = each.next(); + V1GroupVersionForDiscoveryBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -532,35 +460,30 @@ public A removeMatchingFromVersions( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getVersions() { + @Deprecated + public List getVersions() { return versions != null ? build(versions) : null; } - public java.util.List - buildVersions() { + public List buildVersions() { return versions != null ? build(versions) : null; } - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildVersion( - java.lang.Integer index) { + public V1GroupVersionForDiscovery buildVersion(Integer index) { return this.versions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildFirstVersion() { + public V1GroupVersionForDiscovery buildFirstVersion() { return this.versions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildLastVersion() { + public V1GroupVersionForDiscovery buildLastVersion() { return this.versions.get(versions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder item : versions) { + public V1GroupVersionForDiscovery buildMatchingVersion( + Predicate predicate) { + for (V1GroupVersionForDiscoveryBuilder item : versions) { if (predicate.test(item)) { return item.build(); } @@ -568,11 +491,8 @@ public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery buildMatch return null; } - public java.lang.Boolean hasMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder item : versions) { + public Boolean hasMatchingVersion(Predicate predicate) { + for (V1GroupVersionForDiscoveryBuilder item : versions) { if (predicate.test(item)) { return true; } @@ -580,14 +500,13 @@ public java.lang.Boolean hasMatchingVersion( return false; } - public A withVersions( - java.util.List versions) { + public A withVersions(List versions) { if (this.versions != null) { _visitables.get("versions").removeAll(this.versions); } if (versions != null) { - this.versions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item : versions) { + this.versions = new ArrayList(); + for (V1GroupVersionForDiscovery item : versions) { this.addToVersions(item); } } else { @@ -602,14 +521,14 @@ public A withVersions( this.versions.clear(); } if (versions != null) { - for (io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item : versions) { + for (V1GroupVersionForDiscovery item : versions) { this.addToVersions(item); } } return (A) this; } - public java.lang.Boolean hasVersions() { + public Boolean hasVersions() { return versions != null && !versions.isEmpty(); } @@ -617,42 +536,35 @@ public V1APIGroupFluent.VersionsNested addNewVersion() { return new V1APIGroupFluentImpl.VersionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested addNewVersionLike( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { - return new io.kubernetes.client.openapi.models.V1APIGroupFluentImpl.VersionsNestedImpl( - -1, item); + public V1APIGroupFluent.VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { + return new V1APIGroupFluentImpl.VersionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested setNewVersionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { - return new io.kubernetes.client.openapi.models.V1APIGroupFluentImpl.VersionsNestedImpl( - index, item); + public V1APIGroupFluent.VersionsNested setNewVersionLike( + Integer index, V1GroupVersionForDiscovery item) { + return new V1APIGroupFluentImpl.VersionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editVersion( - java.lang.Integer index) { + public V1APIGroupFluent.VersionsNested editVersion(Integer index) { if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); return setNewVersionLike(index, buildVersion(index)); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editFirstVersion() { + public V1APIGroupFluent.VersionsNested editFirstVersion() { if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); return setNewVersionLike(0, buildVersion(0)); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editLastVersion() { + public V1APIGroupFluent.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)); } - public io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested editMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> - predicate) { + public V1APIGroupFluent.VersionsNested editMatchingVersion( + Predicate predicate) { int index = -1; for (int i = 0; i < versions.size(); i++) { if (predicate.test(versions.get(i))) { @@ -693,7 +605,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -726,19 +638,16 @@ public java.lang.String toString() { class PreferredVersionNestedImpl extends V1GroupVersionForDiscoveryFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIGroupFluent.PreferredVersionNested, - Nested { - PreferredVersionNestedImpl( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { + implements V1APIGroupFluent.PreferredVersionNested, Nested { + PreferredVersionNestedImpl(V1GroupVersionForDiscovery item) { this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } PreferredVersionNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(this); + this.builder = new V1GroupVersionForDiscoveryBuilder(this); } - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder; + V1GroupVersionForDiscoveryBuilder builder; public N and() { return (N) V1APIGroupFluentImpl.this.withPreferredVersion(builder.build()); @@ -752,24 +661,19 @@ public N endPreferredVersion() { class ServerAddressByClientCIDRsNestedImpl extends V1ServerAddressByClientCIDRFluentImpl< V1APIGroupFluent.ServerAddressByClientCIDRsNested> - implements io.kubernetes.client.openapi.models.V1APIGroupFluent - .ServerAddressByClientCIDRsNested< - N>, - io.kubernetes.client.fluent.Nested { - ServerAddressByClientCIDRsNestedImpl( - java.lang.Integer index, V1ServerAddressByClientCIDR item) { + implements V1APIGroupFluent.ServerAddressByClientCIDRsNested, Nested { + ServerAddressByClientCIDRsNestedImpl(Integer index, V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } ServerAddressByClientCIDRsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(this); + this.builder = new V1ServerAddressByClientCIDRBuilder(this); } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder; - java.lang.Integer index; + V1ServerAddressByClientCIDRBuilder builder; + Integer index; public N and() { return (N) V1APIGroupFluentImpl.this.setToServerAddressByClientCIDRs(index, builder.build()); @@ -782,23 +686,19 @@ public N endServerAddressByClientCIDR() { class VersionsNestedImpl extends V1GroupVersionForDiscoveryFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIGroupFluent.VersionsNested, - io.kubernetes.client.fluent.Nested { - VersionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery item) { + implements V1APIGroupFluent.VersionsNested, Nested { + VersionsNestedImpl(Integer index, V1GroupVersionForDiscovery item) { this.index = index; this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } VersionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder(this); + this.builder = new V1GroupVersionForDiscoveryBuilder(this); } - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder builder; - java.lang.Integer index; + V1GroupVersionForDiscoveryBuilder builder; + Integer index; public N and() { return (N) V1APIGroupFluentImpl.this.setToVersions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java index 629543b967..b1dba3d813 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIGroupListBuilder extends V1APIGroupListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1APIGroupList, - io.kubernetes.client.openapi.models.V1APIGroupListBuilder> { + implements VisitableBuilder { public V1APIGroupListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1APIGroupListBuilder(V1APIGroupListFluent fluent) { this(fluent, false); } - public V1APIGroupListBuilder( - io.kubernetes.client.openapi.models.V1APIGroupListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIGroupListBuilder(V1APIGroupListFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIGroupList(), validationEnabled); } - public V1APIGroupListBuilder( - io.kubernetes.client.openapi.models.V1APIGroupListFluent fluent, - io.kubernetes.client.openapi.models.V1APIGroupList instance) { + public V1APIGroupListBuilder(V1APIGroupListFluent fluent, V1APIGroupList instance) { this(fluent, instance, false); } public V1APIGroupListBuilder( - io.kubernetes.client.openapi.models.V1APIGroupListFluent fluent, - io.kubernetes.client.openapi.models.V1APIGroupList instance, - java.lang.Boolean validationEnabled) { + V1APIGroupListFluent fluent, V1APIGroupList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -56,13 +48,11 @@ public V1APIGroupListBuilder( this.validationEnabled = validationEnabled; } - public V1APIGroupListBuilder(io.kubernetes.client.openapi.models.V1APIGroupList instance) { + public V1APIGroupListBuilder(V1APIGroupList instance) { this(instance, false); } - public V1APIGroupListBuilder( - io.kubernetes.client.openapi.models.V1APIGroupList instance, - java.lang.Boolean validationEnabled) { + public V1APIGroupListBuilder(V1APIGroupList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -73,10 +63,10 @@ public V1APIGroupListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIGroupListFluent fluent; - java.lang.Boolean validationEnabled; + V1APIGroupListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIGroupList build() { + public V1APIGroupList build() { V1APIGroupList buildable = new V1APIGroupList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setGroups(fluent.getGroups()); 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 17acdc226e..8001e34d1e 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 @@ -22,23 +22,21 @@ public interface V1APIGroupListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToGroups(Integer index, V1APIGroup item); - public A setToGroups( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIGroup item); + public A setToGroups(Integer index, V1APIGroup item); public A addToGroups(io.kubernetes.client.openapi.models.V1APIGroup... items); - public A addAllToGroups(Collection items); + public A addAllToGroups(Collection items); public A removeFromGroups(io.kubernetes.client.openapi.models.V1APIGroup... items); - public A removeAllFromGroups( - java.util.Collection items); + public A removeAllFromGroups(Collection items); public A removeMatchingFromGroups(Predicate predicate); @@ -48,54 +46,46 @@ public A removeAllFromGroups( * @return The buildable object. */ @Deprecated - public List getGroups(); + public List getGroups(); - public java.util.List buildGroups(); + public List buildGroups(); - public io.kubernetes.client.openapi.models.V1APIGroup buildGroup(java.lang.Integer index); + public V1APIGroup buildGroup(Integer index); - public io.kubernetes.client.openapi.models.V1APIGroup buildFirstGroup(); + public V1APIGroup buildFirstGroup(); - public io.kubernetes.client.openapi.models.V1APIGroup buildLastGroup(); + public V1APIGroup buildLastGroup(); - public io.kubernetes.client.openapi.models.V1APIGroup buildMatchingGroup( - java.util.function.Predicate - predicate); + public V1APIGroup buildMatchingGroup(Predicate predicate); - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate - predicate); + public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(java.util.List groups); + public A withGroups(List groups); public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups); - public java.lang.Boolean hasGroups(); + public Boolean hasGroups(); public V1APIGroupListFluent.GroupsNested addNewGroup(); - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested addNewGroupLike( - io.kubernetes.client.openapi.models.V1APIGroup item); + public V1APIGroupListFluent.GroupsNested addNewGroupLike(V1APIGroup item); - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested setNewGroupLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIGroup item); + public V1APIGroupListFluent.GroupsNested setNewGroupLike(Integer index, V1APIGroup item); - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editGroup( - java.lang.Integer index); + public V1APIGroupListFluent.GroupsNested editGroup(Integer index); - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editFirstGroup(); + public V1APIGroupListFluent.GroupsNested editFirstGroup(); - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editLastGroup(); + public V1APIGroupListFluent.GroupsNested editLastGroup(); - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editMatchingGroup( - java.util.function.Predicate - predicate); + public V1APIGroupListFluent.GroupsNested editMatchingGroup( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); public interface GroupsNested extends Nested, V1APIGroupFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java index 8349e4b567..1070666d98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluentImpl.java @@ -36,13 +36,13 @@ public V1APIGroupListFluentImpl(V1APIGroupList instance) { private String apiVersion; private ArrayList groups; - private java.lang.String kind; + private String kind; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -51,26 +51,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToGroups(Integer index, io.kubernetes.client.openapi.models.V1APIGroup item) { + public A addToGroups(Integer index, V1APIGroup item) { if (this.groups == null) { - this.groups = - new java.util.ArrayList(); + this.groups = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder = - new io.kubernetes.client.openapi.models.V1APIGroupBuilder(item); + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); _visitables.get("groups").add(index >= 0 ? index : _visitables.get("groups").size(), builder); this.groups.add(index >= 0 ? index : groups.size(), builder); return (A) this; } - public A setToGroups( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIGroup item) { + public A setToGroups(Integer index, V1APIGroup item) { if (this.groups == null) { - this.groups = - new java.util.ArrayList(); + this.groups = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder = - new io.kubernetes.client.openapi.models.V1APIGroupBuilder(item); + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); if (index < 0 || index >= _visitables.get("groups").size()) { _visitables.get("groups").add(builder); } else { @@ -86,26 +81,22 @@ public A setToGroups( public A addToGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { if (this.groups == null) { - this.groups = - new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIGroup item : items) { - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder = - new io.kubernetes.client.openapi.models.V1APIGroupBuilder(item); + 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) { + public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = - new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIGroup item : items) { - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder = - new io.kubernetes.client.openapi.models.V1APIGroupBuilder(item); + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); _visitables.get("groups").add(builder); this.groups.add(builder); } @@ -113,9 +104,8 @@ public A addAllToGroups(Collection items) { - for (io.kubernetes.client.openapi.models.V1APIGroup item : items) { - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder = - new io.kubernetes.client.openapi.models.V1APIGroupBuilder(item); + public A removeAllFromGroups(Collection items) { + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); _visitables.get("groups").remove(builder); if (this.groups != null) { this.groups.remove(builder); @@ -137,13 +125,12 @@ public A removeAllFromGroups( return (A) this; } - public A removeMatchingFromGroups( - Predicate predicate) { + public A removeMatchingFromGroups(Predicate predicate) { if (groups == null) return (A) this; - final Iterator each = groups.iterator(); + final Iterator each = groups.iterator(); final List visitables = _visitables.get("groups"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder = each.next(); + V1APIGroupBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -158,30 +145,28 @@ public A removeMatchingFromGroups( * @return The buildable object. */ @Deprecated - public List getGroups() { + public List getGroups() { return groups != null ? build(groups) : null; } - public java.util.List buildGroups() { + public List buildGroups() { return groups != null ? build(groups) : null; } - public io.kubernetes.client.openapi.models.V1APIGroup buildGroup(java.lang.Integer index) { + public V1APIGroup buildGroup(Integer index) { return this.groups.get(index).build(); } - public io.kubernetes.client.openapi.models.V1APIGroup buildFirstGroup() { + public V1APIGroup buildFirstGroup() { return this.groups.get(0).build(); } - public io.kubernetes.client.openapi.models.V1APIGroup buildLastGroup() { + public V1APIGroup buildLastGroup() { return this.groups.get(groups.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1APIGroup buildMatchingGroup( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIGroupBuilder item : groups) { + public V1APIGroup buildMatchingGroup(Predicate predicate) { + for (V1APIGroupBuilder item : groups) { if (predicate.test(item)) { return item.build(); } @@ -189,10 +174,8 @@ public io.kubernetes.client.openapi.models.V1APIGroup buildMatchingGroup( return null; } - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIGroupBuilder item : groups) { + public Boolean hasMatchingGroup(Predicate predicate) { + for (V1APIGroupBuilder item : groups) { if (predicate.test(item)) { return true; } @@ -200,13 +183,13 @@ public java.lang.Boolean hasMatchingGroup( return false; } - public A withGroups(java.util.List groups) { + public A withGroups(List groups) { if (this.groups != null) { _visitables.get("groups").removeAll(this.groups); } if (groups != null) { - this.groups = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1APIGroup item : groups) { + this.groups = new ArrayList(); + for (V1APIGroup item : groups) { this.addToGroups(item); } } else { @@ -220,14 +203,14 @@ public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups) { this.groups.clear(); } if (groups != null) { - for (io.kubernetes.client.openapi.models.V1APIGroup item : groups) { + for (V1APIGroup item : groups) { this.addToGroups(item); } } return (A) this; } - public java.lang.Boolean hasGroups() { + public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } @@ -235,39 +218,34 @@ public V1APIGroupListFluent.GroupsNested addNewGroup() { return new V1APIGroupListFluentImpl.GroupsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested addNewGroupLike( - io.kubernetes.client.openapi.models.V1APIGroup item) { + public V1APIGroupListFluent.GroupsNested addNewGroupLike(V1APIGroup item) { return new V1APIGroupListFluentImpl.GroupsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested setNewGroupLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIGroup item) { - return new io.kubernetes.client.openapi.models.V1APIGroupListFluentImpl.GroupsNestedImpl( - index, item); + public V1APIGroupListFluent.GroupsNested setNewGroupLike(Integer index, V1APIGroup item) { + return new V1APIGroupListFluentImpl.GroupsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editGroup( - java.lang.Integer index) { + public V1APIGroupListFluent.GroupsNested editGroup(Integer index) { if (groups.size() <= index) throw new RuntimeException("Can't edit groups. Index exceeds size."); return setNewGroupLike(index, buildGroup(index)); } - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editFirstGroup() { + public V1APIGroupListFluent.GroupsNested editFirstGroup() { if (groups.size() == 0) throw new RuntimeException("Can't edit first groups. The list is empty."); return setNewGroupLike(0, buildGroup(0)); } - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editLastGroup() { + public V1APIGroupListFluent.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)); } - public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested editMatchingGroup( - java.util.function.Predicate - predicate) { + public V1APIGroupListFluent.GroupsNested editMatchingGroup( + Predicate predicate) { int index = -1; for (int i = 0; i < groups.size(); i++) { if (predicate.test(groups.get(i))) { @@ -279,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1APIGroupListFluent.GroupsNested return setNewGroupLike(index, buildGroup(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -307,7 +285,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, groups, kind, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -328,18 +306,18 @@ public java.lang.String toString() { class GroupsNestedImpl extends V1APIGroupFluentImpl> implements V1APIGroupListFluent.GroupsNested, Nested { - GroupsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIGroup item) { + GroupsNestedImpl(Integer index, V1APIGroup item) { this.index = index; this.builder = new V1APIGroupBuilder(this, item); } GroupsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1APIGroupBuilder(this); + this.builder = new V1APIGroupBuilder(this); } - io.kubernetes.client.openapi.models.V1APIGroupBuilder builder; - java.lang.Integer index; + V1APIGroupBuilder builder; + Integer index; public N and() { return (N) V1APIGroupListFluentImpl.this.setToGroups(index, builder.build()); 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 7a528fee15..37f01c295e 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIResourceBuilder extends V1APIResourceFluentImpl - implements VisitableBuilder< - V1APIResource, io.kubernetes.client.openapi.models.V1APIResourceBuilder> { + implements VisitableBuilder { public V1APIResourceBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1APIResourceBuilder(V1APIResourceFluent fluent) { this(fluent, false); } - public V1APIResourceBuilder( - io.kubernetes.client.openapi.models.V1APIResourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIResourceBuilder(V1APIResourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIResource(), validationEnabled); } - public V1APIResourceBuilder( - io.kubernetes.client.openapi.models.V1APIResourceFluent fluent, - io.kubernetes.client.openapi.models.V1APIResource instance) { + public V1APIResourceBuilder(V1APIResourceFluent fluent, V1APIResource instance) { this(fluent, instance, false); } public V1APIResourceBuilder( - io.kubernetes.client.openapi.models.V1APIResourceFluent fluent, - io.kubernetes.client.openapi.models.V1APIResource instance, - java.lang.Boolean validationEnabled) { + V1APIResourceFluent fluent, V1APIResource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCategories(instance.getCategories()); @@ -69,13 +62,11 @@ public V1APIResourceBuilder( this.validationEnabled = validationEnabled; } - public V1APIResourceBuilder(io.kubernetes.client.openapi.models.V1APIResource instance) { + public V1APIResourceBuilder(V1APIResource instance) { this(instance, false); } - public V1APIResourceBuilder( - io.kubernetes.client.openapi.models.V1APIResource instance, - java.lang.Boolean validationEnabled) { + public V1APIResourceBuilder(V1APIResource instance, Boolean validationEnabled) { this.fluent = this; this.withCategories(instance.getCategories()); @@ -100,10 +91,10 @@ public V1APIResourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIResourceFluent fluent; - java.lang.Boolean validationEnabled; + V1APIResourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIResource build() { + public V1APIResource build() { V1APIResource buildable = new V1APIResource(); buildable.setCategories(fluent.getCategories()); buildable.setGroup(fluent.getGroup()); 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 283f4ce47e..61b2534727 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 @@ -21,138 +21,135 @@ public interface V1APIResourceFluent> extends Fluent { public A addToCategories(Integer index, String item); - public A setToCategories(java.lang.Integer index, java.lang.String item); + public A setToCategories(Integer index, String item); public A addToCategories(java.lang.String... items); - public A addAllToCategories(Collection items); + public A addAllToCategories(Collection items); public A removeFromCategories(java.lang.String... items); - public A removeAllFromCategories(java.util.Collection items); + public A removeAllFromCategories(Collection items); - public List getCategories(); + public List getCategories(); - public java.lang.String getCategory(java.lang.Integer index); + public String getCategory(Integer index); - public java.lang.String getFirstCategory(); + public String getFirstCategory(); - public java.lang.String getLastCategory(); + public String getLastCategory(); - public java.lang.String getMatchingCategory(Predicate predicate); + public String getMatchingCategory(Predicate predicate); - public Boolean hasMatchingCategory(java.util.function.Predicate predicate); + public Boolean hasMatchingCategory(Predicate predicate); - public A withCategories(java.util.List categories); + public A withCategories(List categories); public A withCategories(java.lang.String... categories); - public java.lang.Boolean hasCategories(); + public Boolean hasCategories(); - public java.lang.String getGroup(); + public String getGroup(); - public A withGroup(java.lang.String group); + public A withGroup(String group); - public java.lang.Boolean hasGroup(); + public Boolean hasGroup(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getNamespaced(); + public Boolean getNamespaced(); - public A withNamespaced(java.lang.Boolean namespaced); + public A withNamespaced(Boolean namespaced); - public java.lang.Boolean hasNamespaced(); + public Boolean hasNamespaced(); - public A addToShortNames(java.lang.Integer index, java.lang.String item); + public A addToShortNames(Integer index, String item); - public A setToShortNames(java.lang.Integer index, java.lang.String item); + public A setToShortNames(Integer index, String item); public A addToShortNames(java.lang.String... items); - public A addAllToShortNames(java.util.Collection items); + public A addAllToShortNames(Collection items); public A removeFromShortNames(java.lang.String... items); - public A removeAllFromShortNames(java.util.Collection items); + public A removeAllFromShortNames(Collection items); - public java.util.List getShortNames(); + public List getShortNames(); - public java.lang.String getShortName(java.lang.Integer index); + public String getShortName(Integer index); - public java.lang.String getFirstShortName(); + public String getFirstShortName(); - public java.lang.String getLastShortName(); + public String getLastShortName(); - public java.lang.String getMatchingShortName( - java.util.function.Predicate predicate); + public String getMatchingShortName(Predicate predicate); - public java.lang.Boolean hasMatchingShortName( - java.util.function.Predicate predicate); + public Boolean hasMatchingShortName(Predicate predicate); - public A withShortNames(java.util.List shortNames); + public A withShortNames(List shortNames); public A withShortNames(java.lang.String... shortNames); - public java.lang.Boolean hasShortNames(); + public Boolean hasShortNames(); - public java.lang.String getSingularName(); + public String getSingularName(); - public A withSingularName(java.lang.String singularName); + public A withSingularName(String singularName); - public java.lang.Boolean hasSingularName(); + public Boolean hasSingularName(); - public java.lang.String getStorageVersionHash(); + public String getStorageVersionHash(); - public A withStorageVersionHash(java.lang.String storageVersionHash); + public A withStorageVersionHash(String storageVersionHash); - public java.lang.Boolean hasStorageVersionHash(); + public Boolean hasStorageVersionHash(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); - public java.lang.String getVersion(); + public String getVersion(); - public A withVersion(java.lang.String version); + public A withVersion(String version); - public java.lang.Boolean hasVersion(); + public Boolean hasVersion(); public A withNamespaced(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java index 9fb195af70..28d6cca4f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluentImpl.java @@ -24,7 +24,7 @@ public class V1APIResourceFluentImpl> extends B implements V1APIResourceFluent { public V1APIResourceFluentImpl() {} - public V1APIResourceFluentImpl(io.kubernetes.client.openapi.models.V1APIResource instance) { + public V1APIResourceFluentImpl(V1APIResource instance) { this.withCategories(instance.getCategories()); this.withGroup(instance.getGroup()); @@ -47,27 +47,27 @@ public V1APIResourceFluentImpl(io.kubernetes.client.openapi.models.V1APIResource } private List categories; - private java.lang.String group; - private java.lang.String kind; - private java.lang.String name; + private String group; + private String kind; + private String name; private Boolean namespaced; - private java.util.List shortNames; - private java.lang.String singularName; - private java.lang.String storageVersionHash; - private java.util.List verbs; - private java.lang.String version; + private List shortNames; + private String singularName; + private String storageVersionHash; + private List verbs; + private String version; - public A addToCategories(Integer index, java.lang.String item) { + public A addToCategories(Integer index, String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList(); } this.categories.add(index, item); return (A) this; } - public A setToCategories(java.lang.Integer index, java.lang.String item) { + public A setToCategories(Integer index, String item) { if (this.categories == null) { - this.categories = new java.util.ArrayList(); + this.categories = new ArrayList(); } this.categories.set(index, item); return (A) this; @@ -75,26 +75,26 @@ public A setToCategories(java.lang.Integer index, java.lang.String item) { public A addToCategories(java.lang.String... items) { if (this.categories == null) { - this.categories = new java.util.ArrayList(); + this.categories = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.categories.add(item); } return (A) this; } - public A addAllToCategories(Collection items) { + public A addAllToCategories(Collection items) { if (this.categories == null) { - this.categories = new java.util.ArrayList(); + this.categories = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.categories.add(item); } return (A) this; } public A removeFromCategories(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.categories != null) { this.categories.remove(item); } @@ -102,8 +102,8 @@ public A removeFromCategories(java.lang.String... items) { return (A) this; } - public A removeAllFromCategories(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromCategories(Collection items) { + for (String item : items) { if (this.categories != null) { this.categories.remove(item); } @@ -111,24 +111,24 @@ public A removeAllFromCategories(java.util.Collection items) { return (A) this; } - public java.util.List getCategories() { + public List getCategories() { return this.categories; } - public java.lang.String getCategory(java.lang.Integer index) { + public String getCategory(Integer index) { return this.categories.get(index); } - public java.lang.String getFirstCategory() { + public String getFirstCategory() { return this.categories.get(0); } - public java.lang.String getLastCategory() { + public String getLastCategory() { return this.categories.get(categories.size() - 1); } - public java.lang.String getMatchingCategory(Predicate predicate) { - for (java.lang.String item : categories) { + public String getMatchingCategory(Predicate predicate) { + for (String item : categories) { if (predicate.test(item)) { return item; } @@ -136,9 +136,8 @@ public java.lang.String getMatchingCategory(Predicate predicat return null; } - public java.lang.Boolean hasMatchingCategory( - java.util.function.Predicate predicate) { - for (java.lang.String item : categories) { + public Boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { if (predicate.test(item)) { return true; } @@ -146,10 +145,10 @@ public java.lang.Boolean hasMatchingCategory( return false; } - public A withCategories(java.util.List categories) { + public A withCategories(List categories) { if (categories != null) { - this.categories = new java.util.ArrayList(); - for (java.lang.String item : categories) { + this.categories = new ArrayList(); + for (String item : categories) { this.addToCategories(item); } } else { @@ -163,80 +162,80 @@ public A withCategories(java.lang.String... categories) { this.categories.clear(); } if (categories != null) { - for (java.lang.String item : categories) { + for (String item : categories) { this.addToCategories(item); } } return (A) this; } - public java.lang.Boolean hasCategories() { + public Boolean hasCategories() { return categories != null && !categories.isEmpty(); } - public java.lang.String getGroup() { + public String getGroup() { return this.group; } - public A withGroup(java.lang.String group) { + public A withGroup(String group) { this.group = group; return (A) this; } - public java.lang.Boolean hasGroup() { + public Boolean hasGroup() { return this.group != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getNamespaced() { + public Boolean getNamespaced() { return this.namespaced; } - public A withNamespaced(java.lang.Boolean namespaced) { + public A withNamespaced(Boolean namespaced) { this.namespaced = namespaced; return (A) this; } - public java.lang.Boolean hasNamespaced() { + public Boolean hasNamespaced() { return this.namespaced != null; } - public A addToShortNames(java.lang.Integer index, java.lang.String item) { + public A addToShortNames(Integer index, String item) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } this.shortNames.add(index, item); return (A) this; } - public A setToShortNames(java.lang.Integer index, java.lang.String item) { + public A setToShortNames(Integer index, String item) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } this.shortNames.set(index, item); return (A) this; @@ -244,26 +243,26 @@ public A setToShortNames(java.lang.Integer index, java.lang.String item) { public A addToShortNames(java.lang.String... items) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.shortNames.add(item); } return (A) this; } - public A addAllToShortNames(java.util.Collection items) { + public A addAllToShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.shortNames.add(item); } return (A) this; } public A removeFromShortNames(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.shortNames != null) { this.shortNames.remove(item); } @@ -271,8 +270,8 @@ public A removeFromShortNames(java.lang.String... items) { return (A) this; } - public A removeAllFromShortNames(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromShortNames(Collection items) { + for (String item : items) { if (this.shortNames != null) { this.shortNames.remove(item); } @@ -280,25 +279,24 @@ public A removeAllFromShortNames(java.util.Collection items) { return (A) this; } - public java.util.List getShortNames() { + public List getShortNames() { return this.shortNames; } - public java.lang.String getShortName(java.lang.Integer index) { + public String getShortName(Integer index) { return this.shortNames.get(index); } - public java.lang.String getFirstShortName() { + public String getFirstShortName() { return this.shortNames.get(0); } - public java.lang.String getLastShortName() { + public String getLastShortName() { return this.shortNames.get(shortNames.size() - 1); } - public java.lang.String getMatchingShortName( - java.util.function.Predicate predicate) { - for (java.lang.String item : shortNames) { + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { return item; } @@ -306,9 +304,8 @@ public java.lang.String getMatchingShortName( return null; } - public java.lang.Boolean hasMatchingShortName( - java.util.function.Predicate predicate) { - for (java.lang.String item : shortNames) { + public Boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { return true; } @@ -316,10 +313,10 @@ public java.lang.Boolean hasMatchingShortName( return false; } - public A withShortNames(java.util.List shortNames) { + public A withShortNames(List shortNames) { if (shortNames != null) { - this.shortNames = new java.util.ArrayList(); - for (java.lang.String item : shortNames) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { this.addToShortNames(item); } } else { @@ -333,54 +330,54 @@ public A withShortNames(java.lang.String... shortNames) { this.shortNames.clear(); } if (shortNames != null) { - for (java.lang.String item : shortNames) { + for (String item : shortNames) { this.addToShortNames(item); } } return (A) this; } - public java.lang.Boolean hasShortNames() { + public Boolean hasShortNames() { return shortNames != null && !shortNames.isEmpty(); } - public java.lang.String getSingularName() { + public String getSingularName() { return this.singularName; } - public A withSingularName(java.lang.String singularName) { + public A withSingularName(String singularName) { this.singularName = singularName; return (A) this; } - public java.lang.Boolean hasSingularName() { + public Boolean hasSingularName() { return this.singularName != null; } - public java.lang.String getStorageVersionHash() { + public String getStorageVersionHash() { return this.storageVersionHash; } - public A withStorageVersionHash(java.lang.String storageVersionHash) { + public A withStorageVersionHash(String storageVersionHash) { this.storageVersionHash = storageVersionHash; return (A) this; } - public java.lang.Boolean hasStorageVersionHash() { + public Boolean hasStorageVersionHash() { return this.storageVersionHash != null; } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -388,26 +385,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -415,8 +412,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -424,25 +421,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -450,9 +446,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -460,10 +455,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -477,27 +472,27 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } - public java.lang.String getVersion() { + public String getVersion() { return this.version; } - public A withVersion(java.lang.String version) { + public A withVersion(String version) { this.version = version; return (A) this; } - public java.lang.Boolean hasVersion() { + public Boolean hasVersion() { return this.version != null; } @@ -539,7 +534,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (categories != null && !categories.isEmpty()) { 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 ba6534a44b..c339c697ae 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIResourceListBuilder extends V1APIResourceListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1APIResourceList, V1APIResourceListBuilder> { + implements VisitableBuilder { public V1APIResourceListBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1APIResourceListBuilder(V1APIResourceListFluent fluent) { this(fluent, false); } - public V1APIResourceListBuilder( - io.kubernetes.client.openapi.models.V1APIResourceListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIResourceListBuilder(V1APIResourceListFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIResourceList(), validationEnabled); } - public V1APIResourceListBuilder( - io.kubernetes.client.openapi.models.V1APIResourceListFluent fluent, - io.kubernetes.client.openapi.models.V1APIResourceList instance) { + public V1APIResourceListBuilder(V1APIResourceListFluent fluent, V1APIResourceList instance) { this(fluent, instance, false); } public V1APIResourceListBuilder( - io.kubernetes.client.openapi.models.V1APIResourceListFluent fluent, - io.kubernetes.client.openapi.models.V1APIResourceList instance, - java.lang.Boolean validationEnabled) { + V1APIResourceListFluent fluent, V1APIResourceList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public V1APIResourceListBuilder( this.validationEnabled = validationEnabled; } - public V1APIResourceListBuilder(io.kubernetes.client.openapi.models.V1APIResourceList instance) { + public V1APIResourceListBuilder(V1APIResourceList instance) { this(instance, false); } - public V1APIResourceListBuilder( - io.kubernetes.client.openapi.models.V1APIResourceList instance, - java.lang.Boolean validationEnabled) { + public V1APIResourceListBuilder(V1APIResourceList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1APIResourceListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIResourceListFluent fluent; - java.lang.Boolean validationEnabled; + V1APIResourceListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIResourceList build() { + public V1APIResourceList build() { V1APIResourceList buildable = new V1APIResourceList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setGroupVersion(fluent.getGroupVersion()); 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 6533cc158b..13db683fe4 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 @@ -22,35 +22,33 @@ public interface V1APIResourceListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getGroupVersion(); + public String getGroupVersion(); - public A withGroupVersion(java.lang.String groupVersion); + public A withGroupVersion(String groupVersion); - public java.lang.Boolean hasGroupVersion(); + public Boolean hasGroupVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); public A addToResources(Integer index, V1APIResource item); - public A setToResources( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIResource item); + public A setToResources(Integer index, V1APIResource item); public A addToResources(io.kubernetes.client.openapi.models.V1APIResource... items); - public A addAllToResources(Collection items); + public A addAllToResources(Collection items); public A removeFromResources(io.kubernetes.client.openapi.models.V1APIResource... items); - public A removeAllFromResources( - java.util.Collection items); + public A removeAllFromResources(Collection items); public A removeMatchingFromResources(Predicate predicate); @@ -60,53 +58,41 @@ public A removeAllFromResources( * @return The buildable object. */ @Deprecated - public List getResources(); + public List getResources(); - public java.util.List buildResources(); + public List buildResources(); - public io.kubernetes.client.openapi.models.V1APIResource buildResource(java.lang.Integer index); + public V1APIResource buildResource(Integer index); - public io.kubernetes.client.openapi.models.V1APIResource buildFirstResource(); + public V1APIResource buildFirstResource(); - public io.kubernetes.client.openapi.models.V1APIResource buildLastResource(); + public V1APIResource buildLastResource(); - public io.kubernetes.client.openapi.models.V1APIResource buildMatchingResource( - java.util.function.Predicate - predicate); + public V1APIResource buildMatchingResource(Predicate predicate); - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate - predicate); + public Boolean hasMatchingResource(Predicate predicate); - public A withResources( - java.util.List resources); + public A withResources(List resources); public A withResources(io.kubernetes.client.openapi.models.V1APIResource... resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); public V1APIResourceListFluent.ResourcesNested addNewResource(); - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - addNewResourceLike(io.kubernetes.client.openapi.models.V1APIResource item); + public V1APIResourceListFluent.ResourcesNested addNewResourceLike(V1APIResource item); - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - setNewResourceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIResource item); + public V1APIResourceListFluent.ResourcesNested setNewResourceLike( + Integer index, V1APIResource item); - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editResource(java.lang.Integer index); + public V1APIResourceListFluent.ResourcesNested editResource(Integer index); - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editFirstResource(); + public V1APIResourceListFluent.ResourcesNested editFirstResource(); - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editLastResource(); + public V1APIResourceListFluent.ResourcesNested editLastResource(); - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editMatchingResource( - java.util.function.Predicate - predicate); + public V1APIResourceListFluent.ResourcesNested editMatchingResource( + Predicate predicate); public interface ResourcesNested extends Nested, V1APIResourceFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java index 9c4366abd4..094b1e4ce6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluentImpl.java @@ -37,15 +37,15 @@ public V1APIResourceListFluentImpl(V1APIResourceList instance) { } private String apiVersion; - private java.lang.String groupVersion; - private java.lang.String kind; + private String groupVersion; + private String kind; private ArrayList resources; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,39 +54,37 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getGroupVersion() { + public String getGroupVersion() { return this.groupVersion; } - public A withGroupVersion(java.lang.String groupVersion) { + public A withGroupVersion(String groupVersion) { this.groupVersion = groupVersion; return (A) this; } - public java.lang.Boolean hasGroupVersion() { + public Boolean hasGroupVersion() { return this.groupVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public A addToResources(Integer index, io.kubernetes.client.openapi.models.V1APIResource item) { + public A addToResources(Integer index, V1APIResource item) { if (this.resources == null) { - this.resources = - new java.util.ArrayList(); + this.resources = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIResourceBuilder(item); + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); _visitables .get("resources") .add(index >= 0 ? index : _visitables.get("resources").size(), builder); @@ -94,14 +92,11 @@ public A addToResources(Integer index, io.kubernetes.client.openapi.models.V1API return (A) this; } - public A setToResources( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIResource item) { + public A setToResources(Integer index, V1APIResource item) { if (this.resources == null) { - this.resources = - new java.util.ArrayList(); + this.resources = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIResourceBuilder(item); + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); if (index < 0 || index >= _visitables.get("resources").size()) { _visitables.get("resources").add(builder); } else { @@ -117,26 +112,22 @@ public A setToResources( public A addToResources(io.kubernetes.client.openapi.models.V1APIResource... items) { if (this.resources == null) { - this.resources = - new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIResource item : items) { - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIResourceBuilder(item); + 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) { + public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = - new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIResource item : items) { - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIResourceBuilder(item); + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); _visitables.get("resources").add(builder); this.resources.add(builder); } @@ -144,9 +135,8 @@ public A addAllToResources(Collection items) { - for (io.kubernetes.client.openapi.models.V1APIResource item : items) { - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIResourceBuilder(item); + public A removeAllFromResources(Collection items) { + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); _visitables.get("resources").remove(builder); if (this.resources != null) { this.resources.remove(builder); @@ -168,14 +156,12 @@ public A removeAllFromResources( return (A) this; } - public A removeMatchingFromResources( - Predicate predicate) { + public A removeMatchingFromResources(Predicate predicate) { if (resources == null) return (A) this; - final Iterator each = - resources.iterator(); + final Iterator each = resources.iterator(); final List visitables = _visitables.get("resources"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder = each.next(); + V1APIResourceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -190,30 +176,28 @@ public A removeMatchingFromResources( * @return The buildable object. */ @Deprecated - public List getResources() { + public List getResources() { return resources != null ? build(resources) : null; } - public java.util.List buildResources() { + public List buildResources() { return resources != null ? build(resources) : null; } - public io.kubernetes.client.openapi.models.V1APIResource buildResource(java.lang.Integer index) { + public V1APIResource buildResource(Integer index) { return this.resources.get(index).build(); } - public io.kubernetes.client.openapi.models.V1APIResource buildFirstResource() { + public V1APIResource buildFirstResource() { return this.resources.get(0).build(); } - public io.kubernetes.client.openapi.models.V1APIResource buildLastResource() { + public V1APIResource buildLastResource() { return this.resources.get(resources.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1APIResource buildMatchingResource( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIResourceBuilder item : resources) { + public V1APIResource buildMatchingResource(Predicate predicate) { + for (V1APIResourceBuilder item : resources) { if (predicate.test(item)) { return item.build(); } @@ -221,10 +205,8 @@ public io.kubernetes.client.openapi.models.V1APIResource buildMatchingResource( return null; } - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIResourceBuilder item : resources) { + public Boolean hasMatchingResource(Predicate predicate) { + for (V1APIResourceBuilder item : resources) { if (predicate.test(item)) { return true; } @@ -232,14 +214,13 @@ public java.lang.Boolean hasMatchingResource( return false; } - public A withResources( - java.util.List resources) { + public A withResources(List resources) { if (this.resources != null) { _visitables.get("resources").removeAll(this.resources); } if (resources != null) { - this.resources = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1APIResource item : resources) { + this.resources = new ArrayList(); + for (V1APIResource item : resources) { this.addToResources(item); } } else { @@ -253,14 +234,14 @@ public A withResources(io.kubernetes.client.openapi.models.V1APIResource... reso this.resources.clear(); } if (resources != null) { - for (io.kubernetes.client.openapi.models.V1APIResource item : resources) { + for (V1APIResource item : resources) { this.addToResources(item); } } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return resources != null && !resources.isEmpty(); } @@ -268,43 +249,35 @@ public V1APIResourceListFluent.ResourcesNested addNewResource() { return new V1APIResourceListFluentImpl.ResourcesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - addNewResourceLike(io.kubernetes.client.openapi.models.V1APIResource item) { + public V1APIResourceListFluent.ResourcesNested addNewResourceLike(V1APIResource item) { return new V1APIResourceListFluentImpl.ResourcesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - setNewResourceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIResource item) { - return new io.kubernetes.client.openapi.models.V1APIResourceListFluentImpl.ResourcesNestedImpl( - index, item); + public V1APIResourceListFluent.ResourcesNested setNewResourceLike( + Integer index, V1APIResource item) { + return new V1APIResourceListFluentImpl.ResourcesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editResource(java.lang.Integer index) { + public V1APIResourceListFluent.ResourcesNested editResource(Integer index) { if (resources.size() <= index) throw new RuntimeException("Can't edit resources. Index exceeds size."); return setNewResourceLike(index, buildResource(index)); } - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editFirstResource() { + public V1APIResourceListFluent.ResourcesNested editFirstResource() { if (resources.size() == 0) throw new RuntimeException("Can't edit first resources. The list is empty."); return setNewResourceLike(0, buildResource(0)); } - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editLastResource() { + public V1APIResourceListFluent.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)); } - public io.kubernetes.client.openapi.models.V1APIResourceListFluent.ResourcesNested - editMatchingResource( - java.util.function.Predicate - predicate) { + public V1APIResourceListFluent.ResourcesNested editMatchingResource( + Predicate predicate) { int index = -1; for (int i = 0; i < resources.size(); i++) { if (predicate.test(resources.get(i))) { @@ -334,7 +307,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, groupVersion, kind, resources, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -360,19 +333,18 @@ public java.lang.String toString() { class ResourcesNestedImpl extends V1APIResourceFluentImpl> implements V1APIResourceListFluent.ResourcesNested, Nested { - ResourcesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIResource item) { + ResourcesNestedImpl(Integer index, V1APIResource item) { this.index = index; this.builder = new V1APIResourceBuilder(this, item); } ResourcesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1APIResourceBuilder(this); + this.builder = new V1APIResourceBuilder(this); } - io.kubernetes.client.openapi.models.V1APIResourceBuilder builder; - java.lang.Integer index; + V1APIResourceBuilder builder; + Integer index; public N and() { return (N) V1APIResourceListFluentImpl.this.setToResources(index, builder.build()); 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 8c28d531a4..b357898729 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIServiceBuilder extends V1APIServiceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1APIService, - io.kubernetes.client.openapi.models.V1APIServiceBuilder> { + implements VisitableBuilder { public V1APIServiceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1APIServiceBuilder(V1APIServiceFluent fluent) { this(fluent, false); } - public V1APIServiceBuilder( - io.kubernetes.client.openapi.models.V1APIServiceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIServiceBuilder(V1APIServiceFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIService(), validationEnabled); } - public V1APIServiceBuilder( - io.kubernetes.client.openapi.models.V1APIServiceFluent fluent, - io.kubernetes.client.openapi.models.V1APIService instance) { + public V1APIServiceBuilder(V1APIServiceFluent fluent, V1APIService instance) { this(fluent, instance, false); } public V1APIServiceBuilder( - io.kubernetes.client.openapi.models.V1APIServiceFluent fluent, - io.kubernetes.client.openapi.models.V1APIService instance, - java.lang.Boolean validationEnabled) { + V1APIServiceFluent fluent, V1APIService instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1APIServiceBuilder( this.validationEnabled = validationEnabled; } - public V1APIServiceBuilder(io.kubernetes.client.openapi.models.V1APIService instance) { + public V1APIServiceBuilder(V1APIService instance) { this(instance, false); } - public V1APIServiceBuilder( - io.kubernetes.client.openapi.models.V1APIService instance, - java.lang.Boolean validationEnabled) { + public V1APIServiceBuilder(V1APIService instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1APIServiceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIServiceFluent fluent; - java.lang.Boolean validationEnabled; + V1APIServiceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIService build() { + public V1APIService build() { V1APIService buildable = new V1APIService(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 668f0e54ee..ddf28b5501 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 @@ -16,8 +16,7 @@ public class V1APIServiceConditionBuilder extends V1APIServiceConditionFluentImpl - implements VisitableBuilder< - V1APIServiceCondition, io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder> { + implements VisitableBuilder { public V1APIServiceConditionBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1APIServiceConditionBuilder(Boolean validationEnabled) { this(new V1APIServiceCondition(), validationEnabled); } - public V1APIServiceConditionBuilder( - io.kubernetes.client.openapi.models.V1APIServiceConditionFluent fluent) { + public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent) { this(fluent, false); } public V1APIServiceConditionBuilder( - io.kubernetes.client.openapi.models.V1APIServiceConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1APIServiceConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIServiceCondition(), validationEnabled); } public V1APIServiceConditionBuilder( - io.kubernetes.client.openapi.models.V1APIServiceConditionFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceCondition instance) { + V1APIServiceConditionFluent fluent, V1APIServiceCondition instance) { this(fluent, instance, false); } public V1APIServiceConditionBuilder( - io.kubernetes.client.openapi.models.V1APIServiceConditionFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceCondition instance, - java.lang.Boolean validationEnabled) { + V1APIServiceConditionFluent fluent, + V1APIServiceCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +57,11 @@ public V1APIServiceConditionBuilder( this.validationEnabled = validationEnabled; } - public V1APIServiceConditionBuilder( - io.kubernetes.client.openapi.models.V1APIServiceCondition instance) { + public V1APIServiceConditionBuilder(V1APIServiceCondition instance) { this(instance, false); } - public V1APIServiceConditionBuilder( - io.kubernetes.client.openapi.models.V1APIServiceCondition instance, - java.lang.Boolean validationEnabled) { + public V1APIServiceConditionBuilder(V1APIServiceCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +76,10 @@ public V1APIServiceConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIServiceConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1APIServiceConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIServiceCondition build() { + public V1APIServiceCondition build() { V1APIServiceCondition buildable = new V1APIServiceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 4ba8844b71..b4f7a1f4ec 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 @@ -20,31 +20,31 @@ public interface V1APIServiceConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java index 9f7678864b..f4c02b9923 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1APIServiceConditionFluentImpl implements V1APIServiceConditionFluent { public V1APIServiceConditionFluentImpl() {} - public V1APIServiceConditionFluentImpl( - io.kubernetes.client.openapi.models.V1APIServiceCondition instance) { + public V1APIServiceConditionFluentImpl(V1APIServiceCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1APIServiceConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 f7878a3f5d..546ddb37ab 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 @@ -19,15 +19,15 @@ public interface V1APIServiceFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1APIServiceFluent> extends Flu @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1APIServiceFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1APIServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested editMetadata(); + public V1APIServiceFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested - editOrNewMetadata(); + public V1APIServiceFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1APIServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1APIServiceSpec getSpec(); - public io.kubernetes.client.openapi.models.V1APIServiceSpec buildSpec(); + public V1APIServiceSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1APIServiceSpec spec); + public A withSpec(V1APIServiceSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1APIServiceFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1APIServiceSpec item); + public V1APIServiceFluent.SpecNested withNewSpecLike(V1APIServiceSpec item); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested editSpec(); + public V1APIServiceFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested editOrNewSpec(); + public V1APIServiceFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1APIServiceSpec item); + public V1APIServiceFluent.SpecNested editOrNewSpecLike(V1APIServiceSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1APIServiceStatus getStatus(); - public io.kubernetes.client.openapi.models.V1APIServiceStatus buildStatus(); + public V1APIServiceStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1APIServiceStatus status); + public A withStatus(V1APIServiceStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1APIServiceFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1APIServiceStatus item); + public V1APIServiceFluent.StatusNested withNewStatusLike(V1APIServiceStatus item); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested editStatus(); + public V1APIServiceFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested editOrNewStatus(); + public V1APIServiceFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1APIServiceStatus item); + public V1APIServiceFluent.StatusNested editOrNewStatusLike(V1APIServiceStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1APIServiceSpecFluent> { + extends Nested, V1APIServiceSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1APIServiceStatusFluent> { + extends Nested, V1APIServiceStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java index 38f11fe858..a296cc1b3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluentImpl.java @@ -21,7 +21,7 @@ public class V1APIServiceFluentImpl> extends Bas implements V1APIServiceFluent { public V1APIServiceFluentImpl() {} - public V1APIServiceFluentImpl(io.kubernetes.client.openapi.models.V1APIService instance) { + public V1APIServiceFluentImpl(V1APIService instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1APIServiceFluentImpl(io.kubernetes.client.openapi.models.V1APIService i } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1APIServiceSpecBuilder spec; private V1APIServiceStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1APIServiceFluent.MetadataNested withNewMetadata() { return new V1APIServiceFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1APIServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1APIServiceFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested editMetadata() { + public V1APIServiceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested - editOrNewMetadata() { + public V1APIServiceFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1APIServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1APIServiceSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1APIServiceSpec buildSpec() { + public V1APIServiceSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1APIServiceSpec spec) { + public A withSpec(V1APIServiceSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1APIServiceSpecBuilder(spec); + this.spec = new V1APIServiceSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1APIServiceFluent.SpecNested withNewSpec() { return new V1APIServiceFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1APIServiceSpec item) { - return new io.kubernetes.client.openapi.models.V1APIServiceFluentImpl.SpecNestedImpl(item); + public V1APIServiceFluent.SpecNested withNewSpecLike(V1APIServiceSpec item) { + return new V1APIServiceFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested editSpec() { + public V1APIServiceFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1APIServiceSpecBuilder().build()); + public V1APIServiceFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1APIServiceSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1APIServiceSpec item) { + public V1APIServiceFluent.SpecNested editOrNewSpecLike(V1APIServiceSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested edit * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1APIServiceStatus getStatus() { + @Deprecated + public V1APIServiceStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1APIServiceStatus buildStatus() { + public V1APIServiceStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1APIServiceStatus status) { + public A withStatus(V1APIServiceStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1APIServiceStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1APIServiceFluent.StatusNested withNewStatus() { return new V1APIServiceFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1APIServiceStatus item) { - return new io.kubernetes.client.openapi.models.V1APIServiceFluentImpl.StatusNestedImpl(item); + public V1APIServiceFluent.StatusNested withNewStatusLike(V1APIServiceStatus item) { + return new V1APIServiceFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested editStatus() { + public V1APIServiceFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested editOrNewStatus() { + public V1APIServiceFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1APIServiceStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1APIServiceStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1APIServiceStatus item) { + public V1APIServiceFluent.StatusNested editOrNewStatusLike(V1APIServiceStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceFluent.MetadataNested, - Nested { + implements V1APIServiceFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1APIServiceFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1APIServiceSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1APIServiceFluent.SpecNested, Nested { SpecNestedImpl(V1APIServiceSpec item) { this.builder = new V1APIServiceSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1APIServiceSpecBuilder(this); + this.builder = new V1APIServiceSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1APIServiceSpecBuilder builder; + V1APIServiceSpecBuilder builder; public N and() { return (N) V1APIServiceFluentImpl.this.withSpec(builder.build()); @@ -311,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1APIServiceStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1APIServiceStatus item) { + implements V1APIServiceFluent.StatusNested, Nested { + StatusNestedImpl(V1APIServiceStatus item) { this.builder = new V1APIServiceStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1APIServiceStatusBuilder(this); + this.builder = new V1APIServiceStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1APIServiceStatusBuilder builder; + V1APIServiceStatusBuilder builder; public N and() { return (N) V1APIServiceFluentImpl.this.withStatus(builder.build()); 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 b2e78a4a95..364c4c2be8 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIServiceListBuilder extends V1APIServiceListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1APIServiceList, V1APIServiceListBuilder> { + implements VisitableBuilder { public V1APIServiceListBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1APIServiceListBuilder(Boolean validationEnabled) { this(new V1APIServiceList(), validationEnabled); } - public V1APIServiceListBuilder( - io.kubernetes.client.openapi.models.V1APIServiceListFluent fluent) { + public V1APIServiceListBuilder(V1APIServiceListFluent fluent) { this(fluent, false); } - public V1APIServiceListBuilder( - io.kubernetes.client.openapi.models.V1APIServiceListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIServiceListBuilder(V1APIServiceListFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIServiceList(), validationEnabled); } - public V1APIServiceListBuilder( - io.kubernetes.client.openapi.models.V1APIServiceListFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceList instance) { + public V1APIServiceListBuilder(V1APIServiceListFluent fluent, V1APIServiceList instance) { this(fluent, instance, false); } public V1APIServiceListBuilder( - io.kubernetes.client.openapi.models.V1APIServiceListFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceList instance, - java.lang.Boolean validationEnabled) { + V1APIServiceListFluent fluent, V1APIServiceList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1APIServiceListBuilder( this.validationEnabled = validationEnabled; } - public V1APIServiceListBuilder(io.kubernetes.client.openapi.models.V1APIServiceList instance) { + public V1APIServiceListBuilder(V1APIServiceList instance) { this(instance, false); } - public V1APIServiceListBuilder( - io.kubernetes.client.openapi.models.V1APIServiceList instance, - java.lang.Boolean validationEnabled) { + public V1APIServiceListBuilder(V1APIServiceList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1APIServiceListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIServiceListFluent fluent; - java.lang.Boolean validationEnabled; + V1APIServiceListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIServiceList build() { + public V1APIServiceList build() { V1APIServiceList buildable = new V1APIServiceList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 158e4e0aff..b79f6baa22 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 @@ -22,23 +22,21 @@ public interface V1APIServiceListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1APIService item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIService item); + public A setToItems(Integer index, V1APIService item); public A addToItems(io.kubernetes.client.openapi.models.V1APIService... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1APIService... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,82 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1APIService buildItem(java.lang.Integer index); + public V1APIService buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1APIService buildFirstItem(); + public V1APIService buildFirstItem(); - public io.kubernetes.client.openapi.models.V1APIService buildLastItem(); + public V1APIService buildLastItem(); - public io.kubernetes.client.openapi.models.V1APIService buildMatchingItem( - java.util.function.Predicate - predicate); + public V1APIService buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1APIService... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1APIServiceListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1APIService item); + public V1APIServiceListFluent.ItemsNested addNewItemLike(V1APIService item); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIService item); + public V1APIServiceListFluent.ItemsNested setNewItemLike(Integer index, V1APIService item); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1APIServiceListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editFirstItem(); + public V1APIServiceListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editLastItem(); + public V1APIServiceListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1APIServiceListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1APIServiceListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1APIServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - editMetadata(); + public V1APIServiceListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - editOrNewMetadata(); + public V1APIServiceListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1APIServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1APIServiceFluent> { @@ -133,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java index 19e31cbc36..b7d9dbd42d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluentImpl.java @@ -38,14 +38,14 @@ public V1APIServiceListFluentImpl(V1APIServiceList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1APIService item) { + public A addToItems(Integer index, V1APIService item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceBuilder(item); + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIService item) { + public A setToItems(Integer index, V1APIService item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceBuilder(item); + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1APIService... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIService item : items) { - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIService item : items) { - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceBuilder(item); + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1APIService item : items) { - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder = each.next(); + V1APIServiceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1APIService buildItem(java.lang.Integer index) { + public V1APIService buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1APIService buildFirstItem() { + public V1APIService buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1APIService buildLastItem() { + public V1APIService buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1APIService buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIServiceBuilder item : items) { + public V1APIService buildMatchingItem(Predicate predicate) { + for (V1APIServiceBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1APIService buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIServiceBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1APIServiceBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1APIService item : items) { + this.items = new ArrayList(); + for (V1APIService item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1APIService... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1APIService item : items) { + for (V1APIService item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1APIServiceListFluent.ItemsNested addNewItem() { return new V1APIServiceListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1APIService item) { + public V1APIServiceListFluent.ItemsNested addNewItemLike(V1APIService item) { return new V1APIServiceListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIService item) { - return new io.kubernetes.client.openapi.models.V1APIServiceListFluentImpl.ItemsNestedImpl( - index, item); + public V1APIServiceListFluent.ItemsNested setNewItemLike(Integer index, V1APIService item) { + return new V1APIServiceListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1APIServiceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editFirstItem() { + public V1APIServiceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editLastItem() { + public V1APIServiceListFluent.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 io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1APIServiceListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1APIServiceListFluent.MetadataNested withNewMetadata() { return new V1APIServiceListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1APIServiceListFluentImpl.MetadataNestedImpl( - item); + public V1APIServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1APIServiceListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - editMetadata() { + public V1APIServiceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - editOrNewMetadata() { + public V1APIServiceListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1APIServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,21 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1APIServiceFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIService item) { + implements V1APIServiceListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1APIService item) { this.index = index; this.builder = new V1APIServiceBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1APIServiceBuilder(this); + this.builder = new V1APIServiceBuilder(this); } - io.kubernetes.client.openapi.models.V1APIServiceBuilder builder; - java.lang.Integer index; + V1APIServiceBuilder builder; + Integer index; public N and() { return (N) V1APIServiceListFluentImpl.this.setToItems(index, builder.build()); @@ -414,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1APIServiceListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1APIServiceListFluentImpl.this.withMetadata(builder.build()); 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 f2f2ea0f19..610b8b750d 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluentImpl - implements VisitableBuilder< - V1APIServiceSpec, io.kubernetes.client.openapi.models.V1APIServiceSpecBuilder> { + implements VisitableBuilder { public V1APIServiceSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent) { this(fluent, false); } - public V1APIServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1APIServiceSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIServiceSpec(), validationEnabled); } - public V1APIServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1APIServiceSpecFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceSpec instance) { + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent, V1APIServiceSpec instance) { this(fluent, instance, false); } public V1APIServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1APIServiceSpecFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceSpec instance, - java.lang.Boolean validationEnabled) { + V1APIServiceSpecFluent fluent, V1APIServiceSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCaBundle(instance.getCaBundle()); @@ -63,13 +56,11 @@ public V1APIServiceSpecBuilder( this.validationEnabled = validationEnabled; } - public V1APIServiceSpecBuilder(io.kubernetes.client.openapi.models.V1APIServiceSpec instance) { + public V1APIServiceSpecBuilder(V1APIServiceSpec instance) { this(instance, false); } - public V1APIServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1APIServiceSpec instance, - java.lang.Boolean validationEnabled) { + public V1APIServiceSpecBuilder(V1APIServiceSpec instance, Boolean validationEnabled) { this.fluent = this; this.withCaBundle(instance.getCaBundle()); @@ -88,10 +79,10 @@ public V1APIServiceSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIServiceSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1APIServiceSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIServiceSpec build() { + public V1APIServiceSpec build() { V1APIServiceSpec buildable = new V1APIServiceSpec(); buildable.setCaBundle(fluent.getCaBundle()); buildable.setGroup(fluent.getGroup()); 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 46eae3e999..524a462e1f 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 @@ -24,35 +24,35 @@ public interface V1APIServiceSpecFluent> ext public A addToCaBundle(Integer index, Byte item); - public A setToCaBundle(java.lang.Integer index, java.lang.Byte item); + public A setToCaBundle(Integer index, Byte item); public A addToCaBundle(java.lang.Byte... items); - public A addAllToCaBundle(Collection items); + public A addAllToCaBundle(Collection items); public A removeFromCaBundle(java.lang.Byte... items); - public A removeAllFromCaBundle(java.util.Collection items); + public A removeAllFromCaBundle(Collection items); public Boolean hasCaBundle(); public String getGroup(); - public A withGroup(java.lang.String group); + public A withGroup(String group); - public java.lang.Boolean hasGroup(); + public Boolean hasGroup(); - public java.lang.Integer getGroupPriorityMinimum(); + public Integer getGroupPriorityMinimum(); - public A withGroupPriorityMinimum(java.lang.Integer groupPriorityMinimum); + public A withGroupPriorityMinimum(Integer groupPriorityMinimum); - public java.lang.Boolean hasGroupPriorityMinimum(); + public Boolean hasGroupPriorityMinimum(); - public java.lang.Boolean getInsecureSkipTLSVerify(); + public Boolean getInsecureSkipTLSVerify(); - public A withInsecureSkipTLSVerify(java.lang.Boolean insecureSkipTLSVerify); + public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify); - public java.lang.Boolean hasInsecureSkipTLSVerify(); + public Boolean hasInsecureSkipTLSVerify(); /** * This method has been deprecated, please use method buildService instead. @@ -62,39 +62,35 @@ public interface V1APIServiceSpecFluent> ext @Deprecated public ApiregistrationV1ServiceReference getService(); - public io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference buildService(); + public ApiregistrationV1ServiceReference buildService(); - public A withService( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference service); + public A withService(ApiregistrationV1ServiceReference service); - public java.lang.Boolean hasService(); + public Boolean hasService(); public V1APIServiceSpecFluent.ServiceNested withNewService(); - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested - withNewServiceLike( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference item); + public V1APIServiceSpecFluent.ServiceNested withNewServiceLike( + ApiregistrationV1ServiceReference item); - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested editService(); + public V1APIServiceSpecFluent.ServiceNested editService(); - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested - editOrNewService(); + public V1APIServiceSpecFluent.ServiceNested editOrNewService(); - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested - editOrNewServiceLike( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference item); + public V1APIServiceSpecFluent.ServiceNested editOrNewServiceLike( + ApiregistrationV1ServiceReference item); - public java.lang.String getVersion(); + public String getVersion(); - public A withVersion(java.lang.String version); + public A withVersion(String version); - public java.lang.Boolean hasVersion(); + public Boolean hasVersion(); - public java.lang.Integer getVersionPriority(); + public Integer getVersionPriority(); - public A withVersionPriority(java.lang.Integer versionPriority); + public A withVersionPriority(Integer versionPriority); - public java.lang.Boolean hasVersionPriority(); + public Boolean hasVersionPriority(); public A withInsecureSkipTLSVerify(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java index b6ba86500e..8ecfe330f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluentImpl.java @@ -24,7 +24,7 @@ public class V1APIServiceSpecFluentImpl> ext implements V1APIServiceSpecFluent { public V1APIServiceSpecFluentImpl() {} - public V1APIServiceSpecFluentImpl(io.kubernetes.client.openapi.models.V1APIServiceSpec instance) { + public V1APIServiceSpecFluentImpl(V1APIServiceSpec instance) { this.withCaBundle(instance.getCaBundle()); this.withGroup(instance.getGroup()); @@ -45,8 +45,8 @@ public V1APIServiceSpecFluentImpl(io.kubernetes.client.openapi.models.V1APIServi private Integer groupPriorityMinimum; private Boolean insecureSkipTLSVerify; private ApiregistrationV1ServiceReferenceBuilder service; - private java.lang.String version; - private java.lang.Integer versionPriority; + private String version; + private Integer versionPriority; public A withCaBundle(byte... caBundle) { if (this.caBundle != null) { @@ -74,17 +74,17 @@ public byte[] getCaBundle() { return result; } - public A addToCaBundle(java.lang.Integer index, java.lang.Byte item) { + public A addToCaBundle(Integer index, Byte item) { if (this.caBundle == null) { - this.caBundle = new ArrayList(); + this.caBundle = new ArrayList(); } this.caBundle.add(index, item); return (A) this; } - public A setToCaBundle(java.lang.Integer index, java.lang.Byte item) { + public A setToCaBundle(Integer index, Byte item) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } this.caBundle.set(index, item); return (A) this; @@ -92,26 +92,26 @@ public A setToCaBundle(java.lang.Integer index, java.lang.Byte item) { public A addToCaBundle(java.lang.Byte... items) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.caBundle.add(item); } return (A) this; } - public A addAllToCaBundle(Collection items) { + public A addAllToCaBundle(Collection items) { if (this.caBundle == null) { - this.caBundle = new java.util.ArrayList(); + this.caBundle = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.caBundle.add(item); } return (A) this; } public A removeFromCaBundle(java.lang.Byte... items) { - for (java.lang.Byte item : items) { + for (Byte item : items) { if (this.caBundle != null) { this.caBundle.remove(item); } @@ -119,8 +119,8 @@ public A removeFromCaBundle(java.lang.Byte... items) { return (A) this; } - public A removeAllFromCaBundle(java.util.Collection items) { - for (java.lang.Byte item : items) { + public A removeAllFromCaBundle(Collection items) { + for (Byte item : items) { if (this.caBundle != null) { this.caBundle.remove(item); } @@ -128,46 +128,46 @@ public A removeAllFromCaBundle(java.util.Collection items) { return (A) this; } - public java.lang.Boolean hasCaBundle() { + public Boolean hasCaBundle() { return caBundle != null && !caBundle.isEmpty(); } - public java.lang.String getGroup() { + public String getGroup() { return this.group; } - public A withGroup(java.lang.String group) { + public A withGroup(String group) { this.group = group; return (A) this; } - public java.lang.Boolean hasGroup() { + public Boolean hasGroup() { return this.group != null; } - public java.lang.Integer getGroupPriorityMinimum() { + public Integer getGroupPriorityMinimum() { return this.groupPriorityMinimum; } - public A withGroupPriorityMinimum(java.lang.Integer groupPriorityMinimum) { + public A withGroupPriorityMinimum(Integer groupPriorityMinimum) { this.groupPriorityMinimum = groupPriorityMinimum; return (A) this; } - public java.lang.Boolean hasGroupPriorityMinimum() { + public Boolean hasGroupPriorityMinimum() { return this.groupPriorityMinimum != null; } - public java.lang.Boolean getInsecureSkipTLSVerify() { + public Boolean getInsecureSkipTLSVerify() { return this.insecureSkipTLSVerify; } - public A withInsecureSkipTLSVerify(java.lang.Boolean insecureSkipTLSVerify) { + public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { this.insecureSkipTLSVerify = insecureSkipTLSVerify; return (A) this; } - public java.lang.Boolean hasInsecureSkipTLSVerify() { + public Boolean hasInsecureSkipTLSVerify() { return this.insecureSkipTLSVerify != null; } @@ -181,22 +181,23 @@ public ApiregistrationV1ServiceReference getService() { return this.service != null ? this.service.build() : null; } - public io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference buildService() { + public ApiregistrationV1ServiceReference buildService() { return this.service != null ? this.service.build() : null; } - public A withService( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference service) { + public A withService(ApiregistrationV1ServiceReference service) { _visitables.get("service").remove(this.service); if (service != null) { - this.service = - new io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceBuilder(service); + this.service = new ApiregistrationV1ServiceReferenceBuilder(service); _visitables.get("service").add(this.service); + } else { + this.service = null; + _visitables.get("service").remove(this.service); } return (A) this; } - public java.lang.Boolean hasService() { + public Boolean hasService() { return this.service != null; } @@ -204,54 +205,50 @@ public V1APIServiceSpecFluent.ServiceNested withNewService() { return new V1APIServiceSpecFluentImpl.ServiceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested - withNewServiceLike( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference item) { + public V1APIServiceSpecFluent.ServiceNested withNewServiceLike( + ApiregistrationV1ServiceReference item) { return new V1APIServiceSpecFluentImpl.ServiceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested editService() { + public V1APIServiceSpecFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested - editOrNewService() { + public V1APIServiceSpecFluent.ServiceNested editOrNewService() { return withNewServiceLike( getService() != null ? getService() - : new io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceBuilder() - .build()); + : new ApiregistrationV1ServiceReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested - editOrNewServiceLike( - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference item) { + public V1APIServiceSpecFluent.ServiceNested editOrNewServiceLike( + ApiregistrationV1ServiceReference item) { return withNewServiceLike(getService() != null ? getService() : item); } - public java.lang.String getVersion() { + public String getVersion() { return this.version; } - public A withVersion(java.lang.String version) { + public A withVersion(String version) { this.version = version; return (A) this; } - public java.lang.Boolean hasVersion() { + public Boolean hasVersion() { return this.version != null; } - public java.lang.Integer getVersionPriority() { + public Integer getVersionPriority() { return this.versionPriority; } - public A withVersionPriority(java.lang.Integer versionPriority) { + public A withVersionPriority(Integer versionPriority) { this.versionPriority = versionPriority; return (A) this; } - public java.lang.Boolean hasVersionPriority() { + public Boolean hasVersionPriority() { return this.versionPriority != null; } @@ -287,7 +284,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (caBundle != null && !caBundle.isEmpty()) { @@ -328,18 +325,16 @@ public A withInsecureSkipTLSVerify() { class ServiceNestedImpl extends ApiregistrationV1ServiceReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceSpecFluent.ServiceNested, - Nested { - ServiceNestedImpl(io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReference item) { + implements V1APIServiceSpecFluent.ServiceNested, Nested { + ServiceNestedImpl(ApiregistrationV1ServiceReference item) { this.builder = new ApiregistrationV1ServiceReferenceBuilder(this, item); } ServiceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceBuilder(this); + this.builder = new ApiregistrationV1ServiceReferenceBuilder(this); } - io.kubernetes.client.openapi.models.ApiregistrationV1ServiceReferenceBuilder builder; + ApiregistrationV1ServiceReferenceBuilder builder; public N and() { return (N) V1APIServiceSpecFluentImpl.this.withService(builder.build()); 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 3841871730..8f37a189fa 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 @@ -16,9 +16,7 @@ public class V1APIServiceStatusBuilder extends V1APIServiceStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1APIServiceStatus, - io.kubernetes.client.openapi.models.V1APIServiceStatusBuilder> { + implements VisitableBuilder { public V1APIServiceStatusBuilder() { this(false); } @@ -31,46 +29,38 @@ public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent) { this(fluent, false); } - public V1APIServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1APIServiceStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIServiceStatus(), validationEnabled); } public V1APIServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1APIServiceStatusFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceStatus instance) { + V1APIServiceStatusFluent fluent, V1APIServiceStatus instance) { this(fluent, instance, false); } public V1APIServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1APIServiceStatusFluent fluent, - io.kubernetes.client.openapi.models.V1APIServiceStatus instance, - java.lang.Boolean validationEnabled) { + V1APIServiceStatusFluent fluent, V1APIServiceStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - public V1APIServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1APIServiceStatus instance) { + public V1APIServiceStatusBuilder(V1APIServiceStatus instance) { this(instance, false); } - public V1APIServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1APIServiceStatus instance, - java.lang.Boolean validationEnabled) { + public V1APIServiceStatusBuilder(V1APIServiceStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIServiceStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1APIServiceStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIServiceStatus build() { + public V1APIServiceStatus build() { V1APIServiceStatus buildable = new V1APIServiceStatus(); buildable.setConditions(fluent.getConditions()); return buildable; 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 70a27f6787..26b586f4e7 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 @@ -22,18 +22,15 @@ public interface V1APIServiceStatusFluent> extends Fluent { public A addToConditions(Integer index, V1APIServiceCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIServiceCondition item); + public A setToConditions(Integer index, V1APIServiceCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -43,56 +40,43 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildCondition( - java.lang.Integer index); + public V1APIServiceCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildFirstCondition(); + public V1APIServiceCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildLastCondition(); + public V1APIServiceCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1APIServiceCondition buildMatchingCondition( + Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1APIServiceStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1APIServiceCondition item); + public V1APIServiceStatusFluent.ConditionsNested addNewConditionLike( + V1APIServiceCondition item); - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIServiceCondition item); + public V1APIServiceStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1APIServiceCondition item); - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1APIServiceStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editFirstCondition(); + public V1APIServiceStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editLastCondition(); + public V1APIServiceStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder> - predicate); + public V1APIServiceStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, V1APIServiceConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java index 8850664d27..4b86713ef5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluentImpl.java @@ -26,20 +26,17 @@ public class V1APIServiceStatusFluentImpl> extends BaseFluent implements V1APIServiceStatusFluent { public V1APIServiceStatusFluentImpl() {} - public V1APIServiceStatusFluentImpl( - io.kubernetes.client.openapi.models.V1APIServiceStatus instance) { + public V1APIServiceStatusFluentImpl(V1APIServiceStatus instance) { this.withConditions(instance.getConditions()); } private ArrayList conditions; - public A addToConditions( - Integer index, io.kubernetes.client.openapi.models.V1APIServiceCondition item) { + public A addToConditions(Integer index, V1APIServiceCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(item); + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -47,15 +44,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIServiceCondition item) { + public A setToConditions(Integer index, V1APIServiceCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(item); + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -71,29 +64,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIServiceCondition item : items) { - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1APIServiceCondition item : items) { - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(item); + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -102,9 +88,8 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { - for (io.kubernetes.client.openapi.models.V1APIServiceCondition item : items) { - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(item); + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -113,11 +98,9 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1APIServiceCondition item : items) { - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -126,14 +109,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder = each.next(); + V1APIServiceConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -148,32 +129,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildCondition( - java.lang.Integer index) { + public V1APIServiceCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildFirstCondition() { + public V1APIServiceCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildLastCondition() { + public V1APIServiceCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1APIServiceCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder item : conditions) { + public V1APIServiceCondition buildMatchingCondition( + Predicate predicate) { + for (V1APIServiceConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -181,10 +159,8 @@ public io.kubernetes.client.openapi.models.V1APIServiceCondition buildMatchingCo return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1APIServiceConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -192,14 +168,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1APIServiceCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1APIServiceCondition item : conditions) { this.addToConditions(item); } } else { @@ -213,14 +188,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceConditio this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1APIServiceCondition item : conditions) { + for (V1APIServiceCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -228,44 +203,36 @@ public V1APIServiceStatusFluent.ConditionsNested addNewCondition() { return new V1APIServiceStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1APIServiceCondition item) { + public V1APIServiceStatusFluent.ConditionsNested addNewConditionLike( + V1APIServiceCondition item) { return new V1APIServiceStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIServiceCondition item) { - return new io.kubernetes.client.openapi.models.V1APIServiceStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1APIServiceStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1APIServiceCondition item) { + return new V1APIServiceStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1APIServiceStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editFirstCondition() { + public V1APIServiceStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editLastCondition() { + public V1APIServiceStatusFluent.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 io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder> - predicate) { + public V1APIServiceStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -303,21 +270,19 @@ public String toString() { class ConditionsNestedImpl extends V1APIServiceConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1APIServiceStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1APIServiceCondition item) { + implements V1APIServiceStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1APIServiceCondition item) { this.index = index; this.builder = new V1APIServiceConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder(this); + this.builder = new V1APIServiceConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1APIServiceConditionBuilder builder; - java.lang.Integer index; + V1APIServiceConditionBuilder builder; + Integer index; public N and() { return (N) V1APIServiceStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java index bae4c097e1..40e4ca10a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1APIVersionsBuilder extends V1APIVersionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1APIVersions, V1APIVersionsBuilder> { + implements VisitableBuilder { public V1APIVersionsBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1APIVersionsBuilder(V1APIVersionsFluent fluent) { this(fluent, false); } - public V1APIVersionsBuilder( - io.kubernetes.client.openapi.models.V1APIVersionsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1APIVersionsBuilder(V1APIVersionsFluent fluent, Boolean validationEnabled) { this(fluent, new V1APIVersions(), validationEnabled); } - public V1APIVersionsBuilder( - io.kubernetes.client.openapi.models.V1APIVersionsFluent fluent, - io.kubernetes.client.openapi.models.V1APIVersions instance) { + public V1APIVersionsBuilder(V1APIVersionsFluent fluent, V1APIVersions instance) { this(fluent, instance, false); } public V1APIVersionsBuilder( - io.kubernetes.client.openapi.models.V1APIVersionsFluent fluent, - io.kubernetes.client.openapi.models.V1APIVersions instance, - java.lang.Boolean validationEnabled) { + V1APIVersionsFluent fluent, V1APIVersions instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public V1APIVersionsBuilder( this.validationEnabled = validationEnabled; } - public V1APIVersionsBuilder(io.kubernetes.client.openapi.models.V1APIVersions instance) { + public V1APIVersionsBuilder(V1APIVersions instance) { this(instance, false); } - public V1APIVersionsBuilder( - io.kubernetes.client.openapi.models.V1APIVersions instance, - java.lang.Boolean validationEnabled) { + public V1APIVersionsBuilder(V1APIVersions instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1APIVersionsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1APIVersionsFluent fluent; - java.lang.Boolean validationEnabled; + V1APIVersionsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1APIVersions build() { + public V1APIVersions build() { V1APIVersions buildable = new V1APIVersions(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 c3d30ac2a6..c9fdd1b6c6 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 @@ -22,33 +22,29 @@ public interface V1APIVersionsFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); - public A setToServerAddressByClientCIDRs( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item); + public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item); public A addToServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - public A addAllToServerAddressByClientCIDRs( - Collection items); + public A addAllToServerAddressByClientCIDRs(Collection items); public A removeFromServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items); - public A removeAllFromServerAddressByClientCIDRs( - java.util.Collection items); + public A removeAllFromServerAddressByClientCIDRs(Collection items); public A removeMatchingFromServerAddressByClientCIDRs( Predicate predicate); @@ -59,99 +55,81 @@ public A removeMatchingFromServerAddressByClientCIDRs( * @return The buildable object. */ @Deprecated - public List - getServerAddressByClientCIDRs(); + public List getServerAddressByClientCIDRs(); - public java.util.List - buildServerAddressByClientCIDRs(); + public List buildServerAddressByClientCIDRs(); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildServerAddressByClientCIDR(java.lang.Integer index); + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildFirstServerAddressByClientCIDR(); + public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildLastServerAddressByClientCIDR(); + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate); + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( + Predicate predicate); - public java.lang.Boolean hasMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate); + public Boolean hasMatchingServerAddressByClientCIDR( + Predicate predicate); public A withServerAddressByClientCIDRs( - java.util.List - serverAddressByClientCIDRs); + List serverAddressByClientCIDRs); public A withServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs); - public java.lang.Boolean hasServerAddressByClientCIDRs(); + public Boolean hasServerAddressByClientCIDRs(); public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested - addNewServerAddressByClientCIDRLike( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested + addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item); - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested - setNewServerAddressByClientCIDRLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested + setNewServerAddressByClientCIDRLike(Integer index, V1ServerAddressByClientCIDR item); - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editServerAddressByClientCIDR(java.lang.Integer index); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( + Integer index); - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR(); - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate); + Predicate predicate); - public A addToVersions(java.lang.Integer index, java.lang.String item); + public A addToVersions(Integer index, String item); - public A setToVersions(java.lang.Integer index, java.lang.String item); + public A setToVersions(Integer index, String item); public A addToVersions(java.lang.String... items); - public A addAllToVersions(java.util.Collection items); + public A addAllToVersions(Collection items); public A removeFromVersions(java.lang.String... items); - public A removeAllFromVersions(java.util.Collection items); + public A removeAllFromVersions(Collection items); - public java.util.List getVersions(); + public List getVersions(); - public java.lang.String getVersion(java.lang.Integer index); + public String getVersion(Integer index); - public java.lang.String getFirstVersion(); + public String getFirstVersion(); - public java.lang.String getLastVersion(); + public String getLastVersion(); - public java.lang.String getMatchingVersion( - java.util.function.Predicate predicate); + public String getMatchingVersion(Predicate predicate); - public java.lang.Boolean hasMatchingVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingVersion(Predicate predicate); - public A withVersions(java.util.List versions); + public A withVersions(List versions); public A withVersions(java.lang.String... versions); - public java.lang.Boolean hasVersions(); + public Boolean hasVersions(); public interface ServerAddressByClientCIDRsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java index 15b9f706c2..abb8ce2496 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluentImpl.java @@ -26,7 +26,7 @@ public class V1APIVersionsFluentImpl> extends B implements V1APIVersionsFluent { public V1APIVersionsFluentImpl() {} - public V1APIVersionsFluentImpl(io.kubernetes.client.openapi.models.V1APIVersions instance) { + public V1APIVersionsFluentImpl(V1APIVersions instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -37,15 +37,15 @@ public V1APIVersionsFluentImpl(io.kubernetes.client.openapi.models.V1APIVersions } private String apiVersion; - private java.lang.String kind; + private String kind; private ArrayList serverAddressByClientCIDRs; - private List versions; + private List versions; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,27 +54,24 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables .get("serverAddressByClientCIDRs") .add(index >= 0 ? index : _visitables.get("serverAddressByClientCIDRs").size(), builder); @@ -83,16 +80,11 @@ public A addToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientC return (A) this; } - public A setToServerAddressByClientCIDRs( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item) { + public A setToServerAddressByClientCIDRs(Integer index, V1ServerAddressByClientCIDR item) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); if (index < 0 || index >= _visitables.get("serverAddressByClientCIDRs").size()) { _visitables.get("serverAddressByClientCIDRs").add(builder); } else { @@ -109,29 +101,22 @@ public A setToServerAddressByClientCIDRs( public A addToServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + 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) { + public A addAllToServerAddressByClientCIDRs(Collection items) { if (this.serverAddressByClientCIDRs == null) { - this.serverAddressByClientCIDRs = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder>(); + this.serverAddressByClientCIDRs = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").add(builder); this.serverAddressByClientCIDRs.add(builder); } @@ -140,9 +125,8 @@ public A addAllToServerAddressByClientCIDRs( public A removeFromServerAddressByClientCIDRs( io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").remove(builder); if (this.serverAddressByClientCIDRs != null) { this.serverAddressByClientCIDRs.remove(builder); @@ -151,11 +135,9 @@ public A removeFromServerAddressByClientCIDRs( return (A) this; } - public A removeAllFromServerAddressByClientCIDRs( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : items) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(item); + public A removeAllFromServerAddressByClientCIDRs(Collection items) { + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); _visitables.get("serverAddressByClientCIDRs").remove(builder); if (this.serverAddressByClientCIDRs != null) { this.serverAddressByClientCIDRs.remove(builder); @@ -165,13 +147,12 @@ public A removeAllFromServerAddressByClientCIDRs( } public A removeMatchingFromServerAddressByClientCIDRs( - Predicate predicate) { + Predicate predicate) { if (serverAddressByClientCIDRs == null) return (A) this; - final Iterator each = - serverAddressByClientCIDRs.iterator(); + final Iterator each = serverAddressByClientCIDRs.iterator(); final List visitables = _visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder = each.next(); + V1ServerAddressByClientCIDRBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -186,38 +167,29 @@ public A removeMatchingFromServerAddressByClientCIDRs( * @return The buildable object. */ @Deprecated - public java.util.List - getServerAddressByClientCIDRs() { + public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public java.util.List - buildServerAddressByClientCIDRs() { + public List buildServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildServerAddressByClientCIDR(java.lang.Integer index) { + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(Integer index) { return this.serverAddressByClientCIDRs.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildFirstServerAddressByClientCIDR() { + public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildLastServerAddressByClientCIDR() { + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR - buildMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder item : - serverAddressByClientCIDRs) { + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR( + Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { return item.build(); } @@ -225,12 +197,9 @@ public A removeMatchingFromServerAddressByClientCIDRs( return null; } - public java.lang.Boolean hasMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder item : - serverAddressByClientCIDRs) { + public Boolean hasMatchingServerAddressByClientCIDR( + Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { return true; } @@ -239,15 +208,13 @@ public java.lang.Boolean hasMatchingServerAddressByClientCIDR( } public A withServerAddressByClientCIDRs( - java.util.List - serverAddressByClientCIDRs) { + List serverAddressByClientCIDRs) { if (this.serverAddressByClientCIDRs != null) { _visitables.get("serverAddressByClientCIDRs").removeAll(this.serverAddressByClientCIDRs); } if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : - serverAddressByClientCIDRs) { + this.serverAddressByClientCIDRs = new ArrayList(); + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { this.addToServerAddressByClientCIDRs(item); } } else { @@ -263,15 +230,14 @@ public A withServerAddressByClientCIDRs( this.serverAddressByClientCIDRs.clear(); } if (serverAddressByClientCIDRs != null) { - for (io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item : - serverAddressByClientCIDRs) { + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { this.addToServerAddressByClientCIDRs(item); } } return (A) this; } - public java.lang.Boolean hasServerAddressByClientCIDRs() { + public Boolean hasServerAddressByClientCIDRs() { return serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty(); } @@ -279,35 +245,31 @@ public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddre return new V1APIVersionsFluentImpl.ServerAddressByClientCIDRsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested - addNewServerAddressByClientCIDRLike( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item) { + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested + addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { return new V1APIVersionsFluentImpl.ServerAddressByClientCIDRsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested - setNewServerAddressByClientCIDRLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR item) { - return new io.kubernetes.client.openapi.models.V1APIVersionsFluentImpl - .ServerAddressByClientCIDRsNestedImpl(index, item); + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested + setNewServerAddressByClientCIDRLike(Integer index, V1ServerAddressByClientCIDR item) { + return new V1APIVersionsFluentImpl.ServerAddressByClientCIDRsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested - editServerAddressByClientCIDR(java.lang.Integer index) { + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editServerAddressByClientCIDR( + Integer index) { if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); } - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { int index = serverAddressByClientCIDRs.size() - 1; if (index < 0) @@ -315,11 +277,9 @@ public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddre return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - public io.kubernetes.client.openapi.models.V1APIVersionsFluent.ServerAddressByClientCIDRsNested + public V1APIVersionsFluent.ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < serverAddressByClientCIDRs.size(); i++) { if (predicate.test(serverAddressByClientCIDRs.get(i))) { @@ -332,17 +292,17 @@ public V1APIVersionsFluent.ServerAddressByClientCIDRsNested addNewServerAddre return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); } - public A addToVersions(java.lang.Integer index, java.lang.String item) { + public A addToVersions(Integer index, String item) { if (this.versions == null) { - this.versions = new java.util.ArrayList(); + this.versions = new ArrayList(); } this.versions.add(index, item); return (A) this; } - public A setToVersions(java.lang.Integer index, java.lang.String item) { + public A setToVersions(Integer index, String item) { if (this.versions == null) { - this.versions = new java.util.ArrayList(); + this.versions = new ArrayList(); } this.versions.set(index, item); return (A) this; @@ -350,26 +310,26 @@ public A setToVersions(java.lang.Integer index, java.lang.String item) { public A addToVersions(java.lang.String... items) { if (this.versions == null) { - this.versions = new java.util.ArrayList(); + this.versions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.versions.add(item); } return (A) this; } - public A addAllToVersions(java.util.Collection items) { + public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = new java.util.ArrayList(); + this.versions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.versions.add(item); } return (A) this; } public A removeFromVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.versions != null) { this.versions.remove(item); } @@ -377,8 +337,8 @@ public A removeFromVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVersions(Collection items) { + for (String item : items) { if (this.versions != null) { this.versions.remove(item); } @@ -386,25 +346,24 @@ public A removeAllFromVersions(java.util.Collection items) { return (A) this; } - public java.util.List getVersions() { + public List getVersions() { return this.versions; } - public java.lang.String getVersion(java.lang.Integer index) { + public String getVersion(Integer index) { return this.versions.get(index); } - public java.lang.String getFirstVersion() { + public String getFirstVersion() { return this.versions.get(0); } - public java.lang.String getLastVersion() { + public String getLastVersion() { return this.versions.get(versions.size() - 1); } - public java.lang.String getMatchingVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : versions) { + public String getMatchingVersion(Predicate predicate) { + for (String item : versions) { if (predicate.test(item)) { return item; } @@ -412,9 +371,8 @@ public java.lang.String getMatchingVersion( return null; } - public java.lang.Boolean hasMatchingVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : versions) { + public Boolean hasMatchingVersion(Predicate predicate) { + for (String item : versions) { if (predicate.test(item)) { return true; } @@ -422,10 +380,10 @@ public java.lang.Boolean hasMatchingVersion( return false; } - public A withVersions(java.util.List versions) { + public A withVersions(List versions) { if (versions != null) { - this.versions = new java.util.ArrayList(); - for (java.lang.String item : versions) { + this.versions = new ArrayList(); + for (String item : versions) { this.addToVersions(item); } } else { @@ -439,14 +397,14 @@ public A withVersions(java.lang.String... versions) { this.versions.clear(); } if (versions != null) { - for (java.lang.String item : versions) { + for (String item : versions) { this.addToVersions(item); } } return (A) this; } - public java.lang.Boolean hasVersions() { + public Boolean hasVersions() { return versions != null && !versions.isEmpty(); } @@ -469,7 +427,7 @@ public int hashCode() { apiVersion, kind, serverAddressByClientCIDRs, versions, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -495,24 +453,19 @@ public java.lang.String toString() { class ServerAddressByClientCIDRsNestedImpl extends V1ServerAddressByClientCIDRFluentImpl< V1APIVersionsFluent.ServerAddressByClientCIDRsNested> - implements io.kubernetes.client.openapi.models.V1APIVersionsFluent - .ServerAddressByClientCIDRsNested< - N>, - Nested { - ServerAddressByClientCIDRsNestedImpl( - java.lang.Integer index, V1ServerAddressByClientCIDR item) { + implements V1APIVersionsFluent.ServerAddressByClientCIDRsNested, Nested { + ServerAddressByClientCIDRsNestedImpl(Integer index, V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } ServerAddressByClientCIDRsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder(this); + this.builder = new V1ServerAddressByClientCIDRBuilder(this); } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder builder; - java.lang.Integer index; + V1ServerAddressByClientCIDRBuilder builder; + Integer index; public N and() { return (N) 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 e1a9e92fbc..ed58329808 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 @@ -17,8 +17,7 @@ public class V1AWSElasticBlockStoreVolumeSourceBuilder extends V1AWSElasticBlockStoreVolumeSourceFluentImpl implements VisitableBuilder< - V1AWSElasticBlockStoreVolumeSource, - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder> { + V1AWSElasticBlockStoreVolumeSource, V1AWSElasticBlockStoreVolumeSourceBuilder> { public V1AWSElasticBlockStoreVolumeSourceBuilder() { this(false); } @@ -28,26 +27,25 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder(Boolean validationEnabled) { } public V1AWSElasticBlockStoreVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceFluent fluent) { + V1AWSElasticBlockStoreVolumeSourceFluent fluent) { this(fluent, false); } public V1AWSElasticBlockStoreVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1AWSElasticBlockStoreVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1AWSElasticBlockStoreVolumeSource(), validationEnabled); } public V1AWSElasticBlockStoreVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource instance) { + V1AWSElasticBlockStoreVolumeSourceFluent fluent, + V1AWSElasticBlockStoreVolumeSource instance) { this(fluent, instance, false); } public V1AWSElasticBlockStoreVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AWSElasticBlockStoreVolumeSourceFluent fluent, + V1AWSElasticBlockStoreVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -60,14 +58,12 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1AWSElasticBlockStoreVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource instance) { + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSource instance) { this(instance, false); } public V1AWSElasticBlockStoreVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AWSElasticBlockStoreVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -80,10 +76,10 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1AWSElasticBlockStoreVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource build() { + public V1AWSElasticBlockStoreVolumeSource build() { V1AWSElasticBlockStoreVolumeSource buildable = new V1AWSElasticBlockStoreVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setPartition(fluent.getPartition()); 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 7d24884984..6dc789d892 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java @@ -20,27 +20,27 @@ public interface V1AWSElasticBlockStoreVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); public Integer getPartition(); - public A withPartition(java.lang.Integer partition); + public A withPartition(Integer partition); - public java.lang.Boolean hasPartition(); + public Boolean hasPartition(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getVolumeID(); + public String getVolumeID(); - public A withVolumeID(java.lang.String volumeID); + public A withVolumeID(String volumeID); - public java.lang.Boolean hasVolumeID(); + public Boolean hasVolumeID(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java index e95e208efd..92d4845fff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1AWSElasticBlockStoreVolumeSourceFluentImpl< extends BaseFluent implements V1AWSElasticBlockStoreVolumeSourceFluent { public V1AWSElasticBlockStoreVolumeSourceFluentImpl() {} - public V1AWSElasticBlockStoreVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource instance) { + public V1AWSElasticBlockStoreVolumeSourceFluentImpl(V1AWSElasticBlockStoreVolumeSource instance) { this.withFsType(instance.getFsType()); this.withPartition(instance.getPartition()); @@ -35,57 +34,57 @@ public V1AWSElasticBlockStoreVolumeSourceFluentImpl( private String fsType; private Integer partition; private Boolean readOnly; - private java.lang.String volumeID; + private String volumeID; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Integer getPartition() { + public Integer getPartition() { return this.partition; } - public A withPartition(java.lang.Integer partition) { + public A withPartition(Integer partition) { this.partition = partition; return (A) this; } - public java.lang.Boolean hasPartition() { + public Boolean hasPartition() { return this.partition != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getVolumeID() { + public String getVolumeID() { return this.volumeID; } - public A withVolumeID(java.lang.String volumeID) { + public A withVolumeID(String volumeID) { this.volumeID = volumeID; return (A) this; } - public java.lang.Boolean hasVolumeID() { + public Boolean hasVolumeID() { return this.volumeID != null; } @@ -106,7 +105,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, partition, readOnly, volumeID, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 86aabe389f..59570b948a 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1AffinityBuilder extends V1AffinityFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1AffinityBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1AffinityBuilder(V1AffinityFluent fluent) { this(fluent, false); } - public V1AffinityBuilder( - io.kubernetes.client.openapi.models.V1AffinityFluent fluent, - java.lang.Boolean validationEnabled) { + public V1AffinityBuilder(V1AffinityFluent fluent, Boolean validationEnabled) { this(fluent, new V1Affinity(), validationEnabled); } - public V1AffinityBuilder( - io.kubernetes.client.openapi.models.V1AffinityFluent fluent, - io.kubernetes.client.openapi.models.V1Affinity instance) { + public V1AffinityBuilder(V1AffinityFluent fluent, V1Affinity instance) { this(fluent, instance, false); } public V1AffinityBuilder( - io.kubernetes.client.openapi.models.V1AffinityFluent fluent, - io.kubernetes.client.openapi.models.V1Affinity instance, - java.lang.Boolean validationEnabled) { + V1AffinityFluent fluent, V1Affinity instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withNodeAffinity(instance.getNodeAffinity()); @@ -54,13 +48,11 @@ public V1AffinityBuilder( this.validationEnabled = validationEnabled; } - public V1AffinityBuilder(io.kubernetes.client.openapi.models.V1Affinity instance) { + public V1AffinityBuilder(V1Affinity instance) { this(instance, false); } - public V1AffinityBuilder( - io.kubernetes.client.openapi.models.V1Affinity instance, - java.lang.Boolean validationEnabled) { + public V1AffinityBuilder(V1Affinity instance, Boolean validationEnabled) { this.fluent = this; this.withNodeAffinity(instance.getNodeAffinity()); @@ -71,10 +63,10 @@ public V1AffinityBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AffinityFluent fluent; - java.lang.Boolean validationEnabled; + V1AffinityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Affinity build() { + public V1Affinity build() { V1Affinity buildable = new V1Affinity(); buildable.setNodeAffinity(fluent.getNodeAffinity()); buildable.setPodAffinity(fluent.getPodAffinity()); 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 1211b76a2f..c43d34e40b 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 @@ -26,82 +26,71 @@ public interface V1AffinityFluent> extends Fluent< @Deprecated public V1NodeAffinity getNodeAffinity(); - public io.kubernetes.client.openapi.models.V1NodeAffinity buildNodeAffinity(); + public V1NodeAffinity buildNodeAffinity(); - public A withNodeAffinity(io.kubernetes.client.openapi.models.V1NodeAffinity nodeAffinity); + public A withNodeAffinity(V1NodeAffinity nodeAffinity); public Boolean hasNodeAffinity(); public V1AffinityFluent.NodeAffinityNested withNewNodeAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - withNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1NodeAffinity item); + public V1AffinityFluent.NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item); - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - editNodeAffinity(); + public V1AffinityFluent.NodeAffinityNested editNodeAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - editOrNewNodeAffinity(); + public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - editOrNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1NodeAffinity item); + public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item); /** * This method has been deprecated, please use method buildPodAffinity instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodAffinity getPodAffinity(); - public io.kubernetes.client.openapi.models.V1PodAffinity buildPodAffinity(); + public V1PodAffinity buildPodAffinity(); - public A withPodAffinity(io.kubernetes.client.openapi.models.V1PodAffinity podAffinity); + public A withPodAffinity(V1PodAffinity podAffinity); - public java.lang.Boolean hasPodAffinity(); + public Boolean hasPodAffinity(); public V1AffinityFluent.PodAffinityNested withNewPodAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - withNewPodAffinityLike(io.kubernetes.client.openapi.models.V1PodAffinity item); + public V1AffinityFluent.PodAffinityNested withNewPodAffinityLike(V1PodAffinity item); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - editPodAffinity(); + public V1AffinityFluent.PodAffinityNested editPodAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - editOrNewPodAffinity(); + public V1AffinityFluent.PodAffinityNested editOrNewPodAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - editOrNewPodAffinityLike(io.kubernetes.client.openapi.models.V1PodAffinity item); + public V1AffinityFluent.PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item); /** * This method has been deprecated, please use method buildPodAntiAffinity instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodAntiAffinity getPodAntiAffinity(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinity buildPodAntiAffinity(); + public V1PodAntiAffinity buildPodAntiAffinity(); - public A withPodAntiAffinity( - io.kubernetes.client.openapi.models.V1PodAntiAffinity podAntiAffinity); + public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity); - public java.lang.Boolean hasPodAntiAffinity(); + public Boolean hasPodAntiAffinity(); public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - withNewPodAntiAffinityLike(io.kubernetes.client.openapi.models.V1PodAntiAffinity item); + public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinityLike( + V1PodAntiAffinity item); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - editPodAntiAffinity(); + public V1AffinityFluent.PodAntiAffinityNested editPodAntiAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - editOrNewPodAntiAffinity(); + public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinity(); - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - editOrNewPodAntiAffinityLike(io.kubernetes.client.openapi.models.V1PodAntiAffinity item); + public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinityLike( + V1PodAntiAffinity item); public interface NodeAffinityNested extends Nested, V1NodeAffinityFluent> { @@ -111,16 +100,14 @@ public interface NodeAffinityNested } public interface PodAffinityNested - extends io.kubernetes.client.fluent.Nested, - V1PodAffinityFluent> { + extends Nested, V1PodAffinityFluent> { public N and(); public N endPodAffinity(); } public interface PodAntiAffinityNested - extends io.kubernetes.client.fluent.Nested, - V1PodAntiAffinityFluent> { + extends Nested, V1PodAntiAffinityFluent> { public N and(); public N endPodAntiAffinity(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java index 97723c99f8..c1e260363f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluentImpl.java @@ -21,7 +21,7 @@ public class V1AffinityFluentImpl> extends BaseFlu implements V1AffinityFluent { public V1AffinityFluentImpl() {} - public V1AffinityFluentImpl(io.kubernetes.client.openapi.models.V1Affinity instance) { + public V1AffinityFluentImpl(V1Affinity instance) { this.withNodeAffinity(instance.getNodeAffinity()); this.withPodAffinity(instance.getPodAffinity()); @@ -39,19 +39,22 @@ public V1AffinityFluentImpl(io.kubernetes.client.openapi.models.V1Affinity insta * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1NodeAffinity getNodeAffinity() { + public V1NodeAffinity getNodeAffinity() { return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeAffinity buildNodeAffinity() { + public V1NodeAffinity buildNodeAffinity() { return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public A withNodeAffinity(io.kubernetes.client.openapi.models.V1NodeAffinity nodeAffinity) { + public A withNodeAffinity(V1NodeAffinity nodeAffinity) { _visitables.get("nodeAffinity").remove(this.nodeAffinity); if (nodeAffinity != null) { this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); _visitables.get("nodeAffinity").add(this.nodeAffinity); + } else { + this.nodeAffinity = null; + _visitables.get("nodeAffinity").remove(this.nodeAffinity); } return (A) this; } @@ -64,26 +67,20 @@ public V1AffinityFluent.NodeAffinityNested withNewNodeAffinity() { return new V1AffinityFluentImpl.NodeAffinityNestedImpl(); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - withNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1NodeAffinity item) { + public V1AffinityFluent.NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { return new V1AffinityFluentImpl.NodeAffinityNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - editNodeAffinity() { + public V1AffinityFluent.NodeAffinityNested editNodeAffinity() { return withNewNodeAffinityLike(getNodeAffinity()); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - editOrNewNodeAffinity() { + public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinity() { return withNewNodeAffinityLike( - getNodeAffinity() != null - ? getNodeAffinity() - : new io.kubernetes.client.openapi.models.V1NodeAffinityBuilder().build()); + getNodeAffinity() != null ? getNodeAffinity() : new V1NodeAffinityBuilder().build()); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested - editOrNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1NodeAffinity item) { + public V1AffinityFluent.NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item) { return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity() : item); } @@ -92,25 +89,28 @@ public V1AffinityFluent.NodeAffinityNested withNewNodeAffinity() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodAffinity getPodAffinity() { return this.podAffinity != null ? this.podAffinity.build() : null; } - public io.kubernetes.client.openapi.models.V1PodAffinity buildPodAffinity() { + public V1PodAffinity buildPodAffinity() { return this.podAffinity != null ? this.podAffinity.build() : null; } - public A withPodAffinity(io.kubernetes.client.openapi.models.V1PodAffinity podAffinity) { + public A withPodAffinity(V1PodAffinity podAffinity) { _visitables.get("podAffinity").remove(this.podAffinity); if (podAffinity != null) { - this.podAffinity = new io.kubernetes.client.openapi.models.V1PodAffinityBuilder(podAffinity); + this.podAffinity = new V1PodAffinityBuilder(podAffinity); _visitables.get("podAffinity").add(this.podAffinity); + } else { + this.podAffinity = null; + _visitables.get("podAffinity").remove(this.podAffinity); } return (A) this; } - public java.lang.Boolean hasPodAffinity() { + public Boolean hasPodAffinity() { return this.podAffinity != null; } @@ -118,26 +118,20 @@ public V1AffinityFluent.PodAffinityNested withNewPodAffinity() { return new V1AffinityFluentImpl.PodAffinityNestedImpl(); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - withNewPodAffinityLike(io.kubernetes.client.openapi.models.V1PodAffinity item) { - return new io.kubernetes.client.openapi.models.V1AffinityFluentImpl.PodAffinityNestedImpl(item); + public V1AffinityFluent.PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { + return new V1AffinityFluentImpl.PodAffinityNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - editPodAffinity() { + public V1AffinityFluent.PodAffinityNested editPodAffinity() { return withNewPodAffinityLike(getPodAffinity()); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - editOrNewPodAffinity() { + public V1AffinityFluent.PodAffinityNested editOrNewPodAffinity() { return withNewPodAffinityLike( - getPodAffinity() != null - ? getPodAffinity() - : new io.kubernetes.client.openapi.models.V1PodAffinityBuilder().build()); + getPodAffinity() != null ? getPodAffinity() : new V1PodAffinityBuilder().build()); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested - editOrNewPodAffinityLike(io.kubernetes.client.openapi.models.V1PodAffinity item) { + public V1AffinityFluent.PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item) { return withNewPodAffinityLike(getPodAffinity() != null ? getPodAffinity() : item); } @@ -146,27 +140,28 @@ public V1AffinityFluent.PodAffinityNested withNewPodAffinity() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodAntiAffinity getPodAntiAffinity() { return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; } - public io.kubernetes.client.openapi.models.V1PodAntiAffinity buildPodAntiAffinity() { + public V1PodAntiAffinity buildPodAntiAffinity() { return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; } - public A withPodAntiAffinity( - io.kubernetes.client.openapi.models.V1PodAntiAffinity podAntiAffinity) { + public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { _visitables.get("podAntiAffinity").remove(this.podAntiAffinity); if (podAntiAffinity != null) { - this.podAntiAffinity = - new io.kubernetes.client.openapi.models.V1PodAntiAffinityBuilder(podAntiAffinity); + this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); _visitables.get("podAntiAffinity").add(this.podAntiAffinity); + } else { + this.podAntiAffinity = null; + _visitables.get("podAntiAffinity").remove(this.podAntiAffinity); } return (A) this; } - public java.lang.Boolean hasPodAntiAffinity() { + public Boolean hasPodAntiAffinity() { return this.podAntiAffinity != null; } @@ -174,27 +169,24 @@ public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinity() { return new V1AffinityFluentImpl.PodAntiAffinityNestedImpl(); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - withNewPodAntiAffinityLike(io.kubernetes.client.openapi.models.V1PodAntiAffinity item) { - return new io.kubernetes.client.openapi.models.V1AffinityFluentImpl.PodAntiAffinityNestedImpl( - item); + public V1AffinityFluent.PodAntiAffinityNested withNewPodAntiAffinityLike( + V1PodAntiAffinity item) { + return new V1AffinityFluentImpl.PodAntiAffinityNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - editPodAntiAffinity() { + public V1AffinityFluent.PodAntiAffinityNested editPodAntiAffinity() { return withNewPodAntiAffinityLike(getPodAntiAffinity()); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - editOrNewPodAntiAffinity() { + public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinity() { return withNewPodAntiAffinityLike( getPodAntiAffinity() != null ? getPodAntiAffinity() - : new io.kubernetes.client.openapi.models.V1PodAntiAffinityBuilder().build()); + : new V1PodAntiAffinityBuilder().build()); } - public io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested - editOrNewPodAntiAffinityLike(io.kubernetes.client.openapi.models.V1PodAntiAffinity item) { + public V1AffinityFluent.PodAntiAffinityNested editOrNewPodAntiAffinityLike( + V1PodAntiAffinity item) { return withNewPodAntiAffinityLike(getPodAntiAffinity() != null ? getPodAntiAffinity() : item); } @@ -237,17 +229,16 @@ public String toString() { class NodeAffinityNestedImpl extends V1NodeAffinityFluentImpl> - implements io.kubernetes.client.openapi.models.V1AffinityFluent.NodeAffinityNested, - Nested { - NodeAffinityNestedImpl(io.kubernetes.client.openapi.models.V1NodeAffinity item) { + implements V1AffinityFluent.NodeAffinityNested, Nested { + NodeAffinityNestedImpl(V1NodeAffinity item) { this.builder = new V1NodeAffinityBuilder(this, item); } NodeAffinityNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeAffinityBuilder(this); + this.builder = new V1NodeAffinityBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeAffinityBuilder builder; + V1NodeAffinityBuilder builder; public N and() { return (N) V1AffinityFluentImpl.this.withNodeAffinity(builder.build()); @@ -260,17 +251,16 @@ public N endNodeAffinity() { class PodAffinityNestedImpl extends V1PodAffinityFluentImpl> - implements io.kubernetes.client.openapi.models.V1AffinityFluent.PodAffinityNested, - io.kubernetes.client.fluent.Nested { - PodAffinityNestedImpl(io.kubernetes.client.openapi.models.V1PodAffinity item) { + implements V1AffinityFluent.PodAffinityNested, Nested { + PodAffinityNestedImpl(V1PodAffinity item) { this.builder = new V1PodAffinityBuilder(this, item); } PodAffinityNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodAffinityBuilder(this); + this.builder = new V1PodAffinityBuilder(this); } - io.kubernetes.client.openapi.models.V1PodAffinityBuilder builder; + V1PodAffinityBuilder builder; public N and() { return (N) V1AffinityFluentImpl.this.withPodAffinity(builder.build()); @@ -283,17 +273,16 @@ public N endPodAffinity() { class PodAntiAffinityNestedImpl extends V1PodAntiAffinityFluentImpl> - implements io.kubernetes.client.openapi.models.V1AffinityFluent.PodAntiAffinityNested, - io.kubernetes.client.fluent.Nested { + implements V1AffinityFluent.PodAntiAffinityNested, Nested { PodAntiAffinityNestedImpl(V1PodAntiAffinity item) { this.builder = new V1PodAntiAffinityBuilder(this, item); } PodAntiAffinityNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodAntiAffinityBuilder(this); + this.builder = new V1PodAntiAffinityBuilder(this); } - io.kubernetes.client.openapi.models.V1PodAntiAffinityBuilder builder; + V1PodAntiAffinityBuilder builder; public N and() { return (N) V1AffinityFluentImpl.this.withPodAntiAffinity(builder.build()); 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 555ce68002..6ebc65dab0 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1AggregationRuleBuilder extends V1AggregationRuleFluentImpl - implements VisitableBuilder< - V1AggregationRule, io.kubernetes.client.openapi.models.V1AggregationRuleBuilder> { + implements VisitableBuilder { public V1AggregationRuleBuilder() { this(false); } @@ -25,50 +24,41 @@ public V1AggregationRuleBuilder(Boolean validationEnabled) { this(new V1AggregationRule(), validationEnabled); } - public V1AggregationRuleBuilder( - io.kubernetes.client.openapi.models.V1AggregationRuleFluent fluent) { + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent) { this(fluent, false); } - public V1AggregationRuleBuilder( - io.kubernetes.client.openapi.models.V1AggregationRuleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1AggregationRule(), validationEnabled); } - public V1AggregationRuleBuilder( - io.kubernetes.client.openapi.models.V1AggregationRuleFluent fluent, - io.kubernetes.client.openapi.models.V1AggregationRule instance) { + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent, V1AggregationRule instance) { this(fluent, instance, false); } public V1AggregationRuleBuilder( - io.kubernetes.client.openapi.models.V1AggregationRuleFluent fluent, - io.kubernetes.client.openapi.models.V1AggregationRule instance, - java.lang.Boolean validationEnabled) { + V1AggregationRuleFluent fluent, V1AggregationRule instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withClusterRoleSelectors(instance.getClusterRoleSelectors()); this.validationEnabled = validationEnabled; } - public V1AggregationRuleBuilder(io.kubernetes.client.openapi.models.V1AggregationRule instance) { + public V1AggregationRuleBuilder(V1AggregationRule instance) { this(instance, false); } - public V1AggregationRuleBuilder( - io.kubernetes.client.openapi.models.V1AggregationRule instance, - java.lang.Boolean validationEnabled) { + public V1AggregationRuleBuilder(V1AggregationRule instance, Boolean validationEnabled) { this.fluent = this; this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AggregationRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1AggregationRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1AggregationRule build() { + public V1AggregationRule build() { V1AggregationRule buildable = new V1AggregationRule(); buildable.setClusterRoleSelectors(fluent.getClusterRoleSelectors()); return buildable; 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 e6a2efc255..29bb1a918d 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 @@ -22,19 +22,16 @@ public interface V1AggregationRuleFluent> extends Fluent { public A addToClusterRoleSelectors(Integer index, V1LabelSelector item); - public A setToClusterRoleSelectors( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LabelSelector item); + public A setToClusterRoleSelectors(Integer index, V1LabelSelector item); public A addToClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items); - public A addAllToClusterRoleSelectors( - Collection items); + public A addAllToClusterRoleSelectors(Collection items); public A removeFromClusterRoleSelectors( io.kubernetes.client.openapi.models.V1LabelSelector... items); - public A removeAllFromClusterRoleSelectors( - java.util.Collection items); + public A removeAllFromClusterRoleSelectors(Collection items); public A removeMatchingFromClusterRoleSelectors(Predicate predicate); @@ -44,56 +41,45 @@ public A removeAllFromClusterRoleSelectors( * @return The buildable object. */ @Deprecated - public List getClusterRoleSelectors(); + public List getClusterRoleSelectors(); - public java.util.List - buildClusterRoleSelectors(); + public List buildClusterRoleSelectors(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildClusterRoleSelector( - java.lang.Integer index); + public V1LabelSelector buildClusterRoleSelector(Integer index); - public io.kubernetes.client.openapi.models.V1LabelSelector buildFirstClusterRoleSelector(); + public V1LabelSelector buildFirstClusterRoleSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildLastClusterRoleSelector(); + public V1LabelSelector buildLastClusterRoleSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildMatchingClusterRoleSelector( - java.util.function.Predicate - predicate); + public V1LabelSelector buildMatchingClusterRoleSelector( + Predicate predicate); - public Boolean hasMatchingClusterRoleSelector( - java.util.function.Predicate - predicate); + public Boolean hasMatchingClusterRoleSelector(Predicate predicate); - public A withClusterRoleSelectors( - java.util.List clusterRoleSelectors); + public A withClusterRoleSelectors(List clusterRoleSelectors); public A withClusterRoleSelectors( io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors); - public java.lang.Boolean hasClusterRoleSelectors(); + public Boolean hasClusterRoleSelectors(); public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelector(); - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - addNewClusterRoleSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - setNewClusterRoleSelectorLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested setNewClusterRoleSelectorLike( + Integer index, V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editClusterRoleSelector(java.lang.Integer index); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editClusterRoleSelector( + Integer index); - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editFirstClusterRoleSelector(); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editFirstClusterRoleSelector(); - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editLastClusterRoleSelector(); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editLastClusterRoleSelector(); - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editMatchingClusterRoleSelector( - java.util.function.Predicate - predicate); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editMatchingClusterRoleSelector( + Predicate predicate); public interface ClusterRoleSelectorsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java index f5633a2aca..4895fbe842 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluentImpl.java @@ -26,20 +26,17 @@ public class V1AggregationRuleFluentImpl> e implements V1AggregationRuleFluent { public V1AggregationRuleFluentImpl() {} - public V1AggregationRuleFluentImpl( - io.kubernetes.client.openapi.models.V1AggregationRule instance) { + public V1AggregationRuleFluentImpl(V1AggregationRule instance) { this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); } private ArrayList clusterRoleSelectors; - public A addToClusterRoleSelectors( - Integer index, io.kubernetes.client.openapi.models.V1LabelSelector item) { + public A addToClusterRoleSelectors(Integer index, V1LabelSelector item) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = new java.util.ArrayList(); + this.clusterRoleSelectors = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(item); + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); _visitables .get("clusterRoleSelectors") .add(index >= 0 ? index : _visitables.get("clusterRoleSelectors").size(), builder); @@ -47,14 +44,11 @@ public A addToClusterRoleSelectors( return (A) this; } - public A setToClusterRoleSelectors( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LabelSelector item) { + public A setToClusterRoleSelectors(Integer index, V1LabelSelector item) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = - new java.util.ArrayList(); + this.clusterRoleSelectors = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(item); + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); if (index < 0 || index >= _visitables.get("clusterRoleSelectors").size()) { _visitables.get("clusterRoleSelectors").add(builder); } else { @@ -70,27 +64,22 @@ public A setToClusterRoleSelectors( public A addToClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = - new java.util.ArrayList(); + this.clusterRoleSelectors = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LabelSelector item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(item); + 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) { + public A addAllToClusterRoleSelectors(Collection items) { if (this.clusterRoleSelectors == null) { - this.clusterRoleSelectors = - new java.util.ArrayList(); + this.clusterRoleSelectors = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LabelSelector item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(item); + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); _visitables.get("clusterRoleSelectors").add(builder); this.clusterRoleSelectors.add(builder); } @@ -99,9 +88,8 @@ public A addAllToClusterRoleSelectors( public A removeFromClusterRoleSelectors( io.kubernetes.client.openapi.models.V1LabelSelector... items) { - for (io.kubernetes.client.openapi.models.V1LabelSelector item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(item); + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); _visitables.get("clusterRoleSelectors").remove(builder); if (this.clusterRoleSelectors != null) { this.clusterRoleSelectors.remove(builder); @@ -110,11 +98,9 @@ public A removeFromClusterRoleSelectors( return (A) this; } - public A removeAllFromClusterRoleSelectors( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1LabelSelector item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(item); + public A removeAllFromClusterRoleSelectors(Collection items) { + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); _visitables.get("clusterRoleSelectors").remove(builder); if (this.clusterRoleSelectors != null) { this.clusterRoleSelectors.remove(builder); @@ -123,14 +109,12 @@ public A removeAllFromClusterRoleSelectors( return (A) this; } - public A removeMatchingFromClusterRoleSelectors( - Predicate predicate) { + public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { if (clusterRoleSelectors == null) return (A) this; - final Iterator each = - clusterRoleSelectors.iterator(); + final Iterator each = clusterRoleSelectors.iterator(); final List visitables = _visitables.get("clusterRoleSelectors"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder = each.next(); + V1LabelSelectorBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -145,32 +129,29 @@ public A removeMatchingFromClusterRoleSelectors( * @return The buildable object. */ @Deprecated - public List getClusterRoleSelectors() { + public List getClusterRoleSelectors() { return clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; } - public java.util.List - buildClusterRoleSelectors() { + public List buildClusterRoleSelectors() { return clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildClusterRoleSelector( - java.lang.Integer index) { + public V1LabelSelector buildClusterRoleSelector(Integer index) { return this.clusterRoleSelectors.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LabelSelector buildFirstClusterRoleSelector() { + public V1LabelSelector buildFirstClusterRoleSelector() { return this.clusterRoleSelectors.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LabelSelector buildLastClusterRoleSelector() { + public V1LabelSelector buildLastClusterRoleSelector() { return this.clusterRoleSelectors.get(clusterRoleSelectors.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LabelSelector buildMatchingClusterRoleSelector( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorBuilder item : clusterRoleSelectors) { + public V1LabelSelector buildMatchingClusterRoleSelector( + Predicate predicate) { + for (V1LabelSelectorBuilder item : clusterRoleSelectors) { if (predicate.test(item)) { return item.build(); } @@ -178,10 +159,8 @@ public io.kubernetes.client.openapi.models.V1LabelSelector buildMatchingClusterR return null; } - public Boolean hasMatchingClusterRoleSelector( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorBuilder item : clusterRoleSelectors) { + public Boolean hasMatchingClusterRoleSelector(Predicate predicate) { + for (V1LabelSelectorBuilder item : clusterRoleSelectors) { if (predicate.test(item)) { return true; } @@ -189,14 +168,13 @@ public Boolean hasMatchingClusterRoleSelector( return false; } - public A withClusterRoleSelectors( - java.util.List clusterRoleSelectors) { + public A withClusterRoleSelectors(List clusterRoleSelectors) { if (this.clusterRoleSelectors != null) { _visitables.get("clusterRoleSelectors").removeAll(this.clusterRoleSelectors); } if (clusterRoleSelectors != null) { - this.clusterRoleSelectors = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LabelSelector item : clusterRoleSelectors) { + this.clusterRoleSelectors = new ArrayList(); + for (V1LabelSelector item : clusterRoleSelectors) { this.addToClusterRoleSelectors(item); } } else { @@ -211,14 +189,14 @@ public A withClusterRoleSelectors( this.clusterRoleSelectors.clear(); } if (clusterRoleSelectors != null) { - for (io.kubernetes.client.openapi.models.V1LabelSelector item : clusterRoleSelectors) { + for (V1LabelSelector item : clusterRoleSelectors) { this.addToClusterRoleSelectors(item); } } return (A) this; } - public java.lang.Boolean hasClusterRoleSelectors() { + public Boolean hasClusterRoleSelectors() { return clusterRoleSelectors != null && !clusterRoleSelectors.isEmpty(); } @@ -226,44 +204,38 @@ public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSe return new V1AggregationRuleFluentImpl.ClusterRoleSelectorsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - addNewClusterRoleSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested addNewClusterRoleSelectorLike( + V1LabelSelector item) { return new V1AggregationRuleFluentImpl.ClusterRoleSelectorsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - setNewClusterRoleSelectorLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1AggregationRuleFluentImpl - .ClusterRoleSelectorsNestedImpl(index, item); + public V1AggregationRuleFluent.ClusterRoleSelectorsNested setNewClusterRoleSelectorLike( + Integer index, V1LabelSelector item) { + return new V1AggregationRuleFluentImpl.ClusterRoleSelectorsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editClusterRoleSelector(java.lang.Integer index) { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editClusterRoleSelector( + Integer index) { if (clusterRoleSelectors.size() <= index) throw new RuntimeException("Can't edit clusterRoleSelectors. Index exceeds size."); return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); } - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editFirstClusterRoleSelector() { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editFirstClusterRoleSelector() { if (clusterRoleSelectors.size() == 0) throw new RuntimeException("Can't edit first clusterRoleSelectors. The list is empty."); return setNewClusterRoleSelectorLike(0, buildClusterRoleSelector(0)); } - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editLastClusterRoleSelector() { + public V1AggregationRuleFluent.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)); } - public io.kubernetes.client.openapi.models.V1AggregationRuleFluent.ClusterRoleSelectorsNested - editMatchingClusterRoleSelector( - java.util.function.Predicate - predicate) { + public V1AggregationRuleFluent.ClusterRoleSelectorsNested editMatchingClusterRoleSelector( + Predicate predicate) { int index = -1; for (int i = 0; i < clusterRoleSelectors.size(); i++) { if (predicate.test(clusterRoleSelectors.get(i))) { @@ -303,22 +275,19 @@ public String toString() { class ClusterRoleSelectorsNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1AggregationRuleFluent - .ClusterRoleSelectorsNested< - N>, - Nested { - ClusterRoleSelectorsNestedImpl(java.lang.Integer index, V1LabelSelector item) { + implements V1AggregationRuleFluent.ClusterRoleSelectorsNested, Nested { + ClusterRoleSelectorsNestedImpl(Integer index, V1LabelSelector item) { this.index = index; this.builder = new V1LabelSelectorBuilder(this, item); } ClusterRoleSelectorsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - java.lang.Integer index; + V1LabelSelectorBuilder builder; + Integer index; public N and() { return (N) V1AggregationRuleFluentImpl.this.setToClusterRoleSelectors(index, builder.build()); 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 5e70d47f43..16753ba401 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1AttachedVolume, V1AttachedVolumeBuilder> { + implements VisitableBuilder { public V1AttachedVolumeBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent) { this(fluent, false); } - public V1AttachedVolumeBuilder( - io.kubernetes.client.openapi.models.V1AttachedVolumeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent, Boolean validationEnabled) { this(fluent, new V1AttachedVolume(), validationEnabled); } - public V1AttachedVolumeBuilder( - io.kubernetes.client.openapi.models.V1AttachedVolumeFluent fluent, - io.kubernetes.client.openapi.models.V1AttachedVolume instance) { + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent, V1AttachedVolume instance) { this(fluent, instance, false); } public V1AttachedVolumeBuilder( - io.kubernetes.client.openapi.models.V1AttachedVolumeFluent fluent, - io.kubernetes.client.openapi.models.V1AttachedVolume instance, - java.lang.Boolean validationEnabled) { + V1AttachedVolumeFluent fluent, V1AttachedVolume instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDevicePath(instance.getDevicePath()); @@ -53,13 +46,11 @@ public V1AttachedVolumeBuilder( this.validationEnabled = validationEnabled; } - public V1AttachedVolumeBuilder(io.kubernetes.client.openapi.models.V1AttachedVolume instance) { + public V1AttachedVolumeBuilder(V1AttachedVolume instance) { this(instance, false); } - public V1AttachedVolumeBuilder( - io.kubernetes.client.openapi.models.V1AttachedVolume instance, - java.lang.Boolean validationEnabled) { + public V1AttachedVolumeBuilder(V1AttachedVolume instance, Boolean validationEnabled) { this.fluent = this; this.withDevicePath(instance.getDevicePath()); @@ -68,10 +59,10 @@ public V1AttachedVolumeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AttachedVolumeFluent fluent; - java.lang.Boolean validationEnabled; + V1AttachedVolumeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1AttachedVolume build() { + public V1AttachedVolume build() { V1AttachedVolume buildable = new V1AttachedVolume(); buildable.setDevicePath(fluent.getDevicePath()); buildable.setName(fluent.getName()); 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 6c2bbdc8c9..4245b4a6ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java @@ -18,13 +18,13 @@ public interface V1AttachedVolumeFluent> extends Fluent { public String getDevicePath(); - public A withDevicePath(java.lang.String devicePath); + public A withDevicePath(String devicePath); public Boolean hasDevicePath(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java index c4bed36965..e19b8a0867 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluentImpl.java @@ -20,20 +20,20 @@ public class V1AttachedVolumeFluentImpl> ext implements V1AttachedVolumeFluent { public V1AttachedVolumeFluentImpl() {} - public V1AttachedVolumeFluentImpl(io.kubernetes.client.openapi.models.V1AttachedVolume instance) { + public V1AttachedVolumeFluentImpl(V1AttachedVolume instance) { this.withDevicePath(instance.getDevicePath()); this.withName(instance.getName()); } private String devicePath; - private java.lang.String name; + private String name; - public java.lang.String getDevicePath() { + public String getDevicePath() { return this.devicePath; } - public A withDevicePath(java.lang.String devicePath) { + public A withDevicePath(String devicePath) { this.devicePath = devicePath; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasDevicePath() { return this.devicePath != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -69,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(devicePath, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (devicePath != null) { 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 fb18a378c9..bbe9178b7f 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 @@ -16,9 +16,7 @@ public class V1AzureDiskVolumeSourceBuilder extends V1AzureDiskVolumeSourceFluentImpl - implements VisitableBuilder< - V1AzureDiskVolumeSource, - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder> { + implements VisitableBuilder { public V1AzureDiskVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent) { } public V1AzureDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1AzureDiskVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1AzureDiskVolumeSource(), validationEnabled); } public V1AzureDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource instance) { + V1AzureDiskVolumeSourceFluent fluent, V1AzureDiskVolumeSource instance) { this(fluent, instance, false); } public V1AzureDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AzureDiskVolumeSourceFluent fluent, + V1AzureDiskVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCachingMode(instance.getCachingMode()); @@ -63,14 +59,12 @@ public V1AzureDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1AzureDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource instance) { + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSource instance) { this(instance, false); } public V1AzureDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AzureDiskVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withCachingMode(instance.getCachingMode()); @@ -87,10 +81,10 @@ public V1AzureDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1AzureDiskVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource build() { + public V1AzureDiskVolumeSource build() { V1AzureDiskVolumeSource buildable = new V1AzureDiskVolumeSource(); buildable.setCachingMode(fluent.getCachingMode()); buildable.setDiskName(fluent.getDiskName()); 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 eefaee4a54..c3f588919e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java @@ -19,39 +19,39 @@ public interface V1AzureDiskVolumeSourceFluent { public String getCachingMode(); - public A withCachingMode(java.lang.String cachingMode); + public A withCachingMode(String cachingMode); public Boolean hasCachingMode(); - public java.lang.String getDiskName(); + public String getDiskName(); - public A withDiskName(java.lang.String diskName); + public A withDiskName(String diskName); - public java.lang.Boolean hasDiskName(); + public Boolean hasDiskName(); - public java.lang.String getDiskURI(); + public String getDiskURI(); - public A withDiskURI(java.lang.String diskURI); + public A withDiskURI(String diskURI); - public java.lang.Boolean hasDiskURI(); + public Boolean hasDiskURI(); - public java.lang.String getFsType(); + public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); - public java.lang.Boolean hasFsType(); + public Boolean hasFsType(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java index eff5b6d9de..c7cdb7ed31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1AzureDiskVolumeSourceFluentImpl implements V1AzureDiskVolumeSourceFluent { public V1AzureDiskVolumeSourceFluentImpl() {} - public V1AzureDiskVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource instance) { + public V1AzureDiskVolumeSourceFluentImpl(V1AzureDiskVolumeSource instance) { this.withCachingMode(instance.getCachingMode()); this.withDiskName(instance.getDiskName()); @@ -36,87 +35,87 @@ public V1AzureDiskVolumeSourceFluentImpl( } private String cachingMode; - private java.lang.String diskName; - private java.lang.String diskURI; - private java.lang.String fsType; - private java.lang.String kind; + private String diskName; + private String diskURI; + private String fsType; + private String kind; private Boolean readOnly; - public java.lang.String getCachingMode() { + public String getCachingMode() { return this.cachingMode; } - public A withCachingMode(java.lang.String cachingMode) { + public A withCachingMode(String cachingMode) { this.cachingMode = cachingMode; return (A) this; } - public java.lang.Boolean hasCachingMode() { + public Boolean hasCachingMode() { return this.cachingMode != null; } - public java.lang.String getDiskName() { + public String getDiskName() { return this.diskName; } - public A withDiskName(java.lang.String diskName) { + public A withDiskName(String diskName) { this.diskName = diskName; return (A) this; } - public java.lang.Boolean hasDiskName() { + public Boolean hasDiskName() { return this.diskName != null; } - public java.lang.String getDiskURI() { + public String getDiskURI() { return this.diskURI; } - public A withDiskURI(java.lang.String diskURI) { + public A withDiskURI(String diskURI) { this.diskURI = diskURI; return (A) this; } - public java.lang.Boolean hasDiskURI() { + public Boolean hasDiskURI() { return this.diskURI != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -139,7 +138,7 @@ public int hashCode() { cachingMode, diskName, diskURI, fsType, kind, readOnly, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (cachingMode != null) { 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 990e5974df..deeb38f9d8 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 @@ -17,8 +17,7 @@ public class V1AzureFilePersistentVolumeSourceBuilder extends V1AzureFilePersistentVolumeSourceFluentImpl implements VisitableBuilder< - V1AzureFilePersistentVolumeSource, - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceBuilder> { + V1AzureFilePersistentVolumeSource, V1AzureFilePersistentVolumeSourceBuilder> { public V1AzureFilePersistentVolumeSourceBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1AzureFilePersistentVolumeSourceBuilder( } public V1AzureFilePersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1AzureFilePersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1AzureFilePersistentVolumeSource(), validationEnabled); } public V1AzureFilePersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource instance) { + V1AzureFilePersistentVolumeSourceFluent fluent, + V1AzureFilePersistentVolumeSource instance) { this(fluent, instance, false); } public V1AzureFilePersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AzureFilePersistentVolumeSourceFluent fluent, + V1AzureFilePersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withReadOnly(instance.getReadOnly()); @@ -60,14 +58,12 @@ public V1AzureFilePersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1AzureFilePersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource instance) { + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSource instance) { this(instance, false); } public V1AzureFilePersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AzureFilePersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withReadOnly(instance.getReadOnly()); @@ -80,10 +76,10 @@ public V1AzureFilePersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1AzureFilePersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource build() { + public V1AzureFilePersistentVolumeSource build() { V1AzureFilePersistentVolumeSource buildable = new V1AzureFilePersistentVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); buildable.setSecretName(fluent.getSecretName()); 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 07c02b9735..6b08a5d207 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 @@ -20,27 +20,27 @@ public interface V1AzureFilePersistentVolumeSourceFluent< extends Fluent { public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public String getSecretName(); - public A withSecretName(java.lang.String secretName); + public A withSecretName(String secretName); - public java.lang.Boolean hasSecretName(); + public Boolean hasSecretName(); - public java.lang.String getSecretNamespace(); + public String getSecretNamespace(); - public A withSecretNamespace(java.lang.String secretNamespace); + public A withSecretNamespace(String secretNamespace); - public java.lang.Boolean hasSecretNamespace(); + public Boolean hasSecretNamespace(); - public java.lang.String getShareName(); + public String getShareName(); - public A withShareName(java.lang.String shareName); + public A withShareName(String shareName); - public java.lang.Boolean hasShareName(); + public Boolean hasShareName(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java index bfd9d681fd..710bc594b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1AzureFilePersistentVolumeSourceFluentImpl< extends BaseFluent implements V1AzureFilePersistentVolumeSourceFluent { public V1AzureFilePersistentVolumeSourceFluentImpl() {} - public V1AzureFilePersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource instance) { + public V1AzureFilePersistentVolumeSourceFluentImpl(V1AzureFilePersistentVolumeSource instance) { this.withReadOnly(instance.getReadOnly()); this.withSecretName(instance.getSecretName()); @@ -34,58 +33,58 @@ public V1AzureFilePersistentVolumeSourceFluentImpl( private Boolean readOnly; private String secretName; - private java.lang.String secretNamespace; - private java.lang.String shareName; + private String secretNamespace; + private String shareName; - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getSecretName() { + public String getSecretName() { return this.secretName; } - public A withSecretName(java.lang.String secretName) { + public A withSecretName(String secretName) { this.secretName = secretName; return (A) this; } - public java.lang.Boolean hasSecretName() { + public Boolean hasSecretName() { return this.secretName != null; } - public java.lang.String getSecretNamespace() { + public String getSecretNamespace() { return this.secretNamespace; } - public A withSecretNamespace(java.lang.String secretNamespace) { + public A withSecretNamespace(String secretNamespace) { this.secretNamespace = secretNamespace; return (A) this; } - public java.lang.Boolean hasSecretNamespace() { + public Boolean hasSecretNamespace() { return this.secretNamespace != null; } - public java.lang.String getShareName() { + public String getShareName() { return this.shareName; } - public A withShareName(java.lang.String shareName) { + public A withShareName(String shareName) { this.shareName = shareName; return (A) this; } - public java.lang.Boolean hasShareName() { + public Boolean hasShareName() { return this.shareName != null; } @@ -110,7 +109,7 @@ public int hashCode() { readOnly, secretName, secretNamespace, shareName, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (readOnly != null) { 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 84e9c641c3..548aac81d8 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 @@ -16,9 +16,7 @@ public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluentImpl - implements VisitableBuilder< - V1AzureFileVolumeSource, - io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceBuilder> { + implements VisitableBuilder { public V1AzureFileVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent) { } public V1AzureFileVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1AzureFileVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1AzureFileVolumeSource(), validationEnabled); } public V1AzureFileVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource instance) { + V1AzureFileVolumeSourceFluent fluent, V1AzureFileVolumeSource instance) { this(fluent, instance, false); } public V1AzureFileVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AzureFileVolumeSourceFluent fluent, + V1AzureFileVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withReadOnly(instance.getReadOnly()); @@ -57,14 +53,12 @@ public V1AzureFileVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1AzureFileVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource instance) { + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance) { this(instance, false); } public V1AzureFileVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1AzureFileVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withReadOnly(instance.getReadOnly()); @@ -75,10 +69,10 @@ public V1AzureFileVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1AzureFileVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1AzureFileVolumeSource build() { + public V1AzureFileVolumeSource build() { V1AzureFileVolumeSource buildable = new V1AzureFileVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); buildable.setSecretName(fluent.getSecretName()); 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 993ccf69d2..471819bcd9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java @@ -19,21 +19,21 @@ public interface V1AzureFileVolumeSourceFluent { public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public String getSecretName(); - public A withSecretName(java.lang.String secretName); + public A withSecretName(String secretName); - public java.lang.Boolean hasSecretName(); + public Boolean hasSecretName(); - public java.lang.String getShareName(); + public String getShareName(); - public A withShareName(java.lang.String shareName); + public A withShareName(String shareName); - public java.lang.Boolean hasShareName(); + public Boolean hasShareName(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java index 35c56cae96..f923308bb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1AzureFileVolumeSourceFluentImpl implements V1AzureFileVolumeSourceFluent { public V1AzureFileVolumeSourceFluentImpl() {} - public V1AzureFileVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource instance) { + public V1AzureFileVolumeSourceFluentImpl(V1AzureFileVolumeSource instance) { this.withReadOnly(instance.getReadOnly()); this.withSecretName(instance.getSecretName()); @@ -31,44 +30,44 @@ public V1AzureFileVolumeSourceFluentImpl( private Boolean readOnly; private String secretName; - private java.lang.String shareName; + private String shareName; - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getSecretName() { + public String getSecretName() { return this.secretName; } - public A withSecretName(java.lang.String secretName) { + public A withSecretName(String secretName) { this.secretName = secretName; return (A) this; } - public java.lang.Boolean hasSecretName() { + public Boolean hasSecretName() { return this.secretName != null; } - public java.lang.String getShareName() { + public String getShareName() { return this.shareName; } - public A withShareName(java.lang.String shareName) { + public A withShareName(String shareName) { this.shareName = shareName; return (A) this; } - public java.lang.Boolean hasShareName() { + public Boolean hasShareName() { return this.shareName != null; } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(readOnly, secretName, shareName, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (readOnly != null) { 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 9923cd56c5..cfe000e662 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1BindingBuilder extends V1BindingFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1BindingBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1BindingBuilder(V1BindingFluent fluent) { this(fluent, false); } - public V1BindingBuilder( - io.kubernetes.client.openapi.models.V1BindingFluent fluent, - java.lang.Boolean validationEnabled) { + public V1BindingBuilder(V1BindingFluent fluent, Boolean validationEnabled) { this(fluent, new V1Binding(), validationEnabled); } - public V1BindingBuilder( - io.kubernetes.client.openapi.models.V1BindingFluent fluent, - io.kubernetes.client.openapi.models.V1Binding instance) { + public V1BindingBuilder(V1BindingFluent fluent, V1Binding instance) { this(fluent, instance, false); } public V1BindingBuilder( - io.kubernetes.client.openapi.models.V1BindingFluent fluent, - io.kubernetes.client.openapi.models.V1Binding instance, - java.lang.Boolean validationEnabled) { + V1BindingFluent fluent, V1Binding instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -56,12 +50,11 @@ public V1BindingBuilder( this.validationEnabled = validationEnabled; } - public V1BindingBuilder(io.kubernetes.client.openapi.models.V1Binding instance) { + public V1BindingBuilder(V1Binding instance) { this(instance, false); } - public V1BindingBuilder( - io.kubernetes.client.openapi.models.V1Binding instance, java.lang.Boolean validationEnabled) { + public V1BindingBuilder(V1Binding instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -74,10 +67,10 @@ public V1BindingBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1BindingFluent fluent; - java.lang.Boolean validationEnabled; + V1BindingFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Binding build() { + public V1Binding build() { V1Binding buildable = new V1Binding(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 ba21605a67..4a305fab33 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 @@ -19,15 +19,15 @@ public interface V1BindingFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,49 +37,45 @@ public interface V1BindingFluent> extends Fluent @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1BindingFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1BindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested editMetadata(); + public V1BindingFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested editOrNewMetadata(); + public V1BindingFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1BindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectReference getTarget(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildTarget(); + public V1ObjectReference buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V1ObjectReference target); + public A withTarget(V1ObjectReference target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V1BindingFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested withNewTargetLike( - io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1BindingFluent.TargetNested withNewTargetLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested editTarget(); + public V1BindingFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested editOrNewTarget(); + public V1BindingFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested editOrNewTargetLike( - io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1BindingFluent.TargetNested editOrNewTargetLike(V1ObjectReference item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -89,8 +85,7 @@ public interface MetadataNested } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endTarget(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java index f1bf0314c9..3ebca77b02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluentImpl.java @@ -21,7 +21,7 @@ public class V1BindingFluentImpl> extends BaseFluen implements V1BindingFluent { public V1BindingFluentImpl() {} - public V1BindingFluentImpl(io.kubernetes.client.openapi.models.V1Binding instance) { + public V1BindingFluentImpl(V1Binding instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1BindingFluentImpl(io.kubernetes.client.openapi.models.V1Binding instanc } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1ObjectReferenceBuilder target; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,24 +96,20 @@ public V1BindingFluent.MetadataNested withNewMetadata() { return new V1BindingFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1BindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1BindingFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested editMetadata() { + public V1BindingFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested editOrNewMetadata() { + public V1BindingFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1BindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -119,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getTarget() { + @Deprecated + public V1ObjectReference getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildTarget() { + public V1ObjectReference buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V1ObjectReference target) { + public A withTarget(V1ObjectReference target) { _visitables.get("target").remove(this.target); if (target != null) { this.target = new V1ObjectReferenceBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -145,24 +147,20 @@ public V1BindingFluent.TargetNested withNewTarget() { return new V1BindingFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested withNewTargetLike( - io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1BindingFluentImpl.TargetNestedImpl(item); + public V1BindingFluent.TargetNested withNewTargetLike(V1ObjectReference item) { + return new V1BindingFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested editTarget() { + public V1BindingFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested editOrNewTarget() { + public V1BindingFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getTarget() != null ? getTarget() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested editOrNewTargetLike( - io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1BindingFluent.TargetNested editOrNewTargetLike(V1ObjectReference item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -182,7 +180,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, target, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -206,16 +204,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1BindingFluent.MetadataNested, Nested { + implements V1BindingFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1BindingFluentImpl.this.withMetadata(builder.build()); @@ -227,17 +225,16 @@ public N endMetadata() { } class TargetNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1BindingFluent.TargetNested, - io.kubernetes.client.fluent.Nested { - TargetNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1BindingFluent.TargetNested, Nested { + TargetNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) V1BindingFluentImpl.this.withTarget(builder.build()); 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 5da8fa2132..654abe07b5 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 @@ -16,9 +16,7 @@ public class V1BoundObjectReferenceBuilder extends V1BoundObjectReferenceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1BoundObjectReference, - io.kubernetes.client.openapi.models.V1BoundObjectReferenceBuilder> { + implements VisitableBuilder { public V1BoundObjectReferenceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent) { } public V1BoundObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1BoundObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V1BoundObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1BoundObjectReference(), validationEnabled); } public V1BoundObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1BoundObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1BoundObjectReference instance) { + V1BoundObjectReferenceFluent fluent, V1BoundObjectReference instance) { this(fluent, instance, false); } public V1BoundObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1BoundObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1BoundObjectReference instance, - java.lang.Boolean validationEnabled) { + V1BoundObjectReferenceFluent fluent, + V1BoundObjectReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1BoundObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1BoundObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1BoundObjectReference instance) { + public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance) { this(instance, false); } - public V1BoundObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1BoundObjectReference instance, - java.lang.Boolean validationEnabled) { + public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1BoundObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1BoundObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1BoundObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1BoundObjectReference build() { + public V1BoundObjectReference build() { V1BoundObjectReference buildable = new V1BoundObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 d995bf928f..e66da6608e 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 @@ -19,25 +19,25 @@ public interface V1BoundObjectReferenceFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java index d6950ecc28..2f8141f990 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluentImpl.java @@ -20,8 +20,7 @@ public class V1BoundObjectReferenceFluentImpl implements V1BoundObjectReferenceFluent { public V1BoundObjectReferenceFluentImpl() {} - public V1BoundObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1BoundObjectReference instance) { + public V1BoundObjectReferenceFluentImpl(V1BoundObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +31,15 @@ public V1BoundObjectReferenceFluentImpl( } private String apiVersion; - private java.lang.String kind; - private java.lang.String name; - private java.lang.String uid; + private String kind; + private String name; + private String uid; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,42 +48,42 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -104,7 +103,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, name, uid, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 6b7366fd80..87589a94e9 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSIDriverBuilder extends V1CSIDriverFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSIDriver, - io.kubernetes.client.openapi.models.V1CSIDriverBuilder> { + implements VisitableBuilder { public V1CSIDriverBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CSIDriverBuilder(V1CSIDriverFluent fluent) { this(fluent, false); } - public V1CSIDriverBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSIDriverBuilder(V1CSIDriverFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIDriver(), validationEnabled); } - public V1CSIDriverBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverFluent fluent, - io.kubernetes.client.openapi.models.V1CSIDriver instance) { + public V1CSIDriverBuilder(V1CSIDriverFluent fluent, V1CSIDriver instance) { this(fluent, instance, false); } public V1CSIDriverBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverFluent fluent, - io.kubernetes.client.openapi.models.V1CSIDriver instance, - java.lang.Boolean validationEnabled) { + V1CSIDriverFluent fluent, V1CSIDriver instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1CSIDriverBuilder( this.validationEnabled = validationEnabled; } - public V1CSIDriverBuilder(io.kubernetes.client.openapi.models.V1CSIDriver instance) { + public V1CSIDriverBuilder(V1CSIDriver instance) { this(instance, false); } - public V1CSIDriverBuilder( - io.kubernetes.client.openapi.models.V1CSIDriver instance, - java.lang.Boolean validationEnabled) { + public V1CSIDriverBuilder(V1CSIDriver instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1CSIDriverBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIDriverFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIDriverFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIDriver build() { + public V1CSIDriver build() { V1CSIDriver buildable = new V1CSIDriver(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 82c8492e9a..e617fce810 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 @@ -19,15 +19,15 @@ public interface V1CSIDriverFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,50 +37,45 @@ public interface V1CSIDriverFluent> extends Fluen @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CSIDriverFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CSIDriverFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested editMetadata(); + public V1CSIDriverFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested - editOrNewMetadata(); + public V1CSIDriverFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CSIDriverFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CSIDriverSpec getSpec(); - public io.kubernetes.client.openapi.models.V1CSIDriverSpec buildSpec(); + public V1CSIDriverSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1CSIDriverSpec spec); + public A withSpec(V1CSIDriverSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1CSIDriverFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1CSIDriverSpec item); + public V1CSIDriverFluent.SpecNested withNewSpecLike(V1CSIDriverSpec item); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested editSpec(); + public V1CSIDriverFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested editOrNewSpec(); + public V1CSIDriverFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1CSIDriverSpec item); + public V1CSIDriverFluent.SpecNested editOrNewSpecLike(V1CSIDriverSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -90,8 +85,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1CSIDriverSpecFluent> { + extends Nested, V1CSIDriverSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java index be773f9734..40a6a785ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluentImpl.java @@ -21,7 +21,7 @@ public class V1CSIDriverFluentImpl> extends BaseF implements V1CSIDriverFluent { public V1CSIDriverFluentImpl() {} - public V1CSIDriverFluentImpl(io.kubernetes.client.openapi.models.V1CSIDriver instance) { + public V1CSIDriverFluentImpl(V1CSIDriver instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1CSIDriverFluentImpl(io.kubernetes.client.openapi.models.V1CSIDriver ins } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1CSIDriverSpecBuilder spec; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,25 +96,20 @@ public V1CSIDriverFluent.MetadataNested withNewMetadata() { return new V1CSIDriverFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CSIDriverFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CSIDriverFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested editMetadata() { + public V1CSIDriverFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested - editOrNewMetadata() { + public V1CSIDriverFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CSIDriverFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -120,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested e * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CSIDriverSpec getSpec() { + @Deprecated + public V1CSIDriverSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1CSIDriverSpec buildSpec() { + public V1CSIDriverSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1CSIDriverSpec spec) { + public A withSpec(V1CSIDriverSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1CSIDriverSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -146,24 +147,19 @@ public V1CSIDriverFluent.SpecNested withNewSpec() { return new V1CSIDriverFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1CSIDriverSpec item) { - return new io.kubernetes.client.openapi.models.V1CSIDriverFluentImpl.SpecNestedImpl(item); + public V1CSIDriverFluent.SpecNested withNewSpecLike(V1CSIDriverSpec item) { + return new V1CSIDriverFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested editSpec() { + public V1CSIDriverFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1CSIDriverSpecBuilder().build()); + public V1CSIDriverFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1CSIDriverSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1CSIDriverSpec item) { + public V1CSIDriverFluent.SpecNested editOrNewSpecLike(V1CSIDriverSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -183,7 +179,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -207,17 +203,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIDriverFluent.MetadataNested, - Nested { + implements V1CSIDriverFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1CSIDriverFluentImpl.this.withMetadata(builder.build()); @@ -229,17 +224,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1CSIDriverSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIDriverFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1CSIDriverSpec item) { + implements V1CSIDriverFluent.SpecNested, Nested { + SpecNestedImpl(V1CSIDriverSpec item) { this.builder = new V1CSIDriverSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CSIDriverSpecBuilder(this); + this.builder = new V1CSIDriverSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1CSIDriverSpecBuilder builder; + V1CSIDriverSpecBuilder builder; public N and() { return (N) V1CSIDriverFluentImpl.this.withSpec(builder.build()); 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 289f9cae78..e1aaab8a58 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSIDriverListBuilder extends V1CSIDriverListFluentImpl - implements VisitableBuilder< - V1CSIDriverList, io.kubernetes.client.openapi.models.V1CSIDriverListBuilder> { + implements VisitableBuilder { public V1CSIDriverListBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1CSIDriverListBuilder(Boolean validationEnabled) { this(new V1CSIDriverList(), validationEnabled); } - public V1CSIDriverListBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverListFluent fluent) { + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent) { this(fluent, false); } - public V1CSIDriverListBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIDriverList(), validationEnabled); } - public V1CSIDriverListBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverListFluent fluent, - io.kubernetes.client.openapi.models.V1CSIDriverList instance) { + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent, V1CSIDriverList instance) { this(fluent, instance, false); } public V1CSIDriverListBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverListFluent fluent, - io.kubernetes.client.openapi.models.V1CSIDriverList instance, - java.lang.Boolean validationEnabled) { + V1CSIDriverListFluent fluent, V1CSIDriverList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1CSIDriverListBuilder( this.validationEnabled = validationEnabled; } - public V1CSIDriverListBuilder(io.kubernetes.client.openapi.models.V1CSIDriverList instance) { + public V1CSIDriverListBuilder(V1CSIDriverList instance) { this(instance, false); } - public V1CSIDriverListBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverList instance, - java.lang.Boolean validationEnabled) { + public V1CSIDriverListBuilder(V1CSIDriverList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1CSIDriverListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIDriverListFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIDriverListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIDriverList build() { + public V1CSIDriverList build() { V1CSIDriverList buildable = new V1CSIDriverList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 28587d6ef2..22d5f4964a 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 @@ -22,23 +22,21 @@ public interface V1CSIDriverListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1CSIDriver item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIDriver item); + public A setToItems(Integer index, V1CSIDriver item); public A addToItems(io.kubernetes.client.openapi.models.V1CSIDriver... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIDriver... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,81 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1CSIDriver buildItem(java.lang.Integer index); + public V1CSIDriver buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1CSIDriver buildFirstItem(); + public V1CSIDriver buildFirstItem(); - public io.kubernetes.client.openapi.models.V1CSIDriver buildLastItem(); + public V1CSIDriver buildLastItem(); - public io.kubernetes.client.openapi.models.V1CSIDriver buildMatchingItem( - java.util.function.Predicate - predicate); + public V1CSIDriver buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1CSIDriverListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CSIDriver item); + public V1CSIDriverListFluent.ItemsNested addNewItemLike(V1CSIDriver item); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIDriver item); + public V1CSIDriverListFluent.ItemsNested setNewItemLike(Integer index, V1CSIDriver item); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1CSIDriverListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editFirstItem(); + public V1CSIDriverListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editLastItem(); + public V1CSIDriverListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1CSIDriverListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CSIDriverListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CSIDriverListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested editMetadata(); + public V1CSIDriverListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - editOrNewMetadata(); + public V1CSIDriverListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CSIDriverListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1CSIDriverFluent> { @@ -132,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java index 7299d6f860..7b77d89e82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluentImpl.java @@ -38,14 +38,14 @@ public V1CSIDriverListFluentImpl(V1CSIDriverList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1CSIDriver item) { + public A addToItems(Integer index, V1CSIDriver item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIDriverBuilder(item); + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIDriver item) { + public A setToItems(Integer index, V1CSIDriver item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIDriverBuilder(item); + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSIDriver item : items) { - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIDriverBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSIDriver item : items) { - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIDriverBuilder(item); + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1CSIDriver item : items) { - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIDriverBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder = each.next(); + V1CSIDriverBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1CSIDriver buildItem(java.lang.Integer index) { + public V1CSIDriver buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CSIDriver buildFirstItem() { + public V1CSIDriver buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CSIDriver buildLastItem() { + public V1CSIDriver buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CSIDriver buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSIDriverBuilder item : items) { + public V1CSIDriver buildMatchingItem(Predicate predicate) { + for (V1CSIDriverBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1CSIDriver buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSIDriverBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1CSIDriverBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CSIDriver item : items) { + this.items = new ArrayList(); + for (V1CSIDriver item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1CSIDriver item : items) { + for (V1CSIDriver item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1CSIDriverListFluent.ItemsNested addNewItem() { return new V1CSIDriverListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CSIDriver item) { + public V1CSIDriverListFluent.ItemsNested addNewItemLike(V1CSIDriver item) { return new V1CSIDriverListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIDriver item) { - return new io.kubernetes.client.openapi.models.V1CSIDriverListFluentImpl.ItemsNestedImpl( - index, item); + public V1CSIDriverListFluent.ItemsNested setNewItemLike(Integer index, V1CSIDriver item) { + return new V1CSIDriverListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1CSIDriverListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editFirstItem() { + public V1CSIDriverListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editLastItem() { + public V1CSIDriverListFluent.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 io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1CSIDriverListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1CSIDriverListFluent.MetadataNested withNewMetadata() { return new V1CSIDriverListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1CSIDriverListFluentImpl.MetadataNestedImpl( - item); + public V1CSIDriverListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1CSIDriverListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - editMetadata() { + public V1CSIDriverListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - editOrNewMetadata() { + public V1CSIDriverListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1CSIDriverListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,20 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1CSIDriverFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIDriverListFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIDriver item) { + implements V1CSIDriverListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1CSIDriver item) { this.index = index; this.builder = new V1CSIDriverBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1CSIDriverBuilder(this); + this.builder = new V1CSIDriverBuilder(this); } - io.kubernetes.client.openapi.models.V1CSIDriverBuilder builder; - java.lang.Integer index; + V1CSIDriverBuilder builder; + Integer index; public N and() { return (N) V1CSIDriverListFluentImpl.this.setToItems(index, builder.build()); @@ -413,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIDriverListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1CSIDriverListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1CSIDriverListFluentImpl.this.withMetadata(builder.build()); 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 7deb779490..36809891e5 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSIDriverSpec, - io.kubernetes.client.openapi.models.V1CSIDriverSpecBuilder> { + implements VisitableBuilder { public V1CSIDriverSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent) { this(fluent, false); } - public V1CSIDriverSpecBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIDriverSpec(), validationEnabled); } - public V1CSIDriverSpecBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CSIDriverSpec instance) { + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent, V1CSIDriverSpec instance) { this(fluent, instance, false); } public V1CSIDriverSpecBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CSIDriverSpec instance, - java.lang.Boolean validationEnabled) { + V1CSIDriverSpecFluent fluent, V1CSIDriverSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAttachRequired(instance.getAttachRequired()); @@ -55,6 +47,8 @@ public V1CSIDriverSpecBuilder( fluent.withRequiresRepublish(instance.getRequiresRepublish()); + fluent.withSeLinuxMount(instance.getSeLinuxMount()); + fluent.withStorageCapacity(instance.getStorageCapacity()); fluent.withTokenRequests(instance.getTokenRequests()); @@ -64,13 +58,11 @@ public V1CSIDriverSpecBuilder( this.validationEnabled = validationEnabled; } - public V1CSIDriverSpecBuilder(io.kubernetes.client.openapi.models.V1CSIDriverSpec instance) { + public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance) { this(instance, false); } - public V1CSIDriverSpecBuilder( - io.kubernetes.client.openapi.models.V1CSIDriverSpec instance, - java.lang.Boolean validationEnabled) { + public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAttachRequired(instance.getAttachRequired()); @@ -80,6 +72,8 @@ public V1CSIDriverSpecBuilder( this.withRequiresRepublish(instance.getRequiresRepublish()); + this.withSeLinuxMount(instance.getSeLinuxMount()); + this.withStorageCapacity(instance.getStorageCapacity()); this.withTokenRequests(instance.getTokenRequests()); @@ -89,15 +83,16 @@ public V1CSIDriverSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIDriverSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIDriverSpec build() { + public V1CSIDriverSpec build() { V1CSIDriverSpec buildable = new V1CSIDriverSpec(); buildable.setAttachRequired(fluent.getAttachRequired()); buildable.setFsGroupPolicy(fluent.getFsGroupPolicy()); buildable.setPodInfoOnMount(fluent.getPodInfoOnMount()); buildable.setRequiresRepublish(fluent.getRequiresRepublish()); + buildable.setSeLinuxMount(fluent.getSeLinuxMount()); buildable.setStorageCapacity(fluent.getStorageCapacity()); buildable.setTokenRequests(fluent.getTokenRequests()); buildable.setVolumeLifecycleModes(fluent.getVolumeLifecycleModes()); 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 1824213b82..5296f11c37 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 @@ -22,49 +22,52 @@ public interface V1CSIDriverSpecFluent> extends Fluent { public Boolean getAttachRequired(); - public A withAttachRequired(java.lang.Boolean attachRequired); + public A withAttachRequired(Boolean attachRequired); - public java.lang.Boolean hasAttachRequired(); + public Boolean hasAttachRequired(); public String getFsGroupPolicy(); - public A withFsGroupPolicy(java.lang.String fsGroupPolicy); + public A withFsGroupPolicy(String fsGroupPolicy); - public java.lang.Boolean hasFsGroupPolicy(); + public Boolean hasFsGroupPolicy(); - public java.lang.Boolean getPodInfoOnMount(); + public Boolean getPodInfoOnMount(); - public A withPodInfoOnMount(java.lang.Boolean podInfoOnMount); + public A withPodInfoOnMount(Boolean podInfoOnMount); - public java.lang.Boolean hasPodInfoOnMount(); + public Boolean hasPodInfoOnMount(); - public java.lang.Boolean getRequiresRepublish(); + public Boolean getRequiresRepublish(); - public A withRequiresRepublish(java.lang.Boolean requiresRepublish); + public A withRequiresRepublish(Boolean requiresRepublish); - public java.lang.Boolean hasRequiresRepublish(); + public Boolean hasRequiresRepublish(); - public java.lang.Boolean getStorageCapacity(); + public Boolean getSeLinuxMount(); - public A withStorageCapacity(java.lang.Boolean storageCapacity); + public A withSeLinuxMount(Boolean seLinuxMount); - public java.lang.Boolean hasStorageCapacity(); + public Boolean hasSeLinuxMount(); + + public Boolean getStorageCapacity(); + + public A withStorageCapacity(Boolean storageCapacity); + + public Boolean hasStorageCapacity(); public A addToTokenRequests(Integer index, StorageV1TokenRequest item); - public A setToTokenRequests( - java.lang.Integer index, io.kubernetes.client.openapi.models.StorageV1TokenRequest item); + public A setToTokenRequests(Integer index, StorageV1TokenRequest item); public A addToTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items); - public A addAllToTokenRequests( - Collection items); + public A addAllToTokenRequests(Collection items); public A removeFromTokenRequests( io.kubernetes.client.openapi.models.StorageV1TokenRequest... items); - public A removeAllFromTokenRequests( - java.util.Collection items); + public A removeAllFromTokenRequests(Collection items); public A removeMatchingFromTokenRequests(Predicate predicate); @@ -74,89 +77,74 @@ public A removeAllFromTokenRequests( * @return The buildable object. */ @Deprecated - public List getTokenRequests(); + public List getTokenRequests(); - public java.util.List - buildTokenRequests(); + public List buildTokenRequests(); - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildTokenRequest( - java.lang.Integer index); + public StorageV1TokenRequest buildTokenRequest(Integer index); - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildFirstTokenRequest(); + public StorageV1TokenRequest buildFirstTokenRequest(); - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildLastTokenRequest(); + public StorageV1TokenRequest buildLastTokenRequest(); - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildMatchingTokenRequest( - java.util.function.Predicate - predicate); + public StorageV1TokenRequest buildMatchingTokenRequest( + Predicate predicate); - public java.lang.Boolean hasMatchingTokenRequest( - java.util.function.Predicate - predicate); + public Boolean hasMatchingTokenRequest(Predicate predicate); - public A withTokenRequests( - java.util.List tokenRequests); + public A withTokenRequests(List tokenRequests); public A withTokenRequests( io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests); - public java.lang.Boolean hasTokenRequests(); + public Boolean hasTokenRequests(); public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequest(); - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - addNewTokenRequestLike(io.kubernetes.client.openapi.models.StorageV1TokenRequest item); + public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequestLike( + StorageV1TokenRequest item); - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - setNewTokenRequestLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.StorageV1TokenRequest item); + public V1CSIDriverSpecFluent.TokenRequestsNested setNewTokenRequestLike( + Integer index, StorageV1TokenRequest item); - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editTokenRequest(java.lang.Integer index); + public V1CSIDriverSpecFluent.TokenRequestsNested editTokenRequest(Integer index); - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editFirstTokenRequest(); + public V1CSIDriverSpecFluent.TokenRequestsNested editFirstTokenRequest(); - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editLastTokenRequest(); + public V1CSIDriverSpecFluent.TokenRequestsNested editLastTokenRequest(); - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editMatchingTokenRequest( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder> - predicate); + public V1CSIDriverSpecFluent.TokenRequestsNested editMatchingTokenRequest( + Predicate predicate); - public A addToVolumeLifecycleModes(java.lang.Integer index, java.lang.String item); + public A addToVolumeLifecycleModes(Integer index, String item); - public A setToVolumeLifecycleModes(java.lang.Integer index, java.lang.String item); + public A setToVolumeLifecycleModes(Integer index, String item); public A addToVolumeLifecycleModes(java.lang.String... items); - public A addAllToVolumeLifecycleModes(java.util.Collection items); + public A addAllToVolumeLifecycleModes(Collection items); public A removeFromVolumeLifecycleModes(java.lang.String... items); - public A removeAllFromVolumeLifecycleModes(java.util.Collection items); + public A removeAllFromVolumeLifecycleModes(Collection items); - public java.util.List getVolumeLifecycleModes(); + public List getVolumeLifecycleModes(); - public java.lang.String getVolumeLifecycleMode(java.lang.Integer index); + public String getVolumeLifecycleMode(Integer index); - public java.lang.String getFirstVolumeLifecycleMode(); + public String getFirstVolumeLifecycleMode(); - public java.lang.String getLastVolumeLifecycleMode(); + public String getLastVolumeLifecycleMode(); - public java.lang.String getMatchingVolumeLifecycleMode( - java.util.function.Predicate predicate); + public String getMatchingVolumeLifecycleMode(Predicate predicate); - public java.lang.Boolean hasMatchingVolumeLifecycleMode( - java.util.function.Predicate predicate); + public Boolean hasMatchingVolumeLifecycleMode(Predicate predicate); - public A withVolumeLifecycleModes(java.util.List volumeLifecycleModes); + public A withVolumeLifecycleModes(List volumeLifecycleModes); public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes); - public java.lang.Boolean hasVolumeLifecycleModes(); + public Boolean hasVolumeLifecycleModes(); public A withAttachRequired(); @@ -164,6 +152,8 @@ public java.lang.Boolean hasMatchingVolumeLifecycleMode( public A withRequiresRepublish(); + public A withSeLinuxMount(); + public A withStorageCapacity(); public interface TokenRequestsNested diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java index 276d53f4bb..8b9b50dcd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluentImpl.java @@ -26,7 +26,7 @@ public class V1CSIDriverSpecFluentImpl> exten implements V1CSIDriverSpecFluent { public V1CSIDriverSpecFluentImpl() {} - public V1CSIDriverSpecFluentImpl(io.kubernetes.client.openapi.models.V1CSIDriverSpec instance) { + public V1CSIDriverSpecFluentImpl(V1CSIDriverSpec instance) { this.withAttachRequired(instance.getAttachRequired()); this.withFsGroupPolicy(instance.getFsGroupPolicy()); @@ -35,6 +35,8 @@ public V1CSIDriverSpecFluentImpl(io.kubernetes.client.openapi.models.V1CSIDriver this.withRequiresRepublish(instance.getRequiresRepublish()); + this.withSeLinuxMount(instance.getSeLinuxMount()); + this.withStorageCapacity(instance.getStorageCapacity()); this.withTokenRequests(instance.getTokenRequests()); @@ -44,85 +46,96 @@ public V1CSIDriverSpecFluentImpl(io.kubernetes.client.openapi.models.V1CSIDriver private Boolean attachRequired; private String fsGroupPolicy; - private java.lang.Boolean podInfoOnMount; - private java.lang.Boolean requiresRepublish; - private java.lang.Boolean storageCapacity; + private Boolean podInfoOnMount; + private Boolean requiresRepublish; + private Boolean seLinuxMount; + private Boolean storageCapacity; private ArrayList tokenRequests; - private List volumeLifecycleModes; + private List volumeLifecycleModes; - public java.lang.Boolean getAttachRequired() { + public Boolean getAttachRequired() { return this.attachRequired; } - public A withAttachRequired(java.lang.Boolean attachRequired) { + public A withAttachRequired(Boolean attachRequired) { this.attachRequired = attachRequired; return (A) this; } - public java.lang.Boolean hasAttachRequired() { + public Boolean hasAttachRequired() { return this.attachRequired != null; } - public java.lang.String getFsGroupPolicy() { + public String getFsGroupPolicy() { return this.fsGroupPolicy; } - public A withFsGroupPolicy(java.lang.String fsGroupPolicy) { + public A withFsGroupPolicy(String fsGroupPolicy) { this.fsGroupPolicy = fsGroupPolicy; return (A) this; } - public java.lang.Boolean hasFsGroupPolicy() { + public Boolean hasFsGroupPolicy() { return this.fsGroupPolicy != null; } - public java.lang.Boolean getPodInfoOnMount() { + public Boolean getPodInfoOnMount() { return this.podInfoOnMount; } - public A withPodInfoOnMount(java.lang.Boolean podInfoOnMount) { + public A withPodInfoOnMount(Boolean podInfoOnMount) { this.podInfoOnMount = podInfoOnMount; return (A) this; } - public java.lang.Boolean hasPodInfoOnMount() { + public Boolean hasPodInfoOnMount() { return this.podInfoOnMount != null; } - public java.lang.Boolean getRequiresRepublish() { + public Boolean getRequiresRepublish() { return this.requiresRepublish; } - public A withRequiresRepublish(java.lang.Boolean requiresRepublish) { + public A withRequiresRepublish(Boolean requiresRepublish) { this.requiresRepublish = requiresRepublish; return (A) this; } - public java.lang.Boolean hasRequiresRepublish() { + public Boolean hasRequiresRepublish() { return this.requiresRepublish != null; } - public java.lang.Boolean getStorageCapacity() { + public Boolean getSeLinuxMount() { + return this.seLinuxMount; + } + + public A withSeLinuxMount(Boolean seLinuxMount) { + this.seLinuxMount = seLinuxMount; + return (A) this; + } + + public Boolean hasSeLinuxMount() { + return this.seLinuxMount != null; + } + + public Boolean getStorageCapacity() { return this.storageCapacity; } - public A withStorageCapacity(java.lang.Boolean storageCapacity) { + public A withStorageCapacity(Boolean storageCapacity) { this.storageCapacity = storageCapacity; return (A) this; } - public java.lang.Boolean hasStorageCapacity() { + public Boolean hasStorageCapacity() { return this.storageCapacity != null; } public A addToTokenRequests(Integer index, StorageV1TokenRequest item) { if (this.tokenRequests == null) { - this.tokenRequests = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder>(); + this.tokenRequests = new ArrayList(); } - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = - new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(item); + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); _visitables .get("tokenRequests") .add(index >= 0 ? index : _visitables.get("tokenRequests").size(), builder); @@ -130,15 +143,11 @@ public A addToTokenRequests(Integer index, StorageV1TokenRequest item) { return (A) this; } - public A setToTokenRequests( - java.lang.Integer index, io.kubernetes.client.openapi.models.StorageV1TokenRequest item) { + public A setToTokenRequests(Integer index, StorageV1TokenRequest item) { if (this.tokenRequests == null) { - this.tokenRequests = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder>(); + this.tokenRequests = new ArrayList(); } - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = - new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(item); + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); if (index < 0 || index >= _visitables.get("tokenRequests").size()) { _visitables.get("tokenRequests").add(builder); } else { @@ -154,29 +163,22 @@ public A setToTokenRequests( public A addToTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { if (this.tokenRequests == null) { - this.tokenRequests = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder>(); + this.tokenRequests = new ArrayList(); } - for (io.kubernetes.client.openapi.models.StorageV1TokenRequest item : items) { - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = - new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(item); + 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) { + public A addAllToTokenRequests(Collection items) { if (this.tokenRequests == null) { - this.tokenRequests = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder>(); + this.tokenRequests = new ArrayList(); } - for (io.kubernetes.client.openapi.models.StorageV1TokenRequest item : items) { - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = - new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(item); + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); _visitables.get("tokenRequests").add(builder); this.tokenRequests.add(builder); } @@ -185,9 +187,8 @@ public A addAllToTokenRequests( public A removeFromTokenRequests( io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - for (io.kubernetes.client.openapi.models.StorageV1TokenRequest item : items) { - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = - new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(item); + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); _visitables.get("tokenRequests").remove(builder); if (this.tokenRequests != null) { this.tokenRequests.remove(builder); @@ -196,11 +197,9 @@ public A removeFromTokenRequests( return (A) this; } - public A removeAllFromTokenRequests( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.StorageV1TokenRequest item : items) { - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = - new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(item); + public A removeAllFromTokenRequests(Collection items) { + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); _visitables.get("tokenRequests").remove(builder); if (this.tokenRequests != null) { this.tokenRequests.remove(builder); @@ -209,14 +208,12 @@ public A removeAllFromTokenRequests( return (A) this; } - public A removeMatchingFromTokenRequests( - Predicate predicate) { + public A removeMatchingFromTokenRequests(Predicate predicate) { if (tokenRequests == null) return (A) this; - final Iterator each = - tokenRequests.iterator(); + final Iterator each = tokenRequests.iterator(); final List visitables = _visitables.get("tokenRequests"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder = each.next(); + StorageV1TokenRequestBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -231,33 +228,29 @@ public A removeMatchingFromTokenRequests( * @return The buildable object. */ @Deprecated - public java.util.List - getTokenRequests() { + public List getTokenRequests() { return tokenRequests != null ? build(tokenRequests) : null; } - public java.util.List - buildTokenRequests() { + public List buildTokenRequests() { return tokenRequests != null ? build(tokenRequests) : null; } - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildTokenRequest( - java.lang.Integer index) { + public StorageV1TokenRequest buildTokenRequest(Integer index) { return this.tokenRequests.get(index).build(); } - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildFirstTokenRequest() { + public StorageV1TokenRequest buildFirstTokenRequest() { return this.tokenRequests.get(0).build(); } - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildLastTokenRequest() { + public StorageV1TokenRequest buildLastTokenRequest() { return this.tokenRequests.get(tokenRequests.size() - 1).build(); } - public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildMatchingTokenRequest( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder item : tokenRequests) { + public StorageV1TokenRequest buildMatchingTokenRequest( + Predicate predicate) { + for (StorageV1TokenRequestBuilder item : tokenRequests) { if (predicate.test(item)) { return item.build(); } @@ -265,10 +258,8 @@ public io.kubernetes.client.openapi.models.StorageV1TokenRequest buildMatchingTo return null; } - public java.lang.Boolean hasMatchingTokenRequest( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder item : tokenRequests) { + public Boolean hasMatchingTokenRequest(Predicate predicate) { + for (StorageV1TokenRequestBuilder item : tokenRequests) { if (predicate.test(item)) { return true; } @@ -276,14 +267,13 @@ public java.lang.Boolean hasMatchingTokenRequest( return false; } - public A withTokenRequests( - java.util.List tokenRequests) { + public A withTokenRequests(List tokenRequests) { if (this.tokenRequests != null) { _visitables.get("tokenRequests").removeAll(this.tokenRequests); } if (tokenRequests != null) { - this.tokenRequests = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.StorageV1TokenRequest item : tokenRequests) { + this.tokenRequests = new ArrayList(); + for (StorageV1TokenRequest item : tokenRequests) { this.addToTokenRequests(item); } } else { @@ -298,14 +288,14 @@ public A withTokenRequests( this.tokenRequests.clear(); } if (tokenRequests != null) { - for (io.kubernetes.client.openapi.models.StorageV1TokenRequest item : tokenRequests) { + for (StorageV1TokenRequest item : tokenRequests) { this.addToTokenRequests(item); } } return (A) this; } - public java.lang.Boolean hasTokenRequests() { + public Boolean hasTokenRequests() { return tokenRequests != null && !tokenRequests.isEmpty(); } @@ -313,44 +303,36 @@ public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequest() { return new V1CSIDriverSpecFluentImpl.TokenRequestsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - addNewTokenRequestLike(io.kubernetes.client.openapi.models.StorageV1TokenRequest item) { + public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequestLike( + StorageV1TokenRequest item) { return new V1CSIDriverSpecFluentImpl.TokenRequestsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - setNewTokenRequestLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.StorageV1TokenRequest item) { - return new io.kubernetes.client.openapi.models.V1CSIDriverSpecFluentImpl - .TokenRequestsNestedImpl(index, item); + public V1CSIDriverSpecFluent.TokenRequestsNested setNewTokenRequestLike( + Integer index, StorageV1TokenRequest item) { + return new V1CSIDriverSpecFluentImpl.TokenRequestsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editTokenRequest(java.lang.Integer index) { + public V1CSIDriverSpecFluent.TokenRequestsNested editTokenRequest(Integer index) { if (tokenRequests.size() <= index) throw new RuntimeException("Can't edit tokenRequests. Index exceeds size."); return setNewTokenRequestLike(index, buildTokenRequest(index)); } - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editFirstTokenRequest() { + public V1CSIDriverSpecFluent.TokenRequestsNested editFirstTokenRequest() { if (tokenRequests.size() == 0) throw new RuntimeException("Can't edit first tokenRequests. The list is empty."); return setNewTokenRequestLike(0, buildTokenRequest(0)); } - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editLastTokenRequest() { + public V1CSIDriverSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested - editMatchingTokenRequest( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder> - predicate) { + public V1CSIDriverSpecFluent.TokenRequestsNested editMatchingTokenRequest( + Predicate predicate) { int index = -1; for (int i = 0; i < tokenRequests.size(); i++) { if (predicate.test(tokenRequests.get(i))) { @@ -362,17 +344,17 @@ public V1CSIDriverSpecFluent.TokenRequestsNested addNewTokenRequest() { return setNewTokenRequestLike(index, buildTokenRequest(index)); } - public A addToVolumeLifecycleModes(java.lang.Integer index, java.lang.String item) { + public A addToVolumeLifecycleModes(Integer index, String item) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new java.util.ArrayList(); + this.volumeLifecycleModes = new ArrayList(); } this.volumeLifecycleModes.add(index, item); return (A) this; } - public A setToVolumeLifecycleModes(java.lang.Integer index, java.lang.String item) { + public A setToVolumeLifecycleModes(Integer index, String item) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new java.util.ArrayList(); + this.volumeLifecycleModes = new ArrayList(); } this.volumeLifecycleModes.set(index, item); return (A) this; @@ -380,26 +362,26 @@ public A setToVolumeLifecycleModes(java.lang.Integer index, java.lang.String ite public A addToVolumeLifecycleModes(java.lang.String... items) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new java.util.ArrayList(); + this.volumeLifecycleModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.volumeLifecycleModes.add(item); } return (A) this; } - public A addAllToVolumeLifecycleModes(java.util.Collection items) { + public A addAllToVolumeLifecycleModes(Collection items) { if (this.volumeLifecycleModes == null) { - this.volumeLifecycleModes = new java.util.ArrayList(); + this.volumeLifecycleModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.volumeLifecycleModes.add(item); } return (A) this; } public A removeFromVolumeLifecycleModes(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.volumeLifecycleModes != null) { this.volumeLifecycleModes.remove(item); } @@ -407,8 +389,8 @@ public A removeFromVolumeLifecycleModes(java.lang.String... items) { return (A) this; } - public A removeAllFromVolumeLifecycleModes(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVolumeLifecycleModes(Collection items) { + for (String item : items) { if (this.volumeLifecycleModes != null) { this.volumeLifecycleModes.remove(item); } @@ -416,25 +398,24 @@ public A removeAllFromVolumeLifecycleModes(java.util.Collection getVolumeLifecycleModes() { + public List getVolumeLifecycleModes() { return this.volumeLifecycleModes; } - public java.lang.String getVolumeLifecycleMode(java.lang.Integer index) { + public String getVolumeLifecycleMode(Integer index) { return this.volumeLifecycleModes.get(index); } - public java.lang.String getFirstVolumeLifecycleMode() { + public String getFirstVolumeLifecycleMode() { return this.volumeLifecycleModes.get(0); } - public java.lang.String getLastVolumeLifecycleMode() { + public String getLastVolumeLifecycleMode() { return this.volumeLifecycleModes.get(volumeLifecycleModes.size() - 1); } - public java.lang.String getMatchingVolumeLifecycleMode( - java.util.function.Predicate predicate) { - for (java.lang.String item : volumeLifecycleModes) { + public String getMatchingVolumeLifecycleMode(Predicate predicate) { + for (String item : volumeLifecycleModes) { if (predicate.test(item)) { return item; } @@ -442,9 +423,8 @@ public java.lang.String getMatchingVolumeLifecycleMode( return null; } - public java.lang.Boolean hasMatchingVolumeLifecycleMode( - java.util.function.Predicate predicate) { - for (java.lang.String item : volumeLifecycleModes) { + public Boolean hasMatchingVolumeLifecycleMode(Predicate predicate) { + for (String item : volumeLifecycleModes) { if (predicate.test(item)) { return true; } @@ -452,10 +432,10 @@ public java.lang.Boolean hasMatchingVolumeLifecycleMode( return false; } - public A withVolumeLifecycleModes(java.util.List volumeLifecycleModes) { + public A withVolumeLifecycleModes(List volumeLifecycleModes) { if (volumeLifecycleModes != null) { - this.volumeLifecycleModes = new java.util.ArrayList(); - for (java.lang.String item : volumeLifecycleModes) { + this.volumeLifecycleModes = new ArrayList(); + for (String item : volumeLifecycleModes) { this.addToVolumeLifecycleModes(item); } } else { @@ -469,14 +449,14 @@ public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes) { this.volumeLifecycleModes.clear(); } if (volumeLifecycleModes != null) { - for (java.lang.String item : volumeLifecycleModes) { + for (String item : volumeLifecycleModes) { this.addToVolumeLifecycleModes(item); } } return (A) this; } - public java.lang.Boolean hasVolumeLifecycleModes() { + public Boolean hasVolumeLifecycleModes() { return volumeLifecycleModes != null && !volumeLifecycleModes.isEmpty(); } @@ -496,6 +476,8 @@ public boolean equals(Object o) { if (requiresRepublish != null ? !requiresRepublish.equals(that.requiresRepublish) : that.requiresRepublish != null) return false; + if (seLinuxMount != null ? !seLinuxMount.equals(that.seLinuxMount) : that.seLinuxMount != null) + return false; if (storageCapacity != null ? !storageCapacity.equals(that.storageCapacity) : that.storageCapacity != null) return false; @@ -514,13 +496,14 @@ public int hashCode() { fsGroupPolicy, podInfoOnMount, requiresRepublish, + seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (attachRequired != null) { @@ -539,6 +522,10 @@ public java.lang.String toString() { sb.append("requiresRepublish:"); sb.append(requiresRepublish + ","); } + if (seLinuxMount != null) { + sb.append("seLinuxMount:"); + sb.append(seLinuxMount + ","); + } if (storageCapacity != null) { sb.append("storageCapacity:"); sb.append(storageCapacity + ","); @@ -567,27 +554,29 @@ public A withRequiresRepublish() { return withRequiresRepublish(true); } + public A withSeLinuxMount() { + return withSeLinuxMount(true); + } + public A withStorageCapacity() { return withStorageCapacity(true); } class TokenRequestsNestedImpl extends StorageV1TokenRequestFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIDriverSpecFluent.TokenRequestsNested, - Nested { - TokenRequestsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.StorageV1TokenRequest item) { + implements V1CSIDriverSpecFluent.TokenRequestsNested, Nested { + TokenRequestsNestedImpl(Integer index, StorageV1TokenRequest item) { this.index = index; this.builder = new StorageV1TokenRequestBuilder(this, item); } TokenRequestsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder(this); + this.builder = new StorageV1TokenRequestBuilder(this); } - io.kubernetes.client.openapi.models.StorageV1TokenRequestBuilder builder; - java.lang.Integer index; + StorageV1TokenRequestBuilder builder; + Integer index; public N and() { return (N) V1CSIDriverSpecFluentImpl.this.setToTokenRequests(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java index 43ceb0d2c6..236507555a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSINodeBuilder extends V1CSINodeFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSINode, - io.kubernetes.client.openapi.models.V1CSINodeBuilder> { + implements VisitableBuilder { public V1CSINodeBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CSINodeBuilder(V1CSINodeFluent fluent) { this(fluent, false); } - public V1CSINodeBuilder( - io.kubernetes.client.openapi.models.V1CSINodeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSINodeBuilder(V1CSINodeFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSINode(), validationEnabled); } - public V1CSINodeBuilder( - io.kubernetes.client.openapi.models.V1CSINodeFluent fluent, - io.kubernetes.client.openapi.models.V1CSINode instance) { + public V1CSINodeBuilder(V1CSINodeFluent fluent, V1CSINode instance) { this(fluent, instance, false); } public V1CSINodeBuilder( - io.kubernetes.client.openapi.models.V1CSINodeFluent fluent, - io.kubernetes.client.openapi.models.V1CSINode instance, - java.lang.Boolean validationEnabled) { + V1CSINodeFluent fluent, V1CSINode instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +50,11 @@ public V1CSINodeBuilder( this.validationEnabled = validationEnabled; } - public V1CSINodeBuilder(io.kubernetes.client.openapi.models.V1CSINode instance) { + public V1CSINodeBuilder(V1CSINode instance) { this(instance, false); } - public V1CSINodeBuilder( - io.kubernetes.client.openapi.models.V1CSINode instance, java.lang.Boolean validationEnabled) { + public V1CSINodeBuilder(V1CSINode instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1CSINodeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSINodeFluent fluent; - java.lang.Boolean validationEnabled; + V1CSINodeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSINode build() { + public V1CSINode build() { V1CSINode buildable = new V1CSINode(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 3825fa0689..6975f77c35 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSINodeDriver, V1CSINodeDriverBuilder> { + implements VisitableBuilder { public V1CSINodeDriverBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1CSINodeDriverBuilder(Boolean validationEnabled) { this(new V1CSINodeDriver(), validationEnabled); } - public V1CSINodeDriverBuilder( - io.kubernetes.client.openapi.models.V1CSINodeDriverFluent fluent) { + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent) { this(fluent, false); } - public V1CSINodeDriverBuilder( - io.kubernetes.client.openapi.models.V1CSINodeDriverFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSINodeDriver(), validationEnabled); } - public V1CSINodeDriverBuilder( - io.kubernetes.client.openapi.models.V1CSINodeDriverFluent fluent, - io.kubernetes.client.openapi.models.V1CSINodeDriver instance) { + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent, V1CSINodeDriver instance) { this(fluent, instance, false); } public V1CSINodeDriverBuilder( - io.kubernetes.client.openapi.models.V1CSINodeDriverFluent fluent, - io.kubernetes.client.openapi.models.V1CSINodeDriver instance, - java.lang.Boolean validationEnabled) { + V1CSINodeDriverFluent fluent, V1CSINodeDriver instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAllocatable(instance.getAllocatable()); @@ -58,13 +50,11 @@ public V1CSINodeDriverBuilder( this.validationEnabled = validationEnabled; } - public V1CSINodeDriverBuilder(io.kubernetes.client.openapi.models.V1CSINodeDriver instance) { + public V1CSINodeDriverBuilder(V1CSINodeDriver instance) { this(instance, false); } - public V1CSINodeDriverBuilder( - io.kubernetes.client.openapi.models.V1CSINodeDriver instance, - java.lang.Boolean validationEnabled) { + public V1CSINodeDriverBuilder(V1CSINodeDriver instance, Boolean validationEnabled) { this.fluent = this; this.withAllocatable(instance.getAllocatable()); @@ -77,10 +67,10 @@ public V1CSINodeDriverBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSINodeDriverFluent fluent; - java.lang.Boolean validationEnabled; + V1CSINodeDriverFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSINodeDriver build() { + public V1CSINodeDriver build() { V1CSINodeDriver buildable = new V1CSINodeDriver(); buildable.setAllocatable(fluent.getAllocatable()); buildable.setName(fluent.getName()); 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 731b453c57..f60d242b17 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 @@ -29,68 +29,65 @@ public interface V1CSINodeDriverFluent> exten @Deprecated public V1VolumeNodeResources getAllocatable(); - public io.kubernetes.client.openapi.models.V1VolumeNodeResources buildAllocatable(); + public V1VolumeNodeResources buildAllocatable(); - public A withAllocatable(io.kubernetes.client.openapi.models.V1VolumeNodeResources allocatable); + public A withAllocatable(V1VolumeNodeResources allocatable); public Boolean hasAllocatable(); public V1CSINodeDriverFluent.AllocatableNested withNewAllocatable(); - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - withNewAllocatableLike(io.kubernetes.client.openapi.models.V1VolumeNodeResources item); + public V1CSINodeDriverFluent.AllocatableNested withNewAllocatableLike( + V1VolumeNodeResources item); - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - editAllocatable(); + public V1CSINodeDriverFluent.AllocatableNested editAllocatable(); - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - editOrNewAllocatable(); + public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatable(); - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - editOrNewAllocatableLike(io.kubernetes.client.openapi.models.V1VolumeNodeResources item); + public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatableLike( + V1VolumeNodeResources item); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNodeID(); + public String getNodeID(); - public A withNodeID(java.lang.String nodeID); + public A withNodeID(String nodeID); - public java.lang.Boolean hasNodeID(); + public Boolean hasNodeID(); - public A addToTopologyKeys(Integer index, java.lang.String item); + public A addToTopologyKeys(Integer index, String item); - public A setToTopologyKeys(java.lang.Integer index, java.lang.String item); + public A setToTopologyKeys(Integer index, String item); public A addToTopologyKeys(java.lang.String... items); - public A addAllToTopologyKeys(Collection items); + public A addAllToTopologyKeys(Collection items); public A removeFromTopologyKeys(java.lang.String... items); - public A removeAllFromTopologyKeys(java.util.Collection items); + public A removeAllFromTopologyKeys(Collection items); - public List getTopologyKeys(); + public List getTopologyKeys(); - public java.lang.String getTopologyKey(java.lang.Integer index); + public String getTopologyKey(Integer index); - public java.lang.String getFirstTopologyKey(); + public String getFirstTopologyKey(); - public java.lang.String getLastTopologyKey(); + public String getLastTopologyKey(); - public java.lang.String getMatchingTopologyKey(Predicate predicate); + public String getMatchingTopologyKey(Predicate predicate); - public java.lang.Boolean hasMatchingTopologyKey( - java.util.function.Predicate predicate); + public Boolean hasMatchingTopologyKey(Predicate predicate); - public A withTopologyKeys(java.util.List topologyKeys); + public A withTopologyKeys(List topologyKeys); public A withTopologyKeys(java.lang.String... topologyKeys); - public java.lang.Boolean hasTopologyKeys(); + public Boolean hasTopologyKeys(); public interface AllocatableNested extends Nested, V1VolumeNodeResourcesFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java index 28c7daa33e..cb3c618d26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluentImpl.java @@ -25,7 +25,7 @@ public class V1CSINodeDriverFluentImpl> exten implements V1CSINodeDriverFluent { public V1CSINodeDriverFluentImpl() {} - public V1CSINodeDriverFluentImpl(io.kubernetes.client.openapi.models.V1CSINodeDriver instance) { + public V1CSINodeDriverFluentImpl(V1CSINodeDriver instance) { this.withAllocatable(instance.getAllocatable()); this.withName(instance.getName()); @@ -37,8 +37,8 @@ public V1CSINodeDriverFluentImpl(io.kubernetes.client.openapi.models.V1CSINodeDr private V1VolumeNodeResourcesBuilder allocatable; private String name; - private java.lang.String nodeID; - private List topologyKeys; + private String nodeID; + private List topologyKeys; /** * This method has been deprecated, please use method buildAllocatable instead. @@ -50,16 +50,18 @@ public V1VolumeNodeResources getAllocatable() { return this.allocatable != null ? this.allocatable.build() : null; } - public io.kubernetes.client.openapi.models.V1VolumeNodeResources buildAllocatable() { + public V1VolumeNodeResources buildAllocatable() { return this.allocatable != null ? this.allocatable.build() : null; } - public A withAllocatable(io.kubernetes.client.openapi.models.V1VolumeNodeResources allocatable) { + public A withAllocatable(V1VolumeNodeResources allocatable) { _visitables.get("allocatable").remove(this.allocatable); if (allocatable != null) { - this.allocatable = - new io.kubernetes.client.openapi.models.V1VolumeNodeResourcesBuilder(allocatable); + this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); _visitables.get("allocatable").add(this.allocatable); + } else { + this.allocatable = null; + _visitables.get("allocatable").remove(this.allocatable); } return (A) this; } @@ -72,66 +74,62 @@ public V1CSINodeDriverFluent.AllocatableNested withNewAllocatable() { return new V1CSINodeDriverFluentImpl.AllocatableNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - withNewAllocatableLike(io.kubernetes.client.openapi.models.V1VolumeNodeResources item) { + public V1CSINodeDriverFluent.AllocatableNested withNewAllocatableLike( + V1VolumeNodeResources item) { return new V1CSINodeDriverFluentImpl.AllocatableNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - editAllocatable() { + public V1CSINodeDriverFluent.AllocatableNested editAllocatable() { return withNewAllocatableLike(getAllocatable()); } - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - editOrNewAllocatable() { + public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatable() { return withNewAllocatableLike( - getAllocatable() != null - ? getAllocatable() - : new io.kubernetes.client.openapi.models.V1VolumeNodeResourcesBuilder().build()); + getAllocatable() != null ? getAllocatable() : new V1VolumeNodeResourcesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested - editOrNewAllocatableLike(io.kubernetes.client.openapi.models.V1VolumeNodeResources item) { + public V1CSINodeDriverFluent.AllocatableNested editOrNewAllocatableLike( + V1VolumeNodeResources item) { return withNewAllocatableLike(getAllocatable() != null ? getAllocatable() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNodeID() { + public String getNodeID() { return this.nodeID; } - public A withNodeID(java.lang.String nodeID) { + public A withNodeID(String nodeID) { this.nodeID = nodeID; return (A) this; } - public java.lang.Boolean hasNodeID() { + public Boolean hasNodeID() { return this.nodeID != null; } - public A addToTopologyKeys(Integer index, java.lang.String item) { + public A addToTopologyKeys(Integer index, String item) { if (this.topologyKeys == null) { - this.topologyKeys = new ArrayList(); + this.topologyKeys = new ArrayList(); } this.topologyKeys.add(index, item); return (A) this; } - public A setToTopologyKeys(java.lang.Integer index, java.lang.String item) { + public A setToTopologyKeys(Integer index, String item) { if (this.topologyKeys == null) { - this.topologyKeys = new java.util.ArrayList(); + this.topologyKeys = new ArrayList(); } this.topologyKeys.set(index, item); return (A) this; @@ -139,26 +137,26 @@ public A setToTopologyKeys(java.lang.Integer index, java.lang.String item) { public A addToTopologyKeys(java.lang.String... items) { if (this.topologyKeys == null) { - this.topologyKeys = new java.util.ArrayList(); + this.topologyKeys = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.topologyKeys.add(item); } return (A) this; } - public A addAllToTopologyKeys(Collection items) { + public A addAllToTopologyKeys(Collection items) { if (this.topologyKeys == null) { - this.topologyKeys = new java.util.ArrayList(); + this.topologyKeys = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.topologyKeys.add(item); } return (A) this; } public A removeFromTopologyKeys(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.topologyKeys != null) { this.topologyKeys.remove(item); } @@ -166,8 +164,8 @@ public A removeFromTopologyKeys(java.lang.String... items) { return (A) this; } - public A removeAllFromTopologyKeys(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromTopologyKeys(Collection items) { + for (String item : items) { if (this.topologyKeys != null) { this.topologyKeys.remove(item); } @@ -175,24 +173,24 @@ public A removeAllFromTopologyKeys(java.util.Collection items) return (A) this; } - public java.util.List getTopologyKeys() { + public List getTopologyKeys() { return this.topologyKeys; } - public java.lang.String getTopologyKey(java.lang.Integer index) { + public String getTopologyKey(Integer index) { return this.topologyKeys.get(index); } - public java.lang.String getFirstTopologyKey() { + public String getFirstTopologyKey() { return this.topologyKeys.get(0); } - public java.lang.String getLastTopologyKey() { + public String getLastTopologyKey() { return this.topologyKeys.get(topologyKeys.size() - 1); } - public java.lang.String getMatchingTopologyKey(Predicate predicate) { - for (java.lang.String item : topologyKeys) { + public String getMatchingTopologyKey(Predicate predicate) { + for (String item : topologyKeys) { if (predicate.test(item)) { return item; } @@ -200,9 +198,8 @@ public java.lang.String getMatchingTopologyKey(Predicate predi return null; } - public java.lang.Boolean hasMatchingTopologyKey( - java.util.function.Predicate predicate) { - for (java.lang.String item : topologyKeys) { + public Boolean hasMatchingTopologyKey(Predicate predicate) { + for (String item : topologyKeys) { if (predicate.test(item)) { return true; } @@ -210,10 +207,10 @@ public java.lang.Boolean hasMatchingTopologyKey( return false; } - public A withTopologyKeys(java.util.List topologyKeys) { + public A withTopologyKeys(List topologyKeys) { if (topologyKeys != null) { - this.topologyKeys = new java.util.ArrayList(); - for (java.lang.String item : topologyKeys) { + this.topologyKeys = new ArrayList(); + for (String item : topologyKeys) { this.addToTopologyKeys(item); } } else { @@ -227,14 +224,14 @@ public A withTopologyKeys(java.lang.String... topologyKeys) { this.topologyKeys.clear(); } if (topologyKeys != null) { - for (java.lang.String item : topologyKeys) { + for (String item : topologyKeys) { this.addToTopologyKeys(item); } } return (A) this; } - public java.lang.Boolean hasTopologyKeys() { + public Boolean hasTopologyKeys() { return topologyKeys != null && !topologyKeys.isEmpty(); } @@ -255,7 +252,7 @@ public int hashCode() { return java.util.Objects.hash(allocatable, name, nodeID, topologyKeys, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (allocatable != null) { @@ -280,17 +277,16 @@ public java.lang.String toString() { class AllocatableNestedImpl extends V1VolumeNodeResourcesFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSINodeDriverFluent.AllocatableNested, - Nested { - AllocatableNestedImpl(io.kubernetes.client.openapi.models.V1VolumeNodeResources item) { + implements V1CSINodeDriverFluent.AllocatableNested, Nested { + AllocatableNestedImpl(V1VolumeNodeResources item) { this.builder = new V1VolumeNodeResourcesBuilder(this, item); } AllocatableNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeNodeResourcesBuilder(this); + this.builder = new V1VolumeNodeResourcesBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeNodeResourcesBuilder builder; + V1VolumeNodeResourcesBuilder builder; public N and() { return (N) V1CSINodeDriverFluentImpl.this.withAllocatable(builder.build()); 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 e6f62a938f..8f8b9f6e5b 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 @@ -19,15 +19,15 @@ public interface V1CSINodeFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,49 +37,45 @@ public interface V1CSINodeFluent> extends Fluent @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CSINodeFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CSINodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested editMetadata(); + public V1CSINodeFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested editOrNewMetadata(); + public V1CSINodeFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CSINodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CSINodeSpec getSpec(); - public io.kubernetes.client.openapi.models.V1CSINodeSpec buildSpec(); + public V1CSINodeSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1CSINodeSpec spec); + public A withSpec(V1CSINodeSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1CSINodeFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1CSINodeSpec item); + public V1CSINodeFluent.SpecNested withNewSpecLike(V1CSINodeSpec item); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested editSpec(); + public V1CSINodeFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested editOrNewSpec(); + public V1CSINodeFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1CSINodeSpec item); + public V1CSINodeFluent.SpecNested editOrNewSpecLike(V1CSINodeSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -89,8 +85,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1CSINodeSpecFluent> { + extends Nested, V1CSINodeSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java index 97082234cd..353b77170f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluentImpl.java @@ -21,7 +21,7 @@ public class V1CSINodeFluentImpl> extends BaseFluen implements V1CSINodeFluent { public V1CSINodeFluentImpl() {} - public V1CSINodeFluentImpl(io.kubernetes.client.openapi.models.V1CSINode instance) { + public V1CSINodeFluentImpl(V1CSINode instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1CSINodeFluentImpl(io.kubernetes.client.openapi.models.V1CSINode instanc } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1CSINodeSpecBuilder spec; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,24 +96,20 @@ public V1CSINodeFluent.MetadataNested withNewMetadata() { return new V1CSINodeFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CSINodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CSINodeFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested editMetadata() { + public V1CSINodeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested editOrNewMetadata() { + public V1CSINodeFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CSINodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -119,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CSINodeSpec getSpec() { + @Deprecated + public V1CSINodeSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1CSINodeSpec buildSpec() { + public V1CSINodeSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1CSINodeSpec spec) { + public A withSpec(V1CSINodeSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1CSINodeSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -145,24 +147,19 @@ public V1CSINodeFluent.SpecNested withNewSpec() { return new V1CSINodeFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1CSINodeSpec item) { - return new io.kubernetes.client.openapi.models.V1CSINodeFluentImpl.SpecNestedImpl(item); + public V1CSINodeFluent.SpecNested withNewSpecLike(V1CSINodeSpec item) { + return new V1CSINodeFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested editSpec() { + public V1CSINodeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1CSINodeSpecBuilder().build()); + public V1CSINodeFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1CSINodeSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1CSINodeSpec item) { + public V1CSINodeFluent.SpecNested editOrNewSpecLike(V1CSINodeSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -182,7 +179,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -206,16 +203,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSINodeFluent.MetadataNested, Nested { + implements V1CSINodeFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1CSINodeFluentImpl.this.withMetadata(builder.build()); @@ -227,17 +224,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1CSINodeSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSINodeFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1CSINodeSpec item) { + implements V1CSINodeFluent.SpecNested, Nested { + SpecNestedImpl(V1CSINodeSpec item) { this.builder = new V1CSINodeSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CSINodeSpecBuilder(this); + this.builder = new V1CSINodeSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1CSINodeSpecBuilder builder; + V1CSINodeSpecBuilder builder; public N and() { return (N) V1CSINodeFluentImpl.this.withSpec(builder.build()); 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 1e905d5828..7b1b26e47a 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSINodeListBuilder extends V1CSINodeListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSINodeList, - io.kubernetes.client.openapi.models.V1CSINodeListBuilder> { + implements VisitableBuilder { public V1CSINodeListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CSINodeListBuilder(V1CSINodeListFluent fluent) { this(fluent, false); } - public V1CSINodeListBuilder( - io.kubernetes.client.openapi.models.V1CSINodeListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSINodeListBuilder(V1CSINodeListFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSINodeList(), validationEnabled); } - public V1CSINodeListBuilder( - io.kubernetes.client.openapi.models.V1CSINodeListFluent fluent, - io.kubernetes.client.openapi.models.V1CSINodeList instance) { + public V1CSINodeListBuilder(V1CSINodeListFluent fluent, V1CSINodeList instance) { this(fluent, instance, false); } public V1CSINodeListBuilder( - io.kubernetes.client.openapi.models.V1CSINodeListFluent fluent, - io.kubernetes.client.openapi.models.V1CSINodeList instance, - java.lang.Boolean validationEnabled) { + V1CSINodeListFluent fluent, V1CSINodeList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1CSINodeListBuilder( this.validationEnabled = validationEnabled; } - public V1CSINodeListBuilder(io.kubernetes.client.openapi.models.V1CSINodeList instance) { + public V1CSINodeListBuilder(V1CSINodeList instance) { this(instance, false); } - public V1CSINodeListBuilder( - io.kubernetes.client.openapi.models.V1CSINodeList instance, - java.lang.Boolean validationEnabled) { + public V1CSINodeListBuilder(V1CSINodeList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1CSINodeListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSINodeListFluent fluent; - java.lang.Boolean validationEnabled; + V1CSINodeListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSINodeList build() { + public V1CSINodeList build() { V1CSINodeList buildable = new V1CSINodeList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 2312f7db9b..660babf636 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 @@ -22,22 +22,21 @@ public interface V1CSINodeListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1CSINode item); + public A addToItems(Integer index, V1CSINode item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINode item); + public A setToItems(Integer index, V1CSINode item); public A addToItems(io.kubernetes.client.openapi.models.V1CSINode... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,78 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1CSINode buildItem(java.lang.Integer index); + public V1CSINode buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1CSINode buildFirstItem(); + public V1CSINode buildFirstItem(); - public io.kubernetes.client.openapi.models.V1CSINode buildLastItem(); + public V1CSINode buildLastItem(); - public io.kubernetes.client.openapi.models.V1CSINode buildMatchingItem( - java.util.function.Predicate predicate); + public V1CSINode buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1CSINodeListFluent.ItemsNested addNewItem(); - public V1CSINodeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CSINode item); + public V1CSINodeListFluent.ItemsNested addNewItemLike(V1CSINode item); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINode item); + public V1CSINodeListFluent.ItemsNested setNewItemLike(Integer index, V1CSINode item); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1CSINodeListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editFirstItem(); + public V1CSINodeListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editLastItem(); + public V1CSINodeListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1CSINodeListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CSINodeListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CSINodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested editMetadata(); + public V1CSINodeListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested - editOrNewMetadata(); + public V1CSINodeListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CSINodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1CSINodeFluent> { @@ -128,8 +118,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java index ab15c45c00..7b46f20e94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluentImpl.java @@ -38,14 +38,14 @@ public V1CSINodeListFluentImpl(V1CSINodeList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1CSINode item) { + public A addToItems(Integer index, V1CSINode item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeBuilder(item); + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINode item) { + public A setToItems(Integer index, V1CSINode item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeBuilder(item); + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1CSINode... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSINode item : items) { - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSINode item : items) { - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeBuilder(item); + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection } public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - for (io.kubernetes.client.openapi.models.V1CSINode item : items) { - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeBuilder(item); + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items) return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1CSINode item : items) { - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder = each.next(); + V1CSINodeBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1CSINode buildItem(java.lang.Integer index) { + public V1CSINode buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CSINode buildFirstItem() { + public V1CSINode buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CSINode buildLastItem() { + public V1CSINode buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CSINode buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSINodeBuilder item : items) { + public V1CSINode buildMatchingItem(Predicate predicate) { + for (V1CSINodeBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -187,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1CSINode buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSINodeBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1CSINodeBuilder item : items) { if (predicate.test(item)) { return true; } @@ -198,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CSINode item : items) { + this.items = new ArrayList(); + for (V1CSINode item : items) { this.addToItems(item); } } else { @@ -218,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1CSINode item : items) { + for (V1CSINode item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -233,37 +221,32 @@ public V1CSINodeListFluent.ItemsNested addNewItem() { return new V1CSINodeListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CSINode item) { + public V1CSINodeListFluent.ItemsNested addNewItemLike(V1CSINode item) { return new V1CSINodeListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINode item) { - return new io.kubernetes.client.openapi.models.V1CSINodeListFluentImpl.ItemsNestedImpl( - index, item); + public V1CSINodeListFluent.ItemsNested setNewItemLike(Integer index, V1CSINode item) { + return new V1CSINodeListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1CSINodeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editFirstItem() { + public V1CSINodeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editLastItem() { + public V1CSINodeListFluent.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 io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1CSINodeListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -275,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested ed return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -293,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -319,25 +305,20 @@ public V1CSINodeListFluent.MetadataNested withNewMetadata() { return new V1CSINodeListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1CSINodeListFluentImpl.MetadataNestedImpl(item); + public V1CSINodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1CSINodeListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested editMetadata() { + public V1CSINodeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested - editOrNewMetadata() { + public V1CSINodeListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1CSINodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -357,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -381,19 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1CSINodeFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSINodeListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINode item) { + implements V1CSINodeListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1CSINode item) { this.index = index; this.builder = new V1CSINodeBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1CSINodeBuilder(this); + this.builder = new V1CSINodeBuilder(this); } - io.kubernetes.client.openapi.models.V1CSINodeBuilder builder; - java.lang.Integer index; + V1CSINodeBuilder builder; + Integer index; public N and() { return (N) V1CSINodeListFluentImpl.this.setToItems(index, builder.build()); @@ -405,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSINodeListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1CSINodeListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1CSINodeListFluentImpl.this.withMetadata(builder.build()); 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 07a7470eb7..ee9ddd63c2 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSINodeSpec, - io.kubernetes.client.openapi.models.V1CSINodeSpecBuilder> { + implements VisitableBuilder { public V1CSINodeSpecBuilder() { this(false); } @@ -30,45 +28,37 @@ public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent) { this(fluent, false); } - public V1CSINodeSpecBuilder( - io.kubernetes.client.openapi.models.V1CSINodeSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSINodeSpec(), validationEnabled); } - public V1CSINodeSpecBuilder( - io.kubernetes.client.openapi.models.V1CSINodeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CSINodeSpec instance) { + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent, V1CSINodeSpec instance) { this(fluent, instance, false); } public V1CSINodeSpecBuilder( - io.kubernetes.client.openapi.models.V1CSINodeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CSINodeSpec instance, - java.lang.Boolean validationEnabled) { + V1CSINodeSpecFluent fluent, V1CSINodeSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDrivers(instance.getDrivers()); this.validationEnabled = validationEnabled; } - public V1CSINodeSpecBuilder(io.kubernetes.client.openapi.models.V1CSINodeSpec instance) { + public V1CSINodeSpecBuilder(V1CSINodeSpec instance) { this(instance, false); } - public V1CSINodeSpecBuilder( - io.kubernetes.client.openapi.models.V1CSINodeSpec instance, - java.lang.Boolean validationEnabled) { + public V1CSINodeSpecBuilder(V1CSINodeSpec instance, Boolean validationEnabled) { this.fluent = this; this.withDrivers(instance.getDrivers()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSINodeSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1CSINodeSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSINodeSpec build() { + public V1CSINodeSpec build() { V1CSINodeSpec buildable = new V1CSINodeSpec(); buildable.setDrivers(fluent.getDrivers()); return buildable; 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 5bbd3b6c98..f90cca43ec 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 @@ -22,17 +22,15 @@ public interface V1CSINodeSpecFluent> extends Fluent { public A addToDrivers(Integer index, V1CSINodeDriver item); - public A setToDrivers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINodeDriver item); + public A setToDrivers(Integer index, V1CSINodeDriver item); public A addToDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items); - public A addAllToDrivers(Collection items); + public A addAllToDrivers(Collection items); public A removeFromDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items); - public A removeAllFromDrivers( - java.util.Collection items); + public A removeAllFromDrivers(Collection items); public A removeMatchingFromDrivers(Predicate predicate); @@ -42,49 +40,40 @@ public A removeAllFromDrivers( * @return The buildable object. */ @Deprecated - public List getDrivers(); + public List getDrivers(); - public java.util.List buildDrivers(); + public List buildDrivers(); - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildDriver(java.lang.Integer index); + public V1CSINodeDriver buildDriver(Integer index); - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildFirstDriver(); + public V1CSINodeDriver buildFirstDriver(); - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildLastDriver(); + public V1CSINodeDriver buildLastDriver(); - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildMatchingDriver( - java.util.function.Predicate - predicate); + public V1CSINodeDriver buildMatchingDriver(Predicate predicate); - public Boolean hasMatchingDriver( - java.util.function.Predicate - predicate); + public Boolean hasMatchingDriver(Predicate predicate); - public A withDrivers(java.util.List drivers); + public A withDrivers(List drivers); public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... drivers); - public java.lang.Boolean hasDrivers(); + public Boolean hasDrivers(); public V1CSINodeSpecFluent.DriversNested addNewDriver(); - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested addNewDriverLike( - io.kubernetes.client.openapi.models.V1CSINodeDriver item); + public V1CSINodeSpecFluent.DriversNested addNewDriverLike(V1CSINodeDriver item); - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested setNewDriverLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINodeDriver item); + public V1CSINodeSpecFluent.DriversNested setNewDriverLike(Integer index, V1CSINodeDriver item); - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested editDriver( - java.lang.Integer index); + public V1CSINodeSpecFluent.DriversNested editDriver(Integer index); - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested editFirstDriver(); + public V1CSINodeSpecFluent.DriversNested editFirstDriver(); - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested editLastDriver(); + public V1CSINodeSpecFluent.DriversNested editLastDriver(); - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested - editMatchingDriver( - java.util.function.Predicate - predicate); + public V1CSINodeSpecFluent.DriversNested editMatchingDriver( + Predicate predicate); public interface DriversNested extends Nested, V1CSINodeDriverFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java index 6074c2c23c..ca99c456de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluentImpl.java @@ -26,31 +26,27 @@ public class V1CSINodeSpecFluentImpl> extends B implements V1CSINodeSpecFluent { public V1CSINodeSpecFluentImpl() {} - public V1CSINodeSpecFluentImpl(io.kubernetes.client.openapi.models.V1CSINodeSpec instance) { + public V1CSINodeSpecFluentImpl(V1CSINodeSpec instance) { this.withDrivers(instance.getDrivers()); } private ArrayList drivers; - public A addToDrivers(Integer index, io.kubernetes.client.openapi.models.V1CSINodeDriver item) { + public A addToDrivers(Integer index, V1CSINodeDriver item) { if (this.drivers == null) { - this.drivers = new java.util.ArrayList(); + this.drivers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder(item); + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); _visitables.get("drivers").add(index >= 0 ? index : _visitables.get("drivers").size(), builder); this.drivers.add(index >= 0 ? index : drivers.size(), builder); return (A) this; } - public A setToDrivers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINodeDriver item) { + public A setToDrivers(Integer index, V1CSINodeDriver item) { if (this.drivers == null) { - this.drivers = - new java.util.ArrayList(); + this.drivers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder(item); + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); if (index < 0 || index >= _visitables.get("drivers").size()) { _visitables.get("drivers").add(builder); } else { @@ -66,26 +62,22 @@ public A setToDrivers( public A addToDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { if (this.drivers == null) { - this.drivers = - new java.util.ArrayList(); + this.drivers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSINodeDriver item : items) { - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder(item); + 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) { + public A addAllToDrivers(Collection items) { if (this.drivers == null) { - this.drivers = - new java.util.ArrayList(); + this.drivers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSINodeDriver item : items) { - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder(item); + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); _visitables.get("drivers").add(builder); this.drivers.add(builder); } @@ -93,9 +85,8 @@ public A addAllToDrivers(Collection items) { - for (io.kubernetes.client.openapi.models.V1CSINodeDriver item : items) { - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder(item); + public A removeAllFromDrivers(Collection items) { + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); _visitables.get("drivers").remove(builder); if (this.drivers != null) { this.drivers.remove(builder); @@ -117,14 +106,12 @@ public A removeAllFromDrivers( return (A) this; } - public A removeMatchingFromDrivers( - Predicate predicate) { + public A removeMatchingFromDrivers(Predicate predicate) { if (drivers == null) return (A) this; - final Iterator each = - drivers.iterator(); + final Iterator each = drivers.iterator(); final List visitables = _visitables.get("drivers"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder = each.next(); + V1CSINodeDriverBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -139,30 +126,28 @@ public A removeMatchingFromDrivers( * @return The buildable object. */ @Deprecated - public List getDrivers() { + public List getDrivers() { return drivers != null ? build(drivers) : null; } - public java.util.List buildDrivers() { + public List buildDrivers() { return drivers != null ? build(drivers) : null; } - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildDriver(java.lang.Integer index) { + public V1CSINodeDriver buildDriver(Integer index) { return this.drivers.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildFirstDriver() { + public V1CSINodeDriver buildFirstDriver() { return this.drivers.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildLastDriver() { + public V1CSINodeDriver buildLastDriver() { return this.drivers.get(drivers.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CSINodeDriver buildMatchingDriver( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder item : drivers) { + public V1CSINodeDriver buildMatchingDriver(Predicate predicate) { + for (V1CSINodeDriverBuilder item : drivers) { if (predicate.test(item)) { return item.build(); } @@ -170,10 +155,8 @@ public io.kubernetes.client.openapi.models.V1CSINodeDriver buildMatchingDriver( return null; } - public Boolean hasMatchingDriver( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder item : drivers) { + public Boolean hasMatchingDriver(Predicate predicate) { + for (V1CSINodeDriverBuilder item : drivers) { if (predicate.test(item)) { return true; } @@ -181,14 +164,13 @@ public Boolean hasMatchingDriver( return false; } - public A withDrivers( - java.util.List drivers) { + public A withDrivers(List drivers) { if (this.drivers != null) { _visitables.get("drivers").removeAll(this.drivers); } if (drivers != null) { - this.drivers = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CSINodeDriver item : drivers) { + this.drivers = new ArrayList(); + for (V1CSINodeDriver item : drivers) { this.addToDrivers(item); } } else { @@ -202,14 +184,14 @@ public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... driv this.drivers.clear(); } if (drivers != null) { - for (io.kubernetes.client.openapi.models.V1CSINodeDriver item : drivers) { + for (V1CSINodeDriver item : drivers) { this.addToDrivers(item); } } return (A) this; } - public java.lang.Boolean hasDrivers() { + public Boolean hasDrivers() { return drivers != null && !drivers.isEmpty(); } @@ -217,41 +199,35 @@ public V1CSINodeSpecFluent.DriversNested addNewDriver() { return new V1CSINodeSpecFluentImpl.DriversNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested addNewDriverLike( - io.kubernetes.client.openapi.models.V1CSINodeDriver item) { + public V1CSINodeSpecFluent.DriversNested addNewDriverLike(V1CSINodeDriver item) { return new V1CSINodeSpecFluentImpl.DriversNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested setNewDriverLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSINodeDriver item) { - return new io.kubernetes.client.openapi.models.V1CSINodeSpecFluentImpl.DriversNestedImpl( - index, item); + public V1CSINodeSpecFluent.DriversNested setNewDriverLike( + Integer index, V1CSINodeDriver item) { + return new V1CSINodeSpecFluentImpl.DriversNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested editDriver( - java.lang.Integer index) { + public V1CSINodeSpecFluent.DriversNested editDriver(Integer index) { if (drivers.size() <= index) throw new RuntimeException("Can't edit drivers. Index exceeds size."); return setNewDriverLike(index, buildDriver(index)); } - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested - editFirstDriver() { + public V1CSINodeSpecFluent.DriversNested editFirstDriver() { if (drivers.size() == 0) throw new RuntimeException("Can't edit first drivers. The list is empty."); return setNewDriverLike(0, buildDriver(0)); } - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested editLastDriver() { + public V1CSINodeSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested - editMatchingDriver( - java.util.function.Predicate - predicate) { + public V1CSINodeSpecFluent.DriversNested editMatchingDriver( + Predicate predicate) { int index = -1; for (int i = 0; i < drivers.size(); i++) { if (predicate.test(drivers.get(i))) { @@ -287,20 +263,19 @@ public String toString() { } class DriversNestedImpl extends V1CSINodeDriverFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSINodeSpecFluent.DriversNested, - Nested { - DriversNestedImpl(java.lang.Integer index, V1CSINodeDriver item) { + implements V1CSINodeSpecFluent.DriversNested, Nested { + DriversNestedImpl(Integer index, V1CSINodeDriver item) { this.index = index; this.builder = new V1CSINodeDriverBuilder(this, item); } DriversNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder(this); + this.builder = new V1CSINodeDriverBuilder(this); } - io.kubernetes.client.openapi.models.V1CSINodeDriverBuilder builder; - java.lang.Integer index; + V1CSINodeDriverBuilder builder; + Integer index; public N and() { return (N) V1CSINodeSpecFluentImpl.this.setToDrivers(index, builder.build()); 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 21bc45b1a6..6d4b93b042 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 @@ -16,9 +16,7 @@ public class V1CSIPersistentVolumeSourceBuilder extends V1CSIPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceBuilder> { + implements VisitableBuilder { public V1CSIPersistentVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent f } public V1CSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1CSIPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIPersistentVolumeSource(), validationEnabled); } public V1CSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource instance) { + V1CSIPersistentVolumeSourceFluent fluent, V1CSIPersistentVolumeSource instance) { this(fluent, instance, false); } public V1CSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CSIPersistentVolumeSourceFluent fluent, + V1CSIPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); @@ -56,6 +52,8 @@ public V1CSIPersistentVolumeSourceBuilder( fluent.withFsType(instance.getFsType()); + fluent.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); + fluent.withNodePublishSecretRef(instance.getNodePublishSecretRef()); fluent.withNodeStageSecretRef(instance.getNodeStageSecretRef()); @@ -69,14 +67,12 @@ public V1CSIPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1CSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource instance) { + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSource instance) { this(instance, false); } public V1CSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CSIPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); @@ -86,6 +82,8 @@ public V1CSIPersistentVolumeSourceBuilder( this.withFsType(instance.getFsType()); + this.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); + this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); @@ -99,15 +97,16 @@ public V1CSIPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource build() { + public V1CSIPersistentVolumeSource build() { V1CSIPersistentVolumeSource buildable = new V1CSIPersistentVolumeSource(); buildable.setControllerExpandSecretRef(fluent.getControllerExpandSecretRef()); buildable.setControllerPublishSecretRef(fluent.getControllerPublishSecretRef()); buildable.setDriver(fluent.getDriver()); buildable.setFsType(fluent.getFsType()); + buildable.setNodeExpandSecretRef(fluent.getNodeExpandSecretRef()); buildable.setNodePublishSecretRef(fluent.getNodePublishSecretRef()); buildable.setNodeStageSecretRef(fluent.getNodeStageSecretRef()); buildable.setReadOnly(fluent.getReadOnly()); 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 439f27a37d..9e4b666d5a 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 @@ -28,191 +28,176 @@ public interface V1CSIPersistentVolumeSourceFluent withNewControllerExpandSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> - withNewControllerExpandSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested + withNewControllerExpandSecretRefLike(V1SecretReference item); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editControllerExpandSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> - editOrNewControllerExpandSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested + editOrNewControllerExpandSecretRefLike(V1SecretReference item); /** * This method has been deprecated, please use method buildControllerPublishSecretRef instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getControllerPublishSecretRef(); + @Deprecated + public V1SecretReference getControllerPublishSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildControllerPublishSecretRef(); + public V1SecretReference buildControllerPublishSecretRef(); - public A withControllerPublishSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference controllerPublishSecretRef); + public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef); - public java.lang.Boolean hasControllerPublishSecretRef(); + public Boolean hasControllerPublishSecretRef(); public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested withNewControllerPublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> - withNewControllerPublishSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested + withNewControllerPublishSecretRefLike(V1SecretReference item); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editControllerPublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> - editOrNewControllerPublishSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested + editOrNewControllerPublishSecretRefLike(V1SecretReference item); public String getDriver(); - public A withDriver(java.lang.String driver); + public A withDriver(String driver); + + public Boolean hasDriver(); + + public String getFsType(); + + public A withFsType(String fsType); + + public Boolean hasFsType(); + + /** + * This method has been deprecated, please use method buildNodeExpandSecretRef instead. + * + * @return The buildable object. + */ + @Deprecated + public V1SecretReference getNodeExpandSecretRef(); + + public V1SecretReference buildNodeExpandSecretRef(); + + public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef); + + public Boolean hasNodeExpandSecretRef(); + + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + withNewNodeExpandSecretRef(); - public java.lang.Boolean hasDriver(); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + withNewNodeExpandSecretRefLike(V1SecretReference item); - public java.lang.String getFsType(); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editNodeExpandSecretRef(); - public A withFsType(java.lang.String fsType); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + editOrNewNodeExpandSecretRef(); - public java.lang.Boolean hasFsType(); + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + editOrNewNodeExpandSecretRefLike(V1SecretReference item); /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getNodePublishSecretRef(); + @Deprecated + public V1SecretReference getNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildNodePublishSecretRef(); + public V1SecretReference buildNodePublishSecretRef(); - public A withNodePublishSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference nodePublishSecretRef); + public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef); - public java.lang.Boolean hasNodePublishSecretRef(); + public Boolean hasNodePublishSecretRef(); public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> - withNewNodePublishSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested + withNewNodePublishSecretRefLike(V1SecretReference item); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> - editNodePublishSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> - editOrNewNodePublishSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested + editOrNewNodePublishSecretRefLike(V1SecretReference item); /** * This method has been deprecated, please use method buildNodeStageSecretRef instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getNodeStageSecretRef(); + @Deprecated + public V1SecretReference getNodeStageSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildNodeStageSecretRef(); + public V1SecretReference buildNodeStageSecretRef(); - public A withNodeStageSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference nodeStageSecretRef); + public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef); - public java.lang.Boolean hasNodeStageSecretRef(); + public Boolean hasNodeStageSecretRef(); public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNodeStageSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> - withNewNodeStageSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested + withNewNodeStageSecretRefLike(V1SecretReference item); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> - editNodeStageSecretRef(); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editNodeStageSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> - editOrNewNodeStageSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested + editOrNewNodeStageSecretRefLike(V1SecretReference item); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public A addToVolumeAttributes(java.lang.String key, java.lang.String value); + public A addToVolumeAttributes(String key, String value); - public A addToVolumeAttributes(Map map); + public A addToVolumeAttributes(Map map); - public A removeFromVolumeAttributes(java.lang.String key); + public A removeFromVolumeAttributes(String key); - public A removeFromVolumeAttributes(java.util.Map map); + public A removeFromVolumeAttributes(Map map); - public java.util.Map getVolumeAttributes(); + public Map getVolumeAttributes(); - public A withVolumeAttributes( - java.util.Map volumeAttributes); + public A withVolumeAttributes(Map volumeAttributes); - public java.lang.Boolean hasVolumeAttributes(); + public Boolean hasVolumeAttributes(); - public java.lang.String getVolumeHandle(); + public String getVolumeHandle(); - public A withVolumeHandle(java.lang.String volumeHandle); + public A withVolumeHandle(String volumeHandle); - public java.lang.Boolean hasVolumeHandle(); + public Boolean hasVolumeHandle(); public A withReadOnly(); @@ -226,7 +211,7 @@ public interface ControllerExpandSecretRefNested } public interface ControllerPublishSecretRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SecretReferenceFluent< V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested> { public N and(); @@ -234,8 +219,16 @@ public interface ControllerPublishSecretRefNested public N endControllerPublishSecretRef(); } + public interface NodeExpandSecretRefNested + extends Nested, + V1SecretReferenceFluent> { + public N and(); + + public N endNodeExpandSecretRef(); + } + public interface NodePublishSecretRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SecretReferenceFluent> { public N and(); @@ -243,7 +236,7 @@ public interface NodePublishSecretRefNested } public interface NodeStageSecretRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SecretReferenceFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java index af6f4085a8..4849d527a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluentImpl.java @@ -23,8 +23,7 @@ public class V1CSIPersistentVolumeSourceFluentImpl implements V1CSIPersistentVolumeSourceFluent { public V1CSIPersistentVolumeSourceFluentImpl() {} - public V1CSIPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource instance) { + public V1CSIPersistentVolumeSourceFluentImpl(V1CSIPersistentVolumeSource instance) { this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); @@ -33,6 +32,8 @@ public V1CSIPersistentVolumeSourceFluentImpl( this.withFsType(instance.getFsType()); + this.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); + this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); @@ -47,12 +48,13 @@ public V1CSIPersistentVolumeSourceFluentImpl( private V1SecretReferenceBuilder controllerExpandSecretRef; private V1SecretReferenceBuilder controllerPublishSecretRef; private String driver; - private java.lang.String fsType; - private io.kubernetes.client.openapi.models.V1SecretReferenceBuilder nodePublishSecretRef; - private io.kubernetes.client.openapi.models.V1SecretReferenceBuilder nodeStageSecretRef; + private String fsType; + private V1SecretReferenceBuilder nodeExpandSecretRef; + private V1SecretReferenceBuilder nodePublishSecretRef; + private V1SecretReferenceBuilder nodeStageSecretRef; private Boolean readOnly; - private Map volumeAttributes; - private java.lang.String volumeHandle; + private Map volumeAttributes; + private String volumeHandle; /** * This method has been deprecated, please use method buildControllerExpandSecretRef instead. @@ -60,27 +62,27 @@ public V1CSIPersistentVolumeSourceFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getControllerExpandSecretRef() { + public V1SecretReference getControllerExpandSecretRef() { return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildControllerExpandSecretRef() { + public V1SecretReference buildControllerExpandSecretRef() { return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; } - public A withControllerExpandSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference controllerExpandSecretRef) { + public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { _visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); if (controllerExpandSecretRef != null) { - this.controllerExpandSecretRef = - new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder( - controllerExpandSecretRef); + this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); _visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); + } else { + this.controllerExpandSecretRef = null; + _visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); } return (A) this; } - public java.lang.Boolean hasControllerExpandSecretRef() { + public Boolean hasControllerExpandSecretRef() { return this.controllerExpandSecretRef != null; } @@ -89,36 +91,26 @@ public java.lang.Boolean hasControllerExpandSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerExpandSecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> - withNewControllerExpandSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested + withNewControllerExpandSecretRefLike(V1SecretReference item) { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerExpandSecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editControllerExpandSecretRef() { return withNewControllerExpandSecretRefLike(getControllerExpandSecretRef()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() { return withNewControllerExpandSecretRefLike( getControllerExpandSecretRef() != null ? getControllerExpandSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - A> - editOrNewControllerExpandSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested + editOrNewControllerExpandSecretRefLike(V1SecretReference item) { return withNewControllerExpandSecretRefLike( getControllerExpandSecretRef() != null ? getControllerExpandSecretRef() : item); } @@ -128,28 +120,28 @@ public java.lang.Boolean hasControllerExpandSecretRef() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getControllerPublishSecretRef() { + @Deprecated + public V1SecretReference getControllerPublishSecretRef() { return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildControllerPublishSecretRef() { + public V1SecretReference buildControllerPublishSecretRef() { return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; } - public A withControllerPublishSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference controllerPublishSecretRef) { + public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { _visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); if (controllerPublishSecretRef != null) { - this.controllerPublishSecretRef = - new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder( - controllerPublishSecretRef); + this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); _visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); + } else { + this.controllerPublishSecretRef = null; + _visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); } return (A) this; } - public java.lang.Boolean hasControllerPublishSecretRef() { + public Boolean hasControllerPublishSecretRef() { return this.controllerPublishSecretRef != null; } @@ -158,93 +150,141 @@ public java.lang.Boolean hasControllerPublishSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.ControllerPublishSecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> - withNewControllerPublishSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item) { - return new io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluentImpl - .ControllerPublishSecretRefNestedImpl(item); + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested + withNewControllerPublishSecretRefLike(V1SecretReference item) { + return new V1CSIPersistentVolumeSourceFluentImpl.ControllerPublishSecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editControllerPublishSecretRef() { return withNewControllerPublishSecretRefLike(getControllerPublishSecretRef()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef() { return withNewControllerPublishSecretRefLike( getControllerPublishSecretRef() != null ? getControllerPublishSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - A> - editOrNewControllerPublishSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested + editOrNewControllerPublishSecretRefLike(V1SecretReference item) { return withNewControllerPublishSecretRefLike( getControllerPublishSecretRef() != null ? getControllerPublishSecretRef() : item); } - public java.lang.String getDriver() { + public String getDriver() { return this.driver; } - public A withDriver(java.lang.String driver) { + public A withDriver(String driver) { this.driver = driver; return (A) this; } - public java.lang.Boolean hasDriver() { + public Boolean hasDriver() { return this.driver != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } + /** + * This method has been deprecated, please use method buildNodeExpandSecretRef instead. + * + * @return The buildable object. + */ + @Deprecated + public V1SecretReference getNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; + } + + public V1SecretReference buildNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; + } + + public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + _visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); + if (nodeExpandSecretRef != null) { + this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); + _visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); + } else { + this.nodeExpandSecretRef = null; + _visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); + } + return (A) this; + } + + public Boolean hasNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null; + } + + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + withNewNodeExpandSecretRef() { + return new V1CSIPersistentVolumeSourceFluentImpl.NodeExpandSecretRefNestedImpl(); + } + + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + withNewNodeExpandSecretRefLike(V1SecretReference item) { + return new V1CSIPersistentVolumeSourceFluentImpl.NodeExpandSecretRefNestedImpl(item); + } + + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested editNodeExpandSecretRef() { + return withNewNodeExpandSecretRefLike(getNodeExpandSecretRef()); + } + + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + editOrNewNodeExpandSecretRef() { + return withNewNodeExpandSecretRefLike( + getNodeExpandSecretRef() != null + ? getNodeExpandSecretRef() + : new V1SecretReferenceBuilder().build()); + } + + public V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested + editOrNewNodeExpandSecretRefLike(V1SecretReference item) { + return withNewNodeExpandSecretRefLike( + getNodeExpandSecretRef() != null ? getNodeExpandSecretRef() : item); + } + /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getNodePublishSecretRef() { + @Deprecated + public V1SecretReference getNodePublishSecretRef() { return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildNodePublishSecretRef() { + public V1SecretReference buildNodePublishSecretRef() { return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; } - public A withNodePublishSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference nodePublishSecretRef) { + public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = - new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(nodePublishSecretRef); + this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); + } else { + this.nodePublishSecretRef = null; + _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); } return (A) this; } - public java.lang.Boolean hasNodePublishSecretRef() { + public Boolean hasNodePublishSecretRef() { return this.nodePublishSecretRef != null; } @@ -253,36 +293,26 @@ public java.lang.Boolean hasNodePublishSecretRef() { return new V1CSIPersistentVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> - withNewNodePublishSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { - return new io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluentImpl - .NodePublishSecretRefNestedImpl(item); + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested + withNewNodePublishSecretRefLike(V1SecretReference item) { + return new V1CSIPersistentVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef() { return withNewNodePublishSecretRefLike(getNodePublishSecretRef()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef() { return withNewNodePublishSecretRefLike( getNodePublishSecretRef() != null ? getNodePublishSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - A> - editOrNewNodePublishSecretRefLike( - io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested + editOrNewNodePublishSecretRefLike(V1SecretReference item) { return withNewNodePublishSecretRefLike( getNodePublishSecretRef() != null ? getNodePublishSecretRef() : item); } @@ -292,27 +322,28 @@ public java.lang.Boolean hasNodePublishSecretRef() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretReference getNodeStageSecretRef() { + @Deprecated + public V1SecretReference getNodeStageSecretRef() { return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildNodeStageSecretRef() { + public V1SecretReference buildNodeStageSecretRef() { return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; } - public A withNodeStageSecretRef( - io.kubernetes.client.openapi.models.V1SecretReference nodeStageSecretRef) { + public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { _visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); if (nodeStageSecretRef != null) { - this.nodeStageSecretRef = - new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(nodeStageSecretRef); + this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); _visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); + } else { + this.nodeStageSecretRef = null; + _visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); } return (A) this; } - public java.lang.Boolean hasNodeStageSecretRef() { + public Boolean hasNodeStageSecretRef() { return this.nodeStageSecretRef != null; } @@ -320,53 +351,43 @@ public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested withNewNode return new V1CSIPersistentVolumeSourceFluentImpl.NodeStageSecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> - withNewNodeStageSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { - return new io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluentImpl - .NodeStageSecretRefNestedImpl(item); + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested + withNewNodeStageSecretRefLike(V1SecretReference item) { + return new V1CSIPersistentVolumeSourceFluentImpl.NodeStageSecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> - editNodeStageSecretRef() { + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editNodeStageSecretRef() { return withNewNodeStageSecretRefLike(getNodeStageSecretRef()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested editOrNewNodeStageSecretRef() { return withNewNodeStageSecretRefLike( getNodeStageSecretRef() != null ? getNodeStageSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - A> - editOrNewNodeStageSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested + editOrNewNodeStageSecretRefLike(V1SecretReference item) { return withNewNodeStageSecretRefLike( getNodeStageSecretRef() != null ? getNodeStageSecretRef() : item); } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public A addToVolumeAttributes(java.lang.String key, java.lang.String value) { + public A addToVolumeAttributes(String key, String value) { if (this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } @@ -376,9 +397,9 @@ public A addToVolumeAttributes(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToVolumeAttributes(java.util.Map map) { + public A addToVolumeAttributes(Map map) { if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new java.util.LinkedHashMap(); + this.volumeAttributes = new LinkedHashMap(); } if (map != null) { this.volumeAttributes.putAll(map); @@ -386,7 +407,7 @@ public A addToVolumeAttributes(java.util.Map return (A) this; } - public A removeFromVolumeAttributes(java.lang.String key) { + public A removeFromVolumeAttributes(String key) { if (this.volumeAttributes == null) { return (A) this; } @@ -396,7 +417,7 @@ public A removeFromVolumeAttributes(java.lang.String key) { return (A) this; } - public A removeFromVolumeAttributes(java.util.Map map) { + public A removeFromVolumeAttributes(Map map) { if (this.volumeAttributes == null) { return (A) this; } @@ -410,34 +431,33 @@ public A removeFromVolumeAttributes(java.util.Map getVolumeAttributes() { + public Map getVolumeAttributes() { return this.volumeAttributes; } - public A withVolumeAttributes( - java.util.Map volumeAttributes) { + public A withVolumeAttributes(Map volumeAttributes) { if (volumeAttributes == null) { this.volumeAttributes = null; } else { - this.volumeAttributes = new java.util.LinkedHashMap(volumeAttributes); + this.volumeAttributes = new LinkedHashMap(volumeAttributes); } return (A) this; } - public java.lang.Boolean hasVolumeAttributes() { + public Boolean hasVolumeAttributes() { return this.volumeAttributes != null; } - public java.lang.String getVolumeHandle() { + public String getVolumeHandle() { return this.volumeHandle; } - public A withVolumeHandle(java.lang.String volumeHandle) { + public A withVolumeHandle(String volumeHandle) { this.volumeHandle = volumeHandle; return (A) this; } - public java.lang.Boolean hasVolumeHandle() { + public Boolean hasVolumeHandle() { return this.volumeHandle != null; } @@ -453,6 +473,9 @@ public boolean equals(Object o) { : that.controllerPublishSecretRef != null) return false; if (driver != null ? !driver.equals(that.driver) : that.driver != null) return false; if (fsType != null ? !fsType.equals(that.fsType) : that.fsType != null) return false; + if (nodeExpandSecretRef != null + ? !nodeExpandSecretRef.equals(that.nodeExpandSecretRef) + : that.nodeExpandSecretRef != null) return false; if (nodePublishSecretRef != null ? !nodePublishSecretRef.equals(that.nodePublishSecretRef) : that.nodePublishSecretRef != null) return false; @@ -474,6 +497,7 @@ public int hashCode() { controllerPublishSecretRef, driver, fsType, + nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, @@ -482,7 +506,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (controllerExpandSecretRef != null) { @@ -501,6 +525,10 @@ public java.lang.String toString() { sb.append("fsType:"); sb.append(fsType + ","); } + if (nodeExpandSecretRef != null) { + sb.append("nodeExpandSecretRef:"); + sb.append(nodeExpandSecretRef + ","); + } if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); @@ -532,19 +560,16 @@ public A withReadOnly() { class ControllerExpandSecretRefNestedImpl extends V1SecretReferenceFluentImpl< V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested> - implements io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerExpandSecretRefNested< - N>, - Nested { + implements V1CSIPersistentVolumeSourceFluent.ControllerExpandSecretRefNested, Nested { ControllerExpandSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } ControllerExpandSecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) @@ -559,19 +584,16 @@ public N endControllerExpandSecretRef() { class ControllerPublishSecretRefNestedImpl extends V1SecretReferenceFluentImpl< V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested> - implements io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .ControllerPublishSecretRefNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CSIPersistentVolumeSourceFluent.ControllerPublishSecretRefNested, Nested { ControllerPublishSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } ControllerPublishSecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) @@ -584,22 +606,43 @@ public N endControllerPublishSecretRef() { } } + class NodeExpandSecretRefNestedImpl + extends V1SecretReferenceFluentImpl< + V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested> + implements V1CSIPersistentVolumeSourceFluent.NodeExpandSecretRefNested, Nested { + NodeExpandSecretRefNestedImpl(V1SecretReference item) { + this.builder = new V1SecretReferenceBuilder(this, item); + } + + NodeExpandSecretRefNestedImpl() { + this.builder = new V1SecretReferenceBuilder(this); + } + + V1SecretReferenceBuilder builder; + + public N and() { + return (N) + V1CSIPersistentVolumeSourceFluentImpl.this.withNodeExpandSecretRef(builder.build()); + } + + public N endNodeExpandSecretRef() { + return and(); + } + } + class NodePublishSecretRefNestedImpl extends V1SecretReferenceFluentImpl< V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested> - implements io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodePublishSecretRefNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CSIPersistentVolumeSourceFluent.NodePublishSecretRefNested, Nested { NodePublishSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } NodePublishSecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) @@ -614,19 +657,16 @@ public N endNodePublishSecretRef() { class NodeStageSecretRefNestedImpl extends V1SecretReferenceFluentImpl< V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested> - implements io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceFluent - .NodeStageSecretRefNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CSIPersistentVolumeSourceFluent.NodeStageSecretRefNested, Nested { NodeStageSecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } NodeStageSecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1CSIPersistentVolumeSourceFluentImpl.this.withNodeStageSecretRef(builder.build()); 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 ec51dc7b34..d2bc3caf36 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 @@ -16,9 +16,7 @@ public class V1CSIStorageCapacityBuilder extends V1CSIStorageCapacityFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSIStorageCapacity, - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder> { + implements VisitableBuilder { public V1CSIStorageCapacityBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent) { } public V1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent fluent, - java.lang.Boolean validationEnabled) { + V1CSIStorageCapacityFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIStorageCapacity(), validationEnabled); } public V1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent fluent, - io.kubernetes.client.openapi.models.V1CSIStorageCapacity instance) { + V1CSIStorageCapacityFluent fluent, V1CSIStorageCapacity instance) { this(fluent, instance, false); } public V1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent fluent, - io.kubernetes.client.openapi.models.V1CSIStorageCapacity instance, - java.lang.Boolean validationEnabled) { + V1CSIStorageCapacityFluent fluent, + V1CSIStorageCapacity instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -65,14 +61,11 @@ public V1CSIStorageCapacityBuilder( this.validationEnabled = validationEnabled; } - public V1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacity instance) { + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance) { this(instance, false); } - public V1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacity instance, - java.lang.Boolean validationEnabled) { + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -91,10 +84,10 @@ public V1CSIStorageCapacityBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIStorageCapacityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity build() { + public V1CSIStorageCapacity build() { V1CSIStorageCapacity buildable = new V1CSIStorageCapacity(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setCapacity(fluent.getCapacity()); 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 93959ae2b0..0c4ffcaa2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java @@ -21,31 +21,31 @@ public interface V1CSIStorageCapacityFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public Quantity getCapacity(); - public A withCapacity(io.kubernetes.client.custom.Quantity capacity); + public A withCapacity(Quantity capacity); - public java.lang.Boolean hasCapacity(); + public Boolean hasCapacity(); - public A withNewCapacity(java.lang.String value); + public A withNewCapacity(String value); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public io.kubernetes.client.custom.Quantity getMaximumVolumeSize(); + public Quantity getMaximumVolumeSize(); - public A withMaximumVolumeSize(io.kubernetes.client.custom.Quantity maximumVolumeSize); + public A withMaximumVolumeSize(Quantity maximumVolumeSize); - public java.lang.Boolean hasMaximumVolumeSize(); + public Boolean hasMaximumVolumeSize(); - public A withNewMaximumVolumeSize(java.lang.String value); + public A withNewMaximumVolumeSize(String value); /** * This method has been deprecated, please use method buildMetadata instead. @@ -55,59 +55,53 @@ public interface V1CSIStorageCapacityFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - editMetadata(); + public V1CSIStorageCapacityFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadata(); + public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildNodeTopology instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getNodeTopology(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildNodeTopology(); + public V1LabelSelector buildNodeTopology(); - public A withNodeTopology(io.kubernetes.client.openapi.models.V1LabelSelector nodeTopology); + public A withNodeTopology(V1LabelSelector nodeTopology); - public java.lang.Boolean hasNodeTopology(); + public Boolean hasNodeTopology(); public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - withNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - editNodeTopology(); + public V1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopology(); + public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( + V1LabelSelector item); - public java.lang.String getStorageClassName(); + public String getStorageClassName(); - public A withStorageClassName(java.lang.String storageClassName); + public A withStorageClassName(String storageClassName); - public java.lang.Boolean hasStorageClassName(); + public Boolean hasStorageClassName(); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -117,8 +111,7 @@ public interface MetadataNested } public interface NodeTopologyNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endNodeTopology(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java index 1429a58f7d..b6b2eb1234 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluentImpl.java @@ -22,8 +22,7 @@ public class V1CSIStorageCapacityFluentImpl implements V1CSIStorageCapacityFluent { public V1CSIStorageCapacityFluentImpl() {} - public V1CSIStorageCapacityFluentImpl( - io.kubernetes.client.openapi.models.V1CSIStorageCapacity instance) { + public V1CSIStorageCapacityFluentImpl(V1CSIStorageCapacity instance) { this.withApiVersion(instance.getApiVersion()); this.withCapacity(instance.getCapacity()); @@ -41,17 +40,17 @@ public V1CSIStorageCapacityFluentImpl( private String apiVersion; private Quantity capacity; - private java.lang.String kind; - private io.kubernetes.client.custom.Quantity maximumVolumeSize; + private String kind; + private Quantity maximumVolumeSize; private V1ObjectMetaBuilder metadata; private V1LabelSelectorBuilder nodeTopology; - private java.lang.String storageClassName; + private String storageClassName; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -60,50 +59,50 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public io.kubernetes.client.custom.Quantity getCapacity() { + public Quantity getCapacity() { return this.capacity; } - public A withCapacity(io.kubernetes.client.custom.Quantity capacity) { + public A withCapacity(Quantity capacity) { this.capacity = capacity; return (A) this; } - public java.lang.Boolean hasCapacity() { + public Boolean hasCapacity() { return this.capacity != null; } - public A withNewCapacity(java.lang.String value) { + public A withNewCapacity(String value) { return (A) withCapacity(new Quantity(value)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public io.kubernetes.client.custom.Quantity getMaximumVolumeSize() { + public Quantity getMaximumVolumeSize() { return this.maximumVolumeSize; } - public A withMaximumVolumeSize(io.kubernetes.client.custom.Quantity maximumVolumeSize) { + public A withMaximumVolumeSize(Quantity maximumVolumeSize) { this.maximumVolumeSize = maximumVolumeSize; return (A) this; } - public java.lang.Boolean hasMaximumVolumeSize() { + public Boolean hasMaximumVolumeSize() { return this.maximumVolumeSize != null; } - public A withNewMaximumVolumeSize(java.lang.String value) { + public A withNewMaximumVolumeSize(String value) { return (A) withMaximumVolumeSize(new Quantity(value)); } @@ -113,24 +112,27 @@ public A withNewMaximumVolumeSize(java.lang.String value) { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -138,26 +140,20 @@ public V1CSIStorageCapacityFluent.MetadataNested withNewMetadata() { return new V1CSIStorageCapacityFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CSIStorageCapacityFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - editMetadata() { + public V1CSIStorageCapacityFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadata() { + public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -166,25 +162,28 @@ public V1CSIStorageCapacityFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNodeTopology() { + @Deprecated + public V1LabelSelector getNodeTopology() { return this.nodeTopology != null ? this.nodeTopology.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildNodeTopology() { + public V1LabelSelector buildNodeTopology() { return this.nodeTopology != null ? this.nodeTopology.build() : null; } - public A withNodeTopology(io.kubernetes.client.openapi.models.V1LabelSelector nodeTopology) { + public A withNodeTopology(V1LabelSelector nodeTopology) { _visitables.get("nodeTopology").remove(this.nodeTopology); if (nodeTopology != null) { this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); _visitables.get("nodeTopology").add(this.nodeTopology); + } else { + this.nodeTopology = null; + _visitables.get("nodeTopology").remove(this.nodeTopology); } return (A) this; } - public java.lang.Boolean hasNodeTopology() { + public Boolean hasNodeTopology() { return this.nodeTopology != null; } @@ -192,40 +191,35 @@ public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology() { return new V1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - withNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluentImpl - .NodeTopologyNestedImpl(item); + public V1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( + V1LabelSelector item) { + return new V1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - editNodeTopology() { + public V1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology() { return withNewNodeTopologyLike(getNodeTopology()); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopology() { + public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology() { return withNewNodeTopologyLike( - getNodeTopology() != null - ? getNodeTopology() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getNodeTopology() != null ? getNodeTopology() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( + V1LabelSelector item) { return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology() : item); } - public java.lang.String getStorageClassName() { + public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(java.lang.String storageClassName) { + public A withStorageClassName(String storageClassName) { this.storageClassName = storageClassName; return (A) this; } - public java.lang.Boolean hasStorageClassName() { + public Boolean hasStorageClassName() { return this.storageClassName != null; } @@ -261,7 +255,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -298,17 +292,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.MetadataNested, - Nested { + implements V1CSIStorageCapacityFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1CSIStorageCapacityFluentImpl.this.withMetadata(builder.build()); @@ -321,18 +314,16 @@ public N endMetadata() { class NodeTopologyNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIStorageCapacityFluent.NodeTopologyNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CSIStorageCapacityFluent.NodeTopologyNested, Nested { NodeTopologyNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } NodeTopologyNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1CSIStorageCapacityFluentImpl.this.withNodeTopology(builder.build()); 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 b7c46ccfcf..f30fabd2bb 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 @@ -16,9 +16,7 @@ public class V1CSIStorageCapacityListBuilder extends V1CSIStorageCapacityListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityList, - V1CSIStorageCapacityListBuilder> { + implements VisitableBuilder { public V1CSIStorageCapacityListBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1CSIStorageCapacityListBuilder(Boolean validationEnabled) { this(new V1CSIStorageCapacityList(), validationEnabled); } - public V1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent fluent) { + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent) { this(fluent, false); } public V1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent fluent, - java.lang.Boolean validationEnabled) { + V1CSIStorageCapacityListFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIStorageCapacityList(), validationEnabled); } public V1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent fluent, - io.kubernetes.client.openapi.models.V1CSIStorageCapacityList instance) { + V1CSIStorageCapacityListFluent fluent, V1CSIStorageCapacityList instance) { this(fluent, instance, false); } public V1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent fluent, - io.kubernetes.client.openapi.models.V1CSIStorageCapacityList instance, - java.lang.Boolean validationEnabled) { + V1CSIStorageCapacityListFluent fluent, + V1CSIStorageCapacityList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,14 +55,12 @@ public V1CSIStorageCapacityListBuilder( this.validationEnabled = validationEnabled; } - public V1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityList instance) { + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityList instance) { this(instance, false); } public V1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1CSIStorageCapacityList instance, - java.lang.Boolean validationEnabled) { + V1CSIStorageCapacityList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +73,10 @@ public V1CSIStorageCapacityListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIStorageCapacityListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityList build() { + public V1CSIStorageCapacityList build() { V1CSIStorageCapacityList buildable = new V1CSIStorageCapacityList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 72ce6ce1d9..c41e8036e2 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 @@ -23,24 +23,21 @@ public interface V1CSIStorageCapacityListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item); + public A addToItems(Integer index, V1CSIStorageCapacity item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item); + public A setToItems(Integer index, V1CSIStorageCapacity item); public A addToItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -50,89 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildItem( - java.lang.Integer index); + public V1CSIStorageCapacity buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildFirstItem(); + public V1CSIStorageCapacity buildFirstItem(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildLastItem(); + public V1CSIStorageCapacity buildLastItem(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildMatchingItem( - java.util.function.Predicate - predicate); + public V1CSIStorageCapacity buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1CSIStorageCapacityListFluent.ItemsNested addNewItem(); - public V1CSIStorageCapacityListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CSIStorageCapacity item); + public V1CSIStorageCapacityListFluent.ItemsNested addNewItemLike(V1CSIStorageCapacity item); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item); + public V1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( + Integer index, V1CSIStorageCapacity item); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - editFirstItem(); + public V1CSIStorageCapacityListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - editLastItem(); + public V1CSIStorageCapacityListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder> - predicate); + public V1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - editMetadata(); + public V1CSIStorageCapacityListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadata(); + public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1CSIStorageCapacityFluent> { @@ -142,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java index b17ff3d546..48c9bc953b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluentImpl.java @@ -38,14 +38,14 @@ public V1CSIStorageCapacityListFluentImpl(V1CSIStorageCapacityList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item) { + public A addToItems(Integer index, V1CSIStorageCapacity item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(item); + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item) { + public A setToItems(Integer index, V1CSIStorageCapacity item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(item); + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -92,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(item); + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -122,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(item); + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -133,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacit return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -146,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder = each.next(); + V1CSIStorageCapacityBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -168,31 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildItem( - java.lang.Integer index) { + public V1CSIStorageCapacity buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildFirstItem() { + public V1CSIStorageCapacity buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildLastItem() { + public V1CSIStorageCapacity buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder item : items) { + public V1CSIStorageCapacity buildMatchingItem(Predicate predicate) { + for (V1CSIStorageCapacityBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -200,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1CSIStorageCapacity buildMatchingIte return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1CSIStorageCapacityBuilder item : items) { if (predicate.test(item)) { return true; } @@ -211,14 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacity item : items) { + this.items = new ArrayList(); + for (V1CSIStorageCapacity item : items) { this.addToItems(item); } } else { @@ -232,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... i this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1CSIStorageCapacity item : items) { + for (V1CSIStorageCapacity item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -247,42 +221,33 @@ public V1CSIStorageCapacityListFluent.ItemsNested addNewItem() { return new V1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1CSIStorageCapacity item) { + public V1CSIStorageCapacityListFluent.ItemsNested addNewItemLike(V1CSIStorageCapacity item) { return new V1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item) { - return new io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluentImpl - .ItemsNestedImpl(index, item); + public V1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( + Integer index, V1CSIStorageCapacity item) { + return new V1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - editFirstItem() { + public V1CSIStorageCapacityListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - editLastItem() { + public V1CSIStorageCapacityListFluent.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 io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder> - predicate) { + public V1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -294,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsN return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -312,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -338,27 +306,20 @@ public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadata() { return new V1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluentImpl - .MetadataNestedImpl(item); + public V1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - editMetadata() { + public V1CSIStorageCapacityListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadata() { + public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -378,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -403,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1CSIStorageCapacityFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CSIStorageCapacity item) { + implements V1CSIStorageCapacityListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1CSIStorageCapacity item) { this.index = index; this.builder = new V1CSIStorageCapacityBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder(this); + this.builder = new V1CSIStorageCapacityBuilder(this); } - io.kubernetes.client.openapi.models.V1CSIStorageCapacityBuilder builder; - java.lang.Integer index; + V1CSIStorageCapacityBuilder builder; + Integer index; public N and() { return (N) V1CSIStorageCapacityListFluentImpl.this.setToItems(index, builder.build()); @@ -430,18 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CSIStorageCapacityListFluent.MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CSIStorageCapacityListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1CSIStorageCapacityListFluentImpl.this.withMetadata(builder.build()); 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 01871ac2ec..d683f7b5bf 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CSIVolumeSource, - io.kubernetes.client.openapi.models.V1CSIVolumeSourceBuilder> { + implements VisitableBuilder { public V1CSIVolumeSourceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent) { this(fluent, false); } - public V1CSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CSIVolumeSource(), validationEnabled); } - public V1CSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CSIVolumeSource instance) { + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent, V1CSIVolumeSource instance) { this(fluent, instance, false); } public V1CSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CSIVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CSIVolumeSourceFluent fluent, V1CSIVolumeSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDriver(instance.getDriver()); @@ -60,13 +52,11 @@ public V1CSIVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1CSIVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1CSIVolumeSource instance) { + public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance) { this(instance, false); } - public V1CSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CSIVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDriver(instance.getDriver()); @@ -81,10 +71,10 @@ public V1CSIVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1CSIVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CSIVolumeSource build() { + public V1CSIVolumeSource build() { V1CSIVolumeSource buildable = new V1CSIVolumeSource(); buildable.setDriver(fluent.getDriver()); buildable.setFsType(fluent.getFsType()); 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 fc69ed4c52..37f4ac1309 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 @@ -20,15 +20,15 @@ public interface V1CSIVolumeSourceFluent> extends Fluent { public String getDriver(); - public A withDriver(java.lang.String driver); + public A withDriver(String driver); public Boolean hasDriver(); - public java.lang.String getFsType(); + public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); - public java.lang.Boolean hasFsType(); + public Boolean hasFsType(); /** * This method has been deprecated, please use method buildNodePublishSecretRef instead. @@ -38,49 +38,43 @@ public interface V1CSIVolumeSourceFluent> e @Deprecated public V1LocalObjectReference getNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildNodePublishSecretRef(); + public V1LocalObjectReference buildNodePublishSecretRef(); - public A withNodePublishSecretRef( - io.kubernetes.client.openapi.models.V1LocalObjectReference nodePublishSecretRef); + public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef); - public java.lang.Boolean hasNodePublishSecretRef(); + public Boolean hasNodePublishSecretRef(); public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - withNewNodePublishSecretRefLike( - io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - editNodePublishSecretRef(); + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRef(); + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef(); - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRefLike( - io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike( + V1LocalObjectReference item); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public A addToVolumeAttributes(java.lang.String key, java.lang.String value); + public A addToVolumeAttributes(String key, String value); - public A addToVolumeAttributes(Map map); + public A addToVolumeAttributes(Map map); - public A removeFromVolumeAttributes(java.lang.String key); + public A removeFromVolumeAttributes(String key); - public A removeFromVolumeAttributes(java.util.Map map); + public A removeFromVolumeAttributes(Map map); - public java.util.Map getVolumeAttributes(); + public Map getVolumeAttributes(); - public A withVolumeAttributes( - java.util.Map volumeAttributes); + public A withVolumeAttributes(Map volumeAttributes); - public java.lang.Boolean hasVolumeAttributes(); + public Boolean hasVolumeAttributes(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java index bf3d179426..9c4ffc1897 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluentImpl.java @@ -23,8 +23,7 @@ public class V1CSIVolumeSourceFluentImpl> e implements V1CSIVolumeSourceFluent { public V1CSIVolumeSourceFluentImpl() {} - public V1CSIVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1CSIVolumeSource instance) { + public V1CSIVolumeSourceFluentImpl(V1CSIVolumeSource instance) { this.withDriver(instance.getDriver()); this.withFsType(instance.getFsType()); @@ -37,34 +36,34 @@ public V1CSIVolumeSourceFluentImpl( } private String driver; - private java.lang.String fsType; + private String fsType; private V1LocalObjectReferenceBuilder nodePublishSecretRef; private Boolean readOnly; - private Map volumeAttributes; + private Map volumeAttributes; - public java.lang.String getDriver() { + public String getDriver() { return this.driver; } - public A withDriver(java.lang.String driver) { + public A withDriver(String driver) { this.driver = driver; return (A) this; } - public java.lang.Boolean hasDriver() { + public Boolean hasDriver() { return this.driver != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } @@ -78,23 +77,23 @@ public V1LocalObjectReference getNodePublishSecretRef() { return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildNodePublishSecretRef() { + public V1LocalObjectReference buildNodePublishSecretRef() { return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; } - public A withNodePublishSecretRef( - io.kubernetes.client.openapi.models.V1LocalObjectReference nodePublishSecretRef) { + public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder( - nodePublishSecretRef); + this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); _visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); + } else { + this.nodePublishSecretRef = null; + _visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); } return (A) this; } - public java.lang.Boolean hasNodePublishSecretRef() { + public Boolean hasNodePublishSecretRef() { return this.nodePublishSecretRef != null; } @@ -102,46 +101,42 @@ public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishS return new V1CSIVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - withNewNodePublishSecretRefLike( - io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested withNewNodePublishSecretRefLike( + V1LocalObjectReference item) { return new V1CSIVolumeSourceFluentImpl.NodePublishSecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - editNodePublishSecretRef() { + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editNodePublishSecretRef() { return withNewNodePublishSecretRefLike(getNodePublishSecretRef()); } - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRef() { + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRef() { return withNewNodePublishSecretRefLike( getNodePublishSecretRef() != null ? getNodePublishSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent.NodePublishSecretRefNested - editOrNewNodePublishSecretRefLike( - io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1CSIVolumeSourceFluent.NodePublishSecretRefNested editOrNewNodePublishSecretRefLike( + V1LocalObjectReference item) { return withNewNodePublishSecretRefLike( getNodePublishSecretRef() != null ? getNodePublishSecretRef() : item); } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public A addToVolumeAttributes(java.lang.String key, java.lang.String value) { + public A addToVolumeAttributes(String key, String value) { if (this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } @@ -151,9 +146,9 @@ public A addToVolumeAttributes(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToVolumeAttributes(java.util.Map map) { + public A addToVolumeAttributes(Map map) { if (this.volumeAttributes == null && map != null) { - this.volumeAttributes = new java.util.LinkedHashMap(); + this.volumeAttributes = new LinkedHashMap(); } if (map != null) { this.volumeAttributes.putAll(map); @@ -161,7 +156,7 @@ public A addToVolumeAttributes(java.util.Map return (A) this; } - public A removeFromVolumeAttributes(java.lang.String key) { + public A removeFromVolumeAttributes(String key) { if (this.volumeAttributes == null) { return (A) this; } @@ -171,7 +166,7 @@ public A removeFromVolumeAttributes(java.lang.String key) { return (A) this; } - public A removeFromVolumeAttributes(java.util.Map map) { + public A removeFromVolumeAttributes(Map map) { if (this.volumeAttributes == null) { return (A) this; } @@ -185,21 +180,20 @@ public A removeFromVolumeAttributes(java.util.Map getVolumeAttributes() { + public Map getVolumeAttributes() { return this.volumeAttributes; } - public A withVolumeAttributes( - java.util.Map volumeAttributes) { + public A withVolumeAttributes(Map volumeAttributes) { if (volumeAttributes == null) { this.volumeAttributes = null; } else { - this.volumeAttributes = new java.util.LinkedHashMap(volumeAttributes); + this.volumeAttributes = new LinkedHashMap(volumeAttributes); } return (A) this; } - public java.lang.Boolean hasVolumeAttributes() { + public Boolean hasVolumeAttributes() { return this.volumeAttributes != null; } @@ -224,7 +218,7 @@ public int hashCode() { driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (driver != null) { @@ -258,19 +252,16 @@ public A withReadOnly() { class NodePublishSecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl< V1CSIVolumeSourceFluent.NodePublishSecretRefNested> - implements io.kubernetes.client.openapi.models.V1CSIVolumeSourceFluent - .NodePublishSecretRefNested< - N>, - Nested { + implements V1CSIVolumeSourceFluent.NodePublishSecretRefNested, Nested { NodePublishSecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } NodePublishSecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1CSIVolumeSourceFluentImpl.this.withNodePublishSecretRef(builder.build()); 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 156e52990f..cb08313acd 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CapabilitiesBuilder extends V1CapabilitiesFluentImpl - implements VisitableBuilder< - V1Capabilities, io.kubernetes.client.openapi.models.V1CapabilitiesBuilder> { + implements VisitableBuilder { public V1CapabilitiesBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent) { this(fluent, false); } - public V1CapabilitiesBuilder( - io.kubernetes.client.openapi.models.V1CapabilitiesFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent, Boolean validationEnabled) { this(fluent, new V1Capabilities(), validationEnabled); } - public V1CapabilitiesBuilder( - io.kubernetes.client.openapi.models.V1CapabilitiesFluent fluent, - io.kubernetes.client.openapi.models.V1Capabilities instance) { + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent, V1Capabilities instance) { this(fluent, instance, false); } public V1CapabilitiesBuilder( - io.kubernetes.client.openapi.models.V1CapabilitiesFluent fluent, - io.kubernetes.client.openapi.models.V1Capabilities instance, - java.lang.Boolean validationEnabled) { + V1CapabilitiesFluent fluent, V1Capabilities instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAdd(instance.getAdd()); @@ -53,13 +46,11 @@ public V1CapabilitiesBuilder( this.validationEnabled = validationEnabled; } - public V1CapabilitiesBuilder(io.kubernetes.client.openapi.models.V1Capabilities instance) { + public V1CapabilitiesBuilder(V1Capabilities instance) { this(instance, false); } - public V1CapabilitiesBuilder( - io.kubernetes.client.openapi.models.V1Capabilities instance, - java.lang.Boolean validationEnabled) { + public V1CapabilitiesBuilder(V1Capabilities instance, Boolean validationEnabled) { this.fluent = this; this.withAdd(instance.getAdd()); @@ -68,10 +59,10 @@ public V1CapabilitiesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CapabilitiesFluent fluent; - java.lang.Boolean validationEnabled; + V1CapabilitiesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Capabilities build() { + public V1Capabilities build() { V1Capabilities buildable = new V1Capabilities(); buildable.setAdd(fluent.getAdd()); buildable.setDrop(fluent.getDrop()); 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 b570f0cf06..256fa224c1 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 @@ -21,62 +21,61 @@ public interface V1CapabilitiesFluent> extends Fluent { public A addToAdd(Integer index, String item); - public A setToAdd(java.lang.Integer index, java.lang.String item); + public A setToAdd(Integer index, String item); public A addToAdd(java.lang.String... items); - public A addAllToAdd(Collection items); + public A addAllToAdd(Collection items); public A removeFromAdd(java.lang.String... items); - public A removeAllFromAdd(java.util.Collection items); + public A removeAllFromAdd(Collection items); - public List getAdd(); + public List getAdd(); - public java.lang.String getAdd(java.lang.Integer index); + public String getAdd(Integer index); - public java.lang.String getFirstAdd(); + public String getFirstAdd(); - public java.lang.String getLastAdd(); + public String getLastAdd(); - public java.lang.String getMatchingAdd(Predicate predicate); + public String getMatchingAdd(Predicate predicate); - public Boolean hasMatchingAdd(java.util.function.Predicate predicate); + public Boolean hasMatchingAdd(Predicate predicate); - public A withAdd(java.util.List add); + public A withAdd(List add); public A withAdd(java.lang.String... add); - public java.lang.Boolean hasAdd(); + public Boolean hasAdd(); - public A addToDrop(java.lang.Integer index, java.lang.String item); + public A addToDrop(Integer index, String item); - public A setToDrop(java.lang.Integer index, java.lang.String item); + public A setToDrop(Integer index, String item); public A addToDrop(java.lang.String... items); - public A addAllToDrop(java.util.Collection items); + public A addAllToDrop(Collection items); public A removeFromDrop(java.lang.String... items); - public A removeAllFromDrop(java.util.Collection items); + public A removeAllFromDrop(Collection items); - public java.util.List getDrop(); + public List getDrop(); - public java.lang.String getDrop(java.lang.Integer index); + public String getDrop(Integer index); - public java.lang.String getFirstDrop(); + public String getFirstDrop(); - public java.lang.String getLastDrop(); + public String getLastDrop(); - public java.lang.String getMatchingDrop(java.util.function.Predicate predicate); + public String getMatchingDrop(Predicate predicate); - public java.lang.Boolean hasMatchingDrop( - java.util.function.Predicate predicate); + public Boolean hasMatchingDrop(Predicate predicate); - public A withDrop(java.util.List drop); + public A withDrop(List drop); public A withDrop(java.lang.String... drop); - public java.lang.Boolean hasDrop(); + public Boolean hasDrop(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java index 5bde93d40a..896997cbcd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluentImpl.java @@ -24,26 +24,26 @@ public class V1CapabilitiesFluentImpl> extends implements V1CapabilitiesFluent { public V1CapabilitiesFluentImpl() {} - public V1CapabilitiesFluentImpl(io.kubernetes.client.openapi.models.V1Capabilities instance) { + public V1CapabilitiesFluentImpl(V1Capabilities instance) { this.withAdd(instance.getAdd()); this.withDrop(instance.getDrop()); } private List add; - private java.util.List drop; + private List drop; - public A addToAdd(Integer index, java.lang.String item) { + public A addToAdd(Integer index, String item) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList(); } this.add.add(index, item); return (A) this; } - public A setToAdd(java.lang.Integer index, java.lang.String item) { + public A setToAdd(Integer index, String item) { if (this.add == null) { - this.add = new java.util.ArrayList(); + this.add = new ArrayList(); } this.add.set(index, item); return (A) this; @@ -51,26 +51,26 @@ public A setToAdd(java.lang.Integer index, java.lang.String item) { public A addToAdd(java.lang.String... items) { if (this.add == null) { - this.add = new java.util.ArrayList(); + this.add = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.add.add(item); } return (A) this; } - public A addAllToAdd(Collection items) { + public A addAllToAdd(Collection items) { if (this.add == null) { - this.add = new java.util.ArrayList(); + this.add = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.add.add(item); } return (A) this; } public A removeFromAdd(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.add != null) { this.add.remove(item); } @@ -78,8 +78,8 @@ public A removeFromAdd(java.lang.String... items) { return (A) this; } - public A removeAllFromAdd(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAdd(Collection items) { + for (String item : items) { if (this.add != null) { this.add.remove(item); } @@ -87,24 +87,24 @@ public A removeAllFromAdd(java.util.Collection items) { return (A) this; } - public java.util.List getAdd() { + public List getAdd() { return this.add; } - public java.lang.String getAdd(java.lang.Integer index) { + public String getAdd(Integer index) { return this.add.get(index); } - public java.lang.String getFirstAdd() { + public String getFirstAdd() { return this.add.get(0); } - public java.lang.String getLastAdd() { + public String getLastAdd() { return this.add.get(add.size() - 1); } - public java.lang.String getMatchingAdd(Predicate predicate) { - for (java.lang.String item : add) { + public String getMatchingAdd(Predicate predicate) { + for (String item : add) { if (predicate.test(item)) { return item; } @@ -112,8 +112,8 @@ public java.lang.String getMatchingAdd(Predicate predicate) { return null; } - public Boolean hasMatchingAdd(java.util.function.Predicate predicate) { - for (java.lang.String item : add) { + public Boolean hasMatchingAdd(Predicate predicate) { + for (String item : add) { if (predicate.test(item)) { return true; } @@ -121,10 +121,10 @@ public Boolean hasMatchingAdd(java.util.function.Predicate pre return false; } - public A withAdd(java.util.List add) { + public A withAdd(List add) { if (add != null) { - this.add = new java.util.ArrayList(); - for (java.lang.String item : add) { + this.add = new ArrayList(); + for (String item : add) { this.addToAdd(item); } } else { @@ -138,28 +138,28 @@ public A withAdd(java.lang.String... add) { this.add.clear(); } if (add != null) { - for (java.lang.String item : add) { + for (String item : add) { this.addToAdd(item); } } return (A) this; } - public java.lang.Boolean hasAdd() { + public Boolean hasAdd() { return add != null && !add.isEmpty(); } - public A addToDrop(java.lang.Integer index, java.lang.String item) { + public A addToDrop(Integer index, String item) { if (this.drop == null) { - this.drop = new java.util.ArrayList(); + this.drop = new ArrayList(); } this.drop.add(index, item); return (A) this; } - public A setToDrop(java.lang.Integer index, java.lang.String item) { + public A setToDrop(Integer index, String item) { if (this.drop == null) { - this.drop = new java.util.ArrayList(); + this.drop = new ArrayList(); } this.drop.set(index, item); return (A) this; @@ -167,26 +167,26 @@ public A setToDrop(java.lang.Integer index, java.lang.String item) { public A addToDrop(java.lang.String... items) { if (this.drop == null) { - this.drop = new java.util.ArrayList(); + this.drop = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.drop.add(item); } return (A) this; } - public A addAllToDrop(java.util.Collection items) { + public A addAllToDrop(Collection items) { if (this.drop == null) { - this.drop = new java.util.ArrayList(); + this.drop = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.drop.add(item); } return (A) this; } public A removeFromDrop(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.drop != null) { this.drop.remove(item); } @@ -194,8 +194,8 @@ public A removeFromDrop(java.lang.String... items) { return (A) this; } - public A removeAllFromDrop(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromDrop(Collection items) { + for (String item : items) { if (this.drop != null) { this.drop.remove(item); } @@ -203,25 +203,24 @@ public A removeAllFromDrop(java.util.Collection items) { return (A) this; } - public java.util.List getDrop() { + public List getDrop() { return this.drop; } - public java.lang.String getDrop(java.lang.Integer index) { + public String getDrop(Integer index) { return this.drop.get(index); } - public java.lang.String getFirstDrop() { + public String getFirstDrop() { return this.drop.get(0); } - public java.lang.String getLastDrop() { + public String getLastDrop() { return this.drop.get(drop.size() - 1); } - public java.lang.String getMatchingDrop( - java.util.function.Predicate predicate) { - for (java.lang.String item : drop) { + public String getMatchingDrop(Predicate predicate) { + for (String item : drop) { if (predicate.test(item)) { return item; } @@ -229,9 +228,8 @@ public java.lang.String getMatchingDrop( return null; } - public java.lang.Boolean hasMatchingDrop( - java.util.function.Predicate predicate) { - for (java.lang.String item : drop) { + public Boolean hasMatchingDrop(Predicate predicate) { + for (String item : drop) { if (predicate.test(item)) { return true; } @@ -239,10 +237,10 @@ public java.lang.Boolean hasMatchingDrop( return false; } - public A withDrop(java.util.List drop) { + public A withDrop(List drop) { if (drop != null) { - this.drop = new java.util.ArrayList(); - for (java.lang.String item : drop) { + this.drop = new ArrayList(); + for (String item : drop) { this.addToDrop(item); } } else { @@ -256,14 +254,14 @@ public A withDrop(java.lang.String... drop) { this.drop.clear(); } if (drop != null) { - for (java.lang.String item : drop) { + for (String item : drop) { this.addToDrop(item); } } return (A) this; } - public java.lang.Boolean hasDrop() { + public Boolean hasDrop() { return drop != null && !drop.isEmpty(); } @@ -280,7 +278,7 @@ public int hashCode() { return java.util.Objects.hash(add, drop, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (add != null && !add.isEmpty()) { 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 983fd6cc44..7ead9c2a24 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 @@ -17,8 +17,7 @@ public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceBuilder> { + V1CephFSPersistentVolumeSource, V1CephFSPersistentVolumeSourceBuilder> { public V1CephFSPersistentVolumeSourceBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluen } public V1CephFSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1CephFSPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CephFSPersistentVolumeSource(), validationEnabled); } public V1CephFSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource instance) { + V1CephFSPersistentVolumeSourceFluent fluent, V1CephFSPersistentVolumeSource instance) { this(fluent, instance, false); } public V1CephFSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CephFSPersistentVolumeSourceFluent fluent, + V1CephFSPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMonitors(instance.getMonitors()); @@ -63,14 +60,12 @@ public V1CephFSPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1CephFSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource instance) { + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance) { this(instance, false); } public V1CephFSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CephFSPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withMonitors(instance.getMonitors()); @@ -87,10 +82,10 @@ public V1CephFSPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1CephFSPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource build() { + public V1CephFSPersistentVolumeSource build() { V1CephFSPersistentVolumeSource buildable = new V1CephFSPersistentVolumeSource(); buildable.setMonitors(fluent.getMonitors()); buildable.setPath(fluent.getPath()); 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 e6cf782ace..86ca7780fe 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 @@ -24,51 +24,51 @@ public interface V1CephFSPersistentVolumeSourceFluent< extends Fluent { public A addToMonitors(Integer index, String item); - public A setToMonitors(java.lang.Integer index, java.lang.String item); + public A setToMonitors(Integer index, String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); + public A addAllToMonitors(Collection items); public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(java.util.Collection items); + public A removeAllFromMonitors(Collection items); - public List getMonitors(); + public List getMonitors(); - public java.lang.String getMonitor(java.lang.Integer index); + public String getMonitor(Integer index); - public java.lang.String getFirstMonitor(); + public String getFirstMonitor(); - public java.lang.String getLastMonitor(); + public String getLastMonitor(); - public java.lang.String getMatchingMonitor(Predicate predicate); + public String getMatchingMonitor(Predicate predicate); - public Boolean hasMatchingMonitor(java.util.function.Predicate predicate); + public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(java.util.List monitors); + public A withMonitors(List monitors); public A withMonitors(java.lang.String... monitors); - public java.lang.Boolean hasMonitors(); + public Boolean hasMonitors(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getSecretFile(); + public String getSecretFile(); - public A withSecretFile(java.lang.String secretFile); + public A withSecretFile(String secretFile); - public java.lang.Boolean hasSecretFile(); + public Boolean hasSecretFile(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -78,31 +78,29 @@ public interface V1CephFSPersistentVolumeSourceFluent< @Deprecated public V1SecretReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef(); + public V1SecretReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef); + public A withSecretRef(V1SecretReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item); - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java index bc304151e2..06504e45a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluentImpl.java @@ -26,8 +26,7 @@ public class V1CephFSPersistentVolumeSourceFluentImpl< extends BaseFluent implements V1CephFSPersistentVolumeSourceFluent { public V1CephFSPersistentVolumeSourceFluentImpl() {} - public V1CephFSPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource instance) { + public V1CephFSPersistentVolumeSourceFluentImpl(V1CephFSPersistentVolumeSource instance) { this.withMonitors(instance.getMonitors()); this.withPath(instance.getPath()); @@ -42,23 +41,23 @@ public V1CephFSPersistentVolumeSourceFluentImpl( } private List monitors; - private java.lang.String path; + private String path; private Boolean readOnly; - private java.lang.String secretFile; + private String secretFile; private V1SecretReferenceBuilder secretRef; - private java.lang.String user; + private String user; - public A addToMonitors(Integer index, java.lang.String item) { + public A addToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList(); } this.monitors.add(index, item); return (A) this; } - public A setToMonitors(java.lang.Integer index, java.lang.String item) { + public A setToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } this.monitors.set(index, item); return (A) this; @@ -66,26 +65,26 @@ public A setToMonitors(java.lang.Integer index, java.lang.String item) { public A addToMonitors(java.lang.String... items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } - public A addAllToMonitors(Collection items) { + public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } public A removeFromMonitors(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -93,8 +92,8 @@ public A removeFromMonitors(java.lang.String... items) { return (A) this; } - public A removeAllFromMonitors(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromMonitors(Collection items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -102,24 +101,24 @@ public A removeAllFromMonitors(java.util.Collection items) { return (A) this; } - public java.util.List getMonitors() { + public List getMonitors() { return this.monitors; } - public java.lang.String getMonitor(java.lang.Integer index) { + public String getMonitor(Integer index) { return this.monitors.get(index); } - public java.lang.String getFirstMonitor() { + public String getFirstMonitor() { return this.monitors.get(0); } - public java.lang.String getLastMonitor() { + public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public java.lang.String getMatchingMonitor(Predicate predicate) { - for (java.lang.String item : monitors) { + public String getMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return item; } @@ -127,9 +126,8 @@ public java.lang.String getMatchingMonitor(Predicate predicate return null; } - public java.lang.Boolean hasMatchingMonitor( - java.util.function.Predicate predicate) { - for (java.lang.String item : monitors) { + public Boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return true; } @@ -137,10 +135,10 @@ public java.lang.Boolean hasMatchingMonitor( return false; } - public A withMonitors(java.util.List monitors) { + public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new java.util.ArrayList(); - for (java.lang.String item : monitors) { + this.monitors = new ArrayList(); + for (String item : monitors) { this.addToMonitors(item); } } else { @@ -154,53 +152,53 @@ public A withMonitors(java.lang.String... monitors) { this.monitors.clear(); } if (monitors != null) { - for (java.lang.String item : monitors) { + for (String item : monitors) { this.addToMonitors(item); } } return (A) this; } - public java.lang.Boolean hasMonitors() { + public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getSecretFile() { + public String getSecretFile() { return this.secretFile; } - public A withSecretFile(java.lang.String secretFile) { + public A withSecretFile(String secretFile) { this.secretFile = secretFile; return (A) this; } - public java.lang.Boolean hasSecretFile() { + public Boolean hasSecretFile() { return this.secretFile != null; } @@ -214,20 +212,23 @@ public V1SecretReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef() { + public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef) { + public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(secretRef); + this.secretRef = new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -235,39 +236,35 @@ public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef( return new V1CephFSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item) { return new V1CephFSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CephFSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -291,7 +288,7 @@ public int hashCode() { monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (monitors != null && !monitors.isEmpty()) { @@ -328,19 +325,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { + implements V1CephFSPersistentVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1CephFSPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 fc99de4a5a..519e0ea0ff 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 @@ -16,9 +16,7 @@ public class V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CephFSVolumeSource, - io.kubernetes.client.openapi.models.V1CephFSVolumeSourceBuilder> { + implements VisitableBuilder { public V1CephFSVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent) { } public V1CephFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1CephFSVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CephFSVolumeSource(), validationEnabled); } public V1CephFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CephFSVolumeSource instance) { + V1CephFSVolumeSourceFluent fluent, V1CephFSVolumeSource instance) { this(fluent, instance, false); } public V1CephFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CephFSVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CephFSVolumeSourceFluent fluent, + V1CephFSVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMonitors(instance.getMonitors()); @@ -63,14 +59,11 @@ public V1CephFSVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1CephFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource instance) { + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance) { this(instance, false); } - public V1CephFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withMonitors(instance.getMonitors()); @@ -87,10 +80,10 @@ public V1CephFSVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1CephFSVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CephFSVolumeSource build() { + public V1CephFSVolumeSource build() { V1CephFSVolumeSource buildable = new V1CephFSVolumeSource(); buildable.setMonitors(fluent.getMonitors()); buildable.setPath(fluent.getPath()); 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 7ddc13a9c3..bc0031c0a2 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 @@ -23,51 +23,51 @@ public interface V1CephFSVolumeSourceFluent { public A addToMonitors(Integer index, String item); - public A setToMonitors(java.lang.Integer index, java.lang.String item); + public A setToMonitors(Integer index, String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); + public A addAllToMonitors(Collection items); public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(java.util.Collection items); + public A removeAllFromMonitors(Collection items); - public List getMonitors(); + public List getMonitors(); - public java.lang.String getMonitor(java.lang.Integer index); + public String getMonitor(Integer index); - public java.lang.String getFirstMonitor(); + public String getFirstMonitor(); - public java.lang.String getLastMonitor(); + public String getLastMonitor(); - public java.lang.String getMatchingMonitor(Predicate predicate); + public String getMatchingMonitor(Predicate predicate); - public Boolean hasMatchingMonitor(java.util.function.Predicate predicate); + public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(java.util.List monitors); + public A withMonitors(List monitors); public A withMonitors(java.lang.String... monitors); - public java.lang.Boolean hasMonitors(); + public Boolean hasMonitors(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getSecretFile(); + public String getSecretFile(); - public A withSecretFile(java.lang.String secretFile); + public A withSecretFile(String secretFile); - public java.lang.Boolean hasSecretFile(); + public Boolean hasSecretFile(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -77,31 +77,29 @@ public interface V1CephFSVolumeSourceFluent withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1CephFSVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java index 97e9530bb4..c660707294 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluentImpl.java @@ -25,8 +25,7 @@ public class V1CephFSVolumeSourceFluentImpl implements V1CephFSVolumeSourceFluent { public V1CephFSVolumeSourceFluentImpl() {} - public V1CephFSVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource instance) { + public V1CephFSVolumeSourceFluentImpl(V1CephFSVolumeSource instance) { this.withMonitors(instance.getMonitors()); this.withPath(instance.getPath()); @@ -41,23 +40,23 @@ public V1CephFSVolumeSourceFluentImpl( } private List monitors; - private java.lang.String path; + private String path; private Boolean readOnly; - private java.lang.String secretFile; + private String secretFile; private V1LocalObjectReferenceBuilder secretRef; - private java.lang.String user; + private String user; - public A addToMonitors(Integer index, java.lang.String item) { + public A addToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList(); } this.monitors.add(index, item); return (A) this; } - public A setToMonitors(java.lang.Integer index, java.lang.String item) { + public A setToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } this.monitors.set(index, item); return (A) this; @@ -65,26 +64,26 @@ public A setToMonitors(java.lang.Integer index, java.lang.String item) { public A addToMonitors(java.lang.String... items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } - public A addAllToMonitors(Collection items) { + public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } public A removeFromMonitors(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -92,8 +91,8 @@ public A removeFromMonitors(java.lang.String... items) { return (A) this; } - public A removeAllFromMonitors(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromMonitors(Collection items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -101,24 +100,24 @@ public A removeAllFromMonitors(java.util.Collection items) { return (A) this; } - public java.util.List getMonitors() { + public List getMonitors() { return this.monitors; } - public java.lang.String getMonitor(java.lang.Integer index) { + public String getMonitor(Integer index) { return this.monitors.get(index); } - public java.lang.String getFirstMonitor() { + public String getFirstMonitor() { return this.monitors.get(0); } - public java.lang.String getLastMonitor() { + public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public java.lang.String getMatchingMonitor(Predicate predicate) { - for (java.lang.String item : monitors) { + public String getMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return item; } @@ -126,9 +125,8 @@ public java.lang.String getMatchingMonitor(Predicate predicate return null; } - public java.lang.Boolean hasMatchingMonitor( - java.util.function.Predicate predicate) { - for (java.lang.String item : monitors) { + public Boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return true; } @@ -136,10 +134,10 @@ public java.lang.Boolean hasMatchingMonitor( return false; } - public A withMonitors(java.util.List monitors) { + public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new java.util.ArrayList(); - for (java.lang.String item : monitors) { + this.monitors = new ArrayList(); + for (String item : monitors) { this.addToMonitors(item); } } else { @@ -153,53 +151,53 @@ public A withMonitors(java.lang.String... monitors) { this.monitors.clear(); } if (monitors != null) { - for (java.lang.String item : monitors) { + for (String item : monitors) { this.addToMonitors(item); } } return (A) this; } - public java.lang.Boolean hasMonitors() { + public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getSecretFile() { + public String getSecretFile() { return this.secretFile; } - public A withSecretFile(java.lang.String secretFile) { + public A withSecretFile(String secretFile) { this.secretFile = secretFile; return (A) this; } - public java.lang.Boolean hasSecretFile() { + public Boolean hasSecretFile() { return this.secretFile != null; } @@ -213,21 +211,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -235,39 +235,35 @@ public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1CephFSVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1CephFSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1CephFSVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1CephFSVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1CephFSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -291,7 +287,7 @@ public int hashCode() { monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (monitors != null && !monitors.isEmpty()) { @@ -328,17 +324,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1CephFSVolumeSourceFluent.SecretRefNested, - Nested { + implements V1CephFSVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1CephFSVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 22eaa0ca07..042e9f051a 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 @@ -16,9 +16,7 @@ public class V1CertificateSigningRequestBuilder extends V1CertificateSigningRequestFluentImpl - implements VisitableBuilder< - V1CertificateSigningRequest, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> { + implements VisitableBuilder { public V1CertificateSigningRequestBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1CertificateSigningRequestBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequest(), validationEnabled); } - public V1CertificateSigningRequestBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent fluent) { + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent) { this(fluent, false); } public V1CertificateSigningRequestBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent fluent, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestFluent fluent, Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequest(), validationEnabled); } public V1CertificateSigningRequestBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest instance) { + V1CertificateSigningRequestFluent fluent, V1CertificateSigningRequest instance) { this(fluent, instance, false); } public V1CertificateSigningRequestBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestFluent fluent, + V1CertificateSigningRequest instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,14 +57,12 @@ public V1CertificateSigningRequestBuilder( this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequest instance) { + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequest instance) { this(instance, false); } public V1CertificateSigningRequestBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequest instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequest instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -84,10 +77,10 @@ public V1CertificateSigningRequestBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent fluent; - java.lang.Boolean validationEnabled; + V1CertificateSigningRequestFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest build() { + public V1CertificateSigningRequest build() { V1CertificateSigningRequest buildable = new V1CertificateSigningRequest(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 37d042b974..8762eb3dc4 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 @@ -18,8 +18,7 @@ public class V1CertificateSigningRequestConditionBuilder extends V1CertificateSigningRequestConditionFluentImpl< V1CertificateSigningRequestConditionBuilder> implements VisitableBuilder< - V1CertificateSigningRequestCondition, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> { + V1CertificateSigningRequestCondition, V1CertificateSigningRequestConditionBuilder> { public V1CertificateSigningRequestConditionBuilder() { this(false); } @@ -29,26 +28,25 @@ public V1CertificateSigningRequestConditionBuilder(Boolean validationEnabled) { } public V1CertificateSigningRequestConditionBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionFluent fluent) { + V1CertificateSigningRequestConditionFluent fluent) { this(fluent, false); } public V1CertificateSigningRequestConditionBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestCondition(), validationEnabled); } public V1CertificateSigningRequestConditionBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition instance) { + V1CertificateSigningRequestConditionFluent fluent, + V1CertificateSigningRequestCondition instance) { this(fluent, instance, false); } public V1CertificateSigningRequestConditionBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestConditionFluent fluent, + V1CertificateSigningRequestCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -66,13 +64,12 @@ public V1CertificateSigningRequestConditionBuilder( } public V1CertificateSigningRequestConditionBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition instance) { + V1CertificateSigningRequestCondition instance) { this(instance, false); } public V1CertificateSigningRequestConditionBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -89,10 +86,10 @@ public V1CertificateSigningRequestConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1CertificateSigningRequestConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition build() { + public V1CertificateSigningRequestCondition build() { V1CertificateSigningRequestCondition buildable = new V1CertificateSigningRequestCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setLastUpdateTime(fluent.getLastUpdateTime()); 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 b722955b3e..97b8d85bb0 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 @@ -21,37 +21,37 @@ public interface V1CertificateSigningRequestConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); - public java.time.OffsetDateTime getLastUpdateTime(); + public OffsetDateTime getLastUpdateTime(); - public A withLastUpdateTime(java.time.OffsetDateTime lastUpdateTime); + public A withLastUpdateTime(OffsetDateTime lastUpdateTime); - public java.lang.Boolean hasLastUpdateTime(); + public Boolean hasLastUpdateTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java index 36f675769b..e98f395a19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluentImpl.java @@ -23,7 +23,7 @@ public class V1CertificateSigningRequestConditionFluentImpl< public V1CertificateSigningRequestConditionFluentImpl() {} public V1CertificateSigningRequestConditionFluentImpl( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition instance) { + V1CertificateSigningRequestCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withLastUpdateTime(instance.getLastUpdateTime()); @@ -38,17 +38,17 @@ public V1CertificateSigningRequestConditionFluentImpl( } private OffsetDateTime lastTransitionTime; - private java.time.OffsetDateTime lastUpdateTime; + private OffsetDateTime lastUpdateTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -57,68 +57,68 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.time.OffsetDateTime getLastUpdateTime() { + public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(java.time.OffsetDateTime lastUpdateTime) { + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return (A) this; } - public java.lang.Boolean hasLastUpdateTime() { + public Boolean hasLastUpdateTime() { return this.lastUpdateTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -145,7 +145,7 @@ public int hashCode() { lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 ca2b0b209b..aa4b9dbf1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java @@ -20,15 +20,15 @@ public interface V1CertificateSigningRequestFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,82 +38,74 @@ public interface V1CertificateSigningRequestFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CertificateSigningRequestFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - editMetadata(); + public V1CertificateSigningRequestFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - editOrNewMetadata(); + public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CertificateSigningRequestSpec getSpec(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec buildSpec(); + public V1CertificateSigningRequestSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec spec); + public A withSpec(V1CertificateSigningRequestSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1CertificateSigningRequestFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec item); + public V1CertificateSigningRequestFluent.SpecNested withNewSpecLike( + V1CertificateSigningRequestSpec item); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - editSpec(); + public V1CertificateSigningRequestFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - editOrNewSpec(); + public V1CertificateSigningRequestFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec item); + public V1CertificateSigningRequestFluent.SpecNested editOrNewSpecLike( + V1CertificateSigningRequestSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CertificateSigningRequestStatus getStatus(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus buildStatus(); + public V1CertificateSigningRequestStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus status); + public A withStatus(V1CertificateSigningRequestStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1CertificateSigningRequestFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus item); + public V1CertificateSigningRequestFluent.StatusNested withNewStatusLike( + V1CertificateSigningRequestStatus item); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - editStatus(); + public V1CertificateSigningRequestFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - editOrNewStatus(); + public V1CertificateSigningRequestFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus item); + public V1CertificateSigningRequestFluent.StatusNested editOrNewStatusLike( + V1CertificateSigningRequestStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -123,7 +115,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CertificateSigningRequestSpecFluent> { public N and(); @@ -131,7 +123,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CertificateSigningRequestStatusFluent< V1CertificateSigningRequestFluent.StatusNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java index bc4191f375..37755ea525 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluentImpl.java @@ -21,8 +21,7 @@ public class V1CertificateSigningRequestFluentImpl implements V1CertificateSigningRequestFluent { public V1CertificateSigningRequestFluentImpl() {} - public V1CertificateSigningRequestFluentImpl( - io.kubernetes.client.openapi.models.V1CertificateSigningRequest instance) { + public V1CertificateSigningRequestFluentImpl(V1CertificateSigningRequest instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1CertificateSigningRequestFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1CertificateSigningRequestSpecBuilder spec; private V1CertificateSigningRequestStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,22 @@ public V1CertificateSigningRequestFluent.MetadataNested withNewMetadata() { return new V1CertificateSigningRequestFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CertificateSigningRequestFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V1CertificateSigningRequestFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - editMetadata() { + public V1CertificateSigningRequestFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - editOrNewMetadata() { + public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CertificateSigningRequestFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +123,28 @@ public V1CertificateSigningRequestFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec getSpec() { + @Deprecated + public V1CertificateSigningRequestSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec buildSpec() { + public V1CertificateSigningRequestSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec spec) { + public A withSpec(V1CertificateSigningRequestSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1CertificateSigningRequestSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,28 +152,22 @@ public V1CertificateSigningRequestFluent.SpecNested withNewSpec() { return new V1CertificateSigningRequestFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec item) { - return new io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluentImpl - .SpecNestedImpl(item); + public V1CertificateSigningRequestFluent.SpecNested withNewSpecLike( + V1CertificateSigningRequestSpec item) { + return new V1CertificateSigningRequestFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - editSpec() { + public V1CertificateSigningRequestFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - editOrNewSpec() { + public V1CertificateSigningRequestFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1CertificateSigningRequestSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec item) { + public V1CertificateSigningRequestFluent.SpecNested editOrNewSpecLike( + V1CertificateSigningRequestSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -181,26 +176,28 @@ public V1CertificateSigningRequestFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus getStatus() { + @Deprecated + public V1CertificateSigningRequestStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus buildStatus() { + public V1CertificateSigningRequestStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus status) { + public A withStatus(V1CertificateSigningRequestStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1CertificateSigningRequestStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -208,30 +205,22 @@ public V1CertificateSigningRequestFluent.StatusNested withNewStatus() { return new V1CertificateSigningRequestFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus item) { - return new io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluentImpl - .StatusNestedImpl(item); + public V1CertificateSigningRequestFluent.StatusNested withNewStatusLike( + V1CertificateSigningRequestStatus item) { + return new V1CertificateSigningRequestFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - editStatus() { + public V1CertificateSigningRequestFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - editOrNewStatus() { + public V1CertificateSigningRequestFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V1CertificateSigningRequestStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus item) { + public V1CertificateSigningRequestFluent.StatusNested editOrNewStatusLike( + V1CertificateSigningRequestStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -252,7 +241,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -281,19 +270,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent - .MetadataNested< - N>, - Nested { + implements V1CertificateSigningRequestFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1CertificateSigningRequestFluentImpl.this.withMetadata(builder.build()); @@ -307,19 +293,16 @@ public N endMetadata() { class SpecNestedImpl extends V1CertificateSigningRequestSpecFluentImpl< V1CertificateSigningRequestFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.SpecNested< - N>, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec item) { + implements V1CertificateSigningRequestFluent.SpecNested, Nested { + SpecNestedImpl(V1CertificateSigningRequestSpec item) { this.builder = new V1CertificateSigningRequestSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecBuilder(this); + this.builder = new V1CertificateSigningRequestSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecBuilder builder; + V1CertificateSigningRequestSpecBuilder builder; public N and() { return (N) V1CertificateSigningRequestFluentImpl.this.withSpec(builder.build()); @@ -333,19 +316,16 @@ public N endSpec() { class StatusNestedImpl extends V1CertificateSigningRequestStatusFluentImpl< V1CertificateSigningRequestFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1CertificateSigningRequestFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus item) { + implements V1CertificateSigningRequestFluent.StatusNested, Nested { + StatusNestedImpl(V1CertificateSigningRequestStatus item) { this.builder = new V1CertificateSigningRequestStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusBuilder(this); + this.builder = new V1CertificateSigningRequestStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusBuilder builder; + V1CertificateSigningRequestStatusBuilder builder; public N and() { return (N) V1CertificateSigningRequestFluentImpl.this.withStatus(builder.build()); 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 465943d50d..3b246070f5 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 @@ -17,8 +17,7 @@ public class V1CertificateSigningRequestListBuilder extends V1CertificateSigningRequestListFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestList, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestListBuilder> { + V1CertificateSigningRequestList, V1CertificateSigningRequestListBuilder> { public V1CertificateSigningRequestListBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFlu } public V1CertificateSigningRequestListBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent fluent, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestListFluent fluent, Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestList(), validationEnabled); } public V1CertificateSigningRequestListBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestList instance) { + V1CertificateSigningRequestListFluent fluent, V1CertificateSigningRequestList instance) { this(fluent, instance, false); } public V1CertificateSigningRequestListBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestList instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestListFluent fluent, + V1CertificateSigningRequestList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +56,12 @@ public V1CertificateSigningRequestListBuilder( this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestListBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestList instance) { + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestList instance) { this(instance, false); } public V1CertificateSigningRequestListBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestList instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +74,10 @@ public V1CertificateSigningRequestListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent fluent; - java.lang.Boolean validationEnabled; + V1CertificateSigningRequestListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestList build() { + public V1CertificateSigningRequestList build() { V1CertificateSigningRequestList buildable = new V1CertificateSigningRequestList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 de425ff91c..0e4e2270bf 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 @@ -24,26 +24,22 @@ public interface V1CertificateSigningRequestListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1CertificateSigningRequest item); - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest item); + public A setToItems(Integer index, V1CertificateSigningRequest item); public A addToItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems( io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -53,93 +49,75 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildItem( - java.lang.Integer index); + public V1CertificateSigningRequest buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildFirstItem(); + public V1CertificateSigningRequest buildFirstItem(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildLastItem(); + public V1CertificateSigningRequest buildLastItem(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> - predicate); + public V1CertificateSigningRequest buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1CertificateSigningRequestListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequest item); + public V1CertificateSigningRequestListFluent.ItemsNested addNewItemLike( + V1CertificateSigningRequest item); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest item); + public V1CertificateSigningRequestListFluent.ItemsNested setNewItemLike( + Integer index, V1CertificateSigningRequest item); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1CertificateSigningRequestListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editFirstItem(); + public V1CertificateSigningRequestListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editLastItem(); + public V1CertificateSigningRequestListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> - predicate); + public V1CertificateSigningRequestListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - editMetadata(); + public V1CertificateSigningRequestListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - editOrNewMetadata(); + public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -150,8 +128,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java index ebbc98722c..9ec2a7423d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluentImpl.java @@ -39,14 +39,14 @@ public V1CertificateSigningRequestListFluentImpl(V1CertificateSigningRequestList private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,30 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1CertificateSigningRequest item) { + public A addToItems(Integer index, V1CertificateSigningRequest item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(item); + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest item) { + public A setToItems(Integer index, V1CertificateSigningRequest item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(item); + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -94,29 +85,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequest item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequest item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(item); + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -125,9 +109,8 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequest item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(item); + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -136,11 +119,9 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequest item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -149,14 +130,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder = each.next(); + V1CertificateSigningRequestBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -171,33 +150,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildItem( - java.lang.Integer index) { + public V1CertificateSigningRequest buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildFirstItem() { + public V1CertificateSigningRequest buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildLastItem() { + public V1CertificateSigningRequest buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder item : items) { + public V1CertificateSigningRequest buildMatchingItem( + Predicate predicate) { + for (V1CertificateSigningRequestBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -205,11 +180,8 @@ public io.kubernetes.client.openapi.models.V1CertificateSigningRequest buildMatc return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1CertificateSigningRequestBuilder item : items) { if (predicate.test(item)) { return true; } @@ -217,14 +189,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequest item : items) { + this.items = new ArrayList(); + for (V1CertificateSigningRequest item : items) { this.addToItems(item); } } else { @@ -238,14 +209,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningReque this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequest item : items) { + for (V1CertificateSigningRequest item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -253,43 +224,34 @@ public V1CertificateSigningRequestListFluent.ItemsNested addNewItem() { return new V1CertificateSigningRequestListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1CertificateSigningRequest item) { + public V1CertificateSigningRequestListFluent.ItemsNested addNewItemLike( + V1CertificateSigningRequest item) { return new V1CertificateSigningRequestListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest item) { - return new io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluentImpl - .ItemsNestedImpl(index, item); + public V1CertificateSigningRequestListFluent.ItemsNested setNewItemLike( + Integer index, V1CertificateSigningRequest item) { + return new V1CertificateSigningRequestListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1CertificateSigningRequestListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editFirstItem() { + public V1CertificateSigningRequestListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editLastItem() { + public V1CertificateSigningRequestListFluent.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 io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder> - predicate) { + public V1CertificateSigningRequestListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -301,16 +263,16 @@ public V1CertificateSigningRequestListFluent.ItemsNested addNewItem() { return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -319,25 +281,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -345,27 +310,22 @@ public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadata() return new V1CertificateSigningRequestListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluentImpl - .MetadataNestedImpl(item); + public V1CertificateSigningRequestListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1CertificateSigningRequestListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - editMetadata() { + public V1CertificateSigningRequestListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - editOrNewMetadata() { + public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1CertificateSigningRequestListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -385,7 +345,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -411,25 +371,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1CertificateSigningRequestFluentImpl< V1CertificateSigningRequestListFluent.ItemsNested> - implements io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent - .ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequest item) { + implements V1CertificateSigningRequestListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1CertificateSigningRequest item) { this.index = index; this.builder = new V1CertificateSigningRequestBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder(this); + this.builder = new V1CertificateSigningRequestBuilder(this); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestBuilder builder; - java.lang.Integer index; + V1CertificateSigningRequestBuilder builder; + Integer index; public N and() { return (N) V1CertificateSigningRequestListFluentImpl.this.setToItems(index, builder.build()); @@ -442,19 +396,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CertificateSigningRequestListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CertificateSigningRequestListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1CertificateSigningRequestListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java index fe908ef649..480c214af5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java @@ -17,8 +17,7 @@ public class V1CertificateSigningRequestSpecBuilder extends V1CertificateSigningRequestSpecFluentImpl implements VisitableBuilder< - V1CertificateSigningRequestSpec, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecBuilder> { + V1CertificateSigningRequestSpec, V1CertificateSigningRequestSpecBuilder> { public V1CertificateSigningRequestSpecBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1CertificateSigningRequestSpecBuilder(Boolean validationEnabled) { this(new V1CertificateSigningRequestSpec(), validationEnabled); } - public V1CertificateSigningRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecFluent fluent) { + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent) { this(fluent, false); } public V1CertificateSigningRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestSpec(), validationEnabled); } public V1CertificateSigningRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec instance) { + V1CertificateSigningRequestSpecFluent fluent, V1CertificateSigningRequestSpec instance) { this(fluent, instance, false); } public V1CertificateSigningRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestSpecFluent fluent, + V1CertificateSigningRequestSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withExpirationSeconds(instance.getExpirationSeconds()); @@ -68,14 +64,12 @@ public V1CertificateSigningRequestSpecBuilder( this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec instance) { + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpec instance) { this(instance, false); } public V1CertificateSigningRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestSpec instance, Boolean validationEnabled) { this.fluent = this; this.withExpirationSeconds(instance.getExpirationSeconds()); @@ -96,10 +90,10 @@ public V1CertificateSigningRequestSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1CertificateSigningRequestSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec build() { + public V1CertificateSigningRequestSpec build() { V1CertificateSigningRequestSpec buildable = new V1CertificateSigningRequestSpec(); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); buildable.setExtra(fluent.getExtra()); 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 79eb738787..47bbf530a4 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 @@ -24,121 +24,117 @@ public interface V1CertificateSigningRequestSpecFluent< extends Fluent { public Integer getExpirationSeconds(); - public A withExpirationSeconds(java.lang.Integer expirationSeconds); + public A withExpirationSeconds(Integer expirationSeconds); public Boolean hasExpirationSeconds(); - public A addToExtra(String key, List value); + public A addToExtra(String key, List value); - public A addToExtra(Map> map); + public A addToExtra(Map> map); - public A removeFromExtra(java.lang.String key); + public A removeFromExtra(String key); - public A removeFromExtra(java.util.Map> map); + public A removeFromExtra(Map> map); - public java.util.Map> getExtra(); + public Map> getExtra(); - public A withExtra( - java.util.Map> extra); + public A withExtra(Map> extra); - public java.lang.Boolean hasExtra(); + public Boolean hasExtra(); - public A addToGroups(java.lang.Integer index, java.lang.String item); + public A addToGroups(Integer index, String item); - public A setToGroups(java.lang.Integer index, java.lang.String item); + public A setToGroups(Integer index, String item); public A addToGroups(java.lang.String... items); - public A addAllToGroups(Collection items); + public A addAllToGroups(Collection items); public A removeFromGroups(java.lang.String... items); - public A removeAllFromGroups(java.util.Collection items); + public A removeAllFromGroups(Collection items); - public java.util.List getGroups(); + public List getGroups(); - public java.lang.String getGroup(java.lang.Integer index); + public String getGroup(Integer index); - public java.lang.String getFirstGroup(); + public String getFirstGroup(); - public java.lang.String getLastGroup(); + public String getLastGroup(); - public java.lang.String getMatchingGroup(Predicate predicate); + public String getMatchingGroup(Predicate predicate); - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate predicate); + public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(java.util.List groups); + public A withGroups(List groups); public A withGroups(java.lang.String... groups); - public java.lang.Boolean hasGroups(); + public Boolean hasGroups(); public A withRequest(byte... request); public byte[] getRequest(); - public A addToRequest(java.lang.Integer index, Byte item); + public A addToRequest(Integer index, Byte item); - public A setToRequest(java.lang.Integer index, java.lang.Byte item); + public A setToRequest(Integer index, Byte item); public A addToRequest(java.lang.Byte... items); - public A addAllToRequest(java.util.Collection items); + public A addAllToRequest(Collection items); public A removeFromRequest(java.lang.Byte... items); - public A removeAllFromRequest(java.util.Collection items); + public A removeAllFromRequest(Collection items); - public java.lang.Boolean hasRequest(); + public Boolean hasRequest(); - public java.lang.String getSignerName(); + public String getSignerName(); - public A withSignerName(java.lang.String signerName); + public A withSignerName(String signerName); - public java.lang.Boolean hasSignerName(); + public Boolean hasSignerName(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); - public A addToUsages(java.lang.Integer index, java.lang.String item); + public A addToUsages(Integer index, String item); - public A setToUsages(java.lang.Integer index, java.lang.String item); + public A setToUsages(Integer index, String item); public A addToUsages(java.lang.String... items); - public A addAllToUsages(java.util.Collection items); + public A addAllToUsages(Collection items); public A removeFromUsages(java.lang.String... items); - public A removeAllFromUsages(java.util.Collection items); + public A removeAllFromUsages(Collection items); - public java.util.List getUsages(); + public List getUsages(); - public java.lang.String getUsage(java.lang.Integer index); + public String getUsage(Integer index); - public java.lang.String getFirstUsage(); + public String getFirstUsage(); - public java.lang.String getLastUsage(); + public String getLastUsage(); - public java.lang.String getMatchingUsage( - java.util.function.Predicate predicate); + public String getMatchingUsage(Predicate predicate); - public java.lang.Boolean hasMatchingUsage( - java.util.function.Predicate predicate); + public Boolean hasMatchingUsage(Predicate predicate); - public A withUsages(java.util.List usages); + public A withUsages(List usages); public A withUsages(java.lang.String... usages); - public java.lang.Boolean hasUsages(); + public Boolean hasUsages(); - public java.lang.String getUsername(); + public String getUsername(); - public A withUsername(java.lang.String username); + public A withUsername(String username); - public java.lang.Boolean hasUsername(); + public Boolean hasUsername(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java index 532a452791..5550bf579e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluentImpl.java @@ -27,8 +27,7 @@ public class V1CertificateSigningRequestSpecFluentImpl< extends BaseFluent implements V1CertificateSigningRequestSpecFluent { public V1CertificateSigningRequestSpecFluentImpl() {} - public V1CertificateSigningRequestSpecFluentImpl( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestSpec instance) { + public V1CertificateSigningRequestSpecFluentImpl(V1CertificateSigningRequestSpec instance) { this.withExpirationSeconds(instance.getExpirationSeconds()); this.withExtra(instance.getExtra()); @@ -47,19 +46,19 @@ public V1CertificateSigningRequestSpecFluentImpl( } private Integer expirationSeconds; - private Map> extra; - private java.util.List groups; - private java.util.List request; - private java.lang.String signerName; - private java.lang.String uid; - private java.util.List usages; - private java.lang.String username; - - public java.lang.Integer getExpirationSeconds() { + private Map> extra; + private List groups; + private List request; + private String signerName; + private String uid; + private List usages; + private String username; + + public Integer getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(java.lang.Integer expirationSeconds) { + public A withExpirationSeconds(Integer expirationSeconds) { this.expirationSeconds = expirationSeconds; return (A) this; } @@ -68,7 +67,7 @@ public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } - public A addToExtra(java.lang.String key, java.util.List value) { + public A addToExtra(String key, List value) { if (this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } @@ -78,9 +77,9 @@ public A addToExtra(java.lang.String key, java.util.List value return (A) this; } - public A addToExtra(java.util.Map> map) { + public A addToExtra(Map> map) { if (this.extra == null && map != null) { - this.extra = new java.util.LinkedHashMap(); + this.extra = new LinkedHashMap(); } if (map != null) { this.extra.putAll(map); @@ -88,7 +87,7 @@ public A addToExtra(java.util.Map> map) { + public A removeFromExtra(Map> map) { if (this.extra == null) { return (A) this; } @@ -112,35 +111,34 @@ public A removeFromExtra(java.util.Map> getExtra() { + public Map> getExtra() { return this.extra; } - public A withExtra( - java.util.Map> extra) { + public A withExtra(Map> extra) { if (extra == null) { this.extra = null; } else { - this.extra = new java.util.LinkedHashMap(extra); + this.extra = new LinkedHashMap(extra); } return (A) this; } - public java.lang.Boolean hasExtra() { + public Boolean hasExtra() { return this.extra != null; } - public A addToGroups(java.lang.Integer index, java.lang.String item) { + public A addToGroups(Integer index, String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList(); } this.groups.add(index, item); return (A) this; } - public A setToGroups(java.lang.Integer index, java.lang.String item) { + public A setToGroups(Integer index, String item) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } this.groups.set(index, item); return (A) this; @@ -148,26 +146,26 @@ public A setToGroups(java.lang.Integer index, java.lang.String item) { public A addToGroups(java.lang.String... items) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.groups.add(item); } return (A) this; } - public A addAllToGroups(Collection items) { + public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.groups.add(item); } return (A) this; } public A removeFromGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.groups != null) { this.groups.remove(item); } @@ -175,8 +173,8 @@ public A removeFromGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromGroups(Collection items) { + for (String item : items) { if (this.groups != null) { this.groups.remove(item); } @@ -184,24 +182,24 @@ public A removeAllFromGroups(java.util.Collection items) { return (A) this; } - public java.util.List getGroups() { + public List getGroups() { return this.groups; } - public java.lang.String getGroup(java.lang.Integer index) { + public String getGroup(Integer index) { return this.groups.get(index); } - public java.lang.String getFirstGroup() { + public String getFirstGroup() { return this.groups.get(0); } - public java.lang.String getLastGroup() { + public String getLastGroup() { return this.groups.get(groups.size() - 1); } - public java.lang.String getMatchingGroup(Predicate predicate) { - for (java.lang.String item : groups) { + public String getMatchingGroup(Predicate predicate) { + for (String item : groups) { if (predicate.test(item)) { return item; } @@ -209,9 +207,8 @@ public java.lang.String getMatchingGroup(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate predicate) { - for (java.lang.String item : groups) { + public Boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { if (predicate.test(item)) { return true; } @@ -219,10 +216,10 @@ public java.lang.Boolean hasMatchingGroup( return false; } - public A withGroups(java.util.List groups) { + public A withGroups(List groups) { if (groups != null) { - this.groups = new java.util.ArrayList(); - for (java.lang.String item : groups) { + this.groups = new ArrayList(); + for (String item : groups) { this.addToGroups(item); } } else { @@ -236,14 +233,14 @@ public A withGroups(java.lang.String... groups) { this.groups.clear(); } if (groups != null) { - for (java.lang.String item : groups) { + for (String item : groups) { this.addToGroups(item); } } return (A) this; } - public java.lang.Boolean hasGroups() { + public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } @@ -273,17 +270,17 @@ public byte[] getRequest() { return result; } - public A addToRequest(java.lang.Integer index, java.lang.Byte item) { + public A addToRequest(Integer index, Byte item) { if (this.request == null) { - this.request = new java.util.ArrayList(); + this.request = new ArrayList(); } this.request.add(index, item); return (A) this; } - public A setToRequest(java.lang.Integer index, java.lang.Byte item) { + public A setToRequest(Integer index, Byte item) { if (this.request == null) { - this.request = new java.util.ArrayList(); + this.request = new ArrayList(); } this.request.set(index, item); return (A) this; @@ -291,26 +288,26 @@ public A setToRequest(java.lang.Integer index, java.lang.Byte item) { public A addToRequest(java.lang.Byte... items) { if (this.request == null) { - this.request = new java.util.ArrayList(); + this.request = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.request.add(item); } return (A) this; } - public A addAllToRequest(java.util.Collection items) { + public A addAllToRequest(Collection items) { if (this.request == null) { - this.request = new java.util.ArrayList(); + this.request = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.request.add(item); } return (A) this; } public A removeFromRequest(java.lang.Byte... items) { - for (java.lang.Byte item : items) { + for (Byte item : items) { if (this.request != null) { this.request.remove(item); } @@ -318,8 +315,8 @@ public A removeFromRequest(java.lang.Byte... items) { return (A) this; } - public A removeAllFromRequest(java.util.Collection items) { - for (java.lang.Byte item : items) { + public A removeAllFromRequest(Collection items) { + for (Byte item : items) { if (this.request != null) { this.request.remove(item); } @@ -327,47 +324,47 @@ public A removeAllFromRequest(java.util.Collection items) { return (A) this; } - public java.lang.Boolean hasRequest() { + public Boolean hasRequest() { return request != null && !request.isEmpty(); } - public java.lang.String getSignerName() { + public String getSignerName() { return this.signerName; } - public A withSignerName(java.lang.String signerName) { + public A withSignerName(String signerName) { this.signerName = signerName; return (A) this; } - public java.lang.Boolean hasSignerName() { + public Boolean hasSignerName() { return this.signerName != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } - public A addToUsages(java.lang.Integer index, java.lang.String item) { + public A addToUsages(Integer index, String item) { if (this.usages == null) { - this.usages = new java.util.ArrayList(); + this.usages = new ArrayList(); } this.usages.add(index, item); return (A) this; } - public A setToUsages(java.lang.Integer index, java.lang.String item) { + public A setToUsages(Integer index, String item) { if (this.usages == null) { - this.usages = new java.util.ArrayList(); + this.usages = new ArrayList(); } this.usages.set(index, item); return (A) this; @@ -375,26 +372,26 @@ public A setToUsages(java.lang.Integer index, java.lang.String item) { public A addToUsages(java.lang.String... items) { if (this.usages == null) { - this.usages = new java.util.ArrayList(); + this.usages = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.usages.add(item); } return (A) this; } - public A addAllToUsages(java.util.Collection items) { + public A addAllToUsages(Collection items) { if (this.usages == null) { - this.usages = new java.util.ArrayList(); + this.usages = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.usages.add(item); } return (A) this; } public A removeFromUsages(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.usages != null) { this.usages.remove(item); } @@ -402,8 +399,8 @@ public A removeFromUsages(java.lang.String... items) { return (A) this; } - public A removeAllFromUsages(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromUsages(Collection items) { + for (String item : items) { if (this.usages != null) { this.usages.remove(item); } @@ -411,25 +408,24 @@ public A removeAllFromUsages(java.util.Collection items) { return (A) this; } - public java.util.List getUsages() { + public List getUsages() { return this.usages; } - public java.lang.String getUsage(java.lang.Integer index) { + public String getUsage(Integer index) { return this.usages.get(index); } - public java.lang.String getFirstUsage() { + public String getFirstUsage() { return this.usages.get(0); } - public java.lang.String getLastUsage() { + public String getLastUsage() { return this.usages.get(usages.size() - 1); } - public java.lang.String getMatchingUsage( - java.util.function.Predicate predicate) { - for (java.lang.String item : usages) { + public String getMatchingUsage(Predicate predicate) { + for (String item : usages) { if (predicate.test(item)) { return item; } @@ -437,9 +433,8 @@ public java.lang.String getMatchingUsage( return null; } - public java.lang.Boolean hasMatchingUsage( - java.util.function.Predicate predicate) { - for (java.lang.String item : usages) { + public Boolean hasMatchingUsage(Predicate predicate) { + for (String item : usages) { if (predicate.test(item)) { return true; } @@ -447,10 +442,10 @@ public java.lang.Boolean hasMatchingUsage( return false; } - public A withUsages(java.util.List usages) { + public A withUsages(List usages) { if (usages != null) { - this.usages = new java.util.ArrayList(); - for (java.lang.String item : usages) { + this.usages = new ArrayList(); + for (String item : usages) { this.addToUsages(item); } } else { @@ -464,27 +459,27 @@ public A withUsages(java.lang.String... usages) { this.usages.clear(); } if (usages != null) { - for (java.lang.String item : usages) { + for (String item : usages) { this.addToUsages(item); } } return (A) this; } - public java.lang.Boolean hasUsages() { + public Boolean hasUsages() { return usages != null && !usages.isEmpty(); } - public java.lang.String getUsername() { + public String getUsername() { return this.username; } - public A withUsername(java.lang.String username) { + public A withUsername(String username) { this.username = username; return (A) this; } - public java.lang.Boolean hasUsername() { + public Boolean hasUsername() { return this.username != null; } @@ -519,7 +514,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (expirationSeconds != null) { 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 3ee186a48d..82e91e8790 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 @@ -17,8 +17,7 @@ public class V1CertificateSigningRequestStatusBuilder extends V1CertificateSigningRequestStatusFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusBuilder> { + V1CertificateSigningRequestStatus, V1CertificateSigningRequestStatusBuilder> { public V1CertificateSigningRequestStatusBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1CertificateSigningRequestStatusBuilder( } public V1CertificateSigningRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1CertificateSigningRequestStatus(), validationEnabled); } public V1CertificateSigningRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus instance) { + V1CertificateSigningRequestStatusFluent fluent, + V1CertificateSigningRequestStatus instance) { this(fluent, instance, false); } public V1CertificateSigningRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent fluent, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestStatusFluent fluent, + V1CertificateSigningRequestStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCertificate(instance.getCertificate()); @@ -56,14 +54,12 @@ public V1CertificateSigningRequestStatusBuilder( this.validationEnabled = validationEnabled; } - public V1CertificateSigningRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus instance) { + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatus instance) { this(instance, false); } public V1CertificateSigningRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus instance, - java.lang.Boolean validationEnabled) { + V1CertificateSigningRequestStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCertificate(instance.getCertificate()); @@ -72,10 +68,10 @@ public V1CertificateSigningRequestStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1CertificateSigningRequestStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus build() { + public V1CertificateSigningRequestStatus build() { V1CertificateSigningRequestStatus buildable = new V1CertificateSigningRequestStatus(); buildable.setCertificate(fluent.getCertificate()); buildable.setConditions(fluent.getConditions()); 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 feebc9002f..a63b7b4c06 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 @@ -28,37 +28,31 @@ public interface V1CertificateSigningRequestStatusFluent< public A addToCertificate(Integer index, Byte item); - public A setToCertificate(java.lang.Integer index, java.lang.Byte item); + public A setToCertificate(Integer index, Byte item); public A addToCertificate(java.lang.Byte... items); - public A addAllToCertificate(Collection items); + public A addAllToCertificate(Collection items); public A removeFromCertificate(java.lang.Byte... items); - public A removeAllFromCertificate(java.util.Collection items); + public A removeAllFromCertificate(Collection items); public Boolean hasCertificate(); - public A addToConditions(java.lang.Integer index, V1CertificateSigningRequestCondition item); + public A addToConditions(Integer index, V1CertificateSigningRequestCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item); + public A setToConditions(Integer index, V1CertificateSigningRequestCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items); - public A addAllToConditions( - java.util.Collection - items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items); - public A removeAllFromConditions( - java.util.Collection - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -69,78 +63,45 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition buildCondition( - java.lang.Integer index); + public V1CertificateSigningRequestCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition - buildFirstCondition(); + public V1CertificateSigningRequestCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition - buildLastCondition(); + public V1CertificateSigningRequestCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> - predicate); + public V1CertificateSigningRequestCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> - predicate); + public Boolean hasMatchingCondition( + Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item); - - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item); - - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> - predicate); + public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditionLike( + V1CertificateSigningRequestCondition item); + + public V1CertificateSigningRequestStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1CertificateSigningRequestCondition item); + + public V1CertificateSigningRequestStatusFluent.ConditionsNested editCondition(Integer index); + + public V1CertificateSigningRequestStatusFluent.ConditionsNested editFirstCondition(); + + public V1CertificateSigningRequestStatusFluent.ConditionsNested editLastCondition(); + + public V1CertificateSigningRequestStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java index f0f193cc46..9a65a22823 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluentImpl.java @@ -27,8 +27,7 @@ public class V1CertificateSigningRequestStatusFluentImpl< extends BaseFluent implements V1CertificateSigningRequestStatusFluent { public V1CertificateSigningRequestStatusFluentImpl() {} - public V1CertificateSigningRequestStatusFluentImpl( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus instance) { + public V1CertificateSigningRequestStatusFluentImpl(V1CertificateSigningRequestStatus instance) { this.withCertificate(instance.getCertificate()); this.withConditions(instance.getConditions()); @@ -63,17 +62,17 @@ public byte[] getCertificate() { return result; } - public A addToCertificate(Integer index, java.lang.Byte item) { + public A addToCertificate(Integer index, Byte item) { if (this.certificate == null) { - this.certificate = new java.util.ArrayList(); + this.certificate = new ArrayList(); } this.certificate.add(index, item); return (A) this; } - public A setToCertificate(java.lang.Integer index, java.lang.Byte item) { + public A setToCertificate(Integer index, Byte item) { if (this.certificate == null) { - this.certificate = new java.util.ArrayList(); + this.certificate = new ArrayList(); } this.certificate.set(index, item); return (A) this; @@ -81,26 +80,26 @@ public A setToCertificate(java.lang.Integer index, java.lang.Byte item) { public A addToCertificate(java.lang.Byte... items) { if (this.certificate == null) { - this.certificate = new java.util.ArrayList(); + this.certificate = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.certificate.add(item); } return (A) this; } - public A addAllToCertificate(Collection items) { + public A addAllToCertificate(Collection items) { if (this.certificate == null) { - this.certificate = new java.util.ArrayList(); + this.certificate = new ArrayList(); } - for (java.lang.Byte item : items) { + for (Byte item : items) { this.certificate.add(item); } return (A) this; } public A removeFromCertificate(java.lang.Byte... items) { - for (java.lang.Byte item : items) { + for (Byte item : items) { if (this.certificate != null) { this.certificate.remove(item); } @@ -108,8 +107,8 @@ public A removeFromCertificate(java.lang.Byte... items) { return (A) this; } - public A removeAllFromCertificate(java.util.Collection items) { - for (java.lang.Byte item : items) { + public A removeAllFromCertificate(Collection items) { + for (Byte item : items) { if (this.certificate != null) { this.certificate.remove(item); } @@ -121,14 +120,12 @@ public Boolean hasCertificate() { return certificate != null && !certificate.isEmpty(); } - public A addToConditions(java.lang.Integer index, V1CertificateSigningRequestCondition item) { + public A addToConditions(Integer index, V1CertificateSigningRequestCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(item); + V1CertificateSigningRequestConditionBuilder builder = + new V1CertificateSigningRequestConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -136,16 +133,12 @@ public A addToConditions(java.lang.Integer index, V1CertificateSigningRequestCon return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item) { + public A setToConditions(Integer index, V1CertificateSigningRequestCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(item); + V1CertificateSigningRequestConditionBuilder builder = + new V1CertificateSigningRequestConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -162,30 +155,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(item); + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = + new V1CertificateSigningRequestConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - java.util.Collection - items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(item); + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = + new V1CertificateSigningRequestConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -194,9 +181,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(item); + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = + new V1CertificateSigningRequestConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -205,12 +192,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item : items) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = + new V1CertificateSigningRequestConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -220,15 +205,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder = - each.next(); + V1CertificateSigningRequestConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -243,38 +225,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public java.util.List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition buildCondition( - java.lang.Integer index) { + public V1CertificateSigningRequestCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition - buildFirstCondition() { + public V1CertificateSigningRequestCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition - buildLastCondition() { + public V1CertificateSigningRequestCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder item : - conditions) { + public V1CertificateSigningRequestCondition buildMatchingCondition( + Predicate predicate) { + for (V1CertificateSigningRequestConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -282,12 +255,9 @@ public io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder item : - conditions) { + public Boolean hasMatchingCondition( + Predicate predicate) { + for (V1CertificateSigningRequestConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -295,16 +265,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item : - conditions) { + this.conditions = new ArrayList(); + for (V1CertificateSigningRequestCondition item : conditions) { this.addToConditions(item); } } else { @@ -319,15 +286,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item : - conditions) { + for (V1CertificateSigningRequestCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -335,58 +301,36 @@ public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditi return new V1CertificateSigningRequestStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item) { + public V1CertificateSigningRequestStatusFluent.ConditionsNested addNewConditionLike( + V1CertificateSigningRequestCondition item) { return new V1CertificateSigningRequestStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item) { - return new io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1CertificateSigningRequestStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1CertificateSigningRequestCondition item) { + return new V1CertificateSigningRequestStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { + public V1CertificateSigningRequestStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editFirstCondition() { + public V1CertificateSigningRequestStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editLastCondition() { + public V1CertificateSigningRequestStatusFluent.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 io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder> - predicate) { + public V1CertificateSigningRequestStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -432,25 +376,19 @@ public String toString() { class ConditionsNestedImpl extends V1CertificateSigningRequestConditionFluentImpl< V1CertificateSigningRequestStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition item) { + implements V1CertificateSigningRequestStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1CertificateSigningRequestCondition item) { this.index = index; this.builder = new V1CertificateSigningRequestConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder(this); + this.builder = new V1CertificateSigningRequestConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1CertificateSigningRequestConditionBuilder builder; - java.lang.Integer index; + V1CertificateSigningRequestConditionBuilder builder; + Integer index; public N and() { return (N) 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 da1fefa038..9859ac737a 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 @@ -17,8 +17,7 @@ public class V1CinderPersistentVolumeSourceBuilder extends V1CinderPersistentVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceBuilder> { + V1CinderPersistentVolumeSource, V1CinderPersistentVolumeSourceBuilder> { public V1CinderPersistentVolumeSourceBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluen } public V1CinderPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1CinderPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CinderPersistentVolumeSource(), validationEnabled); } public V1CinderPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource instance) { + V1CinderPersistentVolumeSourceFluent fluent, V1CinderPersistentVolumeSource instance) { this(fluent, instance, false); } public V1CinderPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CinderPersistentVolumeSourceFluent fluent, + V1CinderPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -59,14 +56,12 @@ public V1CinderPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1CinderPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource instance) { + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSource instance) { this(instance, false); } public V1CinderPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CinderPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -79,10 +74,10 @@ public V1CinderPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1CinderPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource build() { + public V1CinderPersistentVolumeSource build() { V1CinderPersistentVolumeSource buildable = new V1CinderPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setReadOnly(fluent.getReadOnly()); 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 1b2d3a7168..9783c5aba6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java @@ -21,15 +21,15 @@ public interface V1CinderPersistentVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -39,31 +39,29 @@ public interface V1CinderPersistentVolumeSourceFluent< @Deprecated public V1SecretReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef(); + public V1SecretReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef); + public A withSecretRef(V1SecretReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item); - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item); - public java.lang.String getVolumeID(); + public String getVolumeID(); - public A withVolumeID(java.lang.String volumeID); + public A withVolumeID(String volumeID); - public java.lang.Boolean hasVolumeID(); + public Boolean hasVolumeID(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java index cc59223cc1..8bcecefc6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluentImpl.java @@ -22,8 +22,7 @@ public class V1CinderPersistentVolumeSourceFluentImpl< extends BaseFluent implements V1CinderPersistentVolumeSourceFluent { public V1CinderPersistentVolumeSourceFluentImpl() {} - public V1CinderPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource instance) { + public V1CinderPersistentVolumeSourceFluentImpl(V1CinderPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -36,31 +35,31 @@ public V1CinderPersistentVolumeSourceFluentImpl( private String fsType; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - private java.lang.String volumeID; + private String volumeID; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -74,20 +73,23 @@ public V1SecretReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef() { + public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef) { + public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(secretRef); + this.secretRef = new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -95,39 +97,35 @@ public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef( return new V1CinderPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CinderPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item) { return new V1CinderPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1CinderPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getVolumeID() { + public String getVolumeID() { return this.volumeID; } - public A withVolumeID(java.lang.String volumeID) { + public A withVolumeID(String volumeID) { this.volumeID = volumeID; return (A) this; } - public java.lang.Boolean hasVolumeID() { + public Boolean hasVolumeID() { return this.volumeID != null; } @@ -147,7 +145,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -176,19 +174,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { + implements V1CinderPersistentVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1CinderPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 b3649bcdff..0fedd2d5aa 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 @@ -16,8 +16,7 @@ public class V1CinderVolumeSourceBuilder extends V1CinderVolumeSourceFluentImpl - implements VisitableBuilder< - V1CinderVolumeSource, io.kubernetes.client.openapi.models.V1CinderVolumeSourceBuilder> { + implements VisitableBuilder { public V1CinderVolumeSourceBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1CinderVolumeSourceBuilder(Boolean validationEnabled) { this(new V1CinderVolumeSource(), validationEnabled); } - public V1CinderVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent fluent) { + public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent) { this(fluent, false); } public V1CinderVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1CinderVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CinderVolumeSource(), validationEnabled); } public V1CinderVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CinderVolumeSource instance) { + V1CinderVolumeSourceFluent fluent, V1CinderVolumeSource instance) { this(fluent, instance, false); } public V1CinderVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1CinderVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1CinderVolumeSourceFluent fluent, + V1CinderVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -59,14 +55,11 @@ public V1CinderVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1CinderVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderVolumeSource instance) { + public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance) { this(instance, false); } - public V1CinderVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1CinderVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -79,10 +72,10 @@ public V1CinderVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1CinderVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CinderVolumeSource build() { + public V1CinderVolumeSource build() { V1CinderVolumeSource buildable = new V1CinderVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setReadOnly(fluent.getReadOnly()); 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 1bef67694e..e4598aa254 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 @@ -20,15 +20,15 @@ public interface V1CinderVolumeSourceFluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -38,31 +38,29 @@ public interface V1CinderVolumeSourceFluent withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1CinderVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); - public java.lang.String getVolumeID(); + public String getVolumeID(); - public A withVolumeID(java.lang.String volumeID); + public A withVolumeID(String volumeID); - public java.lang.Boolean hasVolumeID(); + public Boolean hasVolumeID(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java index 918bf5c8e9..5ac0505180 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1CinderVolumeSourceFluentImpl implements V1CinderVolumeSourceFluent { public V1CinderVolumeSourceFluentImpl() {} - public V1CinderVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1CinderVolumeSource instance) { + public V1CinderVolumeSourceFluentImpl(V1CinderVolumeSource instance) { this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -35,31 +34,31 @@ public V1CinderVolumeSourceFluentImpl( private String fsType; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - private java.lang.String volumeID; + private String volumeID; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -73,21 +72,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -95,39 +96,35 @@ public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1CinderVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1CinderVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1CinderVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1CinderVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1CinderVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getVolumeID() { + public String getVolumeID() { return this.volumeID; } - public A withVolumeID(java.lang.String volumeID) { + public A withVolumeID(String volumeID) { this.volumeID = volumeID; return (A) this; } - public java.lang.Boolean hasVolumeID() { + public Boolean hasVolumeID() { return this.volumeID != null; } @@ -147,7 +144,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -176,17 +173,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1CinderVolumeSourceFluent.SecretRefNested, - Nested { + implements V1CinderVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1CinderVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 9ec67c490b..7f6caa9e78 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ClientIPConfig, V1ClientIPConfigBuilder> { + implements VisitableBuilder { public V1ClientIPConfigBuilder() { this(false); } @@ -25,50 +24,41 @@ public V1ClientIPConfigBuilder(Boolean validationEnabled) { this(new V1ClientIPConfig(), validationEnabled); } - public V1ClientIPConfigBuilder( - io.kubernetes.client.openapi.models.V1ClientIPConfigFluent fluent) { + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent) { this(fluent, false); } - public V1ClientIPConfigBuilder( - io.kubernetes.client.openapi.models.V1ClientIPConfigFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent, Boolean validationEnabled) { this(fluent, new V1ClientIPConfig(), validationEnabled); } - public V1ClientIPConfigBuilder( - io.kubernetes.client.openapi.models.V1ClientIPConfigFluent fluent, - io.kubernetes.client.openapi.models.V1ClientIPConfig instance) { + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent, V1ClientIPConfig instance) { this(fluent, instance, false); } public V1ClientIPConfigBuilder( - io.kubernetes.client.openapi.models.V1ClientIPConfigFluent fluent, - io.kubernetes.client.openapi.models.V1ClientIPConfig instance, - java.lang.Boolean validationEnabled) { + V1ClientIPConfigFluent fluent, V1ClientIPConfig instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withTimeoutSeconds(instance.getTimeoutSeconds()); this.validationEnabled = validationEnabled; } - public V1ClientIPConfigBuilder(io.kubernetes.client.openapi.models.V1ClientIPConfig instance) { + public V1ClientIPConfigBuilder(V1ClientIPConfig instance) { this(instance, false); } - public V1ClientIPConfigBuilder( - io.kubernetes.client.openapi.models.V1ClientIPConfig instance, - java.lang.Boolean validationEnabled) { + public V1ClientIPConfigBuilder(V1ClientIPConfig instance, Boolean validationEnabled) { this.fluent = this; this.withTimeoutSeconds(instance.getTimeoutSeconds()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ClientIPConfigFluent fluent; - java.lang.Boolean validationEnabled; + V1ClientIPConfigFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ClientIPConfig build() { + public V1ClientIPConfig build() { V1ClientIPConfig buildable = new V1ClientIPConfig(); buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; 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 7e071775b1..76fc2c45ad 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 @@ -18,7 +18,7 @@ public interface V1ClientIPConfigFluent> extends Fluent { public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds); + public A withTimeoutSeconds(Integer timeoutSeconds); public Boolean hasTimeoutSeconds(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java index 1956691d96..5ff5c899e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluentImpl.java @@ -20,17 +20,17 @@ public class V1ClientIPConfigFluentImpl> ext implements V1ClientIPConfigFluent { public V1ClientIPConfigFluentImpl() {} - public V1ClientIPConfigFluentImpl(io.kubernetes.client.openapi.models.V1ClientIPConfig instance) { + public V1ClientIPConfigFluentImpl(V1ClientIPConfig instance) { this.withTimeoutSeconds(instance.getTimeoutSeconds()); } private Integer timeoutSeconds; - public java.lang.Integer getTimeoutSeconds() { + public Integer getTimeoutSeconds() { return this.timeoutSeconds; } - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds) { + public A withTimeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return (A) this; } 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 f384f567c1..b4e74c52d3 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 @@ -16,8 +16,7 @@ public class V1ClusterRoleBindingBuilder extends V1ClusterRoleBindingFluentImpl - implements VisitableBuilder< - V1ClusterRoleBinding, io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder> { + implements VisitableBuilder { public V1ClusterRoleBindingBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent) { } public V1ClusterRoleBindingBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent fluent, - java.lang.Boolean validationEnabled) { + V1ClusterRoleBindingFluent fluent, Boolean validationEnabled) { this(fluent, new V1ClusterRoleBinding(), validationEnabled); } public V1ClusterRoleBindingBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRoleBinding instance) { + V1ClusterRoleBindingFluent fluent, V1ClusterRoleBinding instance) { this(fluent, instance, false); } public V1ClusterRoleBindingBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRoleBinding instance, - java.lang.Boolean validationEnabled) { + V1ClusterRoleBindingFluent fluent, + V1ClusterRoleBinding instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,14 +57,11 @@ public V1ClusterRoleBindingBuilder( this.validationEnabled = validationEnabled; } - public V1ClusterRoleBindingBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBinding instance) { + public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance) { this(instance, false); } - public V1ClusterRoleBindingBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBinding instance, - java.lang.Boolean validationEnabled) { + public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -82,10 +76,10 @@ public V1ClusterRoleBindingBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent fluent; - java.lang.Boolean validationEnabled; + V1ClusterRoleBindingFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding build() { + public V1ClusterRoleBinding build() { V1ClusterRoleBinding buildable = new V1ClusterRoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 2ad8039132..c633e8bfdf 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 @@ -23,15 +23,15 @@ public interface V1ClusterRoleBindingFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -41,67 +41,57 @@ public interface V1ClusterRoleBindingFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ClusterRoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - editMetadata(); + public V1ClusterRoleBindingFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - editOrNewMetadata(); + public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildRoleRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1RoleRef getRoleRef(); - public io.kubernetes.client.openapi.models.V1RoleRef buildRoleRef(); + public V1RoleRef buildRoleRef(); - public A withRoleRef(io.kubernetes.client.openapi.models.V1RoleRef roleRef); + public A withRoleRef(V1RoleRef roleRef); - public java.lang.Boolean hasRoleRef(); + public Boolean hasRoleRef(); public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRef(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - withNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item); + public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - editRoleRef(); + public V1ClusterRoleBindingFluent.RoleRefNested editRoleRef(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - editOrNewRoleRef(); + public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRef(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - editOrNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item); + public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item); public A addToSubjects(Integer index, V1Subject item); - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item); + public A setToSubjects(Integer index, V1Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A addAllToSubjects(Collection items); + public A addAllToSubjects(Collection items); public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A removeAllFromSubjects( - java.util.Collection items); + public A removeAllFromSubjects(Collection items); public A removeMatchingFromSubjects(Predicate predicate); @@ -110,51 +100,42 @@ public A removeAllFromSubjects( * * @return The buildable object. */ - @java.lang.Deprecated - public List getSubjects(); + @Deprecated + public List getSubjects(); - public java.util.List buildSubjects(); + public List buildSubjects(); - public io.kubernetes.client.openapi.models.V1Subject buildSubject(java.lang.Integer index); + public V1Subject buildSubject(Integer index); - public io.kubernetes.client.openapi.models.V1Subject buildFirstSubject(); + public V1Subject buildFirstSubject(); - public io.kubernetes.client.openapi.models.V1Subject buildLastSubject(); + public V1Subject buildLastSubject(); - public io.kubernetes.client.openapi.models.V1Subject buildMatchingSubject( - java.util.function.Predicate predicate); + public V1Subject buildMatchingSubject(Predicate predicate); - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate predicate); + public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects(java.util.List subjects); + public A withSubjects(List subjects); public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects); - public java.lang.Boolean hasSubjects(); + public Boolean hasSubjects(); public V1ClusterRoleBindingFluent.SubjectsNested addNewSubject(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1Subject item); + public V1ClusterRoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item); + public V1ClusterRoleBindingFluent.SubjectsNested setNewSubjectLike( + Integer index, V1Subject item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editSubject(java.lang.Integer index); + public V1ClusterRoleBindingFluent.SubjectsNested editSubject(Integer index); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editFirstSubject(); + public V1ClusterRoleBindingFluent.SubjectsNested editFirstSubject(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editLastSubject(); + public V1ClusterRoleBindingFluent.SubjectsNested editLastSubject(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate); + public V1ClusterRoleBindingFluent.SubjectsNested editMatchingSubject( + Predicate predicate); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -164,16 +145,14 @@ public interface MetadataNested } public interface RoleRefNested - extends io.kubernetes.client.fluent.Nested, - V1RoleRefFluent> { + extends Nested, V1RoleRefFluent> { public N and(); public N endRoleRef(); } public interface SubjectsNested - extends io.kubernetes.client.fluent.Nested, - V1SubjectFluent> { + extends Nested, V1SubjectFluent> { public N and(); public N endSubject(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java index 325dcb3238..26ec031df2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluentImpl.java @@ -26,8 +26,7 @@ public class V1ClusterRoleBindingFluentImpl implements V1ClusterRoleBindingFluent { public V1ClusterRoleBindingFluentImpl() {} - public V1ClusterRoleBindingFluentImpl( - io.kubernetes.client.openapi.models.V1ClusterRoleBinding instance) { + public V1ClusterRoleBindingFluentImpl(V1ClusterRoleBinding instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -40,16 +39,16 @@ public V1ClusterRoleBindingFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; private ArrayList subjects; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -58,16 +57,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -77,24 +76,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -102,26 +104,20 @@ public V1ClusterRoleBindingFluent.MetadataNested withNewMetadata() { return new V1ClusterRoleBindingFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ClusterRoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ClusterRoleBindingFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - editMetadata() { + public V1ClusterRoleBindingFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - editOrNewMetadata() { + public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ClusterRoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -130,25 +126,28 @@ public V1ClusterRoleBindingFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1RoleRef getRoleRef() { + @Deprecated + public V1RoleRef getRoleRef() { return this.roleRef != null ? this.roleRef.build() : null; } - public io.kubernetes.client.openapi.models.V1RoleRef buildRoleRef() { + public V1RoleRef buildRoleRef() { return this.roleRef != null ? this.roleRef.build() : null; } - public A withRoleRef(io.kubernetes.client.openapi.models.V1RoleRef roleRef) { + public A withRoleRef(V1RoleRef roleRef) { _visitables.get("roleRef").remove(this.roleRef); if (roleRef != null) { this.roleRef = new V1RoleRefBuilder(roleRef); _visitables.get("roleRef").add(this.roleRef); + } else { + this.roleRef = null; + _visitables.get("roleRef").remove(this.roleRef); } return (A) this; } - public java.lang.Boolean hasRoleRef() { + public Boolean hasRoleRef() { return this.roleRef != null; } @@ -156,36 +155,27 @@ public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRef() { return new V1ClusterRoleBindingFluentImpl.RoleRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - withNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluentImpl.RoleRefNestedImpl( - item); + public V1ClusterRoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item) { + return new V1ClusterRoleBindingFluentImpl.RoleRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - editRoleRef() { + public V1ClusterRoleBindingFluent.RoleRefNested editRoleRef() { return withNewRoleRefLike(getRoleRef()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - editOrNewRoleRef() { - return withNewRoleRefLike( - getRoleRef() != null - ? getRoleRef() - : new io.kubernetes.client.openapi.models.V1RoleRefBuilder().build()); + public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRef() { + return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : new V1RoleRefBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested - editOrNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item) { + public V1ClusterRoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : item); } - public A addToSubjects(Integer index, io.kubernetes.client.openapi.models.V1Subject item) { + public A addToSubjects(Integer index, V1Subject item) { if (this.subjects == null) { - this.subjects = new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables .get("subjects") .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); @@ -193,14 +183,11 @@ public A addToSubjects(Integer index, io.kubernetes.client.openapi.models.V1Subj return (A) this; } - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item) { + public A setToSubjects(Integer index, V1Subject item) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + V1SubjectBuilder builder = new V1SubjectBuilder(item); if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { @@ -216,26 +203,22 @@ public A setToSubjects( public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Subject item : items) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + for (V1Subject item : items) { + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; } - public A addAllToSubjects(Collection items) { + public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Subject item : items) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + for (V1Subject item : items) { + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } @@ -243,9 +226,8 @@ public A addAllToSubjects(Collection items) { - for (io.kubernetes.client.openapi.models.V1Subject item : items) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + public A removeAllFromSubjects(Collection items) { + for (V1Subject item : items) { + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables.get("subjects").remove(builder); if (this.subjects != null) { this.subjects.remove(builder); @@ -267,13 +247,12 @@ public A removeAllFromSubjects( return (A) this; } - public A removeMatchingFromSubjects( - Predicate predicate) { + public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); + final Iterator each = subjects.iterator(); final List visitables = _visitables.get("subjects"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = each.next(); + V1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -287,31 +266,29 @@ public A removeMatchingFromSubjects( * * @return The buildable object. */ - @java.lang.Deprecated - public List getSubjects() { + @Deprecated + public List getSubjects() { return subjects != null ? build(subjects) : null; } - public java.util.List buildSubjects() { + public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public io.kubernetes.client.openapi.models.V1Subject buildSubject(java.lang.Integer index) { + public V1Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Subject buildFirstSubject() { + public V1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Subject buildLastSubject() { + public V1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Subject buildMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1SubjectBuilder item : subjects) { + public V1Subject buildMatchingSubject(Predicate predicate) { + for (V1SubjectBuilder item : subjects) { if (predicate.test(item)) { return item.build(); } @@ -319,10 +296,8 @@ public io.kubernetes.client.openapi.models.V1Subject buildMatchingSubject( return null; } - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1SubjectBuilder item : subjects) { + public Boolean hasMatchingSubject(Predicate predicate) { + for (V1SubjectBuilder item : subjects) { if (predicate.test(item)) { return true; } @@ -330,13 +305,13 @@ public java.lang.Boolean hasMatchingSubject( return false; } - public A withSubjects(java.util.List subjects) { + public A withSubjects(List subjects) { if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects); } if (subjects != null) { - this.subjects = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Subject item : subjects) { + this.subjects = new ArrayList(); + for (V1Subject item : subjects) { this.addToSubjects(item); } } else { @@ -350,14 +325,14 @@ public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects) this.subjects.clear(); } if (subjects != null) { - for (io.kubernetes.client.openapi.models.V1Subject item : subjects) { + for (V1Subject item : subjects) { this.addToSubjects(item); } } return (A) this; } - public java.lang.Boolean hasSubjects() { + public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } @@ -365,44 +340,35 @@ public V1ClusterRoleBindingFluent.SubjectsNested addNewSubject() { return new V1ClusterRoleBindingFluentImpl.SubjectsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1Subject item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluentImpl - .SubjectsNestedImpl(-1, item); + public V1ClusterRoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item) { + return new V1ClusterRoleBindingFluentImpl.SubjectsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluentImpl - .SubjectsNestedImpl(index, item); + public V1ClusterRoleBindingFluent.SubjectsNested setNewSubjectLike( + Integer index, V1Subject item) { + return new V1ClusterRoleBindingFluentImpl.SubjectsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editSubject(java.lang.Integer index) { + public V1ClusterRoleBindingFluent.SubjectsNested editSubject(Integer index) { if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editFirstSubject() { + public V1ClusterRoleBindingFluent.SubjectsNested editFirstSubject() { if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editLastSubject() { + public V1ClusterRoleBindingFluent.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)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate) { + public V1ClusterRoleBindingFluent.SubjectsNested editMatchingSubject( + Predicate predicate) { int index = -1; for (int i = 0; i < subjects.size(); i++) { if (predicate.test(subjects.get(i))) { @@ -431,7 +397,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, roleRef, subjects, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -460,17 +426,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.MetadataNested, - Nested { + implements V1ClusterRoleBindingFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ClusterRoleBindingFluentImpl.this.withMetadata(builder.build()); @@ -483,17 +448,16 @@ public N endMetadata() { class RoleRefNestedImpl extends V1RoleRefFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.RoleRefNested, - io.kubernetes.client.fluent.Nested { - RoleRefNestedImpl(io.kubernetes.client.openapi.models.V1RoleRef item) { + implements V1ClusterRoleBindingFluent.RoleRefNested, Nested { + RoleRefNestedImpl(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } RoleRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1RoleRefBuilder(this); + this.builder = new V1RoleRefBuilder(this); } - io.kubernetes.client.openapi.models.V1RoleRefBuilder builder; + V1RoleRefBuilder builder; public N and() { return (N) V1ClusterRoleBindingFluentImpl.this.withRoleRef(builder.build()); @@ -506,20 +470,19 @@ public N endRoleRef() { class SubjectsNestedImpl extends V1SubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleBindingFluent.SubjectsNested, - io.kubernetes.client.fluent.Nested { - SubjectsNestedImpl(java.lang.Integer index, V1Subject item) { + implements V1ClusterRoleBindingFluent.SubjectsNested, Nested { + SubjectsNestedImpl(Integer index, V1Subject item) { this.index = index; this.builder = new V1SubjectBuilder(this, item); } SubjectsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1SubjectBuilder(this); + this.builder = new V1SubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectBuilder builder; - java.lang.Integer index; + V1SubjectBuilder builder; + Integer index; public N and() { return (N) V1ClusterRoleBindingFluentImpl.this.setToSubjects(index, builder.build()); 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 add8f79d89..88cd697939 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 @@ -16,9 +16,7 @@ public class V1ClusterRoleBindingListBuilder extends V1ClusterRoleBindingListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingList, - V1ClusterRoleBindingListBuilder> { + implements VisitableBuilder { public V1ClusterRoleBindingListBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1ClusterRoleBindingListBuilder(Boolean validationEnabled) { this(new V1ClusterRoleBindingList(), validationEnabled); } - public V1ClusterRoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent fluent) { + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent) { this(fluent, false); } public V1ClusterRoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ClusterRoleBindingListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ClusterRoleBindingList(), validationEnabled); } public V1ClusterRoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRoleBindingList instance) { + V1ClusterRoleBindingListFluent fluent, V1ClusterRoleBindingList instance) { this(fluent, instance, false); } public V1ClusterRoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRoleBindingList instance, - java.lang.Boolean validationEnabled) { + V1ClusterRoleBindingListFluent fluent, + V1ClusterRoleBindingList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,14 +55,12 @@ public V1ClusterRoleBindingListBuilder( this.validationEnabled = validationEnabled; } - public V1ClusterRoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingList instance) { + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingList instance) { this(instance, false); } public V1ClusterRoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleBindingList instance, - java.lang.Boolean validationEnabled) { + V1ClusterRoleBindingList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +73,10 @@ public V1ClusterRoleBindingListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent fluent; - java.lang.Boolean validationEnabled; + V1ClusterRoleBindingListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingList build() { + public V1ClusterRoleBindingList build() { V1ClusterRoleBindingList buildable = new V1ClusterRoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 951c3caeaf..d340a78139 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 @@ -23,24 +23,21 @@ public interface V1ClusterRoleBindingListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1ClusterRoleBinding item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRoleBinding item); + public A setToItems(Integer index, V1ClusterRoleBinding item); public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -50,89 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildItem( - java.lang.Integer index); + public V1ClusterRoleBinding buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildFirstItem(); + public V1ClusterRoleBinding buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildLastItem(); + public V1ClusterRoleBinding buildLastItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ClusterRoleBinding buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ClusterRoleBindingListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1ClusterRoleBinding item); + public V1ClusterRoleBindingListFluent.ItemsNested addNewItemLike(V1ClusterRoleBinding item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRoleBinding item); + public V1ClusterRoleBindingListFluent.ItemsNested setNewItemLike( + Integer index, V1ClusterRoleBinding item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ClusterRoleBindingListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - editFirstItem(); + public V1ClusterRoleBindingListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - editLastItem(); + public V1ClusterRoleBindingListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder> - predicate); + public V1ClusterRoleBindingListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - editMetadata(); + public V1ClusterRoleBindingListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - editOrNewMetadata(); + public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ClusterRoleBindingFluent> { @@ -142,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java index 02a2f5e073..4d19c06793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluentImpl.java @@ -38,14 +38,14 @@ public V1ClusterRoleBindingListFluentImpl(V1ClusterRoleBindingList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1ClusterRoleBinding item) { + public A addToItems(Integer index, V1ClusterRoleBinding item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(item); + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRoleBinding item) { + public A setToItems(Integer index, V1ClusterRoleBinding item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(item); + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -92,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ClusterRoleBinding item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ClusterRoleBinding item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(item); + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -122,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBinding item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(item); + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -133,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBindin return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBinding item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -146,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder = each.next(); + V1ClusterRoleBindingBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -168,31 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildItem( - java.lang.Integer index) { + public V1ClusterRoleBinding buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildFirstItem() { + public V1ClusterRoleBinding buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildLastItem() { + public V1ClusterRoleBinding buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder item : items) { + public V1ClusterRoleBinding buildMatchingItem(Predicate predicate) { + for (V1ClusterRoleBindingBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -200,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ClusterRoleBinding buildMatchingIte return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ClusterRoleBindingBuilder item : items) { if (predicate.test(item)) { return true; } @@ -211,14 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ClusterRoleBinding item : items) { + this.items = new ArrayList(); + for (V1ClusterRoleBinding item : items) { this.addToItems(item); } } else { @@ -232,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... i this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBinding item : items) { + for (V1ClusterRoleBinding item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -247,42 +221,33 @@ public V1ClusterRoleBindingListFluent.ItemsNested addNewItem() { return new V1ClusterRoleBindingListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1ClusterRoleBinding item) { + public V1ClusterRoleBindingListFluent.ItemsNested addNewItemLike(V1ClusterRoleBinding item) { return new V1ClusterRoleBindingListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRoleBinding item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluentImpl - .ItemsNestedImpl(index, item); + public V1ClusterRoleBindingListFluent.ItemsNested setNewItemLike( + Integer index, V1ClusterRoleBinding item) { + return new V1ClusterRoleBindingListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ClusterRoleBindingListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - editFirstItem() { + public V1ClusterRoleBindingListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - editLastItem() { + public V1ClusterRoleBindingListFluent.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 io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder> - predicate) { + public V1ClusterRoleBindingListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -294,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.ItemsN return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -312,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -338,27 +306,20 @@ public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadata() { return new V1ClusterRoleBindingListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluentImpl - .MetadataNestedImpl(item); + public V1ClusterRoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ClusterRoleBindingListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - editMetadata() { + public V1ClusterRoleBindingListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - editOrNewMetadata() { + public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ClusterRoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -378,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -404,19 +365,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ClusterRoleBindingFluentImpl> implements V1ClusterRoleBindingListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRoleBinding item) { + ItemsNestedImpl(Integer index, V1ClusterRoleBinding item) { this.index = index; this.builder = new V1ClusterRoleBindingBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder(this); + this.builder = new V1ClusterRoleBindingBuilder(this); } - io.kubernetes.client.openapi.models.V1ClusterRoleBindingBuilder builder; - java.lang.Integer index; + V1ClusterRoleBindingBuilder builder; + Integer index; public N and() { return (N) V1ClusterRoleBindingListFluentImpl.this.setToItems(index, builder.build()); @@ -429,18 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleBindingListFluent.MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ClusterRoleBindingListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ClusterRoleBindingListFluentImpl.this.withMetadata(builder.build()); 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 d32fb43efb..361eab0ddb 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ClusterRoleBuilder extends V1ClusterRoleFluentImpl - implements VisitableBuilder< - V1ClusterRole, io.kubernetes.client.openapi.models.V1ClusterRoleBuilder> { + implements VisitableBuilder { public V1ClusterRoleBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1ClusterRoleBuilder(Boolean validationEnabled) { this(new V1ClusterRole(), validationEnabled); } - public V1ClusterRoleBuilder(io.kubernetes.client.openapi.models.V1ClusterRoleFluent fluent) { + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent) { this(fluent, false); } - public V1ClusterRoleBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent, Boolean validationEnabled) { this(fluent, new V1ClusterRole(), validationEnabled); } - public V1ClusterRoleBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRole instance) { + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent, V1ClusterRole instance) { this(fluent, instance, false); } public V1ClusterRoleBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRole instance, - java.lang.Boolean validationEnabled) { + V1ClusterRoleFluent fluent, V1ClusterRole instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAggregationRule(instance.getAggregationRule()); @@ -59,13 +52,11 @@ public V1ClusterRoleBuilder( this.validationEnabled = validationEnabled; } - public V1ClusterRoleBuilder(io.kubernetes.client.openapi.models.V1ClusterRole instance) { + public V1ClusterRoleBuilder(V1ClusterRole instance) { this(instance, false); } - public V1ClusterRoleBuilder( - io.kubernetes.client.openapi.models.V1ClusterRole instance, - java.lang.Boolean validationEnabled) { + public V1ClusterRoleBuilder(V1ClusterRole instance, Boolean validationEnabled) { this.fluent = this; this.withAggregationRule(instance.getAggregationRule()); @@ -80,10 +71,10 @@ public V1ClusterRoleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ClusterRoleFluent fluent; - java.lang.Boolean validationEnabled; + V1ClusterRoleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ClusterRole build() { + public V1ClusterRole build() { V1ClusterRole buildable = new V1ClusterRole(); buildable.setAggregationRule(fluent.getAggregationRule()); buildable.setApiVersion(fluent.getApiVersion()); 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 63eeb59fbf..b6791bf4e7 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 @@ -29,79 +29,71 @@ public interface V1ClusterRoleFluent> extends F @Deprecated public V1AggregationRule getAggregationRule(); - public io.kubernetes.client.openapi.models.V1AggregationRule buildAggregationRule(); + public V1AggregationRule buildAggregationRule(); - public A withAggregationRule( - io.kubernetes.client.openapi.models.V1AggregationRule aggregationRule); + public A withAggregationRule(V1AggregationRule aggregationRule); public Boolean hasAggregationRule(); public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRule(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - withNewAggregationRuleLike(io.kubernetes.client.openapi.models.V1AggregationRule item); + public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRuleLike( + V1AggregationRule item); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - editAggregationRule(); + public V1ClusterRoleFluent.AggregationRuleNested editAggregationRule(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - editOrNewAggregationRule(); + public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRule(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - editOrNewAggregationRuleLike(io.kubernetes.client.openapi.models.V1AggregationRule item); + public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRuleLike( + V1AggregationRule item); public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); - public java.lang.Boolean hasApiVersion(); + public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ClusterRoleFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ClusterRoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested editMetadata(); + public V1ClusterRoleFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested - editOrNewMetadata(); + public V1ClusterRoleFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ClusterRoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public A addToRules(Integer index, V1PolicyRule item); - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item); + public A setToRules(Integer index, V1PolicyRule item); public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A addAllToRules(Collection items); + public A addAllToRules(Collection items); public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A removeAllFromRules( - java.util.Collection items); + public A removeAllFromRules(Collection items); public A removeMatchingFromRules(Predicate predicate); @@ -110,49 +102,41 @@ public A removeAllFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules(); + @Deprecated + public List getRules(); - public java.util.List buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1PolicyRule buildRule(java.lang.Integer index); + public V1PolicyRule buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1PolicyRule buildFirstRule(); + public V1PolicyRule buildFirstRule(); - public io.kubernetes.client.openapi.models.V1PolicyRule buildLastRule(); + public V1PolicyRule buildLastRule(); - public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule( - java.util.function.Predicate - predicate); + public V1PolicyRule buildMatchingRule(Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules(java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1ClusterRoleFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1PolicyRule item); + public V1ClusterRoleFluent.RulesNested addNewRuleLike(V1PolicyRule item); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item); + public V1ClusterRoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editRule( - java.lang.Integer index); + public V1ClusterRoleFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editFirstRule(); + public V1ClusterRoleFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editLastRule(); + public V1ClusterRoleFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editMatchingRule( - java.util.function.Predicate - predicate); + public V1ClusterRoleFluent.RulesNested editMatchingRule( + Predicate predicate); public interface AggregationRuleNested extends Nested, V1AggregationRuleFluent> { @@ -162,16 +146,14 @@ public interface AggregationRuleNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, - V1PolicyRuleFluent> { + extends Nested, V1PolicyRuleFluent> { public N and(); public N endRule(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java index 62e5bda33b..4ca0b95b2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluentImpl.java @@ -26,7 +26,7 @@ public class V1ClusterRoleFluentImpl> extends B implements V1ClusterRoleFluent { public V1ClusterRoleFluentImpl() {} - public V1ClusterRoleFluentImpl(io.kubernetes.client.openapi.models.V1ClusterRole instance) { + public V1ClusterRoleFluentImpl(V1ClusterRole instance) { this.withAggregationRule(instance.getAggregationRule()); this.withApiVersion(instance.getApiVersion()); @@ -40,7 +40,7 @@ public V1ClusterRoleFluentImpl(io.kubernetes.client.openapi.models.V1ClusterRole private V1AggregationRuleBuilder aggregationRule; private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private ArrayList rules; @@ -54,17 +54,18 @@ public V1AggregationRule getAggregationRule() { return this.aggregationRule != null ? this.aggregationRule.build() : null; } - public io.kubernetes.client.openapi.models.V1AggregationRule buildAggregationRule() { + public V1AggregationRule buildAggregationRule() { return this.aggregationRule != null ? this.aggregationRule.build() : null; } - public A withAggregationRule( - io.kubernetes.client.openapi.models.V1AggregationRule aggregationRule) { + public A withAggregationRule(V1AggregationRule aggregationRule) { _visitables.get("aggregationRule").remove(this.aggregationRule); if (aggregationRule != null) { - this.aggregationRule = - new io.kubernetes.client.openapi.models.V1AggregationRuleBuilder(aggregationRule); + this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); _visitables.get("aggregationRule").add(this.aggregationRule); + } else { + this.aggregationRule = null; + _visitables.get("aggregationRule").remove(this.aggregationRule); } return (A) this; } @@ -77,52 +78,50 @@ public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRule() { return new V1ClusterRoleFluentImpl.AggregationRuleNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - withNewAggregationRuleLike(io.kubernetes.client.openapi.models.V1AggregationRule item) { + public V1ClusterRoleFluent.AggregationRuleNested withNewAggregationRuleLike( + V1AggregationRule item) { return new V1ClusterRoleFluentImpl.AggregationRuleNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - editAggregationRule() { + public V1ClusterRoleFluent.AggregationRuleNested editAggregationRule() { return withNewAggregationRuleLike(getAggregationRule()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - editOrNewAggregationRule() { + public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRule() { return withNewAggregationRuleLike( getAggregationRule() != null ? getAggregationRule() - : new io.kubernetes.client.openapi.models.V1AggregationRuleBuilder().build()); + : new V1AggregationRuleBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested - editOrNewAggregationRuleLike(io.kubernetes.client.openapi.models.V1AggregationRule item) { + public V1ClusterRoleFluent.AggregationRuleNested editOrNewAggregationRuleLike( + V1AggregationRule item) { return withNewAggregationRuleLike(getAggregationRule() != null ? getAggregationRule() : item); } - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -131,25 +130,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -157,47 +159,38 @@ public V1ClusterRoleFluent.MetadataNested withNewMetadata() { return new V1ClusterRoleFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleFluentImpl.MetadataNestedImpl(item); + public V1ClusterRoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1ClusterRoleFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested editMetadata() { + public V1ClusterRoleFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested - editOrNewMetadata() { + public V1ClusterRoleFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ClusterRoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToRules(Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item) { + public A addToRules(Integer index, V1PolicyRule item) { if (this.rules == null) { - this.rules = new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item) { + public A setToRules(Integer index, V1PolicyRule item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -213,26 +206,22 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PolicyRule item : items) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + 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) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PolicyRule item : items) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -240,9 +229,8 @@ public A addAllToRules(Collection items) { - for (io.kubernetes.client.openapi.models.V1PolicyRule item : items) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -264,13 +250,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - Predicate predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = each.next(); + V1PolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -284,31 +269,29 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1PolicyRule buildRule(java.lang.Integer index) { + public V1PolicyRule buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PolicyRule buildFirstRule() { + public V1PolicyRule buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PolicyRule buildLastRule() { + public V1PolicyRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PolicyRuleBuilder item : rules) { + public V1PolicyRule buildMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -316,10 +299,8 @@ public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule( return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PolicyRuleBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -327,13 +308,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules(java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PolicyRule item : rules) { + this.rules = new ArrayList(); + for (V1PolicyRule item : rules) { this.addToRules(item); } } else { @@ -347,14 +328,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1PolicyRule item : rules) { + for (V1PolicyRule item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -362,38 +343,32 @@ public V1ClusterRoleFluent.RulesNested addNewRule() { return new V1ClusterRoleFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1PolicyRule item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleFluentImpl.RulesNestedImpl( - -1, item); + public V1ClusterRoleFluent.RulesNested addNewRuleLike(V1PolicyRule item) { + return new V1ClusterRoleFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleFluentImpl.RulesNestedImpl( - index, item); + public V1ClusterRoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item) { + return new V1ClusterRoleFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editRule( - java.lang.Integer index) { + public V1ClusterRoleFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editFirstRule() { + public V1ClusterRoleFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editLastRule() { + public V1ClusterRoleFluent.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)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested editMatchingRule( - java.util.function.Predicate - predicate) { + public V1ClusterRoleFluent.RulesNested editMatchingRule( + Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -425,7 +400,7 @@ public int hashCode() { aggregationRule, apiVersion, kind, metadata, rules, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (aggregationRule != null) { @@ -454,17 +429,16 @@ public java.lang.String toString() { class AggregationRuleNestedImpl extends V1AggregationRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleFluent.AggregationRuleNested, - Nested { + implements V1ClusterRoleFluent.AggregationRuleNested, Nested { AggregationRuleNestedImpl(V1AggregationRule item) { this.builder = new V1AggregationRuleBuilder(this, item); } AggregationRuleNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1AggregationRuleBuilder(this); + this.builder = new V1AggregationRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1AggregationRuleBuilder builder; + V1AggregationRuleBuilder builder; public N and() { return (N) V1ClusterRoleFluentImpl.this.withAggregationRule(builder.build()); @@ -476,17 +450,16 @@ public N endAggregationRule() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ClusterRoleFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ClusterRoleFluentImpl.this.withMetadata(builder.build()); @@ -498,20 +471,19 @@ public N endMetadata() { } class RulesNestedImpl extends V1PolicyRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl(java.lang.Integer index, V1PolicyRule item) { + implements V1ClusterRoleFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(this); + this.builder = new V1PolicyRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder; - java.lang.Integer index; + V1PolicyRuleBuilder builder; + Integer index; public N and() { return (N) V1ClusterRoleFluentImpl.this.setToRules(index, builder.build()); 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 bdaf7ada74..f930a927ac 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ClusterRoleList, V1ClusterRoleListBuilder> { + implements VisitableBuilder { public V1ClusterRoleListBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1ClusterRoleListBuilder(Boolean validationEnabled) { this(new V1ClusterRoleList(), validationEnabled); } - public V1ClusterRoleListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleListFluent fluent) { + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent) { this(fluent, false); } - public V1ClusterRoleListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ClusterRoleList(), validationEnabled); } - public V1ClusterRoleListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleListFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRoleList instance) { + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent, V1ClusterRoleList instance) { this(fluent, instance, false); } public V1ClusterRoleListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleListFluent fluent, - io.kubernetes.client.openapi.models.V1ClusterRoleList instance, - java.lang.Boolean validationEnabled) { + V1ClusterRoleListFluent fluent, V1ClusterRoleList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1ClusterRoleListBuilder( this.validationEnabled = validationEnabled; } - public V1ClusterRoleListBuilder(io.kubernetes.client.openapi.models.V1ClusterRoleList instance) { + public V1ClusterRoleListBuilder(V1ClusterRoleList instance) { this(instance, false); } - public V1ClusterRoleListBuilder( - io.kubernetes.client.openapi.models.V1ClusterRoleList instance, - java.lang.Boolean validationEnabled) { + public V1ClusterRoleListBuilder(V1ClusterRoleList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1ClusterRoleListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ClusterRoleListFluent fluent; - java.lang.Boolean validationEnabled; + V1ClusterRoleListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ClusterRoleList build() { + public V1ClusterRoleList build() { V1ClusterRoleList buildable = new V1ClusterRoleList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 e588d3dbcd..1eb73da440 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 @@ -22,23 +22,21 @@ public interface V1ClusterRoleListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1ClusterRole item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRole item); + public A setToItems(Integer index, V1ClusterRole item); public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRole... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRole... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,83 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ClusterRole buildItem(java.lang.Integer index); + public V1ClusterRole buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ClusterRole buildFirstItem(); + public V1ClusterRole buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ClusterRole buildLastItem(); + public V1ClusterRole buildLastItem(); - public io.kubernetes.client.openapi.models.V1ClusterRole buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ClusterRole buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ClusterRoleListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ClusterRole item); + public V1ClusterRoleListFluent.ItemsNested addNewItemLike(V1ClusterRole item); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRole item); + public V1ClusterRoleListFluent.ItemsNested setNewItemLike(Integer index, V1ClusterRole item); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ClusterRoleListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested editFirstItem(); + public V1ClusterRoleListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested editLastItem(); + public V1ClusterRoleListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1ClusterRoleListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ClusterRoleListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ClusterRoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - editMetadata(); + public V1ClusterRoleListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - editOrNewMetadata(); + public V1ClusterRoleListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ClusterRoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ClusterRoleFluent> { @@ -134,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java index 67fa08f935..45c3452935 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluentImpl.java @@ -38,14 +38,14 @@ public V1ClusterRoleListFluentImpl(V1ClusterRoleList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ClusterRole item) { + public A addToItems(Integer index, V1ClusterRole item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBuilder(item); + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRole item) { + public A setToItems(Integer index, V1ClusterRole item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBuilder(item); + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ClusterRole item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ClusterRole item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBuilder(item); + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1ClusterRole item : items) { - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder = - new io.kubernetes.client.openapi.models.V1ClusterRoleBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder = each.next(); + V1ClusterRoleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ClusterRole buildItem(java.lang.Integer index) { + public V1ClusterRole buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ClusterRole buildFirstItem() { + public V1ClusterRole buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ClusterRole buildLastItem() { + public V1ClusterRole buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ClusterRole buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBuilder item : items) { + public V1ClusterRole buildMatchingItem(Predicate predicate) { + for (V1ClusterRoleBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ClusterRole buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ClusterRoleBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ClusterRoleBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ClusterRole item : items) { + this.items = new ArrayList(); + for (V1ClusterRole item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ClusterRole item : items) { + for (V1ClusterRole item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,39 +221,32 @@ public V1ClusterRoleListFluent.ItemsNested addNewItem() { return new V1ClusterRoleListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ClusterRole item) { + public V1ClusterRoleListFluent.ItemsNested addNewItemLike(V1ClusterRole item) { return new V1ClusterRoleListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRole item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleListFluentImpl.ItemsNestedImpl( - index, item); + public V1ClusterRoleListFluent.ItemsNested setNewItemLike(Integer index, V1ClusterRole item) { + return new V1ClusterRoleListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ClusterRoleListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested - editFirstItem() { + public V1ClusterRoleListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested editLastItem() { + public V1ClusterRoleListFluent.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 io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ClusterRoleListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -283,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested withNewMetadata() { return new V1ClusterRoleListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ClusterRoleListFluentImpl.MetadataNestedImpl( - item); + public V1ClusterRoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ClusterRoleListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - editMetadata() { + public V1ClusterRoleListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - editOrNewMetadata() { + public V1ClusterRoleListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ClusterRoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -367,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -391,21 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1ClusterRoleFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ClusterRole item) { + implements V1ClusterRoleListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1ClusterRole item) { this.index = index; this.builder = new V1ClusterRoleBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ClusterRoleBuilder(this); + this.builder = new V1ClusterRoleBuilder(this); } - io.kubernetes.client.openapi.models.V1ClusterRoleBuilder builder; - java.lang.Integer index; + V1ClusterRoleBuilder builder; + Integer index; public N and() { return (N) V1ClusterRoleListFluentImpl.this.setToItems(index, builder.build()); @@ -418,17 +387,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ClusterRoleListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ClusterRoleListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ClusterRoleListFluentImpl.this.withMetadata(builder.build()); 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 3d99e57501..3087302347 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 @@ -16,8 +16,7 @@ public class V1ComponentConditionBuilder extends V1ComponentConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ComponentCondition, V1ComponentConditionBuilder> { + implements VisitableBuilder { public V1ComponentConditionBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent) { } public V1ComponentConditionBuilder( - io.kubernetes.client.openapi.models.V1ComponentConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1ComponentConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ComponentCondition(), validationEnabled); } public V1ComponentConditionBuilder( - io.kubernetes.client.openapi.models.V1ComponentConditionFluent fluent, - io.kubernetes.client.openapi.models.V1ComponentCondition instance) { + V1ComponentConditionFluent fluent, V1ComponentCondition instance) { this(fluent, instance, false); } public V1ComponentConditionBuilder( - io.kubernetes.client.openapi.models.V1ComponentConditionFluent fluent, - io.kubernetes.client.openapi.models.V1ComponentCondition instance, - java.lang.Boolean validationEnabled) { + V1ComponentConditionFluent fluent, + V1ComponentCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withError(instance.getError()); @@ -58,14 +55,11 @@ public V1ComponentConditionBuilder( this.validationEnabled = validationEnabled; } - public V1ComponentConditionBuilder( - io.kubernetes.client.openapi.models.V1ComponentCondition instance) { + public V1ComponentConditionBuilder(V1ComponentCondition instance) { this(instance, false); } - public V1ComponentConditionBuilder( - io.kubernetes.client.openapi.models.V1ComponentCondition instance, - java.lang.Boolean validationEnabled) { + public V1ComponentConditionBuilder(V1ComponentCondition instance, Boolean validationEnabled) { this.fluent = this; this.withError(instance.getError()); @@ -78,10 +72,10 @@ public V1ComponentConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ComponentConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1ComponentConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ComponentCondition build() { + public V1ComponentCondition build() { V1ComponentCondition buildable = new V1ComponentCondition(); buildable.setError(fluent.getError()); buildable.setMessage(fluent.getMessage()); 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 d6eb6abb74..d1005732af 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 @@ -19,25 +19,25 @@ public interface V1ComponentConditionFluent { public String getError(); - public A withError(java.lang.String error); + public A withError(String error); public Boolean hasError(); - public java.lang.String getMessage(); + public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java index 46376ecb24..a62e7aa2cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluentImpl.java @@ -20,8 +20,7 @@ public class V1ComponentConditionFluentImpl implements V1ComponentConditionFluent { public V1ComponentConditionFluentImpl() {} - public V1ComponentConditionFluentImpl( - io.kubernetes.client.openapi.models.V1ComponentCondition instance) { + public V1ComponentConditionFluentImpl(V1ComponentCondition instance) { this.withError(instance.getError()); this.withMessage(instance.getMessage()); @@ -32,15 +31,15 @@ public V1ComponentConditionFluentImpl( } private String error; - private java.lang.String message; - private java.lang.String status; - private java.lang.String type; + private String message; + private String status; + private String type; - public java.lang.String getError() { + public String getError() { return this.error; } - public A withError(java.lang.String error) { + public A withError(String error) { this.error = error; return (A) this; } @@ -49,42 +48,42 @@ public Boolean hasError() { return this.error != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -103,7 +102,7 @@ public int hashCode() { return java.util.Objects.hash(error, message, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (error != null) { 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 b7a38c6783..f3f4419223 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ComponentStatusBuilder extends V1ComponentStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ComponentStatus, - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder> { + implements VisitableBuilder { public V1ComponentStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent) { this(fluent, false); } - public V1ComponentStatusBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ComponentStatus(), validationEnabled); } - public V1ComponentStatusBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ComponentStatus instance) { + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent, V1ComponentStatus instance) { this(fluent, instance, false); } public V1ComponentStatusBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ComponentStatus instance, - java.lang.Boolean validationEnabled) { + V1ComponentStatusFluent fluent, V1ComponentStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1ComponentStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ComponentStatusBuilder(io.kubernetes.client.openapi.models.V1ComponentStatus instance) { + public V1ComponentStatusBuilder(V1ComponentStatus instance) { this(instance, false); } - public V1ComponentStatusBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatus instance, - java.lang.Boolean validationEnabled) { + public V1ComponentStatusBuilder(V1ComponentStatus instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1ComponentStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ComponentStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ComponentStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ComponentStatus build() { + public V1ComponentStatus build() { V1ComponentStatus buildable = new V1ComponentStatus(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setConditions(fluent.getConditions()); 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 5741d6b3ef..86eac7edc0 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 @@ -22,24 +22,21 @@ public interface V1ComponentStatusFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToConditions(Integer index, V1ComponentCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentCondition item); + public A setToConditions(Integer index, V1ComponentCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -49,89 +46,72 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1ComponentCondition buildCondition( - java.lang.Integer index); + public V1ComponentCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ComponentCondition buildFirstCondition(); + public V1ComponentCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1ComponentCondition buildLastCondition(); + public V1ComponentCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1ComponentCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1ComponentCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1ComponentStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1ComponentCondition item); + public V1ComponentStatusFluent.ConditionsNested addNewConditionLike(V1ComponentCondition item); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentCondition item); + public V1ComponentStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1ComponentCondition item); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1ComponentStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editFirstCondition(); + public V1ComponentStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editLastCondition(); + public V1ComponentStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder> - predicate); + public V1ComponentStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ComponentStatusFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ComponentStatusFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - editMetadata(); + public V1ComponentStatusFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - editOrNewMetadata(); + public V1ComponentStatusFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ComponentStatusFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public interface ConditionsNested extends Nested, V1ComponentConditionFluent> { @@ -141,8 +121,7 @@ public interface ConditionsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java index b5c835b385..e106dd8304 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1ComponentStatusFluentImpl> e implements V1ComponentStatusFluent { public V1ComponentStatusFluentImpl() {} - public V1ComponentStatusFluentImpl( - io.kubernetes.client.openapi.models.V1ComponentStatus instance) { + public V1ComponentStatusFluentImpl(V1ComponentStatus instance) { this.withApiVersion(instance.getApiVersion()); this.withConditions(instance.getConditions()); @@ -39,14 +38,14 @@ public V1ComponentStatusFluentImpl( private String apiVersion; private ArrayList conditions; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,13 +54,11 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToConditions( - Integer index, io.kubernetes.client.openapi.models.V1ComponentCondition item) { + public A addToConditions(Integer index, V1ComponentCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(item); + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -69,15 +66,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentCondition item) { + public A setToConditions(Integer index, V1ComponentCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(item); + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -93,29 +86,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ComponentCondition item : items) { - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ComponentCondition item : items) { - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(item); + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -123,9 +109,8 @@ public A addAllToConditions( } public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { - for (io.kubernetes.client.openapi.models.V1ComponentCondition item : items) { - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(item); + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -134,11 +119,9 @@ public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCon return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ComponentCondition item : items) { - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -147,14 +130,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder = each.next(); + V1ComponentConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,32 +150,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1ComponentCondition buildCondition( - java.lang.Integer index) { + public V1ComponentCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ComponentCondition buildFirstCondition() { + public V1ComponentCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ComponentCondition buildLastCondition() { + public V1ComponentCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ComponentCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ComponentConditionBuilder item : conditions) { + public V1ComponentCondition buildMatchingCondition( + Predicate predicate) { + for (V1ComponentConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -202,10 +180,8 @@ public io.kubernetes.client.openapi.models.V1ComponentCondition buildMatchingCon return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ComponentConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1ComponentConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -213,14 +189,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ComponentCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1ComponentCondition item : conditions) { this.addToConditions(item); } } else { @@ -234,14 +209,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1ComponentCondition item : conditions) { + for (V1ComponentCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -249,44 +224,36 @@ public V1ComponentStatusFluent.ConditionsNested addNewCondition() { return new V1ComponentStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1ComponentCondition item) { + public V1ComponentStatusFluent.ConditionsNested addNewConditionLike( + V1ComponentCondition item) { return new V1ComponentStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentCondition item) { - return new io.kubernetes.client.openapi.models.V1ComponentStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1ComponentStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1ComponentCondition item) { + return new V1ComponentStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1ComponentStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editFirstCondition() { + public V1ComponentStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editLastCondition() { + public V1ComponentStatusFluent.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 io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder> - predicate) { + public V1ComponentStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -298,16 +265,16 @@ public V1ComponentStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -316,25 +283,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -342,27 +312,20 @@ public V1ComponentStatusFluent.MetadataNested withNewMetadata() { return new V1ComponentStatusFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1ComponentStatusFluentImpl.MetadataNestedImpl( - item); + public V1ComponentStatusFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1ComponentStatusFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - editMetadata() { + public V1ComponentStatusFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - editOrNewMetadata() { + public V1ComponentStatusFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ComponentStatusFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -383,7 +346,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, conditions, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -408,20 +371,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1ComponentConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ComponentStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1ComponentCondition item) { + implements V1ComponentStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1ComponentCondition item) { this.index = index; this.builder = new V1ComponentConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ComponentConditionBuilder(this); + this.builder = new V1ComponentConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1ComponentConditionBuilder builder; - java.lang.Integer index; + V1ComponentConditionBuilder builder; + Integer index; public N and() { return (N) V1ComponentStatusFluentImpl.this.setToConditions(index, builder.build()); @@ -434,17 +396,16 @@ public N endCondition() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ComponentStatusFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ComponentStatusFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ComponentStatusFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java index 68ecf74993..db016dce2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java @@ -16,8 +16,7 @@ public class V1ComponentStatusListBuilder extends V1ComponentStatusListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ComponentStatusList, V1ComponentStatusListBuilder> { + implements VisitableBuilder { public V1ComponentStatusListBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent) { } public V1ComponentStatusListBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ComponentStatusListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ComponentStatusList(), validationEnabled); } public V1ComponentStatusListBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusListFluent fluent, - io.kubernetes.client.openapi.models.V1ComponentStatusList instance) { + V1ComponentStatusListFluent fluent, V1ComponentStatusList instance) { this(fluent, instance, false); } public V1ComponentStatusListBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusListFluent fluent, - io.kubernetes.client.openapi.models.V1ComponentStatusList instance, - java.lang.Boolean validationEnabled) { + V1ComponentStatusListFluent fluent, + V1ComponentStatusList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,14 +55,11 @@ public V1ComponentStatusListBuilder( this.validationEnabled = validationEnabled; } - public V1ComponentStatusListBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusList instance) { + public V1ComponentStatusListBuilder(V1ComponentStatusList instance) { this(instance, false); } - public V1ComponentStatusListBuilder( - io.kubernetes.client.openapi.models.V1ComponentStatusList instance, - java.lang.Boolean validationEnabled) { + public V1ComponentStatusListBuilder(V1ComponentStatusList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +72,10 @@ public V1ComponentStatusListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ComponentStatusListFluent fluent; - java.lang.Boolean validationEnabled; + V1ComponentStatusListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ComponentStatusList build() { + public V1ComponentStatusList build() { V1ComponentStatusList buildable = new V1ComponentStatusList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 25259983d2..99af68b2ed 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 @@ -23,23 +23,21 @@ public interface V1ComponentStatusListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item); + public A addToItems(Integer index, V1ComponentStatus item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item); + public A setToItems(Integer index, V1ComponentStatus item); public A addToItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ComponentStatus buildItem(java.lang.Integer index); + public V1ComponentStatus buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ComponentStatus buildFirstItem(); + public V1ComponentStatus buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ComponentStatus buildLastItem(); + public V1ComponentStatus buildLastItem(); - public io.kubernetes.client.openapi.models.V1ComponentStatus buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ComponentStatus buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ComponentStatusListFluent.ItemsNested addNewItem(); - public V1ComponentStatusListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ComponentStatus item); + public V1ComponentStatusListFluent.ItemsNested addNewItemLike(V1ComponentStatus item); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item); + public V1ComponentStatusListFluent.ItemsNested setNewItemLike( + Integer index, V1ComponentStatus item); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ComponentStatusListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - editFirstItem(); + public V1ComponentStatusListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - editLastItem(); + public V1ComponentStatusListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1ComponentStatusListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ComponentStatusListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ComponentStatusListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - editMetadata(); + public V1ComponentStatusListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - editOrNewMetadata(); + public V1ComponentStatusListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ComponentStatusListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ComponentStatusFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java index 42a4a6a884..75060a2891 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluentImpl.java @@ -38,14 +38,14 @@ public V1ComponentStatusListFluentImpl(V1ComponentStatusList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item) { + public A addToItems(Integer index, V1ComponentStatus item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentStatusBuilder(item); + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item) { + public A setToItems(Integer index, V1ComponentStatus item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentStatusBuilder(item); + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ComponentStatus item : items) { - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentStatusBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ComponentStatus item : items) { - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentStatusBuilder(item); + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1ComponentStatus item : items) { - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ComponentStatusBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder = each.next(); + V1ComponentStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ComponentStatus buildItem(java.lang.Integer index) { + public V1ComponentStatus buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ComponentStatus buildFirstItem() { + public V1ComponentStatus buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ComponentStatus buildLastItem() { + public V1ComponentStatus buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ComponentStatus buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ComponentStatusBuilder item : items) { + public V1ComponentStatus buildMatchingItem(Predicate predicate) { + for (V1ComponentStatusBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ComponentStatus buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ComponentStatusBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ComponentStatusBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ComponentStatus item : items) { + this.items = new ArrayList(); + for (V1ComponentStatus item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... item this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ComponentStatus item : items) { + for (V1ComponentStatus item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,41 +221,33 @@ public V1ComponentStatusListFluent.ItemsNested addNewItem() { return new V1ComponentStatusListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1ComponentStatus item) { + public V1ComponentStatusListFluent.ItemsNested addNewItemLike(V1ComponentStatus item) { return new V1ComponentStatusListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item) { - return new io.kubernetes.client.openapi.models.V1ComponentStatusListFluentImpl.ItemsNestedImpl( - index, item); + public V1ComponentStatusListFluent.ItemsNested setNewItemLike( + Integer index, V1ComponentStatus item) { + return new V1ComponentStatusListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ComponentStatusListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - editFirstItem() { + public V1ComponentStatusListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - editLastItem() { + public V1ComponentStatusListFluent.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 io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ComponentStatusListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNest return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -303,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -329,27 +306,20 @@ public V1ComponentStatusListFluent.MetadataNested withNewMetadata() { return new V1ComponentStatusListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ComponentStatusListFluentImpl - .MetadataNestedImpl(item); + public V1ComponentStatusListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ComponentStatusListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - editMetadata() { + public V1ComponentStatusListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - editOrNewMetadata() { + public V1ComponentStatusListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ComponentStatusListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -369,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -394,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ComponentStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ComponentStatus item) { + implements V1ComponentStatusListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1ComponentStatus item) { this.index = index; this.builder = new V1ComponentStatusBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ComponentStatusBuilder(this); + this.builder = new V1ComponentStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ComponentStatusBuilder builder; - java.lang.Integer index; + V1ComponentStatusBuilder builder; + Integer index; public N and() { return (N) V1ComponentStatusListFluentImpl.this.setToItems(index, builder.build()); @@ -421,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ComponentStatusListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ComponentStatusListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ComponentStatusListFluentImpl.this.withMetadata(builder.build()); 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 151563025e..dfd50cd2c7 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ConditionBuilder extends V1ConditionFluentImpl - implements VisitableBuilder< - V1Condition, io.kubernetes.client.openapi.models.V1ConditionBuilder> { + implements VisitableBuilder { public V1ConditionBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1ConditionBuilder(Boolean validationEnabled) { this(new V1Condition(), validationEnabled); } - public V1ConditionBuilder(io.kubernetes.client.openapi.models.V1ConditionFluent fluent) { + public V1ConditionBuilder(V1ConditionFluent fluent) { this(fluent, false); } - public V1ConditionBuilder( - io.kubernetes.client.openapi.models.V1ConditionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ConditionBuilder(V1ConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1Condition(), validationEnabled); } - public V1ConditionBuilder( - io.kubernetes.client.openapi.models.V1ConditionFluent fluent, - io.kubernetes.client.openapi.models.V1Condition instance) { + public V1ConditionBuilder(V1ConditionFluent fluent, V1Condition instance) { this(fluent, instance, false); } public V1ConditionBuilder( - io.kubernetes.client.openapi.models.V1ConditionFluent fluent, - io.kubernetes.client.openapi.models.V1Condition instance, - java.lang.Boolean validationEnabled) { + V1ConditionFluent fluent, V1Condition instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,13 +54,11 @@ public V1ConditionBuilder( this.validationEnabled = validationEnabled; } - public V1ConditionBuilder(io.kubernetes.client.openapi.models.V1Condition instance) { + public V1ConditionBuilder(V1Condition instance) { this(instance, false); } - public V1ConditionBuilder( - io.kubernetes.client.openapi.models.V1Condition instance, - java.lang.Boolean validationEnabled) { + public V1ConditionBuilder(V1Condition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -84,10 +75,10 @@ public V1ConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1ConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Condition build() { + public V1Condition build() { V1Condition buildable = new V1Condition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 d0e25d0537..e6d0e83872 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 @@ -19,37 +19,37 @@ public interface V1ConditionFluent> extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java index 7e192a99b8..db2cca78a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluentImpl.java @@ -21,7 +21,7 @@ public class V1ConditionFluentImpl> extends BaseF implements V1ConditionFluent { public V1ConditionFluentImpl() {} - public V1ConditionFluentImpl(io.kubernetes.client.openapi.models.V1Condition instance) { + public V1ConditionFluentImpl(V1Condition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -38,15 +38,15 @@ public V1ConditionFluentImpl(io.kubernetes.client.openapi.models.V1Condition ins private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -55,68 +55,68 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -142,7 +142,7 @@ public int hashCode() { lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 3adf51f096..3b035630ee 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ConfigMapBuilder extends V1ConfigMapFluentImpl - implements VisitableBuilder< - V1ConfigMap, io.kubernetes.client.openapi.models.V1ConfigMapBuilder> { + implements VisitableBuilder { public V1ConfigMapBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1ConfigMapBuilder(V1ConfigMapFluent fluent) { this(fluent, false); } - public V1ConfigMapBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ConfigMapBuilder(V1ConfigMapFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMap(), validationEnabled); } - public V1ConfigMapBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMap instance) { + public V1ConfigMapBuilder(V1ConfigMapFluent fluent, V1ConfigMap instance) { this(fluent, instance, false); } public V1ConfigMapBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMap instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapFluent fluent, V1ConfigMap instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,13 +54,11 @@ public V1ConfigMapBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapBuilder(io.kubernetes.client.openapi.models.V1ConfigMap instance) { + public V1ConfigMapBuilder(V1ConfigMap instance) { this(instance, false); } - public V1ConfigMapBuilder( - io.kubernetes.client.openapi.models.V1ConfigMap instance, - java.lang.Boolean validationEnabled) { + public V1ConfigMapBuilder(V1ConfigMap instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -84,10 +75,10 @@ public V1ConfigMapBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMap build() { + public V1ConfigMap build() { V1ConfigMap buildable = new V1ConfigMap(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setBinaryData(fluent.getBinaryData()); 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 f833692099..b45c7e386f 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 @@ -16,9 +16,7 @@ public class V1ConfigMapEnvSourceBuilder extends V1ConfigMapEnvSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ConfigMapEnvSource, - io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceBuilder> { + implements VisitableBuilder { public V1ConfigMapEnvSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent) { } public V1ConfigMapEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ConfigMapEnvSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMapEnvSource(), validationEnabled); } public V1ConfigMapEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapEnvSource instance) { + V1ConfigMapEnvSourceFluent fluent, V1ConfigMapEnvSource instance) { this(fluent, instance, false); } public V1ConfigMapEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapEnvSource instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapEnvSourceFluent fluent, + V1ConfigMapEnvSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,11 @@ public V1ConfigMapEnvSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapEnvSource instance) { + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance) { this(instance, false); } - public V1ConfigMapEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapEnvSource instance, - java.lang.Boolean validationEnabled) { + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +64,10 @@ public V1ConfigMapEnvSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapEnvSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMapEnvSource build() { + public V1ConfigMapEnvSource build() { V1ConfigMapEnvSource buildable = new V1ConfigMapEnvSource(); buildable.setName(fluent.getName()); buildable.setOptional(fluent.getOptional()); 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 dd348af662..80168ca2ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java @@ -19,15 +19,15 @@ public interface V1ConfigMapEnvSourceFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java index a526dcc577..b7f7e228ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1ConfigMapEnvSourceFluentImpl implements V1ConfigMapEnvSourceFluent { public V1ConfigMapEnvSourceFluentImpl() {} - public V1ConfigMapEnvSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ConfigMapEnvSource instance) { + public V1ConfigMapEnvSourceFluentImpl(V1ConfigMapEnvSource instance) { this.withName(instance.getName()); this.withOptional(instance.getOptional()); @@ -30,29 +29,29 @@ public V1ConfigMapEnvSourceFluentImpl( private String name; private Boolean optional; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 572de85764..4f1d1ce879 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 @@ -20,49 +20,49 @@ public interface V1ConfigMapFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToBinaryData(java.lang.String key, byte[] value); + public A addToBinaryData(String key, byte[] value); - public A addToBinaryData(Map map); + public A addToBinaryData(Map map); - public A removeFromBinaryData(java.lang.String key); + public A removeFromBinaryData(String key); - public A removeFromBinaryData(java.util.Map map); + public A removeFromBinaryData(Map map); - public java.util.Map getBinaryData(); + public Map getBinaryData(); - public A withBinaryData(java.util.Map binaryData); + public A withBinaryData(Map binaryData); - public java.lang.Boolean hasBinaryData(); + public Boolean hasBinaryData(); - public A addToData(java.lang.String key, java.lang.String value); + public A addToData(String key, String value); - public A addToData(java.util.Map map); + public A addToData(Map map); - public A removeFromData(java.lang.String key); + public A removeFromData(String key); - public A removeFromData(java.util.Map map); + public A removeFromData(Map map); - public java.util.Map getData(); + public Map getData(); - public A withData(java.util.Map data); + public A withData(Map data); - public java.lang.Boolean hasData(); + public Boolean hasData(); - public java.lang.Boolean getImmutable(); + public Boolean getImmutable(); - public A withImmutable(java.lang.Boolean immutable); + public A withImmutable(Boolean immutable); - public java.lang.Boolean hasImmutable(); + public Boolean hasImmutable(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -72,24 +72,21 @@ public interface V1ConfigMapFluent> extends Fluen @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ConfigMapFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ConfigMapFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested editMetadata(); + public V1ConfigMapFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested - editOrNewMetadata(); + public V1ConfigMapFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ConfigMapFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public A withImmutable(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java index f5c2f1c9c5..e3e7cef952 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluentImpl.java @@ -23,7 +23,7 @@ public class V1ConfigMapFluentImpl> extends BaseF implements V1ConfigMapFluent { public V1ConfigMapFluentImpl() {} - public V1ConfigMapFluentImpl(io.kubernetes.client.openapi.models.V1ConfigMap instance) { + public V1ConfigMapFluentImpl(V1ConfigMap instance) { this.withApiVersion(instance.getApiVersion()); this.withBinaryData(instance.getBinaryData()); @@ -38,26 +38,26 @@ public V1ConfigMapFluentImpl(io.kubernetes.client.openapi.models.V1ConfigMap ins } private String apiVersion; - private Map binaryData; - private java.util.Map data; + private Map binaryData; + private Map data; private Boolean immutable; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToBinaryData(java.lang.String key, byte[] value) { + public A addToBinaryData(String key, byte[] value) { if (this.binaryData == null && key != null && value != null) { this.binaryData = new LinkedHashMap(); } @@ -67,9 +67,9 @@ public A addToBinaryData(java.lang.String key, byte[] value) { return (A) this; } - public A addToBinaryData(java.util.Map map) { + public A addToBinaryData(Map map) { if (this.binaryData == null && map != null) { - this.binaryData = new java.util.LinkedHashMap(); + this.binaryData = new LinkedHashMap(); } if (map != null) { this.binaryData.putAll(map); @@ -77,7 +77,7 @@ public A addToBinaryData(java.util.Map map) { return (A) this; } - public A removeFromBinaryData(java.lang.String key) { + public A removeFromBinaryData(String key) { if (this.binaryData == null) { return (A) this; } @@ -87,7 +87,7 @@ public A removeFromBinaryData(java.lang.String key) { return (A) this; } - public A removeFromBinaryData(java.util.Map map) { + public A removeFromBinaryData(Map map) { if (this.binaryData == null) { return (A) this; } @@ -101,26 +101,26 @@ public A removeFromBinaryData(java.util.Map map) { return (A) this; } - public java.util.Map getBinaryData() { + public Map getBinaryData() { return this.binaryData; } - public A withBinaryData(java.util.Map binaryData) { + public A withBinaryData(Map binaryData) { if (binaryData == null) { this.binaryData = null; } else { - this.binaryData = new java.util.LinkedHashMap(binaryData); + this.binaryData = new LinkedHashMap(binaryData); } return (A) this; } - public java.lang.Boolean hasBinaryData() { + public Boolean hasBinaryData() { return this.binaryData != null; } - public A addToData(java.lang.String key, java.lang.String value) { + public A addToData(String key, String value) { if (this.data == null && key != null && value != null) { - this.data = new java.util.LinkedHashMap(); + this.data = new LinkedHashMap(); } if (key != null && value != null) { this.data.put(key, value); @@ -128,9 +128,9 @@ public A addToData(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToData(java.util.Map map) { + public A addToData(Map map) { if (this.data == null && map != null) { - this.data = new java.util.LinkedHashMap(); + this.data = new LinkedHashMap(); } if (map != null) { this.data.putAll(map); @@ -138,7 +138,7 @@ public A addToData(java.util.Map map) { return (A) this; } - public A removeFromData(java.lang.String key) { + public A removeFromData(String key) { if (this.data == null) { return (A) this; } @@ -148,7 +148,7 @@ public A removeFromData(java.lang.String key) { return (A) this; } - public A removeFromData(java.util.Map map) { + public A removeFromData(Map map) { if (this.data == null) { return (A) this; } @@ -162,46 +162,46 @@ public A removeFromData(java.util.Map map) { return (A) this; } - public java.util.Map getData() { + public Map getData() { return this.data; } - public A withData(java.util.Map data) { + public A withData(Map data) { if (data == null) { this.data = null; } else { - this.data = new java.util.LinkedHashMap(data); + this.data = new LinkedHashMap(data); } return (A) this; } - public java.lang.Boolean hasData() { + public Boolean hasData() { return this.data != null; } - public java.lang.Boolean getImmutable() { + public Boolean getImmutable() { return this.immutable; } - public A withImmutable(java.lang.Boolean immutable) { + public A withImmutable(Boolean immutable) { this.immutable = immutable; return (A) this; } - public java.lang.Boolean hasImmutable() { + public Boolean hasImmutable() { return this.immutable != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -211,24 +211,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -236,25 +239,20 @@ public V1ConfigMapFluent.MetadataNested withNewMetadata() { return new V1ConfigMapFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ConfigMapFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ConfigMapFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested editMetadata() { + public V1ConfigMapFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested - editOrNewMetadata() { + public V1ConfigMapFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ConfigMapFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -279,7 +277,7 @@ public int hashCode() { apiVersion, binaryData, data, immutable, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -315,17 +313,16 @@ public A withImmutable() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ConfigMapFluent.MetadataNested, - Nested { + implements V1ConfigMapFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ConfigMapFluentImpl.this.withMetadata(builder.build()); 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 343ba65d1d..9bdff40b7d 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 @@ -16,9 +16,7 @@ public class V1ConfigMapKeySelectorBuilder extends V1ConfigMapKeySelectorFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector, - io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorBuilder> { + implements VisitableBuilder { public V1ConfigMapKeySelectorBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent) { } public V1ConfigMapKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorFluent fluent, - java.lang.Boolean validationEnabled) { + V1ConfigMapKeySelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMapKeySelector(), validationEnabled); } public V1ConfigMapKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector instance) { + V1ConfigMapKeySelectorFluent fluent, V1ConfigMapKeySelector instance) { this(fluent, instance, false); } public V1ConfigMapKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapKeySelectorFluent fluent, + V1ConfigMapKeySelector instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKey(instance.getKey()); @@ -57,14 +53,11 @@ public V1ConfigMapKeySelectorBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector instance) { + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance) { this(instance, false); } - public V1ConfigMapKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector instance, - java.lang.Boolean validationEnabled) { + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance, Boolean validationEnabled) { this.fluent = this; this.withKey(instance.getKey()); @@ -75,10 +68,10 @@ public V1ConfigMapKeySelectorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapKeySelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMapKeySelector build() { + public V1ConfigMapKeySelector build() { V1ConfigMapKeySelector buildable = new V1ConfigMapKeySelector(); buildable.setKey(fluent.getKey()); buildable.setName(fluent.getName()); 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 168fac05eb..deccac2ab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java @@ -19,21 +19,21 @@ public interface V1ConfigMapKeySelectorFluent { public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); public Boolean hasKey(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java index 40100bf481..26703b40b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluentImpl.java @@ -20,8 +20,7 @@ public class V1ConfigMapKeySelectorFluentImpl implements V1ConfigMapKeySelectorFluent { public V1ConfigMapKeySelectorFluentImpl() {} - public V1ConfigMapKeySelectorFluentImpl( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector instance) { + public V1ConfigMapKeySelectorFluentImpl(V1ConfigMapKeySelector instance) { this.withKey(instance.getKey()); this.withName(instance.getName()); @@ -30,45 +29,45 @@ public V1ConfigMapKeySelectorFluentImpl( } private String key; - private java.lang.String name; + private String name; private Boolean optional; - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } - public java.lang.Boolean hasKey() { + public Boolean hasKey() { return this.key != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -86,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(key, name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (key != null) { 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 d757775de2..f7d8d37299 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ConfigMapListBuilder extends V1ConfigMapListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ConfigMapList, V1ConfigMapListBuilder> { + implements VisitableBuilder { public V1ConfigMapListBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent) { this(fluent, false); } - public V1ConfigMapListBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMapList(), validationEnabled); } - public V1ConfigMapListBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapListFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapList instance) { + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent, V1ConfigMapList instance) { this(fluent, instance, false); } public V1ConfigMapListBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapListFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapList instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapListFluent fluent, V1ConfigMapList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public V1ConfigMapListBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapListBuilder(io.kubernetes.client.openapi.models.V1ConfigMapList instance) { + public V1ConfigMapListBuilder(V1ConfigMapList instance) { this(instance, false); } - public V1ConfigMapListBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapList instance, - java.lang.Boolean validationEnabled) { + public V1ConfigMapListBuilder(V1ConfigMapList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1ConfigMapListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapListFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMapList build() { + public V1ConfigMapList build() { V1ConfigMapList buildable = new V1ConfigMapList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 a989db8f14..f79458efb3 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 @@ -22,23 +22,21 @@ public interface V1ConfigMapListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item); + public A addToItems(Integer index, V1ConfigMap item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item); + public A setToItems(Integer index, V1ConfigMap item); public A addToItems(io.kubernetes.client.openapi.models.V1ConfigMap... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ConfigMap... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,81 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ConfigMap buildItem(java.lang.Integer index); + public V1ConfigMap buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ConfigMap buildFirstItem(); + public V1ConfigMap buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ConfigMap buildLastItem(); + public V1ConfigMap buildLastItem(); - public io.kubernetes.client.openapi.models.V1ConfigMap buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ConfigMap buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ConfigMapListFluent.ItemsNested addNewItem(); - public V1ConfigMapListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ConfigMap item); + public V1ConfigMapListFluent.ItemsNested addNewItemLike(V1ConfigMap item); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item); + public V1ConfigMapListFluent.ItemsNested setNewItemLike(Integer index, V1ConfigMap item); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ConfigMapListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editFirstItem(); + public V1ConfigMapListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editLastItem(); + public V1ConfigMapListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1ConfigMapListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ConfigMapListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ConfigMapListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested editMetadata(); + public V1ConfigMapListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - editOrNewMetadata(); + public V1ConfigMapListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ConfigMapListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ConfigMapFluent> { @@ -132,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java index bdfb700003..6b3d690aba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluentImpl.java @@ -38,14 +38,14 @@ public V1ConfigMapListFluentImpl(V1ConfigMapList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item) { + public A addToItems(Integer index, V1ConfigMap item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder = - new io.kubernetes.client.openapi.models.V1ConfigMapBuilder(item); + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item) { + public A setToItems(Integer index, V1ConfigMap item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder = - new io.kubernetes.client.openapi.models.V1ConfigMapBuilder(item); + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ConfigMap item : items) { - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder = - new io.kubernetes.client.openapi.models.V1ConfigMapBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ConfigMap item : items) { - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder = - new io.kubernetes.client.openapi.models.V1ConfigMapBuilder(item); + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1ConfigMap item : items) { - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder = - new io.kubernetes.client.openapi.models.V1ConfigMapBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder = each.next(); + V1ConfigMapBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ConfigMap buildItem(java.lang.Integer index) { + public V1ConfigMap buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ConfigMap buildFirstItem() { + public V1ConfigMap buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ConfigMap buildLastItem() { + public V1ConfigMap buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ConfigMap buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConfigMapBuilder item : items) { + public V1ConfigMap buildMatchingItem(Predicate predicate) { + for (V1ConfigMapBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ConfigMap buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConfigMapBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ConfigMapBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ConfigMap item : items) { + this.items = new ArrayList(); + for (V1ConfigMap item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ConfigMap item : items) { + for (V1ConfigMap item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1ConfigMapListFluent.ItemsNested addNewItem() { return new V1ConfigMapListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ConfigMap item) { + public V1ConfigMapListFluent.ItemsNested addNewItemLike(V1ConfigMap item) { return new V1ConfigMapListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item) { - return new io.kubernetes.client.openapi.models.V1ConfigMapListFluentImpl.ItemsNestedImpl( - index, item); + public V1ConfigMapListFluent.ItemsNested setNewItemLike(Integer index, V1ConfigMap item) { + return new V1ConfigMapListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ConfigMapListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editFirstItem() { + public V1ConfigMapListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editLastItem() { + public V1ConfigMapListFluent.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 io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ConfigMapListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1ConfigMapListFluent.MetadataNested withNewMetadata() { return new V1ConfigMapListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ConfigMapListFluentImpl.MetadataNestedImpl( - item); + public V1ConfigMapListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ConfigMapListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - editMetadata() { + public V1ConfigMapListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - editOrNewMetadata() { + public V1ConfigMapListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ConfigMapListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -389,18 +363,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ConfigMapFluentImpl> implements V1ConfigMapListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1ConfigMap item) { + ItemsNestedImpl(Integer index, V1ConfigMap item) { this.index = index; this.builder = new V1ConfigMapBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ConfigMapBuilder(this); + this.builder = new V1ConfigMapBuilder(this); } - io.kubernetes.client.openapi.models.V1ConfigMapBuilder builder; - java.lang.Integer index; + V1ConfigMapBuilder builder; + Integer index; public N and() { return (N) V1ConfigMapListFluentImpl.this.setToItems(index, builder.build()); @@ -412,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ConfigMapListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ConfigMapListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ConfigMapListFluentImpl.this.withMetadata(builder.build()); 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 c8e4e1965b..0990097605 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 @@ -16,9 +16,7 @@ public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluentImpl - implements VisitableBuilder< - V1ConfigMapNodeConfigSource, - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceBuilder> { + implements VisitableBuilder { public V1ConfigMapNodeConfigSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent f } public V1ConfigMapNodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ConfigMapNodeConfigSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMapNodeConfigSource(), validationEnabled); } public V1ConfigMapNodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource instance) { + V1ConfigMapNodeConfigSourceFluent fluent, V1ConfigMapNodeConfigSource instance) { this(fluent, instance, false); } public V1ConfigMapNodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapNodeConfigSourceFluent fluent, + V1ConfigMapNodeConfigSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKubeletConfigKey(instance.getKubeletConfigKey()); @@ -61,14 +57,12 @@ public V1ConfigMapNodeConfigSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapNodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource instance) { + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance) { this(instance, false); } public V1ConfigMapNodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapNodeConfigSource instance, Boolean validationEnabled) { this.fluent = this; this.withKubeletConfigKey(instance.getKubeletConfigKey()); @@ -83,10 +77,10 @@ public V1ConfigMapNodeConfigSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapNodeConfigSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource build() { + public V1ConfigMapNodeConfigSource build() { V1ConfigMapNodeConfigSource buildable = new V1ConfigMapNodeConfigSource(); buildable.setKubeletConfigKey(fluent.getKubeletConfigKey()); buildable.setName(fluent.getName()); 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 72dd16b55d..d26a98fd57 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 @@ -19,31 +19,31 @@ public interface V1ConfigMapNodeConfigSourceFluent { public String getKubeletConfigKey(); - public A withKubeletConfigKey(java.lang.String kubeletConfigKey); + public A withKubeletConfigKey(String kubeletConfigKey); public Boolean hasKubeletConfigKey(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public java.lang.String getResourceVersion(); + public String getResourceVersion(); - public A withResourceVersion(java.lang.String resourceVersion); + public A withResourceVersion(String resourceVersion); - public java.lang.Boolean hasResourceVersion(); + public Boolean hasResourceVersion(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java index 1d9d5e183c..31707c8440 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1ConfigMapNodeConfigSourceFluentImpl implements V1ConfigMapNodeConfigSourceFluent { public V1ConfigMapNodeConfigSourceFluentImpl() {} - public V1ConfigMapNodeConfigSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource instance) { + public V1ConfigMapNodeConfigSourceFluentImpl(V1ConfigMapNodeConfigSource instance) { this.withKubeletConfigKey(instance.getKubeletConfigKey()); this.withName(instance.getName()); @@ -34,16 +33,16 @@ public V1ConfigMapNodeConfigSourceFluentImpl( } private String kubeletConfigKey; - private java.lang.String name; - private java.lang.String namespace; - private java.lang.String resourceVersion; - private java.lang.String uid; + private String name; + private String namespace; + private String resourceVersion; + private String uid; - public java.lang.String getKubeletConfigKey() { + public String getKubeletConfigKey() { return this.kubeletConfigKey; } - public A withKubeletConfigKey(java.lang.String kubeletConfigKey) { + public A withKubeletConfigKey(String kubeletConfigKey) { this.kubeletConfigKey = kubeletConfigKey; return (A) this; } @@ -52,55 +51,55 @@ public Boolean hasKubeletConfigKey() { return this.kubeletConfigKey != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.String getResourceVersion() { + public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(java.lang.String resourceVersion) { + public A withResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return (A) this; } - public java.lang.Boolean hasResourceVersion() { + public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -126,7 +125,7 @@ public int hashCode() { kubeletConfigKey, name, namespace, resourceVersion, uid, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (kubeletConfigKey != null) { 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 b5ed61d2a2..71a10df971 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 @@ -16,8 +16,7 @@ public class V1ConfigMapProjectionBuilder extends V1ConfigMapProjectionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ConfigMapProjection, V1ConfigMapProjectionBuilder> { + implements VisitableBuilder { public V1ConfigMapProjectionBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent) { } public V1ConfigMapProjectionBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent fluent, - java.lang.Boolean validationEnabled) { + V1ConfigMapProjectionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMapProjection(), validationEnabled); } public V1ConfigMapProjectionBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapProjection instance) { + V1ConfigMapProjectionFluent fluent, V1ConfigMapProjection instance) { this(fluent, instance, false); } public V1ConfigMapProjectionBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapProjection instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapProjectionFluent fluent, + V1ConfigMapProjection instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withItems(instance.getItems()); @@ -56,14 +53,11 @@ public V1ConfigMapProjectionBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapProjectionBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapProjection instance) { + public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance) { this(instance, false); } - public V1ConfigMapProjectionBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapProjection instance, - java.lang.Boolean validationEnabled) { + public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance, Boolean validationEnabled) { this.fluent = this; this.withItems(instance.getItems()); @@ -74,10 +68,10 @@ public V1ConfigMapProjectionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapProjectionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMapProjection build() { + public V1ConfigMapProjection build() { V1ConfigMapProjection buildable = new V1ConfigMapProjection(); buildable.setItems(fluent.getItems()); buildable.setName(fluent.getName()); 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 cfaa91a2f6..a640244c83 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 @@ -23,17 +23,15 @@ public interface V1ConfigMapProjectionFluent { public A addToItems(Integer index, V1KeyToPath item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public A setToItems(Integer index, V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -43,63 +41,52 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index); + public V1KeyToPath buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem(); + public V1KeyToPath buildFirstItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem(); + public V1KeyToPath buildLastItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate); + public V1KeyToPath buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ConfigMapProjectionFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1ConfigMapProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - setNewItemLike(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1ConfigMapProjectionFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ConfigMapProjectionFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - editFirstItem(); + public V1ConfigMapProjectionFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - editLastItem(); + public V1ConfigMapProjectionFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1ConfigMapProjectionFluent.ItemsNested editMatchingItem( + Predicate predicate); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java index 670ee47fc7..3a93a278b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluentImpl.java @@ -26,8 +26,7 @@ public class V1ConfigMapProjectionFluentImpl implements V1ConfigMapProjectionFluent { public V1ConfigMapProjectionFluentImpl() {} - public V1ConfigMapProjectionFluentImpl( - io.kubernetes.client.openapi.models.V1ConfigMapProjection instance) { + public V1ConfigMapProjectionFluentImpl(V1ConfigMapProjection instance) { this.withItems(instance.getItems()); this.withName(instance.getName()); @@ -41,24 +40,19 @@ public V1ConfigMapProjectionFluentImpl( public A addToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + public A setToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -74,26 +68,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -101,9 +91,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -125,13 +112,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = each.next(); + V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -146,30 +132,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index) { + public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem() { + public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem() { + public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public V1KeyToPath buildMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -177,10 +161,8 @@ public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return true; } @@ -188,13 +170,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { this.addToItems(item); } } else { @@ -208,14 +190,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + for (V1KeyToPath item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -223,41 +205,33 @@ public V1ConfigMapProjectionFluent.ItemsNested addNewItem() { return new V1ConfigMapProjectionFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1KeyToPath item) { + public V1ConfigMapProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1ConfigMapProjectionFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { - return new io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluentImpl.ItemsNestedImpl( - index, item); + public V1ConfigMapProjectionFluent.ItemsNested setNewItemLike( + Integer index, V1KeyToPath item) { + return new V1ConfigMapProjectionFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ConfigMapProjectionFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - editFirstItem() { + public V1ConfigMapProjectionFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - editLastItem() { + public V1ConfigMapProjectionFluent.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 io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ConfigMapProjectionFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -269,29 +243,29 @@ public io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNest return setNewItemLike(index, buildItem(index)); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -309,7 +283,7 @@ public int hashCode() { return java.util.Objects.hash(items, name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (items != null && !items.isEmpty()) { @@ -333,20 +307,19 @@ public A withOptional() { } class ItemsNestedImpl extends V1KeyToPathFluentImpl> - implements io.kubernetes.client.openapi.models.V1ConfigMapProjectionFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + implements V1ConfigMapProjectionFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(this); + this.builder = new V1KeyToPathBuilder(this); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder; - java.lang.Integer index; + V1KeyToPathBuilder builder; + Integer index; public N and() { return (N) V1ConfigMapProjectionFluentImpl.this.setToItems(index, builder.build()); 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 4b76d1769d..a8e16a9550 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 @@ -16,9 +16,7 @@ public class V1ConfigMapVolumeSourceBuilder extends V1ConfigMapVolumeSourceFluentImpl - implements VisitableBuilder< - V1ConfigMapVolumeSource, - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceBuilder> { + implements VisitableBuilder { public V1ConfigMapVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent) { } public V1ConfigMapVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ConfigMapVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ConfigMapVolumeSource(), validationEnabled); } public V1ConfigMapVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource instance) { + V1ConfigMapVolumeSourceFluent fluent, V1ConfigMapVolumeSource instance) { this(fluent, instance, false); } public V1ConfigMapVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapVolumeSourceFluent fluent, + V1ConfigMapVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); @@ -59,14 +55,12 @@ public V1ConfigMapVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ConfigMapVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource instance) { + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSource instance) { this(instance, false); } public V1ConfigMapVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ConfigMapVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); @@ -79,10 +73,10 @@ public V1ConfigMapVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ConfigMapVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource build() { + public V1ConfigMapVolumeSource build() { V1ConfigMapVolumeSource buildable = new V1ConfigMapVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); buildable.setItems(fluent.getItems()); 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 a286ebf439..6c44a00a84 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 @@ -23,23 +23,21 @@ public interface V1ConfigMapVolumeSourceFluent { public Integer getDefaultMode(); - public A withDefaultMode(java.lang.Integer defaultMode); + public A withDefaultMode(Integer defaultMode); public Boolean hasDefaultMode(); - public A addToItems(java.lang.Integer index, V1KeyToPath item); + public A addToItems(Integer index, V1KeyToPath item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public A setToItems(Integer index, V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,63 +47,53 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index); + public V1KeyToPath buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem(); + public V1KeyToPath buildFirstItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem(); + public V1KeyToPath buildLastItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate); + public V1KeyToPath buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - setNewItemLike(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1ConfigMapVolumeSourceFluent.ItemsNested setNewItemLike( + Integer index, V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ConfigMapVolumeSourceFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - editFirstItem(); + public V1ConfigMapVolumeSourceFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - editLastItem(); + public V1ConfigMapVolumeSourceFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1ConfigMapVolumeSourceFluent.ItemsNested editMatchingItem( + Predicate predicate); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java index a582cb85a9..6f76d034ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluentImpl.java @@ -26,8 +26,7 @@ public class V1ConfigMapVolumeSourceFluentImpl implements V1ConfigMapVolumeSourceFluent { public V1ConfigMapVolumeSourceFluentImpl() {} - public V1ConfigMapVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource instance) { + public V1ConfigMapVolumeSourceFluentImpl(V1ConfigMapVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); @@ -42,39 +41,34 @@ public V1ConfigMapVolumeSourceFluentImpl( private String name; private Boolean optional; - public java.lang.Integer getDefaultMode() { + public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(java.lang.Integer defaultMode) { + public A withDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; return (A) this; } - public java.lang.Boolean hasDefaultMode() { + public Boolean hasDefaultMode() { return this.defaultMode != null; } - public A addToItems(java.lang.Integer index, V1KeyToPath item) { + public A addToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + public A setToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = each.next(); + V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index) { + public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem() { + public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem() { + public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public V1KeyToPath buildMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + for (V1KeyToPath item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,41 +221,33 @@ public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItem() { return new V1ConfigMapVolumeSourceFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1KeyToPath item) { + public V1ConfigMapVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1ConfigMapVolumeSourceFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { - return new io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluentImpl - .ItemsNestedImpl(index, item); + public V1ConfigMapVolumeSourceFluent.ItemsNested setNewItemLike( + Integer index, V1KeyToPath item) { + return new V1ConfigMapVolumeSourceFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ConfigMapVolumeSourceFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - editFirstItem() { + public V1ConfigMapVolumeSourceFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - editLastItem() { + public V1ConfigMapVolumeSourceFluent.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 io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ConfigMapVolumeSourceFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,29 +259,29 @@ public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNe return setNewItemLike(index, buildItem(index)); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -327,7 +301,7 @@ public int hashCode() { return java.util.Objects.hash(defaultMode, items, name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (defaultMode != null) { @@ -356,20 +330,19 @@ public A withOptional() { class ItemsNestedImpl extends V1KeyToPathFluentImpl> - implements io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + implements V1ConfigMapVolumeSourceFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(this); + this.builder = new V1KeyToPathBuilder(this); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder; - java.lang.Integer index; + V1KeyToPathBuilder builder; + Integer index; public N and() { return (N) V1ConfigMapVolumeSourceFluentImpl.this.setToItems(index, builder.build()); 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 a08ab29e90..520b69c5c3 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ContainerBuilder extends V1ContainerFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Container, - io.kubernetes.client.openapi.models.V1ContainerBuilder> { + implements VisitableBuilder { public V1ContainerBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ContainerBuilder(V1ContainerFluent fluent) { this(fluent, false); } - public V1ContainerBuilder( - io.kubernetes.client.openapi.models.V1ContainerFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ContainerBuilder(V1ContainerFluent fluent, Boolean validationEnabled) { this(fluent, new V1Container(), validationEnabled); } - public V1ContainerBuilder( - io.kubernetes.client.openapi.models.V1ContainerFluent fluent, - io.kubernetes.client.openapi.models.V1Container instance) { + public V1ContainerBuilder(V1ContainerFluent fluent, V1Container instance) { this(fluent, instance, false); } public V1ContainerBuilder( - io.kubernetes.client.openapi.models.V1ContainerFluent fluent, - io.kubernetes.client.openapi.models.V1Container instance, - java.lang.Boolean validationEnabled) { + V1ContainerFluent fluent, V1Container instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withArgs(instance.getArgs()); @@ -94,13 +86,11 @@ public V1ContainerBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerBuilder(io.kubernetes.client.openapi.models.V1Container instance) { + public V1ContainerBuilder(V1Container instance) { this(instance, false); } - public V1ContainerBuilder( - io.kubernetes.client.openapi.models.V1Container instance, - java.lang.Boolean validationEnabled) { + public V1ContainerBuilder(V1Container instance, Boolean validationEnabled) { this.fluent = this; this.withArgs(instance.getArgs()); @@ -149,10 +139,10 @@ public V1ContainerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Container build() { + public V1Container build() { V1Container buildable = new V1Container(); buildable.setArgs(fluent.getArgs()); buildable.setCommand(fluent.getCommand()); 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 5ffe91dc2d..1766bf6e8b 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 @@ -22,80 +22,77 @@ public interface V1ContainerFluent> extends Fluent { public A addToArgs(Integer index, String item); - public A setToArgs(java.lang.Integer index, java.lang.String item); + public A setToArgs(Integer index, String item); public A addToArgs(java.lang.String... items); - public A addAllToArgs(Collection items); + public A addAllToArgs(Collection items); public A removeFromArgs(java.lang.String... items); - public A removeAllFromArgs(java.util.Collection items); + public A removeAllFromArgs(Collection items); - public List getArgs(); + public List getArgs(); - public java.lang.String getArg(java.lang.Integer index); + public String getArg(Integer index); - public java.lang.String getFirstArg(); + public String getFirstArg(); - public java.lang.String getLastArg(); + public String getLastArg(); - public java.lang.String getMatchingArg(Predicate predicate); + public String getMatchingArg(Predicate predicate); - public Boolean hasMatchingArg(java.util.function.Predicate predicate); + public Boolean hasMatchingArg(Predicate predicate); - public A withArgs(java.util.List args); + public A withArgs(List args); public A withArgs(java.lang.String... args); - public java.lang.Boolean hasArgs(); + public Boolean hasArgs(); - public A addToCommand(java.lang.Integer index, java.lang.String item); + public A addToCommand(Integer index, String item); - public A setToCommand(java.lang.Integer index, java.lang.String item); + public A setToCommand(Integer index, String item); public A addToCommand(java.lang.String... items); - public A addAllToCommand(java.util.Collection items); + public A addAllToCommand(Collection items); public A removeFromCommand(java.lang.String... items); - public A removeAllFromCommand(java.util.Collection items); + public A removeAllFromCommand(Collection items); - public java.util.List getCommand(); + public List getCommand(); - public java.lang.String getCommand(java.lang.Integer index); + public String getCommand(Integer index); - public java.lang.String getFirstCommand(); + public String getFirstCommand(); - public java.lang.String getLastCommand(); + public String getLastCommand(); - public java.lang.String getMatchingCommand( - java.util.function.Predicate predicate); + public String getMatchingCommand(Predicate predicate); - public java.lang.Boolean hasMatchingCommand( - java.util.function.Predicate predicate); + public Boolean hasMatchingCommand(Predicate predicate); - public A withCommand(java.util.List command); + public A withCommand(List command); public A withCommand(java.lang.String... command); - public java.lang.Boolean hasCommand(); + public Boolean hasCommand(); - public A addToEnv(java.lang.Integer index, V1EnvVar item); + public A addToEnv(Integer index, V1EnvVar item); - public A setToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item); + public A setToEnv(Integer index, V1EnvVar item); public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A addAllToEnv(java.util.Collection items); + public A addAllToEnv(Collection items); public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A removeAllFromEnv( - java.util.Collection items); + public A removeAllFromEnv(Collection items); - public A removeMatchingFromEnv(java.util.function.Predicate predicate); + public A removeMatchingFromEnv(Predicate predicate); /** * This method has been deprecated, please use method buildEnv instead. @@ -103,545 +100,461 @@ public A removeAllFromEnv( * @return The buildable object. */ @Deprecated - public java.util.List getEnv(); + public List getEnv(); - public java.util.List buildEnv(); + public List buildEnv(); - public io.kubernetes.client.openapi.models.V1EnvVar buildEnv(java.lang.Integer index); + public V1EnvVar buildEnv(Integer index); - public io.kubernetes.client.openapi.models.V1EnvVar buildFirstEnv(); + public V1EnvVar buildFirstEnv(); - public io.kubernetes.client.openapi.models.V1EnvVar buildLastEnv(); + public V1EnvVar buildLastEnv(); - public io.kubernetes.client.openapi.models.V1EnvVar buildMatchingEnv( - java.util.function.Predicate predicate); + public V1EnvVar buildMatchingEnv(Predicate predicate); - public java.lang.Boolean hasMatchingEnv( - java.util.function.Predicate predicate); + public Boolean hasMatchingEnv(Predicate predicate); - public A withEnv(java.util.List env); + public A withEnv(List env); public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env); - public java.lang.Boolean hasEnv(); + public Boolean hasEnv(); public V1ContainerFluent.EnvNested addNewEnv(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested addNewEnvLike( - io.kubernetes.client.openapi.models.V1EnvVar item); + public V1ContainerFluent.EnvNested addNewEnvLike(V1EnvVar item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested setNewEnvLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item); + public V1ContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editEnv( - java.lang.Integer index); + public V1ContainerFluent.EnvNested editEnv(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editFirstEnv(); + public V1ContainerFluent.EnvNested editFirstEnv(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editLastEnv(); + public V1ContainerFluent.EnvNested editLastEnv(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editMatchingEnv( - java.util.function.Predicate predicate); + public V1ContainerFluent.EnvNested editMatchingEnv(Predicate predicate); - public A addToEnvFrom(java.lang.Integer index, V1EnvFromSource item); + public A addToEnvFrom(Integer index, V1EnvFromSource item); - public A setToEnvFrom( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item); + public A setToEnvFrom(Integer index, V1EnvFromSource item); public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A addAllToEnvFrom( - java.util.Collection items); + public A addAllToEnvFrom(Collection items); public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A removeAllFromEnvFrom( - java.util.Collection items); + public A removeAllFromEnvFrom(Collection items); - public A removeMatchingFromEnvFrom( - java.util.function.Predicate predicate); + public A removeMatchingFromEnvFrom(Predicate predicate); /** * This method has been deprecated, please use method buildEnvFrom instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getEnvFrom(); + @Deprecated + public List getEnvFrom(); - public java.util.List buildEnvFrom(); + public List buildEnvFrom(); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildEnvFrom(java.lang.Integer index); + public V1EnvFromSource buildEnvFrom(Integer index); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildFirstEnvFrom(); + public V1EnvFromSource buildFirstEnvFrom(); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildLastEnvFrom(); + public V1EnvFromSource buildLastEnvFrom(); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildMatchingEnvFrom( - java.util.function.Predicate - predicate); + public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate); - public java.lang.Boolean hasMatchingEnvFrom( - java.util.function.Predicate - predicate); + public Boolean hasMatchingEnvFrom(Predicate predicate); - public A withEnvFrom(java.util.List envFrom); + public A withEnvFrom(List envFrom); public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom); - public java.lang.Boolean hasEnvFrom(); + public Boolean hasEnvFrom(); public V1ContainerFluent.EnvFromNested addNewEnvFrom(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested addNewEnvFromLike( - io.kubernetes.client.openapi.models.V1EnvFromSource item); + public V1ContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested setNewEnvFromLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item); + public V1ContainerFluent.EnvFromNested setNewEnvFromLike(Integer index, V1EnvFromSource item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editEnvFrom( - java.lang.Integer index); + public V1ContainerFluent.EnvFromNested editEnvFrom(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editFirstEnvFrom(); + public V1ContainerFluent.EnvFromNested editFirstEnvFrom(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editLastEnvFrom(); + public V1ContainerFluent.EnvFromNested editLastEnvFrom(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editMatchingEnvFrom( - java.util.function.Predicate - predicate); + public V1ContainerFluent.EnvFromNested editMatchingEnvFrom( + Predicate predicate); - public java.lang.String getImage(); + public String getImage(); - public A withImage(java.lang.String image); + public A withImage(String image); - public java.lang.Boolean hasImage(); + public Boolean hasImage(); - public java.lang.String getImagePullPolicy(); + public String getImagePullPolicy(); - public A withImagePullPolicy(java.lang.String imagePullPolicy); + public A withImagePullPolicy(String imagePullPolicy); - public java.lang.Boolean hasImagePullPolicy(); + public Boolean hasImagePullPolicy(); /** * This method has been deprecated, please use method buildLifecycle instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1Lifecycle getLifecycle(); - public io.kubernetes.client.openapi.models.V1Lifecycle buildLifecycle(); + public V1Lifecycle buildLifecycle(); - public A withLifecycle(io.kubernetes.client.openapi.models.V1Lifecycle lifecycle); + public A withLifecycle(V1Lifecycle lifecycle); - public java.lang.Boolean hasLifecycle(); + public Boolean hasLifecycle(); public V1ContainerFluent.LifecycleNested withNewLifecycle(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested - withNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item); + public V1ContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested editLifecycle(); + public V1ContainerFluent.LifecycleNested editLifecycle(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested - editOrNewLifecycle(); + public V1ContainerFluent.LifecycleNested editOrNewLifecycle(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested - editOrNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item); + public V1ContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item); /** * This method has been deprecated, please use method buildLivenessProbe instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1Probe getLivenessProbe(); - public io.kubernetes.client.openapi.models.V1Probe buildLivenessProbe(); + public V1Probe buildLivenessProbe(); - public A withLivenessProbe(io.kubernetes.client.openapi.models.V1Probe livenessProbe); + public A withLivenessProbe(V1Probe livenessProbe); - public java.lang.Boolean hasLivenessProbe(); + public Boolean hasLivenessProbe(); public V1ContainerFluent.LivenessProbeNested withNewLivenessProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - withNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1ContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - editLivenessProbe(); + public V1ContainerFluent.LivenessProbeNested editLivenessProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - editOrNewLivenessProbe(); + public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - editOrNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public A addToPorts(java.lang.Integer index, V1ContainerPort item); + public A addToPorts(Integer index, V1ContainerPort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item); + public A setToPorts(Integer index, V1ContainerPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A addAllToPorts( - java.util.Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(java.util.function.Predicate predicate); + public A removeMatchingFromPorts(Predicate predicate); /** * This method has been deprecated, please use method buildPorts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts(); + @Deprecated + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.V1ContainerPort buildPort(java.lang.Integer index); + public V1ContainerPort buildPort(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerPort buildFirstPort(); + public V1ContainerPort buildFirstPort(); - public io.kubernetes.client.openapi.models.V1ContainerPort buildLastPort(); + public V1ContainerPort buildLastPort(); - public io.kubernetes.client.openapi.models.V1ContainerPort buildMatchingPort( - java.util.function.Predicate - predicate); + public V1ContainerPort buildMatchingPort(Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1ContainerFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.V1ContainerPort item); + public V1ContainerFluent.PortsNested addNewPortLike(V1ContainerPort item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item); + public V1ContainerFluent.PortsNested setNewPortLike(Integer index, V1ContainerPort item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editPort( - java.lang.Integer index); + public V1ContainerFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editFirstPort(); + public V1ContainerFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editLastPort(); + public V1ContainerFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editMatchingPort( - java.util.function.Predicate - predicate); + public V1ContainerFluent.PortsNested editMatchingPort( + Predicate predicate); /** * This method has been deprecated, please use method buildReadinessProbe instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getReadinessProbe(); + @Deprecated + public V1Probe getReadinessProbe(); - public io.kubernetes.client.openapi.models.V1Probe buildReadinessProbe(); + public V1Probe buildReadinessProbe(); - public A withReadinessProbe(io.kubernetes.client.openapi.models.V1Probe readinessProbe); + public A withReadinessProbe(V1Probe readinessProbe); - public java.lang.Boolean hasReadinessProbe(); + public Boolean hasReadinessProbe(); public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - withNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - editReadinessProbe(); + public V1ContainerFluent.ReadinessProbeNested editReadinessProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - editOrNewReadinessProbe(); + public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - editOrNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item); /** * This method has been deprecated, please use method buildResources instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceRequirements getResources(); - public io.kubernetes.client.openapi.models.V1ResourceRequirements buildResources(); + public V1ResourceRequirements buildResources(); - public A withResources(io.kubernetes.client.openapi.models.V1ResourceRequirements resources); + public A withResources(V1ResourceRequirements resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); public V1ContainerFluent.ResourcesNested withNewResources(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested - withNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item); + public V1ContainerFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested editResources(); + public V1ContainerFluent.ResourcesNested editResources(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested - editOrNewResources(); + public V1ContainerFluent.ResourcesNested editOrNewResources(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested - editOrNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item); + public V1ContainerFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item); /** * This method has been deprecated, please use method buildSecurityContext instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecurityContext getSecurityContext(); - public io.kubernetes.client.openapi.models.V1SecurityContext buildSecurityContext(); + public V1SecurityContext buildSecurityContext(); - public A withSecurityContext( - io.kubernetes.client.openapi.models.V1SecurityContext securityContext); + public A withSecurityContext(V1SecurityContext securityContext); - public java.lang.Boolean hasSecurityContext(); + public Boolean hasSecurityContext(); public V1ContainerFluent.SecurityContextNested withNewSecurityContext(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - withNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item); + public V1ContainerFluent.SecurityContextNested withNewSecurityContextLike( + V1SecurityContext item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - editSecurityContext(); + public V1ContainerFluent.SecurityContextNested editSecurityContext(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - editOrNewSecurityContext(); + public V1ContainerFluent.SecurityContextNested editOrNewSecurityContext(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - editOrNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item); + public V1ContainerFluent.SecurityContextNested editOrNewSecurityContextLike( + V1SecurityContext item); /** * This method has been deprecated, please use method buildStartupProbe instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getStartupProbe(); + @Deprecated + public V1Probe getStartupProbe(); - public io.kubernetes.client.openapi.models.V1Probe buildStartupProbe(); + public V1Probe buildStartupProbe(); - public A withStartupProbe(io.kubernetes.client.openapi.models.V1Probe startupProbe); + public A withStartupProbe(V1Probe startupProbe); - public java.lang.Boolean hasStartupProbe(); + public Boolean hasStartupProbe(); public V1ContainerFluent.StartupProbeNested withNewStartupProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - withNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1ContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - editStartupProbe(); + public V1ContainerFluent.StartupProbeNested editStartupProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - editOrNewStartupProbe(); + public V1ContainerFluent.StartupProbeNested editOrNewStartupProbe(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - editOrNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1ContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item); - public java.lang.Boolean getStdin(); + public Boolean getStdin(); - public A withStdin(java.lang.Boolean stdin); + public A withStdin(Boolean stdin); - public java.lang.Boolean hasStdin(); + public Boolean hasStdin(); - public java.lang.Boolean getStdinOnce(); + public Boolean getStdinOnce(); - public A withStdinOnce(java.lang.Boolean stdinOnce); + public A withStdinOnce(Boolean stdinOnce); - public java.lang.Boolean hasStdinOnce(); + public Boolean hasStdinOnce(); - public java.lang.String getTerminationMessagePath(); + public String getTerminationMessagePath(); - public A withTerminationMessagePath(java.lang.String terminationMessagePath); + public A withTerminationMessagePath(String terminationMessagePath); - public java.lang.Boolean hasTerminationMessagePath(); + public Boolean hasTerminationMessagePath(); - public java.lang.String getTerminationMessagePolicy(); + public String getTerminationMessagePolicy(); - public A withTerminationMessagePolicy(java.lang.String terminationMessagePolicy); + public A withTerminationMessagePolicy(String terminationMessagePolicy); - public java.lang.Boolean hasTerminationMessagePolicy(); + public Boolean hasTerminationMessagePolicy(); - public java.lang.Boolean getTty(); + public Boolean getTty(); - public A withTty(java.lang.Boolean tty); + public A withTty(Boolean tty); - public java.lang.Boolean hasTty(); + public Boolean hasTty(); - public A addToVolumeDevices(java.lang.Integer index, V1VolumeDevice item); + public A addToVolumeDevices(Integer index, V1VolumeDevice item); - public A setToVolumeDevices( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item); + public A setToVolumeDevices(Integer index, V1VolumeDevice item); public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A addAllToVolumeDevices( - java.util.Collection items); + public A addAllToVolumeDevices(Collection items); public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A removeAllFromVolumeDevices( - java.util.Collection items); + public A removeAllFromVolumeDevices(Collection items); - public A removeMatchingFromVolumeDevices( - java.util.function.Predicate predicate); + public A removeMatchingFromVolumeDevices(Predicate predicate); /** * This method has been deprecated, please use method buildVolumeDevices instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeDevices(); + @Deprecated + public List getVolumeDevices(); - public java.util.List buildVolumeDevices(); + public List buildVolumeDevices(); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildVolumeDevice( - java.lang.Integer index); + public V1VolumeDevice buildVolumeDevice(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildFirstVolumeDevice(); + public V1VolumeDevice buildFirstVolumeDevice(); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildLastVolumeDevice(); + public V1VolumeDevice buildLastVolumeDevice(); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildMatchingVolumeDevice( - java.util.function.Predicate - predicate); + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate); - public java.lang.Boolean hasMatchingVolumeDevice( - java.util.function.Predicate - predicate); + public Boolean hasMatchingVolumeDevice(Predicate predicate); - public A withVolumeDevices( - java.util.List volumeDevices); + public A withVolumeDevices(List volumeDevices); public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices); - public java.lang.Boolean hasVolumeDevices(); + public Boolean hasVolumeDevices(); public V1ContainerFluent.VolumeDevicesNested addNewVolumeDevice(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - addNewVolumeDeviceLike(io.kubernetes.client.openapi.models.V1VolumeDevice item); + public V1ContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - setNewVolumeDeviceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item); + public V1ContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( + Integer index, V1VolumeDevice item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editVolumeDevice(java.lang.Integer index); + public V1ContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editFirstVolumeDevice(); + public V1ContainerFluent.VolumeDevicesNested editFirstVolumeDevice(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editLastVolumeDevice(); + public V1ContainerFluent.VolumeDevicesNested editLastVolumeDevice(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editMatchingVolumeDevice( - java.util.function.Predicate - predicate); + public V1ContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( + Predicate predicate); - public A addToVolumeMounts(java.lang.Integer index, V1VolumeMount item); + public A addToVolumeMounts(Integer index, V1VolumeMount item); - public A setToVolumeMounts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item); + public A setToVolumeMounts(Integer index, V1VolumeMount item); public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A addAllToVolumeMounts( - java.util.Collection items); + public A addAllToVolumeMounts(Collection items); public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A removeAllFromVolumeMounts( - java.util.Collection items); + public A removeAllFromVolumeMounts(Collection items); - public A removeMatchingFromVolumeMounts( - java.util.function.Predicate predicate); + public A removeMatchingFromVolumeMounts(Predicate predicate); /** * This method has been deprecated, please use method buildVolumeMounts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeMounts(); + @Deprecated + public List getVolumeMounts(); - public java.util.List buildVolumeMounts(); + public List buildVolumeMounts(); - public io.kubernetes.client.openapi.models.V1VolumeMount buildVolumeMount( - java.lang.Integer index); + public V1VolumeMount buildVolumeMount(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeMount buildFirstVolumeMount(); + public V1VolumeMount buildFirstVolumeMount(); - public io.kubernetes.client.openapi.models.V1VolumeMount buildLastVolumeMount(); + public V1VolumeMount buildLastVolumeMount(); - public io.kubernetes.client.openapi.models.V1VolumeMount buildMatchingVolumeMount( - java.util.function.Predicate - predicate); + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate); - public java.lang.Boolean hasMatchingVolumeMount( - java.util.function.Predicate - predicate); + public Boolean hasMatchingVolumeMount(Predicate predicate); - public A withVolumeMounts( - java.util.List volumeMounts); + public A withVolumeMounts(List volumeMounts); public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts); - public java.lang.Boolean hasVolumeMounts(); + public Boolean hasVolumeMounts(); public V1ContainerFluent.VolumeMountsNested addNewVolumeMount(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - addNewVolumeMountLike(io.kubernetes.client.openapi.models.V1VolumeMount item); + public V1ContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - setNewVolumeMountLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item); + public V1ContainerFluent.VolumeMountsNested setNewVolumeMountLike( + Integer index, V1VolumeMount item); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editVolumeMount(java.lang.Integer index); + public V1ContainerFluent.VolumeMountsNested editVolumeMount(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editFirstVolumeMount(); + public V1ContainerFluent.VolumeMountsNested editFirstVolumeMount(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editLastVolumeMount(); + public V1ContainerFluent.VolumeMountsNested editLastVolumeMount(); - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editMatchingVolumeMount( - java.util.function.Predicate - predicate); + public V1ContainerFluent.VolumeMountsNested editMatchingVolumeMount( + Predicate predicate); - public java.lang.String getWorkingDir(); + public String getWorkingDir(); - public A withWorkingDir(java.lang.String workingDir); + public A withWorkingDir(String workingDir); - public java.lang.Boolean hasWorkingDir(); + public Boolean hasWorkingDir(); public A withStdin(); @@ -656,80 +569,70 @@ public interface EnvNested extends Nested, V1EnvVarFluent - extends io.kubernetes.client.fluent.Nested, - V1EnvFromSourceFluent> { + extends Nested, V1EnvFromSourceFluent> { public N and(); public N endEnvFrom(); } public interface LifecycleNested - extends io.kubernetes.client.fluent.Nested, - V1LifecycleFluent> { + extends Nested, V1LifecycleFluent> { public N and(); public N endLifecycle(); } public interface LivenessProbeNested - extends io.kubernetes.client.fluent.Nested, - V1ProbeFluent> { + extends Nested, V1ProbeFluent> { public N and(); public N endLivenessProbe(); } public interface PortsNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerPortFluent> { + extends Nested, V1ContainerPortFluent> { public N and(); public N endPort(); } public interface ReadinessProbeNested - extends io.kubernetes.client.fluent.Nested, - V1ProbeFluent> { + extends Nested, V1ProbeFluent> { public N and(); public N endReadinessProbe(); } public interface ResourcesNested - extends io.kubernetes.client.fluent.Nested, - V1ResourceRequirementsFluent> { + extends Nested, V1ResourceRequirementsFluent> { public N and(); public N endResources(); } public interface SecurityContextNested - extends io.kubernetes.client.fluent.Nested, - V1SecurityContextFluent> { + extends Nested, V1SecurityContextFluent> { public N and(); public N endSecurityContext(); } public interface StartupProbeNested - extends io.kubernetes.client.fluent.Nested, - V1ProbeFluent> { + extends Nested, V1ProbeFluent> { public N and(); public N endStartupProbe(); } public interface VolumeDevicesNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeDeviceFluent> { + extends Nested, V1VolumeDeviceFluent> { public N and(); public N endVolumeDevice(); } public interface VolumeMountsNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeMountFluent> { + extends Nested, V1VolumeMountFluent> { public N and(); public N endVolumeMount(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java index 68868888cd..b1c10ccdb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluentImpl.java @@ -26,7 +26,7 @@ public class V1ContainerFluentImpl> extends BaseF implements V1ContainerFluent { public V1ContainerFluentImpl() {} - public V1ContainerFluentImpl(io.kubernetes.client.openapi.models.V1Container instance) { + public V1ContainerFluentImpl(V1Container instance) { this.withArgs(instance.getArgs()); this.withCommand(instance.getCommand()); @@ -73,39 +73,39 @@ public V1ContainerFluentImpl(io.kubernetes.client.openapi.models.V1Container ins } private List args; - private java.util.List command; + private List command; private ArrayList env; - private java.util.ArrayList envFrom; - private java.lang.String image; - private java.lang.String imagePullPolicy; + private ArrayList envFrom; + private String image; + private String imagePullPolicy; private V1LifecycleBuilder lifecycle; private V1ProbeBuilder livenessProbe; - private java.lang.String name; - private java.util.ArrayList ports; + private String name; + private ArrayList ports; private V1ProbeBuilder readinessProbe; private V1ResourceRequirementsBuilder resources; private V1SecurityContextBuilder securityContext; - private io.kubernetes.client.openapi.models.V1ProbeBuilder startupProbe; + private V1ProbeBuilder startupProbe; private Boolean stdin; - private java.lang.Boolean stdinOnce; - private java.lang.String terminationMessagePath; - private java.lang.String terminationMessagePolicy; - private java.lang.Boolean tty; - private java.util.ArrayList volumeDevices; - private java.util.ArrayList volumeMounts; - private java.lang.String workingDir; - - public A addToArgs(Integer index, java.lang.String item) { + private Boolean stdinOnce; + private String terminationMessagePath; + private String terminationMessagePolicy; + private Boolean tty; + private ArrayList volumeDevices; + private ArrayList volumeMounts; + private String workingDir; + + public A addToArgs(Integer index, String item) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } this.args.add(index, item); return (A) this; } - public A setToArgs(java.lang.Integer index, java.lang.String item) { + public A setToArgs(Integer index, String item) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } this.args.set(index, item); return (A) this; @@ -113,26 +113,26 @@ public A setToArgs(java.lang.Integer index, java.lang.String item) { public A addToArgs(java.lang.String... items) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.args.add(item); } return (A) this; } - public A addAllToArgs(Collection items) { + public A addAllToArgs(Collection items) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.args.add(item); } return (A) this; } public A removeFromArgs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.args != null) { this.args.remove(item); } @@ -140,8 +140,8 @@ public A removeFromArgs(java.lang.String... items) { return (A) this; } - public A removeAllFromArgs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromArgs(Collection items) { + for (String item : items) { if (this.args != null) { this.args.remove(item); } @@ -149,24 +149,24 @@ public A removeAllFromArgs(java.util.Collection items) { return (A) this; } - public java.util.List getArgs() { + public List getArgs() { return this.args; } - public java.lang.String getArg(java.lang.Integer index) { + public String getArg(Integer index) { return this.args.get(index); } - public java.lang.String getFirstArg() { + public String getFirstArg() { return this.args.get(0); } - public java.lang.String getLastArg() { + public String getLastArg() { return this.args.get(args.size() - 1); } - public java.lang.String getMatchingArg(Predicate predicate) { - for (java.lang.String item : args) { + public String getMatchingArg(Predicate predicate) { + for (String item : args) { if (predicate.test(item)) { return item; } @@ -174,9 +174,8 @@ public java.lang.String getMatchingArg(Predicate predicate) { return null; } - public java.lang.Boolean hasMatchingArg( - java.util.function.Predicate predicate) { - for (java.lang.String item : args) { + public Boolean hasMatchingArg(Predicate predicate) { + for (String item : args) { if (predicate.test(item)) { return true; } @@ -184,10 +183,10 @@ public java.lang.Boolean hasMatchingArg( return false; } - public A withArgs(java.util.List args) { + public A withArgs(List args) { if (args != null) { - this.args = new java.util.ArrayList(); - for (java.lang.String item : args) { + this.args = new ArrayList(); + for (String item : args) { this.addToArgs(item); } } else { @@ -201,28 +200,28 @@ public A withArgs(java.lang.String... args) { this.args.clear(); } if (args != null) { - for (java.lang.String item : args) { + for (String item : args) { this.addToArgs(item); } } return (A) this; } - public java.lang.Boolean hasArgs() { + public Boolean hasArgs() { return args != null && !args.isEmpty(); } - public A addToCommand(java.lang.Integer index, java.lang.String item) { + public A addToCommand(Integer index, String item) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } this.command.add(index, item); return (A) this; } - public A setToCommand(java.lang.Integer index, java.lang.String item) { + public A setToCommand(Integer index, String item) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } this.command.set(index, item); return (A) this; @@ -230,26 +229,26 @@ public A setToCommand(java.lang.Integer index, java.lang.String item) { public A addToCommand(java.lang.String... items) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.command.add(item); } return (A) this; } - public A addAllToCommand(java.util.Collection items) { + public A addAllToCommand(Collection items) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.command.add(item); } return (A) this; } public A removeFromCommand(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.command != null) { this.command.remove(item); } @@ -257,8 +256,8 @@ public A removeFromCommand(java.lang.String... items) { return (A) this; } - public A removeAllFromCommand(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromCommand(Collection items) { + for (String item : items) { if (this.command != null) { this.command.remove(item); } @@ -266,25 +265,24 @@ public A removeAllFromCommand(java.util.Collection items) { return (A) this; } - public java.util.List getCommand() { + public List getCommand() { return this.command; } - public java.lang.String getCommand(java.lang.Integer index) { + public String getCommand(Integer index) { return this.command.get(index); } - public java.lang.String getFirstCommand() { + public String getFirstCommand() { return this.command.get(0); } - public java.lang.String getLastCommand() { + public String getLastCommand() { return this.command.get(command.size() - 1); } - public java.lang.String getMatchingCommand( - java.util.function.Predicate predicate) { - for (java.lang.String item : command) { + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return item; } @@ -292,9 +290,8 @@ public java.lang.String getMatchingCommand( return null; } - public java.lang.Boolean hasMatchingCommand( - java.util.function.Predicate predicate) { - for (java.lang.String item : command) { + public Boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return true; } @@ -302,10 +299,10 @@ public java.lang.Boolean hasMatchingCommand( return false; } - public A withCommand(java.util.List command) { + public A withCommand(List command) { if (command != null) { - this.command = new java.util.ArrayList(); - for (java.lang.String item : command) { + this.command = new ArrayList(); + for (String item : command) { this.addToCommand(item); } } else { @@ -319,34 +316,32 @@ public A withCommand(java.lang.String... command) { this.command.clear(); } if (command != null) { - for (java.lang.String item : command) { + for (String item : command) { this.addToCommand(item); } } return (A) this; } - public java.lang.Boolean hasCommand() { + public Boolean hasCommand() { return command != null && !command.isEmpty(); } - public A addToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item) { + public A addToEnv(Integer index, V1EnvVar item) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").add(index >= 0 ? index : _visitables.get("env").size(), builder); this.env.add(index >= 0 ? index : env.size(), builder); return (A) this; } - public A setToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item) { + public A setToEnv(Integer index, V1EnvVar item) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= _visitables.get("env").size()) { _visitables.get("env").add(builder); } else { @@ -362,24 +357,22 @@ public A setToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvVar item : items) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").add(builder); this.env.add(builder); } return (A) this; } - public A addAllToEnv(java.util.Collection items) { + public A addAllToEnv(Collection items) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvVar item : items) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").add(builder); this.env.add(builder); } @@ -387,9 +380,8 @@ public A addAllToEnv(java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EnvVar item : items) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + public A removeAllFromEnv(Collection items) { + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").remove(builder); if (this.env != null) { this.env.remove(builder); @@ -411,13 +401,12 @@ public A removeAllFromEnv( return (A) this; } - public A removeMatchingFromEnv( - java.util.function.Predicate predicate) { + public A removeMatchingFromEnv(Predicate predicate) { if (env == null) return (A) this; - final Iterator each = env.iterator(); + final Iterator each = env.iterator(); final List visitables = _visitables.get("env"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = each.next(); + V1EnvVarBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -432,29 +421,28 @@ public A removeMatchingFromEnv( * @return The buildable object. */ @Deprecated - public java.util.List getEnv() { + public List getEnv() { return env != null ? build(env) : null; } - public java.util.List buildEnv() { + public List buildEnv() { return env != null ? build(env) : null; } - public io.kubernetes.client.openapi.models.V1EnvVar buildEnv(java.lang.Integer index) { + public V1EnvVar buildEnv(Integer index) { return this.env.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EnvVar buildFirstEnv() { + public V1EnvVar buildFirstEnv() { return this.env.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EnvVar buildLastEnv() { + public V1EnvVar buildLastEnv() { return this.env.get(env.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EnvVar buildMatchingEnv( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1EnvVarBuilder item : env) { + public V1EnvVar buildMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { if (predicate.test(item)) { return item.build(); } @@ -462,9 +450,8 @@ public io.kubernetes.client.openapi.models.V1EnvVar buildMatchingEnv( return null; } - public java.lang.Boolean hasMatchingEnv( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1EnvVarBuilder item : env) { + public Boolean hasMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { if (predicate.test(item)) { return true; } @@ -472,13 +459,13 @@ public java.lang.Boolean hasMatchingEnv( return false; } - public A withEnv(java.util.List env) { + public A withEnv(List env) { if (this.env != null) { _visitables.get("env").removeAll(this.env); } if (env != null) { - this.env = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EnvVar item : env) { + this.env = new ArrayList(); + for (V1EnvVar item : env) { this.addToEnv(item); } } else { @@ -492,14 +479,14 @@ public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { this.env.clear(); } if (env != null) { - for (io.kubernetes.client.openapi.models.V1EnvVar item : env) { + for (V1EnvVar item : env) { this.addToEnv(item); } } return (A) this; } - public java.lang.Boolean hasEnv() { + public Boolean hasEnv() { return env != null && !env.isEmpty(); } @@ -507,35 +494,31 @@ public V1ContainerFluent.EnvNested addNewEnv() { return new V1ContainerFluentImpl.EnvNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested addNewEnvLike( - io.kubernetes.client.openapi.models.V1EnvVar item) { + public V1ContainerFluent.EnvNested addNewEnvLike(V1EnvVar item) { return new V1ContainerFluentImpl.EnvNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested setNewEnvLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.EnvNestedImpl(index, item); + public V1ContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item) { + return new V1ContainerFluentImpl.EnvNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editEnv( - java.lang.Integer index) { + public V1ContainerFluent.EnvNested editEnv(Integer index) { if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); return setNewEnvLike(index, buildEnv(index)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editFirstEnv() { + public V1ContainerFluent.EnvNested editFirstEnv() { if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); return setNewEnvLike(0, buildEnv(0)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editLastEnv() { + public V1ContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editMatchingEnv( - java.util.function.Predicate predicate) { + public V1ContainerFluent.EnvNested editMatchingEnv(Predicate predicate) { int index = -1; for (int i = 0; i < env.size(); i++) { if (predicate.test(env.get(i))) { @@ -547,26 +530,21 @@ public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested editMa return setNewEnvLike(index, buildEnv(index)); } - public A addToEnvFrom(java.lang.Integer index, V1EnvFromSource item) { + public A addToEnvFrom(Integer index, V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").add(index >= 0 ? index : _visitables.get("envFrom").size(), builder); this.envFrom.add(index >= 0 ? index : envFrom.size(), builder); return (A) this; } - public A setToEnvFrom( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item) { + public A setToEnvFrom(Integer index, V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= _visitables.get("envFrom").size()) { _visitables.get("envFrom").add(builder); } else { @@ -582,27 +560,22 @@ public A setToEnvFrom( public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").add(builder); this.envFrom.add(builder); } return (A) this; } - public A addAllToEnvFrom( - java.util.Collection items) { + public A addAllToEnvFrom(Collection items) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").add(builder); this.envFrom.add(builder); } @@ -610,9 +583,8 @@ public A addAllToEnvFrom( } public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").remove(builder); if (this.envFrom != null) { this.envFrom.remove(builder); @@ -621,11 +593,9 @@ public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource.. return (A) this; } - public A removeAllFromEnvFrom( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + public A removeAllFromEnvFrom(Collection items) { + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").remove(builder); if (this.envFrom != null) { this.envFrom.remove(builder); @@ -634,15 +604,12 @@ public A removeAllFromEnvFrom( return (A) this; } - public A removeMatchingFromEnvFrom( - java.util.function.Predicate - predicate) { + public A removeMatchingFromEnvFrom(Predicate predicate) { if (envFrom == null) return (A) this; - final Iterator each = - envFrom.iterator(); + final Iterator each = envFrom.iterator(); final List visitables = _visitables.get("envFrom"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = each.next(); + V1EnvFromSourceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -656,31 +623,29 @@ public A removeMatchingFromEnvFrom( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getEnvFrom() { + @Deprecated + public List getEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public java.util.List buildEnvFrom() { + public List buildEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildEnvFrom(java.lang.Integer index) { + public V1EnvFromSource buildEnvFrom(Integer index) { return this.envFrom.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildFirstEnvFrom() { + public V1EnvFromSource buildFirstEnvFrom() { return this.envFrom.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildLastEnvFrom() { + public V1EnvFromSource buildLastEnvFrom() { return this.envFrom.get(envFrom.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildMatchingEnvFrom( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder item : envFrom) { + public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { if (predicate.test(item)) { return item.build(); } @@ -688,10 +653,8 @@ public io.kubernetes.client.openapi.models.V1EnvFromSource buildMatchingEnvFrom( return null; } - public java.lang.Boolean hasMatchingEnvFrom( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder item : envFrom) { + public Boolean hasMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { if (predicate.test(item)) { return true; } @@ -699,14 +662,13 @@ public java.lang.Boolean hasMatchingEnvFrom( return false; } - public A withEnvFrom( - java.util.List envFrom) { + public A withEnvFrom(List envFrom) { if (this.envFrom != null) { _visitables.get("envFrom").removeAll(this.envFrom); } if (envFrom != null) { - this.envFrom = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : envFrom) { + this.envFrom = new ArrayList(); + for (V1EnvFromSource item : envFrom) { this.addToEnvFrom(item); } } else { @@ -720,14 +682,14 @@ public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envF this.envFrom.clear(); } if (envFrom != null) { - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : envFrom) { + for (V1EnvFromSource item : envFrom) { this.addToEnvFrom(item); } } return (A) this; } - public java.lang.Boolean hasEnvFrom() { + public Boolean hasEnvFrom() { return envFrom != null && !envFrom.isEmpty(); } @@ -735,40 +697,34 @@ public V1ContainerFluent.EnvFromNested addNewEnvFrom() { return new V1ContainerFluentImpl.EnvFromNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested addNewEnvFromLike( - io.kubernetes.client.openapi.models.V1EnvFromSource item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.EnvFromNestedImpl( - -1, item); + public V1ContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { + return new V1ContainerFluentImpl.EnvFromNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested setNewEnvFromLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.EnvFromNestedImpl( - index, item); + public V1ContainerFluent.EnvFromNested setNewEnvFromLike(Integer index, V1EnvFromSource item) { + return new V1ContainerFluentImpl.EnvFromNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editEnvFrom( - java.lang.Integer index) { + public V1ContainerFluent.EnvFromNested editEnvFrom(Integer index) { if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); return setNewEnvFromLike(index, buildEnvFrom(index)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editFirstEnvFrom() { + public V1ContainerFluent.EnvFromNested editFirstEnvFrom() { if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); return setNewEnvFromLike(0, buildEnvFrom(0)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editLastEnvFrom() { + public V1ContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested editMatchingEnvFrom( - java.util.function.Predicate - predicate) { + public V1ContainerFluent.EnvFromNested editMatchingEnvFrom( + Predicate predicate) { int index = -1; for (int i = 0; i < envFrom.size(); i++) { if (predicate.test(envFrom.get(i))) { @@ -780,29 +736,29 @@ public io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested ed return setNewEnvFromLike(index, buildEnvFrom(index)); } - public java.lang.String getImage() { + public String getImage() { return this.image; } - public A withImage(java.lang.String image) { + public A withImage(String image) { this.image = image; return (A) this; } - public java.lang.Boolean hasImage() { + public Boolean hasImage() { return this.image != null; } - public java.lang.String getImagePullPolicy() { + public String getImagePullPolicy() { return this.imagePullPolicy; } - public A withImagePullPolicy(java.lang.String imagePullPolicy) { + public A withImagePullPolicy(String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; return (A) this; } - public java.lang.Boolean hasImagePullPolicy() { + public Boolean hasImagePullPolicy() { return this.imagePullPolicy != null; } @@ -811,25 +767,28 @@ public java.lang.Boolean hasImagePullPolicy() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Lifecycle getLifecycle() { + @Deprecated + public V1Lifecycle getLifecycle() { return this.lifecycle != null ? this.lifecycle.build() : null; } - public io.kubernetes.client.openapi.models.V1Lifecycle buildLifecycle() { + public V1Lifecycle buildLifecycle() { return this.lifecycle != null ? this.lifecycle.build() : null; } - public A withLifecycle(io.kubernetes.client.openapi.models.V1Lifecycle lifecycle) { + public A withLifecycle(V1Lifecycle lifecycle) { _visitables.get("lifecycle").remove(this.lifecycle); if (lifecycle != null) { this.lifecycle = new V1LifecycleBuilder(lifecycle); _visitables.get("lifecycle").add(this.lifecycle); + } else { + this.lifecycle = null; + _visitables.get("lifecycle").remove(this.lifecycle); } return (A) this; } - public java.lang.Boolean hasLifecycle() { + public Boolean hasLifecycle() { return this.lifecycle != null; } @@ -837,25 +796,20 @@ public V1ContainerFluent.LifecycleNested withNewLifecycle() { return new V1ContainerFluentImpl.LifecycleNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested - withNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.LifecycleNestedImpl(item); + public V1ContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item) { + return new V1ContainerFluentImpl.LifecycleNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested editLifecycle() { + public V1ContainerFluent.LifecycleNested editLifecycle() { return withNewLifecycleLike(getLifecycle()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested - editOrNewLifecycle() { + public V1ContainerFluent.LifecycleNested editOrNewLifecycle() { return withNewLifecycleLike( - getLifecycle() != null - ? getLifecycle() - : new io.kubernetes.client.openapi.models.V1LifecycleBuilder().build()); + getLifecycle() != null ? getLifecycle() : new V1LifecycleBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested - editOrNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item) { + public V1ContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { return withNewLifecycleLike(getLifecycle() != null ? getLifecycle() : item); } @@ -864,25 +818,28 @@ public io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getLivenessProbe() { + @Deprecated + public V1Probe getLivenessProbe() { return this.livenessProbe != null ? this.livenessProbe.build() : null; } - public io.kubernetes.client.openapi.models.V1Probe buildLivenessProbe() { + public V1Probe buildLivenessProbe() { return this.livenessProbe != null ? this.livenessProbe.build() : null; } - public A withLivenessProbe(io.kubernetes.client.openapi.models.V1Probe livenessProbe) { + public A withLivenessProbe(V1Probe livenessProbe) { _visitables.get("livenessProbe").remove(this.livenessProbe); if (livenessProbe != null) { - this.livenessProbe = new io.kubernetes.client.openapi.models.V1ProbeBuilder(livenessProbe); + this.livenessProbe = new V1ProbeBuilder(livenessProbe); _visitables.get("livenessProbe").add(this.livenessProbe); + } else { + this.livenessProbe = null; + _visitables.get("livenessProbe").remove(this.livenessProbe); } return (A) this; } - public java.lang.Boolean hasLivenessProbe() { + public Boolean hasLivenessProbe() { return this.livenessProbe != null; } @@ -890,63 +847,51 @@ public V1ContainerFluent.LivenessProbeNested withNewLivenessProbe() { return new V1ContainerFluentImpl.LivenessProbeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - withNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.LivenessProbeNestedImpl( - item); + public V1ContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { + return new V1ContainerFluentImpl.LivenessProbeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - editLivenessProbe() { + public V1ContainerFluent.LivenessProbeNested editLivenessProbe() { return withNewLivenessProbeLike(getLivenessProbe()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - editOrNewLivenessProbe() { + public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbe() { return withNewLivenessProbeLike( - getLivenessProbe() != null - ? getLivenessProbe() - : new io.kubernetes.client.openapi.models.V1ProbeBuilder().build()); + getLivenessProbe() != null ? getLivenessProbe() : new V1ProbeBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested - editOrNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { + public V1ContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public A addToPorts(java.lang.Integer index, V1ContainerPort item) { + public A addToPorts(Integer index, V1ContainerPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item) { + public A setToPorts(Integer index, V1ContainerPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -962,27 +907,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; } - public A addAllToPorts( - java.util.Collection items) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -990,9 +930,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -1001,11 +940,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -1014,15 +951,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = each.next(); + V1ContainerPortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1036,31 +970,29 @@ public A removeMatchingFromPorts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts() { + @Deprecated + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.V1ContainerPort buildPort(java.lang.Integer index) { + public V1ContainerPort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ContainerPort buildFirstPort() { + public V1ContainerPort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ContainerPort buildLastPort() { + public V1ContainerPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ContainerPort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerPortBuilder item : ports) { + public V1ContainerPort buildMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -1068,10 +1000,8 @@ public io.kubernetes.client.openapi.models.V1ContainerPort buildMatchingPort( return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerPortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -1079,13 +1009,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts(java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ContainerPort item : ports) { + this.ports = new ArrayList(); + for (V1ContainerPort item : ports) { this.addToPorts(item); } } else { @@ -1099,14 +1029,14 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.V1ContainerPort item : ports) { + for (V1ContainerPort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -1114,37 +1044,32 @@ public V1ContainerFluent.PortsNested addNewPort() { return new V1ContainerFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.V1ContainerPort item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.PortsNestedImpl(-1, item); + public V1ContainerFluent.PortsNested addNewPortLike(V1ContainerPort item) { + return new V1ContainerFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.PortsNestedImpl( - index, item); + public V1ContainerFluent.PortsNested setNewPortLike(Integer index, V1ContainerPort item) { + return new V1ContainerFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editPort( - java.lang.Integer index) { + public V1ContainerFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editFirstPort() { + public V1ContainerFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editLastPort() { + public V1ContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested editMatchingPort( - java.util.function.Predicate - predicate) { + public V1ContainerFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -1161,25 +1086,28 @@ public io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested edit * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getReadinessProbe() { + @Deprecated + public V1Probe getReadinessProbe() { return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public io.kubernetes.client.openapi.models.V1Probe buildReadinessProbe() { + public V1Probe buildReadinessProbe() { return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public A withReadinessProbe(io.kubernetes.client.openapi.models.V1Probe readinessProbe) { + public A withReadinessProbe(V1Probe readinessProbe) { _visitables.get("readinessProbe").remove(this.readinessProbe); if (readinessProbe != null) { - this.readinessProbe = new io.kubernetes.client.openapi.models.V1ProbeBuilder(readinessProbe); + this.readinessProbe = new V1ProbeBuilder(readinessProbe); _visitables.get("readinessProbe").add(this.readinessProbe); + } else { + this.readinessProbe = null; + _visitables.get("readinessProbe").remove(this.readinessProbe); } return (A) this; } - public java.lang.Boolean hasReadinessProbe() { + public Boolean hasReadinessProbe() { return this.readinessProbe != null; } @@ -1187,27 +1115,20 @@ public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbe() { return new V1ContainerFluentImpl.ReadinessProbeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - withNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.ReadinessProbeNestedImpl( - item); + public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { + return new V1ContainerFluentImpl.ReadinessProbeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - editReadinessProbe() { + public V1ContainerFluent.ReadinessProbeNested editReadinessProbe() { return withNewReadinessProbeLike(getReadinessProbe()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - editOrNewReadinessProbe() { + public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbe() { return withNewReadinessProbeLike( - getReadinessProbe() != null - ? getReadinessProbe() - : new io.kubernetes.client.openapi.models.V1ProbeBuilder().build()); + getReadinessProbe() != null ? getReadinessProbe() : new V1ProbeBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested - editOrNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { + public V1ContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe() : item); } @@ -1216,26 +1137,28 @@ public V1ContainerFluent.ReadinessProbeNested withNewReadinessProbe() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceRequirements getResources() { return this.resources != null ? this.resources.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceRequirements buildResources() { + public V1ResourceRequirements buildResources() { return this.resources != null ? this.resources.build() : null; } - public A withResources(io.kubernetes.client.openapi.models.V1ResourceRequirements resources) { + public A withResources(V1ResourceRequirements resources) { _visitables.get("resources").remove(this.resources); if (resources != null) { - this.resources = - new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder(resources); + this.resources = new V1ResourceRequirementsBuilder(resources); _visitables.get("resources").add(this.resources); + } else { + this.resources = null; + _visitables.get("resources").remove(this.resources); } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return this.resources != null; } @@ -1243,25 +1166,20 @@ public V1ContainerFluent.ResourcesNested withNewResources() { return new V1ContainerFluentImpl.ResourcesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested - withNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.ResourcesNestedImpl(item); + public V1ContainerFluent.ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new V1ContainerFluentImpl.ResourcesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested editResources() { + public V1ContainerFluent.ResourcesNested editResources() { return withNewResourcesLike(getResources()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested - editOrNewResources() { + public V1ContainerFluent.ResourcesNested editOrNewResources() { return withNewResourcesLike( - getResources() != null - ? getResources() - : new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder().build()); + getResources() != null ? getResources() : new V1ResourceRequirementsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested - editOrNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { + public V1ContainerFluent.ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { return withNewResourcesLike(getResources() != null ? getResources() : item); } @@ -1270,27 +1188,28 @@ public io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecurityContext getSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } - public io.kubernetes.client.openapi.models.V1SecurityContext buildSecurityContext() { + public V1SecurityContext buildSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } - public A withSecurityContext( - io.kubernetes.client.openapi.models.V1SecurityContext securityContext) { + public A withSecurityContext(V1SecurityContext securityContext) { _visitables.get("securityContext").remove(this.securityContext); if (securityContext != null) { - this.securityContext = - new io.kubernetes.client.openapi.models.V1SecurityContextBuilder(securityContext); + this.securityContext = new V1SecurityContextBuilder(securityContext); _visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + _visitables.get("securityContext").remove(this.securityContext); } return (A) this; } - public java.lang.Boolean hasSecurityContext() { + public Boolean hasSecurityContext() { return this.securityContext != null; } @@ -1298,27 +1217,24 @@ public V1ContainerFluent.SecurityContextNested withNewSecurityContext() { return new V1ContainerFluentImpl.SecurityContextNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - withNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.SecurityContextNestedImpl( - item); + public V1ContainerFluent.SecurityContextNested withNewSecurityContextLike( + V1SecurityContext item) { + return new V1ContainerFluentImpl.SecurityContextNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - editSecurityContext() { + public V1ContainerFluent.SecurityContextNested editSecurityContext() { return withNewSecurityContextLike(getSecurityContext()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - editOrNewSecurityContext() { + public V1ContainerFluent.SecurityContextNested editOrNewSecurityContext() { return withNewSecurityContextLike( getSecurityContext() != null ? getSecurityContext() - : new io.kubernetes.client.openapi.models.V1SecurityContextBuilder().build()); + : new V1SecurityContextBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested - editOrNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item) { + public V1ContainerFluent.SecurityContextNested editOrNewSecurityContextLike( + V1SecurityContext item) { return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext() : item); } @@ -1327,25 +1243,28 @@ public V1ContainerFluent.SecurityContextNested withNewSecurityContext() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getStartupProbe() { + @Deprecated + public V1Probe getStartupProbe() { return this.startupProbe != null ? this.startupProbe.build() : null; } - public io.kubernetes.client.openapi.models.V1Probe buildStartupProbe() { + public V1Probe buildStartupProbe() { return this.startupProbe != null ? this.startupProbe.build() : null; } - public A withStartupProbe(io.kubernetes.client.openapi.models.V1Probe startupProbe) { + public A withStartupProbe(V1Probe startupProbe) { _visitables.get("startupProbe").remove(this.startupProbe); if (startupProbe != null) { - this.startupProbe = new io.kubernetes.client.openapi.models.V1ProbeBuilder(startupProbe); + this.startupProbe = new V1ProbeBuilder(startupProbe); _visitables.get("startupProbe").add(this.startupProbe); + } else { + this.startupProbe = null; + _visitables.get("startupProbe").remove(this.startupProbe); } return (A) this; } - public java.lang.Boolean hasStartupProbe() { + public Boolean hasStartupProbe() { return this.startupProbe != null; } @@ -1353,102 +1272,93 @@ public V1ContainerFluent.StartupProbeNested withNewStartupProbe() { return new V1ContainerFluentImpl.StartupProbeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - withNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.StartupProbeNestedImpl( - item); + public V1ContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item) { + return new V1ContainerFluentImpl.StartupProbeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - editStartupProbe() { + public V1ContainerFluent.StartupProbeNested editStartupProbe() { return withNewStartupProbeLike(getStartupProbe()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - editOrNewStartupProbe() { + public V1ContainerFluent.StartupProbeNested editOrNewStartupProbe() { return withNewStartupProbeLike( - getStartupProbe() != null - ? getStartupProbe() - : new io.kubernetes.client.openapi.models.V1ProbeBuilder().build()); + getStartupProbe() != null ? getStartupProbe() : new V1ProbeBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested - editOrNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { + public V1ContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe() : item); } - public java.lang.Boolean getStdin() { + public Boolean getStdin() { return this.stdin; } - public A withStdin(java.lang.Boolean stdin) { + public A withStdin(Boolean stdin) { this.stdin = stdin; return (A) this; } - public java.lang.Boolean hasStdin() { + public Boolean hasStdin() { return this.stdin != null; } - public java.lang.Boolean getStdinOnce() { + public Boolean getStdinOnce() { return this.stdinOnce; } - public A withStdinOnce(java.lang.Boolean stdinOnce) { + public A withStdinOnce(Boolean stdinOnce) { this.stdinOnce = stdinOnce; return (A) this; } - public java.lang.Boolean hasStdinOnce() { + public Boolean hasStdinOnce() { return this.stdinOnce != null; } - public java.lang.String getTerminationMessagePath() { + public String getTerminationMessagePath() { return this.terminationMessagePath; } - public A withTerminationMessagePath(java.lang.String terminationMessagePath) { + public A withTerminationMessagePath(String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; return (A) this; } - public java.lang.Boolean hasTerminationMessagePath() { + public Boolean hasTerminationMessagePath() { return this.terminationMessagePath != null; } - public java.lang.String getTerminationMessagePolicy() { + public String getTerminationMessagePolicy() { return this.terminationMessagePolicy; } - public A withTerminationMessagePolicy(java.lang.String terminationMessagePolicy) { + public A withTerminationMessagePolicy(String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; return (A) this; } - public java.lang.Boolean hasTerminationMessagePolicy() { + public Boolean hasTerminationMessagePolicy() { return this.terminationMessagePolicy != null; } - public java.lang.Boolean getTty() { + public Boolean getTty() { return this.tty; } - public A withTty(java.lang.Boolean tty) { + public A withTty(Boolean tty) { this.tty = tty; return (A) this; } - public java.lang.Boolean hasTty() { + public Boolean hasTty() { return this.tty != null; } - public A addToVolumeDevices(java.lang.Integer index, V1VolumeDevice item) { + public A addToVolumeDevices(Integer index, V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables .get("volumeDevices") .add(index >= 0 ? index : _visitables.get("volumeDevices").size(), builder); @@ -1456,14 +1366,11 @@ public A addToVolumeDevices(java.lang.Integer index, V1VolumeDevice item) { return (A) this; } - public A setToVolumeDevices( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item) { + public A setToVolumeDevices(Integer index, V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= _visitables.get("volumeDevices").size()) { _visitables.get("volumeDevices").add(builder); } else { @@ -1479,27 +1386,22 @@ public A setToVolumeDevices( public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } return (A) this; } - public A addAllToVolumeDevices( - java.util.Collection items) { + public A addAllToVolumeDevices(Collection items) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } @@ -1507,9 +1409,8 @@ public A addAllToVolumeDevices( } public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").remove(builder); if (this.volumeDevices != null) { this.volumeDevices.remove(builder); @@ -1518,11 +1419,9 @@ public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDev return (A) this; } - public A removeAllFromVolumeDevices( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + public A removeAllFromVolumeDevices(Collection items) { + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").remove(builder); if (this.volumeDevices != null) { this.volumeDevices.remove(builder); @@ -1531,15 +1430,12 @@ public A removeAllFromVolumeDevices( return (A) this; } - public A removeMatchingFromVolumeDevices( - java.util.function.Predicate - predicate) { + public A removeMatchingFromVolumeDevices(Predicate predicate) { if (volumeDevices == null) return (A) this; - final Iterator each = - volumeDevices.iterator(); + final Iterator each = volumeDevices.iterator(); final List visitables = _visitables.get("volumeDevices"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = each.next(); + V1VolumeDeviceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1553,32 +1449,29 @@ public A removeMatchingFromVolumeDevices( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeDevices() { + @Deprecated + public List getVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public java.util.List buildVolumeDevices() { + public List buildVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildVolumeDevice( - java.lang.Integer index) { + public V1VolumeDevice buildVolumeDevice(Integer index) { return this.volumeDevices.get(index).build(); } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildFirstVolumeDevice() { + public V1VolumeDevice buildFirstVolumeDevice() { return this.volumeDevices.get(0).build(); } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildLastVolumeDevice() { + public V1VolumeDevice buildLastVolumeDevice() { return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildMatchingVolumeDevice( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder item : volumeDevices) { + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { if (predicate.test(item)) { return item.build(); } @@ -1586,10 +1479,8 @@ public io.kubernetes.client.openapi.models.V1VolumeDevice buildMatchingVolumeDev return null; } - public java.lang.Boolean hasMatchingVolumeDevice( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder item : volumeDevices) { + public Boolean hasMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { if (predicate.test(item)) { return true; } @@ -1597,14 +1488,13 @@ public java.lang.Boolean hasMatchingVolumeDevice( return false; } - public A withVolumeDevices( - java.util.List volumeDevices) { + public A withVolumeDevices(List volumeDevices) { if (this.volumeDevices != null) { _visitables.get("volumeDevices").removeAll(this.volumeDevices); } if (volumeDevices != null) { - this.volumeDevices = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : volumeDevices) { + this.volumeDevices = new ArrayList(); + for (V1VolumeDevice item : volumeDevices) { this.addToVolumeDevices(item); } } else { @@ -1618,14 +1508,14 @@ public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... this.volumeDevices.clear(); } if (volumeDevices != null) { - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : volumeDevices) { + for (V1VolumeDevice item : volumeDevices) { this.addToVolumeDevices(item); } } return (A) this; } - public java.lang.Boolean hasVolumeDevices() { + public Boolean hasVolumeDevices() { return volumeDevices != null && !volumeDevices.isEmpty(); } @@ -1633,44 +1523,35 @@ public V1ContainerFluent.VolumeDevicesNested addNewVolumeDevice() { return new V1ContainerFluentImpl.VolumeDevicesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - addNewVolumeDeviceLike(io.kubernetes.client.openapi.models.V1VolumeDevice item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.VolumeDevicesNestedImpl( - -1, item); + public V1ContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { + return new V1ContainerFluentImpl.VolumeDevicesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - setNewVolumeDeviceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.VolumeDevicesNestedImpl( - index, item); + public V1ContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( + Integer index, V1VolumeDevice item) { + return new V1ContainerFluentImpl.VolumeDevicesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editVolumeDevice(java.lang.Integer index) { + public V1ContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index) { if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editFirstVolumeDevice() { + public V1ContainerFluent.VolumeDevicesNested editFirstVolumeDevice() { if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editLastVolumeDevice() { + public V1ContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested - editMatchingVolumeDevice( - java.util.function.Predicate - predicate) { + public V1ContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( + Predicate predicate) { int index = -1; for (int i = 0; i < volumeDevices.size(); i++) { if (predicate.test(volumeDevices.get(i))) { @@ -1682,13 +1563,11 @@ public V1ContainerFluent.VolumeDevicesNested addNewVolumeDevice() { return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - public A addToVolumeMounts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item) { + public A addToVolumeMounts(Integer index, V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables .get("volumeMounts") .add(index >= 0 ? index : _visitables.get("volumeMounts").size(), builder); @@ -1696,14 +1575,11 @@ public A addToVolumeMounts( return (A) this; } - public A setToVolumeMounts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item) { + public A setToVolumeMounts(Integer index, V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = - new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= _visitables.get("volumeMounts").size()) { _visitables.get("volumeMounts").add(builder); } else { @@ -1719,27 +1595,22 @@ public A setToVolumeMounts( public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { if (this.volumeMounts == null) { - this.volumeMounts = - new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; } - public A addAllToVolumeMounts( - java.util.Collection items) { + public A addAllToVolumeMounts(Collection items) { if (this.volumeMounts == null) { - this.volumeMounts = - new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } @@ -1747,9 +1618,8 @@ public A addAllToVolumeMounts( } public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").remove(builder); if (this.volumeMounts != null) { this.volumeMounts.remove(builder); @@ -1758,11 +1628,9 @@ public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMoun return (A) this; } - public A removeAllFromVolumeMounts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + public A removeAllFromVolumeMounts(Collection items) { + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").remove(builder); if (this.volumeMounts != null) { this.volumeMounts.remove(builder); @@ -1771,15 +1639,12 @@ public A removeAllFromVolumeMounts( return (A) this; } - public A removeMatchingFromVolumeMounts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromVolumeMounts(Predicate predicate) { if (volumeMounts == null) return (A) this; - final Iterator each = - volumeMounts.iterator(); + final Iterator each = volumeMounts.iterator(); final List visitables = _visitables.get("volumeMounts"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = each.next(); + V1VolumeMountBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1793,32 +1658,29 @@ public A removeMatchingFromVolumeMounts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeMounts() { + @Deprecated + public List getVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public java.util.List buildVolumeMounts() { + public List buildVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public io.kubernetes.client.openapi.models.V1VolumeMount buildVolumeMount( - java.lang.Integer index) { + public V1VolumeMount buildVolumeMount(Integer index) { return this.volumeMounts.get(index).build(); } - public io.kubernetes.client.openapi.models.V1VolumeMount buildFirstVolumeMount() { + public V1VolumeMount buildFirstVolumeMount() { return this.volumeMounts.get(0).build(); } - public io.kubernetes.client.openapi.models.V1VolumeMount buildLastVolumeMount() { + public V1VolumeMount buildLastVolumeMount() { return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1VolumeMount buildMatchingVolumeMount( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeMountBuilder item : volumeMounts) { + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { if (predicate.test(item)) { return item.build(); } @@ -1826,10 +1688,8 @@ public io.kubernetes.client.openapi.models.V1VolumeMount buildMatchingVolumeMoun return null; } - public java.lang.Boolean hasMatchingVolumeMount( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeMountBuilder item : volumeMounts) { + public Boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { if (predicate.test(item)) { return true; } @@ -1837,14 +1697,13 @@ public java.lang.Boolean hasMatchingVolumeMount( return false; } - public A withVolumeMounts( - java.util.List volumeMounts) { + public A withVolumeMounts(List volumeMounts) { if (this.volumeMounts != null) { _visitables.get("volumeMounts").removeAll(this.volumeMounts); } if (volumeMounts != null) { - this.volumeMounts = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1VolumeMount item : volumeMounts) { + this.volumeMounts = new ArrayList(); + for (V1VolumeMount item : volumeMounts) { this.addToVolumeMounts(item); } } else { @@ -1858,14 +1717,14 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... v this.volumeMounts.clear(); } if (volumeMounts != null) { - for (io.kubernetes.client.openapi.models.V1VolumeMount item : volumeMounts) { + for (V1VolumeMount item : volumeMounts) { this.addToVolumeMounts(item); } } return (A) this; } - public java.lang.Boolean hasVolumeMounts() { + public Boolean hasVolumeMounts() { return volumeMounts != null && !volumeMounts.isEmpty(); } @@ -1873,44 +1732,35 @@ public V1ContainerFluent.VolumeMountsNested addNewVolumeMount() { return new V1ContainerFluentImpl.VolumeMountsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - addNewVolumeMountLike(io.kubernetes.client.openapi.models.V1VolumeMount item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.VolumeMountsNestedImpl( - -1, item); + public V1ContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { + return new V1ContainerFluentImpl.VolumeMountsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - setNewVolumeMountLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item) { - return new io.kubernetes.client.openapi.models.V1ContainerFluentImpl.VolumeMountsNestedImpl( - index, item); + public V1ContainerFluent.VolumeMountsNested setNewVolumeMountLike( + Integer index, V1VolumeMount item) { + return new V1ContainerFluentImpl.VolumeMountsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editVolumeMount(java.lang.Integer index) { + public V1ContainerFluent.VolumeMountsNested editVolumeMount(Integer index) { if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); return setNewVolumeMountLike(index, buildVolumeMount(index)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editFirstVolumeMount() { + public V1ContainerFluent.VolumeMountsNested editFirstVolumeMount() { if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); return setNewVolumeMountLike(0, buildVolumeMount(0)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editLastVolumeMount() { + public V1ContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested - editMatchingVolumeMount( - java.util.function.Predicate - predicate) { + public V1ContainerFluent.VolumeMountsNested editMatchingVolumeMount( + Predicate predicate) { int index = -1; for (int i = 0; i < volumeMounts.size(); i++) { if (predicate.test(volumeMounts.get(i))) { @@ -1922,16 +1772,16 @@ public V1ContainerFluent.VolumeMountsNested addNewVolumeMount() { return setNewVolumeMountLike(index, buildVolumeMount(index)); } - public java.lang.String getWorkingDir() { + public String getWorkingDir() { return this.workingDir; } - public A withWorkingDir(java.lang.String workingDir) { + public A withWorkingDir(String workingDir) { this.workingDir = workingDir; return (A) this; } - public java.lang.Boolean hasWorkingDir() { + public Boolean hasWorkingDir() { return this.workingDir != null; } @@ -2011,7 +1861,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (args != null && !args.isEmpty()) { @@ -2119,19 +1969,19 @@ public A withTty() { } class EnvNestedImpl extends V1EnvVarFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.EnvNested, Nested { - EnvNestedImpl(java.lang.Integer index, V1EnvVar item) { + implements V1ContainerFluent.EnvNested, Nested { + EnvNestedImpl(Integer index, V1EnvVar item) { this.index = index; this.builder = new V1EnvVarBuilder(this, item); } EnvNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EnvVarBuilder(this); + this.builder = new V1EnvVarBuilder(this); } - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder; - java.lang.Integer index; + V1EnvVarBuilder builder; + Integer index; public N and() { return (N) V1ContainerFluentImpl.this.setToEnv(index, builder.build()); @@ -2143,21 +1993,19 @@ public N endEnv() { } class EnvFromNestedImpl extends V1EnvFromSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.EnvFromNested, - io.kubernetes.client.fluent.Nested { - EnvFromNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item) { + implements V1ContainerFluent.EnvFromNested, Nested { + EnvFromNestedImpl(Integer index, V1EnvFromSource item) { this.index = index; this.builder = new V1EnvFromSourceBuilder(this, item); } EnvFromNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(this); + this.builder = new V1EnvFromSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder; - java.lang.Integer index; + V1EnvFromSourceBuilder builder; + Integer index; public N and() { return (N) V1ContainerFluentImpl.this.setToEnvFrom(index, builder.build()); @@ -2169,17 +2017,16 @@ public N endEnvFrom() { } class LifecycleNestedImpl extends V1LifecycleFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.LifecycleNested, - io.kubernetes.client.fluent.Nested { - LifecycleNestedImpl(io.kubernetes.client.openapi.models.V1Lifecycle item) { + implements V1ContainerFluent.LifecycleNested, Nested { + LifecycleNestedImpl(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } LifecycleNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LifecycleBuilder(this); + this.builder = new V1LifecycleBuilder(this); } - io.kubernetes.client.openapi.models.V1LifecycleBuilder builder; + V1LifecycleBuilder builder; public N and() { return (N) V1ContainerFluentImpl.this.withLifecycle(builder.build()); @@ -2192,17 +2039,16 @@ public N endLifecycle() { class LivenessProbeNestedImpl extends V1ProbeFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.LivenessProbeNested, - io.kubernetes.client.fluent.Nested { - LivenessProbeNestedImpl(io.kubernetes.client.openapi.models.V1Probe item) { + implements V1ContainerFluent.LivenessProbeNested, Nested { + LivenessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } LivenessProbeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProbeBuilder(this); + this.builder = new V1ProbeBuilder(this); } - io.kubernetes.client.openapi.models.V1ProbeBuilder builder; + V1ProbeBuilder builder; public N and() { return (N) V1ContainerFluentImpl.this.withLivenessProbe(builder.build()); @@ -2214,21 +2060,19 @@ public N endLivenessProbe() { } class PortsNestedImpl extends V1ContainerPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.PortsNested, - io.kubernetes.client.fluent.Nested { - PortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item) { + implements V1ContainerFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(this); + this.builder = new V1ContainerPortBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder; - java.lang.Integer index; + V1ContainerPortBuilder builder; + Integer index; public N and() { return (N) V1ContainerFluentImpl.this.setToPorts(index, builder.build()); @@ -2241,17 +2085,16 @@ public N endPort() { class ReadinessProbeNestedImpl extends V1ProbeFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.ReadinessProbeNested, - io.kubernetes.client.fluent.Nested { - ReadinessProbeNestedImpl(io.kubernetes.client.openapi.models.V1Probe item) { + implements V1ContainerFluent.ReadinessProbeNested, Nested { + ReadinessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } ReadinessProbeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProbeBuilder(this); + this.builder = new V1ProbeBuilder(this); } - io.kubernetes.client.openapi.models.V1ProbeBuilder builder; + V1ProbeBuilder builder; public N and() { return (N) V1ContainerFluentImpl.this.withReadinessProbe(builder.build()); @@ -2264,17 +2107,16 @@ public N endReadinessProbe() { class ResourcesNestedImpl extends V1ResourceRequirementsFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.ResourcesNested, - io.kubernetes.client.fluent.Nested { - ResourcesNestedImpl(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { + implements V1ContainerFluent.ResourcesNested, Nested { + ResourcesNestedImpl(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } ResourcesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder(this); + this.builder = new V1ResourceRequirementsBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder builder; + V1ResourceRequirementsBuilder builder; public N and() { return (N) V1ContainerFluentImpl.this.withResources(builder.build()); @@ -2287,17 +2129,16 @@ public N endResources() { class SecurityContextNestedImpl extends V1SecurityContextFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.SecurityContextNested, - io.kubernetes.client.fluent.Nested { - SecurityContextNestedImpl(io.kubernetes.client.openapi.models.V1SecurityContext item) { + implements V1ContainerFluent.SecurityContextNested, Nested { + SecurityContextNestedImpl(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } SecurityContextNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecurityContextBuilder(this); + this.builder = new V1SecurityContextBuilder(this); } - io.kubernetes.client.openapi.models.V1SecurityContextBuilder builder; + V1SecurityContextBuilder builder; public N and() { return (N) V1ContainerFluentImpl.this.withSecurityContext(builder.build()); @@ -2309,17 +2150,16 @@ public N endSecurityContext() { } class StartupProbeNestedImpl extends V1ProbeFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.StartupProbeNested, - io.kubernetes.client.fluent.Nested { - StartupProbeNestedImpl(io.kubernetes.client.openapi.models.V1Probe item) { + implements V1ContainerFluent.StartupProbeNested, Nested { + StartupProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } StartupProbeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProbeBuilder(this); + this.builder = new V1ProbeBuilder(this); } - io.kubernetes.client.openapi.models.V1ProbeBuilder builder; + V1ProbeBuilder builder; public N and() { return (N) V1ContainerFluentImpl.this.withStartupProbe(builder.build()); @@ -2332,20 +2172,19 @@ public N endStartupProbe() { class VolumeDevicesNestedImpl extends V1VolumeDeviceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeDevicesNested, - io.kubernetes.client.fluent.Nested { - VolumeDevicesNestedImpl(java.lang.Integer index, V1VolumeDevice item) { + implements V1ContainerFluent.VolumeDevicesNested, Nested { + VolumeDevicesNestedImpl(Integer index, V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } VolumeDevicesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(this); + this.builder = new V1VolumeDeviceBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder; - java.lang.Integer index; + V1VolumeDeviceBuilder builder; + Integer index; public N and() { return (N) V1ContainerFluentImpl.this.setToVolumeDevices(index, builder.build()); @@ -2358,20 +2197,19 @@ public N endVolumeDevice() { class VolumeMountsNestedImpl extends V1VolumeMountFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerFluent.VolumeMountsNested, - io.kubernetes.client.fluent.Nested { - VolumeMountsNestedImpl(java.lang.Integer index, V1VolumeMount item) { + implements V1ContainerFluent.VolumeMountsNested, Nested { + VolumeMountsNestedImpl(Integer index, V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } VolumeMountsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(this); + this.builder = new V1VolumeMountBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder; - java.lang.Integer index; + V1VolumeMountBuilder builder; + Integer index; public N and() { return (N) V1ContainerFluentImpl.this.setToVolumeMounts(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java index 9a3b76eede..e082ac2155 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ContainerImageBuilder extends V1ContainerImageFluentImpl - implements VisitableBuilder< - V1ContainerImage, io.kubernetes.client.openapi.models.V1ContainerImageBuilder> { + implements VisitableBuilder { public V1ContainerImageBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1ContainerImageBuilder(V1ContainerImageFluent fluent) { this(fluent, false); } - public V1ContainerImageBuilder( - io.kubernetes.client.openapi.models.V1ContainerImageFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ContainerImageBuilder(V1ContainerImageFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerImage(), validationEnabled); } - public V1ContainerImageBuilder( - io.kubernetes.client.openapi.models.V1ContainerImageFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerImage instance) { + public V1ContainerImageBuilder(V1ContainerImageFluent fluent, V1ContainerImage instance) { this(fluent, instance, false); } public V1ContainerImageBuilder( - io.kubernetes.client.openapi.models.V1ContainerImageFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerImage instance, - java.lang.Boolean validationEnabled) { + V1ContainerImageFluent fluent, V1ContainerImage instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withNames(instance.getNames()); @@ -53,13 +46,11 @@ public V1ContainerImageBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerImageBuilder(io.kubernetes.client.openapi.models.V1ContainerImage instance) { + public V1ContainerImageBuilder(V1ContainerImage instance) { this(instance, false); } - public V1ContainerImageBuilder( - io.kubernetes.client.openapi.models.V1ContainerImage instance, - java.lang.Boolean validationEnabled) { + public V1ContainerImageBuilder(V1ContainerImage instance, Boolean validationEnabled) { this.fluent = this; this.withNames(instance.getNames()); @@ -68,10 +59,10 @@ public V1ContainerImageBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerImageFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerImageFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerImage build() { + public V1ContainerImage build() { V1ContainerImage buildable = new V1ContainerImage(); buildable.setNames(fluent.getNames()); buildable.setSizeBytes(fluent.getSizeBytes()); 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 aeb0df7d9e..16343d8b1e 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 @@ -21,37 +21,37 @@ public interface V1ContainerImageFluent> extends Fluent { public A addToNames(Integer index, String item); - public A setToNames(java.lang.Integer index, java.lang.String item); + public A setToNames(Integer index, String item); public A addToNames(java.lang.String... items); - public A addAllToNames(Collection items); + public A addAllToNames(Collection items); public A removeFromNames(java.lang.String... items); - public A removeAllFromNames(java.util.Collection items); + public A removeAllFromNames(Collection items); - public List getNames(); + public List getNames(); - public java.lang.String getName(java.lang.Integer index); + public String getName(Integer index); - public java.lang.String getFirstName(); + public String getFirstName(); - public java.lang.String getLastName(); + public String getLastName(); - public java.lang.String getMatchingName(Predicate predicate); + public String getMatchingName(Predicate predicate); - public Boolean hasMatchingName(java.util.function.Predicate predicate); + public Boolean hasMatchingName(Predicate predicate); - public A withNames(java.util.List names); + public A withNames(List names); public A withNames(java.lang.String... names); - public java.lang.Boolean hasNames(); + public Boolean hasNames(); public Long getSizeBytes(); - public A withSizeBytes(java.lang.Long sizeBytes); + public A withSizeBytes(Long sizeBytes); - public java.lang.Boolean hasSizeBytes(); + public Boolean hasSizeBytes(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java index d968d2a8c4..c65a904182 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluentImpl.java @@ -24,7 +24,7 @@ public class V1ContainerImageFluentImpl> ext implements V1ContainerImageFluent { public V1ContainerImageFluentImpl() {} - public V1ContainerImageFluentImpl(io.kubernetes.client.openapi.models.V1ContainerImage instance) { + public V1ContainerImageFluentImpl(V1ContainerImage instance) { this.withNames(instance.getNames()); this.withSizeBytes(instance.getSizeBytes()); @@ -33,17 +33,17 @@ public V1ContainerImageFluentImpl(io.kubernetes.client.openapi.models.V1Containe private List names; private Long sizeBytes; - public A addToNames(Integer index, java.lang.String item) { + public A addToNames(Integer index, String item) { if (this.names == null) { - this.names = new ArrayList(); + this.names = new ArrayList(); } this.names.add(index, item); return (A) this; } - public A setToNames(java.lang.Integer index, java.lang.String item) { + public A setToNames(Integer index, String item) { if (this.names == null) { - this.names = new java.util.ArrayList(); + this.names = new ArrayList(); } this.names.set(index, item); return (A) this; @@ -51,26 +51,26 @@ public A setToNames(java.lang.Integer index, java.lang.String item) { public A addToNames(java.lang.String... items) { if (this.names == null) { - this.names = new java.util.ArrayList(); + this.names = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.names.add(item); } return (A) this; } - public A addAllToNames(Collection items) { + public A addAllToNames(Collection items) { if (this.names == null) { - this.names = new java.util.ArrayList(); + this.names = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.names.add(item); } return (A) this; } public A removeFromNames(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.names != null) { this.names.remove(item); } @@ -78,8 +78,8 @@ public A removeFromNames(java.lang.String... items) { return (A) this; } - public A removeAllFromNames(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNames(Collection items) { + for (String item : items) { if (this.names != null) { this.names.remove(item); } @@ -87,24 +87,24 @@ public A removeAllFromNames(java.util.Collection items) { return (A) this; } - public java.util.List getNames() { + public List getNames() { return this.names; } - public java.lang.String getName(java.lang.Integer index) { + public String getName(Integer index) { return this.names.get(index); } - public java.lang.String getFirstName() { + public String getFirstName() { return this.names.get(0); } - public java.lang.String getLastName() { + public String getLastName() { return this.names.get(names.size() - 1); } - public java.lang.String getMatchingName(Predicate predicate) { - for (java.lang.String item : names) { + public String getMatchingName(Predicate predicate) { + for (String item : names) { if (predicate.test(item)) { return item; } @@ -112,8 +112,8 @@ public java.lang.String getMatchingName(Predicate predicate) { return null; } - public Boolean hasMatchingName(java.util.function.Predicate predicate) { - for (java.lang.String item : names) { + public Boolean hasMatchingName(Predicate predicate) { + for (String item : names) { if (predicate.test(item)) { return true; } @@ -121,10 +121,10 @@ public Boolean hasMatchingName(java.util.function.Predicate pr return false; } - public A withNames(java.util.List names) { + public A withNames(List names) { if (names != null) { - this.names = new java.util.ArrayList(); - for (java.lang.String item : names) { + this.names = new ArrayList(); + for (String item : names) { this.addToNames(item); } } else { @@ -138,27 +138,27 @@ public A withNames(java.lang.String... names) { this.names.clear(); } if (names != null) { - for (java.lang.String item : names) { + for (String item : names) { this.addToNames(item); } } return (A) this; } - public java.lang.Boolean hasNames() { + public Boolean hasNames() { return names != null && !names.isEmpty(); } - public java.lang.Long getSizeBytes() { + public Long getSizeBytes() { return this.sizeBytes; } - public A withSizeBytes(java.lang.Long sizeBytes) { + public A withSizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return (A) this; } - public java.lang.Boolean hasSizeBytes() { + public Boolean hasSizeBytes() { return this.sizeBytes != null; } @@ -176,7 +176,7 @@ public int hashCode() { return java.util.Objects.hash(names, sizeBytes, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (names != null && !names.isEmpty()) { 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 0573d00c30..20a169b7e8 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ContainerPortBuilder extends V1ContainerPortFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ContainerPort, - io.kubernetes.client.openapi.models.V1ContainerPortBuilder> { + implements VisitableBuilder { public V1ContainerPortBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ContainerPortBuilder(V1ContainerPortFluent fluent) { this(fluent, false); } - public V1ContainerPortBuilder( - io.kubernetes.client.openapi.models.V1ContainerPortFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ContainerPortBuilder(V1ContainerPortFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerPort(), validationEnabled); } - public V1ContainerPortBuilder( - io.kubernetes.client.openapi.models.V1ContainerPortFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerPort instance) { + public V1ContainerPortBuilder(V1ContainerPortFluent fluent, V1ContainerPort instance) { this(fluent, instance, false); } public V1ContainerPortBuilder( - io.kubernetes.client.openapi.models.V1ContainerPortFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerPort instance, - java.lang.Boolean validationEnabled) { + V1ContainerPortFluent fluent, V1ContainerPort instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerPort(instance.getContainerPort()); @@ -60,13 +52,11 @@ public V1ContainerPortBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerPortBuilder(io.kubernetes.client.openapi.models.V1ContainerPort instance) { + public V1ContainerPortBuilder(V1ContainerPort instance) { this(instance, false); } - public V1ContainerPortBuilder( - io.kubernetes.client.openapi.models.V1ContainerPort instance, - java.lang.Boolean validationEnabled) { + public V1ContainerPortBuilder(V1ContainerPort instance, Boolean validationEnabled) { this.fluent = this; this.withContainerPort(instance.getContainerPort()); @@ -81,10 +71,10 @@ public V1ContainerPortBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerPortFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerPortFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerPort build() { + public V1ContainerPort build() { V1ContainerPort buildable = new V1ContainerPort(); buildable.setContainerPort(fluent.getContainerPort()); buildable.setHostIP(fluent.getHostIP()); 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 83deeca026..13ea5647fc 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 @@ -18,31 +18,31 @@ public interface V1ContainerPortFluent> extends Fluent { public Integer getContainerPort(); - public A withContainerPort(java.lang.Integer containerPort); + public A withContainerPort(Integer containerPort); public Boolean hasContainerPort(); public String getHostIP(); - public A withHostIP(java.lang.String hostIP); + public A withHostIP(String hostIP); - public java.lang.Boolean hasHostIP(); + public Boolean hasHostIP(); - public java.lang.Integer getHostPort(); + public Integer getHostPort(); - public A withHostPort(java.lang.Integer hostPort); + public A withHostPort(Integer hostPort); - public java.lang.Boolean hasHostPort(); + public Boolean hasHostPort(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getProtocol(); + public String getProtocol(); - public A withProtocol(java.lang.String protocol); + public A withProtocol(String protocol); - public java.lang.Boolean hasProtocol(); + public Boolean hasProtocol(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java index f3ddd9a9f6..8ebd78792c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluentImpl.java @@ -20,7 +20,7 @@ public class V1ContainerPortFluentImpl> exten implements V1ContainerPortFluent { public V1ContainerPortFluentImpl() {} - public V1ContainerPortFluentImpl(io.kubernetes.client.openapi.models.V1ContainerPort instance) { + public V1ContainerPortFluentImpl(V1ContainerPort instance) { this.withContainerPort(instance.getContainerPort()); this.withHostIP(instance.getHostIP()); @@ -34,15 +34,15 @@ public V1ContainerPortFluentImpl(io.kubernetes.client.openapi.models.V1Container private Integer containerPort; private String hostIP; - private java.lang.Integer hostPort; - private java.lang.String name; - private java.lang.String protocol; + private Integer hostPort; + private String name; + private String protocol; - public java.lang.Integer getContainerPort() { + public Integer getContainerPort() { return this.containerPort; } - public A withContainerPort(java.lang.Integer containerPort) { + public A withContainerPort(Integer containerPort) { this.containerPort = containerPort; return (A) this; } @@ -51,55 +51,55 @@ public Boolean hasContainerPort() { return this.containerPort != null; } - public java.lang.String getHostIP() { + public String getHostIP() { return this.hostIP; } - public A withHostIP(java.lang.String hostIP) { + public A withHostIP(String hostIP) { this.hostIP = hostIP; return (A) this; } - public java.lang.Boolean hasHostIP() { + public Boolean hasHostIP() { return this.hostIP != null; } - public java.lang.Integer getHostPort() { + public Integer getHostPort() { return this.hostPort; } - public A withHostPort(java.lang.Integer hostPort) { + public A withHostPort(Integer hostPort) { this.hostPort = hostPort; return (A) this; } - public java.lang.Boolean hasHostPort() { + public Boolean hasHostPort() { return this.hostPort != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getProtocol() { + public String getProtocol() { return this.protocol; } - public A withProtocol(java.lang.String protocol) { + public A withProtocol(String protocol) { this.protocol = protocol; return (A) this; } - public java.lang.Boolean hasProtocol() { + public Boolean hasProtocol() { return this.protocol != null; } @@ -122,7 +122,7 @@ public int hashCode() { containerPort, hostIP, hostPort, name, protocol, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerPort != null) { 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 3f46a63136..6726ad54f8 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ContainerStateBuilder extends V1ContainerStateFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ContainerState, - io.kubernetes.client.openapi.models.V1ContainerStateBuilder> { + implements VisitableBuilder { public V1ContainerStateBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ContainerStateBuilder(V1ContainerStateFluent fluent) { this(fluent, false); } - public V1ContainerStateBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ContainerStateBuilder(V1ContainerStateFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerState(), validationEnabled); } - public V1ContainerStateBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerState instance) { + public V1ContainerStateBuilder(V1ContainerStateFluent fluent, V1ContainerState instance) { this(fluent, instance, false); } public V1ContainerStateBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerState instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateFluent fluent, V1ContainerState instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withRunning(instance.getRunning()); @@ -56,13 +48,11 @@ public V1ContainerStateBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerStateBuilder(io.kubernetes.client.openapi.models.V1ContainerState instance) { + public V1ContainerStateBuilder(V1ContainerState instance) { this(instance, false); } - public V1ContainerStateBuilder( - io.kubernetes.client.openapi.models.V1ContainerState instance, - java.lang.Boolean validationEnabled) { + public V1ContainerStateBuilder(V1ContainerState instance, Boolean validationEnabled) { this.fluent = this; this.withRunning(instance.getRunning()); @@ -73,10 +63,10 @@ public V1ContainerStateBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerStateFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerStateFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerState build() { + public V1ContainerState build() { V1ContainerState buildable = new V1ContainerState(); buildable.setRunning(fluent.getRunning()); buildable.setTerminated(fluent.getTerminated()); 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 2dcaa2bcd4..d5a0e35dd7 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 @@ -26,80 +26,71 @@ public interface V1ContainerStateFluent> ext @Deprecated public V1ContainerStateRunning getRunning(); - public io.kubernetes.client.openapi.models.V1ContainerStateRunning buildRunning(); + public V1ContainerStateRunning buildRunning(); - public A withRunning(io.kubernetes.client.openapi.models.V1ContainerStateRunning running); + public A withRunning(V1ContainerStateRunning running); public Boolean hasRunning(); public V1ContainerStateFluent.RunningNested withNewRunning(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested - withNewRunningLike(io.kubernetes.client.openapi.models.V1ContainerStateRunning item); + public V1ContainerStateFluent.RunningNested withNewRunningLike(V1ContainerStateRunning item); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested editRunning(); + public V1ContainerStateFluent.RunningNested editRunning(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested - editOrNewRunning(); + public V1ContainerStateFluent.RunningNested editOrNewRunning(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested - editOrNewRunningLike(io.kubernetes.client.openapi.models.V1ContainerStateRunning item); + public V1ContainerStateFluent.RunningNested editOrNewRunningLike(V1ContainerStateRunning item); /** * This method has been deprecated, please use method buildTerminated instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ContainerStateTerminated getTerminated(); - public io.kubernetes.client.openapi.models.V1ContainerStateTerminated buildTerminated(); + public V1ContainerStateTerminated buildTerminated(); - public A withTerminated( - io.kubernetes.client.openapi.models.V1ContainerStateTerminated terminated); + public A withTerminated(V1ContainerStateTerminated terminated); - public java.lang.Boolean hasTerminated(); + public Boolean hasTerminated(); public V1ContainerStateFluent.TerminatedNested withNewTerminated(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - withNewTerminatedLike(io.kubernetes.client.openapi.models.V1ContainerStateTerminated item); + public V1ContainerStateFluent.TerminatedNested withNewTerminatedLike( + V1ContainerStateTerminated item); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - editTerminated(); + public V1ContainerStateFluent.TerminatedNested editTerminated(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - editOrNewTerminated(); + public V1ContainerStateFluent.TerminatedNested editOrNewTerminated(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - editOrNewTerminatedLike(io.kubernetes.client.openapi.models.V1ContainerStateTerminated item); + public V1ContainerStateFluent.TerminatedNested editOrNewTerminatedLike( + V1ContainerStateTerminated item); /** * This method has been deprecated, please use method buildWaiting instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ContainerStateWaiting getWaiting(); - public io.kubernetes.client.openapi.models.V1ContainerStateWaiting buildWaiting(); + public V1ContainerStateWaiting buildWaiting(); - public A withWaiting(io.kubernetes.client.openapi.models.V1ContainerStateWaiting waiting); + public A withWaiting(V1ContainerStateWaiting waiting); - public java.lang.Boolean hasWaiting(); + public Boolean hasWaiting(); public V1ContainerStateFluent.WaitingNested withNewWaiting(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested - withNewWaitingLike(io.kubernetes.client.openapi.models.V1ContainerStateWaiting item); + public V1ContainerStateFluent.WaitingNested withNewWaitingLike(V1ContainerStateWaiting item); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested editWaiting(); + public V1ContainerStateFluent.WaitingNested editWaiting(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested - editOrNewWaiting(); + public V1ContainerStateFluent.WaitingNested editOrNewWaiting(); - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested - editOrNewWaitingLike(io.kubernetes.client.openapi.models.V1ContainerStateWaiting item); + public V1ContainerStateFluent.WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item); public interface RunningNested extends Nested, V1ContainerStateRunningFluent> { @@ -109,7 +100,7 @@ public interface RunningNested } public interface TerminatedNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ContainerStateTerminatedFluent> { public N and(); @@ -117,8 +108,7 @@ public interface TerminatedNested } public interface WaitingNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerStateWaitingFluent> { + extends Nested, V1ContainerStateWaitingFluent> { public N and(); public N endWaiting(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java index 7706f1e40b..95005ec0ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluentImpl.java @@ -21,7 +21,7 @@ public class V1ContainerStateFluentImpl> ext implements V1ContainerStateFluent { public V1ContainerStateFluentImpl() {} - public V1ContainerStateFluentImpl(io.kubernetes.client.openapi.models.V1ContainerState instance) { + public V1ContainerStateFluentImpl(V1ContainerState instance) { this.withRunning(instance.getRunning()); this.withTerminated(instance.getTerminated()); @@ -39,19 +39,22 @@ public V1ContainerStateFluentImpl(io.kubernetes.client.openapi.models.V1Containe * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ContainerStateRunning getRunning() { + public V1ContainerStateRunning getRunning() { return this.running != null ? this.running.build() : null; } - public io.kubernetes.client.openapi.models.V1ContainerStateRunning buildRunning() { + public V1ContainerStateRunning buildRunning() { return this.running != null ? this.running.build() : null; } - public A withRunning(io.kubernetes.client.openapi.models.V1ContainerStateRunning running) { + public A withRunning(V1ContainerStateRunning running) { _visitables.get("running").remove(this.running); if (running != null) { this.running = new V1ContainerStateRunningBuilder(running); _visitables.get("running").add(this.running); + } else { + this.running = null; + _visitables.get("running").remove(this.running); } return (A) this; } @@ -64,25 +67,21 @@ public V1ContainerStateFluent.RunningNested withNewRunning() { return new V1ContainerStateFluentImpl.RunningNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested - withNewRunningLike(io.kubernetes.client.openapi.models.V1ContainerStateRunning item) { + public V1ContainerStateFluent.RunningNested withNewRunningLike(V1ContainerStateRunning item) { return new V1ContainerStateFluentImpl.RunningNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested editRunning() { + public V1ContainerStateFluent.RunningNested editRunning() { return withNewRunningLike(getRunning()); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested - editOrNewRunning() { + public V1ContainerStateFluent.RunningNested editOrNewRunning() { return withNewRunningLike( - getRunning() != null - ? getRunning() - : new io.kubernetes.client.openapi.models.V1ContainerStateRunningBuilder().build()); + getRunning() != null ? getRunning() : new V1ContainerStateRunningBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested - editOrNewRunningLike(io.kubernetes.client.openapi.models.V1ContainerStateRunning item) { + public V1ContainerStateFluent.RunningNested editOrNewRunningLike( + V1ContainerStateRunning item) { return withNewRunningLike(getRunning() != null ? getRunning() : item); } @@ -91,26 +90,28 @@ public io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested< * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ContainerStateTerminated getTerminated() { + @Deprecated + public V1ContainerStateTerminated getTerminated() { return this.terminated != null ? this.terminated.build() : null; } - public io.kubernetes.client.openapi.models.V1ContainerStateTerminated buildTerminated() { + public V1ContainerStateTerminated buildTerminated() { return this.terminated != null ? this.terminated.build() : null; } - public A withTerminated( - io.kubernetes.client.openapi.models.V1ContainerStateTerminated terminated) { + public A withTerminated(V1ContainerStateTerminated terminated) { _visitables.get("terminated").remove(this.terminated); if (terminated != null) { this.terminated = new V1ContainerStateTerminatedBuilder(terminated); _visitables.get("terminated").add(this.terminated); + } else { + this.terminated = null; + _visitables.get("terminated").remove(this.terminated); } return (A) this; } - public java.lang.Boolean hasTerminated() { + public Boolean hasTerminated() { return this.terminated != null; } @@ -118,27 +119,24 @@ public V1ContainerStateFluent.TerminatedNested withNewTerminated() { return new V1ContainerStateFluentImpl.TerminatedNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - withNewTerminatedLike(io.kubernetes.client.openapi.models.V1ContainerStateTerminated item) { - return new io.kubernetes.client.openapi.models.V1ContainerStateFluentImpl.TerminatedNestedImpl( - item); + public V1ContainerStateFluent.TerminatedNested withNewTerminatedLike( + V1ContainerStateTerminated item) { + return new V1ContainerStateFluentImpl.TerminatedNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - editTerminated() { + public V1ContainerStateFluent.TerminatedNested editTerminated() { return withNewTerminatedLike(getTerminated()); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - editOrNewTerminated() { + public V1ContainerStateFluent.TerminatedNested editOrNewTerminated() { return withNewTerminatedLike( getTerminated() != null ? getTerminated() - : new io.kubernetes.client.openapi.models.V1ContainerStateTerminatedBuilder().build()); + : new V1ContainerStateTerminatedBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested - editOrNewTerminatedLike(io.kubernetes.client.openapi.models.V1ContainerStateTerminated item) { + public V1ContainerStateFluent.TerminatedNested editOrNewTerminatedLike( + V1ContainerStateTerminated item) { return withNewTerminatedLike(getTerminated() != null ? getTerminated() : item); } @@ -147,26 +145,28 @@ public V1ContainerStateFluent.TerminatedNested withNewTerminated() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ContainerStateWaiting getWaiting() { return this.waiting != null ? this.waiting.build() : null; } - public io.kubernetes.client.openapi.models.V1ContainerStateWaiting buildWaiting() { + public V1ContainerStateWaiting buildWaiting() { return this.waiting != null ? this.waiting.build() : null; } - public A withWaiting(io.kubernetes.client.openapi.models.V1ContainerStateWaiting waiting) { + public A withWaiting(V1ContainerStateWaiting waiting) { _visitables.get("waiting").remove(this.waiting); if (waiting != null) { - this.waiting = - new io.kubernetes.client.openapi.models.V1ContainerStateWaitingBuilder(waiting); + this.waiting = new V1ContainerStateWaitingBuilder(waiting); _visitables.get("waiting").add(this.waiting); + } else { + this.waiting = null; + _visitables.get("waiting").remove(this.waiting); } return (A) this; } - public java.lang.Boolean hasWaiting() { + public Boolean hasWaiting() { return this.waiting != null; } @@ -174,26 +174,21 @@ public V1ContainerStateFluent.WaitingNested withNewWaiting() { return new V1ContainerStateFluentImpl.WaitingNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested - withNewWaitingLike(io.kubernetes.client.openapi.models.V1ContainerStateWaiting item) { - return new io.kubernetes.client.openapi.models.V1ContainerStateFluentImpl.WaitingNestedImpl( - item); + public V1ContainerStateFluent.WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { + return new V1ContainerStateFluentImpl.WaitingNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested editWaiting() { + public V1ContainerStateFluent.WaitingNested editWaiting() { return withNewWaitingLike(getWaiting()); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested - editOrNewWaiting() { + public V1ContainerStateFluent.WaitingNested editOrNewWaiting() { return withNewWaitingLike( - getWaiting() != null - ? getWaiting() - : new io.kubernetes.client.openapi.models.V1ContainerStateWaitingBuilder().build()); + getWaiting() != null ? getWaiting() : new V1ContainerStateWaitingBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested - editOrNewWaitingLike(io.kubernetes.client.openapi.models.V1ContainerStateWaiting item) { + public V1ContainerStateFluent.WaitingNested editOrNewWaitingLike( + V1ContainerStateWaiting item) { return withNewWaitingLike(getWaiting() != null ? getWaiting() : item); } @@ -233,17 +228,16 @@ public String toString() { class RunningNestedImpl extends V1ContainerStateRunningFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerStateFluent.RunningNested, - Nested { - RunningNestedImpl(io.kubernetes.client.openapi.models.V1ContainerStateRunning item) { + implements V1ContainerStateFluent.RunningNested, Nested { + RunningNestedImpl(V1ContainerStateRunning item) { this.builder = new V1ContainerStateRunningBuilder(this, item); } RunningNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStateRunningBuilder(this); + this.builder = new V1ContainerStateRunningBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStateRunningBuilder builder; + V1ContainerStateRunningBuilder builder; public N and() { return (N) V1ContainerStateFluentImpl.this.withRunning(builder.build()); @@ -256,18 +250,16 @@ public N endRunning() { class TerminatedNestedImpl extends V1ContainerStateTerminatedFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerStateFluent.TerminatedNested, - io.kubernetes.client.fluent.Nested { - TerminatedNestedImpl(io.kubernetes.client.openapi.models.V1ContainerStateTerminated item) { + implements V1ContainerStateFluent.TerminatedNested, Nested { + TerminatedNestedImpl(V1ContainerStateTerminated item) { this.builder = new V1ContainerStateTerminatedBuilder(this, item); } TerminatedNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ContainerStateTerminatedBuilder(this); + this.builder = new V1ContainerStateTerminatedBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStateTerminatedBuilder builder; + V1ContainerStateTerminatedBuilder builder; public N and() { return (N) V1ContainerStateFluentImpl.this.withTerminated(builder.build()); @@ -280,17 +272,16 @@ public N endTerminated() { class WaitingNestedImpl extends V1ContainerStateWaitingFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerStateFluent.WaitingNested, - io.kubernetes.client.fluent.Nested { - WaitingNestedImpl(io.kubernetes.client.openapi.models.V1ContainerStateWaiting item) { + implements V1ContainerStateFluent.WaitingNested, Nested { + WaitingNestedImpl(V1ContainerStateWaiting item) { this.builder = new V1ContainerStateWaitingBuilder(this, item); } WaitingNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStateWaitingBuilder(this); + this.builder = new V1ContainerStateWaitingBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStateWaitingBuilder builder; + V1ContainerStateWaitingBuilder builder; public N and() { return (N) V1ContainerStateFluentImpl.this.withWaiting(builder.build()); 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 151e2f6404..b0d5fa0265 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 @@ -16,9 +16,7 @@ public class V1ContainerStateRunningBuilder extends V1ContainerStateRunningFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ContainerStateRunning, - io.kubernetes.client.openapi.models.V1ContainerStateRunningBuilder> { + implements VisitableBuilder { public V1ContainerStateRunningBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent) { } public V1ContainerStateRunningBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateRunningFluent fluent, - java.lang.Boolean validationEnabled) { + V1ContainerStateRunningFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerStateRunning(), validationEnabled); } public V1ContainerStateRunningBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateRunningFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStateRunning instance) { + V1ContainerStateRunningFluent fluent, V1ContainerStateRunning instance) { this(fluent, instance, false); } public V1ContainerStateRunningBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateRunningFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStateRunning instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateRunningFluent fluent, + V1ContainerStateRunning instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withStartedAt(instance.getStartedAt()); this.validationEnabled = validationEnabled; } - public V1ContainerStateRunningBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateRunning instance) { + public V1ContainerStateRunningBuilder(V1ContainerStateRunning instance) { this(instance, false); } public V1ContainerStateRunningBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateRunning instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateRunning instance, Boolean validationEnabled) { this.fluent = this; this.withStartedAt(instance.getStartedAt()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerStateRunningFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerStateRunningFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerStateRunning build() { + public V1ContainerStateRunning build() { V1ContainerStateRunning buildable = new V1ContainerStateRunning(); buildable.setStartedAt(fluent.getStartedAt()); return buildable; 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 87ff5e4d00..fa906a0ee7 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 @@ -20,7 +20,7 @@ public interface V1ContainerStateRunningFluent { public OffsetDateTime getStartedAt(); - public A withStartedAt(java.time.OffsetDateTime startedAt); + public A withStartedAt(OffsetDateTime startedAt); public Boolean hasStartedAt(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java index 960982598a..e295f15889 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluentImpl.java @@ -21,18 +21,17 @@ public class V1ContainerStateRunningFluentImpl implements V1ContainerStateRunningFluent { public V1ContainerStateRunningFluentImpl() {} - public V1ContainerStateRunningFluentImpl( - io.kubernetes.client.openapi.models.V1ContainerStateRunning instance) { + public V1ContainerStateRunningFluentImpl(V1ContainerStateRunning instance) { this.withStartedAt(instance.getStartedAt()); } private OffsetDateTime startedAt; - public java.time.OffsetDateTime getStartedAt() { + public OffsetDateTime getStartedAt() { return this.startedAt; } - public A withStartedAt(java.time.OffsetDateTime startedAt) { + public A withStartedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; return (A) this; } 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 0c6cfa2f4a..ad3b574d75 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 @@ -16,9 +16,7 @@ public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ContainerStateTerminated, - io.kubernetes.client.openapi.models.V1ContainerStateTerminatedBuilder> { + implements VisitableBuilder { public V1ContainerStateTerminatedBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent flu } public V1ContainerStateTerminatedBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateTerminatedFluent fluent, - java.lang.Boolean validationEnabled) { + V1ContainerStateTerminatedFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerStateTerminated(), validationEnabled); } public V1ContainerStateTerminatedBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateTerminatedFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStateTerminated instance) { + V1ContainerStateTerminatedFluent fluent, V1ContainerStateTerminated instance) { this(fluent, instance, false); } public V1ContainerStateTerminatedBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateTerminatedFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStateTerminated instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateTerminatedFluent fluent, + V1ContainerStateTerminated instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerID(instance.getContainerID()); @@ -65,14 +61,12 @@ public V1ContainerStateTerminatedBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerStateTerminatedBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateTerminated instance) { + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance) { this(instance, false); } public V1ContainerStateTerminatedBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateTerminated instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateTerminated instance, Boolean validationEnabled) { this.fluent = this; this.withContainerID(instance.getContainerID()); @@ -91,10 +85,10 @@ public V1ContainerStateTerminatedBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerStateTerminatedFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerStateTerminatedFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerStateTerminated build() { + public V1ContainerStateTerminated build() { V1ContainerStateTerminated buildable = new V1ContainerStateTerminated(); buildable.setContainerID(fluent.getContainerID()); buildable.setExitCode(fluent.getExitCode()); 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 450d3385e6..b9266bf702 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java @@ -20,43 +20,43 @@ public interface V1ContainerStateTerminatedFluent { public String getContainerID(); - public A withContainerID(java.lang.String containerID); + public A withContainerID(String containerID); public Boolean hasContainerID(); public Integer getExitCode(); - public A withExitCode(java.lang.Integer exitCode); + public A withExitCode(Integer exitCode); - public java.lang.Boolean hasExitCode(); + public Boolean hasExitCode(); public OffsetDateTime getFinishedAt(); - public A withFinishedAt(java.time.OffsetDateTime finishedAt); + public A withFinishedAt(OffsetDateTime finishedAt); - public java.lang.Boolean hasFinishedAt(); + public Boolean hasFinishedAt(); - public java.lang.String getMessage(); + public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.Integer getSignal(); + public Integer getSignal(); - public A withSignal(java.lang.Integer signal); + public A withSignal(Integer signal); - public java.lang.Boolean hasSignal(); + public Boolean hasSignal(); - public java.time.OffsetDateTime getStartedAt(); + public OffsetDateTime getStartedAt(); - public A withStartedAt(java.time.OffsetDateTime startedAt); + public A withStartedAt(OffsetDateTime startedAt); - public java.lang.Boolean hasStartedAt(); + public Boolean hasStartedAt(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java index 58d8acaccd..22c44f9bfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluentImpl.java @@ -21,8 +21,7 @@ public class V1ContainerStateTerminatedFluentImpl implements V1ContainerStateTerminatedFluent { public V1ContainerStateTerminatedFluentImpl() {} - public V1ContainerStateTerminatedFluentImpl( - io.kubernetes.client.openapi.models.V1ContainerStateTerminated instance) { + public V1ContainerStateTerminatedFluentImpl(V1ContainerStateTerminated instance) { this.withContainerID(instance.getContainerID()); this.withExitCode(instance.getExitCode()); @@ -41,16 +40,16 @@ public V1ContainerStateTerminatedFluentImpl( private String containerID; private Integer exitCode; private OffsetDateTime finishedAt; - private java.lang.String message; - private java.lang.String reason; - private java.lang.Integer signal; - private java.time.OffsetDateTime startedAt; + private String message; + private String reason; + private Integer signal; + private OffsetDateTime startedAt; - public java.lang.String getContainerID() { + public String getContainerID() { return this.containerID; } - public A withContainerID(java.lang.String containerID) { + public A withContainerID(String containerID) { this.containerID = containerID; return (A) this; } @@ -59,81 +58,81 @@ public Boolean hasContainerID() { return this.containerID != null; } - public java.lang.Integer getExitCode() { + public Integer getExitCode() { return this.exitCode; } - public A withExitCode(java.lang.Integer exitCode) { + public A withExitCode(Integer exitCode) { this.exitCode = exitCode; return (A) this; } - public java.lang.Boolean hasExitCode() { + public Boolean hasExitCode() { return this.exitCode != null; } - public java.time.OffsetDateTime getFinishedAt() { + public OffsetDateTime getFinishedAt() { return this.finishedAt; } - public A withFinishedAt(java.time.OffsetDateTime finishedAt) { + public A withFinishedAt(OffsetDateTime finishedAt) { this.finishedAt = finishedAt; return (A) this; } - public java.lang.Boolean hasFinishedAt() { + public Boolean hasFinishedAt() { return this.finishedAt != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.Integer getSignal() { + public Integer getSignal() { return this.signal; } - public A withSignal(java.lang.Integer signal) { + public A withSignal(Integer signal) { this.signal = signal; return (A) this; } - public java.lang.Boolean hasSignal() { + public Boolean hasSignal() { return this.signal != null; } - public java.time.OffsetDateTime getStartedAt() { + public OffsetDateTime getStartedAt() { return this.startedAt; } - public A withStartedAt(java.time.OffsetDateTime startedAt) { + public A withStartedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; return (A) this; } - public java.lang.Boolean hasStartedAt() { + public Boolean hasStartedAt() { return this.startedAt != null; } @@ -159,7 +158,7 @@ public int hashCode() { containerID, exitCode, finishedAt, message, reason, signal, startedAt, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerID != null) { 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 38efd74c0a..79fd72a99e 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 @@ -16,9 +16,7 @@ public class V1ContainerStateWaitingBuilder extends V1ContainerStateWaitingFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ContainerStateWaiting, - io.kubernetes.client.openapi.models.V1ContainerStateWaitingBuilder> { + implements VisitableBuilder { public V1ContainerStateWaitingBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent) { } public V1ContainerStateWaitingBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateWaitingFluent fluent, - java.lang.Boolean validationEnabled) { + V1ContainerStateWaitingFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerStateWaiting(), validationEnabled); } public V1ContainerStateWaitingBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateWaitingFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStateWaiting instance) { + V1ContainerStateWaitingFluent fluent, V1ContainerStateWaiting instance) { this(fluent, instance, false); } public V1ContainerStateWaitingBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateWaitingFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStateWaiting instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateWaitingFluent fluent, + V1ContainerStateWaiting instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMessage(instance.getMessage()); @@ -55,14 +51,12 @@ public V1ContainerStateWaitingBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerStateWaitingBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateWaiting instance) { + public V1ContainerStateWaitingBuilder(V1ContainerStateWaiting instance) { this(instance, false); } public V1ContainerStateWaitingBuilder( - io.kubernetes.client.openapi.models.V1ContainerStateWaiting instance, - java.lang.Boolean validationEnabled) { + V1ContainerStateWaiting instance, Boolean validationEnabled) { this.fluent = this; this.withMessage(instance.getMessage()); @@ -71,10 +65,10 @@ public V1ContainerStateWaitingBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerStateWaitingFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerStateWaitingFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerStateWaiting build() { + public V1ContainerStateWaiting build() { V1ContainerStateWaiting buildable = new V1ContainerStateWaiting(); buildable.setMessage(fluent.getMessage()); buildable.setReason(fluent.getReason()); 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 280e6cae9f..9da83670b0 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 @@ -19,13 +19,13 @@ public interface V1ContainerStateWaitingFluent { public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java index 6663351e98..292fbba020 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluentImpl.java @@ -20,21 +20,20 @@ public class V1ContainerStateWaitingFluentImpl implements V1ContainerStateWaitingFluent { public V1ContainerStateWaitingFluentImpl() {} - public V1ContainerStateWaitingFluentImpl( - io.kubernetes.client.openapi.models.V1ContainerStateWaiting instance) { + public V1ContainerStateWaitingFluentImpl(V1ContainerStateWaiting instance) { this.withMessage(instance.getMessage()); this.withReason(instance.getReason()); } private String message; - private java.lang.String reason; + private String reason; - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(message, reason, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (message != null) { 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 7247f44bbd..686bd157f4 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ContainerStatusBuilder extends V1ContainerStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ContainerStatus, V1ContainerStatusBuilder> { + implements VisitableBuilder { public V1ContainerStatusBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent) { this(fluent, false); } - public V1ContainerStatusBuilder( - io.kubernetes.client.openapi.models.V1ContainerStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ContainerStatus(), validationEnabled); } - public V1ContainerStatusBuilder( - io.kubernetes.client.openapi.models.V1ContainerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStatus instance) { + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent, V1ContainerStatus instance) { this(fluent, instance, false); } public V1ContainerStatusBuilder( - io.kubernetes.client.openapi.models.V1ContainerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ContainerStatus instance, - java.lang.Boolean validationEnabled) { + V1ContainerStatusFluent fluent, V1ContainerStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerID(instance.getContainerID()); @@ -67,13 +60,11 @@ public V1ContainerStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ContainerStatusBuilder(io.kubernetes.client.openapi.models.V1ContainerStatus instance) { + public V1ContainerStatusBuilder(V1ContainerStatus instance) { this(instance, false); } - public V1ContainerStatusBuilder( - io.kubernetes.client.openapi.models.V1ContainerStatus instance, - java.lang.Boolean validationEnabled) { + public V1ContainerStatusBuilder(V1ContainerStatus instance, Boolean validationEnabled) { this.fluent = this; this.withContainerID(instance.getContainerID()); @@ -96,10 +87,10 @@ public V1ContainerStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ContainerStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ContainerStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ContainerStatus build() { + public V1ContainerStatus build() { V1ContainerStatus buildable = new V1ContainerStatus(); buildable.setContainerID(fluent.getContainerID()); buildable.setImage(fluent.getImage()); 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 046d65a8b4..2e077241dd 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 @@ -19,21 +19,21 @@ public interface V1ContainerStatusFluent> extends Fluent { public String getContainerID(); - public A withContainerID(java.lang.String containerID); + public A withContainerID(String containerID); public Boolean hasContainerID(); - public java.lang.String getImage(); + public String getImage(); - public A withImage(java.lang.String image); + public A withImage(String image); - public java.lang.Boolean hasImage(); + public Boolean hasImage(); - public java.lang.String getImageID(); + public String getImageID(); - public A withImageID(java.lang.String imageID); + public A withImageID(String imageID); - public java.lang.Boolean hasImageID(); + public Boolean hasImageID(); /** * This method has been deprecated, please use method buildLastState instead. @@ -43,76 +43,69 @@ public interface V1ContainerStatusFluent> e @Deprecated public V1ContainerState getLastState(); - public io.kubernetes.client.openapi.models.V1ContainerState buildLastState(); + public V1ContainerState buildLastState(); - public A withLastState(io.kubernetes.client.openapi.models.V1ContainerState lastState); + public A withLastState(V1ContainerState lastState); - public java.lang.Boolean hasLastState(); + public Boolean hasLastState(); public V1ContainerStatusFluent.LastStateNested withNewLastState(); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - withNewLastStateLike(io.kubernetes.client.openapi.models.V1ContainerState item); + public V1ContainerStatusFluent.LastStateNested withNewLastStateLike(V1ContainerState item); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - editLastState(); + public V1ContainerStatusFluent.LastStateNested editLastState(); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - editOrNewLastState(); + public V1ContainerStatusFluent.LastStateNested editOrNewLastState(); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - editOrNewLastStateLike(io.kubernetes.client.openapi.models.V1ContainerState item); + public V1ContainerStatusFluent.LastStateNested editOrNewLastStateLike(V1ContainerState item); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getReady(); + public Boolean getReady(); - public A withReady(java.lang.Boolean ready); + public A withReady(Boolean ready); - public java.lang.Boolean hasReady(); + public Boolean hasReady(); public Integer getRestartCount(); - public A withRestartCount(java.lang.Integer restartCount); + public A withRestartCount(Integer restartCount); - public java.lang.Boolean hasRestartCount(); + public Boolean hasRestartCount(); - public java.lang.Boolean getStarted(); + public Boolean getStarted(); - public A withStarted(java.lang.Boolean started); + public A withStarted(Boolean started); - public java.lang.Boolean hasStarted(); + public Boolean hasStarted(); /** * This method has been deprecated, please use method buildState instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ContainerState getState(); + @Deprecated + public V1ContainerState getState(); - public io.kubernetes.client.openapi.models.V1ContainerState buildState(); + public V1ContainerState buildState(); - public A withState(io.kubernetes.client.openapi.models.V1ContainerState state); + public A withState(V1ContainerState state); - public java.lang.Boolean hasState(); + public Boolean hasState(); public V1ContainerStatusFluent.StateNested withNewState(); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested - withNewStateLike(io.kubernetes.client.openapi.models.V1ContainerState item); + public V1ContainerStatusFluent.StateNested withNewStateLike(V1ContainerState item); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested editState(); + public V1ContainerStatusFluent.StateNested editState(); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested - editOrNewState(); + public V1ContainerStatusFluent.StateNested editOrNewState(); - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested - editOrNewStateLike(io.kubernetes.client.openapi.models.V1ContainerState item); + public V1ContainerStatusFluent.StateNested editOrNewStateLike(V1ContainerState item); public A withReady(); @@ -126,8 +119,7 @@ public interface LastStateNested } public interface StateNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerStateFluent> { + extends Nested, V1ContainerStateFluent> { public N and(); public N endState(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java index 2e8b825216..48fa6f7ec2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V1ContainerStatusFluentImpl> e implements V1ContainerStatusFluent { public V1ContainerStatusFluentImpl() {} - public V1ContainerStatusFluentImpl( - io.kubernetes.client.openapi.models.V1ContainerStatus instance) { + public V1ContainerStatusFluentImpl(V1ContainerStatus instance) { this.withContainerID(instance.getContainerID()); this.withImage(instance.getImage()); @@ -43,51 +42,51 @@ public V1ContainerStatusFluentImpl( } private String containerID; - private java.lang.String image; - private java.lang.String imageID; + private String image; + private String imageID; private V1ContainerStateBuilder lastState; - private java.lang.String name; + private String name; private Boolean ready; private Integer restartCount; - private java.lang.Boolean started; + private Boolean started; private V1ContainerStateBuilder state; - public java.lang.String getContainerID() { + public String getContainerID() { return this.containerID; } - public A withContainerID(java.lang.String containerID) { + public A withContainerID(String containerID) { this.containerID = containerID; return (A) this; } - public java.lang.Boolean hasContainerID() { + public Boolean hasContainerID() { return this.containerID != null; } - public java.lang.String getImage() { + public String getImage() { return this.image; } - public A withImage(java.lang.String image) { + public A withImage(String image) { this.image = image; return (A) this; } - public java.lang.Boolean hasImage() { + public Boolean hasImage() { return this.image != null; } - public java.lang.String getImageID() { + public String getImageID() { return this.imageID; } - public A withImageID(java.lang.String imageID) { + public A withImageID(String imageID) { this.imageID = imageID; return (A) this; } - public java.lang.Boolean hasImageID() { + public Boolean hasImageID() { return this.imageID != null; } @@ -97,24 +96,27 @@ public java.lang.Boolean hasImageID() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ContainerState getLastState() { + public V1ContainerState getLastState() { return this.lastState != null ? this.lastState.build() : null; } - public io.kubernetes.client.openapi.models.V1ContainerState buildLastState() { + public V1ContainerState buildLastState() { return this.lastState != null ? this.lastState.build() : null; } - public A withLastState(io.kubernetes.client.openapi.models.V1ContainerState lastState) { + public A withLastState(V1ContainerState lastState) { _visitables.get("lastState").remove(this.lastState); if (lastState != null) { - this.lastState = new io.kubernetes.client.openapi.models.V1ContainerStateBuilder(lastState); + this.lastState = new V1ContainerStateBuilder(lastState); _visitables.get("lastState").add(this.lastState); + } else { + this.lastState = null; + _visitables.get("lastState").remove(this.lastState); } return (A) this; } - public java.lang.Boolean hasLastState() { + public Boolean hasLastState() { return this.lastState != null; } @@ -122,78 +124,72 @@ public V1ContainerStatusFluent.LastStateNested withNewLastState() { return new V1ContainerStatusFluentImpl.LastStateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - withNewLastStateLike(io.kubernetes.client.openapi.models.V1ContainerState item) { + public V1ContainerStatusFluent.LastStateNested withNewLastStateLike(V1ContainerState item) { return new V1ContainerStatusFluentImpl.LastStateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - editLastState() { + public V1ContainerStatusFluent.LastStateNested editLastState() { return withNewLastStateLike(getLastState()); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - editOrNewLastState() { + public V1ContainerStatusFluent.LastStateNested editOrNewLastState() { return withNewLastStateLike( - getLastState() != null - ? getLastState() - : new io.kubernetes.client.openapi.models.V1ContainerStateBuilder().build()); + getLastState() != null ? getLastState() : new V1ContainerStateBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested - editOrNewLastStateLike(io.kubernetes.client.openapi.models.V1ContainerState item) { + public V1ContainerStatusFluent.LastStateNested editOrNewLastStateLike(V1ContainerState item) { return withNewLastStateLike(getLastState() != null ? getLastState() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getReady() { + public Boolean getReady() { return this.ready; } - public A withReady(java.lang.Boolean ready) { + public A withReady(Boolean ready) { this.ready = ready; return (A) this; } - public java.lang.Boolean hasReady() { + public Boolean hasReady() { return this.ready != null; } - public java.lang.Integer getRestartCount() { + public Integer getRestartCount() { return this.restartCount; } - public A withRestartCount(java.lang.Integer restartCount) { + public A withRestartCount(Integer restartCount) { this.restartCount = restartCount; return (A) this; } - public java.lang.Boolean hasRestartCount() { + public Boolean hasRestartCount() { return this.restartCount != null; } - public java.lang.Boolean getStarted() { + public Boolean getStarted() { return this.started; } - public A withStarted(java.lang.Boolean started) { + public A withStarted(Boolean started) { this.started = started; return (A) this; } - public java.lang.Boolean hasStarted() { + public Boolean hasStarted() { return this.started != null; } @@ -202,25 +198,28 @@ public java.lang.Boolean hasStarted() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ContainerState getState() { + @Deprecated + public V1ContainerState getState() { return this.state != null ? this.state.build() : null; } - public io.kubernetes.client.openapi.models.V1ContainerState buildState() { + public V1ContainerState buildState() { return this.state != null ? this.state.build() : null; } - public A withState(io.kubernetes.client.openapi.models.V1ContainerState state) { + public A withState(V1ContainerState state) { _visitables.get("state").remove(this.state); if (state != null) { - this.state = new io.kubernetes.client.openapi.models.V1ContainerStateBuilder(state); + this.state = new V1ContainerStateBuilder(state); _visitables.get("state").add(this.state); + } else { + this.state = null; + _visitables.get("state").remove(this.state); } return (A) this; } - public java.lang.Boolean hasState() { + public Boolean hasState() { return this.state != null; } @@ -228,26 +227,20 @@ public V1ContainerStatusFluent.StateNested withNewState() { return new V1ContainerStatusFluentImpl.StateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested - withNewStateLike(io.kubernetes.client.openapi.models.V1ContainerState item) { - return new io.kubernetes.client.openapi.models.V1ContainerStatusFluentImpl.StateNestedImpl( - item); + public V1ContainerStatusFluent.StateNested withNewStateLike(V1ContainerState item) { + return new V1ContainerStatusFluentImpl.StateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested editState() { + public V1ContainerStatusFluent.StateNested editState() { return withNewStateLike(getState()); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested - editOrNewState() { + public V1ContainerStatusFluent.StateNested editOrNewState() { return withNewStateLike( - getState() != null - ? getState() - : new io.kubernetes.client.openapi.models.V1ContainerStateBuilder().build()); + getState() != null ? getState() : new V1ContainerStateBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested - editOrNewStateLike(io.kubernetes.client.openapi.models.V1ContainerState item) { + public V1ContainerStatusFluent.StateNested editOrNewStateLike(V1ContainerState item) { return withNewStateLike(getState() != null ? getState() : item); } @@ -284,7 +277,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerID != null) { @@ -337,17 +330,16 @@ public A withStarted() { class LastStateNestedImpl extends V1ContainerStateFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerStatusFluent.LastStateNested, - Nested { - LastStateNestedImpl(io.kubernetes.client.openapi.models.V1ContainerState item) { + implements V1ContainerStatusFluent.LastStateNested, Nested { + LastStateNestedImpl(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } LastStateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStateBuilder(this); + this.builder = new V1ContainerStateBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStateBuilder builder; + V1ContainerStateBuilder builder; public N and() { return (N) V1ContainerStatusFluentImpl.this.withLastState(builder.build()); @@ -360,17 +352,16 @@ public N endLastState() { class StateNestedImpl extends V1ContainerStateFluentImpl> - implements io.kubernetes.client.openapi.models.V1ContainerStatusFluent.StateNested, - io.kubernetes.client.fluent.Nested { - StateNestedImpl(io.kubernetes.client.openapi.models.V1ContainerState item) { + implements V1ContainerStatusFluent.StateNested, Nested { + StateNestedImpl(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } StateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStateBuilder(this); + this.builder = new V1ContainerStateBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStateBuilder builder; + V1ContainerStateBuilder builder; public N and() { return (N) V1ContainerStatusFluentImpl.this.withState(builder.build()); 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 c066cadf76..e03c0ba29b 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 @@ -16,8 +16,7 @@ public class V1ControllerRevisionBuilder extends V1ControllerRevisionFluentImpl - implements VisitableBuilder< - V1ControllerRevision, io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder> { + implements VisitableBuilder { public V1ControllerRevisionBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1ControllerRevisionBuilder(Boolean validationEnabled) { this(new V1ControllerRevision(), validationEnabled); } - public V1ControllerRevisionBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionFluent fluent) { + public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent) { this(fluent, false); } public V1ControllerRevisionBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionFluent fluent, - java.lang.Boolean validationEnabled) { + V1ControllerRevisionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ControllerRevision(), validationEnabled); } public V1ControllerRevisionBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionFluent fluent, - io.kubernetes.client.openapi.models.V1ControllerRevision instance) { + V1ControllerRevisionFluent fluent, V1ControllerRevision instance) { this(fluent, instance, false); } public V1ControllerRevisionBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionFluent fluent, - io.kubernetes.client.openapi.models.V1ControllerRevision instance, - java.lang.Boolean validationEnabled) { + V1ControllerRevisionFluent fluent, + V1ControllerRevision instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,11 @@ public V1ControllerRevisionBuilder( this.validationEnabled = validationEnabled; } - public V1ControllerRevisionBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevision instance) { + public V1ControllerRevisionBuilder(V1ControllerRevision instance) { this(instance, false); } - public V1ControllerRevisionBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevision instance, - java.lang.Boolean validationEnabled) { + public V1ControllerRevisionBuilder(V1ControllerRevision instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +76,10 @@ public V1ControllerRevisionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ControllerRevisionFluent fluent; - java.lang.Boolean validationEnabled; + V1ControllerRevisionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ControllerRevision build() { + public V1ControllerRevision build() { V1ControllerRevision buildable = new V1ControllerRevision(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setData(fluent.getData()); 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 379144f6f9..1033328746 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 @@ -20,21 +20,21 @@ public interface V1ControllerRevisionFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public Object getData(); - public A withData(java.lang.Object data); + public A withData(Object data); - public java.lang.Boolean hasData(); + public Boolean hasData(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -44,31 +44,27 @@ public interface V1ControllerRevisionFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ControllerRevisionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - editMetadata(); + public V1ControllerRevisionFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - editOrNewMetadata(); + public V1ControllerRevisionFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ControllerRevisionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public Long getRevision(); - public A withRevision(java.lang.Long revision); + public A withRevision(Long revision); - public java.lang.Boolean hasRevision(); + public Boolean hasRevision(); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java index 1b60176d39..da2f455000 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluentImpl.java @@ -21,8 +21,7 @@ public class V1ControllerRevisionFluentImpl implements V1ControllerRevisionFluent { public V1ControllerRevisionFluentImpl() {} - public V1ControllerRevisionFluentImpl( - io.kubernetes.client.openapi.models.V1ControllerRevision instance) { + public V1ControllerRevisionFluentImpl(V1ControllerRevision instance) { this.withApiVersion(instance.getApiVersion()); this.withData(instance.getData()); @@ -36,15 +35,15 @@ public V1ControllerRevisionFluentImpl( private String apiVersion; private Object data; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private Long revision; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,29 +52,29 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.Object getData() { + public Object getData() { return this.data; } - public A withData(java.lang.Object data) { + public A withData(Object data) { this.data = data; return (A) this; } - public java.lang.Boolean hasData() { + public Boolean hasData() { return this.data != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -85,24 +84,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -110,43 +112,37 @@ public V1ControllerRevisionFluent.MetadataNested withNewMetadata() { return new V1ControllerRevisionFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ControllerRevisionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ControllerRevisionFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - editMetadata() { + public V1ControllerRevisionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - editOrNewMetadata() { + public V1ControllerRevisionFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ControllerRevisionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public java.lang.Long getRevision() { + public Long getRevision() { return this.revision; } - public A withRevision(java.lang.Long revision) { + public A withRevision(Long revision) { this.revision = revision; return (A) this; } - public java.lang.Boolean hasRevision() { + public Boolean hasRevision() { return this.revision != null; } - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ControllerRevisionFluentImpl that = (V1ControllerRevisionFluentImpl) o; @@ -163,7 +159,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, data, kind, metadata, revision, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -192,17 +188,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ControllerRevisionFluent.MetadataNested, - Nested { + implements V1ControllerRevisionFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ControllerRevisionFluentImpl.this.withMetadata(builder.build()); 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 ccb3769bfe..d5d4c03463 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 @@ -16,9 +16,7 @@ public class V1ControllerRevisionListBuilder extends V1ControllerRevisionListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ControllerRevisionList, - io.kubernetes.client.openapi.models.V1ControllerRevisionListBuilder> { + implements VisitableBuilder { public V1ControllerRevisionListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent) } public V1ControllerRevisionListBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ControllerRevisionListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ControllerRevisionList(), validationEnabled); } public V1ControllerRevisionListBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent fluent, - io.kubernetes.client.openapi.models.V1ControllerRevisionList instance) { + V1ControllerRevisionListFluent fluent, V1ControllerRevisionList instance) { this(fluent, instance, false); } public V1ControllerRevisionListBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent fluent, - io.kubernetes.client.openapi.models.V1ControllerRevisionList instance, - java.lang.Boolean validationEnabled) { + V1ControllerRevisionListFluent fluent, + V1ControllerRevisionList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,12 @@ public V1ControllerRevisionListBuilder( this.validationEnabled = validationEnabled; } - public V1ControllerRevisionListBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionList instance) { + public V1ControllerRevisionListBuilder(V1ControllerRevisionList instance) { this(instance, false); } public V1ControllerRevisionListBuilder( - io.kubernetes.client.openapi.models.V1ControllerRevisionList instance, - java.lang.Boolean validationEnabled) { + V1ControllerRevisionList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +73,10 @@ public V1ControllerRevisionListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent fluent; - java.lang.Boolean validationEnabled; + V1ControllerRevisionListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ControllerRevisionList build() { + public V1ControllerRevisionList build() { V1ControllerRevisionList buildable = new V1ControllerRevisionList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 c817b666ba..fe5eada4c5 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 @@ -23,24 +23,21 @@ public interface V1ControllerRevisionListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1ControllerRevision item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ControllerRevision item); + public A setToItems(Integer index, V1ControllerRevision item); public A addToItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -50,89 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ControllerRevision buildItem( - java.lang.Integer index); + public V1ControllerRevision buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ControllerRevision buildFirstItem(); + public V1ControllerRevision buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ControllerRevision buildLastItem(); + public V1ControllerRevision buildLastItem(); - public io.kubernetes.client.openapi.models.V1ControllerRevision buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ControllerRevision buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ControllerRevisionListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1ControllerRevision item); + public V1ControllerRevisionListFluent.ItemsNested addNewItemLike(V1ControllerRevision item); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ControllerRevision item); + public V1ControllerRevisionListFluent.ItemsNested setNewItemLike( + Integer index, V1ControllerRevision item); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ControllerRevisionListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - editFirstItem(); + public V1ControllerRevisionListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - editLastItem(); + public V1ControllerRevisionListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder> - predicate); + public V1ControllerRevisionListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ControllerRevisionListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ControllerRevisionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - editMetadata(); + public V1ControllerRevisionListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - editOrNewMetadata(); + public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ControllerRevisionFluent> { @@ -142,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java index e36850e208..5aefd0a448 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluentImpl.java @@ -38,14 +38,14 @@ public V1ControllerRevisionListFluentImpl(V1ControllerRevisionList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1ControllerRevision item) { + public A addToItems(Integer index, V1ControllerRevision item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = - new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(item); + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ControllerRevision item) { + public A setToItems(Integer index, V1ControllerRevision item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = - new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(item); + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -92,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ControllerRevision item : items) { - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = - new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ControllerRevision item : items) { - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = - new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(item); + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -122,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - for (io.kubernetes.client.openapi.models.V1ControllerRevision item : items) { - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = - new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(item); + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -133,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevisio return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ControllerRevision item : items) { - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = - new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -146,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder = each.next(); + V1ControllerRevisionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -168,31 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ControllerRevision buildItem( - java.lang.Integer index) { + public V1ControllerRevision buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ControllerRevision buildFirstItem() { + public V1ControllerRevision buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ControllerRevision buildLastItem() { + public V1ControllerRevision buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ControllerRevision buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder item : items) { + public V1ControllerRevision buildMatchingItem(Predicate predicate) { + for (V1ControllerRevisionBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -200,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ControllerRevision buildMatchingIte return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ControllerRevisionBuilder item : items) { if (predicate.test(item)) { return true; } @@ -211,14 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ControllerRevision item : items) { + this.items = new ArrayList(); + for (V1ControllerRevision item : items) { this.addToItems(item); } } else { @@ -232,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... i this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ControllerRevision item : items) { + for (V1ControllerRevision item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -247,42 +221,33 @@ public V1ControllerRevisionListFluent.ItemsNested addNewItem() { return new V1ControllerRevisionListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1ControllerRevision item) { + public V1ControllerRevisionListFluent.ItemsNested addNewItemLike(V1ControllerRevision item) { return new V1ControllerRevisionListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ControllerRevision item) { - return new io.kubernetes.client.openapi.models.V1ControllerRevisionListFluentImpl - .ItemsNestedImpl(index, item); + public V1ControllerRevisionListFluent.ItemsNested setNewItemLike( + Integer index, V1ControllerRevision item) { + return new V1ControllerRevisionListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ControllerRevisionListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - editFirstItem() { + public V1ControllerRevisionListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - editLastItem() { + public V1ControllerRevisionListFluent.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 io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder> - predicate) { + public V1ControllerRevisionListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -294,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.ItemsN return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -312,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -338,27 +306,20 @@ public V1ControllerRevisionListFluent.MetadataNested withNewMetadata() { return new V1ControllerRevisionListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ControllerRevisionListFluentImpl - .MetadataNestedImpl(item); + public V1ControllerRevisionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ControllerRevisionListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - editMetadata() { + public V1ControllerRevisionListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - editOrNewMetadata() { + public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ControllerRevisionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -378,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -404,19 +365,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ControllerRevisionFluentImpl> implements V1ControllerRevisionListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ControllerRevision item) { + ItemsNestedImpl(Integer index, V1ControllerRevision item) { this.index = index; this.builder = new V1ControllerRevisionBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder(this); + this.builder = new V1ControllerRevisionBuilder(this); } - io.kubernetes.client.openapi.models.V1ControllerRevisionBuilder builder; - java.lang.Integer index; + V1ControllerRevisionBuilder builder; + Integer index; public N and() { return (N) V1ControllerRevisionListFluentImpl.this.setToItems(index, builder.build()); @@ -429,18 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ControllerRevisionListFluent.MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ControllerRevisionListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ControllerRevisionListFluentImpl.this.withMetadata(builder.build()); 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 24301c3fff..b4eeacb257 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CronJobBuilder extends V1CronJobFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1CronJobBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1CronJobBuilder(Boolean validationEnabled) { this(new V1CronJob(), validationEnabled); } - public V1CronJobBuilder(io.kubernetes.client.openapi.models.V1CronJobFluent fluent) { + public V1CronJobBuilder(V1CronJobFluent fluent) { this(fluent, false); } - public V1CronJobBuilder( - io.kubernetes.client.openapi.models.V1CronJobFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CronJobBuilder(V1CronJobFluent fluent, Boolean validationEnabled) { this(fluent, new V1CronJob(), validationEnabled); } - public V1CronJobBuilder( - io.kubernetes.client.openapi.models.V1CronJobFluent fluent, - io.kubernetes.client.openapi.models.V1CronJob instance) { + public V1CronJobBuilder(V1CronJobFluent fluent, V1CronJob instance) { this(fluent, instance, false); } public V1CronJobBuilder( - io.kubernetes.client.openapi.models.V1CronJobFluent fluent, - io.kubernetes.client.openapi.models.V1CronJob instance, - java.lang.Boolean validationEnabled) { + V1CronJobFluent fluent, V1CronJob instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +52,11 @@ public V1CronJobBuilder( this.validationEnabled = validationEnabled; } - public V1CronJobBuilder(io.kubernetes.client.openapi.models.V1CronJob instance) { + public V1CronJobBuilder(V1CronJob instance) { this(instance, false); } - public V1CronJobBuilder( - io.kubernetes.client.openapi.models.V1CronJob instance, java.lang.Boolean validationEnabled) { + public V1CronJobBuilder(V1CronJob instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +71,10 @@ public V1CronJobBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CronJobFluent fluent; - java.lang.Boolean validationEnabled; + V1CronJobFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CronJob build() { + public V1CronJob build() { V1CronJob buildable = new V1CronJob(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 d2b62be464..ad262974f3 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 @@ -19,15 +19,15 @@ public interface V1CronJobFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1CronJobFluent> extends Fluent @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CronJobFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CronJobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested editMetadata(); + public V1CronJobFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested editOrNewMetadata(); + public V1CronJobFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CronJobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CronJobSpec getSpec(); - public io.kubernetes.client.openapi.models.V1CronJobSpec buildSpec(); + public V1CronJobSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1CronJobSpec spec); + public A withSpec(V1CronJobSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1CronJobFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1CronJobSpec item); + public V1CronJobFluent.SpecNested withNewSpecLike(V1CronJobSpec item); - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editSpec(); + public V1CronJobFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editOrNewSpec(); + public V1CronJobFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1CronJobSpec item); + public V1CronJobFluent.SpecNested editOrNewSpecLike(V1CronJobSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CronJobStatus getStatus(); - public io.kubernetes.client.openapi.models.V1CronJobStatus buildStatus(); + public V1CronJobStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1CronJobStatus status); + public A withStatus(V1CronJobStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1CronJobFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1CronJobStatus item); + public V1CronJobFluent.StatusNested withNewStatusLike(V1CronJobStatus item); - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested editStatus(); + public V1CronJobFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested editOrNewStatus(); + public V1CronJobFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1CronJobStatus item); + public V1CronJobFluent.StatusNested editOrNewStatusLike(V1CronJobStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -115,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1CronJobSpecFluent> { + extends Nested, V1CronJobSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1CronJobStatusFluent> { + extends Nested, V1CronJobStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java index d7b6d2cccc..e06250a989 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluentImpl.java @@ -21,7 +21,7 @@ public class V1CronJobFluentImpl> extends BaseFluen implements V1CronJobFluent { public V1CronJobFluentImpl() {} - public V1CronJobFluentImpl(io.kubernetes.client.openapi.models.V1CronJob instance) { + public V1CronJobFluentImpl(V1CronJob instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1CronJobFluentImpl(io.kubernetes.client.openapi.models.V1CronJob instanc } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1CronJobSpecBuilder spec; private V1CronJobStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1CronJobFluent.MetadataNested withNewMetadata() { return new V1CronJobFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CronJobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CronJobFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested editMetadata() { + public V1CronJobFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested editOrNewMetadata() { + public V1CronJobFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CronJobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CronJobSpec getSpec() { + @Deprecated + public V1CronJobSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1CronJobSpec buildSpec() { + public V1CronJobSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1CronJobSpec spec) { + public A withSpec(V1CronJobSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1CronJobSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1CronJobFluent.SpecNested withNewSpec() { return new V1CronJobFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1CronJobSpec item) { - return new io.kubernetes.client.openapi.models.V1CronJobFluentImpl.SpecNestedImpl(item); + public V1CronJobFluent.SpecNested withNewSpecLike(V1CronJobSpec item) { + return new V1CronJobFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editSpec() { + public V1CronJobFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1CronJobSpecBuilder().build()); + public V1CronJobFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1CronJobSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1CronJobSpec item) { + public V1CronJobFluent.SpecNested editOrNewSpecLike(V1CronJobSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested editOrN * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CronJobStatus getStatus() { + @Deprecated + public V1CronJobStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1CronJobStatus buildStatus() { + public V1CronJobStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1CronJobStatus status) { + public A withStatus(V1CronJobStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1CronJobStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,20 @@ public V1CronJobFluent.StatusNested withNewStatus() { return new V1CronJobFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1CronJobStatus item) { - return new io.kubernetes.client.openapi.models.V1CronJobFluentImpl.StatusNestedImpl(item); + public V1CronJobFluent.StatusNested withNewStatusLike(V1CronJobStatus item) { + return new V1CronJobFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested editStatus() { + public V1CronJobFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested editOrNewStatus() { + public V1CronJobFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1CronJobStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1CronJobStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1CronJobStatus item) { + public V1CronJobFluent.StatusNested editOrNewStatusLike(V1CronJobStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CronJobFluent.MetadataNested, Nested { + implements V1CronJobFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1CronJobFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1CronJobSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1CronJobFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1CronJobFluent.SpecNested, Nested { SpecNestedImpl(V1CronJobSpec item) { this.builder = new V1CronJobSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CronJobSpecBuilder(this); + this.builder = new V1CronJobSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1CronJobSpecBuilder builder; + V1CronJobSpecBuilder builder; public N and() { return (N) V1CronJobFluentImpl.this.withSpec(builder.build()); @@ -309,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1CronJobStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1CronJobFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1CronJobStatus item) { + implements V1CronJobFluent.StatusNested, Nested { + StatusNestedImpl(V1CronJobStatus item) { this.builder = new V1CronJobStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CronJobStatusBuilder(this); + this.builder = new V1CronJobStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1CronJobStatusBuilder builder; + V1CronJobStatusBuilder builder; public N and() { return (N) V1CronJobFluentImpl.this.withStatus(builder.build()); 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 5c13213a8d..dab88b18d8 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CronJobListBuilder extends V1CronJobListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CronJobList, - io.kubernetes.client.openapi.models.V1CronJobListBuilder> { + implements VisitableBuilder { public V1CronJobListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CronJobListBuilder(V1CronJobListFluent fluent) { this(fluent, false); } - public V1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1CronJobListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CronJobListBuilder(V1CronJobListFluent fluent, Boolean validationEnabled) { this(fluent, new V1CronJobList(), validationEnabled); } - public V1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1CronJobListFluent fluent, - io.kubernetes.client.openapi.models.V1CronJobList instance) { + public V1CronJobListBuilder(V1CronJobListFluent fluent, V1CronJobList instance) { this(fluent, instance, false); } public V1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1CronJobListFluent fluent, - io.kubernetes.client.openapi.models.V1CronJobList instance, - java.lang.Boolean validationEnabled) { + V1CronJobListFluent fluent, V1CronJobList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1CronJobListBuilder( this.validationEnabled = validationEnabled; } - public V1CronJobListBuilder(io.kubernetes.client.openapi.models.V1CronJobList instance) { + public V1CronJobListBuilder(V1CronJobList instance) { this(instance, false); } - public V1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1CronJobList instance, - java.lang.Boolean validationEnabled) { + public V1CronJobListBuilder(V1CronJobList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1CronJobListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CronJobListFluent fluent; - java.lang.Boolean validationEnabled; + V1CronJobListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CronJobList build() { + public V1CronJobList build() { V1CronJobList buildable = new V1CronJobList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 a362bbe722..db67aed7f8 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 @@ -22,22 +22,21 @@ public interface V1CronJobListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1CronJob item); + public A addToItems(Integer index, V1CronJob item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CronJob item); + public A setToItems(Integer index, V1CronJob item); public A addToItems(io.kubernetes.client.openapi.models.V1CronJob... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,78 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1CronJob buildItem(java.lang.Integer index); + public V1CronJob buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1CronJob buildFirstItem(); + public V1CronJob buildFirstItem(); - public io.kubernetes.client.openapi.models.V1CronJob buildLastItem(); + public V1CronJob buildLastItem(); - public io.kubernetes.client.openapi.models.V1CronJob buildMatchingItem( - java.util.function.Predicate predicate); + public V1CronJob buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1CronJobListFluent.ItemsNested addNewItem(); - public V1CronJobListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CronJob item); + public V1CronJobListFluent.ItemsNested addNewItemLike(V1CronJob item); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CronJob item); + public V1CronJobListFluent.ItemsNested setNewItemLike(Integer index, V1CronJob item); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1CronJobListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editFirstItem(); + public V1CronJobListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editLastItem(); + public V1CronJobListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1CronJobListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CronJobListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CronJobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested editMetadata(); + public V1CronJobListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested - editOrNewMetadata(); + public V1CronJobListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CronJobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1CronJobFluent> { @@ -128,8 +118,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java index 03dd7ab28b..0a3c527420 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluentImpl.java @@ -38,14 +38,14 @@ public V1CronJobListFluentImpl(V1CronJobList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1CronJob item) { + public A addToItems(Integer index, V1CronJob item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1CronJobBuilder(item); + V1CronJobBuilder builder = new V1CronJobBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CronJob item) { + public A setToItems(Integer index, V1CronJob item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1CronJobBuilder(item); + V1CronJobBuilder builder = new V1CronJobBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1CronJob... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CronJob item : items) { - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1CronJobBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CronJob item : items) { - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1CronJobBuilder(item); + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection } public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - for (io.kubernetes.client.openapi.models.V1CronJob item : items) { - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1CronJobBuilder(item); + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items) return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1CronJob item : items) { - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1CronJobBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CronJobBuilder builder = each.next(); + V1CronJobBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1CronJob buildItem(java.lang.Integer index) { + public V1CronJob buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CronJob buildFirstItem() { + public V1CronJob buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CronJob buildLastItem() { + public V1CronJob buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CronJob buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CronJobBuilder item : items) { + public V1CronJob buildMatchingItem(Predicate predicate) { + for (V1CronJobBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -187,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1CronJob buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1CronJobBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1CronJobBuilder item : items) { if (predicate.test(item)) { return true; } @@ -198,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CronJob item : items) { + this.items = new ArrayList(); + for (V1CronJob item : items) { this.addToItems(item); } } else { @@ -218,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1CronJob item : items) { + for (V1CronJob item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -233,37 +221,32 @@ public V1CronJobListFluent.ItemsNested addNewItem() { return new V1CronJobListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CronJob item) { + public V1CronJobListFluent.ItemsNested addNewItemLike(V1CronJob item) { return new V1CronJobListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CronJob item) { - return new io.kubernetes.client.openapi.models.V1CronJobListFluentImpl.ItemsNestedImpl( - index, item); + public V1CronJobListFluent.ItemsNested setNewItemLike(Integer index, V1CronJob item) { + return new V1CronJobListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1CronJobListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editFirstItem() { + public V1CronJobListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editLastItem() { + public V1CronJobListFluent.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 io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1CronJobListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -275,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1CronJobListFluent.ItemsNested ed return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -293,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -319,25 +305,20 @@ public V1CronJobListFluent.MetadataNested withNewMetadata() { return new V1CronJobListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1CronJobListFluentImpl.MetadataNestedImpl(item); + public V1CronJobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1CronJobListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested editMetadata() { + public V1CronJobListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested - editOrNewMetadata() { + public V1CronJobListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1CronJobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -357,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -382,18 +363,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1CronJobFluentImpl> implements V1CronJobListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1CronJob item) { + ItemsNestedImpl(Integer index, V1CronJob item) { this.index = index; this.builder = new V1CronJobBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1CronJobBuilder(this); + this.builder = new V1CronJobBuilder(this); } - io.kubernetes.client.openapi.models.V1CronJobBuilder builder; - java.lang.Integer index; + V1CronJobBuilder builder; + Integer index; public N and() { return (N) V1CronJobListFluentImpl.this.setToItems(index, builder.build()); @@ -405,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CronJobListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1CronJobListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1CronJobListFluentImpl.this.withMetadata(builder.build()); 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 25e5a7da2e..2300c393ff 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CronJobSpecBuilder extends V1CronJobSpecFluentImpl - implements VisitableBuilder< - V1CronJobSpec, io.kubernetes.client.openapi.models.V1CronJobSpecBuilder> { + implements VisitableBuilder { public V1CronJobSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent) { this(fluent, false); } - public V1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1CronJobSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1CronJobSpec(), validationEnabled); } - public V1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1CronJobSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CronJobSpec instance) { + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent, V1CronJobSpec instance) { this(fluent, instance, false); } public V1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1CronJobSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CronJobSpec instance, - java.lang.Boolean validationEnabled) { + V1CronJobSpecFluent fluent, V1CronJobSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConcurrencyPolicy(instance.getConcurrencyPolicy()); @@ -65,13 +58,11 @@ public V1CronJobSpecBuilder( this.validationEnabled = validationEnabled; } - public V1CronJobSpecBuilder(io.kubernetes.client.openapi.models.V1CronJobSpec instance) { + public V1CronJobSpecBuilder(V1CronJobSpec instance) { this(instance, false); } - public V1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1CronJobSpec instance, - java.lang.Boolean validationEnabled) { + public V1CronJobSpecBuilder(V1CronJobSpec instance, Boolean validationEnabled) { this.fluent = this; this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); @@ -92,10 +83,10 @@ public V1CronJobSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CronJobSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1CronJobSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CronJobSpec build() { + public V1CronJobSpec build() { V1CronJobSpec buildable = new V1CronJobSpec(); buildable.setConcurrencyPolicy(fluent.getConcurrencyPolicy()); buildable.setFailedJobsHistoryLimit(fluent.getFailedJobsHistoryLimit()); 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 95c937af9c..a6a2ebaf1b 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 @@ -19,15 +19,15 @@ public interface V1CronJobSpecFluent> extends Fluent { public String getConcurrencyPolicy(); - public A withConcurrencyPolicy(java.lang.String concurrencyPolicy); + public A withConcurrencyPolicy(String concurrencyPolicy); public Boolean hasConcurrencyPolicy(); public Integer getFailedJobsHistoryLimit(); - public A withFailedJobsHistoryLimit(java.lang.Integer failedJobsHistoryLimit); + public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit); - public java.lang.Boolean hasFailedJobsHistoryLimit(); + public Boolean hasFailedJobsHistoryLimit(); /** * This method has been deprecated, please use method buildJobTemplate instead. @@ -37,55 +37,51 @@ public interface V1CronJobSpecFluent> extends F @Deprecated public V1JobTemplateSpec getJobTemplate(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpec buildJobTemplate(); + public V1JobTemplateSpec buildJobTemplate(); - public A withJobTemplate(io.kubernetes.client.openapi.models.V1JobTemplateSpec jobTemplate); + public A withJobTemplate(V1JobTemplateSpec jobTemplate); - public java.lang.Boolean hasJobTemplate(); + public Boolean hasJobTemplate(); public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplate(); - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - withNewJobTemplateLike(io.kubernetes.client.openapi.models.V1JobTemplateSpec item); + public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item); - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - editJobTemplate(); + public V1CronJobSpecFluent.JobTemplateNested editJobTemplate(); - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplate(); + public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplate(); - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplateLike(io.kubernetes.client.openapi.models.V1JobTemplateSpec item); + public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item); - public java.lang.String getSchedule(); + public String getSchedule(); - public A withSchedule(java.lang.String schedule); + public A withSchedule(String schedule); - public java.lang.Boolean hasSchedule(); + public Boolean hasSchedule(); public Long getStartingDeadlineSeconds(); - public A withStartingDeadlineSeconds(java.lang.Long startingDeadlineSeconds); + public A withStartingDeadlineSeconds(Long startingDeadlineSeconds); - public java.lang.Boolean hasStartingDeadlineSeconds(); + public Boolean hasStartingDeadlineSeconds(); - public java.lang.Integer getSuccessfulJobsHistoryLimit(); + public Integer getSuccessfulJobsHistoryLimit(); - public A withSuccessfulJobsHistoryLimit(java.lang.Integer successfulJobsHistoryLimit); + public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit); - public java.lang.Boolean hasSuccessfulJobsHistoryLimit(); + public Boolean hasSuccessfulJobsHistoryLimit(); - public java.lang.Boolean getSuspend(); + public Boolean getSuspend(); - public A withSuspend(java.lang.Boolean suspend); + public A withSuspend(Boolean suspend); - public java.lang.Boolean hasSuspend(); + public Boolean hasSuspend(); - public java.lang.String getTimeZone(); + public String getTimeZone(); - public A withTimeZone(java.lang.String timeZone); + public A withTimeZone(String timeZone); - public java.lang.Boolean hasTimeZone(); + public Boolean hasTimeZone(); public A withSuspend(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java index 5727ed91e5..ab70186104 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V1CronJobSpecFluentImpl> extends B implements V1CronJobSpecFluent { public V1CronJobSpecFluentImpl() {} - public V1CronJobSpecFluentImpl(io.kubernetes.client.openapi.models.V1CronJobSpec instance) { + public V1CronJobSpecFluentImpl(V1CronJobSpec instance) { this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); this.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); @@ -42,35 +42,35 @@ public V1CronJobSpecFluentImpl(io.kubernetes.client.openapi.models.V1CronJobSpec private String concurrencyPolicy; private Integer failedJobsHistoryLimit; private V1JobTemplateSpecBuilder jobTemplate; - private java.lang.String schedule; + private String schedule; private Long startingDeadlineSeconds; - private java.lang.Integer successfulJobsHistoryLimit; + private Integer successfulJobsHistoryLimit; private Boolean suspend; - private java.lang.String timeZone; + private String timeZone; - public java.lang.String getConcurrencyPolicy() { + public String getConcurrencyPolicy() { return this.concurrencyPolicy; } - public A withConcurrencyPolicy(java.lang.String concurrencyPolicy) { + public A withConcurrencyPolicy(String concurrencyPolicy) { this.concurrencyPolicy = concurrencyPolicy; return (A) this; } - public java.lang.Boolean hasConcurrencyPolicy() { + public Boolean hasConcurrencyPolicy() { return this.concurrencyPolicy != null; } - public java.lang.Integer getFailedJobsHistoryLimit() { + public Integer getFailedJobsHistoryLimit() { return this.failedJobsHistoryLimit; } - public A withFailedJobsHistoryLimit(java.lang.Integer failedJobsHistoryLimit) { + public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { this.failedJobsHistoryLimit = failedJobsHistoryLimit; return (A) this; } - public java.lang.Boolean hasFailedJobsHistoryLimit() { + public Boolean hasFailedJobsHistoryLimit() { return this.failedJobsHistoryLimit != null; } @@ -80,24 +80,27 @@ public java.lang.Boolean hasFailedJobsHistoryLimit() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1JobTemplateSpec getJobTemplate() { + public V1JobTemplateSpec getJobTemplate() { return this.jobTemplate != null ? this.jobTemplate.build() : null; } - public io.kubernetes.client.openapi.models.V1JobTemplateSpec buildJobTemplate() { + public V1JobTemplateSpec buildJobTemplate() { return this.jobTemplate != null ? this.jobTemplate.build() : null; } - public A withJobTemplate(io.kubernetes.client.openapi.models.V1JobTemplateSpec jobTemplate) { + public A withJobTemplate(V1JobTemplateSpec jobTemplate) { _visitables.get("jobTemplate").remove(this.jobTemplate); if (jobTemplate != null) { this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); _visitables.get("jobTemplate").add(this.jobTemplate); + } else { + this.jobTemplate = null; + _visitables.get("jobTemplate").remove(this.jobTemplate); } return (A) this; } - public java.lang.Boolean hasJobTemplate() { + public Boolean hasJobTemplate() { return this.jobTemplate != null; } @@ -105,91 +108,85 @@ public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplate() { return new V1CronJobSpecFluentImpl.JobTemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - withNewJobTemplateLike(io.kubernetes.client.openapi.models.V1JobTemplateSpec item) { + public V1CronJobSpecFluent.JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { return new V1CronJobSpecFluentImpl.JobTemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - editJobTemplate() { + public V1CronJobSpecFluent.JobTemplateNested editJobTemplate() { return withNewJobTemplateLike(getJobTemplate()); } - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplate() { + public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplate() { return withNewJobTemplateLike( - getJobTemplate() != null - ? getJobTemplate() - : new io.kubernetes.client.openapi.models.V1JobTemplateSpecBuilder().build()); + getJobTemplate() != null ? getJobTemplate() : new V1JobTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplateLike(io.kubernetes.client.openapi.models.V1JobTemplateSpec item) { + public V1CronJobSpecFluent.JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item) { return withNewJobTemplateLike(getJobTemplate() != null ? getJobTemplate() : item); } - public java.lang.String getSchedule() { + public String getSchedule() { return this.schedule; } - public A withSchedule(java.lang.String schedule) { + public A withSchedule(String schedule) { this.schedule = schedule; return (A) this; } - public java.lang.Boolean hasSchedule() { + public Boolean hasSchedule() { return this.schedule != null; } - public java.lang.Long getStartingDeadlineSeconds() { + public Long getStartingDeadlineSeconds() { return this.startingDeadlineSeconds; } - public A withStartingDeadlineSeconds(java.lang.Long startingDeadlineSeconds) { + public A withStartingDeadlineSeconds(Long startingDeadlineSeconds) { this.startingDeadlineSeconds = startingDeadlineSeconds; return (A) this; } - public java.lang.Boolean hasStartingDeadlineSeconds() { + public Boolean hasStartingDeadlineSeconds() { return this.startingDeadlineSeconds != null; } - public java.lang.Integer getSuccessfulJobsHistoryLimit() { + public Integer getSuccessfulJobsHistoryLimit() { return this.successfulJobsHistoryLimit; } - public A withSuccessfulJobsHistoryLimit(java.lang.Integer successfulJobsHistoryLimit) { + public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return (A) this; } - public java.lang.Boolean hasSuccessfulJobsHistoryLimit() { + public Boolean hasSuccessfulJobsHistoryLimit() { return this.successfulJobsHistoryLimit != null; } - public java.lang.Boolean getSuspend() { + public Boolean getSuspend() { return this.suspend; } - public A withSuspend(java.lang.Boolean suspend) { + public A withSuspend(Boolean suspend) { this.suspend = suspend; return (A) this; } - public java.lang.Boolean hasSuspend() { + public Boolean hasSuspend() { return this.suspend != null; } - public java.lang.String getTimeZone() { + public String getTimeZone() { return this.timeZone; } - public A withTimeZone(java.lang.String timeZone) { + public A withTimeZone(String timeZone) { this.timeZone = timeZone; return (A) this; } - public java.lang.Boolean hasTimeZone() { + public Boolean hasTimeZone() { return this.timeZone != null; } @@ -230,7 +227,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (concurrencyPolicy != null) { @@ -275,17 +272,16 @@ public A withSuspend() { class JobTemplateNestedImpl extends V1JobTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1CronJobSpecFluent.JobTemplateNested, - Nested { + implements V1CronJobSpecFluent.JobTemplateNested, Nested { JobTemplateNestedImpl(V1JobTemplateSpec item) { this.builder = new V1JobTemplateSpecBuilder(this, item); } JobTemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JobTemplateSpecBuilder(this); + this.builder = new V1JobTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1JobTemplateSpecBuilder builder; + V1JobTemplateSpecBuilder builder; public N and() { return (N) V1CronJobSpecFluentImpl.this.withJobTemplate(builder.build()); 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 747b523953..780983cc1d 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1CronJobStatusBuilder extends V1CronJobStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CronJobStatus, - io.kubernetes.client.openapi.models.V1CronJobStatusBuilder> { + implements VisitableBuilder { public V1CronJobStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent) { this(fluent, false); } - public V1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1CronJobStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1CronJobStatus(), validationEnabled); } - public V1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1CronJobStatusFluent fluent, - io.kubernetes.client.openapi.models.V1CronJobStatus instance) { + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent, V1CronJobStatus instance) { this(fluent, instance, false); } public V1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1CronJobStatusFluent fluent, - io.kubernetes.client.openapi.models.V1CronJobStatus instance, - java.lang.Boolean validationEnabled) { + V1CronJobStatusFluent fluent, V1CronJobStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withActive(instance.getActive()); @@ -56,13 +48,11 @@ public V1CronJobStatusBuilder( this.validationEnabled = validationEnabled; } - public V1CronJobStatusBuilder(io.kubernetes.client.openapi.models.V1CronJobStatus instance) { + public V1CronJobStatusBuilder(V1CronJobStatus instance) { this(instance, false); } - public V1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1CronJobStatus instance, - java.lang.Boolean validationEnabled) { + public V1CronJobStatusBuilder(V1CronJobStatus instance, Boolean validationEnabled) { this.fluent = this; this.withActive(instance.getActive()); @@ -73,10 +63,10 @@ public V1CronJobStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CronJobStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1CronJobStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CronJobStatus build() { + public V1CronJobStatus build() { V1CronJobStatus buildable = new V1CronJobStatus(); buildable.setActive(fluent.getActive()); buildable.setLastScheduleTime(fluent.getLastScheduleTime()); 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 8247f0f752..60d0ddc384 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 @@ -23,17 +23,15 @@ public interface V1CronJobStatusFluent> extends Fluent { public A addToActive(Integer index, V1ObjectReference item); - public A setToActive( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item); + public A setToActive(Integer index, V1ObjectReference item); public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A addAllToActive(Collection items); + public A addAllToActive(Collection items); public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A removeAllFromActive( - java.util.Collection items); + public A removeAllFromActive(Collection items); public A removeMatchingFromActive(Predicate predicate); @@ -43,62 +41,53 @@ public A removeAllFromActive( * @return The buildable object. */ @Deprecated - public List getActive(); + public List getActive(); - public java.util.List buildActive(); + public List buildActive(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildActive(java.lang.Integer index); + public V1ObjectReference buildActive(Integer index); - public io.kubernetes.client.openapi.models.V1ObjectReference buildFirstActive(); + public V1ObjectReference buildFirstActive(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildLastActive(); + public V1ObjectReference buildLastActive(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingActive( - java.util.function.Predicate - predicate); + public V1ObjectReference buildMatchingActive(Predicate predicate); - public Boolean hasMatchingActive( - java.util.function.Predicate - predicate); + public Boolean hasMatchingActive(Predicate predicate); - public A withActive(java.util.List active); + public A withActive(List active); public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active); - public java.lang.Boolean hasActive(); + public Boolean hasActive(); public V1CronJobStatusFluent.ActiveNested addNewActive(); - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested addNewActiveLike( - io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1CronJobStatusFluent.ActiveNested addNewActiveLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested setNewActiveLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1CronJobStatusFluent.ActiveNested setNewActiveLike( + Integer index, V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested editActive( - java.lang.Integer index); + public V1CronJobStatusFluent.ActiveNested editActive(Integer index); - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested - editFirstActive(); + public V1CronJobStatusFluent.ActiveNested editFirstActive(); - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested editLastActive(); + public V1CronJobStatusFluent.ActiveNested editLastActive(); - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested - editMatchingActive( - java.util.function.Predicate - predicate); + public V1CronJobStatusFluent.ActiveNested editMatchingActive( + Predicate predicate); public OffsetDateTime getLastScheduleTime(); - public A withLastScheduleTime(java.time.OffsetDateTime lastScheduleTime); + public A withLastScheduleTime(OffsetDateTime lastScheduleTime); - public java.lang.Boolean hasLastScheduleTime(); + public Boolean hasLastScheduleTime(); - public java.time.OffsetDateTime getLastSuccessfulTime(); + public OffsetDateTime getLastSuccessfulTime(); - public A withLastSuccessfulTime(java.time.OffsetDateTime lastSuccessfulTime); + public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime); - public java.lang.Boolean hasLastSuccessfulTime(); + public Boolean hasLastSuccessfulTime(); public interface ActiveNested extends Nested, V1ObjectReferenceFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java index fe2ad868de..50af90e729 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluentImpl.java @@ -27,7 +27,7 @@ public class V1CronJobStatusFluentImpl> exten implements V1CronJobStatusFluent { public V1CronJobStatusFluentImpl() {} - public V1CronJobStatusFluentImpl(io.kubernetes.client.openapi.models.V1CronJobStatus instance) { + public V1CronJobStatusFluentImpl(V1CronJobStatus instance) { this.withActive(instance.getActive()); this.withLastScheduleTime(instance.getLastScheduleTime()); @@ -37,27 +37,23 @@ public V1CronJobStatusFluentImpl(io.kubernetes.client.openapi.models.V1CronJobSt private ArrayList active; private OffsetDateTime lastScheduleTime; - private java.time.OffsetDateTime lastSuccessfulTime; + private OffsetDateTime lastSuccessfulTime; - public A addToActive(Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { + public A addToActive(Integer index, V1ObjectReference item) { if (this.active == null) { - this.active = new java.util.ArrayList(); + this.active = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("active").add(index >= 0 ? index : _visitables.get("active").size(), builder); this.active.add(index >= 0 ? index : active.size(), builder); return (A) this; } - public A setToActive( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { + public A setToActive(Integer index, V1ObjectReference item) { if (this.active == null) { - this.active = - new java.util.ArrayList(); + this.active = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= _visitables.get("active").size()) { _visitables.get("active").add(builder); } else { @@ -73,26 +69,22 @@ public A setToActive( public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { if (this.active == null) { - this.active = - new java.util.ArrayList(); + this.active = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + 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) { + public A addAllToActive(Collection items) { if (this.active == null) { - this.active = - new java.util.ArrayList(); + this.active = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("active").add(builder); this.active.add(builder); } @@ -100,9 +92,8 @@ public A addAllToActive(Collection items) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + public A removeAllFromActive(Collection items) { + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("active").remove(builder); if (this.active != null) { this.active.remove(builder); @@ -124,14 +113,12 @@ public A removeAllFromActive( return (A) this; } - public A removeMatchingFromActive( - Predicate predicate) { + public A removeMatchingFromActive(Predicate predicate) { if (active == null) return (A) this; - final Iterator each = - active.iterator(); + final Iterator each = active.iterator(); final List visitables = _visitables.get("active"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = each.next(); + V1ObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -146,31 +133,28 @@ public A removeMatchingFromActive( * @return The buildable object. */ @Deprecated - public List getActive() { + public List getActive() { return active != null ? build(active) : null; } - public java.util.List buildActive() { + public List buildActive() { return active != null ? build(active) : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildActive( - java.lang.Integer index) { + public V1ObjectReference buildActive(Integer index) { return this.active.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ObjectReference buildFirstActive() { + public V1ObjectReference buildFirstActive() { return this.active.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ObjectReference buildLastActive() { + public V1ObjectReference buildLastActive() { return this.active.get(active.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingActive( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder item : active) { + public V1ObjectReference buildMatchingActive(Predicate predicate) { + for (V1ObjectReferenceBuilder item : active) { if (predicate.test(item)) { return item.build(); } @@ -178,10 +162,8 @@ public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingActive return null; } - public Boolean hasMatchingActive( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder item : active) { + public Boolean hasMatchingActive(Predicate predicate) { + for (V1ObjectReferenceBuilder item : active) { if (predicate.test(item)) { return true; } @@ -189,14 +171,13 @@ public Boolean hasMatchingActive( return false; } - public A withActive( - java.util.List active) { + public A withActive(List active) { if (this.active != null) { _visitables.get("active").removeAll(this.active); } if (active != null) { - this.active = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ObjectReference item : active) { + this.active = new ArrayList(); + for (V1ObjectReference item : active) { this.addToActive(item); } } else { @@ -210,14 +191,14 @@ public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... act this.active.clear(); } if (active != null) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : active) { + for (V1ObjectReference item : active) { this.addToActive(item); } } return (A) this; } - public java.lang.Boolean hasActive() { + public Boolean hasActive() { return active != null && !active.isEmpty(); } @@ -225,42 +206,35 @@ public V1CronJobStatusFluent.ActiveNested addNewActive() { return new V1CronJobStatusFluentImpl.ActiveNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested addNewActiveLike( - io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1CronJobStatusFluent.ActiveNested addNewActiveLike(V1ObjectReference item) { return new V1CronJobStatusFluentImpl.ActiveNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested setNewActiveLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1CronJobStatusFluentImpl.ActiveNestedImpl( - index, item); + public V1CronJobStatusFluent.ActiveNested setNewActiveLike( + Integer index, V1ObjectReference item) { + return new V1CronJobStatusFluentImpl.ActiveNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested editActive( - java.lang.Integer index) { + public V1CronJobStatusFluent.ActiveNested editActive(Integer index) { if (active.size() <= index) throw new RuntimeException("Can't edit active. Index exceeds size."); return setNewActiveLike(index, buildActive(index)); } - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested - editFirstActive() { + public V1CronJobStatusFluent.ActiveNested editFirstActive() { if (active.size() == 0) throw new RuntimeException("Can't edit first active. The list is empty."); return setNewActiveLike(0, buildActive(0)); } - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested - editLastActive() { + public V1CronJobStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested - editMatchingActive( - java.util.function.Predicate - predicate) { + public V1CronJobStatusFluent.ActiveNested editMatchingActive( + Predicate predicate) { int index = -1; for (int i = 0; i < active.size(); i++) { if (predicate.test(active.get(i))) { @@ -272,29 +246,29 @@ public io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested return setNewActiveLike(index, buildActive(index)); } - public java.time.OffsetDateTime getLastScheduleTime() { + public OffsetDateTime getLastScheduleTime() { return this.lastScheduleTime; } - public A withLastScheduleTime(java.time.OffsetDateTime lastScheduleTime) { + public A withLastScheduleTime(OffsetDateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; return (A) this; } - public java.lang.Boolean hasLastScheduleTime() { + public Boolean hasLastScheduleTime() { return this.lastScheduleTime != null; } - public java.time.OffsetDateTime getLastSuccessfulTime() { + public OffsetDateTime getLastSuccessfulTime() { return this.lastSuccessfulTime; } - public A withLastSuccessfulTime(java.time.OffsetDateTime lastSuccessfulTime) { + public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { this.lastSuccessfulTime = lastSuccessfulTime; return (A) this; } - public java.lang.Boolean hasLastSuccessfulTime() { + public Boolean hasLastSuccessfulTime() { return this.lastSuccessfulTime != null; } @@ -337,21 +311,19 @@ public String toString() { class ActiveNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1CronJobStatusFluent.ActiveNested, - Nested { - ActiveNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1CronJobStatusFluent.ActiveNested, Nested { + ActiveNestedImpl(Integer index, V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } ActiveNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; - java.lang.Integer index; + V1ObjectReferenceBuilder builder; + Integer index; public N and() { return (N) V1CronJobStatusFluentImpl.this.setToActive(index, builder.build()); 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 4f4a942e55..3f02de6aba 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 @@ -17,8 +17,7 @@ public class V1CrossVersionObjectReferenceBuilder extends V1CrossVersionObjectReferenceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference, - io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceBuilder> { + V1CrossVersionObjectReference, V1CrossVersionObjectReferenceBuilder> { public V1CrossVersionObjectReferenceBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent< } public V1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V1CrossVersionObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1CrossVersionObjectReference(), validationEnabled); } public V1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference instance) { + V1CrossVersionObjectReferenceFluent fluent, V1CrossVersionObjectReference instance) { this(fluent, instance, false); } public V1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { + V1CrossVersionObjectReferenceFluent fluent, + V1CrossVersionObjectReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,14 +54,12 @@ public V1CrossVersionObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference instance) { + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReference instance) { this(instance, false); } public V1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { + V1CrossVersionObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -75,10 +70,10 @@ public V1CrossVersionObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1CrossVersionObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CrossVersionObjectReference build() { + public V1CrossVersionObjectReference build() { V1CrossVersionObjectReference buildable = new V1CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 36a9c1a22c..9e961120a5 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 @@ -20,19 +20,19 @@ public interface V1CrossVersionObjectReferenceFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java index e44fe1cb45..555fe654d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluentImpl.java @@ -21,8 +21,7 @@ public class V1CrossVersionObjectReferenceFluentImpl< extends BaseFluent implements V1CrossVersionObjectReferenceFluent { public V1CrossVersionObjectReferenceFluentImpl() {} - public V1CrossVersionObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference instance) { + public V1CrossVersionObjectReferenceFluentImpl(V1CrossVersionObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -31,14 +30,14 @@ public V1CrossVersionObjectReferenceFluentImpl( } private String apiVersion; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -47,29 +46,29 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 9f191776b8..a3fd6aa227 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 @@ -17,8 +17,7 @@ public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> { + V1CustomResourceColumnDefinition, V1CustomResourceColumnDefinitionBuilder> { public V1CustomResourceColumnDefinitionBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionF } public V1CustomResourceColumnDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceColumnDefinitionFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceColumnDefinition(), validationEnabled); } public V1CustomResourceColumnDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition instance) { + V1CustomResourceColumnDefinitionFluent fluent, V1CustomResourceColumnDefinition instance) { this(fluent, instance, false); } public V1CustomResourceColumnDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceColumnDefinitionFluent fluent, + V1CustomResourceColumnDefinition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDescription(instance.getDescription()); @@ -63,14 +60,12 @@ public V1CustomResourceColumnDefinitionBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceColumnDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition instance) { + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance) { this(instance, false); } public V1CustomResourceColumnDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceColumnDefinition instance, Boolean validationEnabled) { this.fluent = this; this.withDescription(instance.getDescription()); @@ -87,10 +82,10 @@ public V1CustomResourceColumnDefinitionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceColumnDefinitionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition build() { + public V1CustomResourceColumnDefinition build() { V1CustomResourceColumnDefinition buildable = new V1CustomResourceColumnDefinition(); buildable.setDescription(fluent.getDescription()); buildable.setFormat(fluent.getFormat()); 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 88d74b0647..c46a2df71a 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 @@ -20,37 +20,37 @@ public interface V1CustomResourceColumnDefinitionFluent< extends Fluent { public String getDescription(); - public A withDescription(java.lang.String description); + public A withDescription(String description); public Boolean hasDescription(); - public java.lang.String getFormat(); + public String getFormat(); - public A withFormat(java.lang.String format); + public A withFormat(String format); - public java.lang.Boolean hasFormat(); + public Boolean hasFormat(); - public java.lang.String getJsonPath(); + public String getJsonPath(); - public A withJsonPath(java.lang.String jsonPath); + public A withJsonPath(String jsonPath); - public java.lang.Boolean hasJsonPath(); + public Boolean hasJsonPath(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public Integer getPriority(); - public A withPriority(java.lang.Integer priority); + public A withPriority(Integer priority); - public java.lang.Boolean hasPriority(); + public Boolean hasPriority(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java index 2298bcb62e..8e3302ff69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluentImpl.java @@ -21,8 +21,7 @@ public class V1CustomResourceColumnDefinitionFluentImpl< extends BaseFluent implements V1CustomResourceColumnDefinitionFluent { public V1CustomResourceColumnDefinitionFluentImpl() {} - public V1CustomResourceColumnDefinitionFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition instance) { + public V1CustomResourceColumnDefinitionFluentImpl(V1CustomResourceColumnDefinition instance) { this.withDescription(instance.getDescription()); this.withFormat(instance.getFormat()); @@ -37,17 +36,17 @@ public V1CustomResourceColumnDefinitionFluentImpl( } private String description; - private java.lang.String format; - private java.lang.String jsonPath; - private java.lang.String name; + private String format; + private String jsonPath; + private String name; private Integer priority; - private java.lang.String type; + private String type; - public java.lang.String getDescription() { + public String getDescription() { return this.description; } - public A withDescription(java.lang.String description) { + public A withDescription(String description) { this.description = description; return (A) this; } @@ -56,68 +55,68 @@ public Boolean hasDescription() { return this.description != null; } - public java.lang.String getFormat() { + public String getFormat() { return this.format; } - public A withFormat(java.lang.String format) { + public A withFormat(String format) { this.format = format; return (A) this; } - public java.lang.Boolean hasFormat() { + public Boolean hasFormat() { return this.format != null; } - public java.lang.String getJsonPath() { + public String getJsonPath() { return this.jsonPath; } - public A withJsonPath(java.lang.String jsonPath) { + public A withJsonPath(String jsonPath) { this.jsonPath = jsonPath; return (A) this; } - public java.lang.Boolean hasJsonPath() { + public Boolean hasJsonPath() { return this.jsonPath != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Integer getPriority() { + public Integer getPriority() { return this.priority; } - public A withPriority(java.lang.Integer priority) { + public A withPriority(Integer priority) { this.priority = priority; return (A) this; } - public java.lang.Boolean hasPriority() { + public Boolean hasPriority() { return this.priority != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -141,7 +140,7 @@ public int hashCode() { description, format, jsonPath, name, priority, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (description != null) { 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 ede2b112ed..e0099591c7 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 @@ -16,9 +16,7 @@ public class V1CustomResourceConversionBuilder extends V1CustomResourceConversionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CustomResourceConversion, - V1CustomResourceConversionBuilder> { + implements VisitableBuilder { public V1CustomResourceConversionBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1CustomResourceConversionBuilder(Boolean validationEnabled) { this(new V1CustomResourceConversion(), validationEnabled); } - public V1CustomResourceConversionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent fluent) { + public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent) { this(fluent, false); } public V1CustomResourceConversionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceConversionFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceConversion(), validationEnabled); } public V1CustomResourceConversionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceConversion instance) { + V1CustomResourceConversionFluent fluent, V1CustomResourceConversion instance) { this(fluent, instance, false); } public V1CustomResourceConversionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceConversion instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceConversionFluent fluent, + V1CustomResourceConversion instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withStrategy(instance.getStrategy()); @@ -56,14 +51,12 @@ public V1CustomResourceConversionBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceConversionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceConversion instance) { + public V1CustomResourceConversionBuilder(V1CustomResourceConversion instance) { this(instance, false); } public V1CustomResourceConversionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceConversion instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceConversion instance, Boolean validationEnabled) { this.fluent = this; this.withStrategy(instance.getStrategy()); @@ -72,10 +65,10 @@ public V1CustomResourceConversionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceConversionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceConversion build() { + public V1CustomResourceConversion build() { V1CustomResourceConversion buildable = new V1CustomResourceConversion(); buildable.setStrategy(fluent.getStrategy()); buildable.setWebhook(fluent.getWebhook()); 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 9b6d704e5f..2f98469137 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java @@ -20,7 +20,7 @@ public interface V1CustomResourceConversionFluent { public String getStrategy(); - public A withStrategy(java.lang.String strategy); + public A withStrategy(String strategy); public Boolean hasStrategy(); @@ -32,25 +32,23 @@ public interface V1CustomResourceConversionFluent withNewWebhook(); - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - withNewWebhookLike(io.kubernetes.client.openapi.models.V1WebhookConversion item); + public V1CustomResourceConversionFluent.WebhookNested withNewWebhookLike( + V1WebhookConversion item); - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - editWebhook(); + public V1CustomResourceConversionFluent.WebhookNested editWebhook(); - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - editOrNewWebhook(); + public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhook(); - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - editOrNewWebhookLike(io.kubernetes.client.openapi.models.V1WebhookConversion item); + public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhookLike( + V1WebhookConversion item); public interface WebhookNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java index bc91868f91..5cfe6168b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluentImpl.java @@ -21,8 +21,7 @@ public class V1CustomResourceConversionFluentImpl implements V1CustomResourceConversionFluent { public V1CustomResourceConversionFluentImpl() {} - public V1CustomResourceConversionFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceConversion instance) { + public V1CustomResourceConversionFluentImpl(V1CustomResourceConversion instance) { this.withStrategy(instance.getStrategy()); this.withWebhook(instance.getWebhook()); @@ -31,11 +30,11 @@ public V1CustomResourceConversionFluentImpl( private String strategy; private V1WebhookConversionBuilder webhook; - public java.lang.String getStrategy() { + public String getStrategy() { return this.strategy; } - public A withStrategy(java.lang.String strategy) { + public A withStrategy(String strategy) { this.strategy = strategy; return (A) this; } @@ -50,24 +49,27 @@ public Boolean hasStrategy() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1WebhookConversion getWebhook() { + public V1WebhookConversion getWebhook() { return this.webhook != null ? this.webhook.build() : null; } - public io.kubernetes.client.openapi.models.V1WebhookConversion buildWebhook() { + public V1WebhookConversion buildWebhook() { return this.webhook != null ? this.webhook.build() : null; } - public A withWebhook(io.kubernetes.client.openapi.models.V1WebhookConversion webhook) { + public A withWebhook(V1WebhookConversion webhook) { _visitables.get("webhook").remove(this.webhook); if (webhook != null) { this.webhook = new V1WebhookConversionBuilder(webhook); _visitables.get("webhook").add(this.webhook); + } else { + this.webhook = null; + _visitables.get("webhook").remove(this.webhook); } return (A) this; } - public java.lang.Boolean hasWebhook() { + public Boolean hasWebhook() { return this.webhook != null; } @@ -75,26 +77,22 @@ public V1CustomResourceConversionFluent.WebhookNested withNewWebhook() { return new V1CustomResourceConversionFluentImpl.WebhookNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - withNewWebhookLike(io.kubernetes.client.openapi.models.V1WebhookConversion item) { + public V1CustomResourceConversionFluent.WebhookNested withNewWebhookLike( + V1WebhookConversion item) { return new V1CustomResourceConversionFluentImpl.WebhookNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - editWebhook() { + public V1CustomResourceConversionFluent.WebhookNested editWebhook() { return withNewWebhookLike(getWebhook()); } - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - editOrNewWebhook() { + public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhook() { return withNewWebhookLike( - getWebhook() != null - ? getWebhook() - : new io.kubernetes.client.openapi.models.V1WebhookConversionBuilder().build()); + getWebhook() != null ? getWebhook() : new V1WebhookConversionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested - editOrNewWebhookLike(io.kubernetes.client.openapi.models.V1WebhookConversion item) { + public V1CustomResourceConversionFluent.WebhookNested editOrNewWebhookLike( + V1WebhookConversion item) { return withNewWebhookLike(getWebhook() != null ? getWebhook() : item); } @@ -111,7 +109,7 @@ public int hashCode() { return java.util.Objects.hash(strategy, webhook, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (strategy != null) { @@ -128,18 +126,16 @@ public java.lang.String toString() { class WebhookNestedImpl extends V1WebhookConversionFluentImpl> - implements io.kubernetes.client.openapi.models.V1CustomResourceConversionFluent.WebhookNested< - N>, - Nested { + implements V1CustomResourceConversionFluent.WebhookNested, Nested { WebhookNestedImpl(V1WebhookConversion item) { this.builder = new V1WebhookConversionBuilder(this, item); } WebhookNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1WebhookConversionBuilder(this); + this.builder = new V1WebhookConversionBuilder(this); } - io.kubernetes.client.openapi.models.V1WebhookConversionBuilder builder; + V1WebhookConversionBuilder builder; public N and() { return (N) V1CustomResourceConversionFluentImpl.this.withWebhook(builder.build()); 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 19e51b1c1c..e05f26d5a2 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 @@ -16,9 +16,7 @@ public class V1CustomResourceDefinitionBuilder extends V1CustomResourceDefinitionFluentImpl - implements VisitableBuilder< - V1CustomResourceDefinition, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> { + implements VisitableBuilder { public V1CustomResourceDefinitionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent flu } public V1CustomResourceDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinition(), validationEnabled); } public V1CustomResourceDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinition instance) { + V1CustomResourceDefinitionFluent fluent, V1CustomResourceDefinition instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinition instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionFluent fluent, + V1CustomResourceDefinition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V1CustomResourceDefinitionBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinition instance) { + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinition instance) { this(instance, false); } public V1CustomResourceDefinitionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinition instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinition instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V1CustomResourceDefinitionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition build() { + public V1CustomResourceDefinition build() { V1CustomResourceDefinition buildable = new V1CustomResourceDefinition(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 56e24899fc..517cf270db 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 @@ -18,8 +18,7 @@ public class V1CustomResourceDefinitionConditionBuilder extends V1CustomResourceDefinitionConditionFluentImpl< V1CustomResourceDefinitionConditionBuilder> implements VisitableBuilder< - V1CustomResourceDefinitionCondition, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> { + V1CustomResourceDefinitionCondition, V1CustomResourceDefinitionConditionBuilder> { public V1CustomResourceDefinitionConditionBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1CustomResourceDefinitionConditionBuilder( } public V1CustomResourceDefinitionConditionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionCondition(), validationEnabled); } public V1CustomResourceDefinitionConditionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition instance) { + V1CustomResourceDefinitionConditionFluent fluent, + V1CustomResourceDefinitionCondition instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionConditionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionConditionFluent fluent, + V1CustomResourceDefinitionCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -63,14 +61,12 @@ public V1CustomResourceDefinitionConditionBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionConditionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition instance) { + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCondition instance) { this(instance, false); } public V1CustomResourceDefinitionConditionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -85,10 +81,10 @@ public V1CustomResourceDefinitionConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition build() { + public V1CustomResourceDefinitionCondition build() { V1CustomResourceDefinitionCondition buildable = new V1CustomResourceDefinitionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 ffe37667ff..640fd0e4c4 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 @@ -21,31 +21,31 @@ public interface V1CustomResourceDefinitionConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java index 0703eb6a72..7be950326b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluentImpl.java @@ -23,7 +23,7 @@ public class V1CustomResourceDefinitionConditionFluentImpl< public V1CustomResourceDefinitionConditionFluentImpl() {} public V1CustomResourceDefinitionConditionFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition instance) { + V1CustomResourceDefinitionCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -37,15 +37,15 @@ public V1CustomResourceDefinitionConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -54,55 +54,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -126,7 +126,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 4ff4b87dd3..5bd251ea15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java @@ -20,15 +20,15 @@ public interface V1CustomResourceDefinitionFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,82 +38,74 @@ public interface V1CustomResourceDefinitionFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - editMetadata(); + public V1CustomResourceDefinitionFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - editOrNewMetadata(); + public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceDefinitionSpec getSpec(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec buildSpec(); + public V1CustomResourceDefinitionSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec spec); + public A withSpec(V1CustomResourceDefinitionSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1CustomResourceDefinitionFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec item); + public V1CustomResourceDefinitionFluent.SpecNested withNewSpecLike( + V1CustomResourceDefinitionSpec item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - editSpec(); + public V1CustomResourceDefinitionFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - editOrNewSpec(); + public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec item); + public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpecLike( + V1CustomResourceDefinitionSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceDefinitionStatus getStatus(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus buildStatus(); + public V1CustomResourceDefinitionStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus status); + public A withStatus(V1CustomResourceDefinitionStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1CustomResourceDefinitionFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus item); + public V1CustomResourceDefinitionFluent.StatusNested withNewStatusLike( + V1CustomResourceDefinitionStatus item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - editStatus(); + public V1CustomResourceDefinitionFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - editOrNewStatus(); + public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus item); + public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatusLike( + V1CustomResourceDefinitionStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -123,7 +115,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceDefinitionSpecFluent> { public N and(); @@ -131,7 +123,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceDefinitionStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java index c2572e4944..d5fede4e36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluentImpl.java @@ -21,8 +21,7 @@ public class V1CustomResourceDefinitionFluentImpl implements V1CustomResourceDefinitionFluent { public V1CustomResourceDefinitionFluentImpl() {} - public V1CustomResourceDefinitionFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinition instance) { + public V1CustomResourceDefinitionFluentImpl(V1CustomResourceDefinition instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1CustomResourceDefinitionFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1CustomResourceDefinitionSpecBuilder spec; private V1CustomResourceDefinitionStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,21 @@ public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadata() { return new V1CustomResourceDefinitionFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1CustomResourceDefinitionFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - editMetadata() { + public V1CustomResourceDefinitionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - editOrNewMetadata() { + public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1CustomResourceDefinitionFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,26 +122,28 @@ public V1CustomResourceDefinitionFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceDefinitionSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec buildSpec() { + public V1CustomResourceDefinitionSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec spec) { + public A withSpec(V1CustomResourceDefinitionSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecBuilder(spec); + this.spec = new V1CustomResourceDefinitionSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -152,28 +151,22 @@ public V1CustomResourceDefinitionFluent.SpecNested withNewSpec() { return new V1CustomResourceDefinitionFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluentImpl - .SpecNestedImpl(item); + public V1CustomResourceDefinitionFluent.SpecNested withNewSpecLike( + V1CustomResourceDefinitionSpec item) { + return new V1CustomResourceDefinitionFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - editSpec() { + public V1CustomResourceDefinitionFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - editOrNewSpec() { + public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1CustomResourceDefinitionSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec item) { + public V1CustomResourceDefinitionFluent.SpecNested editOrNewSpecLike( + V1CustomResourceDefinitionSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -182,26 +175,28 @@ public V1CustomResourceDefinitionFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceDefinitionStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus buildStatus() { + public V1CustomResourceDefinitionStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus status) { + public A withStatus(V1CustomResourceDefinitionStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusBuilder(status); + this.status = new V1CustomResourceDefinitionStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -209,29 +204,22 @@ public V1CustomResourceDefinitionFluent.StatusNested withNewStatus() { return new V1CustomResourceDefinitionFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluentImpl - .StatusNestedImpl(item); + public V1CustomResourceDefinitionFluent.StatusNested withNewStatusLike( + V1CustomResourceDefinitionStatus item) { + return new V1CustomResourceDefinitionFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - editStatus() { + public V1CustomResourceDefinitionFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - editOrNewStatus() { + public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V1CustomResourceDefinitionStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus item) { + public V1CustomResourceDefinitionFluent.StatusNested editOrNewStatusLike( + V1CustomResourceDefinitionStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -252,7 +240,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -281,19 +269,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent - .MetadataNested< - N>, - Nested { + implements V1CustomResourceDefinitionFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1CustomResourceDefinitionFluentImpl.this.withMetadata(builder.build()); @@ -307,18 +292,16 @@ public N endMetadata() { class SpecNestedImpl extends V1CustomResourceDefinitionSpecFluentImpl< V1CustomResourceDefinitionFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1CustomResourceDefinitionFluent.SpecNested, Nested { SpecNestedImpl(V1CustomResourceDefinitionSpec item) { this.builder = new V1CustomResourceDefinitionSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecBuilder(this); + this.builder = new V1CustomResourceDefinitionSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecBuilder builder; + V1CustomResourceDefinitionSpecBuilder builder; public N and() { return (N) V1CustomResourceDefinitionFluentImpl.this.withSpec(builder.build()); @@ -332,19 +315,16 @@ public N endSpec() { class StatusNestedImpl extends V1CustomResourceDefinitionStatusFluentImpl< V1CustomResourceDefinitionFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus item) { + implements V1CustomResourceDefinitionFluent.StatusNested, Nested { + StatusNestedImpl(V1CustomResourceDefinitionStatus item) { this.builder = new V1CustomResourceDefinitionStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusBuilder(this); + this.builder = new V1CustomResourceDefinitionStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusBuilder builder; + V1CustomResourceDefinitionStatusBuilder builder; public N and() { return (N) V1CustomResourceDefinitionFluentImpl.this.withStatus(builder.build()); 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 9b1018292d..5df238cf4b 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 @@ -17,8 +17,7 @@ public class V1CustomResourceDefinitionListBuilder extends V1CustomResourceDefinitionListFluentImpl implements VisitableBuilder< - V1CustomResourceDefinitionList, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListBuilder> { + V1CustomResourceDefinitionList, V1CustomResourceDefinitionListBuilder> { public V1CustomResourceDefinitionListBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1CustomResourceDefinitionListBuilder(Boolean validationEnabled) { this(new V1CustomResourceDefinitionList(), validationEnabled); } - public V1CustomResourceDefinitionListBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent fluent) { + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent) { this(fluent, false); } public V1CustomResourceDefinitionListBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionListFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionList(), validationEnabled); } public V1CustomResourceDefinitionListBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionList instance) { + V1CustomResourceDefinitionListFluent fluent, V1CustomResourceDefinitionList instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionListBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionList instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionListFluent fluent, + V1CustomResourceDefinitionList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,14 +56,12 @@ public V1CustomResourceDefinitionListBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionListBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionList instance) { + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionList instance) { this(instance, false); } public V1CustomResourceDefinitionListBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionList instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +74,10 @@ public V1CustomResourceDefinitionListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionList build() { + public V1CustomResourceDefinitionList build() { V1CustomResourceDefinitionList buildable = new V1CustomResourceDefinitionList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 7b2f82a543..12b610d5ad 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 @@ -24,24 +24,21 @@ public interface V1CustomResourceDefinitionListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1CustomResourceDefinition item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1CustomResourceDefinition item); + public A setToItems(Integer index, V1CustomResourceDefinition item); public A addToItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,93 +48,75 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildItem( - java.lang.Integer index); + public V1CustomResourceDefinition buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildFirstItem(); + public V1CustomResourceDefinition buildFirstItem(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildLastItem(); + public V1CustomResourceDefinition buildLastItem(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> - predicate); + public V1CustomResourceDefinition buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1CustomResourceDefinitionListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinition item); + public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike( + V1CustomResourceDefinition item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinition item); + public V1CustomResourceDefinitionListFluent.ItemsNested setNewItemLike( + Integer index, V1CustomResourceDefinition item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1CustomResourceDefinitionListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editFirstItem(); + public V1CustomResourceDefinitionListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editLastItem(); + public V1CustomResourceDefinitionListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> - predicate); + public V1CustomResourceDefinitionListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - editMetadata(); + public V1CustomResourceDefinitionListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - editOrNewMetadata(); + public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -148,8 +127,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java index 1a6a02268b..fa3eac8b85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluentImpl.java @@ -27,8 +27,7 @@ public class V1CustomResourceDefinitionListFluentImpl< extends BaseFluent implements V1CustomResourceDefinitionListFluent { public V1CustomResourceDefinitionListFluentImpl() {} - public V1CustomResourceDefinitionListFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionList instance) { + public V1CustomResourceDefinitionListFluentImpl(V1CustomResourceDefinitionList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -40,14 +39,14 @@ public V1CustomResourceDefinitionListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -56,30 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1CustomResourceDefinition item) { + public A addToItems(Integer index, V1CustomResourceDefinition item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(item); + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinition item) { + public A setToItems(Integer index, V1CustomResourceDefinition item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(item); + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -95,29 +85,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(item); + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -126,9 +109,8 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(item); + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -137,11 +119,9 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -150,14 +130,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder = each.next(); + V1CustomResourceDefinitionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -172,33 +150,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildItem( - java.lang.Integer index) { + public V1CustomResourceDefinition buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildFirstItem() { + public V1CustomResourceDefinition buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildLastItem() { + public V1CustomResourceDefinition buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder item : items) { + public V1CustomResourceDefinition buildMatchingItem( + Predicate predicate) { + for (V1CustomResourceDefinitionBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -206,11 +180,8 @@ public io.kubernetes.client.openapi.models.V1CustomResourceDefinition buildMatch return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1CustomResourceDefinitionBuilder item : items) { if (predicate.test(item)) { return true; } @@ -218,14 +189,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinition item : items) { + this.items = new ArrayList(); + for (V1CustomResourceDefinition item : items) { this.addToItems(item); } } else { @@ -239,14 +209,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinitio this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinition item : items) { + for (V1CustomResourceDefinition item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -255,42 +225,33 @@ public V1CustomResourceDefinitionListFluent.ItemsNested addNewItem() { } public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinition item) { + V1CustomResourceDefinition item) { return new V1CustomResourceDefinitionListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinition item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluentImpl - .ItemsNestedImpl(index, item); + public V1CustomResourceDefinitionListFluent.ItemsNested setNewItemLike( + Integer index, V1CustomResourceDefinition item) { + return new V1CustomResourceDefinitionListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1CustomResourceDefinitionListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editFirstItem() { + public V1CustomResourceDefinitionListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editLastItem() { + public V1CustomResourceDefinitionListFluent.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 io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder> - predicate) { + public V1CustomResourceDefinitionListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -302,16 +263,16 @@ public V1CustomResourceDefinitionListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -320,25 +281,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -346,27 +310,22 @@ public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadata() return new V1CustomResourceDefinitionListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluentImpl - .MetadataNestedImpl(item); + public V1CustomResourceDefinitionListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1CustomResourceDefinitionListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - editMetadata() { + public V1CustomResourceDefinitionListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - editOrNewMetadata() { + public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1CustomResourceDefinitionListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -386,7 +345,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -413,21 +372,18 @@ class ItemsNestedImpl extends V1CustomResourceDefinitionFluentImpl< V1CustomResourceDefinitionListFluent.ItemsNested> implements V1CustomResourceDefinitionListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinition item) { + ItemsNestedImpl(Integer index, V1CustomResourceDefinition item) { this.index = index; this.builder = new V1CustomResourceDefinitionBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder(this); + this.builder = new V1CustomResourceDefinitionBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionBuilder builder; - java.lang.Integer index; + V1CustomResourceDefinitionBuilder builder; + Integer index; public N and() { return (N) V1CustomResourceDefinitionListFluentImpl.this.setToItems(index, builder.build()); @@ -440,19 +396,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1CustomResourceDefinitionListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1CustomResourceDefinitionListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java index 1bfa7d9af8..11fd30bfe6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java @@ -17,8 +17,7 @@ public class V1CustomResourceDefinitionNamesBuilder extends V1CustomResourceDefinitionNamesFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder> { + V1CustomResourceDefinitionNames, V1CustomResourceDefinitionNamesBuilder> { public V1CustomResourceDefinitionNamesBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFlu } public V1CustomResourceDefinitionNamesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionNamesFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionNames(), validationEnabled); } public V1CustomResourceDefinitionNamesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames instance) { + V1CustomResourceDefinitionNamesFluent fluent, V1CustomResourceDefinitionNames instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionNamesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionNamesFluent fluent, + V1CustomResourceDefinitionNames instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCategories(instance.getCategories()); @@ -63,14 +60,12 @@ public V1CustomResourceDefinitionNamesBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionNamesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames instance) { + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNames instance) { this(instance, false); } public V1CustomResourceDefinitionNamesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionNames instance, Boolean validationEnabled) { this.fluent = this; this.withCategories(instance.getCategories()); @@ -87,10 +82,10 @@ public V1CustomResourceDefinitionNamesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionNamesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames build() { + public V1CustomResourceDefinitionNames build() { V1CustomResourceDefinitionNames buildable = new V1CustomResourceDefinitionNames(); buildable.setCategories(fluent.getCategories()); buildable.setKind(fluent.getKind()); 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 e7119b50e3..58a4c425f9 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 @@ -23,87 +23,85 @@ public interface V1CustomResourceDefinitionNamesFluent< extends Fluent { public A addToCategories(Integer index, String item); - public A setToCategories(java.lang.Integer index, java.lang.String item); + public A setToCategories(Integer index, String item); public A addToCategories(java.lang.String... items); - public A addAllToCategories(Collection items); + public A addAllToCategories(Collection items); public A removeFromCategories(java.lang.String... items); - public A removeAllFromCategories(java.util.Collection items); + public A removeAllFromCategories(Collection items); - public List getCategories(); + public List getCategories(); - public java.lang.String getCategory(java.lang.Integer index); + public String getCategory(Integer index); - public java.lang.String getFirstCategory(); + public String getFirstCategory(); - public java.lang.String getLastCategory(); + public String getLastCategory(); - public java.lang.String getMatchingCategory(Predicate predicate); + public String getMatchingCategory(Predicate predicate); - public Boolean hasMatchingCategory(java.util.function.Predicate predicate); + public Boolean hasMatchingCategory(Predicate predicate); - public A withCategories(java.util.List categories); + public A withCategories(List categories); public A withCategories(java.lang.String... categories); - public java.lang.Boolean hasCategories(); + public Boolean hasCategories(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getListKind(); + public String getListKind(); - public A withListKind(java.lang.String listKind); + public A withListKind(String listKind); - public java.lang.Boolean hasListKind(); + public Boolean hasListKind(); - public java.lang.String getPlural(); + public String getPlural(); - public A withPlural(java.lang.String plural); + public A withPlural(String plural); - public java.lang.Boolean hasPlural(); + public Boolean hasPlural(); - public A addToShortNames(java.lang.Integer index, java.lang.String item); + public A addToShortNames(Integer index, String item); - public A setToShortNames(java.lang.Integer index, java.lang.String item); + public A setToShortNames(Integer index, String item); public A addToShortNames(java.lang.String... items); - public A addAllToShortNames(java.util.Collection items); + public A addAllToShortNames(Collection items); public A removeFromShortNames(java.lang.String... items); - public A removeAllFromShortNames(java.util.Collection items); + public A removeAllFromShortNames(Collection items); - public java.util.List getShortNames(); + public List getShortNames(); - public java.lang.String getShortName(java.lang.Integer index); + public String getShortName(Integer index); - public java.lang.String getFirstShortName(); + public String getFirstShortName(); - public java.lang.String getLastShortName(); + public String getLastShortName(); - public java.lang.String getMatchingShortName( - java.util.function.Predicate predicate); + public String getMatchingShortName(Predicate predicate); - public java.lang.Boolean hasMatchingShortName( - java.util.function.Predicate predicate); + public Boolean hasMatchingShortName(Predicate predicate); - public A withShortNames(java.util.List shortNames); + public A withShortNames(List shortNames); public A withShortNames(java.lang.String... shortNames); - public java.lang.Boolean hasShortNames(); + public Boolean hasShortNames(); - public java.lang.String getSingular(); + public String getSingular(); - public A withSingular(java.lang.String singular); + public A withSingular(String singular); - public java.lang.Boolean hasSingular(); + public Boolean hasSingular(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java index 88523156e7..70943a1354 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluentImpl.java @@ -25,8 +25,7 @@ public class V1CustomResourceDefinitionNamesFluentImpl< extends BaseFluent implements V1CustomResourceDefinitionNamesFluent { public V1CustomResourceDefinitionNamesFluentImpl() {} - public V1CustomResourceDefinitionNamesFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames instance) { + public V1CustomResourceDefinitionNamesFluentImpl(V1CustomResourceDefinitionNames instance) { this.withCategories(instance.getCategories()); this.withKind(instance.getKind()); @@ -41,23 +40,23 @@ public V1CustomResourceDefinitionNamesFluentImpl( } private List categories; - private java.lang.String kind; - private java.lang.String listKind; - private java.lang.String plural; - private java.util.List shortNames; - private java.lang.String singular; + private String kind; + private String listKind; + private String plural; + private List shortNames; + private String singular; - public A addToCategories(Integer index, java.lang.String item) { + public A addToCategories(Integer index, String item) { if (this.categories == null) { - this.categories = new ArrayList(); + this.categories = new ArrayList(); } this.categories.add(index, item); return (A) this; } - public A setToCategories(java.lang.Integer index, java.lang.String item) { + public A setToCategories(Integer index, String item) { if (this.categories == null) { - this.categories = new java.util.ArrayList(); + this.categories = new ArrayList(); } this.categories.set(index, item); return (A) this; @@ -65,26 +64,26 @@ public A setToCategories(java.lang.Integer index, java.lang.String item) { public A addToCategories(java.lang.String... items) { if (this.categories == null) { - this.categories = new java.util.ArrayList(); + this.categories = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.categories.add(item); } return (A) this; } - public A addAllToCategories(Collection items) { + public A addAllToCategories(Collection items) { if (this.categories == null) { - this.categories = new java.util.ArrayList(); + this.categories = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.categories.add(item); } return (A) this; } public A removeFromCategories(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.categories != null) { this.categories.remove(item); } @@ -92,8 +91,8 @@ public A removeFromCategories(java.lang.String... items) { return (A) this; } - public A removeAllFromCategories(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromCategories(Collection items) { + for (String item : items) { if (this.categories != null) { this.categories.remove(item); } @@ -101,24 +100,24 @@ public A removeAllFromCategories(java.util.Collection items) { return (A) this; } - public java.util.List getCategories() { + public List getCategories() { return this.categories; } - public java.lang.String getCategory(java.lang.Integer index) { + public String getCategory(Integer index) { return this.categories.get(index); } - public java.lang.String getFirstCategory() { + public String getFirstCategory() { return this.categories.get(0); } - public java.lang.String getLastCategory() { + public String getLastCategory() { return this.categories.get(categories.size() - 1); } - public java.lang.String getMatchingCategory(Predicate predicate) { - for (java.lang.String item : categories) { + public String getMatchingCategory(Predicate predicate) { + for (String item : categories) { if (predicate.test(item)) { return item; } @@ -126,8 +125,8 @@ public java.lang.String getMatchingCategory(Predicate predicat return null; } - public Boolean hasMatchingCategory(java.util.function.Predicate predicate) { - for (java.lang.String item : categories) { + public Boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { if (predicate.test(item)) { return true; } @@ -135,10 +134,10 @@ public Boolean hasMatchingCategory(java.util.function.Predicate categories) { + public A withCategories(List categories) { if (categories != null) { - this.categories = new java.util.ArrayList(); - for (java.lang.String item : categories) { + this.categories = new ArrayList(); + for (String item : categories) { this.addToCategories(item); } } else { @@ -152,67 +151,67 @@ public A withCategories(java.lang.String... categories) { this.categories.clear(); } if (categories != null) { - for (java.lang.String item : categories) { + for (String item : categories) { this.addToCategories(item); } } return (A) this; } - public java.lang.Boolean hasCategories() { + public Boolean hasCategories() { return categories != null && !categories.isEmpty(); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getListKind() { + public String getListKind() { return this.listKind; } - public A withListKind(java.lang.String listKind) { + public A withListKind(String listKind) { this.listKind = listKind; return (A) this; } - public java.lang.Boolean hasListKind() { + public Boolean hasListKind() { return this.listKind != null; } - public java.lang.String getPlural() { + public String getPlural() { return this.plural; } - public A withPlural(java.lang.String plural) { + public A withPlural(String plural) { this.plural = plural; return (A) this; } - public java.lang.Boolean hasPlural() { + public Boolean hasPlural() { return this.plural != null; } - public A addToShortNames(java.lang.Integer index, java.lang.String item) { + public A addToShortNames(Integer index, String item) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } this.shortNames.add(index, item); return (A) this; } - public A setToShortNames(java.lang.Integer index, java.lang.String item) { + public A setToShortNames(Integer index, String item) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } this.shortNames.set(index, item); return (A) this; @@ -220,26 +219,26 @@ public A setToShortNames(java.lang.Integer index, java.lang.String item) { public A addToShortNames(java.lang.String... items) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.shortNames.add(item); } return (A) this; } - public A addAllToShortNames(java.util.Collection items) { + public A addAllToShortNames(Collection items) { if (this.shortNames == null) { - this.shortNames = new java.util.ArrayList(); + this.shortNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.shortNames.add(item); } return (A) this; } public A removeFromShortNames(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.shortNames != null) { this.shortNames.remove(item); } @@ -247,8 +246,8 @@ public A removeFromShortNames(java.lang.String... items) { return (A) this; } - public A removeAllFromShortNames(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromShortNames(Collection items) { + for (String item : items) { if (this.shortNames != null) { this.shortNames.remove(item); } @@ -256,25 +255,24 @@ public A removeAllFromShortNames(java.util.Collection items) { return (A) this; } - public java.util.List getShortNames() { + public List getShortNames() { return this.shortNames; } - public java.lang.String getShortName(java.lang.Integer index) { + public String getShortName(Integer index) { return this.shortNames.get(index); } - public java.lang.String getFirstShortName() { + public String getFirstShortName() { return this.shortNames.get(0); } - public java.lang.String getLastShortName() { + public String getLastShortName() { return this.shortNames.get(shortNames.size() - 1); } - public java.lang.String getMatchingShortName( - java.util.function.Predicate predicate) { - for (java.lang.String item : shortNames) { + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { return item; } @@ -282,9 +280,8 @@ public java.lang.String getMatchingShortName( return null; } - public java.lang.Boolean hasMatchingShortName( - java.util.function.Predicate predicate) { - for (java.lang.String item : shortNames) { + public Boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { return true; } @@ -292,10 +289,10 @@ public java.lang.Boolean hasMatchingShortName( return false; } - public A withShortNames(java.util.List shortNames) { + public A withShortNames(List shortNames) { if (shortNames != null) { - this.shortNames = new java.util.ArrayList(); - for (java.lang.String item : shortNames) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { this.addToShortNames(item); } } else { @@ -309,27 +306,27 @@ public A withShortNames(java.lang.String... shortNames) { this.shortNames.clear(); } if (shortNames != null) { - for (java.lang.String item : shortNames) { + for (String item : shortNames) { this.addToShortNames(item); } } return (A) this; } - public java.lang.Boolean hasShortNames() { + public Boolean hasShortNames() { return shortNames != null && !shortNames.isEmpty(); } - public java.lang.String getSingular() { + public String getSingular() { return this.singular; } - public A withSingular(java.lang.String singular) { + public A withSingular(String singular) { this.singular = singular; return (A) this; } - public java.lang.Boolean hasSingular() { + public Boolean hasSingular() { return this.singular != null; } @@ -353,7 +350,7 @@ public int hashCode() { categories, kind, listKind, plural, shortNames, singular, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (categories != null && !categories.isEmpty()) { 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 f7dc839b0a..ae39f8c34d 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 @@ -17,8 +17,7 @@ public class V1CustomResourceDefinitionSpecBuilder extends V1CustomResourceDefinitionSpecFluentImpl implements VisitableBuilder< - V1CustomResourceDefinitionSpec, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecBuilder> { + V1CustomResourceDefinitionSpec, V1CustomResourceDefinitionSpecBuilder> { public V1CustomResourceDefinitionSpecBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluen } public V1CustomResourceDefinitionSpecBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionSpec(), validationEnabled); } public V1CustomResourceDefinitionSpecBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec instance) { + V1CustomResourceDefinitionSpecFluent fluent, V1CustomResourceDefinitionSpec instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionSpecBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionSpecFluent fluent, + V1CustomResourceDefinitionSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConversion(instance.getConversion()); @@ -63,14 +60,12 @@ public V1CustomResourceDefinitionSpecBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionSpecBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec instance) { + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpec instance) { this(instance, false); } public V1CustomResourceDefinitionSpecBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionSpec instance, Boolean validationEnabled) { this.fluent = this; this.withConversion(instance.getConversion()); @@ -87,10 +82,10 @@ public V1CustomResourceDefinitionSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec build() { + public V1CustomResourceDefinitionSpec build() { V1CustomResourceDefinitionSpec buildable = new V1CustomResourceDefinitionSpec(); buildable.setConversion(fluent.getConversion()); buildable.setGroup(fluent.getGroup()); 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 04f7a5718d..618c0b1e4b 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 @@ -31,95 +31,81 @@ public interface V1CustomResourceDefinitionSpecFluent< @Deprecated public V1CustomResourceConversion getConversion(); - public io.kubernetes.client.openapi.models.V1CustomResourceConversion buildConversion(); + public V1CustomResourceConversion buildConversion(); - public A withConversion( - io.kubernetes.client.openapi.models.V1CustomResourceConversion conversion); + public A withConversion(V1CustomResourceConversion conversion); public Boolean hasConversion(); public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - withNewConversionLike(io.kubernetes.client.openapi.models.V1CustomResourceConversion item); + public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversionLike( + V1CustomResourceConversion item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - editConversion(); + public V1CustomResourceDefinitionSpecFluent.ConversionNested editConversion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - editOrNewConversion(); + public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - editOrNewConversionLike(io.kubernetes.client.openapi.models.V1CustomResourceConversion item); + public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversionLike( + V1CustomResourceConversion item); public String getGroup(); - public A withGroup(java.lang.String group); + public A withGroup(String group); - public java.lang.Boolean hasGroup(); + public Boolean hasGroup(); /** * This method has been deprecated, please use method buildNames instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceDefinitionNames getNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames buildNames(); + public V1CustomResourceDefinitionNames buildNames(); - public A withNames(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames names); + public A withNames(V1CustomResourceDefinitionNames names); - public java.lang.Boolean hasNames(); + public Boolean hasNames(); public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - withNewNamesLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item); + public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNamesLike( + V1CustomResourceDefinitionNames item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - editNames(); + public V1CustomResourceDefinitionSpecFluent.NamesNested editNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - editOrNewNames(); + public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - editOrNewNamesLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item); + public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNamesLike( + V1CustomResourceDefinitionNames item); - public java.lang.Boolean getPreserveUnknownFields(); + public Boolean getPreserveUnknownFields(); - public A withPreserveUnknownFields(java.lang.Boolean preserveUnknownFields); + public A withPreserveUnknownFields(Boolean preserveUnknownFields); - public java.lang.Boolean hasPreserveUnknownFields(); + public Boolean hasPreserveUnknownFields(); - public java.lang.String getScope(); + public String getScope(); - public A withScope(java.lang.String scope); + public A withScope(String scope); - public java.lang.Boolean hasScope(); + public Boolean hasScope(); public A addToVersions(Integer index, V1CustomResourceDefinitionVersion item); - public A setToVersions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item); + public A setToVersions(Integer index, V1CustomResourceDefinitionVersion item); public A addToVersions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items); - public A addAllToVersions( - Collection items); + public A addAllToVersions(Collection items); public A removeFromVersions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items); - public A removeAllFromVersions( - java.util.Collection - items); + public A removeAllFromVersions(Collection items); public A removeMatchingFromVersions( Predicate predicate); @@ -129,62 +115,45 @@ public A removeMatchingFromVersions( * * @return The buildable object. */ - @java.lang.Deprecated - public List getVersions(); + @Deprecated + public List getVersions(); - public java.util.List - buildVersions(); + public List buildVersions(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildVersion( - java.lang.Integer index); + public V1CustomResourceDefinitionVersion buildVersion(Integer index); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildFirstVersion(); + public V1CustomResourceDefinitionVersion buildFirstVersion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildLastVersion(); + public V1CustomResourceDefinitionVersion buildLastVersion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> - predicate); + public V1CustomResourceDefinitionVersion buildMatchingVersion( + Predicate predicate); - public java.lang.Boolean hasMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> - predicate); + public Boolean hasMatchingVersion(Predicate predicate); - public A withVersions( - java.util.List - versions); + public A withVersions(List versions); public A withVersions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions); - public java.lang.Boolean hasVersions(); + public Boolean hasVersions(); public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - addNewVersionLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item); + public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersionLike( + V1CustomResourceDefinitionVersion item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - setNewVersionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item); + public V1CustomResourceDefinitionSpecFluent.VersionsNested setNewVersionLike( + Integer index, V1CustomResourceDefinitionVersion item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editVersion(java.lang.Integer index); + public V1CustomResourceDefinitionSpecFluent.VersionsNested editVersion(Integer index); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editFirstVersion(); + public V1CustomResourceDefinitionSpecFluent.VersionsNested editFirstVersion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editLastVersion(); + public V1CustomResourceDefinitionSpecFluent.VersionsNested editLastVersion(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> - predicate); + public V1CustomResourceDefinitionSpecFluent.VersionsNested editMatchingVersion( + Predicate predicate); public A withPreserveUnknownFields(); @@ -198,7 +167,7 @@ public interface ConversionNested } public interface NamesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceDefinitionNamesFluent< V1CustomResourceDefinitionSpecFluent.NamesNested> { public N and(); @@ -207,7 +176,7 @@ public interface NamesNested } public interface VersionsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceDefinitionVersionFluent< V1CustomResourceDefinitionSpecFluent.VersionsNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java index 0cc02d0186..c399916fdf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluentImpl.java @@ -27,8 +27,7 @@ public class V1CustomResourceDefinitionSpecFluentImpl< extends BaseFluent implements V1CustomResourceDefinitionSpecFluent { public V1CustomResourceDefinitionSpecFluentImpl() {} - public V1CustomResourceDefinitionSpecFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpec instance) { + public V1CustomResourceDefinitionSpecFluentImpl(V1CustomResourceDefinitionSpec instance) { this.withConversion(instance.getConversion()); this.withGroup(instance.getGroup()); @@ -46,7 +45,7 @@ public V1CustomResourceDefinitionSpecFluentImpl( private String group; private V1CustomResourceDefinitionNamesBuilder names; private Boolean preserveUnknownFields; - private java.lang.String scope; + private String scope; private ArrayList versions; /** @@ -55,25 +54,27 @@ public V1CustomResourceDefinitionSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1CustomResourceConversion getConversion() { + public V1CustomResourceConversion getConversion() { return this.conversion != null ? this.conversion.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceConversion buildConversion() { + public V1CustomResourceConversion buildConversion() { return this.conversion != null ? this.conversion.build() : null; } - public A withConversion( - io.kubernetes.client.openapi.models.V1CustomResourceConversion conversion) { + public A withConversion(V1CustomResourceConversion conversion) { _visitables.get("conversion").remove(this.conversion); if (conversion != null) { this.conversion = new V1CustomResourceConversionBuilder(conversion); _visitables.get("conversion").add(this.conversion); + } else { + this.conversion = null; + _visitables.get("conversion").remove(this.conversion); } return (A) this; } - public java.lang.Boolean hasConversion() { + public Boolean hasConversion() { return this.conversion != null; } @@ -81,43 +82,37 @@ public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversio return new V1CustomResourceDefinitionSpecFluentImpl.ConversionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - withNewConversionLike(io.kubernetes.client.openapi.models.V1CustomResourceConversion item) { + public V1CustomResourceDefinitionSpecFluent.ConversionNested withNewConversionLike( + V1CustomResourceConversion item) { return new V1CustomResourceDefinitionSpecFluentImpl.ConversionNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - editConversion() { + public V1CustomResourceDefinitionSpecFluent.ConversionNested editConversion() { return withNewConversionLike(getConversion()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - editOrNewConversion() { + public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversion() { return withNewConversionLike( getConversion() != null ? getConversion() - : new io.kubernetes.client.openapi.models.V1CustomResourceConversionBuilder().build()); + : new V1CustomResourceConversionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.ConversionNested< - A> - editOrNewConversionLike(io.kubernetes.client.openapi.models.V1CustomResourceConversion item) { + public V1CustomResourceDefinitionSpecFluent.ConversionNested editOrNewConversionLike( + V1CustomResourceConversion item) { return withNewConversionLike(getConversion() != null ? getConversion() : item); } - public java.lang.String getGroup() { + public String getGroup() { return this.group; } - public A withGroup(java.lang.String group) { + public A withGroup(String group) { this.group = group; return (A) this; } - public java.lang.Boolean hasGroup() { + public Boolean hasGroup() { return this.group != null; } @@ -126,25 +121,28 @@ public java.lang.Boolean hasGroup() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames getNames() { + @Deprecated + public V1CustomResourceDefinitionNames getNames() { return this.names != null ? this.names.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames buildNames() { + public V1CustomResourceDefinitionNames buildNames() { return this.names != null ? this.names.build() : null; } - public A withNames(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames names) { + public A withNames(V1CustomResourceDefinitionNames names) { _visitables.get("names").remove(this.names); if (names != null) { this.names = new V1CustomResourceDefinitionNamesBuilder(names); _visitables.get("names").add(this.names); + } else { + this.names = null; + _visitables.get("names").remove(this.names); } return (A) this; } - public java.lang.Boolean hasNames() { + public Boolean hasNames() { return this.names != null; } @@ -152,65 +150,57 @@ public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNames() { return new V1CustomResourceDefinitionSpecFluentImpl.NamesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - withNewNamesLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluentImpl - .NamesNestedImpl(item); + public V1CustomResourceDefinitionSpecFluent.NamesNested withNewNamesLike( + V1CustomResourceDefinitionNames item) { + return new V1CustomResourceDefinitionSpecFluentImpl.NamesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - editNames() { + public V1CustomResourceDefinitionSpecFluent.NamesNested editNames() { return withNewNamesLike(getNames()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - editOrNewNames() { + public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNames() { return withNewNamesLike( - getNames() != null - ? getNames() - : new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder() - .build()); + getNames() != null ? getNames() : new V1CustomResourceDefinitionNamesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.NamesNested - editOrNewNamesLike(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item) { + public V1CustomResourceDefinitionSpecFluent.NamesNested editOrNewNamesLike( + V1CustomResourceDefinitionNames item) { return withNewNamesLike(getNames() != null ? getNames() : item); } - public java.lang.Boolean getPreserveUnknownFields() { + public Boolean getPreserveUnknownFields() { return this.preserveUnknownFields; } - public A withPreserveUnknownFields(java.lang.Boolean preserveUnknownFields) { + public A withPreserveUnknownFields(Boolean preserveUnknownFields) { this.preserveUnknownFields = preserveUnknownFields; return (A) this; } - public java.lang.Boolean hasPreserveUnknownFields() { + public Boolean hasPreserveUnknownFields() { return this.preserveUnknownFields != null; } - public java.lang.String getScope() { + public String getScope() { return this.scope; } - public A withScope(java.lang.String scope) { + public A withScope(String scope) { this.scope = scope; return (A) this; } - public java.lang.Boolean hasScope() { + public Boolean hasScope() { return this.scope != null; } public A addToVersions(Integer index, V1CustomResourceDefinitionVersion item) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder>(); + this.versions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(item); + V1CustomResourceDefinitionVersionBuilder builder = + new V1CustomResourceDefinitionVersionBuilder(item); _visitables .get("versions") .add(index >= 0 ? index : _visitables.get("versions").size(), builder); @@ -218,16 +208,12 @@ public A addToVersions(Integer index, V1CustomResourceDefinitionVersion item) { return (A) this; } - public A setToVersions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item) { + public A setToVersions(Integer index, V1CustomResourceDefinitionVersion item) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder>(); + this.versions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(item); + V1CustomResourceDefinitionVersionBuilder builder = + new V1CustomResourceDefinitionVersionBuilder(item); if (index < 0 || index >= _visitables.get("versions").size()) { _visitables.get("versions").add(builder); } else { @@ -244,29 +230,24 @@ public A setToVersions( public A addToVersions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder>(); + this.versions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(item); + 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) { + public A addAllToVersions(Collection items) { if (this.versions == null) { - this.versions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder>(); + this.versions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(item); + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = + new V1CustomResourceDefinitionVersionBuilder(item); _visitables.get("versions").add(builder); this.versions.add(builder); } @@ -275,9 +256,9 @@ public A addAllToVersions( public A removeFromVersions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(item); + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = + new V1CustomResourceDefinitionVersionBuilder(item); _visitables.get("versions").remove(builder); if (this.versions != null) { this.versions.remove(builder); @@ -286,12 +267,10 @@ public A removeFromVersions( return (A) this; } - public A removeAllFromVersions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(item); + public A removeAllFromVersions(Collection items) { + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = + new V1CustomResourceDefinitionVersionBuilder(item); _visitables.get("versions").remove(builder); if (this.versions != null) { this.versions.remove(builder); @@ -301,15 +280,12 @@ public A removeAllFromVersions( } public A removeMatchingFromVersions( - Predicate - predicate) { + Predicate predicate) { if (versions == null) return (A) this; - final Iterator - each = versions.iterator(); + final Iterator each = versions.iterator(); final List visitables = _visitables.get("versions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder = - each.next(); + V1CustomResourceDefinitionVersionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -323,35 +299,30 @@ public A removeMatchingFromVersions( * * @return The buildable object. */ - @java.lang.Deprecated - public List getVersions() { + @Deprecated + public List getVersions() { return versions != null ? build(versions) : null; } - public java.util.List - buildVersions() { + public List buildVersions() { return versions != null ? build(versions) : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildVersion( - java.lang.Integer index) { + public V1CustomResourceDefinitionVersion buildVersion(Integer index) { return this.versions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildFirstVersion() { + public V1CustomResourceDefinitionVersion buildFirstVersion() { return this.versions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildLastVersion() { + public V1CustomResourceDefinitionVersion buildLastVersion() { return this.versions.get(versions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion buildMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder item : - versions) { + public V1CustomResourceDefinitionVersion buildMatchingVersion( + Predicate predicate) { + for (V1CustomResourceDefinitionVersionBuilder item : versions) { if (predicate.test(item)) { return item.build(); } @@ -359,12 +330,8 @@ public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion bui return null; } - public java.lang.Boolean hasMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder item : - versions) { + public Boolean hasMatchingVersion(Predicate predicate) { + for (V1CustomResourceDefinitionVersionBuilder item : versions) { if (predicate.test(item)) { return true; } @@ -372,15 +339,13 @@ public java.lang.Boolean hasMatchingVersion( return false; } - public A withVersions( - java.util.List - versions) { + public A withVersions(List versions) { if (this.versions != null) { _visitables.get("versions").removeAll(this.versions); } if (versions != null) { - this.versions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item : versions) { + this.versions = new ArrayList(); + for (V1CustomResourceDefinitionVersion item : versions) { this.addToVersions(item); } } else { @@ -395,14 +360,14 @@ public A withVersions( this.versions.clear(); } if (versions != null) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item : versions) { + for (V1CustomResourceDefinitionVersion item : versions) { this.addToVersions(item); } } return (A) this; } - public java.lang.Boolean hasVersions() { + public Boolean hasVersions() { return versions != null && !versions.isEmpty(); } @@ -410,47 +375,36 @@ public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersion() { return new V1CustomResourceDefinitionSpecFluentImpl.VersionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - addNewVersionLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluentImpl - .VersionsNestedImpl(-1, item); + public V1CustomResourceDefinitionSpecFluent.VersionsNested addNewVersionLike( + V1CustomResourceDefinitionVersion item) { + return new V1CustomResourceDefinitionSpecFluentImpl.VersionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - setNewVersionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluentImpl - .VersionsNestedImpl(index, item); + public V1CustomResourceDefinitionSpecFluent.VersionsNested setNewVersionLike( + Integer index, V1CustomResourceDefinitionVersion item) { + return new V1CustomResourceDefinitionSpecFluentImpl.VersionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editVersion(java.lang.Integer index) { + public V1CustomResourceDefinitionSpecFluent.VersionsNested editVersion(Integer index) { if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); return setNewVersionLike(index, buildVersion(index)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editFirstVersion() { + public V1CustomResourceDefinitionSpecFluent.VersionsNested editFirstVersion() { if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); return setNewVersionLike(0, buildVersion(0)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editLastVersion() { + public V1CustomResourceDefinitionSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent.VersionsNested - editMatchingVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> - predicate) { + public V1CustomResourceDefinitionSpecFluent.VersionsNested editMatchingVersion( + Predicate predicate) { int index = -1; for (int i = 0; i < versions.size(); i++) { if (predicate.test(versions.get(i))) { @@ -483,7 +437,7 @@ public int hashCode() { conversion, group, names, preserveUnknownFields, scope, versions, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (conversion != null) { @@ -521,20 +475,16 @@ public A withPreserveUnknownFields() { class ConversionNestedImpl extends V1CustomResourceConversionFluentImpl< V1CustomResourceDefinitionSpecFluent.ConversionNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent - .ConversionNested< - N>, - Nested { + implements V1CustomResourceDefinitionSpecFluent.ConversionNested, Nested { ConversionNestedImpl(V1CustomResourceConversion item) { this.builder = new V1CustomResourceConversionBuilder(this, item); } ConversionNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceConversionBuilder(this); + this.builder = new V1CustomResourceConversionBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceConversionBuilder builder; + V1CustomResourceConversionBuilder builder; public N and() { return (N) V1CustomResourceDefinitionSpecFluentImpl.this.withConversion(builder.build()); @@ -548,20 +498,16 @@ public N endConversion() { class NamesNestedImpl extends V1CustomResourceDefinitionNamesFluentImpl< V1CustomResourceDefinitionSpecFluent.NamesNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent - .NamesNested< - N>, - io.kubernetes.client.fluent.Nested { - NamesNestedImpl(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item) { + implements V1CustomResourceDefinitionSpecFluent.NamesNested, Nested { + NamesNestedImpl(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } NamesNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder(this); + this.builder = new V1CustomResourceDefinitionNamesBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder builder; + V1CustomResourceDefinitionNamesBuilder builder; public N and() { return (N) V1CustomResourceDefinitionSpecFluentImpl.this.withNames(builder.build()); @@ -575,23 +521,19 @@ public N endNames() { class VersionsNestedImpl extends V1CustomResourceDefinitionVersionFluentImpl< V1CustomResourceDefinitionSpecFluent.VersionsNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionSpecFluent - .VersionsNested< - N>, - io.kubernetes.client.fluent.Nested { - VersionsNestedImpl(java.lang.Integer index, V1CustomResourceDefinitionVersion item) { + implements V1CustomResourceDefinitionSpecFluent.VersionsNested, Nested { + VersionsNestedImpl(Integer index, V1CustomResourceDefinitionVersion item) { this.index = index; this.builder = new V1CustomResourceDefinitionVersionBuilder(this, item); } VersionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder(this); + this.builder = new V1CustomResourceDefinitionVersionBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder builder; - java.lang.Integer index; + V1CustomResourceDefinitionVersionBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java index 4dc3aba7df..88fd2dd7e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java @@ -17,8 +17,7 @@ public class V1CustomResourceDefinitionStatusBuilder extends V1CustomResourceDefinitionStatusFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusBuilder> { + V1CustomResourceDefinitionStatus, V1CustomResourceDefinitionStatusBuilder> { public V1CustomResourceDefinitionStatusBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusF } public V1CustomResourceDefinitionStatusBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionStatus(), validationEnabled); } public V1CustomResourceDefinitionStatusBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus instance) { + V1CustomResourceDefinitionStatusFluent fluent, V1CustomResourceDefinitionStatus instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionStatusBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionStatusFluent fluent, + V1CustomResourceDefinitionStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAcceptedNames(instance.getAcceptedNames()); @@ -57,14 +54,12 @@ public V1CustomResourceDefinitionStatusBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionStatusBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus instance) { + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatus instance) { this(instance, false); } public V1CustomResourceDefinitionStatusBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAcceptedNames(instance.getAcceptedNames()); @@ -75,10 +70,10 @@ public V1CustomResourceDefinitionStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus build() { + public V1CustomResourceDefinitionStatus build() { V1CustomResourceDefinitionStatus buildable = new V1CustomResourceDefinitionStatus(); buildable.setAcceptedNames(fluent.getAcceptedNames()); buildable.setConditions(fluent.getConditions()); 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 1237c7cfc5..c58b17cfa2 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 @@ -31,55 +31,37 @@ public interface V1CustomResourceDefinitionStatusFluent< @Deprecated public V1CustomResourceDefinitionNames getAcceptedNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames buildAcceptedNames(); + public V1CustomResourceDefinitionNames buildAcceptedNames(); - public A withAcceptedNames( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames acceptedNames); + public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames); public Boolean hasAcceptedNames(); public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - withNewAcceptedNamesLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item); + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNamesLike( + V1CustomResourceDefinitionNames item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - editAcceptedNames(); + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editAcceptedNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - editOrNewAcceptedNames(); + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNames(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - editOrNewAcceptedNamesLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item); + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNamesLike( + V1CustomResourceDefinitionNames item); public A addToConditions(Integer index, V1CustomResourceDefinitionCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item); + public A setToConditions(Integer index, V1CustomResourceDefinitionCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items); - public A removeAllFromConditions( - java.util.Collection - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -89,111 +71,76 @@ public A removeMatchingFromConditions( * * @return The buildable object. */ - @java.lang.Deprecated - public List - getConditions(); + @Deprecated + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition buildCondition( - java.lang.Integer index); + public V1CustomResourceDefinitionCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition - buildFirstCondition(); + public V1CustomResourceDefinitionCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition - buildLastCondition(); + public V1CustomResourceDefinitionCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> - predicate); + public V1CustomResourceDefinitionCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> - predicate); + public Boolean hasMatchingCondition( + Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> - predicate); - - public A addToStoredVersions(java.lang.Integer index, String item); - - public A setToStoredVersions(java.lang.Integer index, java.lang.String item); + public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditionLike( + V1CustomResourceDefinitionCondition item); + + public V1CustomResourceDefinitionStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1CustomResourceDefinitionCondition item); + + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editCondition(Integer index); + + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editFirstCondition(); + + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editLastCondition(); + + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); + + public A addToStoredVersions(Integer index, String item); + + public A setToStoredVersions(Integer index, String item); public A addToStoredVersions(java.lang.String... items); - public A addAllToStoredVersions(java.util.Collection items); + public A addAllToStoredVersions(Collection items); public A removeFromStoredVersions(java.lang.String... items); - public A removeAllFromStoredVersions(java.util.Collection items); + public A removeAllFromStoredVersions(Collection items); - public java.util.List getStoredVersions(); + public List getStoredVersions(); - public java.lang.String getStoredVersion(java.lang.Integer index); + public String getStoredVersion(Integer index); - public java.lang.String getFirstStoredVersion(); + public String getFirstStoredVersion(); - public java.lang.String getLastStoredVersion(); + public String getLastStoredVersion(); - public java.lang.String getMatchingStoredVersion( - java.util.function.Predicate predicate); + public String getMatchingStoredVersion(Predicate predicate); - public java.lang.Boolean hasMatchingStoredVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingStoredVersion(Predicate predicate); - public A withStoredVersions(java.util.List storedVersions); + public A withStoredVersions(List storedVersions); public A withStoredVersions(java.lang.String... storedVersions); - public java.lang.Boolean hasStoredVersions(); + public Boolean hasStoredVersions(); public interface AcceptedNamesNested extends Nested, @@ -205,7 +152,7 @@ public interface AcceptedNamesNested } public interface ConditionsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceDefinitionConditionFluent< V1CustomResourceDefinitionStatusFluent.ConditionsNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java index 0e78eed8dc..8d9191f9b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluentImpl.java @@ -27,8 +27,7 @@ public class V1CustomResourceDefinitionStatusFluentImpl< extends BaseFluent implements V1CustomResourceDefinitionStatusFluent { public V1CustomResourceDefinitionStatusFluentImpl() {} - public V1CustomResourceDefinitionStatusFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatus instance) { + public V1CustomResourceDefinitionStatusFluentImpl(V1CustomResourceDefinitionStatus instance) { this.withAcceptedNames(instance.getAcceptedNames()); this.withConditions(instance.getConditions()); @@ -46,20 +45,22 @@ public V1CustomResourceDefinitionStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames getAcceptedNames() { + public V1CustomResourceDefinitionNames getAcceptedNames() { return this.acceptedNames != null ? this.acceptedNames.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames buildAcceptedNames() { + public V1CustomResourceDefinitionNames buildAcceptedNames() { return this.acceptedNames != null ? this.acceptedNames.build() : null; } - public A withAcceptedNames( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames acceptedNames) { + public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { _visitables.get("acceptedNames").remove(this.acceptedNames); if (acceptedNames != null) { this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); _visitables.get("acceptedNames").add(this.acceptedNames); + } else { + this.acceptedNames = null; + _visitables.get("acceptedNames").remove(this.acceptedNames); } return (A) this; } @@ -72,47 +73,33 @@ public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcce return new V1CustomResourceDefinitionStatusFluentImpl.AcceptedNamesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - withNewAcceptedNamesLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item) { + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested withNewAcceptedNamesLike( + V1CustomResourceDefinitionNames item) { return new V1CustomResourceDefinitionStatusFluentImpl.AcceptedNamesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - editAcceptedNames() { + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editAcceptedNames() { return withNewAcceptedNamesLike(getAcceptedNames()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - editOrNewAcceptedNames() { + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNames() { return withNewAcceptedNamesLike( getAcceptedNames() != null ? getAcceptedNames() - : new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder() - .build()); + : new V1CustomResourceDefinitionNamesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - A> - editOrNewAcceptedNamesLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item) { + public V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested editOrNewAcceptedNamesLike( + V1CustomResourceDefinitionNames item) { return withNewAcceptedNamesLike(getAcceptedNames() != null ? getAcceptedNames() : item); } - public A addToConditions( - Integer index, io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item) { + public A addToConditions(Integer index, V1CustomResourceDefinitionCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(item); + V1CustomResourceDefinitionConditionBuilder builder = + new V1CustomResourceDefinitionConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -120,16 +107,12 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item) { + public A setToConditions(Integer index, V1CustomResourceDefinitionCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(item); + V1CustomResourceDefinitionConditionBuilder builder = + new V1CustomResourceDefinitionConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -146,29 +129,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(item); + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = + new V1CustomResourceDefinitionConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -177,9 +155,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(item); + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = + new V1CustomResourceDefinitionConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -188,12 +166,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = + new V1CustomResourceDefinitionConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -203,15 +179,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder = - each.next(); + V1CustomResourceDefinitionConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -225,39 +198,30 @@ public A removeMatchingFromConditions( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getConditions() { + @Deprecated + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition buildCondition( - java.lang.Integer index) { + public V1CustomResourceDefinitionCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition - buildFirstCondition() { + public V1CustomResourceDefinitionCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition - buildLastCondition() { + public V1CustomResourceDefinitionCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder item : - conditions) { + public V1CustomResourceDefinitionCondition buildMatchingCondition( + Predicate predicate) { + for (V1CustomResourceDefinitionConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -265,12 +229,9 @@ public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition b return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder item : - conditions) { + public Boolean hasMatchingCondition( + Predicate predicate) { + for (V1CustomResourceDefinitionConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -278,16 +239,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item : - conditions) { + this.conditions = new ArrayList(); + for (V1CustomResourceDefinitionCondition item : conditions) { this.addToConditions(item); } } else { @@ -302,15 +260,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item : - conditions) { + for (V1CustomResourceDefinitionCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -318,59 +275,36 @@ public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditio return new V1CustomResourceDefinitionStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluentImpl - .ConditionsNestedImpl(-1, item); + public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditionLike( + V1CustomResourceDefinitionCondition item) { + return new V1CustomResourceDefinitionStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1CustomResourceDefinitionStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1CustomResourceDefinitionCondition item) { + return new V1CustomResourceDefinitionStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editFirstCondition() { + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editLastCondition() { + public V1CustomResourceDefinitionStatusFluent.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 io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder> - predicate) { + public V1CustomResourceDefinitionStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -382,17 +316,17 @@ public V1CustomResourceDefinitionStatusFluent.ConditionsNested addNewConditio return setNewConditionLike(index, buildCondition(index)); } - public A addToStoredVersions(java.lang.Integer index, java.lang.String item) { + public A addToStoredVersions(Integer index, String item) { if (this.storedVersions == null) { - this.storedVersions = new java.util.ArrayList(); + this.storedVersions = new ArrayList(); } this.storedVersions.add(index, item); return (A) this; } - public A setToStoredVersions(java.lang.Integer index, java.lang.String item) { + public A setToStoredVersions(Integer index, String item) { if (this.storedVersions == null) { - this.storedVersions = new java.util.ArrayList(); + this.storedVersions = new ArrayList(); } this.storedVersions.set(index, item); return (A) this; @@ -400,26 +334,26 @@ public A setToStoredVersions(java.lang.Integer index, java.lang.String item) { public A addToStoredVersions(java.lang.String... items) { if (this.storedVersions == null) { - this.storedVersions = new java.util.ArrayList(); + this.storedVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.storedVersions.add(item); } return (A) this; } - public A addAllToStoredVersions(java.util.Collection items) { + public A addAllToStoredVersions(Collection items) { if (this.storedVersions == null) { - this.storedVersions = new java.util.ArrayList(); + this.storedVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.storedVersions.add(item); } return (A) this; } public A removeFromStoredVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.storedVersions != null) { this.storedVersions.remove(item); } @@ -427,8 +361,8 @@ public A removeFromStoredVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromStoredVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromStoredVersions(Collection items) { + for (String item : items) { if (this.storedVersions != null) { this.storedVersions.remove(item); } @@ -436,25 +370,24 @@ public A removeAllFromStoredVersions(java.util.Collection item return (A) this; } - public java.util.List getStoredVersions() { + public List getStoredVersions() { return this.storedVersions; } - public java.lang.String getStoredVersion(java.lang.Integer index) { + public String getStoredVersion(Integer index) { return this.storedVersions.get(index); } - public java.lang.String getFirstStoredVersion() { + public String getFirstStoredVersion() { return this.storedVersions.get(0); } - public java.lang.String getLastStoredVersion() { + public String getLastStoredVersion() { return this.storedVersions.get(storedVersions.size() - 1); } - public java.lang.String getMatchingStoredVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : storedVersions) { + public String getMatchingStoredVersion(Predicate predicate) { + for (String item : storedVersions) { if (predicate.test(item)) { return item; } @@ -462,9 +395,8 @@ public java.lang.String getMatchingStoredVersion( return null; } - public java.lang.Boolean hasMatchingStoredVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : storedVersions) { + public Boolean hasMatchingStoredVersion(Predicate predicate) { + for (String item : storedVersions) { if (predicate.test(item)) { return true; } @@ -472,10 +404,10 @@ public java.lang.Boolean hasMatchingStoredVersion( return false; } - public A withStoredVersions(java.util.List storedVersions) { + public A withStoredVersions(List storedVersions) { if (storedVersions != null) { - this.storedVersions = new java.util.ArrayList(); - for (java.lang.String item : storedVersions) { + this.storedVersions = new ArrayList(); + for (String item : storedVersions) { this.addToStoredVersions(item); } } else { @@ -489,14 +421,14 @@ public A withStoredVersions(java.lang.String... storedVersions) { this.storedVersions.clear(); } if (storedVersions != null) { - for (java.lang.String item : storedVersions) { + for (String item : storedVersions) { this.addToStoredVersions(item); } } return (A) this; } - public java.lang.Boolean hasStoredVersions() { + public Boolean hasStoredVersions() { return storedVersions != null && !storedVersions.isEmpty(); } @@ -520,7 +452,7 @@ public int hashCode() { return java.util.Objects.hash(acceptedNames, conditions, storedVersions, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (acceptedNames != null) { @@ -542,21 +474,16 @@ public java.lang.String toString() { class AcceptedNamesNestedImpl extends V1CustomResourceDefinitionNamesFluentImpl< V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .AcceptedNamesNested< - N>, - Nested { - AcceptedNamesNestedImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames item) { + implements V1CustomResourceDefinitionStatusFluent.AcceptedNamesNested, Nested { + AcceptedNamesNestedImpl(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } AcceptedNamesNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder(this); + this.builder = new V1CustomResourceDefinitionNamesBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNamesBuilder builder; + V1CustomResourceDefinitionNamesBuilder builder; public N and() { return (N) V1CustomResourceDefinitionStatusFluentImpl.this.withAcceptedNames(builder.build()); @@ -570,23 +497,19 @@ public N endAcceptedNames() { class ConditionsNestedImpl extends V1CustomResourceDefinitionConditionFluentImpl< V1CustomResourceDefinitionStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionStatusFluent - .ConditionsNested< - N>, - io.kubernetes.client.fluent.Nested { - ConditionsNestedImpl(java.lang.Integer index, V1CustomResourceDefinitionCondition item) { + implements V1CustomResourceDefinitionStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1CustomResourceDefinitionCondition item) { this.index = index; this.builder = new V1CustomResourceDefinitionConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder(this); + this.builder = new V1CustomResourceDefinitionConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionConditionBuilder builder; - java.lang.Integer index; + V1CustomResourceDefinitionConditionBuilder builder; + Integer index; public N and() { return (N) 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 5c75456a6b..7455c3fdf2 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 @@ -17,8 +17,7 @@ public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluentImpl implements VisitableBuilder< - V1CustomResourceDefinitionVersion, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionBuilder> { + V1CustomResourceDefinitionVersion, V1CustomResourceDefinitionVersionBuilder> { public V1CustomResourceDefinitionVersionBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1CustomResourceDefinitionVersionBuilder( } public V1CustomResourceDefinitionVersionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionVersionFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceDefinitionVersion(), validationEnabled); } public V1CustomResourceDefinitionVersionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion instance) { + V1CustomResourceDefinitionVersionFluent fluent, + V1CustomResourceDefinitionVersion instance) { this(fluent, instance, false); } public V1CustomResourceDefinitionVersionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionVersionFluent fluent, + V1CustomResourceDefinitionVersion instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); @@ -68,14 +66,12 @@ public V1CustomResourceDefinitionVersionBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceDefinitionVersionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion instance) { + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance) { this(instance, false); } public V1CustomResourceDefinitionVersionBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceDefinitionVersion instance, Boolean validationEnabled) { this.fluent = this; this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); @@ -96,10 +92,10 @@ public V1CustomResourceDefinitionVersionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceDefinitionVersionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion build() { + public V1CustomResourceDefinitionVersion build() { V1CustomResourceDefinitionVersion buildable = new V1CustomResourceDefinitionVersion(); buildable.setAdditionalPrinterColumns(fluent.getAdditionalPrinterColumns()); buildable.setDeprecated(fluent.getDeprecated()); 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 e1859bcca2..72dcecdde5 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 @@ -24,22 +24,18 @@ public interface V1CustomResourceDefinitionVersionFluent< extends Fluent { public A addToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item); - public A setToAdditionalPrinterColumns( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item); + public A setToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item); public A addToAdditionalPrinterColumns( io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items); - public A addAllToAdditionalPrinterColumns( - Collection items); + public A addAllToAdditionalPrinterColumns(Collection items); public A removeFromAdditionalPrinterColumns( io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items); public A removeAllFromAdditionalPrinterColumns( - java.util.Collection - items); + Collection items); public A removeMatchingFromAdditionalPrinterColumns( Predicate predicate); @@ -50,177 +46,134 @@ public A removeMatchingFromAdditionalPrinterColumns( * @return The buildable object. */ @Deprecated - public List - getAdditionalPrinterColumns(); + public List getAdditionalPrinterColumns(); - public java.util.List - buildAdditionalPrinterColumns(); + public List buildAdditionalPrinterColumns(); - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildAdditionalPrinterColumn(java.lang.Integer index); + public V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(Integer index); - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildFirstAdditionalPrinterColumn(); + public V1CustomResourceColumnDefinition buildFirstAdditionalPrinterColumn(); - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildLastAdditionalPrinterColumn(); + public V1CustomResourceColumnDefinition buildLastAdditionalPrinterColumn(); - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildMatchingAdditionalPrinterColumn( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> - predicate); + public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn( + Predicate predicate); public Boolean hasMatchingAdditionalPrinterColumn( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> - predicate); + Predicate predicate); public A withAdditionalPrinterColumns( - java.util.List - additionalPrinterColumns); + List additionalPrinterColumns); public A withAdditionalPrinterColumns( io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... additionalPrinterColumns); - public java.lang.Boolean hasAdditionalPrinterColumns(); + public Boolean hasAdditionalPrinterColumns(); public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> - addNewAdditionalPrinterColumnLike( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> - setNewAdditionalPrinterColumnLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> - editAdditionalPrinterColumn(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested + addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item); + + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested + setNewAdditionalPrinterColumnLike(Integer index, V1CustomResourceColumnDefinition item); + + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested + editAdditionalPrinterColumn(Integer index); + + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> - predicate); + Predicate predicate); - public java.lang.Boolean getDeprecated(); + public Boolean getDeprecated(); - public A withDeprecated(java.lang.Boolean deprecated); + public A withDeprecated(Boolean deprecated); - public java.lang.Boolean hasDeprecated(); + public Boolean hasDeprecated(); public String getDeprecationWarning(); - public A withDeprecationWarning(java.lang.String deprecationWarning); + public A withDeprecationWarning(String deprecationWarning); - public java.lang.Boolean hasDeprecationWarning(); + public Boolean hasDeprecationWarning(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildSchema instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceValidation getSchema(); - public io.kubernetes.client.openapi.models.V1CustomResourceValidation buildSchema(); + public V1CustomResourceValidation buildSchema(); - public A withSchema(io.kubernetes.client.openapi.models.V1CustomResourceValidation schema); + public A withSchema(V1CustomResourceValidation schema); - public java.lang.Boolean hasSchema(); + public Boolean hasSchema(); public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchema(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - withNewSchemaLike(io.kubernetes.client.openapi.models.V1CustomResourceValidation item); + public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchemaLike( + V1CustomResourceValidation item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - editSchema(); + public V1CustomResourceDefinitionVersionFluent.SchemaNested editSchema(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - editOrNewSchema(); + public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchema(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - editOrNewSchemaLike(io.kubernetes.client.openapi.models.V1CustomResourceValidation item); + public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchemaLike( + V1CustomResourceValidation item); - public java.lang.Boolean getServed(); + public Boolean getServed(); - public A withServed(java.lang.Boolean served); + public A withServed(Boolean served); - public java.lang.Boolean hasServed(); + public Boolean hasServed(); - public java.lang.Boolean getStorage(); + public Boolean getStorage(); - public A withStorage(java.lang.Boolean storage); + public A withStorage(Boolean storage); - public java.lang.Boolean hasStorage(); + public Boolean hasStorage(); /** * This method has been deprecated, please use method buildSubresources instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CustomResourceSubresources getSubresources(); - public io.kubernetes.client.openapi.models.V1CustomResourceSubresources buildSubresources(); + public V1CustomResourceSubresources buildSubresources(); - public A withSubresources( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources subresources); + public A withSubresources(V1CustomResourceSubresources subresources); - public java.lang.Boolean hasSubresources(); + public Boolean hasSubresources(); public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresources(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - withNewSubresourcesLike( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources item); + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresourcesLike( + V1CustomResourceSubresources item); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - editSubresources(); + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editSubresources(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - editOrNewSubresources(); + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresources(); - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - editOrNewSubresourcesLike( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources item); + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresourcesLike( + V1CustomResourceSubresources item); public A withDeprecated(); @@ -238,7 +191,7 @@ public interface AdditionalPrinterColumnsNested } public interface SchemaNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceValidationFluent< V1CustomResourceDefinitionVersionFluent.SchemaNested> { public N and(); @@ -247,7 +200,7 @@ public interface SchemaNested } public interface SubresourcesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CustomResourceSubresourcesFluent< V1CustomResourceDefinitionVersionFluent.SubresourcesNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java index 93a4ea0a3e..dd1c2c9eb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluentImpl.java @@ -27,8 +27,7 @@ public class V1CustomResourceDefinitionVersionFluentImpl< extends BaseFluent implements V1CustomResourceDefinitionVersionFluent { public V1CustomResourceDefinitionVersionFluentImpl() {} - public V1CustomResourceDefinitionVersionFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion instance) { + public V1CustomResourceDefinitionVersionFluentImpl(V1CustomResourceDefinitionVersion instance) { this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); this.withDeprecated(instance.getDeprecated()); @@ -49,20 +48,18 @@ public V1CustomResourceDefinitionVersionFluentImpl( private ArrayList additionalPrinterColumns; private Boolean deprecated; private String deprecationWarning; - private java.lang.String name; + private String name; private V1CustomResourceValidationBuilder schema; - private java.lang.Boolean served; - private java.lang.Boolean storage; + private Boolean served; + private Boolean storage; private V1CustomResourceSubresourcesBuilder subresources; - public A addToAdditionalPrinterColumns( - Integer index, io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item) { + public A addToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = - new java.util.ArrayList(); + this.additionalPrinterColumns = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(item); + V1CustomResourceColumnDefinitionBuilder builder = + new V1CustomResourceColumnDefinitionBuilder(item); _visitables .get("additionalPrinterColumns") .add(index >= 0 ? index : _visitables.get("additionalPrinterColumns").size(), builder); @@ -71,16 +68,12 @@ public A addToAdditionalPrinterColumns( return (A) this; } - public A setToAdditionalPrinterColumns( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item) { + public A setToAdditionalPrinterColumns(Integer index, V1CustomResourceColumnDefinition item) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder>(); + this.additionalPrinterColumns = new ArrayList(); } - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(item); + V1CustomResourceColumnDefinitionBuilder builder = + new V1CustomResourceColumnDefinitionBuilder(item); if (index < 0 || index >= _visitables.get("additionalPrinterColumns").size()) { _visitables.get("additionalPrinterColumns").add(builder); } else { @@ -97,29 +90,24 @@ public A setToAdditionalPrinterColumns( public A addToAdditionalPrinterColumns( io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder>(); + this.additionalPrinterColumns = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(item); + 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) { + public A addAllToAdditionalPrinterColumns(Collection items) { if (this.additionalPrinterColumns == null) { - this.additionalPrinterColumns = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder>(); + this.additionalPrinterColumns = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(item); + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = + new V1CustomResourceColumnDefinitionBuilder(item); _visitables.get("additionalPrinterColumns").add(builder); this.additionalPrinterColumns.add(builder); } @@ -128,9 +116,9 @@ public A addAllToAdditionalPrinterColumns( public A removeFromAdditionalPrinterColumns( io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(item); + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = + new V1CustomResourceColumnDefinitionBuilder(item); _visitables.get("additionalPrinterColumns").remove(builder); if (this.additionalPrinterColumns != null) { this.additionalPrinterColumns.remove(builder); @@ -140,11 +128,10 @@ public A removeFromAdditionalPrinterColumns( } public A removeAllFromAdditionalPrinterColumns( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item : items) { - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(item); + Collection items) { + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = + new V1CustomResourceColumnDefinitionBuilder(item); _visitables.get("additionalPrinterColumns").remove(builder); if (this.additionalPrinterColumns != null) { this.additionalPrinterColumns.remove(builder); @@ -154,15 +141,13 @@ public A removeAllFromAdditionalPrinterColumns( } public A removeMatchingFromAdditionalPrinterColumns( - Predicate - predicate) { + Predicate predicate) { if (additionalPrinterColumns == null) return (A) this; - final Iterator - each = additionalPrinterColumns.iterator(); + final Iterator each = + additionalPrinterColumns.iterator(); final List visitables = _visitables.get("additionalPrinterColumns"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder = - each.next(); + V1CustomResourceColumnDefinitionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -177,38 +162,29 @@ public A removeMatchingFromAdditionalPrinterColumns( * @return The buildable object. */ @Deprecated - public List - getAdditionalPrinterColumns() { + public List getAdditionalPrinterColumns() { return additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; } - public java.util.List - buildAdditionalPrinterColumns() { + public List buildAdditionalPrinterColumns() { return additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildAdditionalPrinterColumn(java.lang.Integer index) { + public V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(Integer index) { return this.additionalPrinterColumns.get(index).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildFirstAdditionalPrinterColumn() { + public V1CustomResourceColumnDefinition buildFirstAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(0).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildLastAdditionalPrinterColumn() { + public V1CustomResourceColumnDefinition buildLastAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(additionalPrinterColumns.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition - buildMatchingAdditionalPrinterColumn( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder item : - additionalPrinterColumns) { + public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn( + Predicate predicate) { + for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { if (predicate.test(item)) { return item.build(); } @@ -216,12 +192,9 @@ public A removeMatchingFromAdditionalPrinterColumns( return null; } - public java.lang.Boolean hasMatchingAdditionalPrinterColumn( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder item : - additionalPrinterColumns) { + public Boolean hasMatchingAdditionalPrinterColumn( + Predicate predicate) { + for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { if (predicate.test(item)) { return true; } @@ -230,15 +203,13 @@ public java.lang.Boolean hasMatchingAdditionalPrinterColumn( } public A withAdditionalPrinterColumns( - java.util.List - additionalPrinterColumns) { + List additionalPrinterColumns) { if (this.additionalPrinterColumns != null) { _visitables.get("additionalPrinterColumns").removeAll(this.additionalPrinterColumns); } if (additionalPrinterColumns != null) { - this.additionalPrinterColumns = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item : - additionalPrinterColumns) { + this.additionalPrinterColumns = new ArrayList(); + for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { this.addToAdditionalPrinterColumns(item); } } else { @@ -254,15 +225,14 @@ public A withAdditionalPrinterColumns( this.additionalPrinterColumns.clear(); } if (additionalPrinterColumns != null) { - for (io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item : - additionalPrinterColumns) { + for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { this.addToAdditionalPrinterColumns(item); } } return (A) this; } - public java.lang.Boolean hasAdditionalPrinterColumns() { + public Boolean hasAdditionalPrinterColumns() { return additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty(); } @@ -271,46 +241,33 @@ public java.lang.Boolean hasAdditionalPrinterColumns() { return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> - addNewAdditionalPrinterColumnLike( - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item) { + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested + addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl( -1, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> - setNewAdditionalPrinterColumnLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluentImpl - .AdditionalPrinterColumnsNestedImpl(index, item); + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested + setNewAdditionalPrinterColumnLike(Integer index, V1CustomResourceColumnDefinition item) { + return new V1CustomResourceDefinitionVersionFluentImpl.AdditionalPrinterColumnsNestedImpl( + index, item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> - editAdditionalPrinterColumn(java.lang.Integer index) { + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested + editAdditionalPrinterColumn(Integer index) { if (additionalPrinterColumns.size() <= index) throw new RuntimeException("Can't edit additionalPrinterColumns. Index exceeds size."); return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn() { if (additionalPrinterColumns.size() == 0) throw new RuntimeException("Can't edit first additionalPrinterColumns. The list is empty."); return setNewAdditionalPrinterColumnLike(0, buildAdditionalPrinterColumn(0)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { int index = additionalPrinterColumns.size() - 1; if (index < 0) @@ -318,13 +275,9 @@ public java.lang.Boolean hasAdditionalPrinterColumns() { return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - A> + public V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder> - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < additionalPrinterColumns.size(); i++) { if (predicate.test(additionalPrinterColumns.get(i))) { @@ -337,42 +290,42 @@ public java.lang.Boolean hasAdditionalPrinterColumns() { return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); } - public java.lang.Boolean getDeprecated() { + public Boolean getDeprecated() { return this.deprecated; } - public A withDeprecated(java.lang.Boolean deprecated) { + public A withDeprecated(Boolean deprecated) { this.deprecated = deprecated; return (A) this; } - public java.lang.Boolean hasDeprecated() { + public Boolean hasDeprecated() { return this.deprecated != null; } - public java.lang.String getDeprecationWarning() { + public String getDeprecationWarning() { return this.deprecationWarning; } - public A withDeprecationWarning(java.lang.String deprecationWarning) { + public A withDeprecationWarning(String deprecationWarning) { this.deprecationWarning = deprecationWarning; return (A) this; } - public java.lang.Boolean hasDeprecationWarning() { + public Boolean hasDeprecationWarning() { return this.deprecationWarning != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -381,25 +334,28 @@ public java.lang.Boolean hasName() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CustomResourceValidation getSchema() { + @Deprecated + public V1CustomResourceValidation getSchema() { return this.schema != null ? this.schema.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceValidation buildSchema() { + public V1CustomResourceValidation buildSchema() { return this.schema != null ? this.schema.build() : null; } - public A withSchema(io.kubernetes.client.openapi.models.V1CustomResourceValidation schema) { + public A withSchema(V1CustomResourceValidation schema) { _visitables.get("schema").remove(this.schema); if (schema != null) { this.schema = new V1CustomResourceValidationBuilder(schema); _visitables.get("schema").add(this.schema); + } else { + this.schema = null; + _visitables.get("schema").remove(this.schema); } return (A) this; } - public java.lang.Boolean hasSchema() { + public Boolean hasSchema() { return this.schema != null; } @@ -407,53 +363,48 @@ public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchema() { return new V1CustomResourceDefinitionVersionFluentImpl.SchemaNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - withNewSchemaLike(io.kubernetes.client.openapi.models.V1CustomResourceValidation item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluentImpl - .SchemaNestedImpl(item); + public V1CustomResourceDefinitionVersionFluent.SchemaNested withNewSchemaLike( + V1CustomResourceValidation item) { + return new V1CustomResourceDefinitionVersionFluentImpl.SchemaNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - editSchema() { + public V1CustomResourceDefinitionVersionFluent.SchemaNested editSchema() { return withNewSchemaLike(getSchema()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - editOrNewSchema() { + public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchema() { return withNewSchemaLike( - getSchema() != null - ? getSchema() - : new io.kubernetes.client.openapi.models.V1CustomResourceValidationBuilder().build()); + getSchema() != null ? getSchema() : new V1CustomResourceValidationBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent.SchemaNested - editOrNewSchemaLike(io.kubernetes.client.openapi.models.V1CustomResourceValidation item) { + public V1CustomResourceDefinitionVersionFluent.SchemaNested editOrNewSchemaLike( + V1CustomResourceValidation item) { return withNewSchemaLike(getSchema() != null ? getSchema() : item); } - public java.lang.Boolean getServed() { + public Boolean getServed() { return this.served; } - public A withServed(java.lang.Boolean served) { + public A withServed(Boolean served) { this.served = served; return (A) this; } - public java.lang.Boolean hasServed() { + public Boolean hasServed() { return this.served != null; } - public java.lang.Boolean getStorage() { + public Boolean getStorage() { return this.storage; } - public A withStorage(java.lang.Boolean storage) { + public A withStorage(Boolean storage) { this.storage = storage; return (A) this; } - public java.lang.Boolean hasStorage() { + public Boolean hasStorage() { return this.storage != null; } @@ -462,26 +413,28 @@ public java.lang.Boolean hasStorage() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CustomResourceSubresources getSubresources() { + @Deprecated + public V1CustomResourceSubresources getSubresources() { return this.subresources != null ? this.subresources.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceSubresources buildSubresources() { + public V1CustomResourceSubresources buildSubresources() { return this.subresources != null ? this.subresources.build() : null; } - public A withSubresources( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources subresources) { + public A withSubresources(V1CustomResourceSubresources subresources) { _visitables.get("subresources").remove(this.subresources); if (subresources != null) { this.subresources = new V1CustomResourceSubresourcesBuilder(subresources); _visitables.get("subresources").add(this.subresources); + } else { + this.subresources = null; + _visitables.get("subresources").remove(this.subresources); } return (A) this; } - public java.lang.Boolean hasSubresources() { + public Boolean hasSubresources() { return this.subresources != null; } @@ -489,38 +442,24 @@ public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubr return new V1CustomResourceDefinitionVersionFluentImpl.SubresourcesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - withNewSubresourcesLike( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources item) { - return new io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluentImpl - .SubresourcesNestedImpl(item); + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested withNewSubresourcesLike( + V1CustomResourceSubresources item) { + return new V1CustomResourceDefinitionVersionFluentImpl.SubresourcesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - editSubresources() { + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editSubresources() { return withNewSubresourcesLike(getSubresources()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - editOrNewSubresources() { + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresources() { return withNewSubresourcesLike( getSubresources() != null ? getSubresources() - : new io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesBuilder() - .build()); + : new V1CustomResourceSubresourcesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - A> - editOrNewSubresourcesLike( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources item) { + public V1CustomResourceDefinitionVersionFluent.SubresourcesNested editOrNewSubresourcesLike( + V1CustomResourceSubresources item) { return withNewSubresourcesLike(getSubresources() != null ? getSubresources() : item); } @@ -559,7 +498,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty()) { @@ -613,25 +552,20 @@ public A withStorage() { class AdditionalPrinterColumnsNestedImpl extends V1CustomResourceColumnDefinitionFluentImpl< V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .AdditionalPrinterColumnsNested< - N>, + implements V1CustomResourceDefinitionVersionFluent.AdditionalPrinterColumnsNested, Nested { - AdditionalPrinterColumnsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition item) { + AdditionalPrinterColumnsNestedImpl(Integer index, V1CustomResourceColumnDefinition item) { this.index = index; this.builder = new V1CustomResourceColumnDefinitionBuilder(this, item); } AdditionalPrinterColumnsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder(this); + this.builder = new V1CustomResourceColumnDefinitionBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinitionBuilder builder; - java.lang.Integer index; + V1CustomResourceColumnDefinitionBuilder builder; + Integer index; public N and() { return (N) @@ -647,20 +581,16 @@ public N endAdditionalPrinterColumn() { class SchemaNestedImpl extends V1CustomResourceValidationFluentImpl< V1CustomResourceDefinitionVersionFluent.SchemaNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SchemaNested< - N>, - io.kubernetes.client.fluent.Nested { - SchemaNestedImpl(io.kubernetes.client.openapi.models.V1CustomResourceValidation item) { + implements V1CustomResourceDefinitionVersionFluent.SchemaNested, Nested { + SchemaNestedImpl(V1CustomResourceValidation item) { this.builder = new V1CustomResourceValidationBuilder(this, item); } SchemaNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceValidationBuilder(this); + this.builder = new V1CustomResourceValidationBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceValidationBuilder builder; + V1CustomResourceValidationBuilder builder; public N and() { return (N) V1CustomResourceDefinitionVersionFluentImpl.this.withSchema(builder.build()); @@ -674,20 +604,16 @@ public N endSchema() { class SubresourcesNestedImpl extends V1CustomResourceSubresourcesFluentImpl< V1CustomResourceDefinitionVersionFluent.SubresourcesNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersionFluent - .SubresourcesNested< - N>, - io.kubernetes.client.fluent.Nested { - SubresourcesNestedImpl(io.kubernetes.client.openapi.models.V1CustomResourceSubresources item) { + implements V1CustomResourceDefinitionVersionFluent.SubresourcesNested, Nested { + SubresourcesNestedImpl(V1CustomResourceSubresources item) { this.builder = new V1CustomResourceSubresourcesBuilder(this, item); } SubresourcesNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesBuilder(this); + this.builder = new V1CustomResourceSubresourcesBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesBuilder builder; + V1CustomResourceSubresourcesBuilder builder; public N and() { return (N) V1CustomResourceDefinitionVersionFluentImpl.this.withSubresources(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java index eadef159cf..92526f77e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java @@ -17,8 +17,7 @@ public class V1CustomResourceSubresourceScaleBuilder extends V1CustomResourceSubresourceScaleFluentImpl implements VisitableBuilder< - V1CustomResourceSubresourceScale, - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleBuilder> { + V1CustomResourceSubresourceScale, V1CustomResourceSubresourceScaleBuilder> { public V1CustomResourceSubresourceScaleBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleF } public V1CustomResourceSubresourceScaleBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceSubresourceScaleFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceSubresourceScale(), validationEnabled); } public V1CustomResourceSubresourceScaleBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale instance) { + V1CustomResourceSubresourceScaleFluent fluent, V1CustomResourceSubresourceScale instance) { this(fluent, instance, false); } public V1CustomResourceSubresourceScaleBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceSubresourceScaleFluent fluent, + V1CustomResourceSubresourceScale instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLabelSelectorPath(instance.getLabelSelectorPath()); @@ -57,14 +54,12 @@ public V1CustomResourceSubresourceScaleBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceSubresourceScaleBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale instance) { + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScale instance) { this(instance, false); } public V1CustomResourceSubresourceScaleBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceSubresourceScale instance, Boolean validationEnabled) { this.fluent = this; this.withLabelSelectorPath(instance.getLabelSelectorPath()); @@ -75,10 +70,10 @@ public V1CustomResourceSubresourceScaleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceSubresourceScaleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale build() { + public V1CustomResourceSubresourceScale build() { V1CustomResourceSubresourceScale buildable = new V1CustomResourceSubresourceScale(); buildable.setLabelSelectorPath(fluent.getLabelSelectorPath()); buildable.setSpecReplicasPath(fluent.getSpecReplicasPath()); 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 d773e63a69..9799741b48 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 @@ -20,19 +20,19 @@ public interface V1CustomResourceSubresourceScaleFluent< extends Fluent { public String getLabelSelectorPath(); - public A withLabelSelectorPath(java.lang.String labelSelectorPath); + public A withLabelSelectorPath(String labelSelectorPath); public Boolean hasLabelSelectorPath(); - public java.lang.String getSpecReplicasPath(); + public String getSpecReplicasPath(); - public A withSpecReplicasPath(java.lang.String specReplicasPath); + public A withSpecReplicasPath(String specReplicasPath); - public java.lang.Boolean hasSpecReplicasPath(); + public Boolean hasSpecReplicasPath(); - public java.lang.String getStatusReplicasPath(); + public String getStatusReplicasPath(); - public A withStatusReplicasPath(java.lang.String statusReplicasPath); + public A withStatusReplicasPath(String statusReplicasPath); - public java.lang.Boolean hasStatusReplicasPath(); + public Boolean hasStatusReplicasPath(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java index 6528fa95a8..a35b0f6b56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluentImpl.java @@ -21,8 +21,7 @@ public class V1CustomResourceSubresourceScaleFluentImpl< extends BaseFluent implements V1CustomResourceSubresourceScaleFluent { public V1CustomResourceSubresourceScaleFluentImpl() {} - public V1CustomResourceSubresourceScaleFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale instance) { + public V1CustomResourceSubresourceScaleFluentImpl(V1CustomResourceSubresourceScale instance) { this.withLabelSelectorPath(instance.getLabelSelectorPath()); this.withSpecReplicasPath(instance.getSpecReplicasPath()); @@ -31,14 +30,14 @@ public V1CustomResourceSubresourceScaleFluentImpl( } private String labelSelectorPath; - private java.lang.String specReplicasPath; - private java.lang.String statusReplicasPath; + private String specReplicasPath; + private String statusReplicasPath; - public java.lang.String getLabelSelectorPath() { + public String getLabelSelectorPath() { return this.labelSelectorPath; } - public A withLabelSelectorPath(java.lang.String labelSelectorPath) { + public A withLabelSelectorPath(String labelSelectorPath) { this.labelSelectorPath = labelSelectorPath; return (A) this; } @@ -47,29 +46,29 @@ public Boolean hasLabelSelectorPath() { return this.labelSelectorPath != null; } - public java.lang.String getSpecReplicasPath() { + public String getSpecReplicasPath() { return this.specReplicasPath; } - public A withSpecReplicasPath(java.lang.String specReplicasPath) { + public A withSpecReplicasPath(String specReplicasPath) { this.specReplicasPath = specReplicasPath; return (A) this; } - public java.lang.Boolean hasSpecReplicasPath() { + public Boolean hasSpecReplicasPath() { return this.specReplicasPath != null; } - public java.lang.String getStatusReplicasPath() { + public String getStatusReplicasPath() { return this.statusReplicasPath; } - public A withStatusReplicasPath(java.lang.String statusReplicasPath) { + public A withStatusReplicasPath(String statusReplicasPath) { this.statusReplicasPath = statusReplicasPath; return (A) this; } - public java.lang.Boolean hasStatusReplicasPath() { + public Boolean hasStatusReplicasPath() { return this.statusReplicasPath != null; } @@ -95,7 +94,7 @@ public int hashCode() { labelSelectorPath, specReplicasPath, statusReplicasPath, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (labelSelectorPath != null) { 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 955c0f4ede..7a3bfe49fb 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 @@ -16,9 +16,7 @@ public class V1CustomResourceSubresourcesBuilder extends V1CustomResourceSubresourcesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CustomResourceSubresources, - V1CustomResourceSubresourcesBuilder> { + implements VisitableBuilder { public V1CustomResourceSubresourcesBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1CustomResourceSubresourcesBuilder(Boolean validationEnabled) { this(new V1CustomResourceSubresources(), validationEnabled); } - public V1CustomResourceSubresourcesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent fluent) { + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent) { this(fluent, false); } public V1CustomResourceSubresourcesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceSubresourcesFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceSubresources(), validationEnabled); } public V1CustomResourceSubresourcesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceSubresources instance) { + V1CustomResourceSubresourcesFluent fluent, V1CustomResourceSubresources instance) { this(fluent, instance, false); } public V1CustomResourceSubresourcesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceSubresources instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceSubresourcesFluent fluent, + V1CustomResourceSubresources instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withScale(instance.getScale()); @@ -56,14 +51,12 @@ public V1CustomResourceSubresourcesBuilder( this.validationEnabled = validationEnabled; } - public V1CustomResourceSubresourcesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources instance) { + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresources instance) { this(instance, false); } public V1CustomResourceSubresourcesBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceSubresources instance, Boolean validationEnabled) { this.fluent = this; this.withScale(instance.getScale()); @@ -72,10 +65,10 @@ public V1CustomResourceSubresourcesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceSubresourcesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceSubresources build() { + public V1CustomResourceSubresources build() { V1CustomResourceSubresources buildable = new V1CustomResourceSubresources(); buildable.setScale(fluent.getScale()); buildable.setStatus(fluent.getStatus()); 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 f90a1adfd7..96b919a356 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 @@ -27,31 +27,29 @@ public interface V1CustomResourceSubresourcesFluent withNewScale(); - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - withNewScaleLike(io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale item); + public V1CustomResourceSubresourcesFluent.ScaleNested withNewScaleLike( + V1CustomResourceSubresourceScale item); - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - editScale(); + public V1CustomResourceSubresourcesFluent.ScaleNested editScale(); - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - editOrNewScale(); + public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScale(); - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - editOrNewScaleLike(io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale item); + public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScaleLike( + V1CustomResourceSubresourceScale item); public Object getStatus(); - public A withStatus(java.lang.Object status); + public A withStatus(Object status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public interface ScaleNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java index c813649bff..58a9d14263 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluentImpl.java @@ -21,8 +21,7 @@ public class V1CustomResourceSubresourcesFluentImpl implements V1CustomResourceSubresourcesFluent { public V1CustomResourceSubresourcesFluentImpl() {} - public V1CustomResourceSubresourcesFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceSubresources instance) { + public V1CustomResourceSubresourcesFluentImpl(V1CustomResourceSubresources instance) { this.withScale(instance.getScale()); this.withStatus(instance.getStatus()); @@ -41,16 +40,18 @@ public V1CustomResourceSubresourceScale getScale() { return this.scale != null ? this.scale.build() : null; } - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale buildScale() { + public V1CustomResourceSubresourceScale buildScale() { return this.scale != null ? this.scale.build() : null; } - public A withScale(io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale scale) { + public A withScale(V1CustomResourceSubresourceScale scale) { _visitables.get("scale").remove(this.scale); if (scale != null) { - this.scale = - new io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleBuilder(scale); + this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); _visitables.get("scale").add(this.scale); + } else { + this.scale = null; + _visitables.get("scale").remove(this.scale); } return (A) this; } @@ -63,45 +64,39 @@ public V1CustomResourceSubresourcesFluent.ScaleNested withNewScale() { return new V1CustomResourceSubresourcesFluentImpl.ScaleNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - withNewScaleLike(io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale item) { + public V1CustomResourceSubresourcesFluent.ScaleNested withNewScaleLike( + V1CustomResourceSubresourceScale item) { return new V1CustomResourceSubresourcesFluentImpl.ScaleNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - editScale() { + public V1CustomResourceSubresourcesFluent.ScaleNested editScale() { return withNewScaleLike(getScale()); } - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - editOrNewScale() { + public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScale() { return withNewScaleLike( - getScale() != null - ? getScale() - : new io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleBuilder() - .build()); + getScale() != null ? getScale() : new V1CustomResourceSubresourceScaleBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested - editOrNewScaleLike( - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScale item) { + public V1CustomResourceSubresourcesFluent.ScaleNested editOrNewScaleLike( + V1CustomResourceSubresourceScale item) { return withNewScaleLike(getScale() != null ? getScale() : item); } - public java.lang.Object getStatus() { + public Object getStatus() { return this.status; } - public A withStatus(java.lang.Object status) { + public A withStatus(Object status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1CustomResourceSubresourcesFluentImpl that = (V1CustomResourceSubresourcesFluentImpl) o; @@ -132,19 +127,16 @@ public String toString() { class ScaleNestedImpl extends V1CustomResourceSubresourceScaleFluentImpl< V1CustomResourceSubresourcesFluent.ScaleNested> - implements io.kubernetes.client.openapi.models.V1CustomResourceSubresourcesFluent.ScaleNested< - N>, - Nested { + implements V1CustomResourceSubresourcesFluent.ScaleNested, Nested { ScaleNestedImpl(V1CustomResourceSubresourceScale item) { this.builder = new V1CustomResourceSubresourceScaleBuilder(this, item); } ScaleNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleBuilder(this); + this.builder = new V1CustomResourceSubresourceScaleBuilder(this); } - io.kubernetes.client.openapi.models.V1CustomResourceSubresourceScaleBuilder builder; + V1CustomResourceSubresourceScaleBuilder builder; public N and() { return (N) V1CustomResourceSubresourcesFluentImpl.this.withScale(builder.build()); 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 896fa585a6..3d4388afb2 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 @@ -16,9 +16,7 @@ public class V1CustomResourceValidationBuilder extends V1CustomResourceValidationFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1CustomResourceValidation, - io.kubernetes.client.openapi.models.V1CustomResourceValidationBuilder> { + implements VisitableBuilder { public V1CustomResourceValidationBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent flu } public V1CustomResourceValidationBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent fluent, - java.lang.Boolean validationEnabled) { + V1CustomResourceValidationFluent fluent, Boolean validationEnabled) { this(fluent, new V1CustomResourceValidation(), validationEnabled); } public V1CustomResourceValidationBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceValidation instance) { + V1CustomResourceValidationFluent fluent, V1CustomResourceValidation instance) { this(fluent, instance, false); } public V1CustomResourceValidationBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent fluent, - io.kubernetes.client.openapi.models.V1CustomResourceValidation instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceValidationFluent fluent, + V1CustomResourceValidation instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); this.validationEnabled = validationEnabled; } - public V1CustomResourceValidationBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceValidation instance) { + public V1CustomResourceValidationBuilder(V1CustomResourceValidation instance) { this(instance, false); } public V1CustomResourceValidationBuilder( - io.kubernetes.client.openapi.models.V1CustomResourceValidation instance, - java.lang.Boolean validationEnabled) { + V1CustomResourceValidation instance, Boolean validationEnabled) { this.fluent = this; this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent fluent; - java.lang.Boolean validationEnabled; + V1CustomResourceValidationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1CustomResourceValidation build() { + public V1CustomResourceValidation build() { V1CustomResourceValidation buildable = new V1CustomResourceValidation(); buildable.setOpenAPIV3Schema(fluent.getOpenAPIV3Schema()); return buildable; 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 620b94ffba..6e3ffaa004 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 @@ -27,30 +27,23 @@ public interface V1CustomResourceValidationFluent withNewOpenAPIV3Schema(); - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - withNewOpenAPIV3SchemaLike(io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike( + V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - editOpenAPIV3Schema(); + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOpenAPIV3Schema(); - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - editOrNewOpenAPIV3Schema(); + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3Schema(); - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - editOrNewOpenAPIV3SchemaLike(io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike( + V1JSONSchemaProps item); public interface OpenAPIV3SchemaNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java index 822287ceb9..b4fdd70892 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluentImpl.java @@ -21,8 +21,7 @@ public class V1CustomResourceValidationFluentImpl implements V1CustomResourceValidationFluent { public V1CustomResourceValidationFluentImpl() {} - public V1CustomResourceValidationFluentImpl( - io.kubernetes.client.openapi.models.V1CustomResourceValidation instance) { + public V1CustomResourceValidationFluentImpl(V1CustomResourceValidation instance) { this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); } @@ -38,17 +37,18 @@ public V1JSONSchemaProps getOpenAPIV3Schema() { return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildOpenAPIV3Schema() { + public V1JSONSchemaProps buildOpenAPIV3Schema() { return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; } - public A withOpenAPIV3Schema( - io.kubernetes.client.openapi.models.V1JSONSchemaProps openAPIV3Schema) { + public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { _visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); if (openAPIV3Schema != null) { - this.openAPIV3Schema = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(openAPIV3Schema); + this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); _visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); + } else { + this.openAPIV3Schema = null; + _visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); } return (A) this; } @@ -61,30 +61,24 @@ public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV return new V1CustomResourceValidationFluentImpl.OpenAPIV3SchemaNestedImpl(); } - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - withNewOpenAPIV3SchemaLike(io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike( + V1JSONSchemaProps item) { return new V1CustomResourceValidationFluentImpl.OpenAPIV3SchemaNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - editOpenAPIV3Schema() { + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOpenAPIV3Schema() { return withNewOpenAPIV3SchemaLike(getOpenAPIV3Schema()); } - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - editOrNewOpenAPIV3Schema() { + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3Schema() { return withNewOpenAPIV3SchemaLike( getOpenAPIV3Schema() != null ? getOpenAPIV3Schema() - : new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder().build()); + : new V1JSONSchemaPropsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent.OpenAPIV3SchemaNested< - A> - editOrNewOpenAPIV3SchemaLike(io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public V1CustomResourceValidationFluent.OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike( + V1JSONSchemaProps item) { return withNewOpenAPIV3SchemaLike(getOpenAPIV3Schema() != null ? getOpenAPIV3Schema() : item); } @@ -115,19 +109,16 @@ public String toString() { class OpenAPIV3SchemaNestedImpl extends V1JSONSchemaPropsFluentImpl> - implements io.kubernetes.client.openapi.models.V1CustomResourceValidationFluent - .OpenAPIV3SchemaNested< - N>, - Nested { + implements V1CustomResourceValidationFluent.OpenAPIV3SchemaNested, Nested { OpenAPIV3SchemaNestedImpl(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } OpenAPIV3SchemaNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(this); + this.builder = new V1JSONSchemaPropsBuilder(this); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder; + V1JSONSchemaPropsBuilder builder; public N and() { return (N) V1CustomResourceValidationFluentImpl.this.withOpenAPIV3Schema(builder.build()); 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 5fc15f3ac6..7c2c63b61b 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DaemonEndpoint, - io.kubernetes.client.openapi.models.V1DaemonEndpointBuilder> { + implements VisitableBuilder { public V1DaemonEndpointBuilder() { this(false); } @@ -30,45 +28,37 @@ public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent) { this(fluent, false); } - public V1DaemonEndpointBuilder( - io.kubernetes.client.openapi.models.V1DaemonEndpointFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonEndpoint(), validationEnabled); } - public V1DaemonEndpointBuilder( - io.kubernetes.client.openapi.models.V1DaemonEndpointFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonEndpoint instance) { + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent, V1DaemonEndpoint instance) { this(fluent, instance, false); } public V1DaemonEndpointBuilder( - io.kubernetes.client.openapi.models.V1DaemonEndpointFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonEndpoint instance, - java.lang.Boolean validationEnabled) { + V1DaemonEndpointFluent fluent, V1DaemonEndpoint instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPort(instance.getPort()); this.validationEnabled = validationEnabled; } - public V1DaemonEndpointBuilder(io.kubernetes.client.openapi.models.V1DaemonEndpoint instance) { + public V1DaemonEndpointBuilder(V1DaemonEndpoint instance) { this(instance, false); } - public V1DaemonEndpointBuilder( - io.kubernetes.client.openapi.models.V1DaemonEndpoint instance, - java.lang.Boolean validationEnabled) { + public V1DaemonEndpointBuilder(V1DaemonEndpoint instance, Boolean validationEnabled) { this.fluent = this; this.withPort(instance.getPort()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonEndpointFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonEndpointFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonEndpoint build() { + public V1DaemonEndpoint build() { V1DaemonEndpoint buildable = new V1DaemonEndpoint(); buildable.setPort(fluent.getPort()); return buildable; 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 e5aa4978d2..50e0c05b8f 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 @@ -18,7 +18,7 @@ public interface V1DaemonEndpointFluent> extends Fluent { public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); public Boolean hasPort(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java index 085cf64445..769124e522 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluentImpl.java @@ -20,17 +20,17 @@ public class V1DaemonEndpointFluentImpl> ext implements V1DaemonEndpointFluent { public V1DaemonEndpointFluentImpl() {} - public V1DaemonEndpointFluentImpl(io.kubernetes.client.openapi.models.V1DaemonEndpoint instance) { + public V1DaemonEndpointFluentImpl(V1DaemonEndpoint instance) { this.withPort(instance.getPort()); } private Integer port; - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } 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 6f4745b7a7..9dacbf71ee 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DaemonSetBuilder extends V1DaemonSetFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DaemonSet, - io.kubernetes.client.openapi.models.V1DaemonSetBuilder> { + implements VisitableBuilder { public V1DaemonSetBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1DaemonSetBuilder(V1DaemonSetFluent fluent) { this(fluent, false); } - public V1DaemonSetBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DaemonSetBuilder(V1DaemonSetFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonSet(), validationEnabled); } - public V1DaemonSetBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSet instance) { + public V1DaemonSetBuilder(V1DaemonSetFluent fluent, V1DaemonSet instance) { this(fluent, instance, false); } public V1DaemonSetBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSet instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetFluent fluent, V1DaemonSet instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1DaemonSetBuilder( this.validationEnabled = validationEnabled; } - public V1DaemonSetBuilder(io.kubernetes.client.openapi.models.V1DaemonSet instance) { + public V1DaemonSetBuilder(V1DaemonSet instance) { this(instance, false); } - public V1DaemonSetBuilder( - io.kubernetes.client.openapi.models.V1DaemonSet instance, - java.lang.Boolean validationEnabled) { + public V1DaemonSetBuilder(V1DaemonSet instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1DaemonSetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonSetFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonSetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonSet build() { + public V1DaemonSet build() { V1DaemonSet buildable = new V1DaemonSet(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 20679a6793..8b617324ce 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 @@ -16,9 +16,7 @@ public class V1DaemonSetConditionBuilder extends V1DaemonSetConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DaemonSetCondition, - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder> { + implements VisitableBuilder { public V1DaemonSetConditionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent) { } public V1DaemonSetConditionBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1DaemonSetConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonSetCondition(), validationEnabled); } public V1DaemonSetConditionBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetConditionFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetCondition instance) { + V1DaemonSetConditionFluent fluent, V1DaemonSetCondition instance) { this(fluent, instance, false); } public V1DaemonSetConditionBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetConditionFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetCondition instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetConditionFluent fluent, + V1DaemonSetCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +57,11 @@ public V1DaemonSetConditionBuilder( this.validationEnabled = validationEnabled; } - public V1DaemonSetConditionBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetCondition instance) { + public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance) { this(instance, false); } - public V1DaemonSetConditionBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetCondition instance, - java.lang.Boolean validationEnabled) { + public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +76,10 @@ public V1DaemonSetConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonSetConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonSetConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonSetCondition build() { + public V1DaemonSetCondition build() { V1DaemonSetCondition buildable = new V1DaemonSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 811c6b7247..45cfc321cf 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 @@ -20,31 +20,31 @@ public interface V1DaemonSetConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java index b77901fe7b..e487e237e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1DaemonSetConditionFluentImpl implements V1DaemonSetConditionFluent { public V1DaemonSetConditionFluentImpl() {} - public V1DaemonSetConditionFluentImpl( - io.kubernetes.client.openapi.models.V1DaemonSetCondition instance) { + public V1DaemonSetConditionFluentImpl(V1DaemonSetCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1DaemonSetConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 65784ee3b5..5f5facd2cd 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 @@ -19,15 +19,15 @@ public interface V1DaemonSetFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1DaemonSetFluent> extends Fluen @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1DaemonSetFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1DaemonSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested editMetadata(); + public V1DaemonSetFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested - editOrNewMetadata(); + public V1DaemonSetFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1DaemonSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DaemonSetSpec getSpec(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpec buildSpec(); + public V1DaemonSetSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1DaemonSetSpec spec); + public A withSpec(V1DaemonSetSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1DaemonSetFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1DaemonSetSpec item); + public V1DaemonSetFluent.SpecNested withNewSpecLike(V1DaemonSetSpec item); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editSpec(); + public V1DaemonSetFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editOrNewSpec(); + public V1DaemonSetFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1DaemonSetSpec item); + public V1DaemonSetFluent.SpecNested editOrNewSpecLike(V1DaemonSetSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DaemonSetStatus getStatus(); - public io.kubernetes.client.openapi.models.V1DaemonSetStatus buildStatus(); + public V1DaemonSetStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1DaemonSetStatus status); + public A withStatus(V1DaemonSetStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1DaemonSetFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1DaemonSetStatus item); + public V1DaemonSetFluent.StatusNested withNewStatusLike(V1DaemonSetStatus item); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested editStatus(); + public V1DaemonSetFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested editOrNewStatus(); + public V1DaemonSetFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1DaemonSetStatus item); + public V1DaemonSetFluent.StatusNested editOrNewStatusLike(V1DaemonSetStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1DaemonSetSpecFluent> { + extends Nested, V1DaemonSetSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1DaemonSetStatusFluent> { + extends Nested, V1DaemonSetStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java index 981ae53c11..00718f25ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluentImpl.java @@ -21,7 +21,7 @@ public class V1DaemonSetFluentImpl> extends BaseF implements V1DaemonSetFluent { public V1DaemonSetFluentImpl() {} - public V1DaemonSetFluentImpl(io.kubernetes.client.openapi.models.V1DaemonSet instance) { + public V1DaemonSetFluentImpl(V1DaemonSet instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1DaemonSetFluentImpl(io.kubernetes.client.openapi.models.V1DaemonSet ins } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1DaemonSetSpecBuilder spec; private V1DaemonSetStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1DaemonSetFluent.MetadataNested withNewMetadata() { return new V1DaemonSetFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1DaemonSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1DaemonSetFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested editMetadata() { + public V1DaemonSetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested - editOrNewMetadata() { + public V1DaemonSetFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1DaemonSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested e * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1DaemonSetSpec getSpec() { + @Deprecated + public V1DaemonSetSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1DaemonSetSpec buildSpec() { + public V1DaemonSetSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1DaemonSetSpec spec) { + public A withSpec(V1DaemonSetSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1DaemonSetSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1DaemonSetFluent.SpecNested withNewSpec() { return new V1DaemonSetFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1DaemonSetSpec item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetFluentImpl.SpecNestedImpl(item); + public V1DaemonSetFluent.SpecNested withNewSpecLike(V1DaemonSetSpec item) { + return new V1DaemonSetFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editSpec() { + public V1DaemonSetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1DaemonSetSpecBuilder().build()); + public V1DaemonSetFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1DaemonSetSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1DaemonSetSpec item) { + public V1DaemonSetFluent.SpecNested editOrNewSpecLike(V1DaemonSetSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested editO * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1DaemonSetStatus getStatus() { + @Deprecated + public V1DaemonSetStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1DaemonSetStatus buildStatus() { + public V1DaemonSetStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1DaemonSetStatus status) { + public A withStatus(V1DaemonSetStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1DaemonSetStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1DaemonSetFluent.StatusNested withNewStatus() { return new V1DaemonSetFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1DaemonSetStatus item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetFluentImpl.StatusNestedImpl(item); + public V1DaemonSetFluent.StatusNested withNewStatusLike(V1DaemonSetStatus item) { + return new V1DaemonSetFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested editStatus() { + public V1DaemonSetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested editOrNewStatus() { + public V1DaemonSetFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1DaemonSetStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1DaemonSetStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1DaemonSetStatus item) { + public V1DaemonSetFluent.StatusNested editOrNewStatusLike(V1DaemonSetStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetFluent.MetadataNested, - Nested { + implements V1DaemonSetFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1DaemonSetFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1DaemonSetSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1DaemonSetFluent.SpecNested, Nested { SpecNestedImpl(V1DaemonSetSpec item) { this.builder = new V1DaemonSetSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DaemonSetSpecBuilder(this); + this.builder = new V1DaemonSetSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1DaemonSetSpecBuilder builder; + V1DaemonSetSpecBuilder builder; public N and() { return (N) V1DaemonSetFluentImpl.this.withSpec(builder.build()); @@ -311,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1DaemonSetStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1DaemonSetStatus item) { + implements V1DaemonSetFluent.StatusNested, Nested { + StatusNestedImpl(V1DaemonSetStatus item) { this.builder = new V1DaemonSetStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DaemonSetStatusBuilder(this); + this.builder = new V1DaemonSetStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1DaemonSetStatusBuilder builder; + V1DaemonSetStatusBuilder builder; public N and() { return (N) V1DaemonSetFluentImpl.this.withStatus(builder.build()); 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 bb0a103038..846a9f178f 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DaemonSetListBuilder extends V1DaemonSetListFluentImpl - implements VisitableBuilder< - V1DaemonSetList, io.kubernetes.client.openapi.models.V1DaemonSetListBuilder> { + implements VisitableBuilder { public V1DaemonSetListBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1DaemonSetListBuilder(Boolean validationEnabled) { this(new V1DaemonSetList(), validationEnabled); } - public V1DaemonSetListBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetListFluent fluent) { + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent) { this(fluent, false); } - public V1DaemonSetListBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonSetList(), validationEnabled); } - public V1DaemonSetListBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetListFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetList instance) { + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent, V1DaemonSetList instance) { this(fluent, instance, false); } public V1DaemonSetListBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetListFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetList instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetListFluent fluent, V1DaemonSetList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1DaemonSetListBuilder( this.validationEnabled = validationEnabled; } - public V1DaemonSetListBuilder(io.kubernetes.client.openapi.models.V1DaemonSetList instance) { + public V1DaemonSetListBuilder(V1DaemonSetList instance) { this(instance, false); } - public V1DaemonSetListBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetList instance, - java.lang.Boolean validationEnabled) { + public V1DaemonSetListBuilder(V1DaemonSetList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1DaemonSetListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonSetListFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonSetListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonSetList build() { + public V1DaemonSetList build() { V1DaemonSetList buildable = new V1DaemonSetList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 6bd830768b..d8dfa6c3ff 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 @@ -22,23 +22,21 @@ public interface V1DaemonSetListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1DaemonSet item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSet item); + public A setToItems(Integer index, V1DaemonSet item); public A addToItems(io.kubernetes.client.openapi.models.V1DaemonSet... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1DaemonSet... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,81 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1DaemonSet buildItem(java.lang.Integer index); + public V1DaemonSet buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1DaemonSet buildFirstItem(); + public V1DaemonSet buildFirstItem(); - public io.kubernetes.client.openapi.models.V1DaemonSet buildLastItem(); + public V1DaemonSet buildLastItem(); - public io.kubernetes.client.openapi.models.V1DaemonSet buildMatchingItem( - java.util.function.Predicate - predicate); + public V1DaemonSet buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1DaemonSetListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1DaemonSet item); + public V1DaemonSetListFluent.ItemsNested addNewItemLike(V1DaemonSet item); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSet item); + public V1DaemonSetListFluent.ItemsNested setNewItemLike(Integer index, V1DaemonSet item); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1DaemonSetListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editFirstItem(); + public V1DaemonSetListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editLastItem(); + public V1DaemonSetListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1DaemonSetListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1DaemonSetListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1DaemonSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested editMetadata(); + public V1DaemonSetListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - editOrNewMetadata(); + public V1DaemonSetListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1DaemonSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1DaemonSetFluent> { @@ -132,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java index 42f2bf9bc6..551949c780 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluentImpl.java @@ -38,14 +38,14 @@ public V1DaemonSetListFluentImpl(V1DaemonSetList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1DaemonSet item) { + public A addToItems(Integer index, V1DaemonSet item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetBuilder(item); + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSet item) { + public A setToItems(Integer index, V1DaemonSet item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetBuilder(item); + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DaemonSet item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DaemonSet item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetBuilder(item); + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1DaemonSet item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder = each.next(); + V1DaemonSetBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1DaemonSet buildItem(java.lang.Integer index) { + public V1DaemonSet buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1DaemonSet buildFirstItem() { + public V1DaemonSet buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1DaemonSet buildLastItem() { + public V1DaemonSet buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1DaemonSet buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DaemonSetBuilder item : items) { + public V1DaemonSet buildMatchingItem(Predicate predicate) { + for (V1DaemonSetBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1DaemonSet buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DaemonSetBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1DaemonSetBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1DaemonSet item : items) { + this.items = new ArrayList(); + for (V1DaemonSet item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1DaemonSet item : items) { + for (V1DaemonSet item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1DaemonSetListFluent.ItemsNested addNewItem() { return new V1DaemonSetListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1DaemonSet item) { + public V1DaemonSetListFluent.ItemsNested addNewItemLike(V1DaemonSet item) { return new V1DaemonSetListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSet item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetListFluentImpl.ItemsNestedImpl( - index, item); + public V1DaemonSetListFluent.ItemsNested setNewItemLike(Integer index, V1DaemonSet item) { + return new V1DaemonSetListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1DaemonSetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editFirstItem() { + public V1DaemonSetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editLastItem() { + public V1DaemonSetListFluent.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 io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1DaemonSetListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1DaemonSetListFluent.MetadataNested withNewMetadata() { return new V1DaemonSetListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetListFluentImpl.MetadataNestedImpl( - item); + public V1DaemonSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1DaemonSetListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - editMetadata() { + public V1DaemonSetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - editOrNewMetadata() { + public V1DaemonSetListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1DaemonSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,20 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1DaemonSetFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetListFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSet item) { + implements V1DaemonSetListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1DaemonSet item) { this.index = index; this.builder = new V1DaemonSetBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1DaemonSetBuilder(this); + this.builder = new V1DaemonSetBuilder(this); } - io.kubernetes.client.openapi.models.V1DaemonSetBuilder builder; - java.lang.Integer index; + V1DaemonSetBuilder builder; + Integer index; public N and() { return (N) V1DaemonSetListFluentImpl.this.setToItems(index, builder.build()); @@ -413,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1DaemonSetListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1DaemonSetListFluentImpl.this.withMetadata(builder.build()); 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 f2240b75bc..80437aa5a6 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DaemonSetSpec, V1DaemonSetSpecBuilder> { + implements VisitableBuilder { public V1DaemonSetSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent) { this(fluent, false); } - public V1DaemonSetSpecBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonSetSpec(), validationEnabled); } - public V1DaemonSetSpecBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetSpec instance) { + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent, V1DaemonSetSpec instance) { this(fluent, instance, false); } public V1DaemonSetSpecBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetSpec instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetSpecFluent fluent, V1DaemonSetSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); @@ -59,13 +52,11 @@ public V1DaemonSetSpecBuilder( this.validationEnabled = validationEnabled; } - public V1DaemonSetSpecBuilder(io.kubernetes.client.openapi.models.V1DaemonSetSpec instance) { + public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance) { this(instance, false); } - public V1DaemonSetSpecBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetSpec instance, - java.lang.Boolean validationEnabled) { + public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -80,10 +71,10 @@ public V1DaemonSetSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonSetSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonSetSpec build() { + public V1DaemonSetSpec build() { V1DaemonSetSpec buildable = new V1DaemonSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); buildable.setRevisionHistoryLimit(fluent.getRevisionHistoryLimit()); 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 458f118e4f..df51ec5b1b 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 @@ -19,15 +19,15 @@ public interface V1DaemonSetSpecFluent> extends Fluent { public Integer getMinReadySeconds(); - public A withMinReadySeconds(java.lang.Integer minReadySeconds); + public A withMinReadySeconds(Integer minReadySeconds); public Boolean hasMinReadySeconds(); - public java.lang.Integer getRevisionHistoryLimit(); + public Integer getRevisionHistoryLimit(); - public A withRevisionHistoryLimit(java.lang.Integer revisionHistoryLimit); + public A withRevisionHistoryLimit(Integer revisionHistoryLimit); - public java.lang.Boolean hasRevisionHistoryLimit(); + public Boolean hasRevisionHistoryLimit(); /** * This method has been deprecated, please use method buildSelector instead. @@ -37,81 +37,71 @@ public interface V1DaemonSetSpecFluent> exten @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V1DaemonSetSpecFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1DaemonSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested editSelector(); + public V1DaemonSetSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - editOrNewSelector(); + public V1DaemonSetSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1DaemonSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); /** * This method has been deprecated, please use method buildTemplate instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate(); + public V1PodTemplateSpec buildTemplate(); - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template); + public A withTemplate(V1PodTemplateSpec template); - public java.lang.Boolean hasTemplate(); + public Boolean hasTemplate(); public V1DaemonSetSpecFluent.TemplateNested withNewTemplate(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1DaemonSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested editTemplate(); + public V1DaemonSetSpecFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - editOrNewTemplate(); + public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); /** * This method has been deprecated, please use method buildUpdateStrategy instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DaemonSetUpdateStrategy getUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy buildUpdateStrategy(); + public V1DaemonSetUpdateStrategy buildUpdateStrategy(); - public A withUpdateStrategy( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy updateStrategy); + public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy); - public java.lang.Boolean hasUpdateStrategy(); + public Boolean hasUpdateStrategy(); public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - withNewUpdateStrategyLike(io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy item); + public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( + V1DaemonSetUpdateStrategy item); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - editUpdateStrategy(); + public V1DaemonSetSpecFluent.UpdateStrategyNested editUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategy(); + public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy item); + public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( + V1DaemonSetUpdateStrategy item); public interface SelectorNested extends Nested, V1LabelSelectorFluent> { @@ -121,15 +111,14 @@ public interface SelectorNested } public interface TemplateNested - extends io.kubernetes.client.fluent.Nested, - V1PodTemplateSpecFluent> { + extends Nested, V1PodTemplateSpecFluent> { public N and(); public N endTemplate(); } public interface UpdateStrategyNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1DaemonSetUpdateStrategyFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java index ad16d14fe7..2e1fee2396 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V1DaemonSetSpecFluentImpl> exten implements V1DaemonSetSpecFluent { public V1DaemonSetSpecFluentImpl() {} - public V1DaemonSetSpecFluentImpl(io.kubernetes.client.openapi.models.V1DaemonSetSpec instance) { + public V1DaemonSetSpecFluentImpl(V1DaemonSetSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); @@ -34,16 +34,16 @@ public V1DaemonSetSpecFluentImpl(io.kubernetes.client.openapi.models.V1DaemonSet } private Integer minReadySeconds; - private java.lang.Integer revisionHistoryLimit; + private Integer revisionHistoryLimit; private V1LabelSelectorBuilder selector; private V1PodTemplateSpecBuilder template; private V1DaemonSetUpdateStrategyBuilder updateStrategy; - public java.lang.Integer getMinReadySeconds() { + public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(java.lang.Integer minReadySeconds) { + public A withMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public java.lang.Integer getRevisionHistoryLimit() { + public Integer getRevisionHistoryLimit() { return this.revisionHistoryLimit; } - public A withRevisionHistoryLimit(java.lang.Integer revisionHistoryLimit) { + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return (A) this; } - public java.lang.Boolean hasRevisionHistoryLimit() { + public Boolean hasRevisionHistoryLimit() { return this.revisionHistoryLimit != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasRevisionHistoryLimit() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -96,26 +99,20 @@ public V1DaemonSetSpecFluent.SelectorNested withNewSelector() { return new V1DaemonSetSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1DaemonSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1DaemonSetSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - editSelector() { + public V1DaemonSetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - editOrNewSelector() { + public V1DaemonSetSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1DaemonSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } @@ -124,25 +121,28 @@ public V1DaemonSetSpecFluent.SelectorNested withNewSelector() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PodTemplateSpec getTemplate() { + @Deprecated + public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -150,27 +150,20 @@ public V1DaemonSetSpecFluent.TemplateNested withNewTemplate() { return new V1DaemonSetSpecFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetSpecFluentImpl.TemplateNestedImpl( - item); + public V1DaemonSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new V1DaemonSetSpecFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - editTemplate() { + public V1DaemonSetSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - editOrNewTemplate() { + public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1DaemonSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } @@ -179,27 +172,28 @@ public V1DaemonSetSpecFluent.TemplateNested withNewTemplate() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DaemonSetUpdateStrategy getUpdateStrategy() { return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy buildUpdateStrategy() { + public V1DaemonSetUpdateStrategy buildUpdateStrategy() { return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public A withUpdateStrategy( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy updateStrategy) { + public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { _visitables.get("updateStrategy").remove(this.updateStrategy); if (updateStrategy != null) { - this.updateStrategy = - new io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyBuilder(updateStrategy); + this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); _visitables.get("updateStrategy").add(this.updateStrategy); + } else { + this.updateStrategy = null; + _visitables.get("updateStrategy").remove(this.updateStrategy); } return (A) this; } - public java.lang.Boolean hasUpdateStrategy() { + public Boolean hasUpdateStrategy() { return this.updateStrategy != null; } @@ -207,29 +201,24 @@ public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy() { return new V1DaemonSetSpecFluentImpl.UpdateStrategyNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - withNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetSpecFluentImpl - .UpdateStrategyNestedImpl(item); + public V1DaemonSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( + V1DaemonSetUpdateStrategy item) { + return new V1DaemonSetSpecFluentImpl.UpdateStrategyNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - editUpdateStrategy() { + public V1DaemonSetSpecFluent.UpdateStrategyNested editUpdateStrategy() { return withNewUpdateStrategyLike(getUpdateStrategy()); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategy() { + public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy() { return withNewUpdateStrategyLike( getUpdateStrategy() != null ? getUpdateStrategy() - : new io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyBuilder().build()); + : new V1DaemonSetUpdateStrategyBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy item) { + public V1DaemonSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( + V1DaemonSetUpdateStrategy item) { return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy() : item); } @@ -290,17 +279,16 @@ public String toString() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.SelectorNested, - Nested { + implements V1DaemonSetSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1DaemonSetSpecFluentImpl.this.withSelector(builder.build()); @@ -313,17 +301,16 @@ public N endSelector() { class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.TemplateNested, - io.kubernetes.client.fluent.Nested { + implements V1DaemonSetSpecFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1DaemonSetSpecFluentImpl.this.withTemplate(builder.build()); @@ -336,17 +323,16 @@ public N endTemplate() { class UpdateStrategyNestedImpl extends V1DaemonSetUpdateStrategyFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetSpecFluent.UpdateStrategyNested, - io.kubernetes.client.fluent.Nested { - UpdateStrategyNestedImpl(io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy item) { + implements V1DaemonSetSpecFluent.UpdateStrategyNested, Nested { + UpdateStrategyNestedImpl(V1DaemonSetUpdateStrategy item) { this.builder = new V1DaemonSetUpdateStrategyBuilder(this, item); } UpdateStrategyNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyBuilder(this); + this.builder = new V1DaemonSetUpdateStrategyBuilder(this); } - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyBuilder builder; + V1DaemonSetUpdateStrategyBuilder builder; public N and() { return (N) V1DaemonSetSpecFluentImpl.this.withUpdateStrategy(builder.build()); 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 eb1cccfcb6..9cde86bcea 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DaemonSetStatus, - io.kubernetes.client.openapi.models.V1DaemonSetStatusBuilder> { + implements VisitableBuilder { public V1DaemonSetStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent) { this(fluent, false); } - public V1DaemonSetStatusBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonSetStatus(), validationEnabled); } - public V1DaemonSetStatusBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetStatus instance) { + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent, V1DaemonSetStatus instance) { this(fluent, instance, false); } public V1DaemonSetStatusBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetStatus instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetStatusFluent fluent, V1DaemonSetStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCollisionCount(instance.getCollisionCount()); @@ -70,13 +62,11 @@ public V1DaemonSetStatusBuilder( this.validationEnabled = validationEnabled; } - public V1DaemonSetStatusBuilder(io.kubernetes.client.openapi.models.V1DaemonSetStatus instance) { + public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance) { this(instance, false); } - public V1DaemonSetStatusBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetStatus instance, - java.lang.Boolean validationEnabled) { + public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCollisionCount(instance.getCollisionCount()); @@ -101,10 +91,10 @@ public V1DaemonSetStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonSetStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonSetStatus build() { + public V1DaemonSetStatus build() { V1DaemonSetStatus buildable = new V1DaemonSetStatus(); buildable.setCollisionCount(fluent.getCollisionCount()); buildable.setConditions(fluent.getConditions()); 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 1da6af138a..56e6176227 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 @@ -22,24 +22,21 @@ public interface V1DaemonSetStatusFluent> extends Fluent { public Integer getCollisionCount(); - public A withCollisionCount(java.lang.Integer collisionCount); + public A withCollisionCount(Integer collisionCount); public Boolean hasCollisionCount(); - public A addToConditions(java.lang.Integer index, V1DaemonSetCondition item); + public A addToConditions(Integer index, V1DaemonSetCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSetCondition item); + public A setToConditions(Integer index, V1DaemonSetCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -49,103 +46,90 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildCondition( - java.lang.Integer index); + public V1DaemonSetCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildFirstCondition(); + public V1DaemonSetCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildLastCondition(); + public V1DaemonSetCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1DaemonSetCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1DaemonSetStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1DaemonSetCondition item); + public V1DaemonSetStatusFluent.ConditionsNested addNewConditionLike(V1DaemonSetCondition item); - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSetCondition item); + public V1DaemonSetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1DaemonSetCondition item); - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1DaemonSetStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editFirstCondition(); + public V1DaemonSetStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editLastCondition(); + public V1DaemonSetStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder> - predicate); + public V1DaemonSetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.Integer getCurrentNumberScheduled(); + public Integer getCurrentNumberScheduled(); - public A withCurrentNumberScheduled(java.lang.Integer currentNumberScheduled); + public A withCurrentNumberScheduled(Integer currentNumberScheduled); - public java.lang.Boolean hasCurrentNumberScheduled(); + public Boolean hasCurrentNumberScheduled(); - public java.lang.Integer getDesiredNumberScheduled(); + public Integer getDesiredNumberScheduled(); - public A withDesiredNumberScheduled(java.lang.Integer desiredNumberScheduled); + public A withDesiredNumberScheduled(Integer desiredNumberScheduled); - public java.lang.Boolean hasDesiredNumberScheduled(); + public Boolean hasDesiredNumberScheduled(); - public java.lang.Integer getNumberAvailable(); + public Integer getNumberAvailable(); - public A withNumberAvailable(java.lang.Integer numberAvailable); + public A withNumberAvailable(Integer numberAvailable); - public java.lang.Boolean hasNumberAvailable(); + public Boolean hasNumberAvailable(); - public java.lang.Integer getNumberMisscheduled(); + public Integer getNumberMisscheduled(); - public A withNumberMisscheduled(java.lang.Integer numberMisscheduled); + public A withNumberMisscheduled(Integer numberMisscheduled); - public java.lang.Boolean hasNumberMisscheduled(); + public Boolean hasNumberMisscheduled(); - public java.lang.Integer getNumberReady(); + public Integer getNumberReady(); - public A withNumberReady(java.lang.Integer numberReady); + public A withNumberReady(Integer numberReady); - public java.lang.Boolean hasNumberReady(); + public Boolean hasNumberReady(); - public java.lang.Integer getNumberUnavailable(); + public Integer getNumberUnavailable(); - public A withNumberUnavailable(java.lang.Integer numberUnavailable); + public A withNumberUnavailable(Integer numberUnavailable); - public java.lang.Boolean hasNumberUnavailable(); + public Boolean hasNumberUnavailable(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.Integer getUpdatedNumberScheduled(); + public Integer getUpdatedNumberScheduled(); - public A withUpdatedNumberScheduled(java.lang.Integer updatedNumberScheduled); + public A withUpdatedNumberScheduled(Integer updatedNumberScheduled); - public java.lang.Boolean hasUpdatedNumberScheduled(); + public Boolean hasUpdatedNumberScheduled(); public interface ConditionsNested extends Nested, V1DaemonSetConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java index 793d851a2d..53921cc581 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1DaemonSetStatusFluentImpl> e implements V1DaemonSetStatusFluent { public V1DaemonSetStatusFluentImpl() {} - public V1DaemonSetStatusFluentImpl( - io.kubernetes.client.openapi.models.V1DaemonSetStatus instance) { + public V1DaemonSetStatusFluentImpl(V1DaemonSetStatus instance) { this.withCollisionCount(instance.getCollisionCount()); this.withConditions(instance.getConditions()); @@ -51,20 +50,20 @@ public V1DaemonSetStatusFluentImpl( private Integer collisionCount; private ArrayList conditions; - private java.lang.Integer currentNumberScheduled; - private java.lang.Integer desiredNumberScheduled; - private java.lang.Integer numberAvailable; - private java.lang.Integer numberMisscheduled; - private java.lang.Integer numberReady; - private java.lang.Integer numberUnavailable; + private Integer currentNumberScheduled; + private Integer desiredNumberScheduled; + private Integer numberAvailable; + private Integer numberMisscheduled; + private Integer numberReady; + private Integer numberUnavailable; private Long observedGeneration; - private java.lang.Integer updatedNumberScheduled; + private Integer updatedNumberScheduled; - public java.lang.Integer getCollisionCount() { + public Integer getCollisionCount() { return this.collisionCount; } - public A withCollisionCount(java.lang.Integer collisionCount) { + public A withCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; return (A) this; } @@ -73,13 +72,11 @@ public Boolean hasCollisionCount() { return this.collisionCount != null; } - public A addToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSetCondition item) { + public A addToConditions(Integer index, V1DaemonSetCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(item); + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -87,15 +84,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSetCondition item) { + public A setToConditions(Integer index, V1DaemonSetCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(item); + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -111,29 +104,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DaemonSetCondition item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DaemonSetCondition item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(item); + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -141,9 +127,8 @@ public A addAllToConditions( } public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { - for (io.kubernetes.client.openapi.models.V1DaemonSetCondition item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(item); + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -152,11 +137,9 @@ public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCon return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1DaemonSetCondition item : items) { - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -165,14 +148,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder = each.next(); + V1DaemonSetConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -187,32 +168,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildCondition( - java.lang.Integer index) { + public V1DaemonSetCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildFirstCondition() { + public V1DaemonSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildLastCondition() { + public V1DaemonSetCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder item : conditions) { + public V1DaemonSetCondition buildMatchingCondition( + Predicate predicate) { + for (V1DaemonSetConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -220,10 +198,8 @@ public io.kubernetes.client.openapi.models.V1DaemonSetCondition buildMatchingCon return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1DaemonSetConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -231,14 +207,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1DaemonSetCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1DaemonSetCondition item : conditions) { this.addToConditions(item); } } else { @@ -252,14 +227,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1DaemonSetCondition item : conditions) { + for (V1DaemonSetCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -267,44 +242,36 @@ public V1DaemonSetStatusFluent.ConditionsNested addNewCondition() { return new V1DaemonSetStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1DaemonSetCondition item) { + public V1DaemonSetStatusFluent.ConditionsNested addNewConditionLike( + V1DaemonSetCondition item) { return new V1DaemonSetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSetCondition item) { - return new io.kubernetes.client.openapi.models.V1DaemonSetStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1DaemonSetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1DaemonSetCondition item) { + return new V1DaemonSetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1DaemonSetStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editFirstCondition() { + public V1DaemonSetStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editLastCondition() { + public V1DaemonSetStatusFluent.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 io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder> - predicate) { + public V1DaemonSetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -316,107 +283,107 @@ public V1DaemonSetStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Integer getCurrentNumberScheduled() { + public Integer getCurrentNumberScheduled() { return this.currentNumberScheduled; } - public A withCurrentNumberScheduled(java.lang.Integer currentNumberScheduled) { + public A withCurrentNumberScheduled(Integer currentNumberScheduled) { this.currentNumberScheduled = currentNumberScheduled; return (A) this; } - public java.lang.Boolean hasCurrentNumberScheduled() { + public Boolean hasCurrentNumberScheduled() { return this.currentNumberScheduled != null; } - public java.lang.Integer getDesiredNumberScheduled() { + public Integer getDesiredNumberScheduled() { return this.desiredNumberScheduled; } - public A withDesiredNumberScheduled(java.lang.Integer desiredNumberScheduled) { + public A withDesiredNumberScheduled(Integer desiredNumberScheduled) { this.desiredNumberScheduled = desiredNumberScheduled; return (A) this; } - public java.lang.Boolean hasDesiredNumberScheduled() { + public Boolean hasDesiredNumberScheduled() { return this.desiredNumberScheduled != null; } - public java.lang.Integer getNumberAvailable() { + public Integer getNumberAvailable() { return this.numberAvailable; } - public A withNumberAvailable(java.lang.Integer numberAvailable) { + public A withNumberAvailable(Integer numberAvailable) { this.numberAvailable = numberAvailable; return (A) this; } - public java.lang.Boolean hasNumberAvailable() { + public Boolean hasNumberAvailable() { return this.numberAvailable != null; } - public java.lang.Integer getNumberMisscheduled() { + public Integer getNumberMisscheduled() { return this.numberMisscheduled; } - public A withNumberMisscheduled(java.lang.Integer numberMisscheduled) { + public A withNumberMisscheduled(Integer numberMisscheduled) { this.numberMisscheduled = numberMisscheduled; return (A) this; } - public java.lang.Boolean hasNumberMisscheduled() { + public Boolean hasNumberMisscheduled() { return this.numberMisscheduled != null; } - public java.lang.Integer getNumberReady() { + public Integer getNumberReady() { return this.numberReady; } - public A withNumberReady(java.lang.Integer numberReady) { + public A withNumberReady(Integer numberReady) { this.numberReady = numberReady; return (A) this; } - public java.lang.Boolean hasNumberReady() { + public Boolean hasNumberReady() { return this.numberReady != null; } - public java.lang.Integer getNumberUnavailable() { + public Integer getNumberUnavailable() { return this.numberUnavailable; } - public A withNumberUnavailable(java.lang.Integer numberUnavailable) { + public A withNumberUnavailable(Integer numberUnavailable) { this.numberUnavailable = numberUnavailable; return (A) this; } - public java.lang.Boolean hasNumberUnavailable() { + public Boolean hasNumberUnavailable() { return this.numberUnavailable != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.Integer getUpdatedNumberScheduled() { + public Integer getUpdatedNumberScheduled() { return this.updatedNumberScheduled; } - public A withUpdatedNumberScheduled(java.lang.Integer updatedNumberScheduled) { + public A withUpdatedNumberScheduled(Integer updatedNumberScheduled) { this.updatedNumberScheduled = updatedNumberScheduled; return (A) this; } - public java.lang.Boolean hasUpdatedNumberScheduled() { + public Boolean hasUpdatedNumberScheduled() { return this.updatedNumberScheduled != null; } @@ -519,21 +486,19 @@ public String toString() { class ConditionsNestedImpl extends V1DaemonSetConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1DaemonSetStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DaemonSetCondition item) { + implements V1DaemonSetStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1DaemonSetCondition item) { this.index = index; this.builder = new V1DaemonSetConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder(this); + this.builder = new V1DaemonSetConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1DaemonSetConditionBuilder builder; - java.lang.Integer index; + V1DaemonSetConditionBuilder builder; + Integer index; public N and() { return (N) V1DaemonSetStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java index 7b7ee1e397..d754141121 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java @@ -16,9 +16,7 @@ public class V1DaemonSetUpdateStrategyBuilder extends V1DaemonSetUpdateStrategyFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy, - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyBuilder> { + implements VisitableBuilder { public V1DaemonSetUpdateStrategyBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluen } public V1DaemonSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent fluent, - java.lang.Boolean validationEnabled) { + V1DaemonSetUpdateStrategyFluent fluent, Boolean validationEnabled) { this(fluent, new V1DaemonSetUpdateStrategy(), validationEnabled); } public V1DaemonSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy instance) { + V1DaemonSetUpdateStrategyFluent fluent, V1DaemonSetUpdateStrategy instance) { this(fluent, instance, false); } public V1DaemonSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetUpdateStrategyFluent fluent, + V1DaemonSetUpdateStrategy instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withRollingUpdate(instance.getRollingUpdate()); @@ -55,14 +51,12 @@ public V1DaemonSetUpdateStrategyBuilder( this.validationEnabled = validationEnabled; } - public V1DaemonSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy instance) { + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategy instance) { this(instance, false); } public V1DaemonSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy instance, - java.lang.Boolean validationEnabled) { + V1DaemonSetUpdateStrategy instance, Boolean validationEnabled) { this.fluent = this; this.withRollingUpdate(instance.getRollingUpdate()); @@ -71,10 +65,10 @@ public V1DaemonSetUpdateStrategyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent fluent; - java.lang.Boolean validationEnabled; + V1DaemonSetUpdateStrategyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy build() { + public V1DaemonSetUpdateStrategy build() { V1DaemonSetUpdateStrategy buildable = new V1DaemonSetUpdateStrategy(); buildable.setRollingUpdate(fluent.getRollingUpdate()); buildable.setType(fluent.getType()); 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 81692fd0b3..1b100b1873 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 @@ -27,32 +27,29 @@ public interface V1DaemonSetUpdateStrategyFluent withNewRollingUpdate(); - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - withNewRollingUpdateLike(io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet item); + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( + V1RollingUpdateDaemonSet item); - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - editRollingUpdate(); + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate(); - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - editOrNewRollingUpdate(); + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate(); - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - editOrNewRollingUpdateLike(io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet item); + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( + V1RollingUpdateDaemonSet item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface RollingUpdateNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java index f377286943..0360741b34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluentImpl.java @@ -21,8 +21,7 @@ public class V1DaemonSetUpdateStrategyFluentImpl implements V1DaemonSetUpdateStrategyFluent { public V1DaemonSetUpdateStrategyFluentImpl() {} - public V1DaemonSetUpdateStrategyFluentImpl( - io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategy instance) { + public V1DaemonSetUpdateStrategyFluentImpl(V1DaemonSetUpdateStrategy instance) { this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); @@ -37,20 +36,22 @@ public V1DaemonSetUpdateStrategyFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet getRollingUpdate() { + public V1RollingUpdateDaemonSet getRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet buildRollingUpdate() { + public V1RollingUpdateDaemonSet buildRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public A withRollingUpdate( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet rollingUpdate) { + public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { _visitables.get("rollingUpdate").remove(this.rollingUpdate); if (rollingUpdate != null) { this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); _visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + _visitables.get("rollingUpdate").remove(this.rollingUpdate); } return (A) this; } @@ -63,40 +64,37 @@ public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpda return new V1DaemonSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - withNewRollingUpdateLike(io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet item) { + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( + V1RollingUpdateDaemonSet item) { return new V1DaemonSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - editRollingUpdate() { + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate() { return withNewRollingUpdateLike(getRollingUpdate()); } - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - editOrNewRollingUpdate() { + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate() { return withNewRollingUpdateLike( getRollingUpdate() != null ? getRollingUpdate() - : new io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetBuilder().build()); + : new V1RollingUpdateDaemonSetBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent.RollingUpdateNested - editOrNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet item) { + public V1DaemonSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( + V1RollingUpdateDaemonSet item) { return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -115,7 +113,7 @@ public int hashCode() { return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (rollingUpdate != null) { @@ -133,19 +131,16 @@ public java.lang.String toString() { class RollingUpdateNestedImpl extends V1RollingUpdateDaemonSetFluentImpl< V1DaemonSetUpdateStrategyFluent.RollingUpdateNested> - implements io.kubernetes.client.openapi.models.V1DaemonSetUpdateStrategyFluent - .RollingUpdateNested< - N>, - Nested { + implements V1DaemonSetUpdateStrategyFluent.RollingUpdateNested, Nested { RollingUpdateNestedImpl(V1RollingUpdateDaemonSet item) { this.builder = new V1RollingUpdateDaemonSetBuilder(this, item); } RollingUpdateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetBuilder(this); + this.builder = new V1RollingUpdateDaemonSetBuilder(this); } - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetBuilder builder; + V1RollingUpdateDaemonSetBuilder builder; public N and() { return (N) V1DaemonSetUpdateStrategyFluentImpl.this.withRollingUpdate(builder.build()); 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 aa6c6a0b65..f0297a4895 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DeleteOptions, - io.kubernetes.client.openapi.models.V1DeleteOptionsBuilder> { + implements VisitableBuilder { public V1DeleteOptionsBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent) { this(fluent, false); } - public V1DeleteOptionsBuilder( - io.kubernetes.client.openapi.models.V1DeleteOptionsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent, Boolean validationEnabled) { this(fluent, new V1DeleteOptions(), validationEnabled); } - public V1DeleteOptionsBuilder( - io.kubernetes.client.openapi.models.V1DeleteOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1DeleteOptions instance) { + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent, V1DeleteOptions instance) { this(fluent, instance, false); } public V1DeleteOptionsBuilder( - io.kubernetes.client.openapi.models.V1DeleteOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1DeleteOptions instance, - java.lang.Boolean validationEnabled) { + V1DeleteOptionsFluent fluent, V1DeleteOptions instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -64,13 +56,11 @@ public V1DeleteOptionsBuilder( this.validationEnabled = validationEnabled; } - public V1DeleteOptionsBuilder(io.kubernetes.client.openapi.models.V1DeleteOptions instance) { + public V1DeleteOptionsBuilder(V1DeleteOptions instance) { this(instance, false); } - public V1DeleteOptionsBuilder( - io.kubernetes.client.openapi.models.V1DeleteOptions instance, - java.lang.Boolean validationEnabled) { + public V1DeleteOptionsBuilder(V1DeleteOptions instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -89,10 +79,10 @@ public V1DeleteOptionsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeleteOptionsFluent fluent; - java.lang.Boolean validationEnabled; + V1DeleteOptionsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DeleteOptions build() { + public V1DeleteOptions build() { V1DeleteOptions buildable = new V1DeleteOptions(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setDryRun(fluent.getDryRun()); 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 d682dfb400..8dbc4fbe81 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 @@ -22,58 +22,57 @@ public interface V1DeleteOptionsFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToDryRun(Integer index, java.lang.String item); + public A addToDryRun(Integer index, String item); - public A setToDryRun(java.lang.Integer index, java.lang.String item); + public A setToDryRun(Integer index, String item); public A addToDryRun(java.lang.String... items); - public A addAllToDryRun(Collection items); + public A addAllToDryRun(Collection items); public A removeFromDryRun(java.lang.String... items); - public A removeAllFromDryRun(java.util.Collection items); + public A removeAllFromDryRun(Collection items); - public List getDryRun(); + public List getDryRun(); - public java.lang.String getDryRun(java.lang.Integer index); + public String getDryRun(Integer index); - public java.lang.String getFirstDryRun(); + public String getFirstDryRun(); - public java.lang.String getLastDryRun(); + public String getLastDryRun(); - public java.lang.String getMatchingDryRun(Predicate predicate); + public String getMatchingDryRun(Predicate predicate); - public java.lang.Boolean hasMatchingDryRun( - java.util.function.Predicate predicate); + public Boolean hasMatchingDryRun(Predicate predicate); - public A withDryRun(java.util.List dryRun); + public A withDryRun(List dryRun); public A withDryRun(java.lang.String... dryRun); - public java.lang.Boolean hasDryRun(); + public Boolean hasDryRun(); public Long getGracePeriodSeconds(); - public A withGracePeriodSeconds(java.lang.Long gracePeriodSeconds); + public A withGracePeriodSeconds(Long gracePeriodSeconds); - public java.lang.Boolean hasGracePeriodSeconds(); + public Boolean hasGracePeriodSeconds(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.Boolean getOrphanDependents(); + public Boolean getOrphanDependents(); - public A withOrphanDependents(java.lang.Boolean orphanDependents); + public A withOrphanDependents(Boolean orphanDependents); - public java.lang.Boolean hasOrphanDependents(); + public Boolean hasOrphanDependents(); /** * This method has been deprecated, please use method buildPreconditions instead. @@ -83,31 +82,29 @@ public java.lang.Boolean hasMatchingDryRun( @Deprecated public V1Preconditions getPreconditions(); - public io.kubernetes.client.openapi.models.V1Preconditions buildPreconditions(); + public V1Preconditions buildPreconditions(); - public A withPreconditions(io.kubernetes.client.openapi.models.V1Preconditions preconditions); + public A withPreconditions(V1Preconditions preconditions); - public java.lang.Boolean hasPreconditions(); + public Boolean hasPreconditions(); public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditions(); - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - withNewPreconditionsLike(io.kubernetes.client.openapi.models.V1Preconditions item); + public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditionsLike( + V1Preconditions item); - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - editPreconditions(); + public V1DeleteOptionsFluent.PreconditionsNested editPreconditions(); - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - editOrNewPreconditions(); + public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditions(); - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - editOrNewPreconditionsLike(io.kubernetes.client.openapi.models.V1Preconditions item); + public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditionsLike( + V1Preconditions item); - public java.lang.String getPropagationPolicy(); + public String getPropagationPolicy(); - public A withPropagationPolicy(java.lang.String propagationPolicy); + public A withPropagationPolicy(String propagationPolicy); - public java.lang.Boolean hasPropagationPolicy(); + public Boolean hasPropagationPolicy(); public A withOrphanDependents(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java index 03293d4b79..c0dd81a8ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluentImpl.java @@ -25,7 +25,7 @@ public class V1DeleteOptionsFluentImpl> exten implements V1DeleteOptionsFluent { public V1DeleteOptionsFluentImpl() {} - public V1DeleteOptionsFluentImpl(io.kubernetes.client.openapi.models.V1DeleteOptions instance) { + public V1DeleteOptionsFluentImpl(V1DeleteOptions instance) { this.withApiVersion(instance.getApiVersion()); this.withDryRun(instance.getDryRun()); @@ -42,37 +42,37 @@ public V1DeleteOptionsFluentImpl(io.kubernetes.client.openapi.models.V1DeleteOpt } private String apiVersion; - private List dryRun; + private List dryRun; private Long gracePeriodSeconds; - private java.lang.String kind; + private String kind; private Boolean orphanDependents; private V1PreconditionsBuilder preconditions; - private java.lang.String propagationPolicy; + private String propagationPolicy; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToDryRun(Integer index, java.lang.String item) { + public A addToDryRun(Integer index, String item) { if (this.dryRun == null) { - this.dryRun = new ArrayList(); + this.dryRun = new ArrayList(); } this.dryRun.add(index, item); return (A) this; } - public A setToDryRun(java.lang.Integer index, java.lang.String item) { + public A setToDryRun(Integer index, String item) { if (this.dryRun == null) { - this.dryRun = new java.util.ArrayList(); + this.dryRun = new ArrayList(); } this.dryRun.set(index, item); return (A) this; @@ -80,26 +80,26 @@ public A setToDryRun(java.lang.Integer index, java.lang.String item) { public A addToDryRun(java.lang.String... items) { if (this.dryRun == null) { - this.dryRun = new java.util.ArrayList(); + this.dryRun = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.dryRun.add(item); } return (A) this; } - public A addAllToDryRun(Collection items) { + public A addAllToDryRun(Collection items) { if (this.dryRun == null) { - this.dryRun = new java.util.ArrayList(); + this.dryRun = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.dryRun.add(item); } return (A) this; } public A removeFromDryRun(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.dryRun != null) { this.dryRun.remove(item); } @@ -107,8 +107,8 @@ public A removeFromDryRun(java.lang.String... items) { return (A) this; } - public A removeAllFromDryRun(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromDryRun(Collection items) { + for (String item : items) { if (this.dryRun != null) { this.dryRun.remove(item); } @@ -116,24 +116,24 @@ public A removeAllFromDryRun(java.util.Collection items) { return (A) this; } - public java.util.List getDryRun() { + public List getDryRun() { return this.dryRun; } - public java.lang.String getDryRun(java.lang.Integer index) { + public String getDryRun(Integer index) { return this.dryRun.get(index); } - public java.lang.String getFirstDryRun() { + public String getFirstDryRun() { return this.dryRun.get(0); } - public java.lang.String getLastDryRun() { + public String getLastDryRun() { return this.dryRun.get(dryRun.size() - 1); } - public java.lang.String getMatchingDryRun(Predicate predicate) { - for (java.lang.String item : dryRun) { + public String getMatchingDryRun(Predicate predicate) { + for (String item : dryRun) { if (predicate.test(item)) { return item; } @@ -141,9 +141,8 @@ public java.lang.String getMatchingDryRun(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingDryRun( - java.util.function.Predicate predicate) { - for (java.lang.String item : dryRun) { + public Boolean hasMatchingDryRun(Predicate predicate) { + for (String item : dryRun) { if (predicate.test(item)) { return true; } @@ -151,10 +150,10 @@ public java.lang.Boolean hasMatchingDryRun( return false; } - public A withDryRun(java.util.List dryRun) { + public A withDryRun(List dryRun) { if (dryRun != null) { - this.dryRun = new java.util.ArrayList(); - for (java.lang.String item : dryRun) { + this.dryRun = new ArrayList(); + for (String item : dryRun) { this.addToDryRun(item); } } else { @@ -168,53 +167,53 @@ public A withDryRun(java.lang.String... dryRun) { this.dryRun.clear(); } if (dryRun != null) { - for (java.lang.String item : dryRun) { + for (String item : dryRun) { this.addToDryRun(item); } } return (A) this; } - public java.lang.Boolean hasDryRun() { + public Boolean hasDryRun() { return dryRun != null && !dryRun.isEmpty(); } - public java.lang.Long getGracePeriodSeconds() { + public Long getGracePeriodSeconds() { return this.gracePeriodSeconds; } - public A withGracePeriodSeconds(java.lang.Long gracePeriodSeconds) { + public A withGracePeriodSeconds(Long gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return (A) this; } - public java.lang.Boolean hasGracePeriodSeconds() { + public Boolean hasGracePeriodSeconds() { return this.gracePeriodSeconds != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.Boolean getOrphanDependents() { + public Boolean getOrphanDependents() { return this.orphanDependents; } - public A withOrphanDependents(java.lang.Boolean orphanDependents) { + public A withOrphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; return (A) this; } - public java.lang.Boolean hasOrphanDependents() { + public Boolean hasOrphanDependents() { return this.orphanDependents != null; } @@ -228,21 +227,23 @@ public V1Preconditions getPreconditions() { return this.preconditions != null ? this.preconditions.build() : null; } - public io.kubernetes.client.openapi.models.V1Preconditions buildPreconditions() { + public V1Preconditions buildPreconditions() { return this.preconditions != null ? this.preconditions.build() : null; } - public A withPreconditions(io.kubernetes.client.openapi.models.V1Preconditions preconditions) { + public A withPreconditions(V1Preconditions preconditions) { _visitables.get("preconditions").remove(this.preconditions); if (preconditions != null) { - this.preconditions = - new io.kubernetes.client.openapi.models.V1PreconditionsBuilder(preconditions); + this.preconditions = new V1PreconditionsBuilder(preconditions); _visitables.get("preconditions").add(this.preconditions); + } else { + this.preconditions = null; + _visitables.get("preconditions").remove(this.preconditions); } return (A) this; } - public java.lang.Boolean hasPreconditions() { + public Boolean hasPreconditions() { return this.preconditions != null; } @@ -250,39 +251,35 @@ public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditions() { return new V1DeleteOptionsFluentImpl.PreconditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - withNewPreconditionsLike(io.kubernetes.client.openapi.models.V1Preconditions item) { + public V1DeleteOptionsFluent.PreconditionsNested withNewPreconditionsLike( + V1Preconditions item) { return new V1DeleteOptionsFluentImpl.PreconditionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - editPreconditions() { + public V1DeleteOptionsFluent.PreconditionsNested editPreconditions() { return withNewPreconditionsLike(getPreconditions()); } - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - editOrNewPreconditions() { + public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditions() { return withNewPreconditionsLike( - getPreconditions() != null - ? getPreconditions() - : new io.kubernetes.client.openapi.models.V1PreconditionsBuilder().build()); + getPreconditions() != null ? getPreconditions() : new V1PreconditionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested - editOrNewPreconditionsLike(io.kubernetes.client.openapi.models.V1Preconditions item) { + public V1DeleteOptionsFluent.PreconditionsNested editOrNewPreconditionsLike( + V1Preconditions item) { return withNewPreconditionsLike(getPreconditions() != null ? getPreconditions() : item); } - public java.lang.String getPropagationPolicy() { + public String getPropagationPolicy() { return this.propagationPolicy; } - public A withPropagationPolicy(java.lang.String propagationPolicy) { + public A withPropagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return (A) this; } - public java.lang.Boolean hasPropagationPolicy() { + public Boolean hasPropagationPolicy() { return this.propagationPolicy != null; } @@ -321,7 +318,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -362,17 +359,16 @@ public A withOrphanDependents() { class PreconditionsNestedImpl extends V1PreconditionsFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeleteOptionsFluent.PreconditionsNested, - Nested { - PreconditionsNestedImpl(io.kubernetes.client.openapi.models.V1Preconditions item) { + implements V1DeleteOptionsFluent.PreconditionsNested, Nested { + PreconditionsNestedImpl(V1Preconditions item) { this.builder = new V1PreconditionsBuilder(this, item); } PreconditionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PreconditionsBuilder(this); + this.builder = new V1PreconditionsBuilder(this); } - io.kubernetes.client.openapi.models.V1PreconditionsBuilder builder; + V1PreconditionsBuilder builder; public N and() { return (N) V1DeleteOptionsFluentImpl.this.withPreconditions(builder.build()); 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 4293ec7e58..329d8f8e86 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DeploymentBuilder extends V1DeploymentFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Deployment, - io.kubernetes.client.openapi.models.V1DeploymentBuilder> { + implements VisitableBuilder { public V1DeploymentBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1DeploymentBuilder(V1DeploymentFluent fluent) { this(fluent, false); } - public V1DeploymentBuilder( - io.kubernetes.client.openapi.models.V1DeploymentFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DeploymentBuilder(V1DeploymentFluent fluent, Boolean validationEnabled) { this(fluent, new V1Deployment(), validationEnabled); } - public V1DeploymentBuilder( - io.kubernetes.client.openapi.models.V1DeploymentFluent fluent, - io.kubernetes.client.openapi.models.V1Deployment instance) { + public V1DeploymentBuilder(V1DeploymentFluent fluent, V1Deployment instance) { this(fluent, instance, false); } public V1DeploymentBuilder( - io.kubernetes.client.openapi.models.V1DeploymentFluent fluent, - io.kubernetes.client.openapi.models.V1Deployment instance, - java.lang.Boolean validationEnabled) { + V1DeploymentFluent fluent, V1Deployment instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1DeploymentBuilder( this.validationEnabled = validationEnabled; } - public V1DeploymentBuilder(io.kubernetes.client.openapi.models.V1Deployment instance) { + public V1DeploymentBuilder(V1Deployment instance) { this(instance, false); } - public V1DeploymentBuilder( - io.kubernetes.client.openapi.models.V1Deployment instance, - java.lang.Boolean validationEnabled) { + public V1DeploymentBuilder(V1Deployment instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1DeploymentBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeploymentFluent fluent; - java.lang.Boolean validationEnabled; + V1DeploymentFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Deployment build() { + public V1Deployment build() { V1Deployment buildable = new V1Deployment(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 e111cca16d..8c73153c33 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 @@ -16,8 +16,7 @@ public class V1DeploymentConditionBuilder extends V1DeploymentConditionFluentImpl - implements VisitableBuilder< - V1DeploymentCondition, io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder> { + implements VisitableBuilder { public V1DeploymentConditionBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1DeploymentConditionBuilder(Boolean validationEnabled) { this(new V1DeploymentCondition(), validationEnabled); } - public V1DeploymentConditionBuilder( - io.kubernetes.client.openapi.models.V1DeploymentConditionFluent fluent) { + public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent) { this(fluent, false); } public V1DeploymentConditionBuilder( - io.kubernetes.client.openapi.models.V1DeploymentConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1DeploymentConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1DeploymentCondition(), validationEnabled); } public V1DeploymentConditionBuilder( - io.kubernetes.client.openapi.models.V1DeploymentConditionFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentCondition instance) { + V1DeploymentConditionFluent fluent, V1DeploymentCondition instance) { this(fluent, instance, false); } public V1DeploymentConditionBuilder( - io.kubernetes.client.openapi.models.V1DeploymentConditionFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentCondition instance, - java.lang.Boolean validationEnabled) { + V1DeploymentConditionFluent fluent, + V1DeploymentCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -63,14 +59,11 @@ public V1DeploymentConditionBuilder( this.validationEnabled = validationEnabled; } - public V1DeploymentConditionBuilder( - io.kubernetes.client.openapi.models.V1DeploymentCondition instance) { + public V1DeploymentConditionBuilder(V1DeploymentCondition instance) { this(instance, false); } - public V1DeploymentConditionBuilder( - io.kubernetes.client.openapi.models.V1DeploymentCondition instance, - java.lang.Boolean validationEnabled) { + public V1DeploymentConditionBuilder(V1DeploymentCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -87,10 +80,10 @@ public V1DeploymentConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeploymentConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1DeploymentConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DeploymentCondition build() { + public V1DeploymentCondition build() { V1DeploymentCondition buildable = new V1DeploymentCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setLastUpdateTime(fluent.getLastUpdateTime()); 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 7c2ba34c0b..b9dd027769 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 @@ -20,37 +20,37 @@ public interface V1DeploymentConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); - public java.time.OffsetDateTime getLastUpdateTime(); + public OffsetDateTime getLastUpdateTime(); - public A withLastUpdateTime(java.time.OffsetDateTime lastUpdateTime); + public A withLastUpdateTime(OffsetDateTime lastUpdateTime); - public java.lang.Boolean hasLastUpdateTime(); + public Boolean hasLastUpdateTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java index ca9192027c..b18331a295 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1DeploymentConditionFluentImpl implements V1DeploymentConditionFluent { public V1DeploymentConditionFluentImpl() {} - public V1DeploymentConditionFluentImpl( - io.kubernetes.client.openapi.models.V1DeploymentCondition instance) { + public V1DeploymentConditionFluentImpl(V1DeploymentCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withLastUpdateTime(instance.getLastUpdateTime()); @@ -37,17 +36,17 @@ public V1DeploymentConditionFluentImpl( } private OffsetDateTime lastTransitionTime; - private java.time.OffsetDateTime lastUpdateTime; + private OffsetDateTime lastUpdateTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -56,68 +55,68 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.time.OffsetDateTime getLastUpdateTime() { + public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(java.time.OffsetDateTime lastUpdateTime) { + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return (A) this; } - public java.lang.Boolean hasLastUpdateTime() { + public Boolean hasLastUpdateTime() { return this.lastUpdateTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -143,7 +142,7 @@ public int hashCode() { lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 360662398e..27f3f7851a 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 @@ -19,15 +19,15 @@ public interface V1DeploymentFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1DeploymentFluent> extends Flu @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1DeploymentFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1DeploymentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested editMetadata(); + public V1DeploymentFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested - editOrNewMetadata(); + public V1DeploymentFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1DeploymentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DeploymentSpec getSpec(); - public io.kubernetes.client.openapi.models.V1DeploymentSpec buildSpec(); + public V1DeploymentSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1DeploymentSpec spec); + public A withSpec(V1DeploymentSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1DeploymentFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1DeploymentSpec item); + public V1DeploymentFluent.SpecNested withNewSpecLike(V1DeploymentSpec item); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested editSpec(); + public V1DeploymentFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested editOrNewSpec(); + public V1DeploymentFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1DeploymentSpec item); + public V1DeploymentFluent.SpecNested editOrNewSpecLike(V1DeploymentSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DeploymentStatus getStatus(); - public io.kubernetes.client.openapi.models.V1DeploymentStatus buildStatus(); + public V1DeploymentStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1DeploymentStatus status); + public A withStatus(V1DeploymentStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1DeploymentFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1DeploymentStatus item); + public V1DeploymentFluent.StatusNested withNewStatusLike(V1DeploymentStatus item); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested editStatus(); + public V1DeploymentFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested editOrNewStatus(); + public V1DeploymentFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1DeploymentStatus item); + public V1DeploymentFluent.StatusNested editOrNewStatusLike(V1DeploymentStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1DeploymentSpecFluent> { + extends Nested, V1DeploymentSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1DeploymentStatusFluent> { + extends Nested, V1DeploymentStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java index 47aa078a3d..529bc87f37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluentImpl.java @@ -21,7 +21,7 @@ public class V1DeploymentFluentImpl> extends Bas implements V1DeploymentFluent { public V1DeploymentFluentImpl() {} - public V1DeploymentFluentImpl(io.kubernetes.client.openapi.models.V1Deployment instance) { + public V1DeploymentFluentImpl(V1Deployment instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1DeploymentFluentImpl(io.kubernetes.client.openapi.models.V1Deployment i } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1DeploymentSpecBuilder spec; private V1DeploymentStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1DeploymentFluent.MetadataNested withNewMetadata() { return new V1DeploymentFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1DeploymentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1DeploymentFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested editMetadata() { + public V1DeploymentFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested - editOrNewMetadata() { + public V1DeploymentFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1DeploymentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1DeploymentSpec getSpec() { + @Deprecated + public V1DeploymentSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1DeploymentSpec buildSpec() { + public V1DeploymentSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1DeploymentSpec spec) { + public A withSpec(V1DeploymentSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1DeploymentSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1DeploymentFluent.SpecNested withNewSpec() { return new V1DeploymentFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1DeploymentSpec item) { - return new io.kubernetes.client.openapi.models.V1DeploymentFluentImpl.SpecNestedImpl(item); + public V1DeploymentFluent.SpecNested withNewSpecLike(V1DeploymentSpec item) { + return new V1DeploymentFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested editSpec() { + public V1DeploymentFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1DeploymentSpecBuilder().build()); + public V1DeploymentFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1DeploymentSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1DeploymentSpec item) { + public V1DeploymentFluent.SpecNested editOrNewSpecLike(V1DeploymentSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested edit * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1DeploymentStatus getStatus() { + @Deprecated + public V1DeploymentStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1DeploymentStatus buildStatus() { + public V1DeploymentStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1DeploymentStatus status) { + public A withStatus(V1DeploymentStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1DeploymentStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1DeploymentFluent.StatusNested withNewStatus() { return new V1DeploymentFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1DeploymentStatus item) { - return new io.kubernetes.client.openapi.models.V1DeploymentFluentImpl.StatusNestedImpl(item); + public V1DeploymentFluent.StatusNested withNewStatusLike(V1DeploymentStatus item) { + return new V1DeploymentFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested editStatus() { + public V1DeploymentFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested editOrNewStatus() { + public V1DeploymentFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1DeploymentStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1DeploymentStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1DeploymentStatus item) { + public V1DeploymentFluent.StatusNested editOrNewStatusLike(V1DeploymentStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentFluent.MetadataNested, - Nested { + implements V1DeploymentFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1DeploymentFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1DeploymentSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1DeploymentFluent.SpecNested, Nested { SpecNestedImpl(V1DeploymentSpec item) { this.builder = new V1DeploymentSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DeploymentSpecBuilder(this); + this.builder = new V1DeploymentSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1DeploymentSpecBuilder builder; + V1DeploymentSpecBuilder builder; public N and() { return (N) V1DeploymentFluentImpl.this.withSpec(builder.build()); @@ -311,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1DeploymentStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1DeploymentFluent.StatusNested, Nested { StatusNestedImpl(V1DeploymentStatus item) { this.builder = new V1DeploymentStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DeploymentStatusBuilder(this); + this.builder = new V1DeploymentStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1DeploymentStatusBuilder builder; + V1DeploymentStatusBuilder builder; public N and() { return (N) V1DeploymentFluentImpl.this.withStatus(builder.build()); 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 ed35c76a4a..f5a638af14 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DeploymentListBuilder extends V1DeploymentListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DeploymentList, - io.kubernetes.client.openapi.models.V1DeploymentListBuilder> { + implements VisitableBuilder { public V1DeploymentListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1DeploymentListBuilder(V1DeploymentListFluent fluent) { this(fluent, false); } - public V1DeploymentListBuilder( - io.kubernetes.client.openapi.models.V1DeploymentListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DeploymentListBuilder(V1DeploymentListFluent fluent, Boolean validationEnabled) { this(fluent, new V1DeploymentList(), validationEnabled); } - public V1DeploymentListBuilder( - io.kubernetes.client.openapi.models.V1DeploymentListFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentList instance) { + public V1DeploymentListBuilder(V1DeploymentListFluent fluent, V1DeploymentList instance) { this(fluent, instance, false); } public V1DeploymentListBuilder( - io.kubernetes.client.openapi.models.V1DeploymentListFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentList instance, - java.lang.Boolean validationEnabled) { + V1DeploymentListFluent fluent, V1DeploymentList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1DeploymentListBuilder( this.validationEnabled = validationEnabled; } - public V1DeploymentListBuilder(io.kubernetes.client.openapi.models.V1DeploymentList instance) { + public V1DeploymentListBuilder(V1DeploymentList instance) { this(instance, false); } - public V1DeploymentListBuilder( - io.kubernetes.client.openapi.models.V1DeploymentList instance, - java.lang.Boolean validationEnabled) { + public V1DeploymentListBuilder(V1DeploymentList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1DeploymentListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeploymentListFluent fluent; - java.lang.Boolean validationEnabled; + V1DeploymentListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DeploymentList build() { + public V1DeploymentList build() { V1DeploymentList buildable = new V1DeploymentList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 6e95226881..2a61cd739f 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 @@ -22,23 +22,21 @@ public interface V1DeploymentListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Deployment item); + public A addToItems(Integer index, V1Deployment item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Deployment item); + public A setToItems(Integer index, V1Deployment item); public A addToItems(io.kubernetes.client.openapi.models.V1Deployment... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Deployment... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,82 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Deployment buildItem(java.lang.Integer index); + public V1Deployment buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Deployment buildFirstItem(); + public V1Deployment buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Deployment buildLastItem(); + public V1Deployment buildLastItem(); - public io.kubernetes.client.openapi.models.V1Deployment buildMatchingItem( - java.util.function.Predicate - predicate); + public V1Deployment buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1DeploymentListFluent.ItemsNested addNewItem(); - public V1DeploymentListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Deployment item); + public V1DeploymentListFluent.ItemsNested addNewItemLike(V1Deployment item); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Deployment item); + public V1DeploymentListFluent.ItemsNested setNewItemLike(Integer index, V1Deployment item); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1DeploymentListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editFirstItem(); + public V1DeploymentListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editLastItem(); + public V1DeploymentListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1DeploymentListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1DeploymentListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1DeploymentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - editMetadata(); + public V1DeploymentListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - editOrNewMetadata(); + public V1DeploymentListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1DeploymentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1DeploymentFluent> { @@ -133,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java index 9f5461e96b..15bf6e6424 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluentImpl.java @@ -38,14 +38,14 @@ public V1DeploymentListFluentImpl(V1DeploymentList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Deployment item) { + public A addToItems(Integer index, V1Deployment item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentBuilder(item); + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Deployment item) { + public A setToItems(Integer index, V1Deployment item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentBuilder(item); + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1Deployment... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Deployment item : items) { - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Deployment item : items) { - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentBuilder(item); + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1Deployment item : items) { - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder = each.next(); + V1DeploymentBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Deployment buildItem(java.lang.Integer index) { + public V1Deployment buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Deployment buildFirstItem() { + public V1Deployment buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Deployment buildLastItem() { + public V1Deployment buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Deployment buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DeploymentBuilder item : items) { + public V1Deployment buildMatchingItem(Predicate predicate) { + for (V1DeploymentBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1Deployment buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DeploymentBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1DeploymentBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Deployment item : items) { + this.items = new ArrayList(); + for (V1Deployment item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Deployment item : items) { + for (V1Deployment item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1DeploymentListFluent.ItemsNested addNewItem() { return new V1DeploymentListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Deployment item) { + public V1DeploymentListFluent.ItemsNested addNewItemLike(V1Deployment item) { return new V1DeploymentListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Deployment item) { - return new io.kubernetes.client.openapi.models.V1DeploymentListFluentImpl.ItemsNestedImpl( - index, item); + public V1DeploymentListFluent.ItemsNested setNewItemLike(Integer index, V1Deployment item) { + return new V1DeploymentListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1DeploymentListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editFirstItem() { + public V1DeploymentListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editLastItem() { + public V1DeploymentListFluent.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 io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1DeploymentListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1DeploymentListFluent.MetadataNested withNewMetadata() { return new V1DeploymentListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1DeploymentListFluentImpl.MetadataNestedImpl( - item); + public V1DeploymentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1DeploymentListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - editMetadata() { + public V1DeploymentListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - editOrNewMetadata() { + public V1DeploymentListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1DeploymentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,21 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1DeploymentFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Deployment item) { + implements V1DeploymentListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Deployment item) { this.index = index; this.builder = new V1DeploymentBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1DeploymentBuilder(this); + this.builder = new V1DeploymentBuilder(this); } - io.kubernetes.client.openapi.models.V1DeploymentBuilder builder; - java.lang.Integer index; + V1DeploymentBuilder builder; + Integer index; public N and() { return (N) V1DeploymentListFluentImpl.this.setToItems(index, builder.build()); @@ -414,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1DeploymentListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1DeploymentListFluentImpl.this.withMetadata(builder.build()); 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 9a426cd7e4..686e597207 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DeploymentSpec, V1DeploymentSpecBuilder> { + implements VisitableBuilder { public V1DeploymentSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent) { this(fluent, false); } - public V1DeploymentSpecBuilder( - io.kubernetes.client.openapi.models.V1DeploymentSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1DeploymentSpec(), validationEnabled); } - public V1DeploymentSpecBuilder( - io.kubernetes.client.openapi.models.V1DeploymentSpecFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentSpec instance) { + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent, V1DeploymentSpec instance) { this(fluent, instance, false); } public V1DeploymentSpecBuilder( - io.kubernetes.client.openapi.models.V1DeploymentSpecFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentSpec instance, - java.lang.Boolean validationEnabled) { + V1DeploymentSpecFluent fluent, V1DeploymentSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); @@ -65,13 +58,11 @@ public V1DeploymentSpecBuilder( this.validationEnabled = validationEnabled; } - public V1DeploymentSpecBuilder(io.kubernetes.client.openapi.models.V1DeploymentSpec instance) { + public V1DeploymentSpecBuilder(V1DeploymentSpec instance) { this(instance, false); } - public V1DeploymentSpecBuilder( - io.kubernetes.client.openapi.models.V1DeploymentSpec instance, - java.lang.Boolean validationEnabled) { + public V1DeploymentSpecBuilder(V1DeploymentSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -92,10 +83,10 @@ public V1DeploymentSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeploymentSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1DeploymentSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DeploymentSpec build() { + public V1DeploymentSpec build() { V1DeploymentSpec buildable = new V1DeploymentSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); buildable.setPaused(fluent.getPaused()); 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 7dd3f74a5b..2d8702b5cf 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 @@ -19,33 +19,33 @@ public interface V1DeploymentSpecFluent> extends Fluent { public Integer getMinReadySeconds(); - public A withMinReadySeconds(java.lang.Integer minReadySeconds); + public A withMinReadySeconds(Integer minReadySeconds); public Boolean hasMinReadySeconds(); - public java.lang.Boolean getPaused(); + public Boolean getPaused(); - public A withPaused(java.lang.Boolean paused); + public A withPaused(Boolean paused); - public java.lang.Boolean hasPaused(); + public Boolean hasPaused(); - public java.lang.Integer getProgressDeadlineSeconds(); + public Integer getProgressDeadlineSeconds(); - public A withProgressDeadlineSeconds(java.lang.Integer progressDeadlineSeconds); + public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds); - public java.lang.Boolean hasProgressDeadlineSeconds(); + public Boolean hasProgressDeadlineSeconds(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); - public java.lang.Integer getRevisionHistoryLimit(); + public Integer getRevisionHistoryLimit(); - public A withRevisionHistoryLimit(java.lang.Integer revisionHistoryLimit); + public A withRevisionHistoryLimit(Integer revisionHistoryLimit); - public java.lang.Boolean hasRevisionHistoryLimit(); + public Boolean hasRevisionHistoryLimit(); /** * This method has been deprecated, please use method buildSelector instead. @@ -55,81 +55,69 @@ public interface V1DeploymentSpecFluent> ext @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V1DeploymentSpecFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1DeploymentSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - editSelector(); + public V1DeploymentSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - editOrNewSelector(); + public V1DeploymentSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1DeploymentSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); /** * This method has been deprecated, please use method buildStrategy instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DeploymentStrategy getStrategy(); - public io.kubernetes.client.openapi.models.V1DeploymentStrategy buildStrategy(); + public V1DeploymentStrategy buildStrategy(); - public A withStrategy(io.kubernetes.client.openapi.models.V1DeploymentStrategy strategy); + public A withStrategy(V1DeploymentStrategy strategy); - public java.lang.Boolean hasStrategy(); + public Boolean hasStrategy(); public V1DeploymentSpecFluent.StrategyNested withNewStrategy(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - withNewStrategyLike(io.kubernetes.client.openapi.models.V1DeploymentStrategy item); + public V1DeploymentSpecFluent.StrategyNested withNewStrategyLike(V1DeploymentStrategy item); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - editStrategy(); + public V1DeploymentSpecFluent.StrategyNested editStrategy(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - editOrNewStrategy(); + public V1DeploymentSpecFluent.StrategyNested editOrNewStrategy(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - editOrNewStrategyLike(io.kubernetes.client.openapi.models.V1DeploymentStrategy item); + public V1DeploymentSpecFluent.StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item); /** * This method has been deprecated, please use method buildTemplate instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate(); + public V1PodTemplateSpec buildTemplate(); - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template); + public A withTemplate(V1PodTemplateSpec template); - public java.lang.Boolean hasTemplate(); + public Boolean hasTemplate(); public V1DeploymentSpecFluent.TemplateNested withNewTemplate(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1DeploymentSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - editTemplate(); + public V1DeploymentSpecFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - editOrNewTemplate(); + public V1DeploymentSpecFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1DeploymentSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); public A withPaused(); @@ -141,16 +129,14 @@ public interface SelectorNested } public interface StrategyNested - extends io.kubernetes.client.fluent.Nested, - V1DeploymentStrategyFluent> { + extends Nested, V1DeploymentStrategyFluent> { public N and(); public N endStrategy(); } public interface TemplateNested - extends io.kubernetes.client.fluent.Nested, - V1PodTemplateSpecFluent> { + extends Nested, V1PodTemplateSpecFluent> { public N and(); public N endTemplate(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java index 4b4aabc0bd..6cb542ff2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V1DeploymentSpecFluentImpl> ext implements V1DeploymentSpecFluent { public V1DeploymentSpecFluentImpl() {} - public V1DeploymentSpecFluentImpl(io.kubernetes.client.openapi.models.V1DeploymentSpec instance) { + public V1DeploymentSpecFluentImpl(V1DeploymentSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); this.withPaused(instance.getPaused()); @@ -41,75 +41,75 @@ public V1DeploymentSpecFluentImpl(io.kubernetes.client.openapi.models.V1Deployme private Integer minReadySeconds; private Boolean paused; - private java.lang.Integer progressDeadlineSeconds; - private java.lang.Integer replicas; - private java.lang.Integer revisionHistoryLimit; + private Integer progressDeadlineSeconds; + private Integer replicas; + private Integer revisionHistoryLimit; private V1LabelSelectorBuilder selector; private V1DeploymentStrategyBuilder strategy; private V1PodTemplateSpecBuilder template; - public java.lang.Integer getMinReadySeconds() { + public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(java.lang.Integer minReadySeconds) { + public A withMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return (A) this; } - public java.lang.Boolean hasMinReadySeconds() { + public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public java.lang.Boolean getPaused() { + public Boolean getPaused() { return this.paused; } - public A withPaused(java.lang.Boolean paused) { + public A withPaused(Boolean paused) { this.paused = paused; return (A) this; } - public java.lang.Boolean hasPaused() { + public Boolean hasPaused() { return this.paused != null; } - public java.lang.Integer getProgressDeadlineSeconds() { + public Integer getProgressDeadlineSeconds() { return this.progressDeadlineSeconds; } - public A withProgressDeadlineSeconds(java.lang.Integer progressDeadlineSeconds) { + public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; return (A) this; } - public java.lang.Boolean hasProgressDeadlineSeconds() { + public Boolean hasProgressDeadlineSeconds() { return this.progressDeadlineSeconds != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } - public java.lang.Integer getRevisionHistoryLimit() { + public Integer getRevisionHistoryLimit() { return this.revisionHistoryLimit; } - public A withRevisionHistoryLimit(java.lang.Integer revisionHistoryLimit) { + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return (A) this; } - public java.lang.Boolean hasRevisionHistoryLimit() { + public Boolean hasRevisionHistoryLimit() { return this.revisionHistoryLimit != null; } @@ -119,24 +119,27 @@ public java.lang.Boolean hasRevisionHistoryLimit() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -144,26 +147,20 @@ public V1DeploymentSpecFluent.SelectorNested withNewSelector() { return new V1DeploymentSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1DeploymentSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1DeploymentSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - editSelector() { + public V1DeploymentSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - editOrNewSelector() { + public V1DeploymentSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1DeploymentSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } @@ -172,25 +169,28 @@ public V1DeploymentSpecFluent.SelectorNested withNewSelector() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1DeploymentStrategy getStrategy() { + @Deprecated + public V1DeploymentStrategy getStrategy() { return this.strategy != null ? this.strategy.build() : null; } - public io.kubernetes.client.openapi.models.V1DeploymentStrategy buildStrategy() { + public V1DeploymentStrategy buildStrategy() { return this.strategy != null ? this.strategy.build() : null; } - public A withStrategy(io.kubernetes.client.openapi.models.V1DeploymentStrategy strategy) { + public A withStrategy(V1DeploymentStrategy strategy) { _visitables.get("strategy").remove(this.strategy); if (strategy != null) { this.strategy = new V1DeploymentStrategyBuilder(strategy); _visitables.get("strategy").add(this.strategy); + } else { + this.strategy = null; + _visitables.get("strategy").remove(this.strategy); } return (A) this; } - public java.lang.Boolean hasStrategy() { + public Boolean hasStrategy() { return this.strategy != null; } @@ -198,27 +198,20 @@ public V1DeploymentSpecFluent.StrategyNested withNewStrategy() { return new V1DeploymentSpecFluentImpl.StrategyNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - withNewStrategyLike(io.kubernetes.client.openapi.models.V1DeploymentStrategy item) { - return new io.kubernetes.client.openapi.models.V1DeploymentSpecFluentImpl.StrategyNestedImpl( - item); + public V1DeploymentSpecFluent.StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { + return new V1DeploymentSpecFluentImpl.StrategyNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - editStrategy() { + public V1DeploymentSpecFluent.StrategyNested editStrategy() { return withNewStrategyLike(getStrategy()); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - editOrNewStrategy() { + public V1DeploymentSpecFluent.StrategyNested editOrNewStrategy() { return withNewStrategyLike( - getStrategy() != null - ? getStrategy() - : new io.kubernetes.client.openapi.models.V1DeploymentStrategyBuilder().build()); + getStrategy() != null ? getStrategy() : new V1DeploymentStrategyBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested - editOrNewStrategyLike(io.kubernetes.client.openapi.models.V1DeploymentStrategy item) { + public V1DeploymentSpecFluent.StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item) { return withNewStrategyLike(getStrategy() != null ? getStrategy() : item); } @@ -227,25 +220,28 @@ public V1DeploymentSpecFluent.StrategyNested withNewStrategy() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PodTemplateSpec getTemplate() { + @Deprecated + public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -253,27 +249,20 @@ public V1DeploymentSpecFluent.TemplateNested withNewTemplate() { return new V1DeploymentSpecFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { - return new io.kubernetes.client.openapi.models.V1DeploymentSpecFluentImpl.TemplateNestedImpl( - item); + public V1DeploymentSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new V1DeploymentSpecFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - editTemplate() { + public V1DeploymentSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - editOrNewTemplate() { + public V1DeploymentSpecFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1DeploymentSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } @@ -356,17 +345,16 @@ public A withPaused() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.SelectorNested, - Nested { + implements V1DeploymentSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1DeploymentSpecFluentImpl.this.withSelector(builder.build()); @@ -379,17 +367,16 @@ public N endSelector() { class StrategyNestedImpl extends V1DeploymentStrategyFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.StrategyNested, - io.kubernetes.client.fluent.Nested { - StrategyNestedImpl(io.kubernetes.client.openapi.models.V1DeploymentStrategy item) { + implements V1DeploymentSpecFluent.StrategyNested, Nested { + StrategyNestedImpl(V1DeploymentStrategy item) { this.builder = new V1DeploymentStrategyBuilder(this, item); } StrategyNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DeploymentStrategyBuilder(this); + this.builder = new V1DeploymentStrategyBuilder(this); } - io.kubernetes.client.openapi.models.V1DeploymentStrategyBuilder builder; + V1DeploymentStrategyBuilder builder; public N and() { return (N) V1DeploymentSpecFluentImpl.this.withStrategy(builder.build()); @@ -402,17 +389,16 @@ public N endStrategy() { class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentSpecFluent.TemplateNested, - io.kubernetes.client.fluent.Nested { + implements V1DeploymentSpecFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1DeploymentSpecFluentImpl.this.withTemplate(builder.build()); 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 f8e057c32e..bc2c8a361d 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 @@ -16,8 +16,7 @@ public class V1DeploymentStatusBuilder extends V1DeploymentStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DeploymentStatus, V1DeploymentStatusBuilder> { + implements VisitableBuilder { public V1DeploymentStatusBuilder() { this(false); } @@ -30,22 +29,17 @@ public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent) { this(fluent, false); } - public V1DeploymentStatusBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1DeploymentStatus(), validationEnabled); } public V1DeploymentStatusBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStatusFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentStatus instance) { + V1DeploymentStatusFluent fluent, V1DeploymentStatus instance) { this(fluent, instance, false); } public V1DeploymentStatusBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStatusFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentStatus instance, - java.lang.Boolean validationEnabled) { + V1DeploymentStatusFluent fluent, V1DeploymentStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); @@ -66,14 +60,11 @@ public V1DeploymentStatusBuilder( this.validationEnabled = validationEnabled; } - public V1DeploymentStatusBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStatus instance) { + public V1DeploymentStatusBuilder(V1DeploymentStatus instance) { this(instance, false); } - public V1DeploymentStatusBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStatus instance, - java.lang.Boolean validationEnabled) { + public V1DeploymentStatusBuilder(V1DeploymentStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -94,10 +85,10 @@ public V1DeploymentStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeploymentStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1DeploymentStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DeploymentStatus build() { + public V1DeploymentStatus build() { V1DeploymentStatus buildable = new V1DeploymentStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); buildable.setCollisionCount(fluent.getCollisionCount()); 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 600e0e8ed2..b8da6f457c 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 @@ -22,30 +22,27 @@ public interface V1DeploymentStatusFluent> extends Fluent { public Integer getAvailableReplicas(); - public A withAvailableReplicas(java.lang.Integer availableReplicas); + public A withAvailableReplicas(Integer availableReplicas); public Boolean hasAvailableReplicas(); - public java.lang.Integer getCollisionCount(); + public Integer getCollisionCount(); - public A withCollisionCount(java.lang.Integer collisionCount); + public A withCollisionCount(Integer collisionCount); - public java.lang.Boolean hasCollisionCount(); + public Boolean hasCollisionCount(); - public A addToConditions(java.lang.Integer index, V1DeploymentCondition item); + public A addToConditions(Integer index, V1DeploymentCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DeploymentCondition item); + public A setToConditions(Integer index, V1DeploymentCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -55,86 +52,73 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildCondition( - java.lang.Integer index); + public V1DeploymentCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildFirstCondition(); + public V1DeploymentCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildLastCondition(); + public V1DeploymentCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1DeploymentCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1DeploymentStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1DeploymentCondition item); + public V1DeploymentStatusFluent.ConditionsNested addNewConditionLike( + V1DeploymentCondition item); - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DeploymentCondition item); + public V1DeploymentStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1DeploymentCondition item); - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1DeploymentStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editFirstCondition(); + public V1DeploymentStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editLastCondition(); + public V1DeploymentStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder> - predicate); + public V1DeploymentStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.Integer getReadyReplicas(); + public Integer getReadyReplicas(); - public A withReadyReplicas(java.lang.Integer readyReplicas); + public A withReadyReplicas(Integer readyReplicas); - public java.lang.Boolean hasReadyReplicas(); + public Boolean hasReadyReplicas(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); - public java.lang.Integer getUnavailableReplicas(); + public Integer getUnavailableReplicas(); - public A withUnavailableReplicas(java.lang.Integer unavailableReplicas); + public A withUnavailableReplicas(Integer unavailableReplicas); - public java.lang.Boolean hasUnavailableReplicas(); + public Boolean hasUnavailableReplicas(); - public java.lang.Integer getUpdatedReplicas(); + public Integer getUpdatedReplicas(); - public A withUpdatedReplicas(java.lang.Integer updatedReplicas); + public A withUpdatedReplicas(Integer updatedReplicas); - public java.lang.Boolean hasUpdatedReplicas(); + public Boolean hasUpdatedReplicas(); public interface ConditionsNested extends Nested, V1DeploymentConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java index 019badf46f..f11e541cea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1DeploymentStatusFluentImpl> extends BaseFluent implements V1DeploymentStatusFluent { public V1DeploymentStatusFluentImpl() {} - public V1DeploymentStatusFluentImpl( - io.kubernetes.client.openapi.models.V1DeploymentStatus instance) { + public V1DeploymentStatusFluentImpl(V1DeploymentStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); this.withCollisionCount(instance.getCollisionCount()); @@ -46,19 +45,19 @@ public V1DeploymentStatusFluentImpl( } private Integer availableReplicas; - private java.lang.Integer collisionCount; + private Integer collisionCount; private ArrayList conditions; private Long observedGeneration; - private java.lang.Integer readyReplicas; - private java.lang.Integer replicas; - private java.lang.Integer unavailableReplicas; - private java.lang.Integer updatedReplicas; + private Integer readyReplicas; + private Integer replicas; + private Integer unavailableReplicas; + private Integer updatedReplicas; - public java.lang.Integer getAvailableReplicas() { + public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(java.lang.Integer availableReplicas) { + public A withAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; return (A) this; } @@ -67,27 +66,24 @@ public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - public java.lang.Integer getCollisionCount() { + public Integer getCollisionCount() { return this.collisionCount; } - public A withCollisionCount(java.lang.Integer collisionCount) { + public A withCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; return (A) this; } - public java.lang.Boolean hasCollisionCount() { + public Boolean hasCollisionCount() { return this.collisionCount != null; } - public A addToConditions(java.lang.Integer index, V1DeploymentCondition item) { + public A addToConditions(Integer index, V1DeploymentCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(item); + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -95,15 +91,11 @@ public A addToConditions(java.lang.Integer index, V1DeploymentCondition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DeploymentCondition item) { + public A setToConditions(Integer index, V1DeploymentCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(item); + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -119,29 +111,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DeploymentCondition item : items) { - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DeploymentCondition item : items) { - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(item); + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -150,9 +135,8 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { - for (io.kubernetes.client.openapi.models.V1DeploymentCondition item : items) { - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(item); + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -161,11 +145,9 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1DeploymentCondition item : items) { - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -174,14 +156,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder = each.next(); + V1DeploymentConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -196,32 +176,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildCondition( - java.lang.Integer index) { + public V1DeploymentCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildFirstCondition() { + public V1DeploymentCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildLastCondition() { + public V1DeploymentCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1DeploymentCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder item : conditions) { + public V1DeploymentCondition buildMatchingCondition( + Predicate predicate) { + for (V1DeploymentConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -229,10 +206,8 @@ public io.kubernetes.client.openapi.models.V1DeploymentCondition buildMatchingCo return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1DeploymentConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -240,14 +215,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1DeploymentCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1DeploymentCondition item : conditions) { this.addToConditions(item); } } else { @@ -261,14 +235,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentConditio this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1DeploymentCondition item : conditions) { + for (V1DeploymentCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -276,44 +250,36 @@ public V1DeploymentStatusFluent.ConditionsNested addNewCondition() { return new V1DeploymentStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1DeploymentCondition item) { + public V1DeploymentStatusFluent.ConditionsNested addNewConditionLike( + V1DeploymentCondition item) { return new V1DeploymentStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DeploymentCondition item) { - return new io.kubernetes.client.openapi.models.V1DeploymentStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1DeploymentStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1DeploymentCondition item) { + return new V1DeploymentStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1DeploymentStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editFirstCondition() { + public V1DeploymentStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editLastCondition() { + public V1DeploymentStatusFluent.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 io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder> - predicate) { + public V1DeploymentStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -325,68 +291,68 @@ public V1DeploymentStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.Integer getReadyReplicas() { + public Integer getReadyReplicas() { return this.readyReplicas; } - public A withReadyReplicas(java.lang.Integer readyReplicas) { + public A withReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; return (A) this; } - public java.lang.Boolean hasReadyReplicas() { + public Boolean hasReadyReplicas() { return this.readyReplicas != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } - public java.lang.Integer getUnavailableReplicas() { + public Integer getUnavailableReplicas() { return this.unavailableReplicas; } - public A withUnavailableReplicas(java.lang.Integer unavailableReplicas) { + public A withUnavailableReplicas(Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; return (A) this; } - public java.lang.Boolean hasUnavailableReplicas() { + public Boolean hasUnavailableReplicas() { return this.unavailableReplicas != null; } - public java.lang.Integer getUpdatedReplicas() { + public Integer getUpdatedReplicas() { return this.updatedReplicas; } - public A withUpdatedReplicas(java.lang.Integer updatedReplicas) { + public A withUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; return (A) this; } - public java.lang.Boolean hasUpdatedReplicas() { + public Boolean hasUpdatedReplicas() { return this.updatedReplicas != null; } @@ -472,21 +438,19 @@ public String toString() { class ConditionsNestedImpl extends V1DeploymentConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DeploymentCondition item) { + implements V1DeploymentStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1DeploymentCondition item) { this.index = index; this.builder = new V1DeploymentConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder(this); + this.builder = new V1DeploymentConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1DeploymentConditionBuilder builder; - java.lang.Integer index; + V1DeploymentConditionBuilder builder; + Integer index; public N and() { return (N) V1DeploymentStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java index 484fd41001..c8ab882c26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java @@ -16,9 +16,7 @@ public class V1DeploymentStrategyBuilder extends V1DeploymentStrategyFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DeploymentStrategy, - io.kubernetes.client.openapi.models.V1DeploymentStrategyBuilder> { + implements VisitableBuilder { public V1DeploymentStrategyBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent) { } public V1DeploymentStrategyBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent fluent, - java.lang.Boolean validationEnabled) { + V1DeploymentStrategyFluent fluent, Boolean validationEnabled) { this(fluent, new V1DeploymentStrategy(), validationEnabled); } public V1DeploymentStrategyBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentStrategy instance) { + V1DeploymentStrategyFluent fluent, V1DeploymentStrategy instance) { this(fluent, instance, false); } public V1DeploymentStrategyBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1DeploymentStrategy instance, - java.lang.Boolean validationEnabled) { + V1DeploymentStrategyFluent fluent, + V1DeploymentStrategy instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withRollingUpdate(instance.getRollingUpdate()); @@ -55,14 +51,11 @@ public V1DeploymentStrategyBuilder( this.validationEnabled = validationEnabled; } - public V1DeploymentStrategyBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStrategy instance) { + public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance) { this(instance, false); } - public V1DeploymentStrategyBuilder( - io.kubernetes.client.openapi.models.V1DeploymentStrategy instance, - java.lang.Boolean validationEnabled) { + public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance, Boolean validationEnabled) { this.fluent = this; this.withRollingUpdate(instance.getRollingUpdate()); @@ -71,10 +64,10 @@ public V1DeploymentStrategyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent fluent; - java.lang.Boolean validationEnabled; + V1DeploymentStrategyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DeploymentStrategy build() { + public V1DeploymentStrategy build() { V1DeploymentStrategy buildable = new V1DeploymentStrategy(); buildable.setRollingUpdate(fluent.getRollingUpdate()); buildable.setType(fluent.getType()); 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 b28048d0b6..00c9ff959c 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 @@ -27,33 +27,29 @@ public interface V1DeploymentStrategyFluent withNewRollingUpdate(); - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - withNewRollingUpdateLike(io.kubernetes.client.openapi.models.V1RollingUpdateDeployment item); + public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( + V1RollingUpdateDeployment item); - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - editRollingUpdate(); + public V1DeploymentStrategyFluent.RollingUpdateNested editRollingUpdate(); - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - editOrNewRollingUpdate(); + public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdate(); - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - editOrNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment item); + public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( + V1RollingUpdateDeployment item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface RollingUpdateNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java index 7c734a51d8..28585662e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluentImpl.java @@ -21,8 +21,7 @@ public class V1DeploymentStrategyFluentImpl implements V1DeploymentStrategyFluent { public V1DeploymentStrategyFluentImpl() {} - public V1DeploymentStrategyFluentImpl( - io.kubernetes.client.openapi.models.V1DeploymentStrategy instance) { + public V1DeploymentStrategyFluentImpl(V1DeploymentStrategy instance) { this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); @@ -37,20 +36,22 @@ public V1DeploymentStrategyFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1RollingUpdateDeployment getRollingUpdate() { + public V1RollingUpdateDeployment getRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public io.kubernetes.client.openapi.models.V1RollingUpdateDeployment buildRollingUpdate() { + public V1RollingUpdateDeployment buildRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public A withRollingUpdate( - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment rollingUpdate) { + public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { _visitables.get("rollingUpdate").remove(this.rollingUpdate); if (rollingUpdate != null) { this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); _visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + _visitables.get("rollingUpdate").remove(this.rollingUpdate); } return (A) this; } @@ -63,40 +64,37 @@ public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdate() return new V1DeploymentStrategyFluentImpl.RollingUpdateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - withNewRollingUpdateLike(io.kubernetes.client.openapi.models.V1RollingUpdateDeployment item) { + public V1DeploymentStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( + V1RollingUpdateDeployment item) { return new V1DeploymentStrategyFluentImpl.RollingUpdateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - editRollingUpdate() { + public V1DeploymentStrategyFluent.RollingUpdateNested editRollingUpdate() { return withNewRollingUpdateLike(getRollingUpdate()); } - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - editOrNewRollingUpdate() { + public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdate() { return withNewRollingUpdateLike( getRollingUpdate() != null ? getRollingUpdate() - : new io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentBuilder().build()); + : new V1RollingUpdateDeploymentBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested - editOrNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment item) { + public V1DeploymentStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( + V1RollingUpdateDeployment item) { return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -115,7 +113,7 @@ public int hashCode() { return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (rollingUpdate != null) { @@ -132,18 +130,16 @@ public java.lang.String toString() { class RollingUpdateNestedImpl extends V1RollingUpdateDeploymentFluentImpl> - implements io.kubernetes.client.openapi.models.V1DeploymentStrategyFluent.RollingUpdateNested< - N>, - Nested { - RollingUpdateNestedImpl(io.kubernetes.client.openapi.models.V1RollingUpdateDeployment item) { + implements V1DeploymentStrategyFluent.RollingUpdateNested, Nested { + RollingUpdateNestedImpl(V1RollingUpdateDeployment item) { this.builder = new V1RollingUpdateDeploymentBuilder(this, item); } RollingUpdateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentBuilder(this); + this.builder = new V1RollingUpdateDeploymentBuilder(this); } - io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentBuilder builder; + V1RollingUpdateDeploymentBuilder builder; public N and() { return (N) V1DeploymentStrategyFluentImpl.this.withRollingUpdate(builder.build()); 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 2b1d766675..15000aca5a 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 @@ -16,9 +16,7 @@ public class V1DownwardAPIProjectionBuilder extends V1DownwardAPIProjectionFluentImpl - implements VisitableBuilder< - V1DownwardAPIProjection, - io.kubernetes.client.openapi.models.V1DownwardAPIProjectionBuilder> { + implements VisitableBuilder { public V1DownwardAPIProjectionBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent) { } public V1DownwardAPIProjectionBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent fluent, - java.lang.Boolean validationEnabled) { + V1DownwardAPIProjectionFluent fluent, Boolean validationEnabled) { this(fluent, new V1DownwardAPIProjection(), validationEnabled); } public V1DownwardAPIProjectionBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1DownwardAPIProjection instance) { + V1DownwardAPIProjectionFluent fluent, V1DownwardAPIProjection instance) { this(fluent, instance, false); } public V1DownwardAPIProjectionBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1DownwardAPIProjection instance, - java.lang.Boolean validationEnabled) { + V1DownwardAPIProjectionFluent fluent, + V1DownwardAPIProjection instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withItems(instance.getItems()); this.validationEnabled = validationEnabled; } - public V1DownwardAPIProjectionBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIProjection instance) { + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjection instance) { this(instance, false); } public V1DownwardAPIProjectionBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIProjection instance, - java.lang.Boolean validationEnabled) { + V1DownwardAPIProjection instance, Boolean validationEnabled) { this.fluent = this; this.withItems(instance.getItems()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent fluent; - java.lang.Boolean validationEnabled; + V1DownwardAPIProjectionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DownwardAPIProjection build() { + public V1DownwardAPIProjection build() { V1DownwardAPIProjection buildable = new V1DownwardAPIProjection(); buildable.setItems(fluent.getItems()); return buildable; 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 c40ea4c2cd..a5b52e47fa 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 @@ -23,18 +23,15 @@ public interface V1DownwardAPIProjectionFluent { public A addToItems(Integer index, V1DownwardAPIVolumeFile item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item); + public A setToItems(Integer index, V1DownwardAPIVolumeFile item); public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -44,58 +41,42 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildItem( - java.lang.Integer index); + public V1DownwardAPIVolumeFile buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildFirstItem(); + public V1DownwardAPIVolumeFile buildFirstItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildLastItem(); + public V1DownwardAPIVolumeFile buildLastItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate); + public V1DownwardAPIVolumeFile buildMatchingItem( + Predicate predicate); - public Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1DownwardAPIProjectionFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item); + public V1DownwardAPIProjectionFluent.ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item); + public V1DownwardAPIProjectionFluent.ItemsNested setNewItemLike( + Integer index, V1DownwardAPIVolumeFile item); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested editItem( - java.lang.Integer index); + public V1DownwardAPIProjectionFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - editFirstItem(); + public V1DownwardAPIProjectionFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - editLastItem(); + public V1DownwardAPIProjectionFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate); + public V1DownwardAPIProjectionFluent.ItemsNested editMatchingItem( + Predicate predicate); public interface ItemsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java index 522d19422e..2b45f9bf4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluentImpl.java @@ -26,34 +26,27 @@ public class V1DownwardAPIProjectionFluentImpl implements V1DownwardAPIProjectionFluent { public V1DownwardAPIProjectionFluentImpl() {} - public V1DownwardAPIProjectionFluentImpl( - io.kubernetes.client.openapi.models.V1DownwardAPIProjection instance) { + public V1DownwardAPIProjectionFluentImpl(V1DownwardAPIProjection instance) { this.withItems(instance.getItems()); } private ArrayList items; - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + public A addToItems(Integer index, V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + public A setToItems(Integer index, V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -69,29 +62,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -99,9 +85,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -110,11 +95,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolume return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -123,14 +106,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = each.next(); + V1DownwardAPIVolumeFileBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -145,32 +126,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildItem( - java.lang.Integer index) { + public V1DownwardAPIVolumeFile buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildFirstItem() { + public V1DownwardAPIVolumeFile buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildLastItem() { + public V1DownwardAPIVolumeFile buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder item : items) { + public V1DownwardAPIVolumeFile buildMatchingItem( + Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -178,11 +156,8 @@ public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildMatching return null; } - public Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { if (predicate.test(item)) { return true; } @@ -190,14 +165,13 @@ public Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { + this.items = new ArrayList(); + for (V1DownwardAPIVolumeFile item : items) { this.addToItems(item); } } else { @@ -211,14 +185,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.. this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { + for (V1DownwardAPIVolumeFile item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -226,43 +200,33 @@ public V1DownwardAPIProjectionFluent.ItemsNested addNewItem() { return new V1DownwardAPIProjectionFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + public V1DownwardAPIProjectionFluent.ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { return new V1DownwardAPIProjectionFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { - return new io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluentImpl - .ItemsNestedImpl(index, item); + public V1DownwardAPIProjectionFluent.ItemsNested setNewItemLike( + Integer index, V1DownwardAPIVolumeFile item) { + return new V1DownwardAPIProjectionFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1DownwardAPIProjectionFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - editFirstItem() { + public V1DownwardAPIProjectionFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - editLastItem() { + public V1DownwardAPIProjectionFluent.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 io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate) { + public V1DownwardAPIProjectionFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -299,21 +263,19 @@ public String toString() { class ItemsNestedImpl extends V1DownwardAPIVolumeFileFluentImpl> - implements io.kubernetes.client.openapi.models.V1DownwardAPIProjectionFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + implements V1DownwardAPIProjectionFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(this); + this.builder = new V1DownwardAPIVolumeFileBuilder(this); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder; - java.lang.Integer index; + V1DownwardAPIVolumeFileBuilder builder; + Integer index; public N and() { return (N) V1DownwardAPIProjectionFluentImpl.this.setToItems(index, builder.build()); 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 5edaaba031..15b398c8ea 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 @@ -16,9 +16,7 @@ public class V1DownwardAPIVolumeFileBuilder extends V1DownwardAPIVolumeFileFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> { + implements VisitableBuilder { public V1DownwardAPIVolumeFileBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent) { } public V1DownwardAPIVolumeFileBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent fluent, - java.lang.Boolean validationEnabled) { + V1DownwardAPIVolumeFileFluent fluent, Boolean validationEnabled) { this(fluent, new V1DownwardAPIVolumeFile(), validationEnabled); } public V1DownwardAPIVolumeFileBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent fluent, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile instance) { + V1DownwardAPIVolumeFileFluent fluent, V1DownwardAPIVolumeFile instance) { this(fluent, instance, false); } public V1DownwardAPIVolumeFileBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent fluent, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile instance, - java.lang.Boolean validationEnabled) { + V1DownwardAPIVolumeFileFluent fluent, + V1DownwardAPIVolumeFile instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFieldRef(instance.getFieldRef()); @@ -59,14 +55,12 @@ public V1DownwardAPIVolumeFileBuilder( this.validationEnabled = validationEnabled; } - public V1DownwardAPIVolumeFileBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile instance) { + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFile instance) { this(instance, false); } public V1DownwardAPIVolumeFileBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile instance, - java.lang.Boolean validationEnabled) { + V1DownwardAPIVolumeFile instance, Boolean validationEnabled) { this.fluent = this; this.withFieldRef(instance.getFieldRef()); @@ -79,10 +73,10 @@ public V1DownwardAPIVolumeFileBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent fluent; - java.lang.Boolean validationEnabled; + V1DownwardAPIVolumeFileFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile build() { + public V1DownwardAPIVolumeFile build() { V1DownwardAPIVolumeFile buildable = new V1DownwardAPIVolumeFile(); buildable.setFieldRef(fluent.getFieldRef()); buildable.setMode(fluent.getMode()); 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 18e84fd12f..360b9e37be 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 @@ -27,67 +27,61 @@ public interface V1DownwardAPIVolumeFileFluent withNewFieldRef(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - withNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item); + public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRefLike( + V1ObjectFieldSelector item); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - editFieldRef(); + public V1DownwardAPIVolumeFileFluent.FieldRefNested editFieldRef(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - editOrNewFieldRef(); + public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRef(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - editOrNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item); + public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRefLike( + V1ObjectFieldSelector item); public Integer getMode(); - public A withMode(java.lang.Integer mode); + public A withMode(Integer mode); - public java.lang.Boolean hasMode(); + public Boolean hasMode(); public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); /** * This method has been deprecated, please use method buildResourceFieldRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceFieldSelector getResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1ResourceFieldSelector buildResourceFieldRef(); + public V1ResourceFieldSelector buildResourceFieldRef(); - public A withResourceFieldRef( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector resourceFieldRef); + public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef); - public java.lang.Boolean hasResourceFieldRef(); + public Boolean hasResourceFieldRef(); public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - withNewResourceFieldRefLike(io.kubernetes.client.openapi.models.V1ResourceFieldSelector item); + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRefLike( + V1ResourceFieldSelector item); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - editResourceFieldRef(); + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - editOrNewResourceFieldRef(); + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - editOrNewResourceFieldRefLike( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector item); + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( + V1ResourceFieldSelector item); public interface FieldRefNested extends Nested, @@ -98,7 +92,7 @@ public interface FieldRefNested } public interface ResourceFieldRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceFieldSelectorFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java index 0d694f1f5a..f2a6f0206a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluentImpl.java @@ -21,8 +21,7 @@ public class V1DownwardAPIVolumeFileFluentImpl implements V1DownwardAPIVolumeFileFluent { public V1DownwardAPIVolumeFileFluentImpl() {} - public V1DownwardAPIVolumeFileFluentImpl( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile instance) { + public V1DownwardAPIVolumeFileFluentImpl(V1DownwardAPIVolumeFile instance) { this.withFieldRef(instance.getFieldRef()); this.withMode(instance.getMode()); @@ -43,19 +42,22 @@ public V1DownwardAPIVolumeFileFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectFieldSelector getFieldRef() { + public V1ObjectFieldSelector getFieldRef() { return this.fieldRef != null ? this.fieldRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectFieldSelector buildFieldRef() { + public V1ObjectFieldSelector buildFieldRef() { return this.fieldRef != null ? this.fieldRef.build() : null; } - public A withFieldRef(io.kubernetes.client.openapi.models.V1ObjectFieldSelector fieldRef) { + public A withFieldRef(V1ObjectFieldSelector fieldRef) { _visitables.get("fieldRef").remove(this.fieldRef); if (fieldRef != null) { this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); _visitables.get("fieldRef").add(this.fieldRef); + } else { + this.fieldRef = null; + _visitables.get("fieldRef").remove(this.fieldRef); } return (A) this; } @@ -68,52 +70,48 @@ public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRef() { return new V1DownwardAPIVolumeFileFluentImpl.FieldRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - withNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item) { + public V1DownwardAPIVolumeFileFluent.FieldRefNested withNewFieldRefLike( + V1ObjectFieldSelector item) { return new V1DownwardAPIVolumeFileFluentImpl.FieldRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - editFieldRef() { + public V1DownwardAPIVolumeFileFluent.FieldRefNested editFieldRef() { return withNewFieldRefLike(getFieldRef()); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - editOrNewFieldRef() { + public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRef() { return withNewFieldRefLike( - getFieldRef() != null - ? getFieldRef() - : new io.kubernetes.client.openapi.models.V1ObjectFieldSelectorBuilder().build()); + getFieldRef() != null ? getFieldRef() : new V1ObjectFieldSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested - editOrNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item) { + public V1DownwardAPIVolumeFileFluent.FieldRefNested editOrNewFieldRefLike( + V1ObjectFieldSelector item) { return withNewFieldRefLike(getFieldRef() != null ? getFieldRef() : item); } - public java.lang.Integer getMode() { + public Integer getMode() { return this.mode; } - public A withMode(java.lang.Integer mode) { + public A withMode(Integer mode) { this.mode = mode; return (A) this; } - public java.lang.Boolean hasMode() { + public Boolean hasMode() { return this.mode != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } @@ -122,26 +120,28 @@ public java.lang.Boolean hasPath() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ResourceFieldSelector getResourceFieldRef() { + @Deprecated + public V1ResourceFieldSelector getResourceFieldRef() { return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceFieldSelector buildResourceFieldRef() { + public V1ResourceFieldSelector buildResourceFieldRef() { return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; } - public A withResourceFieldRef( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector resourceFieldRef) { + public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); if (resourceFieldRef != null) { this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); _visitables.get("resourceFieldRef").add(this.resourceFieldRef); + } else { + this.resourceFieldRef = null; + _visitables.get("resourceFieldRef").remove(this.resourceFieldRef); } return (A) this; } - public java.lang.Boolean hasResourceFieldRef() { + public Boolean hasResourceFieldRef() { return this.resourceFieldRef != null; } @@ -149,29 +149,24 @@ public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFi return new V1DownwardAPIVolumeFileFluentImpl.ResourceFieldRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - withNewResourceFieldRefLike( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector item) { - return new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluentImpl - .ResourceFieldRefNestedImpl(item); + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested withNewResourceFieldRefLike( + V1ResourceFieldSelector item) { + return new V1DownwardAPIVolumeFileFluentImpl.ResourceFieldRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - editResourceFieldRef() { + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editResourceFieldRef() { return withNewResourceFieldRefLike(getResourceFieldRef()); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - editOrNewResourceFieldRef() { + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRef() { return withNewResourceFieldRefLike( getResourceFieldRef() != null ? getResourceFieldRef() - : new io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder().build()); + : new V1ResourceFieldSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested - editOrNewResourceFieldRefLike( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector item) { + public V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( + V1ResourceFieldSelector item) { return withNewResourceFieldRefLike( getResourceFieldRef() != null ? getResourceFieldRef() : item); } @@ -193,7 +188,7 @@ public int hashCode() { return java.util.Objects.hash(fieldRef, mode, path, resourceFieldRef, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fieldRef != null) { @@ -218,18 +213,16 @@ public java.lang.String toString() { class FieldRefNestedImpl extends V1ObjectFieldSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent.FieldRefNested< - N>, - Nested { + implements V1DownwardAPIVolumeFileFluent.FieldRefNested, Nested { FieldRefNestedImpl(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } FieldRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectFieldSelectorBuilder(this); + this.builder = new V1ObjectFieldSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectFieldSelectorBuilder builder; + V1ObjectFieldSelectorBuilder builder; public N and() { return (N) V1DownwardAPIVolumeFileFluentImpl.this.withFieldRef(builder.build()); @@ -243,19 +236,16 @@ public N endFieldRef() { class ResourceFieldRefNestedImpl extends V1ResourceFieldSelectorFluentImpl< V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested> - implements io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileFluent - .ResourceFieldRefNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1DownwardAPIVolumeFileFluent.ResourceFieldRefNested, Nested { ResourceFieldRefNestedImpl(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } ResourceFieldRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder(this); + this.builder = new V1ResourceFieldSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder builder; + V1ResourceFieldSelectorBuilder builder; public N and() { return (N) V1DownwardAPIVolumeFileFluentImpl.this.withResourceFieldRef(builder.build()); 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 ba1b9951f2..109d8b9de5 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 @@ -16,9 +16,7 @@ public class V1DownwardAPIVolumeSourceBuilder extends V1DownwardAPIVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceBuilder> { + implements VisitableBuilder { public V1DownwardAPIVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluen } public V1DownwardAPIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1DownwardAPIVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1DownwardAPIVolumeSource(), validationEnabled); } public V1DownwardAPIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource instance) { + V1DownwardAPIVolumeSourceFluent fluent, V1DownwardAPIVolumeSource instance) { this(fluent, instance, false); } public V1DownwardAPIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1DownwardAPIVolumeSourceFluent fluent, + V1DownwardAPIVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); @@ -55,14 +51,12 @@ public V1DownwardAPIVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1DownwardAPIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource instance) { + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSource instance) { this(instance, false); } public V1DownwardAPIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1DownwardAPIVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); @@ -71,10 +65,10 @@ public V1DownwardAPIVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1DownwardAPIVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource build() { + public V1DownwardAPIVolumeSource build() { V1DownwardAPIVolumeSource buildable = new V1DownwardAPIVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); buildable.setItems(fluent.getItems()); 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 d57fc7b102..8634c23018 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 @@ -23,24 +23,21 @@ public interface V1DownwardAPIVolumeSourceFluent { public Integer getDefaultMode(); - public A withDefaultMode(java.lang.Integer defaultMode); + public A withDefaultMode(Integer defaultMode); public Boolean hasDefaultMode(); - public A addToItems(java.lang.Integer index, V1DownwardAPIVolumeFile item); + public A addToItems(Integer index, V1DownwardAPIVolumeFile item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item); + public A setToItems(Integer index, V1DownwardAPIVolumeFile item); public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -50,58 +47,43 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildItem( - java.lang.Integer index); + public V1DownwardAPIVolumeFile buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildFirstItem(); + public V1DownwardAPIVolumeFile buildFirstItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildLastItem(); + public V1DownwardAPIVolumeFile buildLastItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate); + public V1DownwardAPIVolumeFile buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item); + public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItemLike( + V1DownwardAPIVolumeFile item); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item); + public V1DownwardAPIVolumeSourceFluent.ItemsNested setNewItemLike( + Integer index, V1DownwardAPIVolumeFile item); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editItem(java.lang.Integer index); + public V1DownwardAPIVolumeSourceFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editFirstItem(); + public V1DownwardAPIVolumeSourceFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editLastItem(); + public V1DownwardAPIVolumeSourceFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate); + public V1DownwardAPIVolumeSourceFluent.ItemsNested editMatchingItem( + Predicate predicate); public interface ItemsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java index 41c56ce84e..4e154017ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluentImpl.java @@ -26,8 +26,7 @@ public class V1DownwardAPIVolumeSourceFluentImpl implements V1DownwardAPIVolumeSourceFluent { public V1DownwardAPIVolumeSourceFluentImpl() {} - public V1DownwardAPIVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource instance) { + public V1DownwardAPIVolumeSourceFluentImpl(V1DownwardAPIVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); @@ -36,11 +35,11 @@ public V1DownwardAPIVolumeSourceFluentImpl( private Integer defaultMode; private ArrayList items; - public java.lang.Integer getDefaultMode() { + public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(java.lang.Integer defaultMode) { + public A withDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; return (A) this; } @@ -49,27 +48,21 @@ public Boolean hasDefaultMode() { return this.defaultMode != null; } - public A addToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + public A addToItems(Integer index, V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + public A setToItems(Integer index, V1DownwardAPIVolumeFile item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -85,29 +78,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -115,9 +101,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -126,11 +111,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolume return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = - new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -139,14 +122,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder = each.next(); + V1DownwardAPIVolumeFileBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,32 +142,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildItem( - java.lang.Integer index) { + public V1DownwardAPIVolumeFile buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildFirstItem() { + public V1DownwardAPIVolumeFile buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildLastItem() { + public V1DownwardAPIVolumeFile buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder item : items) { + public V1DownwardAPIVolumeFile buildMatchingItem( + Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,11 +172,8 @@ public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile buildMatching return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { if (predicate.test(item)) { return true; } @@ -206,14 +181,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { + this.items = new ArrayList(); + for (V1DownwardAPIVolumeFile item : items) { this.addToItems(item); } } else { @@ -227,14 +201,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.. this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item : items) { + for (V1DownwardAPIVolumeFile item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -242,43 +216,34 @@ public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItem() { return new V1DownwardAPIVolumeSourceFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + public V1DownwardAPIVolumeSourceFluent.ItemsNested addNewItemLike( + V1DownwardAPIVolumeFile item) { return new V1DownwardAPIVolumeSourceFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { - return new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluentImpl - .ItemsNestedImpl(index, item); + public V1DownwardAPIVolumeSourceFluent.ItemsNested setNewItemLike( + Integer index, V1DownwardAPIVolumeFile item) { + return new V1DownwardAPIVolumeSourceFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1DownwardAPIVolumeSourceFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editFirstItem() { + public V1DownwardAPIVolumeSourceFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editLastItem() { + public V1DownwardAPIVolumeSourceFluent.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 io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder> - predicate) { + public V1DownwardAPIVolumeSourceFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -321,21 +286,19 @@ public String toString() { class ItemsNestedImpl extends V1DownwardAPIVolumeFileFluentImpl> - implements io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile item) { + implements V1DownwardAPIVolumeSourceFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder(this); + this.builder = new V1DownwardAPIVolumeFileBuilder(this); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFileBuilder builder; - java.lang.Integer index; + V1DownwardAPIVolumeFileBuilder builder; + Integer index; public N and() { return (N) V1DownwardAPIVolumeSourceFluentImpl.this.setToItems(index, builder.build()); 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 1e21a880d7..bc38787394 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 @@ -16,8 +16,7 @@ public class V1EmptyDirVolumeSourceBuilder extends V1EmptyDirVolumeSourceFluentImpl - implements VisitableBuilder< - V1EmptyDirVolumeSource, io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceBuilder> { + implements VisitableBuilder { public V1EmptyDirVolumeSourceBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1EmptyDirVolumeSourceBuilder(Boolean validationEnabled) { this(new V1EmptyDirVolumeSource(), validationEnabled); } - public V1EmptyDirVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent fluent) { + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent) { this(fluent, false); } public V1EmptyDirVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1EmptyDirVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1EmptyDirVolumeSource(), validationEnabled); } public V1EmptyDirVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance) { + V1EmptyDirVolumeSourceFluent fluent, V1EmptyDirVolumeSource instance) { this(fluent, instance, false); } public V1EmptyDirVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1EmptyDirVolumeSourceFluent fluent, + V1EmptyDirVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMedium(instance.getMedium()); @@ -55,14 +51,11 @@ public V1EmptyDirVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1EmptyDirVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance) { + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance) { this(instance, false); } - public V1EmptyDirVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withMedium(instance.getMedium()); @@ -71,10 +64,10 @@ public V1EmptyDirVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1EmptyDirVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource build() { + public V1EmptyDirVolumeSource build() { V1EmptyDirVolumeSource buildable = new V1EmptyDirVolumeSource(); buildable.setMedium(fluent.getMedium()); buildable.setSizeLimit(fluent.getSizeLimit()); 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 3b9e576253..72b44abb8c 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 @@ -20,15 +20,15 @@ public interface V1EmptyDirVolumeSourceFluent { public String getMedium(); - public A withMedium(java.lang.String medium); + public A withMedium(String medium); public Boolean hasMedium(); public Quantity getSizeLimit(); - public A withSizeLimit(io.kubernetes.client.custom.Quantity sizeLimit); + public A withSizeLimit(Quantity sizeLimit); - public java.lang.Boolean hasSizeLimit(); + public Boolean hasSizeLimit(); - public A withNewSizeLimit(java.lang.String value); + public A withNewSizeLimit(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java index 0b7f2d2e83..ff850c975a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1EmptyDirVolumeSourceFluentImpl implements V1EmptyDirVolumeSourceFluent { public V1EmptyDirVolumeSourceFluentImpl() {} - public V1EmptyDirVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource instance) { + public V1EmptyDirVolumeSourceFluentImpl(V1EmptyDirVolumeSource instance) { this.withMedium(instance.getMedium()); this.withSizeLimit(instance.getSizeLimit()); @@ -31,11 +30,11 @@ public V1EmptyDirVolumeSourceFluentImpl( private String medium; private Quantity sizeLimit; - public java.lang.String getMedium() { + public String getMedium() { return this.medium; } - public A withMedium(java.lang.String medium) { + public A withMedium(String medium) { this.medium = medium; return (A) this; } @@ -44,20 +43,20 @@ public Boolean hasMedium() { return this.medium != null; } - public io.kubernetes.client.custom.Quantity getSizeLimit() { + public Quantity getSizeLimit() { return this.sizeLimit; } - public A withSizeLimit(io.kubernetes.client.custom.Quantity sizeLimit) { + public A withSizeLimit(Quantity sizeLimit) { this.sizeLimit = sizeLimit; return (A) this; } - public java.lang.Boolean hasSizeLimit() { + public Boolean hasSizeLimit() { return this.sizeLimit != null; } - public A withNewSizeLimit(java.lang.String value) { + public A withNewSizeLimit(String value) { return (A) withSizeLimit(new Quantity(value)); } @@ -75,7 +74,7 @@ public int hashCode() { return java.util.Objects.hash(medium, sizeLimit, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (medium != null) { 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 ad48793efb..38b607961f 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointAddressBuilder extends V1EndpointAddressFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EndpointAddress, V1EndpointAddressBuilder> { + implements VisitableBuilder { public V1EndpointAddressBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent) { this(fluent, false); } - public V1EndpointAddressBuilder( - io.kubernetes.client.openapi.models.V1EndpointAddressFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointAddress(), validationEnabled); } - public V1EndpointAddressBuilder( - io.kubernetes.client.openapi.models.V1EndpointAddressFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointAddress instance) { + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent, V1EndpointAddress instance) { this(fluent, instance, false); } public V1EndpointAddressBuilder( - io.kubernetes.client.openapi.models.V1EndpointAddressFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointAddress instance, - java.lang.Boolean validationEnabled) { + V1EndpointAddressFluent fluent, V1EndpointAddress instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withHostname(instance.getHostname()); @@ -57,13 +50,11 @@ public V1EndpointAddressBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointAddressBuilder(io.kubernetes.client.openapi.models.V1EndpointAddress instance) { + public V1EndpointAddressBuilder(V1EndpointAddress instance) { this(instance, false); } - public V1EndpointAddressBuilder( - io.kubernetes.client.openapi.models.V1EndpointAddress instance, - java.lang.Boolean validationEnabled) { + public V1EndpointAddressBuilder(V1EndpointAddress instance, Boolean validationEnabled) { this.fluent = this; this.withHostname(instance.getHostname()); @@ -76,10 +67,10 @@ public V1EndpointAddressBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointAddressFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointAddressFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointAddress build() { + public V1EndpointAddress build() { V1EndpointAddress buildable = new V1EndpointAddress(); buildable.setHostname(fluent.getHostname()); buildable.setIp(fluent.getIp()); 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 deed109d0f..8e97dd8551 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 @@ -19,21 +19,21 @@ public interface V1EndpointAddressFluent> extends Fluent { public String getHostname(); - public A withHostname(java.lang.String hostname); + public A withHostname(String hostname); public Boolean hasHostname(); - public java.lang.String getIp(); + public String getIp(); - public A withIp(java.lang.String ip); + public A withIp(String ip); - public java.lang.Boolean hasIp(); + public Boolean hasIp(); - public java.lang.String getNodeName(); + public String getNodeName(); - public A withNodeName(java.lang.String nodeName); + public A withNodeName(String nodeName); - public java.lang.Boolean hasNodeName(); + public Boolean hasNodeName(); /** * This method has been deprecated, please use method buildTargetRef instead. @@ -43,25 +43,21 @@ public interface V1EndpointAddressFluent> e @Deprecated public V1ObjectReference getTargetRef(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildTargetRef(); + public V1ObjectReference buildTargetRef(); - public A withTargetRef(io.kubernetes.client.openapi.models.V1ObjectReference targetRef); + public A withTargetRef(V1ObjectReference targetRef); - public java.lang.Boolean hasTargetRef(); + public Boolean hasTargetRef(); public V1EndpointAddressFluent.TargetRefNested withNewTargetRef(); - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - withNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1EndpointAddressFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - editTargetRef(); + public V1EndpointAddressFluent.TargetRefNested editTargetRef(); - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - editOrNewTargetRef(); + public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRef(); - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - editOrNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item); public interface TargetRefNested extends Nested, V1ObjectReferenceFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java index 67fcb7b932..104c81d161 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluentImpl.java @@ -21,8 +21,7 @@ public class V1EndpointAddressFluentImpl> e implements V1EndpointAddressFluent { public V1EndpointAddressFluentImpl() {} - public V1EndpointAddressFluentImpl( - io.kubernetes.client.openapi.models.V1EndpointAddress instance) { + public V1EndpointAddressFluentImpl(V1EndpointAddress instance) { this.withHostname(instance.getHostname()); this.withIp(instance.getIp()); @@ -33,15 +32,15 @@ public V1EndpointAddressFluentImpl( } private String hostname; - private java.lang.String ip; - private java.lang.String nodeName; + private String ip; + private String nodeName; private V1ObjectReferenceBuilder targetRef; - public java.lang.String getHostname() { + public String getHostname() { return this.hostname; } - public A withHostname(java.lang.String hostname) { + public A withHostname(String hostname) { this.hostname = hostname; return (A) this; } @@ -50,29 +49,29 @@ public Boolean hasHostname() { return this.hostname != null; } - public java.lang.String getIp() { + public String getIp() { return this.ip; } - public A withIp(java.lang.String ip) { + public A withIp(String ip) { this.ip = ip; return (A) this; } - public java.lang.Boolean hasIp() { + public Boolean hasIp() { return this.ip != null; } - public java.lang.String getNodeName() { + public String getNodeName() { return this.nodeName; } - public A withNodeName(java.lang.String nodeName) { + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; } - public java.lang.Boolean hasNodeName() { + public Boolean hasNodeName() { return this.nodeName != null; } @@ -82,24 +81,27 @@ public java.lang.Boolean hasNodeName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getTargetRef() { + public V1ObjectReference getTargetRef() { return this.targetRef != null ? this.targetRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildTargetRef() { + public V1ObjectReference buildTargetRef() { return this.targetRef != null ? this.targetRef.build() : null; } - public A withTargetRef(io.kubernetes.client.openapi.models.V1ObjectReference targetRef) { + public A withTargetRef(V1ObjectReference targetRef) { _visitables.get("targetRef").remove(this.targetRef); if (targetRef != null) { this.targetRef = new V1ObjectReferenceBuilder(targetRef); _visitables.get("targetRef").add(this.targetRef); + } else { + this.targetRef = null; + _visitables.get("targetRef").remove(this.targetRef); } return (A) this; } - public java.lang.Boolean hasTargetRef() { + public Boolean hasTargetRef() { return this.targetRef != null; } @@ -107,26 +109,20 @@ public V1EndpointAddressFluent.TargetRefNested withNewTargetRef() { return new V1EndpointAddressFluentImpl.TargetRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - withNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1EndpointAddressFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item) { return new V1EndpointAddressFluentImpl.TargetRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - editTargetRef() { + public V1EndpointAddressFluent.TargetRefNested editTargetRef() { return withNewTargetRefLike(getTargetRef()); } - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - editOrNewTargetRef() { + public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRef() { return withNewTargetRefLike( - getTargetRef() != null - ? getTargetRef() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getTargetRef() != null ? getTargetRef() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested - editOrNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1EndpointAddressFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { return withNewTargetRefLike(getTargetRef() != null ? getTargetRef() : item); } @@ -146,7 +142,7 @@ public int hashCode() { return java.util.Objects.hash(hostname, ip, nodeName, targetRef, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (hostname != null) { @@ -171,17 +167,16 @@ public java.lang.String toString() { class TargetRefNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointAddressFluent.TargetRefNested, - Nested { - TargetRefNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1EndpointAddressFluent.TargetRefNested, Nested { + TargetRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } TargetRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) V1EndpointAddressFluentImpl.this.withTargetRef(builder.build()); 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 7ca5bb912e..6a5080b1c8 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointBuilder extends V1EndpointFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1EndpointBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1EndpointBuilder(V1EndpointFluent fluent) { this(fluent, false); } - public V1EndpointBuilder( - io.kubernetes.client.openapi.models.V1EndpointFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointBuilder(V1EndpointFluent fluent, Boolean validationEnabled) { this(fluent, new V1Endpoint(), validationEnabled); } - public V1EndpointBuilder( - io.kubernetes.client.openapi.models.V1EndpointFluent fluent, - io.kubernetes.client.openapi.models.V1Endpoint instance) { + public V1EndpointBuilder(V1EndpointFluent fluent, V1Endpoint instance) { this(fluent, instance, false); } public V1EndpointBuilder( - io.kubernetes.client.openapi.models.V1EndpointFluent fluent, - io.kubernetes.client.openapi.models.V1Endpoint instance, - java.lang.Boolean validationEnabled) { + V1EndpointFluent fluent, V1Endpoint instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAddresses(instance.getAddresses()); @@ -64,13 +58,11 @@ public V1EndpointBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointBuilder(io.kubernetes.client.openapi.models.V1Endpoint instance) { + public V1EndpointBuilder(V1Endpoint instance) { this(instance, false); } - public V1EndpointBuilder( - io.kubernetes.client.openapi.models.V1Endpoint instance, - java.lang.Boolean validationEnabled) { + public V1EndpointBuilder(V1Endpoint instance, Boolean validationEnabled) { this.fluent = this; this.withAddresses(instance.getAddresses()); @@ -91,10 +83,10 @@ public V1EndpointBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Endpoint build() { + public V1Endpoint build() { V1Endpoint buildable = new V1Endpoint(); buildable.setAddresses(fluent.getAddresses()); buildable.setConditions(fluent.getConditions()); 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 6f290f8e7e..5029899ba0 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 @@ -16,8 +16,7 @@ public class V1EndpointConditionsBuilder extends V1EndpointConditionsFluentImpl - implements VisitableBuilder< - V1EndpointConditions, io.kubernetes.client.openapi.models.V1EndpointConditionsBuilder> { + implements VisitableBuilder { public V1EndpointConditionsBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent) { } public V1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1EndpointConditionsFluent fluent, - java.lang.Boolean validationEnabled) { + V1EndpointConditionsFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointConditions(), validationEnabled); } public V1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1EndpointConditionsFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointConditions instance) { + V1EndpointConditionsFluent fluent, V1EndpointConditions instance) { this(fluent, instance, false); } public V1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1EndpointConditionsFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointConditions instance, - java.lang.Boolean validationEnabled) { + V1EndpointConditionsFluent fluent, + V1EndpointConditions instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withReady(instance.getReady()); @@ -56,14 +53,11 @@ public V1EndpointConditionsBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1EndpointConditions instance) { + public V1EndpointConditionsBuilder(V1EndpointConditions instance) { this(instance, false); } - public V1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1EndpointConditions instance, - java.lang.Boolean validationEnabled) { + public V1EndpointConditionsBuilder(V1EndpointConditions instance, Boolean validationEnabled) { this.fluent = this; this.withReady(instance.getReady()); @@ -74,10 +68,10 @@ public V1EndpointConditionsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointConditionsFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointConditionsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointConditions build() { + public V1EndpointConditions build() { V1EndpointConditions buildable = new V1EndpointConditions(); buildable.setReady(fluent.getReady()); buildable.setServing(fluent.getServing()); 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 b80476947b..aca7727815 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java @@ -19,21 +19,21 @@ public interface V1EndpointConditionsFluent { public Boolean getReady(); - public A withReady(java.lang.Boolean ready); + public A withReady(Boolean ready); - public java.lang.Boolean hasReady(); + public Boolean hasReady(); - public java.lang.Boolean getServing(); + public Boolean getServing(); - public A withServing(java.lang.Boolean serving); + public A withServing(Boolean serving); - public java.lang.Boolean hasServing(); + public Boolean hasServing(); - public java.lang.Boolean getTerminating(); + public Boolean getTerminating(); - public A withTerminating(java.lang.Boolean terminating); + public A withTerminating(Boolean terminating); - public java.lang.Boolean hasTerminating(); + public Boolean hasTerminating(); public A withReady(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java index aee8047677..41c3d3d610 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluentImpl.java @@ -20,8 +20,7 @@ public class V1EndpointConditionsFluentImpl implements V1EndpointConditionsFluent { public V1EndpointConditionsFluentImpl() {} - public V1EndpointConditionsFluentImpl( - io.kubernetes.client.openapi.models.V1EndpointConditions instance) { + public V1EndpointConditionsFluentImpl(V1EndpointConditions instance) { this.withReady(instance.getReady()); this.withServing(instance.getServing()); @@ -30,45 +29,45 @@ public V1EndpointConditionsFluentImpl( } private Boolean ready; - private java.lang.Boolean serving; - private java.lang.Boolean terminating; + private Boolean serving; + private Boolean terminating; - public java.lang.Boolean getReady() { + public Boolean getReady() { return this.ready; } - public A withReady(java.lang.Boolean ready) { + public A withReady(Boolean ready) { this.ready = ready; return (A) this; } - public java.lang.Boolean hasReady() { + public Boolean hasReady() { return this.ready != null; } - public java.lang.Boolean getServing() { + public Boolean getServing() { return this.serving; } - public A withServing(java.lang.Boolean serving) { + public A withServing(Boolean serving) { this.serving = serving; return (A) this; } - public java.lang.Boolean hasServing() { + public Boolean hasServing() { return this.serving != null; } - public java.lang.Boolean getTerminating() { + public Boolean getTerminating() { return this.terminating; } - public A withTerminating(java.lang.Boolean terminating) { + public A withTerminating(Boolean terminating) { this.terminating = terminating; return (A) this; } - public java.lang.Boolean hasTerminating() { + public Boolean hasTerminating() { return this.terminating != null; } 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 ad0d933e3f..6866ca11ca 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 @@ -23,33 +23,33 @@ public interface V1EndpointFluent> extends Fluent { public A addToAddresses(Integer index, String item); - public A setToAddresses(java.lang.Integer index, java.lang.String item); + public A setToAddresses(Integer index, String item); public A addToAddresses(java.lang.String... items); - public A addAllToAddresses(Collection items); + public A addAllToAddresses(Collection items); public A removeFromAddresses(java.lang.String... items); - public A removeAllFromAddresses(java.util.Collection items); + public A removeAllFromAddresses(Collection items); - public List getAddresses(); + public List getAddresses(); - public java.lang.String getAddress(java.lang.Integer index); + public String getAddress(Integer index); - public java.lang.String getFirstAddress(); + public String getFirstAddress(); - public java.lang.String getLastAddress(); + public String getLastAddress(); - public java.lang.String getMatchingAddress(Predicate predicate); + public String getMatchingAddress(Predicate predicate); - public Boolean hasMatchingAddress(java.util.function.Predicate predicate); + public Boolean hasMatchingAddress(Predicate predicate); - public A withAddresses(java.util.List addresses); + public A withAddresses(List addresses); public A withAddresses(java.lang.String... addresses); - public java.lang.Boolean hasAddresses(); + public Boolean hasAddresses(); /** * This method has been deprecated, please use method buildConditions instead. @@ -59,110 +59,101 @@ public interface V1EndpointFluent> extends Fluent< @Deprecated public V1EndpointConditions getConditions(); - public io.kubernetes.client.openapi.models.V1EndpointConditions buildConditions(); + public V1EndpointConditions buildConditions(); - public A withConditions(io.kubernetes.client.openapi.models.V1EndpointConditions conditions); + public A withConditions(V1EndpointConditions conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1EndpointFluent.ConditionsNested withNewConditions(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested - withNewConditionsLike(io.kubernetes.client.openapi.models.V1EndpointConditions item); + public V1EndpointFluent.ConditionsNested withNewConditionsLike(V1EndpointConditions item); - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested editConditions(); + public V1EndpointFluent.ConditionsNested editConditions(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested - editOrNewConditions(); + public V1EndpointFluent.ConditionsNested editOrNewConditions(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested - editOrNewConditionsLike(io.kubernetes.client.openapi.models.V1EndpointConditions item); + public V1EndpointFluent.ConditionsNested editOrNewConditionsLike(V1EndpointConditions item); - public A addToDeprecatedTopology(java.lang.String key, java.lang.String value); + public A addToDeprecatedTopology(String key, String value); - public A addToDeprecatedTopology(Map map); + public A addToDeprecatedTopology(Map map); - public A removeFromDeprecatedTopology(java.lang.String key); + public A removeFromDeprecatedTopology(String key); - public A removeFromDeprecatedTopology(java.util.Map map); + public A removeFromDeprecatedTopology(Map map); - public java.util.Map getDeprecatedTopology(); + public Map getDeprecatedTopology(); - public A withDeprecatedTopology( - java.util.Map deprecatedTopology); + public A withDeprecatedTopology(Map deprecatedTopology); - public java.lang.Boolean hasDeprecatedTopology(); + public Boolean hasDeprecatedTopology(); /** * This method has been deprecated, please use method buildHints instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1EndpointHints getHints(); - public io.kubernetes.client.openapi.models.V1EndpointHints buildHints(); + public V1EndpointHints buildHints(); - public A withHints(io.kubernetes.client.openapi.models.V1EndpointHints hints); + public A withHints(V1EndpointHints hints); - public java.lang.Boolean hasHints(); + public Boolean hasHints(); public V1EndpointFluent.HintsNested withNewHints(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested withNewHintsLike( - io.kubernetes.client.openapi.models.V1EndpointHints item); + public V1EndpointFluent.HintsNested withNewHintsLike(V1EndpointHints item); - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested editHints(); + public V1EndpointFluent.HintsNested editHints(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested editOrNewHints(); + public V1EndpointFluent.HintsNested editOrNewHints(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested editOrNewHintsLike( - io.kubernetes.client.openapi.models.V1EndpointHints item); + public V1EndpointFluent.HintsNested editOrNewHintsLike(V1EndpointHints item); - public java.lang.String getHostname(); + public String getHostname(); - public A withHostname(java.lang.String hostname); + public A withHostname(String hostname); - public java.lang.Boolean hasHostname(); + public Boolean hasHostname(); - public java.lang.String getNodeName(); + public String getNodeName(); - public A withNodeName(java.lang.String nodeName); + public A withNodeName(String nodeName); - public java.lang.Boolean hasNodeName(); + public Boolean hasNodeName(); /** * This method has been deprecated, please use method buildTargetRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectReference getTargetRef(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildTargetRef(); + public V1ObjectReference buildTargetRef(); - public A withTargetRef(io.kubernetes.client.openapi.models.V1ObjectReference targetRef); + public A withTargetRef(V1ObjectReference targetRef); - public java.lang.Boolean hasTargetRef(); + public Boolean hasTargetRef(); public V1EndpointFluent.TargetRefNested withNewTargetRef(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested - withNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1EndpointFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested editTargetRef(); + public V1EndpointFluent.TargetRefNested editTargetRef(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested - editOrNewTargetRef(); + public V1EndpointFluent.TargetRefNested editOrNewTargetRef(); - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested - editOrNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1EndpointFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item); - public java.lang.String getZone(); + public String getZone(); - public A withZone(java.lang.String zone); + public A withZone(String zone); - public java.lang.Boolean hasZone(); + public Boolean hasZone(); public interface ConditionsNested extends Nested, V1EndpointConditionsFluent> { @@ -172,16 +163,14 @@ public interface ConditionsNested } public interface HintsNested - extends io.kubernetes.client.fluent.Nested, - V1EndpointHintsFluent> { + extends Nested, V1EndpointHintsFluent> { public N and(); public N endHints(); } public interface TargetRefNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endTargetRef(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java index d9c57aaa08..4ed916c617 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluentImpl.java @@ -27,7 +27,7 @@ public class V1EndpointFluentImpl> extends BaseFlu implements V1EndpointFluent { public V1EndpointFluentImpl() {} - public V1EndpointFluentImpl(io.kubernetes.client.openapi.models.V1Endpoint instance) { + public V1EndpointFluentImpl(V1Endpoint instance) { this.withAddresses(instance.getAddresses()); this.withConditions(instance.getConditions()); @@ -47,24 +47,24 @@ public V1EndpointFluentImpl(io.kubernetes.client.openapi.models.V1Endpoint insta private List addresses; private V1EndpointConditionsBuilder conditions; - private Map deprecatedTopology; + private Map deprecatedTopology; private V1EndpointHintsBuilder hints; - private java.lang.String hostname; - private java.lang.String nodeName; + private String hostname; + private String nodeName; private V1ObjectReferenceBuilder targetRef; - private java.lang.String zone; + private String zone; - public A addToAddresses(Integer index, java.lang.String item) { + public A addToAddresses(Integer index, String item) { if (this.addresses == null) { - this.addresses = new ArrayList(); + this.addresses = new ArrayList(); } this.addresses.add(index, item); return (A) this; } - public A setToAddresses(java.lang.Integer index, java.lang.String item) { + public A setToAddresses(Integer index, String item) { if (this.addresses == null) { - this.addresses = new java.util.ArrayList(); + this.addresses = new ArrayList(); } this.addresses.set(index, item); return (A) this; @@ -72,26 +72,26 @@ public A setToAddresses(java.lang.Integer index, java.lang.String item) { public A addToAddresses(java.lang.String... items) { if (this.addresses == null) { - this.addresses = new java.util.ArrayList(); + this.addresses = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.addresses.add(item); } return (A) this; } - public A addAllToAddresses(Collection items) { + public A addAllToAddresses(Collection items) { if (this.addresses == null) { - this.addresses = new java.util.ArrayList(); + this.addresses = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.addresses.add(item); } return (A) this; } public A removeFromAddresses(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.addresses != null) { this.addresses.remove(item); } @@ -99,8 +99,8 @@ public A removeFromAddresses(java.lang.String... items) { return (A) this; } - public A removeAllFromAddresses(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAddresses(Collection items) { + for (String item : items) { if (this.addresses != null) { this.addresses.remove(item); } @@ -108,24 +108,24 @@ public A removeAllFromAddresses(java.util.Collection items) { return (A) this; } - public java.util.List getAddresses() { + public List getAddresses() { return this.addresses; } - public java.lang.String getAddress(java.lang.Integer index) { + public String getAddress(Integer index) { return this.addresses.get(index); } - public java.lang.String getFirstAddress() { + public String getFirstAddress() { return this.addresses.get(0); } - public java.lang.String getLastAddress() { + public String getLastAddress() { return this.addresses.get(addresses.size() - 1); } - public java.lang.String getMatchingAddress(Predicate predicate) { - for (java.lang.String item : addresses) { + public String getMatchingAddress(Predicate predicate) { + for (String item : addresses) { if (predicate.test(item)) { return item; } @@ -133,8 +133,8 @@ public java.lang.String getMatchingAddress(Predicate predicate return null; } - public Boolean hasMatchingAddress(java.util.function.Predicate predicate) { - for (java.lang.String item : addresses) { + public Boolean hasMatchingAddress(Predicate predicate) { + for (String item : addresses) { if (predicate.test(item)) { return true; } @@ -142,10 +142,10 @@ public Boolean hasMatchingAddress(java.util.function.Predicate return false; } - public A withAddresses(java.util.List addresses) { + public A withAddresses(List addresses) { if (addresses != null) { - this.addresses = new java.util.ArrayList(); - for (java.lang.String item : addresses) { + this.addresses = new ArrayList(); + for (String item : addresses) { this.addToAddresses(item); } } else { @@ -159,14 +159,14 @@ public A withAddresses(java.lang.String... addresses) { this.addresses.clear(); } if (addresses != null) { - for (java.lang.String item : addresses) { + for (String item : addresses) { this.addToAddresses(item); } } return (A) this; } - public java.lang.Boolean hasAddresses() { + public Boolean hasAddresses() { return addresses != null && !addresses.isEmpty(); } @@ -176,24 +176,27 @@ public java.lang.Boolean hasAddresses() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1EndpointConditions getConditions() { + public V1EndpointConditions getConditions() { return this.conditions != null ? this.conditions.build() : null; } - public io.kubernetes.client.openapi.models.V1EndpointConditions buildConditions() { + public V1EndpointConditions buildConditions() { return this.conditions != null ? this.conditions.build() : null; } - public A withConditions(io.kubernetes.client.openapi.models.V1EndpointConditions conditions) { + public A withConditions(V1EndpointConditions conditions) { _visitables.get("conditions").remove(this.conditions); if (conditions != null) { this.conditions = new V1EndpointConditionsBuilder(conditions); _visitables.get("conditions").add(this.conditions); + } else { + this.conditions = null; + _visitables.get("conditions").remove(this.conditions); } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return this.conditions != null; } @@ -201,29 +204,24 @@ public V1EndpointFluent.ConditionsNested withNewConditions() { return new V1EndpointFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested - withNewConditionsLike(io.kubernetes.client.openapi.models.V1EndpointConditions item) { + public V1EndpointFluent.ConditionsNested withNewConditionsLike(V1EndpointConditions item) { return new V1EndpointFluentImpl.ConditionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested editConditions() { + public V1EndpointFluent.ConditionsNested editConditions() { return withNewConditionsLike(getConditions()); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested - editOrNewConditions() { + public V1EndpointFluent.ConditionsNested editOrNewConditions() { return withNewConditionsLike( - getConditions() != null - ? getConditions() - : new io.kubernetes.client.openapi.models.V1EndpointConditionsBuilder().build()); + getConditions() != null ? getConditions() : new V1EndpointConditionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested - editOrNewConditionsLike(io.kubernetes.client.openapi.models.V1EndpointConditions item) { + public V1EndpointFluent.ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { return withNewConditionsLike(getConditions() != null ? getConditions() : item); } - public A addToDeprecatedTopology(java.lang.String key, java.lang.String value) { + public A addToDeprecatedTopology(String key, String value) { if (this.deprecatedTopology == null && key != null && value != null) { this.deprecatedTopology = new LinkedHashMap(); } @@ -233,9 +231,9 @@ public A addToDeprecatedTopology(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToDeprecatedTopology(java.util.Map map) { + public A addToDeprecatedTopology(Map map) { if (this.deprecatedTopology == null && map != null) { - this.deprecatedTopology = new java.util.LinkedHashMap(); + this.deprecatedTopology = new LinkedHashMap(); } if (map != null) { this.deprecatedTopology.putAll(map); @@ -243,7 +241,7 @@ public A addToDeprecatedTopology(java.util.Map map) { + public A removeFromDeprecatedTopology(Map map) { if (this.deprecatedTopology == null) { return (A) this; } @@ -267,21 +265,20 @@ public A removeFromDeprecatedTopology(java.util.Map getDeprecatedTopology() { + public Map getDeprecatedTopology() { return this.deprecatedTopology; } - public A withDeprecatedTopology( - java.util.Map deprecatedTopology) { + public A withDeprecatedTopology(Map deprecatedTopology) { if (deprecatedTopology == null) { this.deprecatedTopology = null; } else { - this.deprecatedTopology = new java.util.LinkedHashMap(deprecatedTopology); + this.deprecatedTopology = new LinkedHashMap(deprecatedTopology); } return (A) this; } - public java.lang.Boolean hasDeprecatedTopology() { + public Boolean hasDeprecatedTopology() { return this.deprecatedTopology != null; } @@ -290,25 +287,28 @@ public java.lang.Boolean hasDeprecatedTopology() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1EndpointHints getHints() { + @Deprecated + public V1EndpointHints getHints() { return this.hints != null ? this.hints.build() : null; } - public io.kubernetes.client.openapi.models.V1EndpointHints buildHints() { + public V1EndpointHints buildHints() { return this.hints != null ? this.hints.build() : null; } - public A withHints(io.kubernetes.client.openapi.models.V1EndpointHints hints) { + public A withHints(V1EndpointHints hints) { _visitables.get("hints").remove(this.hints); if (hints != null) { this.hints = new V1EndpointHintsBuilder(hints); _visitables.get("hints").add(this.hints); + } else { + this.hints = null; + _visitables.get("hints").remove(this.hints); } return (A) this; } - public java.lang.Boolean hasHints() { + public Boolean hasHints() { return this.hints != null; } @@ -316,50 +316,45 @@ public V1EndpointFluent.HintsNested withNewHints() { return new V1EndpointFluentImpl.HintsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested withNewHintsLike( - io.kubernetes.client.openapi.models.V1EndpointHints item) { - return new io.kubernetes.client.openapi.models.V1EndpointFluentImpl.HintsNestedImpl(item); + public V1EndpointFluent.HintsNested withNewHintsLike(V1EndpointHints item) { + return new V1EndpointFluentImpl.HintsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested editHints() { + public V1EndpointFluent.HintsNested editHints() { return withNewHintsLike(getHints()); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested editOrNewHints() { - return withNewHintsLike( - getHints() != null - ? getHints() - : new io.kubernetes.client.openapi.models.V1EndpointHintsBuilder().build()); + public V1EndpointFluent.HintsNested editOrNewHints() { + return withNewHintsLike(getHints() != null ? getHints() : new V1EndpointHintsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested editOrNewHintsLike( - io.kubernetes.client.openapi.models.V1EndpointHints item) { + public V1EndpointFluent.HintsNested editOrNewHintsLike(V1EndpointHints item) { return withNewHintsLike(getHints() != null ? getHints() : item); } - public java.lang.String getHostname() { + public String getHostname() { return this.hostname; } - public A withHostname(java.lang.String hostname) { + public A withHostname(String hostname) { this.hostname = hostname; return (A) this; } - public java.lang.Boolean hasHostname() { + public Boolean hasHostname() { return this.hostname != null; } - public java.lang.String getNodeName() { + public String getNodeName() { return this.nodeName; } - public A withNodeName(java.lang.String nodeName) { + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; } - public java.lang.Boolean hasNodeName() { + public Boolean hasNodeName() { return this.nodeName != null; } @@ -368,25 +363,28 @@ public java.lang.Boolean hasNodeName() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getTargetRef() { + @Deprecated + public V1ObjectReference getTargetRef() { return this.targetRef != null ? this.targetRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildTargetRef() { + public V1ObjectReference buildTargetRef() { return this.targetRef != null ? this.targetRef.build() : null; } - public A withTargetRef(io.kubernetes.client.openapi.models.V1ObjectReference targetRef) { + public A withTargetRef(V1ObjectReference targetRef) { _visitables.get("targetRef").remove(this.targetRef); if (targetRef != null) { this.targetRef = new V1ObjectReferenceBuilder(targetRef); _visitables.get("targetRef").add(this.targetRef); + } else { + this.targetRef = null; + _visitables.get("targetRef").remove(this.targetRef); } return (A) this; } - public java.lang.Boolean hasTargetRef() { + public Boolean hasTargetRef() { return this.targetRef != null; } @@ -394,38 +392,33 @@ public V1EndpointFluent.TargetRefNested withNewTargetRef() { return new V1EndpointFluentImpl.TargetRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested - withNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1EndpointFluentImpl.TargetRefNestedImpl(item); + public V1EndpointFluent.TargetRefNested withNewTargetRefLike(V1ObjectReference item) { + return new V1EndpointFluentImpl.TargetRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested editTargetRef() { + public V1EndpointFluent.TargetRefNested editTargetRef() { return withNewTargetRefLike(getTargetRef()); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested - editOrNewTargetRef() { + public V1EndpointFluent.TargetRefNested editOrNewTargetRef() { return withNewTargetRefLike( - getTargetRef() != null - ? getTargetRef() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getTargetRef() != null ? getTargetRef() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested - editOrNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1EndpointFluent.TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { return withNewTargetRefLike(getTargetRef() != null ? getTargetRef() : item); } - public java.lang.String getZone() { + public String getZone() { return this.zone; } - public A withZone(java.lang.String zone) { + public A withZone(String zone) { this.zone = zone; return (A) this; } - public java.lang.Boolean hasZone() { + public Boolean hasZone() { return this.zone != null; } @@ -462,7 +455,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (addresses != null && !addresses.isEmpty()) { @@ -503,17 +496,16 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1EndpointConditionsFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointFluent.ConditionsNested, - Nested { + implements V1EndpointFluent.ConditionsNested, Nested { ConditionsNestedImpl(V1EndpointConditions item) { this.builder = new V1EndpointConditionsBuilder(this, item); } ConditionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EndpointConditionsBuilder(this); + this.builder = new V1EndpointConditionsBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointConditionsBuilder builder; + V1EndpointConditionsBuilder builder; public N and() { return (N) V1EndpointFluentImpl.this.withConditions(builder.build()); @@ -525,17 +517,16 @@ public N endConditions() { } class HintsNestedImpl extends V1EndpointHintsFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointFluent.HintsNested, - io.kubernetes.client.fluent.Nested { - HintsNestedImpl(io.kubernetes.client.openapi.models.V1EndpointHints item) { + implements V1EndpointFluent.HintsNested, Nested { + HintsNestedImpl(V1EndpointHints item) { this.builder = new V1EndpointHintsBuilder(this, item); } HintsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EndpointHintsBuilder(this); + this.builder = new V1EndpointHintsBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointHintsBuilder builder; + V1EndpointHintsBuilder builder; public N and() { return (N) V1EndpointFluentImpl.this.withHints(builder.build()); @@ -548,17 +539,16 @@ public N endHints() { class TargetRefNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointFluent.TargetRefNested, - io.kubernetes.client.fluent.Nested { - TargetRefNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1EndpointFluent.TargetRefNested, Nested { + TargetRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } TargetRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) V1EndpointFluentImpl.this.withTargetRef(builder.build()); 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 f3a45bb737..da58cc5cd3 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointHintsBuilder extends V1EndpointHintsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EndpointHints, - io.kubernetes.client.openapi.models.V1EndpointHintsBuilder> { + implements VisitableBuilder { public V1EndpointHintsBuilder() { this(false); } @@ -30,45 +28,37 @@ public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent) { this(fluent, false); } - public V1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1EndpointHintsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointHints(), validationEnabled); } - public V1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1EndpointHintsFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointHints instance) { + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent, V1EndpointHints instance) { this(fluent, instance, false); } public V1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1EndpointHintsFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointHints instance, - java.lang.Boolean validationEnabled) { + V1EndpointHintsFluent fluent, V1EndpointHints instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withForZones(instance.getForZones()); this.validationEnabled = validationEnabled; } - public V1EndpointHintsBuilder(io.kubernetes.client.openapi.models.V1EndpointHints instance) { + public V1EndpointHintsBuilder(V1EndpointHints instance) { this(instance, false); } - public V1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1EndpointHints instance, - java.lang.Boolean validationEnabled) { + public V1EndpointHintsBuilder(V1EndpointHints instance, Boolean validationEnabled) { this.fluent = this; this.withForZones(instance.getForZones()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointHintsFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointHintsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointHints build() { + public V1EndpointHints build() { V1EndpointHints buildable = new V1EndpointHints(); buildable.setForZones(fluent.getForZones()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java index f3fcf8043d..8b1dabd43d 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 @@ -22,17 +22,15 @@ public interface V1EndpointHintsFluent> extends Fluent { public A addToForZones(Integer index, V1ForZone item); - public A setToForZones( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ForZone item); + public A setToForZones(Integer index, V1ForZone item); public A addToForZones(io.kubernetes.client.openapi.models.V1ForZone... items); - public A addAllToForZones(Collection items); + public A addAllToForZones(Collection items); public A removeFromForZones(io.kubernetes.client.openapi.models.V1ForZone... items); - public A removeAllFromForZones( - java.util.Collection items); + public A removeAllFromForZones(Collection items); public A removeMatchingFromForZones(Predicate predicate); @@ -42,50 +40,40 @@ public A removeAllFromForZones( * @return The buildable object. */ @Deprecated - public List getForZones(); + public List getForZones(); - public java.util.List buildForZones(); + public List buildForZones(); - public io.kubernetes.client.openapi.models.V1ForZone buildForZone(java.lang.Integer index); + public V1ForZone buildForZone(Integer index); - public io.kubernetes.client.openapi.models.V1ForZone buildFirstForZone(); + public V1ForZone buildFirstForZone(); - public io.kubernetes.client.openapi.models.V1ForZone buildLastForZone(); + public V1ForZone buildLastForZone(); - public io.kubernetes.client.openapi.models.V1ForZone buildMatchingForZone( - java.util.function.Predicate predicate); + public V1ForZone buildMatchingForZone(Predicate predicate); - public Boolean hasMatchingForZone( - java.util.function.Predicate predicate); + public Boolean hasMatchingForZone(Predicate predicate); - public A withForZones(java.util.List forZones); + public A withForZones(List forZones); public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones); - public java.lang.Boolean hasForZones(); + public Boolean hasForZones(); public V1EndpointHintsFluent.ForZonesNested addNewForZone(); - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - addNewForZoneLike(io.kubernetes.client.openapi.models.V1ForZone item); + public V1EndpointHintsFluent.ForZonesNested addNewForZoneLike(V1ForZone item); - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - setNewForZoneLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ForZone item); + public V1EndpointHintsFluent.ForZonesNested setNewForZoneLike(Integer index, V1ForZone item); - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested editForZone( - java.lang.Integer index); + public V1EndpointHintsFluent.ForZonesNested editForZone(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - editFirstForZone(); + public V1EndpointHintsFluent.ForZonesNested editFirstForZone(); - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - editLastForZone(); + public V1EndpointHintsFluent.ForZonesNested editLastForZone(); - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - editMatchingForZone( - java.util.function.Predicate - predicate); + public V1EndpointHintsFluent.ForZonesNested editMatchingForZone( + Predicate predicate); public interface ForZonesNested extends Nested, V1ForZoneFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java index 1295277c19..83b70af1d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluentImpl.java @@ -26,7 +26,7 @@ public class V1EndpointHintsFluentImpl> exten implements V1EndpointHintsFluent { public V1EndpointHintsFluentImpl() {} - public V1EndpointHintsFluentImpl(io.kubernetes.client.openapi.models.V1EndpointHints instance) { + public V1EndpointHintsFluentImpl(V1EndpointHints instance) { this.withForZones(instance.getForZones()); } @@ -34,11 +34,9 @@ public V1EndpointHintsFluentImpl(io.kubernetes.client.openapi.models.V1EndpointH public A addToForZones(Integer index, V1ForZone item) { if (this.forZones == null) { - this.forZones = - new java.util.ArrayList(); + this.forZones = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1ForZoneBuilder(item); + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); _visitables .get("forZones") .add(index >= 0 ? index : _visitables.get("forZones").size(), builder); @@ -46,14 +44,11 @@ public A addToForZones(Integer index, V1ForZone item) { return (A) this; } - public A setToForZones( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ForZone item) { + public A setToForZones(Integer index, V1ForZone item) { if (this.forZones == null) { - this.forZones = - new java.util.ArrayList(); + this.forZones = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1ForZoneBuilder(item); + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); if (index < 0 || index >= _visitables.get("forZones").size()) { _visitables.get("forZones").add(builder); } else { @@ -69,26 +64,22 @@ public A setToForZones( public A addToForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { if (this.forZones == null) { - this.forZones = - new java.util.ArrayList(); + this.forZones = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ForZone item : items) { - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1ForZoneBuilder(item); + 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) { + public A addAllToForZones(Collection items) { if (this.forZones == null) { - this.forZones = - new java.util.ArrayList(); + this.forZones = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ForZone item : items) { - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1ForZoneBuilder(item); + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); _visitables.get("forZones").add(builder); this.forZones.add(builder); } @@ -96,9 +87,8 @@ public A addAllToForZones(Collection items) { - for (io.kubernetes.client.openapi.models.V1ForZone item : items) { - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1ForZoneBuilder(item); + public A removeAllFromForZones(Collection items) { + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); _visitables.get("forZones").remove(builder); if (this.forZones != null) { this.forZones.remove(builder); @@ -120,13 +108,12 @@ public A removeAllFromForZones( return (A) this; } - public A removeMatchingFromForZones( - Predicate predicate) { + public A removeMatchingFromForZones(Predicate predicate) { if (forZones == null) return (A) this; - final Iterator each = forZones.iterator(); + final Iterator each = forZones.iterator(); final List visitables = _visitables.get("forZones"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder = each.next(); + V1ForZoneBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -141,30 +128,28 @@ public A removeMatchingFromForZones( * @return The buildable object. */ @Deprecated - public List getForZones() { + public List getForZones() { return forZones != null ? build(forZones) : null; } - public java.util.List buildForZones() { + public List buildForZones() { return forZones != null ? build(forZones) : null; } - public io.kubernetes.client.openapi.models.V1ForZone buildForZone(java.lang.Integer index) { + public V1ForZone buildForZone(Integer index) { return this.forZones.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ForZone buildFirstForZone() { + public V1ForZone buildFirstForZone() { return this.forZones.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ForZone buildLastForZone() { + public V1ForZone buildLastForZone() { return this.forZones.get(forZones.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ForZone buildMatchingForZone( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ForZoneBuilder item : forZones) { + public V1ForZone buildMatchingForZone(Predicate predicate) { + for (V1ForZoneBuilder item : forZones) { if (predicate.test(item)) { return item.build(); } @@ -172,10 +157,8 @@ public io.kubernetes.client.openapi.models.V1ForZone buildMatchingForZone( return null; } - public Boolean hasMatchingForZone( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ForZoneBuilder item : forZones) { + public Boolean hasMatchingForZone(Predicate predicate) { + for (V1ForZoneBuilder item : forZones) { if (predicate.test(item)) { return true; } @@ -183,13 +166,13 @@ public Boolean hasMatchingForZone( return false; } - public A withForZones(java.util.List forZones) { + public A withForZones(List forZones) { if (this.forZones != null) { _visitables.get("forZones").removeAll(this.forZones); } if (forZones != null) { - this.forZones = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ForZone item : forZones) { + this.forZones = new ArrayList(); + for (V1ForZone item : forZones) { this.addToForZones(item); } } else { @@ -203,14 +186,14 @@ public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones) this.forZones.clear(); } if (forZones != null) { - for (io.kubernetes.client.openapi.models.V1ForZone item : forZones) { + for (V1ForZone item : forZones) { this.addToForZones(item); } } return (A) this; } - public java.lang.Boolean hasForZones() { + public Boolean hasForZones() { return forZones != null && !forZones.isEmpty(); } @@ -218,43 +201,34 @@ public V1EndpointHintsFluent.ForZonesNested addNewForZone() { return new V1EndpointHintsFluentImpl.ForZonesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - addNewForZoneLike(io.kubernetes.client.openapi.models.V1ForZone item) { + public V1EndpointHintsFluent.ForZonesNested addNewForZoneLike(V1ForZone item) { return new V1EndpointHintsFluentImpl.ForZonesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - setNewForZoneLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ForZone item) { - return new io.kubernetes.client.openapi.models.V1EndpointHintsFluentImpl.ForZonesNestedImpl( - index, item); + public V1EndpointHintsFluent.ForZonesNested setNewForZoneLike(Integer index, V1ForZone item) { + return new V1EndpointHintsFluentImpl.ForZonesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested editForZone( - java.lang.Integer index) { + public V1EndpointHintsFluent.ForZonesNested editForZone(Integer index) { if (forZones.size() <= index) throw new RuntimeException("Can't edit forZones. Index exceeds size."); return setNewForZoneLike(index, buildForZone(index)); } - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - editFirstForZone() { + public V1EndpointHintsFluent.ForZonesNested editFirstForZone() { if (forZones.size() == 0) throw new RuntimeException("Can't edit first forZones. The list is empty."); return setNewForZoneLike(0, buildForZone(0)); } - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - editLastForZone() { + public V1EndpointHintsFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested - editMatchingForZone( - java.util.function.Predicate - predicate) { + public V1EndpointHintsFluent.ForZonesNested editMatchingForZone( + Predicate predicate) { int index = -1; for (int i = 0; i < forZones.size(); i++) { if (predicate.test(forZones.get(i))) { @@ -290,20 +264,19 @@ public String toString() { } class ForZonesNestedImpl extends V1ForZoneFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointHintsFluent.ForZonesNested, - Nested { - ForZonesNestedImpl(java.lang.Integer index, V1ForZone item) { + implements V1EndpointHintsFluent.ForZonesNested, Nested { + ForZonesNestedImpl(Integer index, V1ForZone item) { this.index = index; this.builder = new V1ForZoneBuilder(this, item); } ForZonesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ForZoneBuilder(this); + this.builder = new V1ForZoneBuilder(this); } - io.kubernetes.client.openapi.models.V1ForZoneBuilder builder; - java.lang.Integer index; + V1ForZoneBuilder builder; + Integer index; public N and() { return (N) V1EndpointHintsFluentImpl.this.setToForZones(index, builder.build()); 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 33b1ed16dd..a2e55377de 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointSliceBuilder extends V1EndpointSliceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EndpointSlice, - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder> { + implements VisitableBuilder { public V1EndpointSliceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent) { this(fluent, false); } - public V1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointSlice(), validationEnabled); } - public V1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointSlice instance) { + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent, V1EndpointSlice instance) { this(fluent, instance, false); } public V1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointSlice instance, - java.lang.Boolean validationEnabled) { + V1EndpointSliceFluent fluent, V1EndpointSlice instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAddressType(instance.getAddressType()); @@ -62,13 +54,11 @@ public V1EndpointSliceBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointSliceBuilder(io.kubernetes.client.openapi.models.V1EndpointSlice instance) { + public V1EndpointSliceBuilder(V1EndpointSlice instance) { this(instance, false); } - public V1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1EndpointSlice instance, - java.lang.Boolean validationEnabled) { + public V1EndpointSliceBuilder(V1EndpointSlice instance, Boolean validationEnabled) { this.fluent = this; this.withAddressType(instance.getAddressType()); @@ -85,10 +75,10 @@ public V1EndpointSliceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointSliceFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointSliceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointSlice build() { + public V1EndpointSlice build() { V1EndpointSlice buildable = new V1EndpointSlice(); buildable.setAddressType(fluent.getAddressType()); buildable.setApiVersion(fluent.getApiVersion()); 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 543fc5cb39..d37a4fa22b 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 @@ -22,29 +22,27 @@ public interface V1EndpointSliceFluent> extends Fluent { public String getAddressType(); - public A withAddressType(java.lang.String addressType); + public A withAddressType(String addressType); public Boolean hasAddressType(); - public java.lang.String getApiVersion(); + public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); - public java.lang.Boolean hasApiVersion(); + public Boolean hasApiVersion(); - public A addToEndpoints(Integer index, io.kubernetes.client.openapi.models.V1Endpoint item); + public A addToEndpoints(Integer index, V1Endpoint item); - public A setToEndpoints( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoint item); + public A setToEndpoints(Integer index, V1Endpoint item); public A addToEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items); - public A addAllToEndpoints(Collection items); + public A addAllToEndpoints(Collection items); public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items); - public A removeAllFromEndpoints( - java.util.Collection items); + public A removeAllFromEndpoints(Collection items); public A removeMatchingFromEndpoints(Predicate predicate); @@ -54,157 +52,128 @@ public A removeAllFromEndpoints( * @return The buildable object. */ @Deprecated - public List getEndpoints(); + public List getEndpoints(); - public java.util.List buildEndpoints(); + public List buildEndpoints(); - public io.kubernetes.client.openapi.models.V1Endpoint buildEndpoint(java.lang.Integer index); + public V1Endpoint buildEndpoint(Integer index); - public io.kubernetes.client.openapi.models.V1Endpoint buildFirstEndpoint(); + public V1Endpoint buildFirstEndpoint(); - public io.kubernetes.client.openapi.models.V1Endpoint buildLastEndpoint(); + public V1Endpoint buildLastEndpoint(); - public io.kubernetes.client.openapi.models.V1Endpoint buildMatchingEndpoint( - java.util.function.Predicate - predicate); + public V1Endpoint buildMatchingEndpoint(Predicate predicate); - public java.lang.Boolean hasMatchingEndpoint( - java.util.function.Predicate - predicate); + public Boolean hasMatchingEndpoint(Predicate predicate); - public A withEndpoints(java.util.List endpoints); + public A withEndpoints(List endpoints); public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoints); - public java.lang.Boolean hasEndpoints(); + public Boolean hasEndpoints(); public V1EndpointSliceFluent.EndpointsNested addNewEndpoint(); - public V1EndpointSliceFluent.EndpointsNested addNewEndpointLike( - io.kubernetes.client.openapi.models.V1Endpoint item); + public V1EndpointSliceFluent.EndpointsNested addNewEndpointLike(V1Endpoint item); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - setNewEndpointLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoint item); + public V1EndpointSliceFluent.EndpointsNested setNewEndpointLike( + Integer index, V1Endpoint item); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested editEndpoint( - java.lang.Integer index); + public V1EndpointSliceFluent.EndpointsNested editEndpoint(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - editFirstEndpoint(); + public V1EndpointSliceFluent.EndpointsNested editFirstEndpoint(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - editLastEndpoint(); + public V1EndpointSliceFluent.EndpointsNested editLastEndpoint(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - editMatchingEndpoint( - java.util.function.Predicate - predicate); + public V1EndpointSliceFluent.EndpointsNested editMatchingEndpoint( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1EndpointSliceFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1EndpointSliceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested editMetadata(); + public V1EndpointSliceFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - editOrNewMetadata(); + public V1EndpointSliceFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1EndpointSliceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public A addToPorts(java.lang.Integer index, DiscoveryV1EndpointPort item); + public A addToPorts(Integer index, DiscoveryV1EndpointPort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item); + public A setToPorts(Integer index, DiscoveryV1EndpointPort item); public A addToPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items); - public A addAllToPorts( - java.util.Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts( - java.util.function.Predicate predicate); + public A removeMatchingFromPorts(Predicate predicate); /** * This method has been deprecated, please use method buildPorts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts(); + @Deprecated + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildPort( - java.lang.Integer index); + public DiscoveryV1EndpointPort buildPort(Integer index); - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildFirstPort(); + public DiscoveryV1EndpointPort buildFirstPort(); - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildLastPort(); + public DiscoveryV1EndpointPort buildLastPort(); - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate); + public DiscoveryV1EndpointPort buildMatchingPort( + Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts( - java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1EndpointSliceFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item); + public V1EndpointSliceFluent.PortsNested addNewPortLike(DiscoveryV1EndpointPort item); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item); + public V1EndpointSliceFluent.PortsNested setNewPortLike( + Integer index, DiscoveryV1EndpointPort item); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editPort( - java.lang.Integer index); + public V1EndpointSliceFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editFirstPort(); + public V1EndpointSliceFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editLastPort(); + public V1EndpointSliceFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate); + public V1EndpointSliceFluent.PortsNested editMatchingPort( + Predicate predicate); public interface EndpointsNested extends Nested, V1EndpointFluent> { @@ -214,16 +183,14 @@ public interface EndpointsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); } public interface PortsNested - extends io.kubernetes.client.fluent.Nested, - DiscoveryV1EndpointPortFluent> { + extends Nested, DiscoveryV1EndpointPortFluent> { public N and(); public N endPort(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java index e92360bdce..626e6e9044 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluentImpl.java @@ -41,17 +41,17 @@ public V1EndpointSliceFluentImpl(V1EndpointSlice instance) { } private String addressType; - private java.lang.String apiVersion; + private String apiVersion; private ArrayList endpoints; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - private java.util.ArrayList ports; + private ArrayList ports; - public java.lang.String getAddressType() { + public String getAddressType() { return this.addressType; } - public A withAddressType(java.lang.String addressType) { + public A withAddressType(String addressType) { this.addressType = addressType; return (A) this; } @@ -60,26 +60,24 @@ public Boolean hasAddressType() { return this.addressType != null; } - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToEndpoints(Integer index, io.kubernetes.client.openapi.models.V1Endpoint item) { + public A addToEndpoints(Integer index, V1Endpoint item) { if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); + this.endpoints = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointBuilder(item); + V1EndpointBuilder builder = new V1EndpointBuilder(item); _visitables .get("endpoints") .add(index >= 0 ? index : _visitables.get("endpoints").size(), builder); @@ -87,14 +85,11 @@ public A addToEndpoints(Integer index, io.kubernetes.client.openapi.models.V1End return (A) this; } - public A setToEndpoints( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoint item) { + public A setToEndpoints(Integer index, V1Endpoint item) { if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); + this.endpoints = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointBuilder(item); + V1EndpointBuilder builder = new V1EndpointBuilder(item); if (index < 0 || index >= _visitables.get("endpoints").size()) { _visitables.get("endpoints").add(builder); } else { @@ -110,26 +105,22 @@ public A setToEndpoints( public A addToEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); + this.endpoints = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointBuilder(item); + 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) { + public A addAllToEndpoints(Collection items) { if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); + this.endpoints = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointBuilder(item); + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); _visitables.get("endpoints").add(builder); this.endpoints.add(builder); } @@ -137,9 +128,8 @@ public A addAllToEndpoints(Collection items) { - for (io.kubernetes.client.openapi.models.V1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointBuilder(item); + public A removeAllFromEndpoints(Collection items) { + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); _visitables.get("endpoints").remove(builder); if (this.endpoints != null) { this.endpoints.remove(builder); @@ -161,14 +149,12 @@ public A removeAllFromEndpoints( return (A) this; } - public A removeMatchingFromEndpoints( - Predicate predicate) { + public A removeMatchingFromEndpoints(Predicate predicate) { if (endpoints == null) return (A) this; - final Iterator each = - endpoints.iterator(); + final Iterator each = endpoints.iterator(); final List visitables = _visitables.get("endpoints"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EndpointBuilder builder = each.next(); + V1EndpointBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -183,30 +169,28 @@ public A removeMatchingFromEndpoints( * @return The buildable object. */ @Deprecated - public List getEndpoints() { + public List getEndpoints() { return endpoints != null ? build(endpoints) : null; } - public java.util.List buildEndpoints() { + public List buildEndpoints() { return endpoints != null ? build(endpoints) : null; } - public io.kubernetes.client.openapi.models.V1Endpoint buildEndpoint(java.lang.Integer index) { + public V1Endpoint buildEndpoint(Integer index) { return this.endpoints.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Endpoint buildFirstEndpoint() { + public V1Endpoint buildFirstEndpoint() { return this.endpoints.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Endpoint buildLastEndpoint() { + public V1Endpoint buildLastEndpoint() { return this.endpoints.get(endpoints.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Endpoint buildMatchingEndpoint( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointBuilder item : endpoints) { + public V1Endpoint buildMatchingEndpoint(Predicate predicate) { + for (V1EndpointBuilder item : endpoints) { if (predicate.test(item)) { return item.build(); } @@ -214,10 +198,8 @@ public io.kubernetes.client.openapi.models.V1Endpoint buildMatchingEndpoint( return null; } - public java.lang.Boolean hasMatchingEndpoint( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointBuilder item : endpoints) { + public Boolean hasMatchingEndpoint(Predicate predicate) { + for (V1EndpointBuilder item : endpoints) { if (predicate.test(item)) { return true; } @@ -225,13 +207,13 @@ public java.lang.Boolean hasMatchingEndpoint( return false; } - public A withEndpoints(java.util.List endpoints) { + public A withEndpoints(List endpoints) { if (this.endpoints != null) { _visitables.get("endpoints").removeAll(this.endpoints); } if (endpoints != null) { - this.endpoints = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Endpoint item : endpoints) { + this.endpoints = new ArrayList(); + for (V1Endpoint item : endpoints) { this.addToEndpoints(item); } } else { @@ -245,14 +227,14 @@ public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoin this.endpoints.clear(); } if (endpoints != null) { - for (io.kubernetes.client.openapi.models.V1Endpoint item : endpoints) { + for (V1Endpoint item : endpoints) { this.addToEndpoints(item); } } return (A) this; } - public java.lang.Boolean hasEndpoints() { + public Boolean hasEndpoints() { return endpoints != null && !endpoints.isEmpty(); } @@ -260,43 +242,35 @@ public V1EndpointSliceFluent.EndpointsNested addNewEndpoint() { return new V1EndpointSliceFluentImpl.EndpointsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - addNewEndpointLike(io.kubernetes.client.openapi.models.V1Endpoint item) { + public V1EndpointSliceFluent.EndpointsNested addNewEndpointLike(V1Endpoint item) { return new V1EndpointSliceFluentImpl.EndpointsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - setNewEndpointLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoint item) { - return new io.kubernetes.client.openapi.models.V1EndpointSliceFluentImpl.EndpointsNestedImpl( - index, item); + public V1EndpointSliceFluent.EndpointsNested setNewEndpointLike( + Integer index, V1Endpoint item) { + return new V1EndpointSliceFluentImpl.EndpointsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested editEndpoint( - java.lang.Integer index) { + public V1EndpointSliceFluent.EndpointsNested editEndpoint(Integer index) { if (endpoints.size() <= index) throw new RuntimeException("Can't edit endpoints. Index exceeds size."); return setNewEndpointLike(index, buildEndpoint(index)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - editFirstEndpoint() { + public V1EndpointSliceFluent.EndpointsNested editFirstEndpoint() { if (endpoints.size() == 0) throw new RuntimeException("Can't edit first endpoints. The list is empty."); return setNewEndpointLike(0, buildEndpoint(0)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - editLastEndpoint() { + public V1EndpointSliceFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested - editMatchingEndpoint( - java.util.function.Predicate - predicate) { + public V1EndpointSliceFluent.EndpointsNested editMatchingEndpoint( + Predicate predicate) { int index = -1; for (int i = 0; i < endpoints.size(); i++) { if (predicate.test(endpoints.get(i))) { @@ -308,16 +282,16 @@ public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.EndpointsNested return setNewEndpointLike(index, buildEndpoint(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -326,25 +300,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -352,51 +329,38 @@ public V1EndpointSliceFluent.MetadataNested withNewMetadata() { return new V1EndpointSliceFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1EndpointSliceFluentImpl.MetadataNestedImpl( - item); + public V1EndpointSliceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1EndpointSliceFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - editMetadata() { + public V1EndpointSliceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - editOrNewMetadata() { + public V1EndpointSliceFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1EndpointSliceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item) { + public A addToPorts(Integer index, DiscoveryV1EndpointPort item) { if (this.ports == null) { - this.ports = new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(item); + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item) { + public A setToPorts(Integer index, DiscoveryV1EndpointPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder>(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(item); + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -412,29 +376,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder>(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(item); + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; } - public A addAllToPorts( - java.util.Collection items) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder>(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(item); + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -442,9 +399,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(item); + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -453,11 +409,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1Endpoint return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -466,16 +420,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder = each.next(); + DiscoveryV1EndpointPortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -489,33 +439,30 @@ public A removeMatchingFromPorts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts() { + @Deprecated + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildPort( - java.lang.Integer index) { + public DiscoveryV1EndpointPort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildFirstPort() { + public DiscoveryV1EndpointPort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildLastPort() { + public DiscoveryV1EndpointPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder item : ports) { + public DiscoveryV1EndpointPort buildMatchingPort( + Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -523,11 +470,8 @@ public io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort buildMatching return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -535,14 +479,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts( - java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item : ports) { + this.ports = new ArrayList(); + for (DiscoveryV1EndpointPort item : ports) { this.addToPorts(item); } } else { @@ -556,14 +499,14 @@ public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort.. this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item : ports) { + for (DiscoveryV1EndpointPort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -571,39 +514,33 @@ public V1EndpointSliceFluent.PortsNested addNewPort() { return new V1EndpointSliceFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item) { - return new io.kubernetes.client.openapi.models.V1EndpointSliceFluentImpl.PortsNestedImpl( - -1, item); + public V1EndpointSliceFluent.PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { + return new V1EndpointSliceFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort item) { - return new io.kubernetes.client.openapi.models.V1EndpointSliceFluentImpl.PortsNestedImpl( - index, item); + public V1EndpointSliceFluent.PortsNested setNewPortLike( + Integer index, DiscoveryV1EndpointPort item) { + return new V1EndpointSliceFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editPort( - java.lang.Integer index) { + public V1EndpointSliceFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editFirstPort() { + public V1EndpointSliceFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editLastPort() { + public V1EndpointSliceFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder> - predicate) { + public V1EndpointSliceFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -636,7 +573,7 @@ public int hashCode() { addressType, apiVersion, endpoints, kind, metadata, ports, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (addressType != null) { @@ -670,19 +607,18 @@ public java.lang.String toString() { class EndpointsNestedImpl extends V1EndpointFluentImpl> implements V1EndpointSliceFluent.EndpointsNested, Nested { - EndpointsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoint item) { + EndpointsNestedImpl(Integer index, V1Endpoint item) { this.index = index; this.builder = new V1EndpointBuilder(this, item); } EndpointsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EndpointBuilder(this); + this.builder = new V1EndpointBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointBuilder builder; - java.lang.Integer index; + V1EndpointBuilder builder; + Integer index; public N and() { return (N) V1EndpointSliceFluentImpl.this.setToEndpoints(index, builder.build()); @@ -695,17 +631,16 @@ public N endEndpoint() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSliceFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1EndpointSliceFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1EndpointSliceFluentImpl.this.withMetadata(builder.build()); @@ -718,20 +653,19 @@ public N endMetadata() { class PortsNestedImpl extends DiscoveryV1EndpointPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSliceFluent.PortsNested, - io.kubernetes.client.fluent.Nested { - PortsNestedImpl(java.lang.Integer index, DiscoveryV1EndpointPort item) { + implements V1EndpointSliceFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, DiscoveryV1EndpointPort item) { this.index = index; this.builder = new DiscoveryV1EndpointPortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder(this); + this.builder = new DiscoveryV1EndpointPortBuilder(this); } - io.kubernetes.client.openapi.models.DiscoveryV1EndpointPortBuilder builder; - java.lang.Integer index; + DiscoveryV1EndpointPortBuilder builder; + Integer index; public N and() { return (N) V1EndpointSliceFluentImpl.this.setToPorts(index, builder.build()); 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 600e076443..83ff76b629 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 @@ -16,8 +16,7 @@ public class V1EndpointSliceListBuilder extends V1EndpointSliceListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EndpointSliceList, V1EndpointSliceListBuilder> { + implements VisitableBuilder { public V1EndpointSliceListBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1EndpointSliceListBuilder(Boolean validationEnabled) { this(new V1EndpointSliceList(), validationEnabled); } - public V1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceListFluent fluent) { + public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent) { this(fluent, false); } public V1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceListFluent fluent, - java.lang.Boolean validationEnabled) { + V1EndpointSliceListFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointSliceList(), validationEnabled); } public V1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceListFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointSliceList instance) { + V1EndpointSliceListFluent fluent, V1EndpointSliceList instance) { this(fluent, instance, false); } public V1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceListFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointSliceList instance, - java.lang.Boolean validationEnabled) { + V1EndpointSliceListFluent fluent, + V1EndpointSliceList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1EndpointSliceListBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceList instance) { + public V1EndpointSliceListBuilder(V1EndpointSliceList instance) { this(instance, false); } - public V1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1EndpointSliceList instance, - java.lang.Boolean validationEnabled) { + public V1EndpointSliceListBuilder(V1EndpointSliceList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1EndpointSliceListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointSliceListFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointSliceListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointSliceList build() { + public V1EndpointSliceList build() { V1EndpointSliceList buildable = new V1EndpointSliceList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 84a951a92f..3b64b9e569 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 @@ -23,23 +23,21 @@ public interface V1EndpointSliceListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item); + public A addToItems(Integer index, V1EndpointSlice item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item); + public A setToItems(Integer index, V1EndpointSlice item); public A addToItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1EndpointSlice buildItem(java.lang.Integer index); + public V1EndpointSlice buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSlice buildFirstItem(); + public V1EndpointSlice buildFirstItem(); - public io.kubernetes.client.openapi.models.V1EndpointSlice buildLastItem(); + public V1EndpointSlice buildLastItem(); - public io.kubernetes.client.openapi.models.V1EndpointSlice buildMatchingItem( - java.util.function.Predicate - predicate); + public V1EndpointSlice buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1EndpointSliceListFluent.ItemsNested addNewItem(); - public V1EndpointSliceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1EndpointSlice item); + public V1EndpointSliceListFluent.ItemsNested addNewItemLike(V1EndpointSlice item); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item); + public V1EndpointSliceListFluent.ItemsNested setNewItemLike( + Integer index, V1EndpointSlice item); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1EndpointSliceListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - editFirstItem(); + public V1EndpointSliceListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - editLastItem(); + public V1EndpointSliceListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1EndpointSliceListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1EndpointSliceListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1EndpointSliceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - editMetadata(); + public V1EndpointSliceListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - editOrNewMetadata(); + public V1EndpointSliceListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1EndpointSliceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1EndpointSliceFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java index df73f8de6a..40db3dc65f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluentImpl.java @@ -38,14 +38,14 @@ public V1EndpointSliceListFluentImpl(V1EndpointSliceList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item) { + public A addToItems(Integer index, V1EndpointSlice item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSliceBuilder(item); + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item) { + public A setToItems(Integer index, V1EndpointSlice item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSliceBuilder(item); + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSliceBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSliceBuilder(item); + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSliceBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder = each.next(); + V1EndpointSliceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1EndpointSlice buildItem(java.lang.Integer index) { + public V1EndpointSlice buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EndpointSlice buildFirstItem() { + public V1EndpointSlice buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EndpointSlice buildLastItem() { + public V1EndpointSlice buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EndpointSlice buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointSliceBuilder item : items) { + public V1EndpointSlice buildMatchingItem(Predicate predicate) { + for (V1EndpointSliceBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1EndpointSlice buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointSliceBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1EndpointSliceBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EndpointSlice item : items) { + this.items = new ArrayList(); + for (V1EndpointSlice item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1EndpointSlice item : items) { + for (V1EndpointSlice item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,41 +221,33 @@ public V1EndpointSliceListFluent.ItemsNested addNewItem() { return new V1EndpointSliceListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1EndpointSlice item) { + public V1EndpointSliceListFluent.ItemsNested addNewItemLike(V1EndpointSlice item) { return new V1EndpointSliceListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item) { - return new io.kubernetes.client.openapi.models.V1EndpointSliceListFluentImpl.ItemsNestedImpl( - index, item); + public V1EndpointSliceListFluent.ItemsNested setNewItemLike( + Integer index, V1EndpointSlice item) { + return new V1EndpointSliceListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1EndpointSliceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - editFirstItem() { + public V1EndpointSliceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - editLastItem() { + public V1EndpointSliceListFluent.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 io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1EndpointSliceListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -303,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -329,27 +306,20 @@ public V1EndpointSliceListFluent.MetadataNested withNewMetadata() { return new V1EndpointSliceListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1EndpointSliceListFluentImpl.MetadataNestedImpl( - item); + public V1EndpointSliceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1EndpointSliceListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - editMetadata() { + public V1EndpointSliceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - editOrNewMetadata() { + public V1EndpointSliceListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1EndpointSliceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -369,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -394,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1EndpointSliceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSlice item) { + implements V1EndpointSliceListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1EndpointSlice item) { this.index = index; this.builder = new V1EndpointSliceBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EndpointSliceBuilder(this); + this.builder = new V1EndpointSliceBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointSliceBuilder builder; - java.lang.Integer index; + V1EndpointSliceBuilder builder; + Integer index; public N and() { return (N) V1EndpointSliceListFluentImpl.this.setToItems(index, builder.build()); @@ -421,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSliceListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1EndpointSliceListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1EndpointSliceListFluentImpl.this.withMetadata(builder.build()); 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 88497baaf4..ccd69fc834 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EndpointSubset, V1EndpointSubsetBuilder> { + implements VisitableBuilder { public V1EndpointSubsetBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1EndpointSubsetBuilder(Boolean validationEnabled) { this(new V1EndpointSubset(), validationEnabled); } - public V1EndpointSubsetBuilder( - io.kubernetes.client.openapi.models.V1EndpointSubsetFluent fluent) { + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent) { this(fluent, false); } - public V1EndpointSubsetBuilder( - io.kubernetes.client.openapi.models.V1EndpointSubsetFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointSubset(), validationEnabled); } - public V1EndpointSubsetBuilder( - io.kubernetes.client.openapi.models.V1EndpointSubsetFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointSubset instance) { + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent, V1EndpointSubset instance) { this(fluent, instance, false); } public V1EndpointSubsetBuilder( - io.kubernetes.client.openapi.models.V1EndpointSubsetFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointSubset instance, - java.lang.Boolean validationEnabled) { + V1EndpointSubsetFluent fluent, V1EndpointSubset instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAddresses(instance.getAddresses()); @@ -56,13 +48,11 @@ public V1EndpointSubsetBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointSubsetBuilder(io.kubernetes.client.openapi.models.V1EndpointSubset instance) { + public V1EndpointSubsetBuilder(V1EndpointSubset instance) { this(instance, false); } - public V1EndpointSubsetBuilder( - io.kubernetes.client.openapi.models.V1EndpointSubset instance, - java.lang.Boolean validationEnabled) { + public V1EndpointSubsetBuilder(V1EndpointSubset instance, Boolean validationEnabled) { this.fluent = this; this.withAddresses(instance.getAddresses()); @@ -73,10 +63,10 @@ public V1EndpointSubsetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointSubsetFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointSubsetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointSubset build() { + public V1EndpointSubset build() { V1EndpointSubset buildable = new V1EndpointSubset(); buildable.setAddresses(fluent.getAddresses()); buildable.setNotReadyAddresses(fluent.getNotReadyAddresses()); 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 a39baaf082..0737a2132e 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 @@ -22,18 +22,15 @@ public interface V1EndpointSubsetFluent> extends Fluent { public A addToAddresses(Integer index, V1EndpointAddress item); - public A setToAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item); + public A setToAddresses(Integer index, V1EndpointAddress item); public A addToAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A addAllToAddresses( - Collection items); + public A addAllToAddresses(Collection items); public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A removeAllFromAddresses( - java.util.Collection items); + public A removeAllFromAddresses(Collection items); public A removeMatchingFromAddresses(Predicate predicate); @@ -43,200 +40,157 @@ public A removeAllFromAddresses( * @return The buildable object. */ @Deprecated - public List getAddresses(); + public List getAddresses(); - public java.util.List buildAddresses(); + public List buildAddresses(); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildAddress( - java.lang.Integer index); + public V1EndpointAddress buildAddress(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildFirstAddress(); + public V1EndpointAddress buildFirstAddress(); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildLastAddress(); + public V1EndpointAddress buildLastAddress(); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildMatchingAddress( - java.util.function.Predicate - predicate); + public V1EndpointAddress buildMatchingAddress(Predicate predicate); - public Boolean hasMatchingAddress( - java.util.function.Predicate - predicate); + public Boolean hasMatchingAddress(Predicate predicate); - public A withAddresses( - java.util.List addresses); + public A withAddresses(List addresses); public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... addresses); - public java.lang.Boolean hasAddresses(); + public Boolean hasAddresses(); public V1EndpointSubsetFluent.AddressesNested addNewAddress(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - addNewAddressLike(io.kubernetes.client.openapi.models.V1EndpointAddress item); + public V1EndpointSubsetFluent.AddressesNested addNewAddressLike(V1EndpointAddress item); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - setNewAddressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item); + public V1EndpointSubsetFluent.AddressesNested setNewAddressLike( + Integer index, V1EndpointAddress item); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested editAddress( - java.lang.Integer index); + public V1EndpointSubsetFluent.AddressesNested editAddress(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - editFirstAddress(); + public V1EndpointSubsetFluent.AddressesNested editFirstAddress(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - editLastAddress(); + public V1EndpointSubsetFluent.AddressesNested editLastAddress(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - editMatchingAddress( - java.util.function.Predicate - predicate); + public V1EndpointSubsetFluent.AddressesNested editMatchingAddress( + Predicate predicate); - public A addToNotReadyAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item); + public A addToNotReadyAddresses(Integer index, V1EndpointAddress item); - public A setToNotReadyAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item); + public A setToNotReadyAddresses(Integer index, V1EndpointAddress item); public A addToNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A addAllToNotReadyAddresses( - java.util.Collection items); + public A addAllToNotReadyAddresses(Collection items); public A removeFromNotReadyAddresses( io.kubernetes.client.openapi.models.V1EndpointAddress... items); - public A removeAllFromNotReadyAddresses( - java.util.Collection items); + public A removeAllFromNotReadyAddresses(Collection items); - public A removeMatchingFromNotReadyAddresses( - java.util.function.Predicate - predicate); + public A removeMatchingFromNotReadyAddresses(Predicate predicate); /** * This method has been deprecated, please use method buildNotReadyAddresses instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getNotReadyAddresses(); + @Deprecated + public List getNotReadyAddresses(); - public java.util.List - buildNotReadyAddresses(); + public List buildNotReadyAddresses(); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildNotReadyAddress( - java.lang.Integer index); + public V1EndpointAddress buildNotReadyAddress(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildFirstNotReadyAddress(); + public V1EndpointAddress buildFirstNotReadyAddress(); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildLastNotReadyAddress(); + public V1EndpointAddress buildLastNotReadyAddress(); - public io.kubernetes.client.openapi.models.V1EndpointAddress buildMatchingNotReadyAddress( - java.util.function.Predicate - predicate); + public V1EndpointAddress buildMatchingNotReadyAddress( + Predicate predicate); - public java.lang.Boolean hasMatchingNotReadyAddress( - java.util.function.Predicate - predicate); + public Boolean hasMatchingNotReadyAddress(Predicate predicate); - public A withNotReadyAddresses( - java.util.List notReadyAddresses); + public A withNotReadyAddresses(List notReadyAddresses); public A withNotReadyAddresses( io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses); - public java.lang.Boolean hasNotReadyAddresses(); + public Boolean hasNotReadyAddresses(); public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddress(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - addNewNotReadyAddressLike(io.kubernetes.client.openapi.models.V1EndpointAddress item); + public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddressLike( + V1EndpointAddress item); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - setNewNotReadyAddressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item); + public V1EndpointSubsetFluent.NotReadyAddressesNested setNewNotReadyAddressLike( + Integer index, V1EndpointAddress item); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editNotReadyAddress(java.lang.Integer index); + public V1EndpointSubsetFluent.NotReadyAddressesNested editNotReadyAddress(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editFirstNotReadyAddress(); + public V1EndpointSubsetFluent.NotReadyAddressesNested editFirstNotReadyAddress(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editLastNotReadyAddress(); + public V1EndpointSubsetFluent.NotReadyAddressesNested editLastNotReadyAddress(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editMatchingNotReadyAddress( - java.util.function.Predicate - predicate); + public V1EndpointSubsetFluent.NotReadyAddressesNested editMatchingNotReadyAddress( + Predicate predicate); - public A addToPorts(java.lang.Integer index, CoreV1EndpointPort item); + public A addToPorts(Integer index, CoreV1EndpointPort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1EndpointPort item); + public A setToPorts(Integer index, CoreV1EndpointPort item); public A addToPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items); - public A addAllToPorts( - java.util.Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts( - java.util.function.Predicate predicate); + public A removeMatchingFromPorts(Predicate predicate); /** * This method has been deprecated, please use method buildPorts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts(); + @Deprecated + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildPort(java.lang.Integer index); + public CoreV1EndpointPort buildPort(Integer index); - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildFirstPort(); + public CoreV1EndpointPort buildFirstPort(); - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildLastPort(); + public CoreV1EndpointPort buildLastPort(); - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildMatchingPort( - java.util.function.Predicate - predicate); + public CoreV1EndpointPort buildMatchingPort(Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1EndpointSubsetFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.CoreV1EndpointPort item); + public V1EndpointSubsetFluent.PortsNested addNewPortLike(CoreV1EndpointPort item); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1EndpointPort item); + public V1EndpointSubsetFluent.PortsNested setNewPortLike( + Integer index, CoreV1EndpointPort item); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editPort( - java.lang.Integer index); + public V1EndpointSubsetFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editFirstPort(); + public V1EndpointSubsetFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editLastPort(); + public V1EndpointSubsetFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editMatchingPort( - java.util.function.Predicate - predicate); + public V1EndpointSubsetFluent.PortsNested editMatchingPort( + Predicate predicate); public interface AddressesNested extends Nested, V1EndpointAddressFluent> { @@ -246,7 +200,7 @@ public interface AddressesNested } public interface NotReadyAddressesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1EndpointAddressFluent> { public N and(); @@ -254,8 +208,7 @@ public interface NotReadyAddressesNested } public interface PortsNested - extends io.kubernetes.client.fluent.Nested, - CoreV1EndpointPortFluent> { + extends Nested, CoreV1EndpointPortFluent> { public N and(); public N endPort(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java index 697ab272e2..a8bcb476b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluentImpl.java @@ -26,7 +26,7 @@ public class V1EndpointSubsetFluentImpl> ext implements V1EndpointSubsetFluent { public V1EndpointSubsetFluentImpl() {} - public V1EndpointSubsetFluentImpl(io.kubernetes.client.openapi.models.V1EndpointSubset instance) { + public V1EndpointSubsetFluentImpl(V1EndpointSubset instance) { this.withAddresses(instance.getAddresses()); this.withNotReadyAddresses(instance.getNotReadyAddresses()); @@ -35,17 +35,14 @@ public V1EndpointSubsetFluentImpl(io.kubernetes.client.openapi.models.V1Endpoint } private ArrayList addresses; - private java.util.ArrayList notReadyAddresses; - private java.util.ArrayList ports; + private ArrayList notReadyAddresses; + private ArrayList ports; - public A addToAddresses( - Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item) { + public A addToAddresses(Integer index, V1EndpointAddress item) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables .get("addresses") .add(index >= 0 ? index : _visitables.get("addresses").size(), builder); @@ -53,14 +50,11 @@ public A addToAddresses( return (A) this; } - public A setToAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item) { + public A setToAddresses(Integer index, V1EndpointAddress item) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= _visitables.get("addresses").size()) { _visitables.get("addresses").add(builder); } else { @@ -76,27 +70,22 @@ public A setToAddresses( public A addToAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + 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) { + public A addAllToAddresses(Collection items) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("addresses").add(builder); this.addresses.add(builder); } @@ -104,9 +93,8 @@ public A addAllToAddresses( } public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("addresses").remove(builder); if (this.addresses != null) { this.addresses.remove(builder); @@ -115,11 +103,9 @@ public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddre return (A) this; } - public A removeAllFromAddresses( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + public A removeAllFromAddresses(Collection items) { + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("addresses").remove(builder); if (this.addresses != null) { this.addresses.remove(builder); @@ -128,14 +114,12 @@ public A removeAllFromAddresses( return (A) this; } - public A removeMatchingFromAddresses( - Predicate predicate) { + public A removeMatchingFromAddresses(Predicate predicate) { if (addresses == null) return (A) this; - final Iterator each = - addresses.iterator(); + final Iterator each = addresses.iterator(); final List visitables = _visitables.get("addresses"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = each.next(); + V1EndpointAddressBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -150,31 +134,28 @@ public A removeMatchingFromAddresses( * @return The buildable object. */ @Deprecated - public List getAddresses() { + public List getAddresses() { return addresses != null ? build(addresses) : null; } - public java.util.List buildAddresses() { + public List buildAddresses() { return addresses != null ? build(addresses) : null; } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildAddress( - java.lang.Integer index) { + public V1EndpointAddress buildAddress(Integer index) { return this.addresses.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildFirstAddress() { + public V1EndpointAddress buildFirstAddress() { return this.addresses.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildLastAddress() { + public V1EndpointAddress buildLastAddress() { return this.addresses.get(addresses.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildMatchingAddress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointAddressBuilder item : addresses) { + public V1EndpointAddress buildMatchingAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : addresses) { if (predicate.test(item)) { return item.build(); } @@ -182,10 +163,8 @@ public io.kubernetes.client.openapi.models.V1EndpointAddress buildMatchingAddres return null; } - public Boolean hasMatchingAddress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointAddressBuilder item : addresses) { + public Boolean hasMatchingAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : addresses) { if (predicate.test(item)) { return true; } @@ -193,14 +172,13 @@ public Boolean hasMatchingAddress( return false; } - public A withAddresses( - java.util.List addresses) { + public A withAddresses(List addresses) { if (this.addresses != null) { _visitables.get("addresses").removeAll(this.addresses); } if (addresses != null) { - this.addresses = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : addresses) { + this.addresses = new ArrayList(); + for (V1EndpointAddress item : addresses) { this.addToAddresses(item); } } else { @@ -214,14 +192,14 @@ public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... this.addresses.clear(); } if (addresses != null) { - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : addresses) { + for (V1EndpointAddress item : addresses) { this.addToAddresses(item); } } return (A) this; } - public java.lang.Boolean hasAddresses() { + public Boolean hasAddresses() { return addresses != null && !addresses.isEmpty(); } @@ -229,43 +207,35 @@ public V1EndpointSubsetFluent.AddressesNested addNewAddress() { return new V1EndpointSubsetFluentImpl.AddressesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - addNewAddressLike(io.kubernetes.client.openapi.models.V1EndpointAddress item) { + public V1EndpointSubsetFluent.AddressesNested addNewAddressLike(V1EndpointAddress item) { return new V1EndpointSubsetFluentImpl.AddressesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - setNewAddressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item) { - return new io.kubernetes.client.openapi.models.V1EndpointSubsetFluentImpl.AddressesNestedImpl( - index, item); + public V1EndpointSubsetFluent.AddressesNested setNewAddressLike( + Integer index, V1EndpointAddress item) { + return new V1EndpointSubsetFluentImpl.AddressesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested editAddress( - java.lang.Integer index) { + public V1EndpointSubsetFluent.AddressesNested editAddress(Integer index) { if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); return setNewAddressLike(index, buildAddress(index)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - editFirstAddress() { + public V1EndpointSubsetFluent.AddressesNested editFirstAddress() { if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); return setNewAddressLike(0, buildAddress(0)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - editLastAddress() { + public V1EndpointSubsetFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested - editMatchingAddress( - java.util.function.Predicate - predicate) { + public V1EndpointSubsetFluent.AddressesNested editMatchingAddress( + Predicate predicate) { int index = -1; for (int i = 0; i < addresses.size(); i++) { if (predicate.test(addresses.get(i))) { @@ -277,14 +247,11 @@ public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNeste return setNewAddressLike(index, buildAddress(index)); } - public A addToNotReadyAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item) { + public A addToNotReadyAddresses(Integer index, V1EndpointAddress item) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = - new java.util.ArrayList(); + this.notReadyAddresses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables .get("notReadyAddresses") .add(index >= 0 ? index : _visitables.get("notReadyAddresses").size(), builder); @@ -292,14 +259,11 @@ public A addToNotReadyAddresses( return (A) this; } - public A setToNotReadyAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item) { + public A setToNotReadyAddresses(Integer index, V1EndpointAddress item) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = - new java.util.ArrayList(); + this.notReadyAddresses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); if (index < 0 || index >= _visitables.get("notReadyAddresses").size()) { _visitables.get("notReadyAddresses").add(builder); } else { @@ -315,27 +279,22 @@ public A setToNotReadyAddresses( public A addToNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = - new java.util.ArrayList(); + this.notReadyAddresses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("notReadyAddresses").add(builder); this.notReadyAddresses.add(builder); } return (A) this; } - public A addAllToNotReadyAddresses( - java.util.Collection items) { + public A addAllToNotReadyAddresses(Collection items) { if (this.notReadyAddresses == null) { - this.notReadyAddresses = - new java.util.ArrayList(); + this.notReadyAddresses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("notReadyAddresses").add(builder); this.notReadyAddresses.add(builder); } @@ -344,9 +303,8 @@ public A addAllToNotReadyAddresses( public A removeFromNotReadyAddresses( io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("notReadyAddresses").remove(builder); if (this.notReadyAddresses != null) { this.notReadyAddresses.remove(builder); @@ -355,11 +313,9 @@ public A removeFromNotReadyAddresses( return (A) this; } - public A removeAllFromNotReadyAddresses( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : items) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(item); + public A removeAllFromNotReadyAddresses(Collection items) { + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); _visitables.get("notReadyAddresses").remove(builder); if (this.notReadyAddresses != null) { this.notReadyAddresses.remove(builder); @@ -368,15 +324,12 @@ public A removeAllFromNotReadyAddresses( return (A) this; } - public A removeMatchingFromNotReadyAddresses( - java.util.function.Predicate - predicate) { + public A removeMatchingFromNotReadyAddresses(Predicate predicate) { if (notReadyAddresses == null) return (A) this; - final Iterator each = - notReadyAddresses.iterator(); + final Iterator each = notReadyAddresses.iterator(); final List visitables = _visitables.get("notReadyAddresses"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder = each.next(); + V1EndpointAddressBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -390,34 +343,30 @@ public A removeMatchingFromNotReadyAddresses( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getNotReadyAddresses() { + @Deprecated + public List getNotReadyAddresses() { return notReadyAddresses != null ? build(notReadyAddresses) : null; } - public java.util.List - buildNotReadyAddresses() { + public List buildNotReadyAddresses() { return notReadyAddresses != null ? build(notReadyAddresses) : null; } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildNotReadyAddress( - java.lang.Integer index) { + public V1EndpointAddress buildNotReadyAddress(Integer index) { return this.notReadyAddresses.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildFirstNotReadyAddress() { + public V1EndpointAddress buildFirstNotReadyAddress() { return this.notReadyAddresses.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildLastNotReadyAddress() { + public V1EndpointAddress buildLastNotReadyAddress() { return this.notReadyAddresses.get(notReadyAddresses.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EndpointAddress buildMatchingNotReadyAddress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointAddressBuilder item : notReadyAddresses) { + public V1EndpointAddress buildMatchingNotReadyAddress( + Predicate predicate) { + for (V1EndpointAddressBuilder item : notReadyAddresses) { if (predicate.test(item)) { return item.build(); } @@ -425,10 +374,8 @@ public io.kubernetes.client.openapi.models.V1EndpointAddress buildMatchingNotRea return null; } - public java.lang.Boolean hasMatchingNotReadyAddress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointAddressBuilder item : notReadyAddresses) { + public Boolean hasMatchingNotReadyAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : notReadyAddresses) { if (predicate.test(item)) { return true; } @@ -436,14 +383,13 @@ public java.lang.Boolean hasMatchingNotReadyAddress( return false; } - public A withNotReadyAddresses( - java.util.List notReadyAddresses) { + public A withNotReadyAddresses(List notReadyAddresses) { if (this.notReadyAddresses != null) { _visitables.get("notReadyAddresses").removeAll(this.notReadyAddresses); } if (notReadyAddresses != null) { - this.notReadyAddresses = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : notReadyAddresses) { + this.notReadyAddresses = new ArrayList(); + for (V1EndpointAddress item : notReadyAddresses) { this.addToNotReadyAddresses(item); } } else { @@ -458,14 +404,14 @@ public A withNotReadyAddresses( this.notReadyAddresses.clear(); } if (notReadyAddresses != null) { - for (io.kubernetes.client.openapi.models.V1EndpointAddress item : notReadyAddresses) { + for (V1EndpointAddress item : notReadyAddresses) { this.addToNotReadyAddresses(item); } } return (A) this; } - public java.lang.Boolean hasNotReadyAddresses() { + public Boolean hasNotReadyAddresses() { return notReadyAddresses != null && !notReadyAddresses.isEmpty(); } @@ -473,45 +419,37 @@ public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddress() return new V1EndpointSubsetFluentImpl.NotReadyAddressesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - addNewNotReadyAddressLike(io.kubernetes.client.openapi.models.V1EndpointAddress item) { - return new io.kubernetes.client.openapi.models.V1EndpointSubsetFluentImpl - .NotReadyAddressesNestedImpl(-1, item); + public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddressLike( + V1EndpointAddress item) { + return new V1EndpointSubsetFluentImpl.NotReadyAddressesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - setNewNotReadyAddressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointAddress item) { - return new io.kubernetes.client.openapi.models.V1EndpointSubsetFluentImpl - .NotReadyAddressesNestedImpl(index, item); + public V1EndpointSubsetFluent.NotReadyAddressesNested setNewNotReadyAddressLike( + Integer index, V1EndpointAddress item) { + return new V1EndpointSubsetFluentImpl.NotReadyAddressesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editNotReadyAddress(java.lang.Integer index) { + public V1EndpointSubsetFluent.NotReadyAddressesNested editNotReadyAddress(Integer index) { if (notReadyAddresses.size() <= index) throw new RuntimeException("Can't edit notReadyAddresses. Index exceeds size."); return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editFirstNotReadyAddress() { + public V1EndpointSubsetFluent.NotReadyAddressesNested editFirstNotReadyAddress() { if (notReadyAddresses.size() == 0) throw new RuntimeException("Can't edit first notReadyAddresses. The list is empty."); return setNewNotReadyAddressLike(0, buildNotReadyAddress(0)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editLastNotReadyAddress() { + public V1EndpointSubsetFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested - editMatchingNotReadyAddress( - java.util.function.Predicate - predicate) { + public V1EndpointSubsetFluent.NotReadyAddressesNested editMatchingNotReadyAddress( + Predicate predicate) { int index = -1; for (int i = 0; i < notReadyAddresses.size(); i++) { if (predicate.test(notReadyAddresses.get(i))) { @@ -524,26 +462,21 @@ public V1EndpointSubsetFluent.NotReadyAddressesNested addNewNotReadyAddress() return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); } - public A addToPorts(java.lang.Integer index, CoreV1EndpointPort item) { + public A addToPorts(Integer index, CoreV1EndpointPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(item); + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1EndpointPort item) { + public A setToPorts(Integer index, CoreV1EndpointPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(item); + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -559,27 +492,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.CoreV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(item); + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; } - public A addAllToPorts( - java.util.Collection items) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.CoreV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(item); + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -587,9 +515,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - for (io.kubernetes.client.openapi.models.CoreV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(item); + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -598,11 +525,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort. return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.CoreV1EndpointPort item : items) { - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -611,15 +536,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder = each.next(); + CoreV1EndpointPortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -633,31 +555,29 @@ public A removeMatchingFromPorts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts() { + @Deprecated + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildPort(java.lang.Integer index) { + public CoreV1EndpointPort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildFirstPort() { + public CoreV1EndpointPort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildLastPort() { + public CoreV1EndpointPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder item : ports) { + public CoreV1EndpointPort buildMatchingPort(Predicate predicate) { + for (CoreV1EndpointPortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -665,10 +585,8 @@ public io.kubernetes.client.openapi.models.CoreV1EndpointPort buildMatchingPort( return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (CoreV1EndpointPortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -676,13 +594,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts(java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.CoreV1EndpointPort item : ports) { + this.ports = new ArrayList(); + for (CoreV1EndpointPort item : ports) { this.addToPorts(item); } } else { @@ -696,14 +614,14 @@ public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... por this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.CoreV1EndpointPort item : ports) { + for (CoreV1EndpointPort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -711,38 +629,33 @@ public V1EndpointSubsetFluent.PortsNested addNewPort() { return new V1EndpointSubsetFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.CoreV1EndpointPort item) { - return new io.kubernetes.client.openapi.models.V1EndpointSubsetFluentImpl.PortsNestedImpl( - -1, item); + public V1EndpointSubsetFluent.PortsNested addNewPortLike(CoreV1EndpointPort item) { + return new V1EndpointSubsetFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1EndpointPort item) { - return new io.kubernetes.client.openapi.models.V1EndpointSubsetFluentImpl.PortsNestedImpl( - index, item); + public V1EndpointSubsetFluent.PortsNested setNewPortLike( + Integer index, CoreV1EndpointPort item) { + return new V1EndpointSubsetFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editPort( - java.lang.Integer index) { + public V1EndpointSubsetFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editFirstPort() { + public V1EndpointSubsetFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editLastPort() { + public V1EndpointSubsetFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested editMatchingPort( - java.util.function.Predicate - predicate) { + public V1EndpointSubsetFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -792,20 +705,19 @@ public String toString() { class AddressesNestedImpl extends V1EndpointAddressFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.AddressesNested, - Nested { - AddressesNestedImpl(java.lang.Integer index, V1EndpointAddress item) { + implements V1EndpointSubsetFluent.AddressesNested, Nested { + AddressesNestedImpl(Integer index, V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } AddressesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(this); + this.builder = new V1EndpointAddressBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder; - java.lang.Integer index; + V1EndpointAddressBuilder builder; + Integer index; public N and() { return (N) V1EndpointSubsetFluentImpl.this.setToAddresses(index, builder.build()); @@ -818,21 +730,19 @@ public N endAddress() { class NotReadyAddressesNestedImpl extends V1EndpointAddressFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.NotReadyAddressesNested< - N>, - io.kubernetes.client.fluent.Nested { - NotReadyAddressesNestedImpl(java.lang.Integer index, V1EndpointAddress item) { + implements V1EndpointSubsetFluent.NotReadyAddressesNested, Nested { + NotReadyAddressesNestedImpl(Integer index, V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } NotReadyAddressesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EndpointAddressBuilder(this); + this.builder = new V1EndpointAddressBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointAddressBuilder builder; - java.lang.Integer index; + V1EndpointAddressBuilder builder; + Integer index; public N and() { return (N) V1EndpointSubsetFluentImpl.this.setToNotReadyAddresses(index, builder.build()); @@ -845,21 +755,19 @@ public N endNotReadyAddress() { class PortsNestedImpl extends CoreV1EndpointPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointSubsetFluent.PortsNested, - io.kubernetes.client.fluent.Nested { - PortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.CoreV1EndpointPort item) { + implements V1EndpointSubsetFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, CoreV1EndpointPort item) { this.index = index; this.builder = new CoreV1EndpointPortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder(this); + this.builder = new CoreV1EndpointPortBuilder(this); } - io.kubernetes.client.openapi.models.CoreV1EndpointPortBuilder builder; - java.lang.Integer index; + CoreV1EndpointPortBuilder builder; + Integer index; public N and() { return (N) V1EndpointSubsetFluentImpl.this.setToPorts(index, builder.build()); 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 e28b8b2e81..a92f57a777 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointsBuilder extends V1EndpointsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Endpoints, - io.kubernetes.client.openapi.models.V1EndpointsBuilder> { + implements VisitableBuilder { public V1EndpointsBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1EndpointsBuilder(V1EndpointsFluent fluent) { this(fluent, false); } - public V1EndpointsBuilder( - io.kubernetes.client.openapi.models.V1EndpointsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointsBuilder(V1EndpointsFluent fluent, Boolean validationEnabled) { this(fluent, new V1Endpoints(), validationEnabled); } - public V1EndpointsBuilder( - io.kubernetes.client.openapi.models.V1EndpointsFluent fluent, - io.kubernetes.client.openapi.models.V1Endpoints instance) { + public V1EndpointsBuilder(V1EndpointsFluent fluent, V1Endpoints instance) { this(fluent, instance, false); } public V1EndpointsBuilder( - io.kubernetes.client.openapi.models.V1EndpointsFluent fluent, - io.kubernetes.client.openapi.models.V1Endpoints instance, - java.lang.Boolean validationEnabled) { + V1EndpointsFluent fluent, V1Endpoints instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1EndpointsBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointsBuilder(io.kubernetes.client.openapi.models.V1Endpoints instance) { + public V1EndpointsBuilder(V1Endpoints instance) { this(instance, false); } - public V1EndpointsBuilder( - io.kubernetes.client.openapi.models.V1Endpoints instance, - java.lang.Boolean validationEnabled) { + public V1EndpointsBuilder(V1Endpoints instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1EndpointsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointsFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Endpoints build() { + public V1Endpoints build() { V1Endpoints buildable = new V1Endpoints(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 aa97f42357..a2be843598 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 @@ -22,15 +22,15 @@ public interface V1EndpointsFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -40,38 +40,33 @@ public interface V1EndpointsFluent> extends Fluen @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1EndpointsFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1EndpointsFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested editMetadata(); + public V1EndpointsFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested - editOrNewMetadata(); + public V1EndpointsFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1EndpointsFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public A addToSubsets(Integer index, V1EndpointSubset item); - public A setToSubsets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSubset item); + public A setToSubsets(Integer index, V1EndpointSubset item); public A addToSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items); - public A addAllToSubsets(Collection items); + public A addAllToSubsets(Collection items); public A removeFromSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items); - public A removeAllFromSubsets( - java.util.Collection items); + public A removeAllFromSubsets(Collection items); public A removeMatchingFromSubsets(Predicate predicate); @@ -80,50 +75,41 @@ public A removeAllFromSubsets( * * @return The buildable object. */ - @java.lang.Deprecated - public List getSubsets(); + @Deprecated + public List getSubsets(); - public java.util.List buildSubsets(); + public List buildSubsets(); - public io.kubernetes.client.openapi.models.V1EndpointSubset buildSubset(java.lang.Integer index); + public V1EndpointSubset buildSubset(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointSubset buildFirstSubset(); + public V1EndpointSubset buildFirstSubset(); - public io.kubernetes.client.openapi.models.V1EndpointSubset buildLastSubset(); + public V1EndpointSubset buildLastSubset(); - public io.kubernetes.client.openapi.models.V1EndpointSubset buildMatchingSubset( - java.util.function.Predicate - predicate); + public V1EndpointSubset buildMatchingSubset(Predicate predicate); - public java.lang.Boolean hasMatchingSubset( - java.util.function.Predicate - predicate); + public Boolean hasMatchingSubset(Predicate predicate); - public A withSubsets( - java.util.List subsets); + public A withSubsets(List subsets); public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... subsets); - public java.lang.Boolean hasSubsets(); + public Boolean hasSubsets(); public V1EndpointsFluent.SubsetsNested addNewSubset(); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested addNewSubsetLike( - io.kubernetes.client.openapi.models.V1EndpointSubset item); + public V1EndpointsFluent.SubsetsNested addNewSubsetLike(V1EndpointSubset item); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested setNewSubsetLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSubset item); + public V1EndpointsFluent.SubsetsNested setNewSubsetLike(Integer index, V1EndpointSubset item); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editSubset( - java.lang.Integer index); + public V1EndpointsFluent.SubsetsNested editSubset(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editFirstSubset(); + public V1EndpointsFluent.SubsetsNested editFirstSubset(); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editLastSubset(); + public V1EndpointsFluent.SubsetsNested editLastSubset(); - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editMatchingSubset( - java.util.function.Predicate - predicate); + public V1EndpointsFluent.SubsetsNested editMatchingSubset( + Predicate predicate); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -133,8 +119,7 @@ public interface MetadataNested } public interface SubsetsNested - extends io.kubernetes.client.fluent.Nested, - V1EndpointSubsetFluent> { + extends Nested, V1EndpointSubsetFluent> { public N and(); public N endSubset(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java index 658d956910..c8b8ae7a07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluentImpl.java @@ -26,7 +26,7 @@ public class V1EndpointsFluentImpl> extends BaseF implements V1EndpointsFluent { public V1EndpointsFluentImpl() {} - public V1EndpointsFluentImpl(io.kubernetes.client.openapi.models.V1Endpoints instance) { + public V1EndpointsFluentImpl(V1Endpoints instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -37,15 +37,15 @@ public V1EndpointsFluentImpl(io.kubernetes.client.openapi.models.V1Endpoints ins } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private ArrayList subsets; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,16 +54,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -73,24 +73,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -98,48 +101,38 @@ public V1EndpointsFluent.MetadataNested withNewMetadata() { return new V1EndpointsFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1EndpointsFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1EndpointsFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested editMetadata() { + public V1EndpointsFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested - editOrNewMetadata() { + public V1EndpointsFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1EndpointsFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } public A addToSubsets(Integer index, V1EndpointSubset item) { if (this.subsets == null) { - this.subsets = - new java.util.ArrayList(); + this.subsets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder(item); + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); _visitables.get("subsets").add(index >= 0 ? index : _visitables.get("subsets").size(), builder); this.subsets.add(index >= 0 ? index : subsets.size(), builder); return (A) this; } - public A setToSubsets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSubset item) { + public A setToSubsets(Integer index, V1EndpointSubset item) { if (this.subsets == null) { - this.subsets = - new java.util.ArrayList(); + this.subsets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder(item); + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); if (index < 0 || index >= _visitables.get("subsets").size()) { _visitables.get("subsets").add(builder); } else { @@ -155,26 +148,22 @@ public A setToSubsets( public A addToSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { if (this.subsets == null) { - this.subsets = - new java.util.ArrayList(); + this.subsets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointSubset item : items) { - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder(item); + 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) { + public A addAllToSubsets(Collection items) { if (this.subsets == null) { - this.subsets = - new java.util.ArrayList(); + this.subsets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EndpointSubset item : items) { - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder(item); + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); _visitables.get("subsets").add(builder); this.subsets.add(builder); } @@ -182,9 +171,8 @@ public A addAllToSubsets(Collection items) { - for (io.kubernetes.client.openapi.models.V1EndpointSubset item : items) { - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder(item); + public A removeAllFromSubsets(Collection items) { + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); _visitables.get("subsets").remove(builder); if (this.subsets != null) { this.subsets.remove(builder); @@ -206,14 +192,12 @@ public A removeAllFromSubsets( return (A) this; } - public A removeMatchingFromSubsets( - Predicate predicate) { + public A removeMatchingFromSubsets(Predicate predicate) { if (subsets == null) return (A) this; - final Iterator each = - subsets.iterator(); + final Iterator each = subsets.iterator(); final List visitables = _visitables.get("subsets"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder = each.next(); + V1EndpointSubsetBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -227,31 +211,29 @@ public A removeMatchingFromSubsets( * * @return The buildable object. */ - @java.lang.Deprecated - public List getSubsets() { + @Deprecated + public List getSubsets() { return subsets != null ? build(subsets) : null; } - public java.util.List buildSubsets() { + public List buildSubsets() { return subsets != null ? build(subsets) : null; } - public io.kubernetes.client.openapi.models.V1EndpointSubset buildSubset(java.lang.Integer index) { + public V1EndpointSubset buildSubset(Integer index) { return this.subsets.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EndpointSubset buildFirstSubset() { + public V1EndpointSubset buildFirstSubset() { return this.subsets.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EndpointSubset buildLastSubset() { + public V1EndpointSubset buildLastSubset() { return this.subsets.get(subsets.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EndpointSubset buildMatchingSubset( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder item : subsets) { + public V1EndpointSubset buildMatchingSubset(Predicate predicate) { + for (V1EndpointSubsetBuilder item : subsets) { if (predicate.test(item)) { return item.build(); } @@ -259,10 +241,8 @@ public io.kubernetes.client.openapi.models.V1EndpointSubset buildMatchingSubset( return null; } - public java.lang.Boolean hasMatchingSubset( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder item : subsets) { + public Boolean hasMatchingSubset(Predicate predicate) { + for (V1EndpointSubsetBuilder item : subsets) { if (predicate.test(item)) { return true; } @@ -270,14 +250,13 @@ public java.lang.Boolean hasMatchingSubset( return false; } - public A withSubsets( - java.util.List subsets) { + public A withSubsets(List subsets) { if (this.subsets != null) { _visitables.get("subsets").removeAll(this.subsets); } if (subsets != null) { - this.subsets = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EndpointSubset item : subsets) { + this.subsets = new ArrayList(); + for (V1EndpointSubset item : subsets) { this.addToSubsets(item); } } else { @@ -291,14 +270,14 @@ public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... sub this.subsets.clear(); } if (subsets != null) { - for (io.kubernetes.client.openapi.models.V1EndpointSubset item : subsets) { + for (V1EndpointSubset item : subsets) { this.addToSubsets(item); } } return (A) this; } - public java.lang.Boolean hasSubsets() { + public Boolean hasSubsets() { return subsets != null && !subsets.isEmpty(); } @@ -306,40 +285,34 @@ public V1EndpointsFluent.SubsetsNested addNewSubset() { return new V1EndpointsFluentImpl.SubsetsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested addNewSubsetLike( - io.kubernetes.client.openapi.models.V1EndpointSubset item) { - return new io.kubernetes.client.openapi.models.V1EndpointsFluentImpl.SubsetsNestedImpl( - -1, item); + public V1EndpointsFluent.SubsetsNested addNewSubsetLike(V1EndpointSubset item) { + return new V1EndpointsFluentImpl.SubsetsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested setNewSubsetLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSubset item) { - return new io.kubernetes.client.openapi.models.V1EndpointsFluentImpl.SubsetsNestedImpl( - index, item); + public V1EndpointsFluent.SubsetsNested setNewSubsetLike(Integer index, V1EndpointSubset item) { + return new V1EndpointsFluentImpl.SubsetsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editSubset( - java.lang.Integer index) { + public V1EndpointsFluent.SubsetsNested editSubset(Integer index) { if (subsets.size() <= index) throw new RuntimeException("Can't edit subsets. Index exceeds size."); return setNewSubsetLike(index, buildSubset(index)); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editFirstSubset() { + public V1EndpointsFluent.SubsetsNested editFirstSubset() { if (subsets.size() == 0) throw new RuntimeException("Can't edit first subsets. The list is empty."); return setNewSubsetLike(0, buildSubset(0)); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editLastSubset() { + public V1EndpointsFluent.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)); } - public io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested editMatchingSubset( - java.util.function.Predicate - predicate) { + public V1EndpointsFluent.SubsetsNested editMatchingSubset( + Predicate predicate) { int index = -1; for (int i = 0; i < subsets.size(); i++) { if (predicate.test(subsets.get(i))) { @@ -367,7 +340,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, subsets, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -391,17 +364,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointsFluent.MetadataNested, - Nested { + implements V1EndpointsFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1EndpointsFluentImpl.this.withMetadata(builder.build()); @@ -413,21 +385,19 @@ public N endMetadata() { } class SubsetsNestedImpl extends V1EndpointSubsetFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointsFluent.SubsetsNested, - io.kubernetes.client.fluent.Nested { - SubsetsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EndpointSubset item) { + implements V1EndpointsFluent.SubsetsNested, Nested { + SubsetsNestedImpl(Integer index, V1EndpointSubset item) { this.index = index; this.builder = new V1EndpointSubsetBuilder(this, item); } SubsetsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder(this); + this.builder = new V1EndpointSubsetBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointSubsetBuilder builder; - java.lang.Integer index; + V1EndpointSubsetBuilder builder; + Integer index; public N and() { return (N) V1EndpointsFluentImpl.this.setToSubsets(index, builder.build()); 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 d966c518be..62222a2d0e 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EndpointsListBuilder extends V1EndpointsListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EndpointsList, V1EndpointsListBuilder> { + implements VisitableBuilder { public V1EndpointsListBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1EndpointsListBuilder(Boolean validationEnabled) { this(new V1EndpointsList(), validationEnabled); } - public V1EndpointsListBuilder( - io.kubernetes.client.openapi.models.V1EndpointsListFluent fluent) { + public V1EndpointsListBuilder(V1EndpointsListFluent fluent) { this(fluent, false); } - public V1EndpointsListBuilder( - io.kubernetes.client.openapi.models.V1EndpointsListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EndpointsListBuilder(V1EndpointsListFluent fluent, Boolean validationEnabled) { this(fluent, new V1EndpointsList(), validationEnabled); } - public V1EndpointsListBuilder( - io.kubernetes.client.openapi.models.V1EndpointsListFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointsList instance) { + public V1EndpointsListBuilder(V1EndpointsListFluent fluent, V1EndpointsList instance) { this(fluent, instance, false); } public V1EndpointsListBuilder( - io.kubernetes.client.openapi.models.V1EndpointsListFluent fluent, - io.kubernetes.client.openapi.models.V1EndpointsList instance, - java.lang.Boolean validationEnabled) { + V1EndpointsListFluent fluent, V1EndpointsList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1EndpointsListBuilder( this.validationEnabled = validationEnabled; } - public V1EndpointsListBuilder(io.kubernetes.client.openapi.models.V1EndpointsList instance) { + public V1EndpointsListBuilder(V1EndpointsList instance) { this(instance, false); } - public V1EndpointsListBuilder( - io.kubernetes.client.openapi.models.V1EndpointsList instance, - java.lang.Boolean validationEnabled) { + public V1EndpointsListBuilder(V1EndpointsList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1EndpointsListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EndpointsListFluent fluent; - java.lang.Boolean validationEnabled; + V1EndpointsListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EndpointsList build() { + public V1EndpointsList build() { V1EndpointsList buildable = new V1EndpointsList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 27bf84f8f2..cd0e4439e5 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 @@ -22,23 +22,21 @@ public interface V1EndpointsListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1Endpoints item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoints item); + public A setToItems(Integer index, V1Endpoints item); public A addToItems(io.kubernetes.client.openapi.models.V1Endpoints... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Endpoints... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,81 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Endpoints buildItem(java.lang.Integer index); + public V1Endpoints buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Endpoints buildFirstItem(); + public V1Endpoints buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Endpoints buildLastItem(); + public V1Endpoints buildLastItem(); - public io.kubernetes.client.openapi.models.V1Endpoints buildMatchingItem( - java.util.function.Predicate - predicate); + public V1Endpoints buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1EndpointsListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Endpoints item); + public V1EndpointsListFluent.ItemsNested addNewItemLike(V1Endpoints item); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoints item); + public V1EndpointsListFluent.ItemsNested setNewItemLike(Integer index, V1Endpoints item); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1EndpointsListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editFirstItem(); + public V1EndpointsListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editLastItem(); + public V1EndpointsListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1EndpointsListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1EndpointsListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1EndpointsListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested editMetadata(); + public V1EndpointsListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - editOrNewMetadata(); + public V1EndpointsListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1EndpointsListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1EndpointsFluent> { @@ -132,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java index 1ca5c5343b..85254d5939 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluentImpl.java @@ -26,7 +26,7 @@ public class V1EndpointsListFluentImpl> exten implements V1EndpointsListFluent { public V1EndpointsListFluentImpl() {} - public V1EndpointsListFluentImpl(io.kubernetes.client.openapi.models.V1EndpointsList instance) { + public V1EndpointsListFluentImpl(V1EndpointsList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -38,14 +38,14 @@ public V1EndpointsListFluentImpl(io.kubernetes.client.openapi.models.V1Endpoints private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Endpoints item) { + public A addToItems(Integer index, V1Endpoints item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointsBuilder(item); + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoints item) { + public A setToItems(Integer index, V1Endpoints item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointsBuilder(item); + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Endpoints item : items) { - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointsBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Endpoints item : items) { - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointsBuilder(item); + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1Endpoints item : items) { - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder = - new io.kubernetes.client.openapi.models.V1EndpointsBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder = each.next(); + V1EndpointsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Endpoints buildItem(java.lang.Integer index) { + public V1Endpoints buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Endpoints buildFirstItem() { + public V1Endpoints buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Endpoints buildLastItem() { + public V1Endpoints buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Endpoints buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointsBuilder item : items) { + public V1Endpoints buildMatchingItem(Predicate predicate) { + for (V1EndpointsBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1Endpoints buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EndpointsBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1EndpointsBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Endpoints item : items) { + this.items = new ArrayList(); + for (V1Endpoints item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Endpoints item : items) { + for (V1Endpoints item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,36 +221,32 @@ public V1EndpointsListFluent.ItemsNested addNewItem() { return new V1EndpointsListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Endpoints item) { + public V1EndpointsListFluent.ItemsNested addNewItemLike(V1Endpoints item) { return new V1EndpointsListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoints item) { + public V1EndpointsListFluent.ItemsNested setNewItemLike(Integer index, V1Endpoints item) { return new V1EndpointsListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1EndpointsListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editFirstItem() { + public V1EndpointsListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editLastItem() { + public V1EndpointsListFluent.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 io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1EndpointsListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -279,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -297,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -323,27 +305,20 @@ public V1EndpointsListFluent.MetadataNested withNewMetadata() { return new V1EndpointsListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1EndpointsListFluentImpl.MetadataNestedImpl( - item); + public V1EndpointsListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1EndpointsListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - editMetadata() { + public V1EndpointsListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - editOrNewMetadata() { + public V1EndpointsListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1EndpointsListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -363,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -387,20 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1EndpointsFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointsListFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Endpoints item) { + implements V1EndpointsListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Endpoints item) { this.index = index; this.builder = new V1EndpointsBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EndpointsBuilder(this); + this.builder = new V1EndpointsBuilder(this); } - io.kubernetes.client.openapi.models.V1EndpointsBuilder builder; - java.lang.Integer index; + V1EndpointsBuilder builder; + Integer index; public N and() { return (N) V1EndpointsListFluentImpl.this.setToItems(index, builder.build()); @@ -412,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1EndpointsListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1EndpointsListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1EndpointsListFluentImpl.this.withMetadata(builder.build()); 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 13752d444d..02513a6e38 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EnvFromSource, - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder> { + implements VisitableBuilder { public V1EnvFromSourceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent) { this(fluent, false); } - public V1EnvFromSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvFromSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1EnvFromSource(), validationEnabled); } - public V1EnvFromSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvFromSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EnvFromSource instance) { + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent, V1EnvFromSource instance) { this(fluent, instance, false); } public V1EnvFromSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvFromSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EnvFromSource instance, - java.lang.Boolean validationEnabled) { + V1EnvFromSourceFluent fluent, V1EnvFromSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConfigMapRef(instance.getConfigMapRef()); @@ -56,13 +48,11 @@ public V1EnvFromSourceBuilder( this.validationEnabled = validationEnabled; } - public V1EnvFromSourceBuilder(io.kubernetes.client.openapi.models.V1EnvFromSource instance) { + public V1EnvFromSourceBuilder(V1EnvFromSource instance) { this(instance, false); } - public V1EnvFromSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvFromSource instance, - java.lang.Boolean validationEnabled) { + public V1EnvFromSourceBuilder(V1EnvFromSource instance, Boolean validationEnabled) { this.fluent = this; this.withConfigMapRef(instance.getConfigMapRef()); @@ -73,10 +63,10 @@ public V1EnvFromSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EnvFromSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1EnvFromSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EnvFromSource build() { + public V1EnvFromSource build() { V1EnvFromSource buildable = new V1EnvFromSource(); buildable.setConfigMapRef(fluent.getConfigMapRef()); buildable.setPrefix(fluent.getPrefix()); 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 b2c30525a4..1ae97d22fc 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 @@ -26,59 +26,53 @@ public interface V1EnvFromSourceFluent> exten @Deprecated public V1ConfigMapEnvSource getConfigMapRef(); - public io.kubernetes.client.openapi.models.V1ConfigMapEnvSource buildConfigMapRef(); + public V1ConfigMapEnvSource buildConfigMapRef(); - public A withConfigMapRef(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource configMapRef); + public A withConfigMapRef(V1ConfigMapEnvSource configMapRef); public Boolean hasConfigMapRef(); public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRef(); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - withNewConfigMapRefLike(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource item); + public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRefLike( + V1ConfigMapEnvSource item); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - editConfigMapRef(); + public V1EnvFromSourceFluent.ConfigMapRefNested editConfigMapRef(); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - editOrNewConfigMapRef(); + public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRef(); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - editOrNewConfigMapRefLike(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource item); + public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRefLike( + V1ConfigMapEnvSource item); public String getPrefix(); - public A withPrefix(java.lang.String prefix); + public A withPrefix(String prefix); - public java.lang.Boolean hasPrefix(); + public Boolean hasPrefix(); /** * This method has been deprecated, please use method buildSecretRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecretEnvSource getSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretEnvSource buildSecretRef(); + public V1SecretEnvSource buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretEnvSource secretRef); + public A withSecretRef(V1SecretEnvSource secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1EnvFromSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretEnvSource item); + public V1EnvFromSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretEnvSource item); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - editSecretRef(); + public V1EnvFromSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretEnvSource item); + public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item); public interface ConfigMapRefNested extends Nested, V1ConfigMapEnvSourceFluent> { @@ -88,8 +82,7 @@ public interface ConfigMapRefNested } public interface SecretRefNested - extends io.kubernetes.client.fluent.Nested, - V1SecretEnvSourceFluent> { + extends Nested, V1SecretEnvSourceFluent> { public N and(); public N endSecretRef(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java index 428474198b..210d896ecf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluentImpl.java @@ -21,7 +21,7 @@ public class V1EnvFromSourceFluentImpl> exten implements V1EnvFromSourceFluent { public V1EnvFromSourceFluentImpl() {} - public V1EnvFromSourceFluentImpl(io.kubernetes.client.openapi.models.V1EnvFromSource instance) { + public V1EnvFromSourceFluentImpl(V1EnvFromSource instance) { this.withConfigMapRef(instance.getConfigMapRef()); this.withPrefix(instance.getPrefix()); @@ -39,19 +39,22 @@ public V1EnvFromSourceFluentImpl(io.kubernetes.client.openapi.models.V1EnvFromSo * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ConfigMapEnvSource getConfigMapRef() { + public V1ConfigMapEnvSource getConfigMapRef() { return this.configMapRef != null ? this.configMapRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ConfigMapEnvSource buildConfigMapRef() { + public V1ConfigMapEnvSource buildConfigMapRef() { return this.configMapRef != null ? this.configMapRef.build() : null; } - public A withConfigMapRef(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource configMapRef) { + public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { _visitables.get("configMapRef").remove(this.configMapRef); if (configMapRef != null) { this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); _visitables.get("configMapRef").add(this.configMapRef); + } else { + this.configMapRef = null; + _visitables.get("configMapRef").remove(this.configMapRef); } return (A) this; } @@ -64,39 +67,35 @@ public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRef() { return new V1EnvFromSourceFluentImpl.ConfigMapRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - withNewConfigMapRefLike(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource item) { + public V1EnvFromSourceFluent.ConfigMapRefNested withNewConfigMapRefLike( + V1ConfigMapEnvSource item) { return new V1EnvFromSourceFluentImpl.ConfigMapRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - editConfigMapRef() { + public V1EnvFromSourceFluent.ConfigMapRefNested editConfigMapRef() { return withNewConfigMapRefLike(getConfigMapRef()); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - editOrNewConfigMapRef() { + public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRef() { return withNewConfigMapRefLike( - getConfigMapRef() != null - ? getConfigMapRef() - : new io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceBuilder().build()); + getConfigMapRef() != null ? getConfigMapRef() : new V1ConfigMapEnvSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested - editOrNewConfigMapRefLike(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource item) { + public V1EnvFromSourceFluent.ConfigMapRefNested editOrNewConfigMapRefLike( + V1ConfigMapEnvSource item) { return withNewConfigMapRefLike(getConfigMapRef() != null ? getConfigMapRef() : item); } - public java.lang.String getPrefix() { + public String getPrefix() { return this.prefix; } - public A withPrefix(java.lang.String prefix) { + public A withPrefix(String prefix) { this.prefix = prefix; return (A) this; } - public java.lang.Boolean hasPrefix() { + public Boolean hasPrefix() { return this.prefix != null; } @@ -105,25 +104,28 @@ public java.lang.Boolean hasPrefix() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretEnvSource getSecretRef() { + @Deprecated + public V1SecretEnvSource getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretEnvSource buildSecretRef() { + public V1SecretEnvSource buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretEnvSource secretRef) { + public A withSecretRef(V1SecretEnvSource secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { this.secretRef = new V1SecretEnvSourceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -131,27 +133,20 @@ public V1EnvFromSourceFluent.SecretRefNested withNewSecretRef() { return new V1EnvFromSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretEnvSource item) { - return new io.kubernetes.client.openapi.models.V1EnvFromSourceFluentImpl.SecretRefNestedImpl( - item); + public V1EnvFromSourceFluent.SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { + return new V1EnvFromSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - editSecretRef() { + public V1EnvFromSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretEnvSourceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretEnvSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretEnvSource item) { + public V1EnvFromSourceFluent.SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } @@ -171,7 +166,7 @@ public int hashCode() { return java.util.Objects.hash(configMapRef, prefix, secretRef, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (configMapRef != null) { @@ -192,17 +187,16 @@ public java.lang.String toString() { class ConfigMapRefNestedImpl extends V1ConfigMapEnvSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.ConfigMapRefNested, - Nested { - ConfigMapRefNestedImpl(io.kubernetes.client.openapi.models.V1ConfigMapEnvSource item) { + implements V1EnvFromSourceFluent.ConfigMapRefNested, Nested { + ConfigMapRefNestedImpl(V1ConfigMapEnvSource item) { this.builder = new V1ConfigMapEnvSourceBuilder(this, item); } ConfigMapRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceBuilder(this); + this.builder = new V1ConfigMapEnvSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ConfigMapEnvSourceBuilder builder; + V1ConfigMapEnvSourceBuilder builder; public N and() { return (N) V1EnvFromSourceFluentImpl.this.withConfigMapRef(builder.build()); @@ -215,17 +209,16 @@ public N endConfigMapRef() { class SecretRefNestedImpl extends V1SecretEnvSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvFromSourceFluent.SecretRefNested, - io.kubernetes.client.fluent.Nested { + implements V1EnvFromSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretEnvSource item) { this.builder = new V1SecretEnvSourceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretEnvSourceBuilder(this); + this.builder = new V1SecretEnvSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretEnvSourceBuilder builder; + V1SecretEnvSourceBuilder builder; public N and() { return (N) V1EnvFromSourceFluentImpl.this.withSecretRef(builder.build()); 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 a044a9d8c1..11d1d715e6 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EnvVarBuilder extends V1EnvVarFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1EnvVarBuilder() { this(false); } @@ -28,22 +28,15 @@ public V1EnvVarBuilder(V1EnvVarFluent fluent) { this(fluent, false); } - public V1EnvVarBuilder( - io.kubernetes.client.openapi.models.V1EnvVarFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EnvVarBuilder(V1EnvVarFluent fluent, Boolean validationEnabled) { this(fluent, new V1EnvVar(), validationEnabled); } - public V1EnvVarBuilder( - io.kubernetes.client.openapi.models.V1EnvVarFluent fluent, - io.kubernetes.client.openapi.models.V1EnvVar instance) { + public V1EnvVarBuilder(V1EnvVarFluent fluent, V1EnvVar instance) { this(fluent, instance, false); } - public V1EnvVarBuilder( - io.kubernetes.client.openapi.models.V1EnvVarFluent fluent, - io.kubernetes.client.openapi.models.V1EnvVar instance, - java.lang.Boolean validationEnabled) { + public V1EnvVarBuilder(V1EnvVarFluent fluent, V1EnvVar instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -54,12 +47,11 @@ public V1EnvVarBuilder( this.validationEnabled = validationEnabled; } - public V1EnvVarBuilder(io.kubernetes.client.openapi.models.V1EnvVar instance) { + public V1EnvVarBuilder(V1EnvVar instance) { this(instance, false); } - public V1EnvVarBuilder( - io.kubernetes.client.openapi.models.V1EnvVar instance, java.lang.Boolean validationEnabled) { + public V1EnvVarBuilder(V1EnvVar instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -70,10 +62,10 @@ public V1EnvVarBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EnvVarFluent fluent; - java.lang.Boolean validationEnabled; + V1EnvVarFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EnvVar build() { + public V1EnvVar build() { V1EnvVar buildable = new V1EnvVar(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); 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 61e1cb3fd1..0c41da0712 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 @@ -19,15 +19,15 @@ public interface V1EnvVarFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getValue(); + public String getValue(); - public A withValue(java.lang.String value); + public A withValue(String value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); /** * This method has been deprecated, please use method buildValueFrom instead. @@ -37,23 +37,21 @@ public interface V1EnvVarFluent> extends Fluent { @Deprecated public V1EnvVarSource getValueFrom(); - public io.kubernetes.client.openapi.models.V1EnvVarSource buildValueFrom(); + public V1EnvVarSource buildValueFrom(); - public A withValueFrom(io.kubernetes.client.openapi.models.V1EnvVarSource valueFrom); + public A withValueFrom(V1EnvVarSource valueFrom); - public java.lang.Boolean hasValueFrom(); + public Boolean hasValueFrom(); public V1EnvVarFluent.ValueFromNested withNewValueFrom(); - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested withNewValueFromLike( - io.kubernetes.client.openapi.models.V1EnvVarSource item); + public V1EnvVarFluent.ValueFromNested withNewValueFromLike(V1EnvVarSource item); - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested editValueFrom(); + public V1EnvVarFluent.ValueFromNested editValueFrom(); - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested editOrNewValueFrom(); + public V1EnvVarFluent.ValueFromNested editOrNewValueFrom(); - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested - editOrNewValueFromLike(io.kubernetes.client.openapi.models.V1EnvVarSource item); + public V1EnvVarFluent.ValueFromNested editOrNewValueFromLike(V1EnvVarSource item); public interface ValueFromNested extends Nested, V1EnvVarSourceFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java index 70a28c549e..c43416a11c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluentImpl.java @@ -21,7 +21,7 @@ public class V1EnvVarFluentImpl> extends BaseFluent< implements V1EnvVarFluent { public V1EnvVarFluentImpl() {} - public V1EnvVarFluentImpl(io.kubernetes.client.openapi.models.V1EnvVar instance) { + public V1EnvVarFluentImpl(V1EnvVar instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); @@ -30,14 +30,14 @@ public V1EnvVarFluentImpl(io.kubernetes.client.openapi.models.V1EnvVar instance) } private String name; - private java.lang.String value; + private String value; private V1EnvVarSourceBuilder valueFrom; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -46,16 +46,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getValue() { + public String getValue() { return this.value; } - public A withValue(java.lang.String value) { + public A withValue(String value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -65,24 +65,27 @@ public java.lang.Boolean hasValue() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1EnvVarSource getValueFrom() { + public V1EnvVarSource getValueFrom() { return this.valueFrom != null ? this.valueFrom.build() : null; } - public io.kubernetes.client.openapi.models.V1EnvVarSource buildValueFrom() { + public V1EnvVarSource buildValueFrom() { return this.valueFrom != null ? this.valueFrom.build() : null; } - public A withValueFrom(io.kubernetes.client.openapi.models.V1EnvVarSource valueFrom) { + public A withValueFrom(V1EnvVarSource valueFrom) { _visitables.get("valueFrom").remove(this.valueFrom); if (valueFrom != null) { this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); _visitables.get("valueFrom").add(this.valueFrom); + } else { + this.valueFrom = null; + _visitables.get("valueFrom").remove(this.valueFrom); } return (A) this; } - public java.lang.Boolean hasValueFrom() { + public Boolean hasValueFrom() { return this.valueFrom != null; } @@ -90,25 +93,20 @@ public V1EnvVarFluent.ValueFromNested withNewValueFrom() { return new V1EnvVarFluentImpl.ValueFromNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested withNewValueFromLike( - io.kubernetes.client.openapi.models.V1EnvVarSource item) { + public V1EnvVarFluent.ValueFromNested withNewValueFromLike(V1EnvVarSource item) { return new V1EnvVarFluentImpl.ValueFromNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested editValueFrom() { + public V1EnvVarFluent.ValueFromNested editValueFrom() { return withNewValueFromLike(getValueFrom()); } - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested - editOrNewValueFrom() { + public V1EnvVarFluent.ValueFromNested editOrNewValueFrom() { return withNewValueFromLike( - getValueFrom() != null - ? getValueFrom() - : new io.kubernetes.client.openapi.models.V1EnvVarSourceBuilder().build()); + getValueFrom() != null ? getValueFrom() : new V1EnvVarSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested - editOrNewValueFromLike(io.kubernetes.client.openapi.models.V1EnvVarSource item) { + public V1EnvVarFluent.ValueFromNested editOrNewValueFromLike(V1EnvVarSource item) { return withNewValueFromLike(getValueFrom() != null ? getValueFrom() : item); } @@ -127,7 +125,7 @@ public int hashCode() { return java.util.Objects.hash(name, value, valueFrom, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { @@ -147,16 +145,16 @@ public java.lang.String toString() { } class ValueFromNestedImpl extends V1EnvVarSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvVarFluent.ValueFromNested, Nested { - ValueFromNestedImpl(io.kubernetes.client.openapi.models.V1EnvVarSource item) { + implements V1EnvVarFluent.ValueFromNested, Nested { + ValueFromNestedImpl(V1EnvVarSource item) { this.builder = new V1EnvVarSourceBuilder(this, item); } ValueFromNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EnvVarSourceBuilder(this); + this.builder = new V1EnvVarSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EnvVarSourceBuilder builder; + V1EnvVarSourceBuilder builder; public N and() { return (N) V1EnvVarFluentImpl.this.withValueFrom(builder.build()); 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 a8b355b0f2..4eeec3d5eb 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EnvVarSource, - io.kubernetes.client.openapi.models.V1EnvVarSourceBuilder> { + implements VisitableBuilder { public V1EnvVarSourceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent) { this(fluent, false); } - public V1EnvVarSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvVarSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1EnvVarSource(), validationEnabled); } - public V1EnvVarSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvVarSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EnvVarSource instance) { + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent, V1EnvVarSource instance) { this(fluent, instance, false); } public V1EnvVarSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvVarSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EnvVarSource instance, - java.lang.Boolean validationEnabled) { + V1EnvVarSourceFluent fluent, V1EnvVarSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConfigMapKeyRef(instance.getConfigMapKeyRef()); @@ -58,13 +50,11 @@ public V1EnvVarSourceBuilder( this.validationEnabled = validationEnabled; } - public V1EnvVarSourceBuilder(io.kubernetes.client.openapi.models.V1EnvVarSource instance) { + public V1EnvVarSourceBuilder(V1EnvVarSource instance) { this(instance, false); } - public V1EnvVarSourceBuilder( - io.kubernetes.client.openapi.models.V1EnvVarSource instance, - java.lang.Boolean validationEnabled) { + public V1EnvVarSourceBuilder(V1EnvVarSource instance, Boolean validationEnabled) { this.fluent = this; this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); @@ -77,10 +67,10 @@ public V1EnvVarSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EnvVarSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1EnvVarSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EnvVarSource build() { + public V1EnvVarSource build() { V1EnvVarSource buildable = new V1EnvVarSource(); buildable.setConfigMapKeyRef(fluent.getConfigMapKeyRef()); buildable.setFieldRef(fluent.getFieldRef()); 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 fb28e3a0aa..88060fbd3e 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 @@ -26,111 +26,99 @@ public interface V1EnvVarSourceFluent> extends @Deprecated public V1ConfigMapKeySelector getConfigMapKeyRef(); - public io.kubernetes.client.openapi.models.V1ConfigMapKeySelector buildConfigMapKeyRef(); + public V1ConfigMapKeySelector buildConfigMapKeyRef(); - public A withConfigMapKeyRef( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector configMapKeyRef); + public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef); public Boolean hasConfigMapKeyRef(); public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - withNewConfigMapKeyRefLike(io.kubernetes.client.openapi.models.V1ConfigMapKeySelector item); + public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRefLike( + V1ConfigMapKeySelector item); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - editConfigMapKeyRef(); + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editConfigMapKeyRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - editOrNewConfigMapKeyRef(); + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - editOrNewConfigMapKeyRefLike(io.kubernetes.client.openapi.models.V1ConfigMapKeySelector item); + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike( + V1ConfigMapKeySelector item); /** * This method has been deprecated, please use method buildFieldRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectFieldSelector getFieldRef(); - public io.kubernetes.client.openapi.models.V1ObjectFieldSelector buildFieldRef(); + public V1ObjectFieldSelector buildFieldRef(); - public A withFieldRef(io.kubernetes.client.openapi.models.V1ObjectFieldSelector fieldRef); + public A withFieldRef(V1ObjectFieldSelector fieldRef); - public java.lang.Boolean hasFieldRef(); + public Boolean hasFieldRef(); public V1EnvVarSourceFluent.FieldRefNested withNewFieldRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested - withNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item); + public V1EnvVarSourceFluent.FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested editFieldRef(); + public V1EnvVarSourceFluent.FieldRefNested editFieldRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested - editOrNewFieldRef(); + public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested - editOrNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item); + public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item); /** * This method has been deprecated, please use method buildResourceFieldRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceFieldSelector getResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1ResourceFieldSelector buildResourceFieldRef(); + public V1ResourceFieldSelector buildResourceFieldRef(); - public A withResourceFieldRef( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector resourceFieldRef); + public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef); - public java.lang.Boolean hasResourceFieldRef(); + public Boolean hasResourceFieldRef(); public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - withNewResourceFieldRefLike(io.kubernetes.client.openapi.models.V1ResourceFieldSelector item); + public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRefLike( + V1ResourceFieldSelector item); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - editResourceFieldRef(); + public V1EnvVarSourceFluent.ResourceFieldRefNested editResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - editOrNewResourceFieldRef(); + public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - editOrNewResourceFieldRefLike( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector item); + public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( + V1ResourceFieldSelector item); /** * This method has been deprecated, please use method buildSecretKeyRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecretKeySelector getSecretKeyRef(); - public io.kubernetes.client.openapi.models.V1SecretKeySelector buildSecretKeyRef(); + public V1SecretKeySelector buildSecretKeyRef(); - public A withSecretKeyRef(io.kubernetes.client.openapi.models.V1SecretKeySelector secretKeyRef); + public A withSecretKeyRef(V1SecretKeySelector secretKeyRef); - public java.lang.Boolean hasSecretKeyRef(); + public Boolean hasSecretKeyRef(); public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - withNewSecretKeyRefLike(io.kubernetes.client.openapi.models.V1SecretKeySelector item); + public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRefLike( + V1SecretKeySelector item); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - editSecretKeyRef(); + public V1EnvVarSourceFluent.SecretKeyRefNested editSecretKeyRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - editOrNewSecretKeyRef(); + public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRef(); - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - editOrNewSecretKeyRefLike(io.kubernetes.client.openapi.models.V1SecretKeySelector item); + public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRefLike( + V1SecretKeySelector item); public interface ConfigMapKeyRefNested extends Nested, @@ -141,15 +129,14 @@ public interface ConfigMapKeyRefNested } public interface FieldRefNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectFieldSelectorFluent> { + extends Nested, V1ObjectFieldSelectorFluent> { public N and(); public N endFieldRef(); } public interface ResourceFieldRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceFieldSelectorFluent> { public N and(); @@ -157,8 +144,7 @@ public interface ResourceFieldRefNested } public interface SecretKeyRefNested - extends io.kubernetes.client.fluent.Nested, - V1SecretKeySelectorFluent> { + extends Nested, V1SecretKeySelectorFluent> { public N and(); public N endSecretKeyRef(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java index 11e5e3fa5d..de3d9c1124 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluentImpl.java @@ -21,7 +21,7 @@ public class V1EnvVarSourceFluentImpl> extends implements V1EnvVarSourceFluent { public V1EnvVarSourceFluentImpl() {} - public V1EnvVarSourceFluentImpl(io.kubernetes.client.openapi.models.V1EnvVarSource instance) { + public V1EnvVarSourceFluentImpl(V1EnvVarSource instance) { this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); this.withFieldRef(instance.getFieldRef()); @@ -46,17 +46,18 @@ public V1ConfigMapKeySelector getConfigMapKeyRef() { return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ConfigMapKeySelector buildConfigMapKeyRef() { + public V1ConfigMapKeySelector buildConfigMapKeyRef() { return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; } - public A withConfigMapKeyRef( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector configMapKeyRef) { + public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { _visitables.get("configMapKeyRef").remove(this.configMapKeyRef); if (configMapKeyRef != null) { - this.configMapKeyRef = - new io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorBuilder(configMapKeyRef); + this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); _visitables.get("configMapKeyRef").add(this.configMapKeyRef); + } else { + this.configMapKeyRef = null; + _visitables.get("configMapKeyRef").remove(this.configMapKeyRef); } return (A) this; } @@ -69,27 +70,24 @@ public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRef() { return new V1EnvVarSourceFluentImpl.ConfigMapKeyRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - withNewConfigMapKeyRefLike(io.kubernetes.client.openapi.models.V1ConfigMapKeySelector item) { + public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRefLike( + V1ConfigMapKeySelector item) { return new V1EnvVarSourceFluentImpl.ConfigMapKeyRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - editConfigMapKeyRef() { + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editConfigMapKeyRef() { return withNewConfigMapKeyRefLike(getConfigMapKeyRef()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - editOrNewConfigMapKeyRef() { + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRef() { return withNewConfigMapKeyRefLike( getConfigMapKeyRef() != null ? getConfigMapKeyRef() - : new io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorBuilder().build()); + : new V1ConfigMapKeySelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested - editOrNewConfigMapKeyRefLike( - io.kubernetes.client.openapi.models.V1ConfigMapKeySelector item) { + public V1EnvVarSourceFluent.ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike( + V1ConfigMapKeySelector item) { return withNewConfigMapKeyRefLike(getConfigMapKeyRef() != null ? getConfigMapKeyRef() : item); } @@ -98,25 +96,28 @@ public V1EnvVarSourceFluent.ConfigMapKeyRefNested withNewConfigMapKeyRef() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectFieldSelector getFieldRef() { + @Deprecated + public V1ObjectFieldSelector getFieldRef() { return this.fieldRef != null ? this.fieldRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectFieldSelector buildFieldRef() { + public V1ObjectFieldSelector buildFieldRef() { return this.fieldRef != null ? this.fieldRef.build() : null; } - public A withFieldRef(io.kubernetes.client.openapi.models.V1ObjectFieldSelector fieldRef) { + public A withFieldRef(V1ObjectFieldSelector fieldRef) { _visitables.get("fieldRef").remove(this.fieldRef); if (fieldRef != null) { this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); _visitables.get("fieldRef").add(this.fieldRef); + } else { + this.fieldRef = null; + _visitables.get("fieldRef").remove(this.fieldRef); } return (A) this; } - public java.lang.Boolean hasFieldRef() { + public Boolean hasFieldRef() { return this.fieldRef != null; } @@ -124,26 +125,20 @@ public V1EnvVarSourceFluent.FieldRefNested withNewFieldRef() { return new V1EnvVarSourceFluentImpl.FieldRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested - withNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item) { - return new io.kubernetes.client.openapi.models.V1EnvVarSourceFluentImpl.FieldRefNestedImpl( - item); + public V1EnvVarSourceFluent.FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { + return new V1EnvVarSourceFluentImpl.FieldRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested editFieldRef() { + public V1EnvVarSourceFluent.FieldRefNested editFieldRef() { return withNewFieldRefLike(getFieldRef()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested - editOrNewFieldRef() { + public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRef() { return withNewFieldRefLike( - getFieldRef() != null - ? getFieldRef() - : new io.kubernetes.client.openapi.models.V1ObjectFieldSelectorBuilder().build()); + getFieldRef() != null ? getFieldRef() : new V1ObjectFieldSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested - editOrNewFieldRefLike(io.kubernetes.client.openapi.models.V1ObjectFieldSelector item) { + public V1EnvVarSourceFluent.FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { return withNewFieldRefLike(getFieldRef() != null ? getFieldRef() : item); } @@ -152,26 +147,28 @@ public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested withNewResourceFieldRef() return new V1EnvVarSourceFluentImpl.ResourceFieldRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - withNewResourceFieldRefLike( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector item) { - return new io.kubernetes.client.openapi.models.V1EnvVarSourceFluentImpl - .ResourceFieldRefNestedImpl(item); + public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRefLike( + V1ResourceFieldSelector item) { + return new V1EnvVarSourceFluentImpl.ResourceFieldRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - editResourceFieldRef() { + public V1EnvVarSourceFluent.ResourceFieldRefNested editResourceFieldRef() { return withNewResourceFieldRefLike(getResourceFieldRef()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - editOrNewResourceFieldRef() { + public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRef() { return withNewResourceFieldRefLike( getResourceFieldRef() != null ? getResourceFieldRef() - : new io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder().build()); + : new V1ResourceFieldSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested - editOrNewResourceFieldRefLike( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector item) { + public V1EnvVarSourceFluent.ResourceFieldRefNested editOrNewResourceFieldRefLike( + V1ResourceFieldSelector item) { return withNewResourceFieldRefLike( getResourceFieldRef() != null ? getResourceFieldRef() : item); } @@ -211,26 +203,28 @@ public V1EnvVarSourceFluent.ResourceFieldRefNested withNewResourceFieldRef() * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecretKeySelector getSecretKeyRef() { return this.secretKeyRef != null ? this.secretKeyRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretKeySelector buildSecretKeyRef() { + public V1SecretKeySelector buildSecretKeyRef() { return this.secretKeyRef != null ? this.secretKeyRef.build() : null; } - public A withSecretKeyRef(io.kubernetes.client.openapi.models.V1SecretKeySelector secretKeyRef) { + public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { _visitables.get("secretKeyRef").remove(this.secretKeyRef); if (secretKeyRef != null) { - this.secretKeyRef = - new io.kubernetes.client.openapi.models.V1SecretKeySelectorBuilder(secretKeyRef); + this.secretKeyRef = new V1SecretKeySelectorBuilder(secretKeyRef); _visitables.get("secretKeyRef").add(this.secretKeyRef); + } else { + this.secretKeyRef = null; + _visitables.get("secretKeyRef").remove(this.secretKeyRef); } return (A) this; } - public java.lang.Boolean hasSecretKeyRef() { + public Boolean hasSecretKeyRef() { return this.secretKeyRef != null; } @@ -238,27 +232,22 @@ public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRef() { return new V1EnvVarSourceFluentImpl.SecretKeyRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - withNewSecretKeyRefLike(io.kubernetes.client.openapi.models.V1SecretKeySelector item) { - return new io.kubernetes.client.openapi.models.V1EnvVarSourceFluentImpl.SecretKeyRefNestedImpl( - item); + public V1EnvVarSourceFluent.SecretKeyRefNested withNewSecretKeyRefLike( + V1SecretKeySelector item) { + return new V1EnvVarSourceFluentImpl.SecretKeyRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - editSecretKeyRef() { + public V1EnvVarSourceFluent.SecretKeyRefNested editSecretKeyRef() { return withNewSecretKeyRefLike(getSecretKeyRef()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - editOrNewSecretKeyRef() { + public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRef() { return withNewSecretKeyRefLike( - getSecretKeyRef() != null - ? getSecretKeyRef() - : new io.kubernetes.client.openapi.models.V1SecretKeySelectorBuilder().build()); + getSecretKeyRef() != null ? getSecretKeyRef() : new V1SecretKeySelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested - editOrNewSecretKeyRefLike(io.kubernetes.client.openapi.models.V1SecretKeySelector item) { + public V1EnvVarSourceFluent.SecretKeyRefNested editOrNewSecretKeyRefLike( + V1SecretKeySelector item) { return withNewSecretKeyRefLike(getSecretKeyRef() != null ? getSecretKeyRef() : item); } @@ -308,17 +297,16 @@ public String toString() { class ConfigMapKeyRefNestedImpl extends V1ConfigMapKeySelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ConfigMapKeyRefNested, - Nested { - ConfigMapKeyRefNestedImpl(io.kubernetes.client.openapi.models.V1ConfigMapKeySelector item) { + implements V1EnvVarSourceFluent.ConfigMapKeyRefNested, Nested { + ConfigMapKeyRefNestedImpl(V1ConfigMapKeySelector item) { this.builder = new V1ConfigMapKeySelectorBuilder(this, item); } ConfigMapKeyRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorBuilder(this); + this.builder = new V1ConfigMapKeySelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1ConfigMapKeySelectorBuilder builder; + V1ConfigMapKeySelectorBuilder builder; public N and() { return (N) V1EnvVarSourceFluentImpl.this.withConfigMapKeyRef(builder.build()); @@ -331,17 +319,16 @@ public N endConfigMapKeyRef() { class FieldRefNestedImpl extends V1ObjectFieldSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.FieldRefNested, - io.kubernetes.client.fluent.Nested { + implements V1EnvVarSourceFluent.FieldRefNested, Nested { FieldRefNestedImpl(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } FieldRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectFieldSelectorBuilder(this); + this.builder = new V1ObjectFieldSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectFieldSelectorBuilder builder; + V1ObjectFieldSelectorBuilder builder; public N and() { return (N) V1EnvVarSourceFluentImpl.this.withFieldRef(builder.build()); @@ -354,17 +341,16 @@ public N endFieldRef() { class ResourceFieldRefNestedImpl extends V1ResourceFieldSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.ResourceFieldRefNested, - io.kubernetes.client.fluent.Nested { + implements V1EnvVarSourceFluent.ResourceFieldRefNested, Nested { ResourceFieldRefNestedImpl(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } ResourceFieldRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder(this); + this.builder = new V1ResourceFieldSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorBuilder builder; + V1ResourceFieldSelectorBuilder builder; public N and() { return (N) V1EnvVarSourceFluentImpl.this.withResourceFieldRef(builder.build()); @@ -377,17 +363,16 @@ public N endResourceFieldRef() { class SecretKeyRefNestedImpl extends V1SecretKeySelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1EnvVarSourceFluent.SecretKeyRefNested, - io.kubernetes.client.fluent.Nested { - SecretKeyRefNestedImpl(io.kubernetes.client.openapi.models.V1SecretKeySelector item) { + implements V1EnvVarSourceFluent.SecretKeyRefNested, Nested { + SecretKeyRefNestedImpl(V1SecretKeySelector item) { this.builder = new V1SecretKeySelectorBuilder(this, item); } SecretKeyRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretKeySelectorBuilder(this); + this.builder = new V1SecretKeySelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretKeySelectorBuilder builder; + V1SecretKeySelectorBuilder builder; public N and() { return (N) V1EnvVarSourceFluentImpl.this.withSecretKeyRef(builder.build()); 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 908c250813..40563f9a2d 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 @@ -16,8 +16,7 @@ public class V1EphemeralContainerBuilder extends V1EphemeralContainerFluentImpl - implements VisitableBuilder< - V1EphemeralContainer, io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder> { + implements VisitableBuilder { public V1EphemeralContainerBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent) { } public V1EphemeralContainerBuilder( - io.kubernetes.client.openapi.models.V1EphemeralContainerFluent fluent, - java.lang.Boolean validationEnabled) { + V1EphemeralContainerFluent fluent, Boolean validationEnabled) { this(fluent, new V1EphemeralContainer(), validationEnabled); } public V1EphemeralContainerBuilder( - io.kubernetes.client.openapi.models.V1EphemeralContainerFluent fluent, - io.kubernetes.client.openapi.models.V1EphemeralContainer instance) { + V1EphemeralContainerFluent fluent, V1EphemeralContainer instance) { this(fluent, instance, false); } public V1EphemeralContainerBuilder( - io.kubernetes.client.openapi.models.V1EphemeralContainerFluent fluent, - io.kubernetes.client.openapi.models.V1EphemeralContainer instance, - java.lang.Boolean validationEnabled) { + V1EphemeralContainerFluent fluent, + V1EphemeralContainer instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withArgs(instance.getArgs()); @@ -96,14 +93,11 @@ public V1EphemeralContainerBuilder( this.validationEnabled = validationEnabled; } - public V1EphemeralContainerBuilder( - io.kubernetes.client.openapi.models.V1EphemeralContainer instance) { + public V1EphemeralContainerBuilder(V1EphemeralContainer instance) { this(instance, false); } - public V1EphemeralContainerBuilder( - io.kubernetes.client.openapi.models.V1EphemeralContainer instance, - java.lang.Boolean validationEnabled) { + public V1EphemeralContainerBuilder(V1EphemeralContainer instance, Boolean validationEnabled) { this.fluent = this; this.withArgs(instance.getArgs()); @@ -154,10 +148,10 @@ public V1EphemeralContainerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EphemeralContainerFluent fluent; - java.lang.Boolean validationEnabled; + V1EphemeralContainerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EphemeralContainer build() { + public V1EphemeralContainer build() { V1EphemeralContainer buildable = new V1EphemeralContainer(); buildable.setArgs(fluent.getArgs()); buildable.setCommand(fluent.getCommand()); 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 5bb6a895ac..f548382cbf 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 @@ -23,80 +23,77 @@ public interface V1EphemeralContainerFluent { public A addToArgs(Integer index, String item); - public A setToArgs(java.lang.Integer index, java.lang.String item); + public A setToArgs(Integer index, String item); public A addToArgs(java.lang.String... items); - public A addAllToArgs(Collection items); + public A addAllToArgs(Collection items); public A removeFromArgs(java.lang.String... items); - public A removeAllFromArgs(java.util.Collection items); + public A removeAllFromArgs(Collection items); - public List getArgs(); + public List getArgs(); - public java.lang.String getArg(java.lang.Integer index); + public String getArg(Integer index); - public java.lang.String getFirstArg(); + public String getFirstArg(); - public java.lang.String getLastArg(); + public String getLastArg(); - public java.lang.String getMatchingArg(Predicate predicate); + public String getMatchingArg(Predicate predicate); - public Boolean hasMatchingArg(java.util.function.Predicate predicate); + public Boolean hasMatchingArg(Predicate predicate); - public A withArgs(java.util.List args); + public A withArgs(List args); public A withArgs(java.lang.String... args); - public java.lang.Boolean hasArgs(); + public Boolean hasArgs(); - public A addToCommand(java.lang.Integer index, java.lang.String item); + public A addToCommand(Integer index, String item); - public A setToCommand(java.lang.Integer index, java.lang.String item); + public A setToCommand(Integer index, String item); public A addToCommand(java.lang.String... items); - public A addAllToCommand(java.util.Collection items); + public A addAllToCommand(Collection items); public A removeFromCommand(java.lang.String... items); - public A removeAllFromCommand(java.util.Collection items); + public A removeAllFromCommand(Collection items); - public java.util.List getCommand(); + public List getCommand(); - public java.lang.String getCommand(java.lang.Integer index); + public String getCommand(Integer index); - public java.lang.String getFirstCommand(); + public String getFirstCommand(); - public java.lang.String getLastCommand(); + public String getLastCommand(); - public java.lang.String getMatchingCommand( - java.util.function.Predicate predicate); + public String getMatchingCommand(Predicate predicate); - public java.lang.Boolean hasMatchingCommand( - java.util.function.Predicate predicate); + public Boolean hasMatchingCommand(Predicate predicate); - public A withCommand(java.util.List command); + public A withCommand(List command); public A withCommand(java.lang.String... command); - public java.lang.Boolean hasCommand(); + public Boolean hasCommand(); - public A addToEnv(java.lang.Integer index, V1EnvVar item); + public A addToEnv(Integer index, V1EnvVar item); - public A setToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item); + public A setToEnv(Integer index, V1EnvVar item); public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A addAllToEnv(java.util.Collection items); + public A addAllToEnv(Collection items); public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items); - public A removeAllFromEnv( - java.util.Collection items); + public A removeAllFromEnv(Collection items); - public A removeMatchingFromEnv(java.util.function.Predicate predicate); + public A removeMatchingFromEnv(Predicate predicate); /** * This method has been deprecated, please use method buildEnv instead. @@ -104,563 +101,474 @@ public A removeAllFromEnv( * @return The buildable object. */ @Deprecated - public java.util.List getEnv(); + public List getEnv(); - public java.util.List buildEnv(); + public List buildEnv(); - public io.kubernetes.client.openapi.models.V1EnvVar buildEnv(java.lang.Integer index); + public V1EnvVar buildEnv(Integer index); - public io.kubernetes.client.openapi.models.V1EnvVar buildFirstEnv(); + public V1EnvVar buildFirstEnv(); - public io.kubernetes.client.openapi.models.V1EnvVar buildLastEnv(); + public V1EnvVar buildLastEnv(); - public io.kubernetes.client.openapi.models.V1EnvVar buildMatchingEnv( - java.util.function.Predicate predicate); + public V1EnvVar buildMatchingEnv(Predicate predicate); - public java.lang.Boolean hasMatchingEnv( - java.util.function.Predicate predicate); + public Boolean hasMatchingEnv(Predicate predicate); - public A withEnv(java.util.List env); + public A withEnv(List env); public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env); - public java.lang.Boolean hasEnv(); + public Boolean hasEnv(); public V1EphemeralContainerFluent.EnvNested addNewEnv(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested addNewEnvLike( - io.kubernetes.client.openapi.models.V1EnvVar item); + public V1EphemeralContainerFluent.EnvNested addNewEnvLike(V1EnvVar item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested setNewEnvLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item); + public V1EphemeralContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested editEnv( - java.lang.Integer index); + public V1EphemeralContainerFluent.EnvNested editEnv(Integer index); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested editFirstEnv(); + public V1EphemeralContainerFluent.EnvNested editFirstEnv(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested editLastEnv(); + public V1EphemeralContainerFluent.EnvNested editLastEnv(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested - editMatchingEnv( - java.util.function.Predicate - predicate); + public V1EphemeralContainerFluent.EnvNested editMatchingEnv( + Predicate predicate); - public A addToEnvFrom(java.lang.Integer index, V1EnvFromSource item); + public A addToEnvFrom(Integer index, V1EnvFromSource item); - public A setToEnvFrom( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item); + public A setToEnvFrom(Integer index, V1EnvFromSource item); public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A addAllToEnvFrom( - java.util.Collection items); + public A addAllToEnvFrom(Collection items); public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items); - public A removeAllFromEnvFrom( - java.util.Collection items); + public A removeAllFromEnvFrom(Collection items); - public A removeMatchingFromEnvFrom( - java.util.function.Predicate predicate); + public A removeMatchingFromEnvFrom(Predicate predicate); /** * This method has been deprecated, please use method buildEnvFrom instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getEnvFrom(); + @Deprecated + public List getEnvFrom(); - public java.util.List buildEnvFrom(); + public List buildEnvFrom(); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildEnvFrom(java.lang.Integer index); + public V1EnvFromSource buildEnvFrom(Integer index); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildFirstEnvFrom(); + public V1EnvFromSource buildFirstEnvFrom(); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildLastEnvFrom(); + public V1EnvFromSource buildLastEnvFrom(); - public io.kubernetes.client.openapi.models.V1EnvFromSource buildMatchingEnvFrom( - java.util.function.Predicate - predicate); + public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate); - public java.lang.Boolean hasMatchingEnvFrom( - java.util.function.Predicate - predicate); + public Boolean hasMatchingEnvFrom(Predicate predicate); - public A withEnvFrom(java.util.List envFrom); + public A withEnvFrom(List envFrom); public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom); - public java.lang.Boolean hasEnvFrom(); + public Boolean hasEnvFrom(); public V1EphemeralContainerFluent.EnvFromNested addNewEnvFrom(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - addNewEnvFromLike(io.kubernetes.client.openapi.models.V1EnvFromSource item); + public V1EphemeralContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - setNewEnvFromLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item); + public V1EphemeralContainerFluent.EnvFromNested setNewEnvFromLike( + Integer index, V1EnvFromSource item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editEnvFrom(java.lang.Integer index); + public V1EphemeralContainerFluent.EnvFromNested editEnvFrom(Integer index); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editFirstEnvFrom(); + public V1EphemeralContainerFluent.EnvFromNested editFirstEnvFrom(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editLastEnvFrom(); + public V1EphemeralContainerFluent.EnvFromNested editLastEnvFrom(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editMatchingEnvFrom( - java.util.function.Predicate - predicate); + public V1EphemeralContainerFluent.EnvFromNested editMatchingEnvFrom( + Predicate predicate); - public java.lang.String getImage(); + public String getImage(); - public A withImage(java.lang.String image); + public A withImage(String image); - public java.lang.Boolean hasImage(); + public Boolean hasImage(); - public java.lang.String getImagePullPolicy(); + public String getImagePullPolicy(); - public A withImagePullPolicy(java.lang.String imagePullPolicy); + public A withImagePullPolicy(String imagePullPolicy); - public java.lang.Boolean hasImagePullPolicy(); + public Boolean hasImagePullPolicy(); /** * This method has been deprecated, please use method buildLifecycle instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1Lifecycle getLifecycle(); - public io.kubernetes.client.openapi.models.V1Lifecycle buildLifecycle(); + public V1Lifecycle buildLifecycle(); - public A withLifecycle(io.kubernetes.client.openapi.models.V1Lifecycle lifecycle); + public A withLifecycle(V1Lifecycle lifecycle); - public java.lang.Boolean hasLifecycle(); + public Boolean hasLifecycle(); public V1EphemeralContainerFluent.LifecycleNested withNewLifecycle(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - withNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item); + public V1EphemeralContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - editLifecycle(); + public V1EphemeralContainerFluent.LifecycleNested editLifecycle(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - editOrNewLifecycle(); + public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycle(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - editOrNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item); + public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item); /** * This method has been deprecated, please use method buildLivenessProbe instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1Probe getLivenessProbe(); - public io.kubernetes.client.openapi.models.V1Probe buildLivenessProbe(); + public V1Probe buildLivenessProbe(); - public A withLivenessProbe(io.kubernetes.client.openapi.models.V1Probe livenessProbe); + public A withLivenessProbe(V1Probe livenessProbe); - public java.lang.Boolean hasLivenessProbe(); + public Boolean hasLivenessProbe(); public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - withNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - editLivenessProbe(); + public V1EphemeralContainerFluent.LivenessProbeNested editLivenessProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - editOrNewLivenessProbe(); + public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - editOrNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public A addToPorts(java.lang.Integer index, V1ContainerPort item); + public A addToPorts(Integer index, V1ContainerPort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item); + public A setToPorts(Integer index, V1ContainerPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A addAllToPorts( - java.util.Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(java.util.function.Predicate predicate); + public A removeMatchingFromPorts(Predicate predicate); /** * This method has been deprecated, please use method buildPorts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts(); + @Deprecated + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.V1ContainerPort buildPort(java.lang.Integer index); + public V1ContainerPort buildPort(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerPort buildFirstPort(); + public V1ContainerPort buildFirstPort(); - public io.kubernetes.client.openapi.models.V1ContainerPort buildLastPort(); + public V1ContainerPort buildLastPort(); - public io.kubernetes.client.openapi.models.V1ContainerPort buildMatchingPort( - java.util.function.Predicate - predicate); + public V1ContainerPort buildMatchingPort(Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1EphemeralContainerFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1ContainerPort item); + public V1EphemeralContainerFluent.PortsNested addNewPortLike(V1ContainerPort item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item); + public V1EphemeralContainerFluent.PortsNested setNewPortLike( + Integer index, V1ContainerPort item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested editPort( - java.lang.Integer index); + public V1EphemeralContainerFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - editFirstPort(); + public V1EphemeralContainerFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - editLastPort(); + public V1EphemeralContainerFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - editMatchingPort( - java.util.function.Predicate - predicate); + public V1EphemeralContainerFluent.PortsNested editMatchingPort( + Predicate predicate); /** * This method has been deprecated, please use method buildReadinessProbe instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getReadinessProbe(); + @Deprecated + public V1Probe getReadinessProbe(); - public io.kubernetes.client.openapi.models.V1Probe buildReadinessProbe(); + public V1Probe buildReadinessProbe(); - public A withReadinessProbe(io.kubernetes.client.openapi.models.V1Probe readinessProbe); + public A withReadinessProbe(V1Probe readinessProbe); - public java.lang.Boolean hasReadinessProbe(); + public Boolean hasReadinessProbe(); public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - withNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbeLike(V1Probe item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - editReadinessProbe(); + public V1EphemeralContainerFluent.ReadinessProbeNested editReadinessProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - editOrNewReadinessProbe(); + public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - editOrNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike( + V1Probe item); /** * This method has been deprecated, please use method buildResources instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceRequirements getResources(); - public io.kubernetes.client.openapi.models.V1ResourceRequirements buildResources(); + public V1ResourceRequirements buildResources(); - public A withResources(io.kubernetes.client.openapi.models.V1ResourceRequirements resources); + public A withResources(V1ResourceRequirements resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); public V1EphemeralContainerFluent.ResourcesNested withNewResources(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - withNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item); + public V1EphemeralContainerFluent.ResourcesNested withNewResourcesLike( + V1ResourceRequirements item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - editResources(); + public V1EphemeralContainerFluent.ResourcesNested editResources(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - editOrNewResources(); + public V1EphemeralContainerFluent.ResourcesNested editOrNewResources(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - editOrNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item); + public V1EphemeralContainerFluent.ResourcesNested editOrNewResourcesLike( + V1ResourceRequirements item); /** * This method has been deprecated, please use method buildSecurityContext instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecurityContext getSecurityContext(); - public io.kubernetes.client.openapi.models.V1SecurityContext buildSecurityContext(); + public V1SecurityContext buildSecurityContext(); - public A withSecurityContext( - io.kubernetes.client.openapi.models.V1SecurityContext securityContext); + public A withSecurityContext(V1SecurityContext securityContext); - public java.lang.Boolean hasSecurityContext(); + public Boolean hasSecurityContext(); public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContext(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - withNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item); + public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContextLike( + V1SecurityContext item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - editSecurityContext(); + public V1EphemeralContainerFluent.SecurityContextNested editSecurityContext(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - editOrNewSecurityContext(); + public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContext(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - editOrNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item); + public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContextLike( + V1SecurityContext item); /** * This method has been deprecated, please use method buildStartupProbe instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getStartupProbe(); + @Deprecated + public V1Probe getStartupProbe(); - public io.kubernetes.client.openapi.models.V1Probe buildStartupProbe(); + public V1Probe buildStartupProbe(); - public A withStartupProbe(io.kubernetes.client.openapi.models.V1Probe startupProbe); + public A withStartupProbe(V1Probe startupProbe); - public java.lang.Boolean hasStartupProbe(); + public Boolean hasStartupProbe(); public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - withNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - editStartupProbe(); + public V1EphemeralContainerFluent.StartupProbeNested editStartupProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - editOrNewStartupProbe(); + public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbe(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - editOrNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item); + public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item); - public java.lang.Boolean getStdin(); + public Boolean getStdin(); - public A withStdin(java.lang.Boolean stdin); + public A withStdin(Boolean stdin); - public java.lang.Boolean hasStdin(); + public Boolean hasStdin(); - public java.lang.Boolean getStdinOnce(); + public Boolean getStdinOnce(); - public A withStdinOnce(java.lang.Boolean stdinOnce); + public A withStdinOnce(Boolean stdinOnce); - public java.lang.Boolean hasStdinOnce(); + public Boolean hasStdinOnce(); - public java.lang.String getTargetContainerName(); + public String getTargetContainerName(); - public A withTargetContainerName(java.lang.String targetContainerName); + public A withTargetContainerName(String targetContainerName); - public java.lang.Boolean hasTargetContainerName(); + public Boolean hasTargetContainerName(); - public java.lang.String getTerminationMessagePath(); + public String getTerminationMessagePath(); - public A withTerminationMessagePath(java.lang.String terminationMessagePath); + public A withTerminationMessagePath(String terminationMessagePath); - public java.lang.Boolean hasTerminationMessagePath(); + public Boolean hasTerminationMessagePath(); - public java.lang.String getTerminationMessagePolicy(); + public String getTerminationMessagePolicy(); - public A withTerminationMessagePolicy(java.lang.String terminationMessagePolicy); + public A withTerminationMessagePolicy(String terminationMessagePolicy); - public java.lang.Boolean hasTerminationMessagePolicy(); + public Boolean hasTerminationMessagePolicy(); - public java.lang.Boolean getTty(); + public Boolean getTty(); - public A withTty(java.lang.Boolean tty); + public A withTty(Boolean tty); - public java.lang.Boolean hasTty(); + public Boolean hasTty(); - public A addToVolumeDevices(java.lang.Integer index, V1VolumeDevice item); + public A addToVolumeDevices(Integer index, V1VolumeDevice item); - public A setToVolumeDevices( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item); + public A setToVolumeDevices(Integer index, V1VolumeDevice item); public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A addAllToVolumeDevices( - java.util.Collection items); + public A addAllToVolumeDevices(Collection items); public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items); - public A removeAllFromVolumeDevices( - java.util.Collection items); + public A removeAllFromVolumeDevices(Collection items); - public A removeMatchingFromVolumeDevices( - java.util.function.Predicate predicate); + public A removeMatchingFromVolumeDevices(Predicate predicate); /** * This method has been deprecated, please use method buildVolumeDevices instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeDevices(); + @Deprecated + public List getVolumeDevices(); - public java.util.List buildVolumeDevices(); + public List buildVolumeDevices(); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildVolumeDevice( - java.lang.Integer index); + public V1VolumeDevice buildVolumeDevice(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildFirstVolumeDevice(); + public V1VolumeDevice buildFirstVolumeDevice(); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildLastVolumeDevice(); + public V1VolumeDevice buildLastVolumeDevice(); - public io.kubernetes.client.openapi.models.V1VolumeDevice buildMatchingVolumeDevice( - java.util.function.Predicate - predicate); + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate); - public java.lang.Boolean hasMatchingVolumeDevice( - java.util.function.Predicate - predicate); + public Boolean hasMatchingVolumeDevice(Predicate predicate); - public A withVolumeDevices( - java.util.List volumeDevices); + public A withVolumeDevices(List volumeDevices); public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices); - public java.lang.Boolean hasVolumeDevices(); + public Boolean hasVolumeDevices(); public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDevice(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - addNewVolumeDeviceLike(io.kubernetes.client.openapi.models.V1VolumeDevice item); + public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike( + V1VolumeDevice item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - setNewVolumeDeviceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item); + public V1EphemeralContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( + Integer index, V1VolumeDevice item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editVolumeDevice(java.lang.Integer index); + public V1EphemeralContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editFirstVolumeDevice(); + public V1EphemeralContainerFluent.VolumeDevicesNested editFirstVolumeDevice(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editLastVolumeDevice(); + public V1EphemeralContainerFluent.VolumeDevicesNested editLastVolumeDevice(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editMatchingVolumeDevice( - java.util.function.Predicate - predicate); + public V1EphemeralContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( + Predicate predicate); - public A addToVolumeMounts(java.lang.Integer index, V1VolumeMount item); + public A addToVolumeMounts(Integer index, V1VolumeMount item); - public A setToVolumeMounts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item); + public A setToVolumeMounts(Integer index, V1VolumeMount item); public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A addAllToVolumeMounts( - java.util.Collection items); + public A addAllToVolumeMounts(Collection items); public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items); - public A removeAllFromVolumeMounts( - java.util.Collection items); + public A removeAllFromVolumeMounts(Collection items); - public A removeMatchingFromVolumeMounts( - java.util.function.Predicate predicate); + public A removeMatchingFromVolumeMounts(Predicate predicate); /** * This method has been deprecated, please use method buildVolumeMounts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeMounts(); + @Deprecated + public List getVolumeMounts(); - public java.util.List buildVolumeMounts(); + public List buildVolumeMounts(); - public io.kubernetes.client.openapi.models.V1VolumeMount buildVolumeMount( - java.lang.Integer index); + public V1VolumeMount buildVolumeMount(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeMount buildFirstVolumeMount(); + public V1VolumeMount buildFirstVolumeMount(); - public io.kubernetes.client.openapi.models.V1VolumeMount buildLastVolumeMount(); + public V1VolumeMount buildLastVolumeMount(); - public io.kubernetes.client.openapi.models.V1VolumeMount buildMatchingVolumeMount( - java.util.function.Predicate - predicate); + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate); - public java.lang.Boolean hasMatchingVolumeMount( - java.util.function.Predicate - predicate); + public Boolean hasMatchingVolumeMount(Predicate predicate); - public A withVolumeMounts( - java.util.List volumeMounts); + public A withVolumeMounts(List volumeMounts); public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts); - public java.lang.Boolean hasVolumeMounts(); + public Boolean hasVolumeMounts(); public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMount(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - addNewVolumeMountLike(io.kubernetes.client.openapi.models.V1VolumeMount item); + public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - setNewVolumeMountLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item); + public V1EphemeralContainerFluent.VolumeMountsNested setNewVolumeMountLike( + Integer index, V1VolumeMount item); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editVolumeMount(java.lang.Integer index); + public V1EphemeralContainerFluent.VolumeMountsNested editVolumeMount(Integer index); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editFirstVolumeMount(); + public V1EphemeralContainerFluent.VolumeMountsNested editFirstVolumeMount(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editLastVolumeMount(); + public V1EphemeralContainerFluent.VolumeMountsNested editLastVolumeMount(); - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editMatchingVolumeMount( - java.util.function.Predicate - predicate); + public V1EphemeralContainerFluent.VolumeMountsNested editMatchingVolumeMount( + Predicate predicate); - public java.lang.String getWorkingDir(); + public String getWorkingDir(); - public A withWorkingDir(java.lang.String workingDir); + public A withWorkingDir(String workingDir); - public java.lang.Boolean hasWorkingDir(); + public Boolean hasWorkingDir(); public A withStdin(); @@ -676,47 +584,42 @@ public interface EnvNested } public interface EnvFromNested - extends io.kubernetes.client.fluent.Nested, - V1EnvFromSourceFluent> { + extends Nested, V1EnvFromSourceFluent> { public N and(); public N endEnvFrom(); } public interface LifecycleNested - extends io.kubernetes.client.fluent.Nested, - V1LifecycleFluent> { + extends Nested, V1LifecycleFluent> { public N and(); public N endLifecycle(); } public interface LivenessProbeNested - extends io.kubernetes.client.fluent.Nested, - V1ProbeFluent> { + extends Nested, V1ProbeFluent> { public N and(); public N endLivenessProbe(); } public interface PortsNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerPortFluent> { + extends Nested, V1ContainerPortFluent> { public N and(); public N endPort(); } public interface ReadinessProbeNested - extends io.kubernetes.client.fluent.Nested, - V1ProbeFluent> { + extends Nested, V1ProbeFluent> { public N and(); public N endReadinessProbe(); } public interface ResourcesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceRequirementsFluent> { public N and(); @@ -724,7 +627,7 @@ public interface ResourcesNested } public interface SecurityContextNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SecurityContextFluent> { public N and(); @@ -732,24 +635,21 @@ public interface SecurityContextNested } public interface StartupProbeNested - extends io.kubernetes.client.fluent.Nested, - V1ProbeFluent> { + extends Nested, V1ProbeFluent> { public N and(); public N endStartupProbe(); } public interface VolumeDevicesNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeDeviceFluent> { + extends Nested, V1VolumeDeviceFluent> { public N and(); public N endVolumeDevice(); } public interface VolumeMountsNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeMountFluent> { + extends Nested, V1VolumeMountFluent> { public N and(); public N endVolumeMount(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java index 27448d8cb2..0ec632bdc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluentImpl.java @@ -26,8 +26,7 @@ public class V1EphemeralContainerFluentImpl implements V1EphemeralContainerFluent { public V1EphemeralContainerFluentImpl() {} - public V1EphemeralContainerFluentImpl( - io.kubernetes.client.openapi.models.V1EphemeralContainer instance) { + public V1EphemeralContainerFluentImpl(V1EphemeralContainer instance) { this.withArgs(instance.getArgs()); this.withCommand(instance.getCommand()); @@ -76,40 +75,40 @@ public V1EphemeralContainerFluentImpl( } private List args; - private java.util.List command; + private List command; private ArrayList env; - private java.util.ArrayList envFrom; - private java.lang.String image; - private java.lang.String imagePullPolicy; + private ArrayList envFrom; + private String image; + private String imagePullPolicy; private V1LifecycleBuilder lifecycle; private V1ProbeBuilder livenessProbe; - private java.lang.String name; - private java.util.ArrayList ports; + private String name; + private ArrayList ports; private V1ProbeBuilder readinessProbe; private V1ResourceRequirementsBuilder resources; private V1SecurityContextBuilder securityContext; - private io.kubernetes.client.openapi.models.V1ProbeBuilder startupProbe; + private V1ProbeBuilder startupProbe; private Boolean stdin; - private java.lang.Boolean stdinOnce; - private java.lang.String targetContainerName; - private java.lang.String terminationMessagePath; - private java.lang.String terminationMessagePolicy; - private java.lang.Boolean tty; - private java.util.ArrayList volumeDevices; - private java.util.ArrayList volumeMounts; - private java.lang.String workingDir; - - public A addToArgs(Integer index, java.lang.String item) { + private Boolean stdinOnce; + private String targetContainerName; + private String terminationMessagePath; + private String terminationMessagePolicy; + private Boolean tty; + private ArrayList volumeDevices; + private ArrayList volumeMounts; + private String workingDir; + + public A addToArgs(Integer index, String item) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } this.args.add(index, item); return (A) this; } - public A setToArgs(java.lang.Integer index, java.lang.String item) { + public A setToArgs(Integer index, String item) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } this.args.set(index, item); return (A) this; @@ -117,26 +116,26 @@ public A setToArgs(java.lang.Integer index, java.lang.String item) { public A addToArgs(java.lang.String... items) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.args.add(item); } return (A) this; } - public A addAllToArgs(Collection items) { + public A addAllToArgs(Collection items) { if (this.args == null) { - this.args = new java.util.ArrayList(); + this.args = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.args.add(item); } return (A) this; } public A removeFromArgs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.args != null) { this.args.remove(item); } @@ -144,8 +143,8 @@ public A removeFromArgs(java.lang.String... items) { return (A) this; } - public A removeAllFromArgs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromArgs(Collection items) { + for (String item : items) { if (this.args != null) { this.args.remove(item); } @@ -153,24 +152,24 @@ public A removeAllFromArgs(java.util.Collection items) { return (A) this; } - public java.util.List getArgs() { + public List getArgs() { return this.args; } - public java.lang.String getArg(java.lang.Integer index) { + public String getArg(Integer index) { return this.args.get(index); } - public java.lang.String getFirstArg() { + public String getFirstArg() { return this.args.get(0); } - public java.lang.String getLastArg() { + public String getLastArg() { return this.args.get(args.size() - 1); } - public java.lang.String getMatchingArg(Predicate predicate) { - for (java.lang.String item : args) { + public String getMatchingArg(Predicate predicate) { + for (String item : args) { if (predicate.test(item)) { return item; } @@ -178,9 +177,8 @@ public java.lang.String getMatchingArg(Predicate predicate) { return null; } - public java.lang.Boolean hasMatchingArg( - java.util.function.Predicate predicate) { - for (java.lang.String item : args) { + public Boolean hasMatchingArg(Predicate predicate) { + for (String item : args) { if (predicate.test(item)) { return true; } @@ -188,10 +186,10 @@ public java.lang.Boolean hasMatchingArg( return false; } - public A withArgs(java.util.List args) { + public A withArgs(List args) { if (args != null) { - this.args = new java.util.ArrayList(); - for (java.lang.String item : args) { + this.args = new ArrayList(); + for (String item : args) { this.addToArgs(item); } } else { @@ -205,28 +203,28 @@ public A withArgs(java.lang.String... args) { this.args.clear(); } if (args != null) { - for (java.lang.String item : args) { + for (String item : args) { this.addToArgs(item); } } return (A) this; } - public java.lang.Boolean hasArgs() { + public Boolean hasArgs() { return args != null && !args.isEmpty(); } - public A addToCommand(java.lang.Integer index, java.lang.String item) { + public A addToCommand(Integer index, String item) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } this.command.add(index, item); return (A) this; } - public A setToCommand(java.lang.Integer index, java.lang.String item) { + public A setToCommand(Integer index, String item) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } this.command.set(index, item); return (A) this; @@ -234,26 +232,26 @@ public A setToCommand(java.lang.Integer index, java.lang.String item) { public A addToCommand(java.lang.String... items) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.command.add(item); } return (A) this; } - public A addAllToCommand(java.util.Collection items) { + public A addAllToCommand(Collection items) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.command.add(item); } return (A) this; } public A removeFromCommand(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.command != null) { this.command.remove(item); } @@ -261,8 +259,8 @@ public A removeFromCommand(java.lang.String... items) { return (A) this; } - public A removeAllFromCommand(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromCommand(Collection items) { + for (String item : items) { if (this.command != null) { this.command.remove(item); } @@ -270,25 +268,24 @@ public A removeAllFromCommand(java.util.Collection items) { return (A) this; } - public java.util.List getCommand() { + public List getCommand() { return this.command; } - public java.lang.String getCommand(java.lang.Integer index) { + public String getCommand(Integer index) { return this.command.get(index); } - public java.lang.String getFirstCommand() { + public String getFirstCommand() { return this.command.get(0); } - public java.lang.String getLastCommand() { + public String getLastCommand() { return this.command.get(command.size() - 1); } - public java.lang.String getMatchingCommand( - java.util.function.Predicate predicate) { - for (java.lang.String item : command) { + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return item; } @@ -296,9 +293,8 @@ public java.lang.String getMatchingCommand( return null; } - public java.lang.Boolean hasMatchingCommand( - java.util.function.Predicate predicate) { - for (java.lang.String item : command) { + public Boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return true; } @@ -306,10 +302,10 @@ public java.lang.Boolean hasMatchingCommand( return false; } - public A withCommand(java.util.List command) { + public A withCommand(List command) { if (command != null) { - this.command = new java.util.ArrayList(); - for (java.lang.String item : command) { + this.command = new ArrayList(); + for (String item : command) { this.addToCommand(item); } } else { @@ -323,34 +319,32 @@ public A withCommand(java.lang.String... command) { this.command.clear(); } if (command != null) { - for (java.lang.String item : command) { + for (String item : command) { this.addToCommand(item); } } return (A) this; } - public java.lang.Boolean hasCommand() { + public Boolean hasCommand() { return command != null && !command.isEmpty(); } - public A addToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item) { + public A addToEnv(Integer index, V1EnvVar item) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").add(index >= 0 ? index : _visitables.get("env").size(), builder); this.env.add(index >= 0 ? index : env.size(), builder); return (A) this; } - public A setToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item) { + public A setToEnv(Integer index, V1EnvVar item) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); if (index < 0 || index >= _visitables.get("env").size()) { _visitables.get("env").add(builder); } else { @@ -366,24 +360,22 @@ public A setToEnv(java.lang.Integer index, io.kubernetes.client.openapi.models.V public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvVar item : items) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").add(builder); this.env.add(builder); } return (A) this; } - public A addAllToEnv(java.util.Collection items) { + public A addAllToEnv(Collection items) { if (this.env == null) { - this.env = new java.util.ArrayList(); + this.env = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvVar item : items) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").add(builder); this.env.add(builder); } @@ -391,9 +383,8 @@ public A addAllToEnv(java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EnvVar item : items) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvVarBuilder(item); + public A removeAllFromEnv(Collection items) { + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); _visitables.get("env").remove(builder); if (this.env != null) { this.env.remove(builder); @@ -415,13 +404,12 @@ public A removeAllFromEnv( return (A) this; } - public A removeMatchingFromEnv( - java.util.function.Predicate predicate) { + public A removeMatchingFromEnv(Predicate predicate) { if (env == null) return (A) this; - final Iterator each = env.iterator(); + final Iterator each = env.iterator(); final List visitables = _visitables.get("env"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder = each.next(); + V1EnvVarBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -436,29 +424,28 @@ public A removeMatchingFromEnv( * @return The buildable object. */ @Deprecated - public java.util.List getEnv() { + public List getEnv() { return env != null ? build(env) : null; } - public java.util.List buildEnv() { + public List buildEnv() { return env != null ? build(env) : null; } - public io.kubernetes.client.openapi.models.V1EnvVar buildEnv(java.lang.Integer index) { + public V1EnvVar buildEnv(Integer index) { return this.env.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EnvVar buildFirstEnv() { + public V1EnvVar buildFirstEnv() { return this.env.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EnvVar buildLastEnv() { + public V1EnvVar buildLastEnv() { return this.env.get(env.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EnvVar buildMatchingEnv( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1EnvVarBuilder item : env) { + public V1EnvVar buildMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { if (predicate.test(item)) { return item.build(); } @@ -466,9 +453,8 @@ public io.kubernetes.client.openapi.models.V1EnvVar buildMatchingEnv( return null; } - public java.lang.Boolean hasMatchingEnv( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1EnvVarBuilder item : env) { + public Boolean hasMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { if (predicate.test(item)) { return true; } @@ -476,13 +462,13 @@ public java.lang.Boolean hasMatchingEnv( return false; } - public A withEnv(java.util.List env) { + public A withEnv(List env) { if (this.env != null) { _visitables.get("env").removeAll(this.env); } if (env != null) { - this.env = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EnvVar item : env) { + this.env = new ArrayList(); + for (V1EnvVar item : env) { this.addToEnv(item); } } else { @@ -496,14 +482,14 @@ public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { this.env.clear(); } if (env != null) { - for (io.kubernetes.client.openapi.models.V1EnvVar item : env) { + for (V1EnvVar item : env) { this.addToEnv(item); } } return (A) this; } - public java.lang.Boolean hasEnv() { + public Boolean hasEnv() { return env != null && !env.isEmpty(); } @@ -511,39 +497,32 @@ public V1EphemeralContainerFluent.EnvNested addNewEnv() { return new V1EphemeralContainerFluentImpl.EnvNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested addNewEnvLike( - io.kubernetes.client.openapi.models.V1EnvVar item) { + public V1EphemeralContainerFluent.EnvNested addNewEnvLike(V1EnvVar item) { return new V1EphemeralContainerFluentImpl.EnvNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested setNewEnvLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvVar item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl.EnvNestedImpl( - index, item); + public V1EphemeralContainerFluent.EnvNested setNewEnvLike(Integer index, V1EnvVar item) { + return new V1EphemeralContainerFluentImpl.EnvNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested editEnv( - java.lang.Integer index) { + public V1EphemeralContainerFluent.EnvNested editEnv(Integer index) { if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); return setNewEnvLike(index, buildEnv(index)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested - editFirstEnv() { + public V1EphemeralContainerFluent.EnvNested editFirstEnv() { if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); return setNewEnvLike(0, buildEnv(0)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested editLastEnv() { + public V1EphemeralContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested - editMatchingEnv( - java.util.function.Predicate - predicate) { + public V1EphemeralContainerFluent.EnvNested editMatchingEnv( + Predicate predicate) { int index = -1; for (int i = 0; i < env.size(); i++) { if (predicate.test(env.get(i))) { @@ -555,26 +534,21 @@ public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested< return setNewEnvLike(index, buildEnv(index)); } - public A addToEnvFrom(java.lang.Integer index, V1EnvFromSource item) { + public A addToEnvFrom(Integer index, V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").add(index >= 0 ? index : _visitables.get("envFrom").size(), builder); this.envFrom.add(index >= 0 ? index : envFrom.size(), builder); return (A) this; } - public A setToEnvFrom( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item) { + public A setToEnvFrom(Integer index, V1EnvFromSource item) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); if (index < 0 || index >= _visitables.get("envFrom").size()) { _visitables.get("envFrom").add(builder); } else { @@ -590,27 +564,22 @@ public A setToEnvFrom( public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").add(builder); this.envFrom.add(builder); } return (A) this; } - public A addAllToEnvFrom( - java.util.Collection items) { + public A addAllToEnvFrom(Collection items) { if (this.envFrom == null) { - this.envFrom = - new java.util.ArrayList(); + this.envFrom = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").add(builder); this.envFrom.add(builder); } @@ -618,9 +587,8 @@ public A addAllToEnvFrom( } public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").remove(builder); if (this.envFrom != null) { this.envFrom.remove(builder); @@ -629,11 +597,9 @@ public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource.. return (A) this; } - public A removeAllFromEnvFrom( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : items) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = - new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(item); + public A removeAllFromEnvFrom(Collection items) { + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); _visitables.get("envFrom").remove(builder); if (this.envFrom != null) { this.envFrom.remove(builder); @@ -642,15 +608,12 @@ public A removeAllFromEnvFrom( return (A) this; } - public A removeMatchingFromEnvFrom( - java.util.function.Predicate - predicate) { + public A removeMatchingFromEnvFrom(Predicate predicate) { if (envFrom == null) return (A) this; - final Iterator each = - envFrom.iterator(); + final Iterator each = envFrom.iterator(); final List visitables = _visitables.get("envFrom"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder = each.next(); + V1EnvFromSourceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -664,31 +627,29 @@ public A removeMatchingFromEnvFrom( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getEnvFrom() { + @Deprecated + public List getEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public java.util.List buildEnvFrom() { + public List buildEnvFrom() { return envFrom != null ? build(envFrom) : null; } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildEnvFrom(java.lang.Integer index) { + public V1EnvFromSource buildEnvFrom(Integer index) { return this.envFrom.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildFirstEnvFrom() { + public V1EnvFromSource buildFirstEnvFrom() { return this.envFrom.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildLastEnvFrom() { + public V1EnvFromSource buildLastEnvFrom() { return this.envFrom.get(envFrom.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EnvFromSource buildMatchingEnvFrom( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder item : envFrom) { + public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { if (predicate.test(item)) { return item.build(); } @@ -696,10 +657,8 @@ public io.kubernetes.client.openapi.models.V1EnvFromSource buildMatchingEnvFrom( return null; } - public java.lang.Boolean hasMatchingEnvFrom( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder item : envFrom) { + public Boolean hasMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { if (predicate.test(item)) { return true; } @@ -707,14 +666,13 @@ public java.lang.Boolean hasMatchingEnvFrom( return false; } - public A withEnvFrom( - java.util.List envFrom) { + public A withEnvFrom(List envFrom) { if (this.envFrom != null) { _visitables.get("envFrom").removeAll(this.envFrom); } if (envFrom != null) { - this.envFrom = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : envFrom) { + this.envFrom = new ArrayList(); + for (V1EnvFromSource item : envFrom) { this.addToEnvFrom(item); } } else { @@ -728,14 +686,14 @@ public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envF this.envFrom.clear(); } if (envFrom != null) { - for (io.kubernetes.client.openapi.models.V1EnvFromSource item : envFrom) { + for (V1EnvFromSource item : envFrom) { this.addToEnvFrom(item); } } return (A) this; } - public java.lang.Boolean hasEnvFrom() { + public Boolean hasEnvFrom() { return envFrom != null && !envFrom.isEmpty(); } @@ -743,44 +701,35 @@ public V1EphemeralContainerFluent.EnvFromNested addNewEnvFrom() { return new V1EphemeralContainerFluentImpl.EnvFromNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - addNewEnvFromLike(io.kubernetes.client.openapi.models.V1EnvFromSource item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl.EnvFromNestedImpl( - -1, item); + public V1EphemeralContainerFluent.EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { + return new V1EphemeralContainerFluentImpl.EnvFromNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - setNewEnvFromLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl.EnvFromNestedImpl( - index, item); + public V1EphemeralContainerFluent.EnvFromNested setNewEnvFromLike( + Integer index, V1EnvFromSource item) { + return new V1EphemeralContainerFluentImpl.EnvFromNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editEnvFrom(java.lang.Integer index) { + public V1EphemeralContainerFluent.EnvFromNested editEnvFrom(Integer index) { if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); return setNewEnvFromLike(index, buildEnvFrom(index)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editFirstEnvFrom() { + public V1EphemeralContainerFluent.EnvFromNested editFirstEnvFrom() { if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); return setNewEnvFromLike(0, buildEnvFrom(0)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editLastEnvFrom() { + public V1EphemeralContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested - editMatchingEnvFrom( - java.util.function.Predicate - predicate) { + public V1EphemeralContainerFluent.EnvFromNested editMatchingEnvFrom( + Predicate predicate) { int index = -1; for (int i = 0; i < envFrom.size(); i++) { if (predicate.test(envFrom.get(i))) { @@ -792,29 +741,29 @@ public V1EphemeralContainerFluent.EnvFromNested addNewEnvFrom() { return setNewEnvFromLike(index, buildEnvFrom(index)); } - public java.lang.String getImage() { + public String getImage() { return this.image; } - public A withImage(java.lang.String image) { + public A withImage(String image) { this.image = image; return (A) this; } - public java.lang.Boolean hasImage() { + public Boolean hasImage() { return this.image != null; } - public java.lang.String getImagePullPolicy() { + public String getImagePullPolicy() { return this.imagePullPolicy; } - public A withImagePullPolicy(java.lang.String imagePullPolicy) { + public A withImagePullPolicy(String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; return (A) this; } - public java.lang.Boolean hasImagePullPolicy() { + public Boolean hasImagePullPolicy() { return this.imagePullPolicy != null; } @@ -823,25 +772,28 @@ public java.lang.Boolean hasImagePullPolicy() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Lifecycle getLifecycle() { + @Deprecated + public V1Lifecycle getLifecycle() { return this.lifecycle != null ? this.lifecycle.build() : null; } - public io.kubernetes.client.openapi.models.V1Lifecycle buildLifecycle() { + public V1Lifecycle buildLifecycle() { return this.lifecycle != null ? this.lifecycle.build() : null; } - public A withLifecycle(io.kubernetes.client.openapi.models.V1Lifecycle lifecycle) { + public A withLifecycle(V1Lifecycle lifecycle) { _visitables.get("lifecycle").remove(this.lifecycle); if (lifecycle != null) { this.lifecycle = new V1LifecycleBuilder(lifecycle); _visitables.get("lifecycle").add(this.lifecycle); + } else { + this.lifecycle = null; + _visitables.get("lifecycle").remove(this.lifecycle); } return (A) this; } - public java.lang.Boolean hasLifecycle() { + public Boolean hasLifecycle() { return this.lifecycle != null; } @@ -849,27 +801,20 @@ public V1EphemeralContainerFluent.LifecycleNested withNewLifecycle() { return new V1EphemeralContainerFluentImpl.LifecycleNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - withNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .LifecycleNestedImpl(item); + public V1EphemeralContainerFluent.LifecycleNested withNewLifecycleLike(V1Lifecycle item) { + return new V1EphemeralContainerFluentImpl.LifecycleNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - editLifecycle() { + public V1EphemeralContainerFluent.LifecycleNested editLifecycle() { return withNewLifecycleLike(getLifecycle()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - editOrNewLifecycle() { + public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycle() { return withNewLifecycleLike( - getLifecycle() != null - ? getLifecycle() - : new io.kubernetes.client.openapi.models.V1LifecycleBuilder().build()); + getLifecycle() != null ? getLifecycle() : new V1LifecycleBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested - editOrNewLifecycleLike(io.kubernetes.client.openapi.models.V1Lifecycle item) { + public V1EphemeralContainerFluent.LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { return withNewLifecycleLike(getLifecycle() != null ? getLifecycle() : item); } @@ -878,25 +823,28 @@ public V1EphemeralContainerFluent.LifecycleNested withNewLifecycle() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getLivenessProbe() { + @Deprecated + public V1Probe getLivenessProbe() { return this.livenessProbe != null ? this.livenessProbe.build() : null; } - public io.kubernetes.client.openapi.models.V1Probe buildLivenessProbe() { + public V1Probe buildLivenessProbe() { return this.livenessProbe != null ? this.livenessProbe.build() : null; } - public A withLivenessProbe(io.kubernetes.client.openapi.models.V1Probe livenessProbe) { + public A withLivenessProbe(V1Probe livenessProbe) { _visitables.get("livenessProbe").remove(this.livenessProbe); if (livenessProbe != null) { - this.livenessProbe = new io.kubernetes.client.openapi.models.V1ProbeBuilder(livenessProbe); + this.livenessProbe = new V1ProbeBuilder(livenessProbe); _visitables.get("livenessProbe").add(this.livenessProbe); + } else { + this.livenessProbe = null; + _visitables.get("livenessProbe").remove(this.livenessProbe); } return (A) this; } - public java.lang.Boolean hasLivenessProbe() { + public Boolean hasLivenessProbe() { return this.livenessProbe != null; } @@ -904,63 +852,52 @@ public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbe() return new V1EphemeralContainerFluentImpl.LivenessProbeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - withNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .LivenessProbeNestedImpl(item); + public V1EphemeralContainerFluent.LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { + return new V1EphemeralContainerFluentImpl.LivenessProbeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - editLivenessProbe() { + public V1EphemeralContainerFluent.LivenessProbeNested editLivenessProbe() { return withNewLivenessProbeLike(getLivenessProbe()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - editOrNewLivenessProbe() { + public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbe() { return withNewLivenessProbeLike( - getLivenessProbe() != null - ? getLivenessProbe() - : new io.kubernetes.client.openapi.models.V1ProbeBuilder().build()); + getLivenessProbe() != null ? getLivenessProbe() : new V1ProbeBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested - editOrNewLivenessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { + public V1EphemeralContainerFluent.LivenessProbeNested editOrNewLivenessProbeLike( + V1Probe item) { return withNewLivenessProbeLike(getLivenessProbe() != null ? getLivenessProbe() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public A addToPorts(java.lang.Integer index, V1ContainerPort item) { + public A addToPorts(Integer index, V1ContainerPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item) { + public A setToPorts(Integer index, V1ContainerPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -976,27 +913,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; } - public A addAllToPorts( - java.util.Collection items) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -1004,9 +936,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -1015,11 +946,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ContainerPort item : items) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -1028,15 +957,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder = each.next(); + V1ContainerPortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1050,31 +976,29 @@ public A removeMatchingFromPorts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts() { + @Deprecated + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.V1ContainerPort buildPort(java.lang.Integer index) { + public V1ContainerPort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ContainerPort buildFirstPort() { + public V1ContainerPort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ContainerPort buildLastPort() { + public V1ContainerPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ContainerPort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerPortBuilder item : ports) { + public V1ContainerPort buildMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -1082,10 +1006,8 @@ public io.kubernetes.client.openapi.models.V1ContainerPort buildMatchingPort( return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerPortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -1093,13 +1015,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts(java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ContainerPort item : ports) { + this.ports = new ArrayList(); + for (V1ContainerPort item : ports) { this.addToPorts(item); } } else { @@ -1113,14 +1035,14 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.V1ContainerPort item : ports) { + for (V1ContainerPort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -1128,42 +1050,33 @@ public V1EphemeralContainerFluent.PortsNested addNewPort() { return new V1EphemeralContainerFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1ContainerPort item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl.PortsNestedImpl( - -1, item); + public V1EphemeralContainerFluent.PortsNested addNewPortLike(V1ContainerPort item) { + return new V1EphemeralContainerFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl.PortsNestedImpl( - index, item); + public V1EphemeralContainerFluent.PortsNested setNewPortLike( + Integer index, V1ContainerPort item) { + return new V1EphemeralContainerFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested editPort( - java.lang.Integer index) { + public V1EphemeralContainerFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - editFirstPort() { + public V1EphemeralContainerFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - editLastPort() { + public V1EphemeralContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested - editMatchingPort( - java.util.function.Predicate - predicate) { + public V1EphemeralContainerFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -1180,25 +1093,28 @@ public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNeste * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getReadinessProbe() { + @Deprecated + public V1Probe getReadinessProbe() { return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public io.kubernetes.client.openapi.models.V1Probe buildReadinessProbe() { + public V1Probe buildReadinessProbe() { return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public A withReadinessProbe(io.kubernetes.client.openapi.models.V1Probe readinessProbe) { + public A withReadinessProbe(V1Probe readinessProbe) { _visitables.get("readinessProbe").remove(this.readinessProbe); if (readinessProbe != null) { - this.readinessProbe = new io.kubernetes.client.openapi.models.V1ProbeBuilder(readinessProbe); + this.readinessProbe = new V1ProbeBuilder(readinessProbe); _visitables.get("readinessProbe").add(this.readinessProbe); + } else { + this.readinessProbe = null; + _visitables.get("readinessProbe").remove(this.readinessProbe); } return (A) this; } - public java.lang.Boolean hasReadinessProbe() { + public Boolean hasReadinessProbe() { return this.readinessProbe != null; } @@ -1206,27 +1122,22 @@ public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbe( return new V1EphemeralContainerFluentImpl.ReadinessProbeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - withNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .ReadinessProbeNestedImpl(item); + public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbeLike( + V1Probe item) { + return new V1EphemeralContainerFluentImpl.ReadinessProbeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - editReadinessProbe() { + public V1EphemeralContainerFluent.ReadinessProbeNested editReadinessProbe() { return withNewReadinessProbeLike(getReadinessProbe()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - editOrNewReadinessProbe() { + public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbe() { return withNewReadinessProbeLike( - getReadinessProbe() != null - ? getReadinessProbe() - : new io.kubernetes.client.openapi.models.V1ProbeBuilder().build()); + getReadinessProbe() != null ? getReadinessProbe() : new V1ProbeBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ReadinessProbeNested - editOrNewReadinessProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { + public V1EphemeralContainerFluent.ReadinessProbeNested editOrNewReadinessProbeLike( + V1Probe item) { return withNewReadinessProbeLike(getReadinessProbe() != null ? getReadinessProbe() : item); } @@ -1235,26 +1146,28 @@ public V1EphemeralContainerFluent.ReadinessProbeNested withNewReadinessProbe( * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceRequirements getResources() { return this.resources != null ? this.resources.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceRequirements buildResources() { + public V1ResourceRequirements buildResources() { return this.resources != null ? this.resources.build() : null; } - public A withResources(io.kubernetes.client.openapi.models.V1ResourceRequirements resources) { + public A withResources(V1ResourceRequirements resources) { _visitables.get("resources").remove(this.resources); if (resources != null) { - this.resources = - new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder(resources); + this.resources = new V1ResourceRequirementsBuilder(resources); _visitables.get("resources").add(this.resources); + } else { + this.resources = null; + _visitables.get("resources").remove(this.resources); } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return this.resources != null; } @@ -1262,27 +1175,22 @@ public V1EphemeralContainerFluent.ResourcesNested withNewResources() { return new V1EphemeralContainerFluentImpl.ResourcesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - withNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .ResourcesNestedImpl(item); + public V1EphemeralContainerFluent.ResourcesNested withNewResourcesLike( + V1ResourceRequirements item) { + return new V1EphemeralContainerFluentImpl.ResourcesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - editResources() { + public V1EphemeralContainerFluent.ResourcesNested editResources() { return withNewResourcesLike(getResources()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - editOrNewResources() { + public V1EphemeralContainerFluent.ResourcesNested editOrNewResources() { return withNewResourcesLike( - getResources() != null - ? getResources() - : new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder().build()); + getResources() != null ? getResources() : new V1ResourceRequirementsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested - editOrNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { + public V1EphemeralContainerFluent.ResourcesNested editOrNewResourcesLike( + V1ResourceRequirements item) { return withNewResourcesLike(getResources() != null ? getResources() : item); } @@ -1291,27 +1199,28 @@ public V1EphemeralContainerFluent.ResourcesNested withNewResources() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecurityContext getSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } - public io.kubernetes.client.openapi.models.V1SecurityContext buildSecurityContext() { + public V1SecurityContext buildSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } - public A withSecurityContext( - io.kubernetes.client.openapi.models.V1SecurityContext securityContext) { + public A withSecurityContext(V1SecurityContext securityContext) { _visitables.get("securityContext").remove(this.securityContext); if (securityContext != null) { - this.securityContext = - new io.kubernetes.client.openapi.models.V1SecurityContextBuilder(securityContext); + this.securityContext = new V1SecurityContextBuilder(securityContext); _visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + _visitables.get("securityContext").remove(this.securityContext); } return (A) this; } - public java.lang.Boolean hasSecurityContext() { + public Boolean hasSecurityContext() { return this.securityContext != null; } @@ -1319,27 +1228,24 @@ public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContex return new V1EphemeralContainerFluentImpl.SecurityContextNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - withNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .SecurityContextNestedImpl(item); + public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContextLike( + V1SecurityContext item) { + return new V1EphemeralContainerFluentImpl.SecurityContextNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - editSecurityContext() { + public V1EphemeralContainerFluent.SecurityContextNested editSecurityContext() { return withNewSecurityContextLike(getSecurityContext()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - editOrNewSecurityContext() { + public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContext() { return withNewSecurityContextLike( getSecurityContext() != null ? getSecurityContext() - : new io.kubernetes.client.openapi.models.V1SecurityContextBuilder().build()); + : new V1SecurityContextBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.SecurityContextNested - editOrNewSecurityContextLike(io.kubernetes.client.openapi.models.V1SecurityContext item) { + public V1EphemeralContainerFluent.SecurityContextNested editOrNewSecurityContextLike( + V1SecurityContext item) { return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext() : item); } @@ -1348,25 +1254,28 @@ public V1EphemeralContainerFluent.SecurityContextNested withNewSecurityContex * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1Probe getStartupProbe() { + @Deprecated + public V1Probe getStartupProbe() { return this.startupProbe != null ? this.startupProbe.build() : null; } - public io.kubernetes.client.openapi.models.V1Probe buildStartupProbe() { + public V1Probe buildStartupProbe() { return this.startupProbe != null ? this.startupProbe.build() : null; } - public A withStartupProbe(io.kubernetes.client.openapi.models.V1Probe startupProbe) { + public A withStartupProbe(V1Probe startupProbe) { _visitables.get("startupProbe").remove(this.startupProbe); if (startupProbe != null) { - this.startupProbe = new io.kubernetes.client.openapi.models.V1ProbeBuilder(startupProbe); + this.startupProbe = new V1ProbeBuilder(startupProbe); _visitables.get("startupProbe").add(this.startupProbe); + } else { + this.startupProbe = null; + _visitables.get("startupProbe").remove(this.startupProbe); } return (A) this; } - public java.lang.Boolean hasStartupProbe() { + public Boolean hasStartupProbe() { return this.startupProbe != null; } @@ -1374,115 +1283,106 @@ public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbe() { return new V1EphemeralContainerFluentImpl.StartupProbeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - withNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .StartupProbeNestedImpl(item); + public V1EphemeralContainerFluent.StartupProbeNested withNewStartupProbeLike(V1Probe item) { + return new V1EphemeralContainerFluentImpl.StartupProbeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - editStartupProbe() { + public V1EphemeralContainerFluent.StartupProbeNested editStartupProbe() { return withNewStartupProbeLike(getStartupProbe()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - editOrNewStartupProbe() { + public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbe() { return withNewStartupProbeLike( - getStartupProbe() != null - ? getStartupProbe() - : new io.kubernetes.client.openapi.models.V1ProbeBuilder().build()); + getStartupProbe() != null ? getStartupProbe() : new V1ProbeBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested - editOrNewStartupProbeLike(io.kubernetes.client.openapi.models.V1Probe item) { + public V1EphemeralContainerFluent.StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { return withNewStartupProbeLike(getStartupProbe() != null ? getStartupProbe() : item); } - public java.lang.Boolean getStdin() { + public Boolean getStdin() { return this.stdin; } - public A withStdin(java.lang.Boolean stdin) { + public A withStdin(Boolean stdin) { this.stdin = stdin; return (A) this; } - public java.lang.Boolean hasStdin() { + public Boolean hasStdin() { return this.stdin != null; } - public java.lang.Boolean getStdinOnce() { + public Boolean getStdinOnce() { return this.stdinOnce; } - public A withStdinOnce(java.lang.Boolean stdinOnce) { + public A withStdinOnce(Boolean stdinOnce) { this.stdinOnce = stdinOnce; return (A) this; } - public java.lang.Boolean hasStdinOnce() { + public Boolean hasStdinOnce() { return this.stdinOnce != null; } - public java.lang.String getTargetContainerName() { + public String getTargetContainerName() { return this.targetContainerName; } - public A withTargetContainerName(java.lang.String targetContainerName) { + public A withTargetContainerName(String targetContainerName) { this.targetContainerName = targetContainerName; return (A) this; } - public java.lang.Boolean hasTargetContainerName() { + public Boolean hasTargetContainerName() { return this.targetContainerName != null; } - public java.lang.String getTerminationMessagePath() { + public String getTerminationMessagePath() { return this.terminationMessagePath; } - public A withTerminationMessagePath(java.lang.String terminationMessagePath) { + public A withTerminationMessagePath(String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; return (A) this; } - public java.lang.Boolean hasTerminationMessagePath() { + public Boolean hasTerminationMessagePath() { return this.terminationMessagePath != null; } - public java.lang.String getTerminationMessagePolicy() { + public String getTerminationMessagePolicy() { return this.terminationMessagePolicy; } - public A withTerminationMessagePolicy(java.lang.String terminationMessagePolicy) { + public A withTerminationMessagePolicy(String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; return (A) this; } - public java.lang.Boolean hasTerminationMessagePolicy() { + public Boolean hasTerminationMessagePolicy() { return this.terminationMessagePolicy != null; } - public java.lang.Boolean getTty() { + public Boolean getTty() { return this.tty; } - public A withTty(java.lang.Boolean tty) { + public A withTty(Boolean tty) { this.tty = tty; return (A) this; } - public java.lang.Boolean hasTty() { + public Boolean hasTty() { return this.tty != null; } - public A addToVolumeDevices(java.lang.Integer index, V1VolumeDevice item) { + public A addToVolumeDevices(Integer index, V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables .get("volumeDevices") .add(index >= 0 ? index : _visitables.get("volumeDevices").size(), builder); @@ -1490,14 +1390,11 @@ public A addToVolumeDevices(java.lang.Integer index, V1VolumeDevice item) { return (A) this; } - public A setToVolumeDevices( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item) { + public A setToVolumeDevices(Integer index, V1VolumeDevice item) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); if (index < 0 || index >= _visitables.get("volumeDevices").size()) { _visitables.get("volumeDevices").add(builder); } else { @@ -1513,27 +1410,22 @@ public A setToVolumeDevices( public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } return (A) this; } - public A addAllToVolumeDevices( - java.util.Collection items) { + public A addAllToVolumeDevices(Collection items) { if (this.volumeDevices == null) { - this.volumeDevices = - new java.util.ArrayList(); + this.volumeDevices = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } @@ -1541,9 +1433,8 @@ public A addAllToVolumeDevices( } public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").remove(builder); if (this.volumeDevices != null) { this.volumeDevices.remove(builder); @@ -1552,11 +1443,9 @@ public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDev return (A) this; } - public A removeAllFromVolumeDevices( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : items) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(item); + public A removeAllFromVolumeDevices(Collection items) { + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); _visitables.get("volumeDevices").remove(builder); if (this.volumeDevices != null) { this.volumeDevices.remove(builder); @@ -1565,15 +1454,12 @@ public A removeAllFromVolumeDevices( return (A) this; } - public A removeMatchingFromVolumeDevices( - java.util.function.Predicate - predicate) { + public A removeMatchingFromVolumeDevices(Predicate predicate) { if (volumeDevices == null) return (A) this; - final Iterator each = - volumeDevices.iterator(); + final Iterator each = volumeDevices.iterator(); final List visitables = _visitables.get("volumeDevices"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder = each.next(); + V1VolumeDeviceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1587,32 +1473,29 @@ public A removeMatchingFromVolumeDevices( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeDevices() { + @Deprecated + public List getVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public java.util.List buildVolumeDevices() { + public List buildVolumeDevices() { return volumeDevices != null ? build(volumeDevices) : null; } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildVolumeDevice( - java.lang.Integer index) { + public V1VolumeDevice buildVolumeDevice(Integer index) { return this.volumeDevices.get(index).build(); } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildFirstVolumeDevice() { + public V1VolumeDevice buildFirstVolumeDevice() { return this.volumeDevices.get(0).build(); } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildLastVolumeDevice() { + public V1VolumeDevice buildLastVolumeDevice() { return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1VolumeDevice buildMatchingVolumeDevice( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder item : volumeDevices) { + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { if (predicate.test(item)) { return item.build(); } @@ -1620,10 +1503,8 @@ public io.kubernetes.client.openapi.models.V1VolumeDevice buildMatchingVolumeDev return null; } - public java.lang.Boolean hasMatchingVolumeDevice( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder item : volumeDevices) { + public Boolean hasMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { if (predicate.test(item)) { return true; } @@ -1631,14 +1512,13 @@ public java.lang.Boolean hasMatchingVolumeDevice( return false; } - public A withVolumeDevices( - java.util.List volumeDevices) { + public A withVolumeDevices(List volumeDevices) { if (this.volumeDevices != null) { _visitables.get("volumeDevices").removeAll(this.volumeDevices); } if (volumeDevices != null) { - this.volumeDevices = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : volumeDevices) { + this.volumeDevices = new ArrayList(); + for (V1VolumeDevice item : volumeDevices) { this.addToVolumeDevices(item); } } else { @@ -1652,14 +1532,14 @@ public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... this.volumeDevices.clear(); } if (volumeDevices != null) { - for (io.kubernetes.client.openapi.models.V1VolumeDevice item : volumeDevices) { + for (V1VolumeDevice item : volumeDevices) { this.addToVolumeDevices(item); } } return (A) this; } - public java.lang.Boolean hasVolumeDevices() { + public Boolean hasVolumeDevices() { return volumeDevices != null && !volumeDevices.isEmpty(); } @@ -1667,44 +1547,36 @@ public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDevice() { return new V1EphemeralContainerFluentImpl.VolumeDevicesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - addNewVolumeDeviceLike(io.kubernetes.client.openapi.models.V1VolumeDevice item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .VolumeDevicesNestedImpl(-1, item); + public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDeviceLike( + V1VolumeDevice item) { + return new V1EphemeralContainerFluentImpl.VolumeDevicesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - setNewVolumeDeviceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeDevice item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .VolumeDevicesNestedImpl(index, item); + public V1EphemeralContainerFluent.VolumeDevicesNested setNewVolumeDeviceLike( + Integer index, V1VolumeDevice item) { + return new V1EphemeralContainerFluentImpl.VolumeDevicesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editVolumeDevice(java.lang.Integer index) { + public V1EphemeralContainerFluent.VolumeDevicesNested editVolumeDevice(Integer index) { if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editFirstVolumeDevice() { + public V1EphemeralContainerFluent.VolumeDevicesNested editFirstVolumeDevice() { if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editLastVolumeDevice() { + public V1EphemeralContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested - editMatchingVolumeDevice( - java.util.function.Predicate - predicate) { + public V1EphemeralContainerFluent.VolumeDevicesNested editMatchingVolumeDevice( + Predicate predicate) { int index = -1; for (int i = 0; i < volumeDevices.size(); i++) { if (predicate.test(volumeDevices.get(i))) { @@ -1716,13 +1588,11 @@ public V1EphemeralContainerFluent.VolumeDevicesNested addNewVolumeDevice() { return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); } - public A addToVolumeMounts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item) { + public A addToVolumeMounts(Integer index, V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables .get("volumeMounts") .add(index >= 0 ? index : _visitables.get("volumeMounts").size(), builder); @@ -1730,14 +1600,11 @@ public A addToVolumeMounts( return (A) this; } - public A setToVolumeMounts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item) { + public A setToVolumeMounts(Integer index, V1VolumeMount item) { if (this.volumeMounts == null) { - this.volumeMounts = - new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); if (index < 0 || index >= _visitables.get("volumeMounts").size()) { _visitables.get("volumeMounts").add(builder); } else { @@ -1753,27 +1620,22 @@ public A setToVolumeMounts( public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { if (this.volumeMounts == null) { - this.volumeMounts = - new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; } - public A addAllToVolumeMounts( - java.util.Collection items) { + public A addAllToVolumeMounts(Collection items) { if (this.volumeMounts == null) { - this.volumeMounts = - new java.util.ArrayList(); + this.volumeMounts = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } @@ -1781,9 +1643,8 @@ public A addAllToVolumeMounts( } public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").remove(builder); if (this.volumeMounts != null) { this.volumeMounts.remove(builder); @@ -1792,11 +1653,9 @@ public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMoun return (A) this; } - public A removeAllFromVolumeMounts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1VolumeMount item : items) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(item); + public A removeAllFromVolumeMounts(Collection items) { + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); _visitables.get("volumeMounts").remove(builder); if (this.volumeMounts != null) { this.volumeMounts.remove(builder); @@ -1805,15 +1664,12 @@ public A removeAllFromVolumeMounts( return (A) this; } - public A removeMatchingFromVolumeMounts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromVolumeMounts(Predicate predicate) { if (volumeMounts == null) return (A) this; - final Iterator each = - volumeMounts.iterator(); + final Iterator each = volumeMounts.iterator(); final List visitables = _visitables.get("volumeMounts"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder = each.next(); + V1VolumeMountBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1827,32 +1683,29 @@ public A removeMatchingFromVolumeMounts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumeMounts() { + @Deprecated + public List getVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public java.util.List buildVolumeMounts() { + public List buildVolumeMounts() { return volumeMounts != null ? build(volumeMounts) : null; } - public io.kubernetes.client.openapi.models.V1VolumeMount buildVolumeMount( - java.lang.Integer index) { + public V1VolumeMount buildVolumeMount(Integer index) { return this.volumeMounts.get(index).build(); } - public io.kubernetes.client.openapi.models.V1VolumeMount buildFirstVolumeMount() { + public V1VolumeMount buildFirstVolumeMount() { return this.volumeMounts.get(0).build(); } - public io.kubernetes.client.openapi.models.V1VolumeMount buildLastVolumeMount() { + public V1VolumeMount buildLastVolumeMount() { return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1VolumeMount buildMatchingVolumeMount( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeMountBuilder item : volumeMounts) { + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { if (predicate.test(item)) { return item.build(); } @@ -1860,10 +1713,8 @@ public io.kubernetes.client.openapi.models.V1VolumeMount buildMatchingVolumeMoun return null; } - public java.lang.Boolean hasMatchingVolumeMount( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeMountBuilder item : volumeMounts) { + public Boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { if (predicate.test(item)) { return true; } @@ -1871,14 +1722,13 @@ public java.lang.Boolean hasMatchingVolumeMount( return false; } - public A withVolumeMounts( - java.util.List volumeMounts) { + public A withVolumeMounts(List volumeMounts) { if (this.volumeMounts != null) { _visitables.get("volumeMounts").removeAll(this.volumeMounts); } if (volumeMounts != null) { - this.volumeMounts = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1VolumeMount item : volumeMounts) { + this.volumeMounts = new ArrayList(); + for (V1VolumeMount item : volumeMounts) { this.addToVolumeMounts(item); } } else { @@ -1892,14 +1742,14 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... v this.volumeMounts.clear(); } if (volumeMounts != null) { - for (io.kubernetes.client.openapi.models.V1VolumeMount item : volumeMounts) { + for (V1VolumeMount item : volumeMounts) { this.addToVolumeMounts(item); } } return (A) this; } - public java.lang.Boolean hasVolumeMounts() { + public Boolean hasVolumeMounts() { return volumeMounts != null && !volumeMounts.isEmpty(); } @@ -1907,44 +1757,36 @@ public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMount() { return new V1EphemeralContainerFluentImpl.VolumeMountsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - addNewVolumeMountLike(io.kubernetes.client.openapi.models.V1VolumeMount item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .VolumeMountsNestedImpl(-1, item); + public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMountLike( + V1VolumeMount item) { + return new V1EphemeralContainerFluentImpl.VolumeMountsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - setNewVolumeMountLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeMount item) { - return new io.kubernetes.client.openapi.models.V1EphemeralContainerFluentImpl - .VolumeMountsNestedImpl(index, item); + public V1EphemeralContainerFluent.VolumeMountsNested setNewVolumeMountLike( + Integer index, V1VolumeMount item) { + return new V1EphemeralContainerFluentImpl.VolumeMountsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editVolumeMount(java.lang.Integer index) { + public V1EphemeralContainerFluent.VolumeMountsNested editVolumeMount(Integer index) { if (volumeMounts.size() <= index) throw new RuntimeException("Can't edit volumeMounts. Index exceeds size."); return setNewVolumeMountLike(index, buildVolumeMount(index)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editFirstVolumeMount() { + public V1EphemeralContainerFluent.VolumeMountsNested editFirstVolumeMount() { if (volumeMounts.size() == 0) throw new RuntimeException("Can't edit first volumeMounts. The list is empty."); return setNewVolumeMountLike(0, buildVolumeMount(0)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editLastVolumeMount() { + public V1EphemeralContainerFluent.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)); } - public io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested - editMatchingVolumeMount( - java.util.function.Predicate - predicate) { + public V1EphemeralContainerFluent.VolumeMountsNested editMatchingVolumeMount( + Predicate predicate) { int index = -1; for (int i = 0; i < volumeMounts.size(); i++) { if (predicate.test(volumeMounts.get(i))) { @@ -1956,16 +1798,16 @@ public V1EphemeralContainerFluent.VolumeMountsNested addNewVolumeMount() { return setNewVolumeMountLike(index, buildVolumeMount(index)); } - public java.lang.String getWorkingDir() { + public String getWorkingDir() { return this.workingDir; } - public A withWorkingDir(java.lang.String workingDir) { + public A withWorkingDir(String workingDir) { this.workingDir = workingDir; return (A) this; } - public java.lang.Boolean hasWorkingDir() { + public Boolean hasWorkingDir() { return this.workingDir != null; } @@ -2049,7 +1891,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (args != null && !args.isEmpty()) { @@ -2161,20 +2003,19 @@ public A withTty() { } class EnvNestedImpl extends V1EnvVarFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvNested, - Nested { - EnvNestedImpl(java.lang.Integer index, V1EnvVar item) { + implements V1EphemeralContainerFluent.EnvNested, Nested { + EnvNestedImpl(Integer index, V1EnvVar item) { this.index = index; this.builder = new V1EnvVarBuilder(this, item); } EnvNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EnvVarBuilder(this); + this.builder = new V1EnvVarBuilder(this); } - io.kubernetes.client.openapi.models.V1EnvVarBuilder builder; - java.lang.Integer index; + V1EnvVarBuilder builder; + Integer index; public N and() { return (N) V1EphemeralContainerFluentImpl.this.setToEnv(index, builder.build()); @@ -2187,21 +2028,19 @@ public N endEnv() { class EnvFromNestedImpl extends V1EnvFromSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.EnvFromNested, - io.kubernetes.client.fluent.Nested { - EnvFromNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EnvFromSource item) { + implements V1EphemeralContainerFluent.EnvFromNested, Nested { + EnvFromNestedImpl(Integer index, V1EnvFromSource item) { this.index = index; this.builder = new V1EnvFromSourceBuilder(this, item); } EnvFromNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder(this); + this.builder = new V1EnvFromSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EnvFromSourceBuilder builder; - java.lang.Integer index; + V1EnvFromSourceBuilder builder; + Integer index; public N and() { return (N) V1EphemeralContainerFluentImpl.this.setToEnvFrom(index, builder.build()); @@ -2214,17 +2053,16 @@ public N endEnvFrom() { class LifecycleNestedImpl extends V1LifecycleFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LifecycleNested, - io.kubernetes.client.fluent.Nested { - LifecycleNestedImpl(io.kubernetes.client.openapi.models.V1Lifecycle item) { + implements V1EphemeralContainerFluent.LifecycleNested, Nested { + LifecycleNestedImpl(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } LifecycleNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LifecycleBuilder(this); + this.builder = new V1LifecycleBuilder(this); } - io.kubernetes.client.openapi.models.V1LifecycleBuilder builder; + V1LifecycleBuilder builder; public N and() { return (N) V1EphemeralContainerFluentImpl.this.withLifecycle(builder.build()); @@ -2237,18 +2075,16 @@ public N endLifecycle() { class LivenessProbeNestedImpl extends V1ProbeFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.LivenessProbeNested< - N>, - io.kubernetes.client.fluent.Nested { - LivenessProbeNestedImpl(io.kubernetes.client.openapi.models.V1Probe item) { + implements V1EphemeralContainerFluent.LivenessProbeNested, Nested { + LivenessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } LivenessProbeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProbeBuilder(this); + this.builder = new V1ProbeBuilder(this); } - io.kubernetes.client.openapi.models.V1ProbeBuilder builder; + V1ProbeBuilder builder; public N and() { return (N) V1EphemeralContainerFluentImpl.this.withLivenessProbe(builder.build()); @@ -2261,21 +2097,19 @@ public N endLivenessProbe() { class PortsNestedImpl extends V1ContainerPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.PortsNested, - io.kubernetes.client.fluent.Nested { - PortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerPort item) { + implements V1EphemeralContainerFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerPortBuilder(this); + this.builder = new V1ContainerPortBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerPortBuilder builder; - java.lang.Integer index; + V1ContainerPortBuilder builder; + Integer index; public N and() { return (N) V1EphemeralContainerFluentImpl.this.setToPorts(index, builder.build()); @@ -2288,19 +2122,16 @@ public N endPort() { class ReadinessProbeNestedImpl extends V1ProbeFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent - .ReadinessProbeNested< - N>, - io.kubernetes.client.fluent.Nested { - ReadinessProbeNestedImpl(io.kubernetes.client.openapi.models.V1Probe item) { + implements V1EphemeralContainerFluent.ReadinessProbeNested, Nested { + ReadinessProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } ReadinessProbeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProbeBuilder(this); + this.builder = new V1ProbeBuilder(this); } - io.kubernetes.client.openapi.models.V1ProbeBuilder builder; + V1ProbeBuilder builder; public N and() { return (N) V1EphemeralContainerFluentImpl.this.withReadinessProbe(builder.build()); @@ -2313,17 +2144,16 @@ public N endReadinessProbe() { class ResourcesNestedImpl extends V1ResourceRequirementsFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.ResourcesNested, - io.kubernetes.client.fluent.Nested { - ResourcesNestedImpl(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { + implements V1EphemeralContainerFluent.ResourcesNested, Nested { + ResourcesNestedImpl(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } ResourcesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder(this); + this.builder = new V1ResourceRequirementsBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder builder; + V1ResourceRequirementsBuilder builder; public N and() { return (N) V1EphemeralContainerFluentImpl.this.withResources(builder.build()); @@ -2336,19 +2166,16 @@ public N endResources() { class SecurityContextNestedImpl extends V1SecurityContextFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent - .SecurityContextNested< - N>, - io.kubernetes.client.fluent.Nested { - SecurityContextNestedImpl(io.kubernetes.client.openapi.models.V1SecurityContext item) { + implements V1EphemeralContainerFluent.SecurityContextNested, Nested { + SecurityContextNestedImpl(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } SecurityContextNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecurityContextBuilder(this); + this.builder = new V1SecurityContextBuilder(this); } - io.kubernetes.client.openapi.models.V1SecurityContextBuilder builder; + V1SecurityContextBuilder builder; public N and() { return (N) V1EphemeralContainerFluentImpl.this.withSecurityContext(builder.build()); @@ -2361,18 +2188,16 @@ public N endSecurityContext() { class StartupProbeNestedImpl extends V1ProbeFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.StartupProbeNested< - N>, - io.kubernetes.client.fluent.Nested { - StartupProbeNestedImpl(io.kubernetes.client.openapi.models.V1Probe item) { + implements V1EphemeralContainerFluent.StartupProbeNested, Nested { + StartupProbeNestedImpl(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } StartupProbeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProbeBuilder(this); + this.builder = new V1ProbeBuilder(this); } - io.kubernetes.client.openapi.models.V1ProbeBuilder builder; + V1ProbeBuilder builder; public N and() { return (N) V1EphemeralContainerFluentImpl.this.withStartupProbe(builder.build()); @@ -2385,21 +2210,19 @@ public N endStartupProbe() { class VolumeDevicesNestedImpl extends V1VolumeDeviceFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeDevicesNested< - N>, - io.kubernetes.client.fluent.Nested { - VolumeDevicesNestedImpl(java.lang.Integer index, V1VolumeDevice item) { + implements V1EphemeralContainerFluent.VolumeDevicesNested, Nested { + VolumeDevicesNestedImpl(Integer index, V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } VolumeDevicesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder(this); + this.builder = new V1VolumeDeviceBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder builder; - java.lang.Integer index; + V1VolumeDeviceBuilder builder; + Integer index; public N and() { return (N) V1EphemeralContainerFluentImpl.this.setToVolumeDevices(index, builder.build()); @@ -2412,21 +2235,19 @@ public N endVolumeDevice() { class VolumeMountsNestedImpl extends V1VolumeMountFluentImpl> - implements io.kubernetes.client.openapi.models.V1EphemeralContainerFluent.VolumeMountsNested< - N>, - io.kubernetes.client.fluent.Nested { - VolumeMountsNestedImpl(java.lang.Integer index, V1VolumeMount item) { + implements V1EphemeralContainerFluent.VolumeMountsNested, Nested { + VolumeMountsNestedImpl(Integer index, V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } VolumeMountsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeMountBuilder(this); + this.builder = new V1VolumeMountBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeMountBuilder builder; - java.lang.Integer index; + V1VolumeMountBuilder builder; + Integer index; public N and() { return (N) V1EphemeralContainerFluentImpl.this.setToVolumeMounts(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java index 7cbedfd8d6..477ff7df91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java @@ -16,9 +16,7 @@ public class V1EphemeralVolumeSourceBuilder extends V1EphemeralVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource, - V1EphemeralVolumeSourceBuilder> { + implements VisitableBuilder { public V1EphemeralVolumeSourceBuilder() { this(false); } @@ -27,51 +25,46 @@ public V1EphemeralVolumeSourceBuilder(Boolean validationEnabled) { this(new V1EphemeralVolumeSource(), validationEnabled); } - public V1EphemeralVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent fluent) { + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent) { this(fluent, false); } public V1EphemeralVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1EphemeralVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1EphemeralVolumeSource(), validationEnabled); } public V1EphemeralVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource instance) { + V1EphemeralVolumeSourceFluent fluent, V1EphemeralVolumeSource instance) { this(fluent, instance, false); } public V1EphemeralVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1EphemeralVolumeSourceFluent fluent, + V1EphemeralVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); this.validationEnabled = validationEnabled; } - public V1EphemeralVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource instance) { + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSource instance) { this(instance, false); } public V1EphemeralVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1EphemeralVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1EphemeralVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSource build() { + public V1EphemeralVolumeSource build() { V1EphemeralVolumeSource buildable = new V1EphemeralVolumeSource(); buildable.setVolumeClaimTemplate(fluent.getVolumeClaimTemplate()); return buildable; 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 c0896c846d..9bd7a81196 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 @@ -27,37 +27,23 @@ public interface V1EphemeralVolumeSourceFluent withNewVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - withNewVolumeClaimTemplateLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate item); + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplateLike( + V1PersistentVolumeClaimTemplate item); - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - editVolumeClaimTemplate(); + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - editOrNewVolumeClaimTemplate(); + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editOrNewVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - editOrNewVolumeClaimTemplateLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate item); + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested + editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item); public interface VolumeClaimTemplateNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java index c812f7744d..7705608321 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1EphemeralVolumeSourceFluentImpl implements V1EphemeralVolumeSourceFluent { public V1EphemeralVolumeSourceFluentImpl() {} - public V1EphemeralVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource instance) { + public V1EphemeralVolumeSourceFluentImpl(V1EphemeralVolumeSource instance) { this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); } @@ -38,19 +37,18 @@ public V1PersistentVolumeClaimTemplate getVolumeClaimTemplate() { return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate - buildVolumeClaimTemplate() { + public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate() { return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; } - public A withVolumeClaimTemplate( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate volumeClaimTemplate) { + public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { _visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); if (volumeClaimTemplate != null) { - this.volumeClaimTemplate = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateBuilder( - volumeClaimTemplate); + this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); _visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); + } else { + this.volumeClaimTemplate = null; + _visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); } return (A) this; } @@ -63,37 +61,24 @@ public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeC return new V1EphemeralVolumeSourceFluentImpl.VolumeClaimTemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - withNewVolumeClaimTemplateLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate item) { + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested withNewVolumeClaimTemplateLike( + V1PersistentVolumeClaimTemplate item) { return new V1EphemeralVolumeSourceFluentImpl.VolumeClaimTemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - editVolumeClaimTemplate() { + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editVolumeClaimTemplate() { return withNewVolumeClaimTemplateLike(getVolumeClaimTemplate()); } - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - editOrNewVolumeClaimTemplate() { + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested editOrNewVolumeClaimTemplate() { return withNewVolumeClaimTemplateLike( getVolumeClaimTemplate() != null ? getVolumeClaimTemplate() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateBuilder() - .build()); + : new V1PersistentVolumeClaimTemplateBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - A> - editOrNewVolumeClaimTemplateLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate item) { + public V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested + editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { return withNewVolumeClaimTemplateLike( getVolumeClaimTemplate() != null ? getVolumeClaimTemplate() : item); } @@ -126,21 +111,16 @@ public String toString() { class VolumeClaimTemplateNestedImpl extends V1PersistentVolumeClaimTemplateFluentImpl< V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested> - implements io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceFluent - .VolumeClaimTemplateNested< - N>, - Nested { - VolumeClaimTemplateNestedImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate item) { + implements V1EphemeralVolumeSourceFluent.VolumeClaimTemplateNested, Nested { + VolumeClaimTemplateNestedImpl(V1PersistentVolumeClaimTemplate item) { this.builder = new V1PersistentVolumeClaimTemplateBuilder(this, item); } VolumeClaimTemplateNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateBuilder(this); + this.builder = new V1PersistentVolumeClaimTemplateBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateBuilder builder; + V1PersistentVolumeClaimTemplateBuilder builder; public N and() { return (N) V1EphemeralVolumeSourceFluentImpl.this.withVolumeClaimTemplate(builder.build()); 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 37c28c7768..46fe88b9dd 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EventSourceBuilder extends V1EventSourceFluentImpl - implements VisitableBuilder< - V1EventSource, io.kubernetes.client.openapi.models.V1EventSourceBuilder> { + implements VisitableBuilder { public V1EventSourceBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1EventSourceBuilder(V1EventSourceFluent fluent) { this(fluent, false); } - public V1EventSourceBuilder( - io.kubernetes.client.openapi.models.V1EventSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EventSourceBuilder(V1EventSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1EventSource(), validationEnabled); } - public V1EventSourceBuilder( - io.kubernetes.client.openapi.models.V1EventSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EventSource instance) { + public V1EventSourceBuilder(V1EventSourceFluent fluent, V1EventSource instance) { this(fluent, instance, false); } public V1EventSourceBuilder( - io.kubernetes.client.openapi.models.V1EventSourceFluent fluent, - io.kubernetes.client.openapi.models.V1EventSource instance, - java.lang.Boolean validationEnabled) { + V1EventSourceFluent fluent, V1EventSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withComponent(instance.getComponent()); @@ -53,13 +46,11 @@ public V1EventSourceBuilder( this.validationEnabled = validationEnabled; } - public V1EventSourceBuilder(io.kubernetes.client.openapi.models.V1EventSource instance) { + public V1EventSourceBuilder(V1EventSource instance) { this(instance, false); } - public V1EventSourceBuilder( - io.kubernetes.client.openapi.models.V1EventSource instance, - java.lang.Boolean validationEnabled) { + public V1EventSourceBuilder(V1EventSource instance, Boolean validationEnabled) { this.fluent = this; this.withComponent(instance.getComponent()); @@ -68,10 +59,10 @@ public V1EventSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EventSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1EventSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1EventSource build() { + public V1EventSource build() { V1EventSource buildable = new V1EventSource(); buildable.setComponent(fluent.getComponent()); buildable.setHost(fluent.getHost()); 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 36a2d2f4b1..9141e8136e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java @@ -18,13 +18,13 @@ public interface V1EventSourceFluent> extends Fluent { public String getComponent(); - public A withComponent(java.lang.String component); + public A withComponent(String component); public Boolean hasComponent(); - public java.lang.String getHost(); + public String getHost(); - public A withHost(java.lang.String host); + public A withHost(String host); - public java.lang.Boolean hasHost(); + public Boolean hasHost(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java index 0a04f80f21..ff25dc641e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluentImpl.java @@ -20,20 +20,20 @@ public class V1EventSourceFluentImpl> extends B implements V1EventSourceFluent { public V1EventSourceFluentImpl() {} - public V1EventSourceFluentImpl(io.kubernetes.client.openapi.models.V1EventSource instance) { + public V1EventSourceFluentImpl(V1EventSource instance) { this.withComponent(instance.getComponent()); this.withHost(instance.getHost()); } private String component; - private java.lang.String host; + private String host; - public java.lang.String getComponent() { + public String getComponent() { return this.component; } - public A withComponent(java.lang.String component) { + public A withComponent(String component) { this.component = component; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasComponent() { return this.component != null; } - public java.lang.String getHost() { + public String getHost() { return this.host; } - public A withHost(java.lang.String host) { + public A withHost(String host) { this.host = host; return (A) this; } - public java.lang.Boolean hasHost() { + public Boolean hasHost() { return this.host != null; } @@ -69,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(component, host, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (component != null) { 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 15d1e1d91f..a2b0b19826 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1EvictionBuilder extends V1EvictionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Eviction, - io.kubernetes.client.openapi.models.V1EvictionBuilder> { + implements VisitableBuilder { public V1EvictionBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1EvictionBuilder(V1EvictionFluent fluent) { this(fluent, false); } - public V1EvictionBuilder( - io.kubernetes.client.openapi.models.V1EvictionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1EvictionBuilder(V1EvictionFluent fluent, Boolean validationEnabled) { this(fluent, new V1Eviction(), validationEnabled); } - public V1EvictionBuilder( - io.kubernetes.client.openapi.models.V1EvictionFluent fluent, - io.kubernetes.client.openapi.models.V1Eviction instance) { + public V1EvictionBuilder(V1EvictionFluent fluent, V1Eviction instance) { this(fluent, instance, false); } public V1EvictionBuilder( - io.kubernetes.client.openapi.models.V1EvictionFluent fluent, - io.kubernetes.client.openapi.models.V1Eviction instance, - java.lang.Boolean validationEnabled) { + V1EvictionFluent fluent, V1Eviction instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1EvictionBuilder( this.validationEnabled = validationEnabled; } - public V1EvictionBuilder(io.kubernetes.client.openapi.models.V1Eviction instance) { + public V1EvictionBuilder(V1Eviction instance) { this(instance, false); } - public V1EvictionBuilder( - io.kubernetes.client.openapi.models.V1Eviction instance, - java.lang.Boolean validationEnabled) { + public V1EvictionBuilder(V1Eviction instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1EvictionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1EvictionFluent fluent; - java.lang.Boolean validationEnabled; + V1EvictionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Eviction build() { + public V1Eviction build() { V1Eviction buildable = new V1Eviction(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setDeleteOptions(fluent.getDeleteOptions()); 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 17245cb4b0..b5af9c7179 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 @@ -19,7 +19,7 @@ public interface V1EvictionFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); @@ -31,57 +31,51 @@ public interface V1EvictionFluent> extends Fluent< @Deprecated public V1DeleteOptions getDeleteOptions(); - public io.kubernetes.client.openapi.models.V1DeleteOptions buildDeleteOptions(); + public V1DeleteOptions buildDeleteOptions(); - public A withDeleteOptions(io.kubernetes.client.openapi.models.V1DeleteOptions deleteOptions); + public A withDeleteOptions(V1DeleteOptions deleteOptions); - public java.lang.Boolean hasDeleteOptions(); + public Boolean hasDeleteOptions(); public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptions(); - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - withNewDeleteOptionsLike(io.kubernetes.client.openapi.models.V1DeleteOptions item); + public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item); - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - editDeleteOptions(); + public V1EvictionFluent.DeleteOptionsNested editDeleteOptions(); - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - editOrNewDeleteOptions(); + public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptions(); - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - editOrNewDeleteOptionsLike(io.kubernetes.client.openapi.models.V1DeleteOptions item); + public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1EvictionFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1EvictionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested editMetadata(); + public V1EvictionFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested editOrNewMetadata(); + public V1EvictionFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1EvictionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public interface DeleteOptionsNested extends Nested, V1DeleteOptionsFluent> { @@ -91,8 +85,7 @@ public interface DeleteOptionsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java index 749b0c8c39..82eff2ff31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluentImpl.java @@ -21,7 +21,7 @@ public class V1EvictionFluentImpl> extends BaseFlu implements V1EvictionFluent { public V1EvictionFluentImpl() {} - public V1EvictionFluentImpl(io.kubernetes.client.openapi.models.V1Eviction instance) { + public V1EvictionFluentImpl(V1Eviction instance) { this.withApiVersion(instance.getApiVersion()); this.withDeleteOptions(instance.getDeleteOptions()); @@ -33,14 +33,14 @@ public V1EvictionFluentImpl(io.kubernetes.client.openapi.models.V1Eviction insta private String apiVersion; private V1DeleteOptionsBuilder deleteOptions; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,24 +55,27 @@ public Boolean hasApiVersion() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1DeleteOptions getDeleteOptions() { + public V1DeleteOptions getDeleteOptions() { return this.deleteOptions != null ? this.deleteOptions.build() : null; } - public io.kubernetes.client.openapi.models.V1DeleteOptions buildDeleteOptions() { + public V1DeleteOptions buildDeleteOptions() { return this.deleteOptions != null ? this.deleteOptions.build() : null; } - public A withDeleteOptions(io.kubernetes.client.openapi.models.V1DeleteOptions deleteOptions) { + public A withDeleteOptions(V1DeleteOptions deleteOptions) { _visitables.get("deleteOptions").remove(this.deleteOptions); if (deleteOptions != null) { this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); _visitables.get("deleteOptions").add(this.deleteOptions); + } else { + this.deleteOptions = null; + _visitables.get("deleteOptions").remove(this.deleteOptions); } return (A) this; } - public java.lang.Boolean hasDeleteOptions() { + public Boolean hasDeleteOptions() { return this.deleteOptions != null; } @@ -80,39 +83,33 @@ public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptions() { return new V1EvictionFluentImpl.DeleteOptionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - withNewDeleteOptionsLike(io.kubernetes.client.openapi.models.V1DeleteOptions item) { + public V1EvictionFluent.DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { return new V1EvictionFluentImpl.DeleteOptionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - editDeleteOptions() { + public V1EvictionFluent.DeleteOptionsNested editDeleteOptions() { return withNewDeleteOptionsLike(getDeleteOptions()); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - editOrNewDeleteOptions() { + public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptions() { return withNewDeleteOptionsLike( - getDeleteOptions() != null - ? getDeleteOptions() - : new io.kubernetes.client.openapi.models.V1DeleteOptionsBuilder().build()); + getDeleteOptions() != null ? getDeleteOptions() : new V1DeleteOptionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested - editOrNewDeleteOptionsLike(io.kubernetes.client.openapi.models.V1DeleteOptions item) { + public V1EvictionFluent.DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item) { return withNewDeleteOptionsLike(getDeleteOptions() != null ? getDeleteOptions() : item); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -121,25 +118,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -147,25 +147,20 @@ public V1EvictionFluent.MetadataNested withNewMetadata() { return new V1EvictionFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1EvictionFluentImpl.MetadataNestedImpl(item); + public V1EvictionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1EvictionFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested editMetadata() { + public V1EvictionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested - editOrNewMetadata() { + public V1EvictionFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1EvictionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -187,7 +182,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, deleteOptions, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -212,17 +207,16 @@ public java.lang.String toString() { class DeleteOptionsNestedImpl extends V1DeleteOptionsFluentImpl> - implements io.kubernetes.client.openapi.models.V1EvictionFluent.DeleteOptionsNested, - Nested { - DeleteOptionsNestedImpl(io.kubernetes.client.openapi.models.V1DeleteOptions item) { + implements V1EvictionFluent.DeleteOptionsNested, Nested { + DeleteOptionsNestedImpl(V1DeleteOptions item) { this.builder = new V1DeleteOptionsBuilder(this, item); } DeleteOptionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DeleteOptionsBuilder(this); + this.builder = new V1DeleteOptionsBuilder(this); } - io.kubernetes.client.openapi.models.V1DeleteOptionsBuilder builder; + V1DeleteOptionsBuilder builder; public N and() { return (N) V1EvictionFluentImpl.this.withDeleteOptions(builder.build()); @@ -234,17 +228,16 @@ public N endDeleteOptions() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1EvictionFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1EvictionFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1EvictionFluentImpl.this.withMetadata(builder.build()); 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 5366a3d5d7..d8acb60d81 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ExecActionBuilder extends V1ExecActionFluentImpl - implements VisitableBuilder< - V1ExecAction, io.kubernetes.client.openapi.models.V1ExecActionBuilder> { + implements VisitableBuilder { public V1ExecActionBuilder() { this(false); } @@ -25,49 +24,41 @@ public V1ExecActionBuilder(Boolean validationEnabled) { this(new V1ExecAction(), validationEnabled); } - public V1ExecActionBuilder(io.kubernetes.client.openapi.models.V1ExecActionFluent fluent) { + public V1ExecActionBuilder(V1ExecActionFluent fluent) { this(fluent, false); } - public V1ExecActionBuilder( - io.kubernetes.client.openapi.models.V1ExecActionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ExecActionBuilder(V1ExecActionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ExecAction(), validationEnabled); } - public V1ExecActionBuilder( - io.kubernetes.client.openapi.models.V1ExecActionFluent fluent, - io.kubernetes.client.openapi.models.V1ExecAction instance) { + public V1ExecActionBuilder(V1ExecActionFluent fluent, V1ExecAction instance) { this(fluent, instance, false); } public V1ExecActionBuilder( - io.kubernetes.client.openapi.models.V1ExecActionFluent fluent, - io.kubernetes.client.openapi.models.V1ExecAction instance, - java.lang.Boolean validationEnabled) { + V1ExecActionFluent fluent, V1ExecAction instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCommand(instance.getCommand()); this.validationEnabled = validationEnabled; } - public V1ExecActionBuilder(io.kubernetes.client.openapi.models.V1ExecAction instance) { + public V1ExecActionBuilder(V1ExecAction instance) { this(instance, false); } - public V1ExecActionBuilder( - io.kubernetes.client.openapi.models.V1ExecAction instance, - java.lang.Boolean validationEnabled) { + public V1ExecActionBuilder(V1ExecAction instance, Boolean validationEnabled) { this.fluent = this; this.withCommand(instance.getCommand()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ExecActionFluent fluent; - java.lang.Boolean validationEnabled; + V1ExecActionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ExecAction build() { + public V1ExecAction build() { V1ExecAction buildable = new V1ExecAction(); buildable.setCommand(fluent.getCommand()); return buildable; 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 bc955aaf89..e6b8b00dd9 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 @@ -21,31 +21,31 @@ public interface V1ExecActionFluent> extends Fluent { public A addToCommand(Integer index, String item); - public A setToCommand(java.lang.Integer index, java.lang.String item); + public A setToCommand(Integer index, String item); public A addToCommand(java.lang.String... items); - public A addAllToCommand(Collection items); + public A addAllToCommand(Collection items); public A removeFromCommand(java.lang.String... items); - public A removeAllFromCommand(java.util.Collection items); + public A removeAllFromCommand(Collection items); - public List getCommand(); + public List getCommand(); - public java.lang.String getCommand(java.lang.Integer index); + public String getCommand(Integer index); - public java.lang.String getFirstCommand(); + public String getFirstCommand(); - public java.lang.String getLastCommand(); + public String getLastCommand(); - public java.lang.String getMatchingCommand(Predicate predicate); + public String getMatchingCommand(Predicate predicate); - public Boolean hasMatchingCommand(java.util.function.Predicate predicate); + public Boolean hasMatchingCommand(Predicate predicate); - public A withCommand(java.util.List command); + public A withCommand(List command); public A withCommand(java.lang.String... command); - public java.lang.Boolean hasCommand(); + public Boolean hasCommand(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java index 42937a66c1..7a7d45f856 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluentImpl.java @@ -24,23 +24,23 @@ public class V1ExecActionFluentImpl> extends Bas implements V1ExecActionFluent { public V1ExecActionFluentImpl() {} - public V1ExecActionFluentImpl(io.kubernetes.client.openapi.models.V1ExecAction instance) { + public V1ExecActionFluentImpl(V1ExecAction instance) { this.withCommand(instance.getCommand()); } private List command; - public A addToCommand(Integer index, java.lang.String item) { + public A addToCommand(Integer index, String item) { if (this.command == null) { - this.command = new ArrayList(); + this.command = new ArrayList(); } this.command.add(index, item); return (A) this; } - public A setToCommand(java.lang.Integer index, java.lang.String item) { + public A setToCommand(Integer index, String item) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } this.command.set(index, item); return (A) this; @@ -48,26 +48,26 @@ public A setToCommand(java.lang.Integer index, java.lang.String item) { public A addToCommand(java.lang.String... items) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.command.add(item); } return (A) this; } - public A addAllToCommand(Collection items) { + public A addAllToCommand(Collection items) { if (this.command == null) { - this.command = new java.util.ArrayList(); + this.command = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.command.add(item); } return (A) this; } public A removeFromCommand(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.command != null) { this.command.remove(item); } @@ -75,8 +75,8 @@ public A removeFromCommand(java.lang.String... items) { return (A) this; } - public A removeAllFromCommand(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromCommand(Collection items) { + for (String item : items) { if (this.command != null) { this.command.remove(item); } @@ -84,24 +84,24 @@ public A removeAllFromCommand(java.util.Collection items) { return (A) this; } - public java.util.List getCommand() { + public List getCommand() { return this.command; } - public java.lang.String getCommand(java.lang.Integer index) { + public String getCommand(Integer index) { return this.command.get(index); } - public java.lang.String getFirstCommand() { + public String getFirstCommand() { return this.command.get(0); } - public java.lang.String getLastCommand() { + public String getLastCommand() { return this.command.get(command.size() - 1); } - public java.lang.String getMatchingCommand(Predicate predicate) { - for (java.lang.String item : command) { + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return item; } @@ -109,8 +109,8 @@ public java.lang.String getMatchingCommand(Predicate predicate return null; } - public Boolean hasMatchingCommand(java.util.function.Predicate predicate) { - for (java.lang.String item : command) { + public Boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { if (predicate.test(item)) { return true; } @@ -118,10 +118,10 @@ public Boolean hasMatchingCommand(java.util.function.Predicate return false; } - public A withCommand(java.util.List command) { + public A withCommand(List command) { if (command != null) { - this.command = new java.util.ArrayList(); - for (java.lang.String item : command) { + this.command = new ArrayList(); + for (String item : command) { this.addToCommand(item); } } else { @@ -135,14 +135,14 @@ public A withCommand(java.lang.String... command) { this.command.clear(); } if (command != null) { - for (java.lang.String item : command) { + for (String item : command) { this.addToCommand(item); } } return (A) this; } - public java.lang.Boolean hasCommand() { + public Boolean hasCommand() { return command != null && !command.isEmpty(); } @@ -158,7 +158,7 @@ public int hashCode() { return java.util.Objects.hash(command, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (command != null && !command.isEmpty()) { 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 4c91f8a8b7..faa20407fc 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 @@ -16,9 +16,7 @@ public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ExternalDocumentation, - io.kubernetes.client.openapi.models.V1ExternalDocumentationBuilder> { + implements VisitableBuilder { public V1ExternalDocumentationBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent) { } public V1ExternalDocumentationBuilder( - io.kubernetes.client.openapi.models.V1ExternalDocumentationFluent fluent, - java.lang.Boolean validationEnabled) { + V1ExternalDocumentationFluent fluent, Boolean validationEnabled) { this(fluent, new V1ExternalDocumentation(), validationEnabled); } public V1ExternalDocumentationBuilder( - io.kubernetes.client.openapi.models.V1ExternalDocumentationFluent fluent, - io.kubernetes.client.openapi.models.V1ExternalDocumentation instance) { + V1ExternalDocumentationFluent fluent, V1ExternalDocumentation instance) { this(fluent, instance, false); } public V1ExternalDocumentationBuilder( - io.kubernetes.client.openapi.models.V1ExternalDocumentationFluent fluent, - io.kubernetes.client.openapi.models.V1ExternalDocumentation instance, - java.lang.Boolean validationEnabled) { + V1ExternalDocumentationFluent fluent, + V1ExternalDocumentation instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDescription(instance.getDescription()); @@ -55,14 +51,12 @@ public V1ExternalDocumentationBuilder( this.validationEnabled = validationEnabled; } - public V1ExternalDocumentationBuilder( - io.kubernetes.client.openapi.models.V1ExternalDocumentation instance) { + public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance) { this(instance, false); } public V1ExternalDocumentationBuilder( - io.kubernetes.client.openapi.models.V1ExternalDocumentation instance, - java.lang.Boolean validationEnabled) { + V1ExternalDocumentation instance, Boolean validationEnabled) { this.fluent = this; this.withDescription(instance.getDescription()); @@ -71,10 +65,10 @@ public V1ExternalDocumentationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ExternalDocumentationFluent fluent; - java.lang.Boolean validationEnabled; + V1ExternalDocumentationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ExternalDocumentation build() { + public V1ExternalDocumentation build() { V1ExternalDocumentation buildable = new V1ExternalDocumentation(); buildable.setDescription(fluent.getDescription()); buildable.setUrl(fluent.getUrl()); 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 3d679de764..e22935fcfd 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 @@ -19,13 +19,13 @@ public interface V1ExternalDocumentationFluent { public String getDescription(); - public A withDescription(java.lang.String description); + public A withDescription(String description); public Boolean hasDescription(); - public java.lang.String getUrl(); + public String getUrl(); - public A withUrl(java.lang.String url); + public A withUrl(String url); - public java.lang.Boolean hasUrl(); + public Boolean hasUrl(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java index a6057d8b43..5a61ad9dc2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluentImpl.java @@ -20,21 +20,20 @@ public class V1ExternalDocumentationFluentImpl implements V1ExternalDocumentationFluent { public V1ExternalDocumentationFluentImpl() {} - public V1ExternalDocumentationFluentImpl( - io.kubernetes.client.openapi.models.V1ExternalDocumentation instance) { + public V1ExternalDocumentationFluentImpl(V1ExternalDocumentation instance) { this.withDescription(instance.getDescription()); this.withUrl(instance.getUrl()); } private String description; - private java.lang.String url; + private String url; - public java.lang.String getDescription() { + public String getDescription() { return this.description; } - public A withDescription(java.lang.String description) { + public A withDescription(String description) { this.description = description; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasDescription() { return this.description != null; } - public java.lang.String getUrl() { + public String getUrl() { return this.url; } - public A withUrl(java.lang.String url) { + public A withUrl(String url) { this.url = url; return (A) this; } - public java.lang.Boolean hasUrl() { + public Boolean hasUrl() { return this.url != null; } @@ -70,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(description, url, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (description != null) { 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 9023ccb1cc..65109e2f80 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1FCVolumeSource, V1FCVolumeSourceBuilder> { + implements VisitableBuilder { public V1FCVolumeSourceBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1FCVolumeSourceBuilder(Boolean validationEnabled) { this(new V1FCVolumeSource(), validationEnabled); } - public V1FCVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FCVolumeSourceFluent fluent) { + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent) { this(fluent, false); } - public V1FCVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FCVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1FCVolumeSource(), validationEnabled); } - public V1FCVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FCVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FCVolumeSource instance) { + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent, V1FCVolumeSource instance) { this(fluent, instance, false); } public V1FCVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FCVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FCVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1FCVolumeSourceFluent fluent, V1FCVolumeSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -60,13 +52,11 @@ public V1FCVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1FCVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1FCVolumeSource instance) { + public V1FCVolumeSourceBuilder(V1FCVolumeSource instance) { this(instance, false); } - public V1FCVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FCVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1FCVolumeSourceBuilder(V1FCVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -81,10 +71,10 @@ public V1FCVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1FCVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1FCVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1FCVolumeSource build() { + public V1FCVolumeSource build() { V1FCVolumeSource buildable = new V1FCVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setLun(fluent.getLun()); 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 e505df8e14..15736f892e 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 @@ -21,83 +21,81 @@ public interface V1FCVolumeSourceFluent> extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); public Integer getLun(); - public A withLun(java.lang.Integer lun); + public A withLun(Integer lun); - public java.lang.Boolean hasLun(); + public Boolean hasLun(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public A addToTargetWWNs(java.lang.Integer index, java.lang.String item); + public A addToTargetWWNs(Integer index, String item); - public A setToTargetWWNs(java.lang.Integer index, java.lang.String item); + public A setToTargetWWNs(Integer index, String item); public A addToTargetWWNs(java.lang.String... items); - public A addAllToTargetWWNs(Collection items); + public A addAllToTargetWWNs(Collection items); public A removeFromTargetWWNs(java.lang.String... items); - public A removeAllFromTargetWWNs(java.util.Collection items); + public A removeAllFromTargetWWNs(Collection items); - public List getTargetWWNs(); + public List getTargetWWNs(); - public java.lang.String getTargetWWN(java.lang.Integer index); + public String getTargetWWN(Integer index); - public java.lang.String getFirstTargetWWN(); + public String getFirstTargetWWN(); - public java.lang.String getLastTargetWWN(); + public String getLastTargetWWN(); - public java.lang.String getMatchingTargetWWN(Predicate predicate); + public String getMatchingTargetWWN(Predicate predicate); - public java.lang.Boolean hasMatchingTargetWWN( - java.util.function.Predicate predicate); + public Boolean hasMatchingTargetWWN(Predicate predicate); - public A withTargetWWNs(java.util.List targetWWNs); + public A withTargetWWNs(List targetWWNs); public A withTargetWWNs(java.lang.String... targetWWNs); - public java.lang.Boolean hasTargetWWNs(); + public Boolean hasTargetWWNs(); - public A addToWwids(java.lang.Integer index, java.lang.String item); + public A addToWwids(Integer index, String item); - public A setToWwids(java.lang.Integer index, java.lang.String item); + public A setToWwids(Integer index, String item); public A addToWwids(java.lang.String... items); - public A addAllToWwids(java.util.Collection items); + public A addAllToWwids(Collection items); public A removeFromWwids(java.lang.String... items); - public A removeAllFromWwids(java.util.Collection items); + public A removeAllFromWwids(Collection items); - public java.util.List getWwids(); + public List getWwids(); - public java.lang.String getWwid(java.lang.Integer index); + public String getWwid(Integer index); - public java.lang.String getFirstWwid(); + public String getFirstWwid(); - public java.lang.String getLastWwid(); + public String getLastWwid(); - public java.lang.String getMatchingWwid(java.util.function.Predicate predicate); + public String getMatchingWwid(Predicate predicate); - public java.lang.Boolean hasMatchingWwid( - java.util.function.Predicate predicate); + public Boolean hasMatchingWwid(Predicate predicate); - public A withWwids(java.util.List wwids); + public A withWwids(List wwids); public A withWwids(java.lang.String... wwids); - public java.lang.Boolean hasWwids(); + public Boolean hasWwids(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java index 63f2c78465..da46cb8425 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluentImpl.java @@ -24,7 +24,7 @@ public class V1FCVolumeSourceFluentImpl> ext implements V1FCVolumeSourceFluent { public V1FCVolumeSourceFluentImpl() {} - public V1FCVolumeSourceFluentImpl(io.kubernetes.client.openapi.models.V1FCVolumeSource instance) { + public V1FCVolumeSourceFluentImpl(V1FCVolumeSource instance) { this.withFsType(instance.getFsType()); this.withLun(instance.getLun()); @@ -39,59 +39,59 @@ public V1FCVolumeSourceFluentImpl(io.kubernetes.client.openapi.models.V1FCVolume private String fsType; private Integer lun; private Boolean readOnly; - private List targetWWNs; - private java.util.List wwids; + private List targetWWNs; + private List wwids; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Integer getLun() { + public Integer getLun() { return this.lun; } - public A withLun(java.lang.Integer lun) { + public A withLun(Integer lun) { this.lun = lun; return (A) this; } - public java.lang.Boolean hasLun() { + public Boolean hasLun() { return this.lun != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public A addToTargetWWNs(java.lang.Integer index, java.lang.String item) { + public A addToTargetWWNs(Integer index, String item) { if (this.targetWWNs == null) { - this.targetWWNs = new ArrayList(); + this.targetWWNs = new ArrayList(); } this.targetWWNs.add(index, item); return (A) this; } - public A setToTargetWWNs(java.lang.Integer index, java.lang.String item) { + public A setToTargetWWNs(Integer index, String item) { if (this.targetWWNs == null) { - this.targetWWNs = new java.util.ArrayList(); + this.targetWWNs = new ArrayList(); } this.targetWWNs.set(index, item); return (A) this; @@ -99,26 +99,26 @@ public A setToTargetWWNs(java.lang.Integer index, java.lang.String item) { public A addToTargetWWNs(java.lang.String... items) { if (this.targetWWNs == null) { - this.targetWWNs = new java.util.ArrayList(); + this.targetWWNs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.targetWWNs.add(item); } return (A) this; } - public A addAllToTargetWWNs(Collection items) { + public A addAllToTargetWWNs(Collection items) { if (this.targetWWNs == null) { - this.targetWWNs = new java.util.ArrayList(); + this.targetWWNs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.targetWWNs.add(item); } return (A) this; } public A removeFromTargetWWNs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.targetWWNs != null) { this.targetWWNs.remove(item); } @@ -126,8 +126,8 @@ public A removeFromTargetWWNs(java.lang.String... items) { return (A) this; } - public A removeAllFromTargetWWNs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromTargetWWNs(Collection items) { + for (String item : items) { if (this.targetWWNs != null) { this.targetWWNs.remove(item); } @@ -135,24 +135,24 @@ public A removeAllFromTargetWWNs(java.util.Collection items) { return (A) this; } - public java.util.List getTargetWWNs() { + public List getTargetWWNs() { return this.targetWWNs; } - public java.lang.String getTargetWWN(java.lang.Integer index) { + public String getTargetWWN(Integer index) { return this.targetWWNs.get(index); } - public java.lang.String getFirstTargetWWN() { + public String getFirstTargetWWN() { return this.targetWWNs.get(0); } - public java.lang.String getLastTargetWWN() { + public String getLastTargetWWN() { return this.targetWWNs.get(targetWWNs.size() - 1); } - public java.lang.String getMatchingTargetWWN(Predicate predicate) { - for (java.lang.String item : targetWWNs) { + public String getMatchingTargetWWN(Predicate predicate) { + for (String item : targetWWNs) { if (predicate.test(item)) { return item; } @@ -160,9 +160,8 @@ public java.lang.String getMatchingTargetWWN(Predicate predica return null; } - public java.lang.Boolean hasMatchingTargetWWN( - java.util.function.Predicate predicate) { - for (java.lang.String item : targetWWNs) { + public Boolean hasMatchingTargetWWN(Predicate predicate) { + for (String item : targetWWNs) { if (predicate.test(item)) { return true; } @@ -170,10 +169,10 @@ public java.lang.Boolean hasMatchingTargetWWN( return false; } - public A withTargetWWNs(java.util.List targetWWNs) { + public A withTargetWWNs(List targetWWNs) { if (targetWWNs != null) { - this.targetWWNs = new java.util.ArrayList(); - for (java.lang.String item : targetWWNs) { + this.targetWWNs = new ArrayList(); + for (String item : targetWWNs) { this.addToTargetWWNs(item); } } else { @@ -187,28 +186,28 @@ public A withTargetWWNs(java.lang.String... targetWWNs) { this.targetWWNs.clear(); } if (targetWWNs != null) { - for (java.lang.String item : targetWWNs) { + for (String item : targetWWNs) { this.addToTargetWWNs(item); } } return (A) this; } - public java.lang.Boolean hasTargetWWNs() { + public Boolean hasTargetWWNs() { return targetWWNs != null && !targetWWNs.isEmpty(); } - public A addToWwids(java.lang.Integer index, java.lang.String item) { + public A addToWwids(Integer index, String item) { if (this.wwids == null) { - this.wwids = new java.util.ArrayList(); + this.wwids = new ArrayList(); } this.wwids.add(index, item); return (A) this; } - public A setToWwids(java.lang.Integer index, java.lang.String item) { + public A setToWwids(Integer index, String item) { if (this.wwids == null) { - this.wwids = new java.util.ArrayList(); + this.wwids = new ArrayList(); } this.wwids.set(index, item); return (A) this; @@ -216,26 +215,26 @@ public A setToWwids(java.lang.Integer index, java.lang.String item) { public A addToWwids(java.lang.String... items) { if (this.wwids == null) { - this.wwids = new java.util.ArrayList(); + this.wwids = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.wwids.add(item); } return (A) this; } - public A addAllToWwids(java.util.Collection items) { + public A addAllToWwids(Collection items) { if (this.wwids == null) { - this.wwids = new java.util.ArrayList(); + this.wwids = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.wwids.add(item); } return (A) this; } public A removeFromWwids(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.wwids != null) { this.wwids.remove(item); } @@ -243,8 +242,8 @@ public A removeFromWwids(java.lang.String... items) { return (A) this; } - public A removeAllFromWwids(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromWwids(Collection items) { + for (String item : items) { if (this.wwids != null) { this.wwids.remove(item); } @@ -252,25 +251,24 @@ public A removeAllFromWwids(java.util.Collection items) { return (A) this; } - public java.util.List getWwids() { + public List getWwids() { return this.wwids; } - public java.lang.String getWwid(java.lang.Integer index) { + public String getWwid(Integer index) { return this.wwids.get(index); } - public java.lang.String getFirstWwid() { + public String getFirstWwid() { return this.wwids.get(0); } - public java.lang.String getLastWwid() { + public String getLastWwid() { return this.wwids.get(wwids.size() - 1); } - public java.lang.String getMatchingWwid( - java.util.function.Predicate predicate) { - for (java.lang.String item : wwids) { + public String getMatchingWwid(Predicate predicate) { + for (String item : wwids) { if (predicate.test(item)) { return item; } @@ -278,9 +276,8 @@ public java.lang.String getMatchingWwid( return null; } - public java.lang.Boolean hasMatchingWwid( - java.util.function.Predicate predicate) { - for (java.lang.String item : wwids) { + public Boolean hasMatchingWwid(Predicate predicate) { + for (String item : wwids) { if (predicate.test(item)) { return true; } @@ -288,10 +285,10 @@ public java.lang.Boolean hasMatchingWwid( return false; } - public A withWwids(java.util.List wwids) { + public A withWwids(List wwids) { if (wwids != null) { - this.wwids = new java.util.ArrayList(); - for (java.lang.String item : wwids) { + this.wwids = new ArrayList(); + for (String item : wwids) { this.addToWwids(item); } } else { @@ -305,14 +302,14 @@ public A withWwids(java.lang.String... wwids) { this.wwids.clear(); } if (wwids != null) { - for (java.lang.String item : wwids) { + for (String item : wwids) { this.addToWwids(item); } } return (A) this; } - public java.lang.Boolean hasWwids() { + public Boolean hasWwids() { return wwids != null && !wwids.isEmpty(); } @@ -333,7 +330,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, lun, readOnly, targetWWNs, wwids, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 68e65c35a3..7df26bb2ef 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 @@ -16,9 +16,7 @@ public class V1FlexPersistentVolumeSourceBuilder extends V1FlexPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource, - V1FlexPersistentVolumeSourceBuilder> { + implements VisitableBuilder { public V1FlexPersistentVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent } public V1FlexPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1FlexPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1FlexPersistentVolumeSource(), validationEnabled); } public V1FlexPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource instance) { + V1FlexPersistentVolumeSourceFluent fluent, V1FlexPersistentVolumeSource instance) { this(fluent, instance, false); } public V1FlexPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1FlexPersistentVolumeSourceFluent fluent, + V1FlexPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDriver(instance.getDriver()); @@ -61,14 +57,12 @@ public V1FlexPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1FlexPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource instance) { + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSource instance) { this(instance, false); } public V1FlexPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1FlexPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDriver(instance.getDriver()); @@ -83,10 +77,10 @@ public V1FlexPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1FlexPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource build() { + public V1FlexPersistentVolumeSource build() { V1FlexPersistentVolumeSource buildable = new V1FlexPersistentVolumeSource(); buildable.setDriver(fluent.getDriver()); buildable.setFsType(fluent.getFsType()); 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 a6b94c2af6..21c2a261db 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 @@ -21,35 +21,35 @@ public interface V1FlexPersistentVolumeSourceFluent { public String getDriver(); - public A withDriver(java.lang.String driver); + public A withDriver(String driver); public Boolean hasDriver(); - public java.lang.String getFsType(); + public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); - public java.lang.Boolean hasFsType(); + public Boolean hasFsType(); - public A addToOptions(java.lang.String key, java.lang.String value); + public A addToOptions(String key, String value); - public A addToOptions(Map map); + public A addToOptions(Map map); - public A removeFromOptions(java.lang.String key); + public A removeFromOptions(String key); - public A removeFromOptions(java.util.Map map); + public A removeFromOptions(Map map); - public java.util.Map getOptions(); + public Map getOptions(); - public A withOptions(java.util.Map options); + public A withOptions(Map options); - public java.lang.Boolean hasOptions(); + public Boolean hasOptions(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -59,25 +59,23 @@ public interface V1FlexPersistentVolumeSourceFluent withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item); - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java index e13d0d18d9..e02c24dc13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluentImpl.java @@ -23,8 +23,7 @@ public class V1FlexPersistentVolumeSourceFluentImpl implements V1FlexPersistentVolumeSourceFluent { public V1FlexPersistentVolumeSourceFluentImpl() {} - public V1FlexPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource instance) { + public V1FlexPersistentVolumeSourceFluentImpl(V1FlexPersistentVolumeSource instance) { this.withDriver(instance.getDriver()); this.withFsType(instance.getFsType()); @@ -37,38 +36,38 @@ public V1FlexPersistentVolumeSourceFluentImpl( } private String driver; - private java.lang.String fsType; - private Map options; + private String fsType; + private Map options; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - public java.lang.String getDriver() { + public String getDriver() { return this.driver; } - public A withDriver(java.lang.String driver) { + public A withDriver(String driver) { this.driver = driver; return (A) this; } - public java.lang.Boolean hasDriver() { + public Boolean hasDriver() { return this.driver != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public A addToOptions(java.lang.String key, java.lang.String value) { + public A addToOptions(String key, String value) { if (this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } @@ -78,9 +77,9 @@ public A addToOptions(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToOptions(java.util.Map map) { + public A addToOptions(Map map) { if (this.options == null && map != null) { - this.options = new java.util.LinkedHashMap(); + this.options = new LinkedHashMap(); } if (map != null) { this.options.putAll(map); @@ -88,7 +87,7 @@ public A addToOptions(java.util.Map map) { return (A) this; } - public A removeFromOptions(java.lang.String key) { + public A removeFromOptions(String key) { if (this.options == null) { return (A) this; } @@ -98,7 +97,7 @@ public A removeFromOptions(java.lang.String key) { return (A) this; } - public A removeFromOptions(java.util.Map map) { + public A removeFromOptions(Map map) { if (this.options == null) { return (A) this; } @@ -112,33 +111,33 @@ public A removeFromOptions(java.util.Map map return (A) this; } - public java.util.Map getOptions() { + public Map getOptions() { return this.options; } - public A withOptions(java.util.Map options) { + public A withOptions(Map options) { if (options == null) { this.options = null; } else { - this.options = new java.util.LinkedHashMap(options); + this.options = new LinkedHashMap(options); } return (A) this; } - public java.lang.Boolean hasOptions() { + public Boolean hasOptions() { return this.options != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -152,20 +151,23 @@ public V1SecretReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef() { + public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef) { + public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(secretRef); + this.secretRef = new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -173,26 +175,22 @@ public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() return new V1FlexPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1FlexPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item) { return new V1FlexPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1FlexPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } @@ -213,7 +211,7 @@ public int hashCode() { return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (driver != null) { @@ -246,19 +244,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { + implements V1FlexPersistentVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1FlexPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 958f7595d5..9d695340ff 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 @@ -16,9 +16,7 @@ public class V1FlexVolumeSourceBuilder extends V1FlexVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1FlexVolumeSource, - io.kubernetes.client.openapi.models.V1FlexVolumeSourceBuilder> { + implements VisitableBuilder { public V1FlexVolumeSourceBuilder() { this(false); } @@ -31,22 +29,17 @@ public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent) { this(fluent, false); } - public V1FlexVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1FlexVolumeSource(), validationEnabled); } public V1FlexVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FlexVolumeSource instance) { + V1FlexVolumeSourceFluent fluent, V1FlexVolumeSource instance) { this(fluent, instance, false); } public V1FlexVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FlexVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1FlexVolumeSourceFluent fluent, V1FlexVolumeSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDriver(instance.getDriver()); @@ -61,14 +54,11 @@ public V1FlexVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1FlexVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexVolumeSource instance) { + public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance) { this(instance, false); } - public V1FlexVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlexVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDriver(instance.getDriver()); @@ -83,10 +73,10 @@ public V1FlexVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1FlexVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1FlexVolumeSource build() { + public V1FlexVolumeSource build() { V1FlexVolumeSource buildable = new V1FlexVolumeSource(); buildable.setDriver(fluent.getDriver()); buildable.setFsType(fluent.getFsType()); 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 bf7d8cb078..64b22e71d7 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 @@ -20,35 +20,35 @@ public interface V1FlexVolumeSourceFluent> extends Fluent { public String getDriver(); - public A withDriver(java.lang.String driver); + public A withDriver(String driver); public Boolean hasDriver(); - public java.lang.String getFsType(); + public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); - public java.lang.Boolean hasFsType(); + public Boolean hasFsType(); - public A addToOptions(java.lang.String key, java.lang.String value); + public A addToOptions(String key, String value); - public A addToOptions(Map map); + public A addToOptions(Map map); - public A removeFromOptions(java.lang.String key); + public A removeFromOptions(String key); - public A removeFromOptions(java.util.Map map); + public A removeFromOptions(Map map); - public java.util.Map getOptions(); + public Map getOptions(); - public A withOptions(java.util.Map options); + public A withOptions(Map options); - public java.lang.Boolean hasOptions(); + public Boolean hasOptions(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -58,25 +58,23 @@ public interface V1FlexVolumeSourceFluent> @Deprecated public V1LocalObjectReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef(); + public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef); + public A withSecretRef(V1LocalObjectReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1FlexVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java index 6e00d5e961..e941188458 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluentImpl.java @@ -23,8 +23,7 @@ public class V1FlexVolumeSourceFluentImpl> extends BaseFluent implements V1FlexVolumeSourceFluent { public V1FlexVolumeSourceFluentImpl() {} - public V1FlexVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1FlexVolumeSource instance) { + public V1FlexVolumeSourceFluentImpl(V1FlexVolumeSource instance) { this.withDriver(instance.getDriver()); this.withFsType(instance.getFsType()); @@ -37,38 +36,38 @@ public V1FlexVolumeSourceFluentImpl( } private String driver; - private java.lang.String fsType; - private Map options; + private String fsType; + private Map options; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - public java.lang.String getDriver() { + public String getDriver() { return this.driver; } - public A withDriver(java.lang.String driver) { + public A withDriver(String driver) { this.driver = driver; return (A) this; } - public java.lang.Boolean hasDriver() { + public Boolean hasDriver() { return this.driver != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public A addToOptions(java.lang.String key, java.lang.String value) { + public A addToOptions(String key, String value) { if (this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } @@ -78,9 +77,9 @@ public A addToOptions(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToOptions(java.util.Map map) { + public A addToOptions(Map map) { if (this.options == null && map != null) { - this.options = new java.util.LinkedHashMap(); + this.options = new LinkedHashMap(); } if (map != null) { this.options.putAll(map); @@ -88,7 +87,7 @@ public A addToOptions(java.util.Map map) { return (A) this; } - public A removeFromOptions(java.lang.String key) { + public A removeFromOptions(String key) { if (this.options == null) { return (A) this; } @@ -98,7 +97,7 @@ public A removeFromOptions(java.lang.String key) { return (A) this; } - public A removeFromOptions(java.util.Map map) { + public A removeFromOptions(Map map) { if (this.options == null) { return (A) this; } @@ -112,33 +111,33 @@ public A removeFromOptions(java.util.Map map return (A) this; } - public java.util.Map getOptions() { + public Map getOptions() { return this.options; } - public A withOptions(java.util.Map options) { + public A withOptions(Map options) { if (options == null) { this.options = null; } else { - this.options = new java.util.LinkedHashMap(options); + this.options = new LinkedHashMap(options); } return (A) this; } - public java.lang.Boolean hasOptions() { + public Boolean hasOptions() { return this.options != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -152,21 +151,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -174,26 +175,22 @@ public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1FlexVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1FlexVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1FlexVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1FlexVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1FlexVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } @@ -214,7 +211,7 @@ public int hashCode() { return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (driver != null) { @@ -247,17 +244,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1FlexVolumeSourceFluent.SecretRefNested, - Nested { + implements V1FlexVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1FlexVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 02340dc490..3f13164ed0 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 @@ -16,8 +16,7 @@ public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1FlockerVolumeSource, V1FlockerVolumeSourceBuilder> { + implements VisitableBuilder { public V1FlockerVolumeSourceBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent) { } public V1FlockerVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlockerVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1FlockerVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1FlockerVolumeSource(), validationEnabled); } public V1FlockerVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlockerVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FlockerVolumeSource instance) { + V1FlockerVolumeSourceFluent fluent, V1FlockerVolumeSource instance) { this(fluent, instance, false); } public V1FlockerVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlockerVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1FlockerVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1FlockerVolumeSourceFluent fluent, + V1FlockerVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDatasetName(instance.getDatasetName()); @@ -54,14 +51,11 @@ public V1FlockerVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1FlockerVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource instance) { + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance) { this(instance, false); } - public V1FlockerVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDatasetName(instance.getDatasetName()); @@ -70,10 +64,10 @@ public V1FlockerVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1FlockerVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1FlockerVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1FlockerVolumeSource build() { + public V1FlockerVolumeSource build() { V1FlockerVolumeSource buildable = new V1FlockerVolumeSource(); buildable.setDatasetName(fluent.getDatasetName()); buildable.setDatasetUUID(fluent.getDatasetUUID()); 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 f09fb9c59c..00c261303a 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 @@ -19,13 +19,13 @@ public interface V1FlockerVolumeSourceFluent { public String getDatasetName(); - public A withDatasetName(java.lang.String datasetName); + public A withDatasetName(String datasetName); public Boolean hasDatasetName(); - public java.lang.String getDatasetUUID(); + public String getDatasetUUID(); - public A withDatasetUUID(java.lang.String datasetUUID); + public A withDatasetUUID(String datasetUUID); - public java.lang.Boolean hasDatasetUUID(); + public Boolean hasDatasetUUID(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java index d4725137c4..158ca47fcf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluentImpl.java @@ -20,21 +20,20 @@ public class V1FlockerVolumeSourceFluentImpl implements V1FlockerVolumeSourceFluent { public V1FlockerVolumeSourceFluentImpl() {} - public V1FlockerVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource instance) { + public V1FlockerVolumeSourceFluentImpl(V1FlockerVolumeSource instance) { this.withDatasetName(instance.getDatasetName()); this.withDatasetUUID(instance.getDatasetUUID()); } private String datasetName; - private java.lang.String datasetUUID; + private String datasetUUID; - public java.lang.String getDatasetName() { + public String getDatasetName() { return this.datasetName; } - public A withDatasetName(java.lang.String datasetName) { + public A withDatasetName(String datasetName) { this.datasetName = datasetName; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasDatasetName() { return this.datasetName != null; } - public java.lang.String getDatasetUUID() { + public String getDatasetUUID() { return this.datasetUUID; } - public A withDatasetUUID(java.lang.String datasetUUID) { + public A withDatasetUUID(String datasetUUID) { this.datasetUUID = datasetUUID; return (A) this; } - public java.lang.Boolean hasDatasetUUID() { + public Boolean hasDatasetUUID() { return this.datasetUUID != null; } @@ -71,7 +70,7 @@ public int hashCode() { return java.util.Objects.hash(datasetName, datasetUUID, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (datasetName != null) { 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 56e097d0f4..6afa7751ec 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ForZoneBuilder extends V1ForZoneFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1ForZoneBuilder() { this(false); } @@ -28,44 +28,37 @@ public V1ForZoneBuilder(V1ForZoneFluent fluent) { this(fluent, false); } - public V1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1ForZoneFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ForZoneBuilder(V1ForZoneFluent fluent, Boolean validationEnabled) { this(fluent, new V1ForZone(), validationEnabled); } - public V1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1ForZoneFluent fluent, - io.kubernetes.client.openapi.models.V1ForZone instance) { + public V1ForZoneBuilder(V1ForZoneFluent fluent, V1ForZone instance) { this(fluent, instance, false); } public V1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1ForZoneFluent fluent, - io.kubernetes.client.openapi.models.V1ForZone instance, - java.lang.Boolean validationEnabled) { + V1ForZoneFluent fluent, V1ForZone instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1ForZoneBuilder(io.kubernetes.client.openapi.models.V1ForZone instance) { + public V1ForZoneBuilder(V1ForZone instance) { this(instance, false); } - public V1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1ForZone instance, java.lang.Boolean validationEnabled) { + public V1ForZoneBuilder(V1ForZone instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ForZoneFluent fluent; - java.lang.Boolean validationEnabled; + V1ForZoneFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ForZone build() { + public V1ForZone build() { V1ForZone buildable = new V1ForZone(); buildable.setName(fluent.getName()); return buildable; 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 dc21778ead..026be893e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java @@ -18,7 +18,7 @@ public interface V1ForZoneFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java index e84740d8f2..6baf99c6ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluentImpl.java @@ -20,17 +20,17 @@ public class V1ForZoneFluentImpl> extends BaseFluen implements V1ForZoneFluent { public V1ForZoneFluentImpl() {} - public V1ForZoneFluentImpl(io.kubernetes.client.openapi.models.V1ForZone instance) { + public V1ForZoneFluentImpl(V1ForZone instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -51,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 23c895aa80..e4fcc4352c 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 @@ -17,8 +17,7 @@ public class V1GCEPersistentDiskVolumeSourceBuilder extends V1GCEPersistentDiskVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource, - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder> { + V1GCEPersistentDiskVolumeSource, V1GCEPersistentDiskVolumeSourceBuilder> { public V1GCEPersistentDiskVolumeSourceBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFlu } public V1GCEPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1GCEPersistentDiskVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1GCEPersistentDiskVolumeSource(), validationEnabled); } public V1GCEPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource instance) { + V1GCEPersistentDiskVolumeSourceFluent fluent, V1GCEPersistentDiskVolumeSource instance) { this(fluent, instance, false); } public V1GCEPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GCEPersistentDiskVolumeSourceFluent fluent, + V1GCEPersistentDiskVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -59,14 +56,12 @@ public V1GCEPersistentDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1GCEPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource instance) { + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSource instance) { this(instance, false); } public V1GCEPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GCEPersistentDiskVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -79,10 +74,10 @@ public V1GCEPersistentDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1GCEPersistentDiskVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource build() { + public V1GCEPersistentDiskVolumeSource build() { V1GCEPersistentDiskVolumeSource buildable = new V1GCEPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setPartition(fluent.getPartition()); 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 05409f241b..724adf88a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java @@ -20,27 +20,27 @@ public interface V1GCEPersistentDiskVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); public Integer getPartition(); - public A withPartition(java.lang.Integer partition); + public A withPartition(Integer partition); - public java.lang.Boolean hasPartition(); + public Boolean hasPartition(); - public java.lang.String getPdName(); + public String getPdName(); - public A withPdName(java.lang.String pdName); + public A withPdName(String pdName); - public java.lang.Boolean hasPdName(); + public Boolean hasPdName(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java index e3ccfe188e..f75bd3a5e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1GCEPersistentDiskVolumeSourceFluentImpl< extends BaseFluent implements V1GCEPersistentDiskVolumeSourceFluent { public V1GCEPersistentDiskVolumeSourceFluentImpl() {} - public V1GCEPersistentDiskVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource instance) { + public V1GCEPersistentDiskVolumeSourceFluentImpl(V1GCEPersistentDiskVolumeSource instance) { this.withFsType(instance.getFsType()); this.withPartition(instance.getPartition()); @@ -34,58 +33,58 @@ public V1GCEPersistentDiskVolumeSourceFluentImpl( private String fsType; private Integer partition; - private java.lang.String pdName; + private String pdName; private Boolean readOnly; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Integer getPartition() { + public Integer getPartition() { return this.partition; } - public A withPartition(java.lang.Integer partition) { + public A withPartition(Integer partition) { this.partition = partition; return (A) this; } - public java.lang.Boolean hasPartition() { + public Boolean hasPartition() { return this.partition != null; } - public java.lang.String getPdName() { + public String getPdName() { return this.pdName; } - public A withPdName(java.lang.String pdName) { + public A withPdName(String pdName) { this.pdName = pdName; return (A) this; } - public java.lang.Boolean hasPdName() { + public Boolean hasPdName() { return this.pdName != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -105,7 +104,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, partition, pdName, readOnly, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 9e0de27455..7ddbe54792 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1GRPCActionBuilder extends V1GRPCActionFluentImpl - implements VisitableBuilder< - V1GRPCAction, io.kubernetes.client.openapi.models.V1GRPCActionBuilder> { + implements VisitableBuilder { public V1GRPCActionBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1GRPCActionBuilder(V1GRPCActionFluent fluent) { this(fluent, false); } - public V1GRPCActionBuilder( - io.kubernetes.client.openapi.models.V1GRPCActionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1GRPCActionBuilder(V1GRPCActionFluent fluent, Boolean validationEnabled) { this(fluent, new V1GRPCAction(), validationEnabled); } - public V1GRPCActionBuilder( - io.kubernetes.client.openapi.models.V1GRPCActionFluent fluent, - io.kubernetes.client.openapi.models.V1GRPCAction instance) { + public V1GRPCActionBuilder(V1GRPCActionFluent fluent, V1GRPCAction instance) { this(fluent, instance, false); } public V1GRPCActionBuilder( - io.kubernetes.client.openapi.models.V1GRPCActionFluent fluent, - io.kubernetes.client.openapi.models.V1GRPCAction instance, - java.lang.Boolean validationEnabled) { + V1GRPCActionFluent fluent, V1GRPCAction instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPort(instance.getPort()); @@ -53,13 +46,11 @@ public V1GRPCActionBuilder( this.validationEnabled = validationEnabled; } - public V1GRPCActionBuilder(io.kubernetes.client.openapi.models.V1GRPCAction instance) { + public V1GRPCActionBuilder(V1GRPCAction instance) { this(instance, false); } - public V1GRPCActionBuilder( - io.kubernetes.client.openapi.models.V1GRPCAction instance, - java.lang.Boolean validationEnabled) { + public V1GRPCActionBuilder(V1GRPCAction instance, Boolean validationEnabled) { this.fluent = this; this.withPort(instance.getPort()); @@ -68,10 +59,10 @@ public V1GRPCActionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1GRPCActionFluent fluent; - java.lang.Boolean validationEnabled; + V1GRPCActionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1GRPCAction build() { + public V1GRPCAction build() { V1GRPCAction buildable = new V1GRPCAction(); buildable.setPort(fluent.getPort()); buildable.setService(fluent.getService()); 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 fbdf2e1306..94ba4dbd2a 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 @@ -18,13 +18,13 @@ public interface V1GRPCActionFluent> extends Fluent { public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); public Boolean hasPort(); public String getService(); - public A withService(java.lang.String service); + public A withService(String service); - public java.lang.Boolean hasService(); + public Boolean hasService(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java index bef1be9cf6..bd50b901c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluentImpl.java @@ -20,7 +20,7 @@ public class V1GRPCActionFluentImpl> extends Bas implements V1GRPCActionFluent { public V1GRPCActionFluentImpl() {} - public V1GRPCActionFluentImpl(io.kubernetes.client.openapi.models.V1GRPCAction instance) { + public V1GRPCActionFluentImpl(V1GRPCAction instance) { this.withPort(instance.getPort()); this.withService(instance.getService()); @@ -29,11 +29,11 @@ public V1GRPCActionFluentImpl(io.kubernetes.client.openapi.models.V1GRPCAction i private Integer port; private String service; - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasPort() { return this.port != null; } - public java.lang.String getService() { + public String getService() { return this.service; } - public A withService(java.lang.String service) { + public A withService(String service) { this.service = service; return (A) this; } - public java.lang.Boolean hasService() { + public Boolean hasService() { return this.service != null; } @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(port, service, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (port != null) { 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 7e8aa1e40d..06e9f9a1f7 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 @@ -16,8 +16,7 @@ public class V1GitRepoVolumeSourceBuilder extends V1GitRepoVolumeSourceFluentImpl - implements VisitableBuilder< - V1GitRepoVolumeSource, io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceBuilder> { + implements VisitableBuilder { public V1GitRepoVolumeSourceBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent) { } public V1GitRepoVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1GitRepoVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1GitRepoVolumeSource(), validationEnabled); } public V1GitRepoVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource instance) { + V1GitRepoVolumeSourceFluent fluent, V1GitRepoVolumeSource instance) { this(fluent, instance, false); } public V1GitRepoVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GitRepoVolumeSourceFluent fluent, + V1GitRepoVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDirectory(instance.getDirectory()); @@ -56,14 +53,11 @@ public V1GitRepoVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1GitRepoVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource instance) { + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance) { this(instance, false); } - public V1GitRepoVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDirectory(instance.getDirectory()); @@ -74,10 +68,10 @@ public V1GitRepoVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1GitRepoVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1GitRepoVolumeSource build() { + public V1GitRepoVolumeSource build() { V1GitRepoVolumeSource buildable = new V1GitRepoVolumeSource(); buildable.setDirectory(fluent.getDirectory()); buildable.setRepository(fluent.getRepository()); 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 04ce770166..e10fa0bfc7 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 @@ -19,19 +19,19 @@ public interface V1GitRepoVolumeSourceFluent { public String getDirectory(); - public A withDirectory(java.lang.String directory); + public A withDirectory(String directory); public Boolean hasDirectory(); - public java.lang.String getRepository(); + public String getRepository(); - public A withRepository(java.lang.String repository); + public A withRepository(String repository); - public java.lang.Boolean hasRepository(); + public Boolean hasRepository(); - public java.lang.String getRevision(); + public String getRevision(); - public A withRevision(java.lang.String revision); + public A withRevision(String revision); - public java.lang.Boolean hasRevision(); + public Boolean hasRevision(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java index 76c9c54349..de63636e80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1GitRepoVolumeSourceFluentImpl implements V1GitRepoVolumeSourceFluent { public V1GitRepoVolumeSourceFluentImpl() {} - public V1GitRepoVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource instance) { + public V1GitRepoVolumeSourceFluentImpl(V1GitRepoVolumeSource instance) { this.withDirectory(instance.getDirectory()); this.withRepository(instance.getRepository()); @@ -30,14 +29,14 @@ public V1GitRepoVolumeSourceFluentImpl( } private String directory; - private java.lang.String repository; - private java.lang.String revision; + private String repository; + private String revision; - public java.lang.String getDirectory() { + public String getDirectory() { return this.directory; } - public A withDirectory(java.lang.String directory) { + public A withDirectory(String directory) { this.directory = directory; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasDirectory() { return this.directory != null; } - public java.lang.String getRepository() { + public String getRepository() { return this.repository; } - public A withRepository(java.lang.String repository) { + public A withRepository(String repository) { this.repository = repository; return (A) this; } - public java.lang.Boolean hasRepository() { + public Boolean hasRepository() { return this.repository != null; } - public java.lang.String getRevision() { + public String getRevision() { return this.revision; } - public A withRevision(java.lang.String revision) { + public A withRevision(String revision) { this.revision = revision; return (A) this; } - public java.lang.Boolean hasRevision() { + public Boolean hasRevision() { return this.revision != null; } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(directory, repository, revision, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (directory != null) { 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 60d4b79efc..f702fe2131 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 @@ -17,8 +17,7 @@ public class V1GlusterfsPersistentVolumeSourceBuilder extends V1GlusterfsPersistentVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceBuilder> { + V1GlusterfsPersistentVolumeSource, V1GlusterfsPersistentVolumeSourceBuilder> { public V1GlusterfsPersistentVolumeSourceBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1GlusterfsPersistentVolumeSourceBuilder( } public V1GlusterfsPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1GlusterfsPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1GlusterfsPersistentVolumeSource(), validationEnabled); } public V1GlusterfsPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource instance) { + V1GlusterfsPersistentVolumeSourceFluent fluent, + V1GlusterfsPersistentVolumeSource instance) { this(fluent, instance, false); } public V1GlusterfsPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GlusterfsPersistentVolumeSourceFluent fluent, + V1GlusterfsPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withEndpoints(instance.getEndpoints()); @@ -60,14 +58,12 @@ public V1GlusterfsPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1GlusterfsPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource instance) { + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSource instance) { this(instance, false); } public V1GlusterfsPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GlusterfsPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withEndpoints(instance.getEndpoints()); @@ -80,10 +76,10 @@ public V1GlusterfsPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1GlusterfsPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource build() { + public V1GlusterfsPersistentVolumeSource build() { V1GlusterfsPersistentVolumeSource buildable = new V1GlusterfsPersistentVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); buildable.setEndpointsNamespace(fluent.getEndpointsNamespace()); 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 054fd9da96..0978a62963 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 @@ -20,27 +20,27 @@ public interface V1GlusterfsPersistentVolumeSourceFluent< extends Fluent { public String getEndpoints(); - public A withEndpoints(java.lang.String endpoints); + public A withEndpoints(String endpoints); public Boolean hasEndpoints(); - public java.lang.String getEndpointsNamespace(); + public String getEndpointsNamespace(); - public A withEndpointsNamespace(java.lang.String endpointsNamespace); + public A withEndpointsNamespace(String endpointsNamespace); - public java.lang.Boolean hasEndpointsNamespace(); + public Boolean hasEndpointsNamespace(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java index cdcfd62562..690ecc9673 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1GlusterfsPersistentVolumeSourceFluentImpl< extends BaseFluent implements V1GlusterfsPersistentVolumeSourceFluent { public V1GlusterfsPersistentVolumeSourceFluentImpl() {} - public V1GlusterfsPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource instance) { + public V1GlusterfsPersistentVolumeSourceFluentImpl(V1GlusterfsPersistentVolumeSource instance) { this.withEndpoints(instance.getEndpoints()); this.withEndpointsNamespace(instance.getEndpointsNamespace()); @@ -33,59 +32,59 @@ public V1GlusterfsPersistentVolumeSourceFluentImpl( } private String endpoints; - private java.lang.String endpointsNamespace; - private java.lang.String path; + private String endpointsNamespace; + private String path; private Boolean readOnly; - public java.lang.String getEndpoints() { + public String getEndpoints() { return this.endpoints; } - public A withEndpoints(java.lang.String endpoints) { + public A withEndpoints(String endpoints) { this.endpoints = endpoints; return (A) this; } - public java.lang.Boolean hasEndpoints() { + public Boolean hasEndpoints() { return this.endpoints != null; } - public java.lang.String getEndpointsNamespace() { + public String getEndpointsNamespace() { return this.endpointsNamespace; } - public A withEndpointsNamespace(java.lang.String endpointsNamespace) { + public A withEndpointsNamespace(String endpointsNamespace) { this.endpointsNamespace = endpointsNamespace; return (A) this; } - public java.lang.Boolean hasEndpointsNamespace() { + public Boolean hasEndpointsNamespace() { return this.endpointsNamespace != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -108,7 +107,7 @@ public int hashCode() { return java.util.Objects.hash(endpoints, endpointsNamespace, path, readOnly, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (endpoints != null) { 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 8694136aaf..6353d0c877 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 @@ -16,9 +16,7 @@ public class V1GlusterfsVolumeSourceBuilder extends V1GlusterfsVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource, - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceBuilder> { + implements VisitableBuilder { public V1GlusterfsVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent) { } public V1GlusterfsVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1GlusterfsVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1GlusterfsVolumeSource(), validationEnabled); } public V1GlusterfsVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource instance) { + V1GlusterfsVolumeSourceFluent fluent, V1GlusterfsVolumeSource instance) { this(fluent, instance, false); } public V1GlusterfsVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GlusterfsVolumeSourceFluent fluent, + V1GlusterfsVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withEndpoints(instance.getEndpoints()); @@ -57,14 +53,12 @@ public V1GlusterfsVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1GlusterfsVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource instance) { + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSource instance) { this(instance, false); } public V1GlusterfsVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1GlusterfsVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withEndpoints(instance.getEndpoints()); @@ -75,10 +69,10 @@ public V1GlusterfsVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1GlusterfsVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource build() { + public V1GlusterfsVolumeSource build() { V1GlusterfsVolumeSource buildable = new V1GlusterfsVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); buildable.setPath(fluent.getPath()); 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 03d552289a..33bdc8ab93 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java @@ -19,21 +19,21 @@ public interface V1GlusterfsVolumeSourceFluent { public String getEndpoints(); - public A withEndpoints(java.lang.String endpoints); + public A withEndpoints(String endpoints); public Boolean hasEndpoints(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java index 15488fa98a..a6737ecd22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1GlusterfsVolumeSourceFluentImpl implements V1GlusterfsVolumeSourceFluent { public V1GlusterfsVolumeSourceFluentImpl() {} - public V1GlusterfsVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource instance) { + public V1GlusterfsVolumeSourceFluentImpl(V1GlusterfsVolumeSource instance) { this.withEndpoints(instance.getEndpoints()); this.withPath(instance.getPath()); @@ -30,45 +29,45 @@ public V1GlusterfsVolumeSourceFluentImpl( } private String endpoints; - private java.lang.String path; + private String path; private Boolean readOnly; - public java.lang.String getEndpoints() { + public String getEndpoints() { return this.endpoints; } - public A withEndpoints(java.lang.String endpoints) { + public A withEndpoints(String endpoints) { this.endpoints = endpoints; return (A) this; } - public java.lang.Boolean hasEndpoints() { + public Boolean hasEndpoints() { return this.endpoints != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -87,7 +86,7 @@ public int hashCode() { return java.util.Objects.hash(endpoints, path, readOnly, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (endpoints != null) { 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 25d1ba06ac..bcd4a3d666 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 @@ -16,9 +16,7 @@ public class V1GroupVersionForDiscoveryBuilder extends V1GroupVersionForDiscoveryFluentImpl - implements VisitableBuilder< - V1GroupVersionForDiscovery, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryBuilder> { + implements VisitableBuilder { public V1GroupVersionForDiscoveryBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1GroupVersionForDiscoveryBuilder(Boolean validationEnabled) { this(new V1GroupVersionForDiscovery(), validationEnabled); } - public V1GroupVersionForDiscoveryBuilder( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryFluent fluent) { + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent) { this(fluent, false); } public V1GroupVersionForDiscoveryBuilder( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryFluent fluent, - java.lang.Boolean validationEnabled) { + V1GroupVersionForDiscoveryFluent fluent, Boolean validationEnabled) { this(fluent, new V1GroupVersionForDiscovery(), validationEnabled); } public V1GroupVersionForDiscoveryBuilder( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryFluent fluent, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery instance) { + V1GroupVersionForDiscoveryFluent fluent, V1GroupVersionForDiscovery instance) { this(fluent, instance, false); } public V1GroupVersionForDiscoveryBuilder( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryFluent fluent, - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery instance, - java.lang.Boolean validationEnabled) { + V1GroupVersionForDiscoveryFluent fluent, + V1GroupVersionForDiscovery instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withGroupVersion(instance.getGroupVersion()); @@ -56,14 +51,12 @@ public V1GroupVersionForDiscoveryBuilder( this.validationEnabled = validationEnabled; } - public V1GroupVersionForDiscoveryBuilder( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery instance) { + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscovery instance) { this(instance, false); } public V1GroupVersionForDiscoveryBuilder( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery instance, - java.lang.Boolean validationEnabled) { + V1GroupVersionForDiscovery instance, Boolean validationEnabled) { this.fluent = this; this.withGroupVersion(instance.getGroupVersion()); @@ -72,10 +65,10 @@ public V1GroupVersionForDiscoveryBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1GroupVersionForDiscoveryFluent fluent; - java.lang.Boolean validationEnabled; + V1GroupVersionForDiscoveryFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery build() { + public V1GroupVersionForDiscovery build() { V1GroupVersionForDiscovery buildable = new V1GroupVersionForDiscovery(); buildable.setGroupVersion(fluent.getGroupVersion()); buildable.setVersion(fluent.getVersion()); 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 a38f04a52b..3a049a01b1 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 @@ -19,13 +19,13 @@ public interface V1GroupVersionForDiscoveryFluent { public String getGroupVersion(); - public A withGroupVersion(java.lang.String groupVersion); + public A withGroupVersion(String groupVersion); public Boolean hasGroupVersion(); - public java.lang.String getVersion(); + public String getVersion(); - public A withVersion(java.lang.String version); + public A withVersion(String version); - public java.lang.Boolean hasVersion(); + public Boolean hasVersion(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java index 5329776d76..82b1f6e5c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluentImpl.java @@ -20,21 +20,20 @@ public class V1GroupVersionForDiscoveryFluentImpl implements V1GroupVersionForDiscoveryFluent { public V1GroupVersionForDiscoveryFluentImpl() {} - public V1GroupVersionForDiscoveryFluentImpl( - io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery instance) { + public V1GroupVersionForDiscoveryFluentImpl(V1GroupVersionForDiscovery instance) { this.withGroupVersion(instance.getGroupVersion()); this.withVersion(instance.getVersion()); } private String groupVersion; - private java.lang.String version; + private String version; - public java.lang.String getGroupVersion() { + public String getGroupVersion() { return this.groupVersion; } - public A withGroupVersion(java.lang.String groupVersion) { + public A withGroupVersion(String groupVersion) { this.groupVersion = groupVersion; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasGroupVersion() { return this.groupVersion != null; } - public java.lang.String getVersion() { + public String getVersion() { return this.version; } - public A withVersion(java.lang.String version) { + public A withVersion(String version) { this.version = version; return (A) this; } - public java.lang.Boolean hasVersion() { + public Boolean hasVersion() { return this.version != null; } @@ -70,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(groupVersion, version, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (groupVersion != null) { 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 e8fb81b8c2..a25f31b7b5 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluentImpl - implements VisitableBuilder< - V1HTTPGetAction, io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder> { + implements VisitableBuilder { public V1HTTPGetActionBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1HTTPGetActionBuilder(Boolean validationEnabled) { this(new V1HTTPGetAction(), validationEnabled); } - public V1HTTPGetActionBuilder( - io.kubernetes.client.openapi.models.V1HTTPGetActionFluent fluent) { + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent) { this(fluent, false); } - public V1HTTPGetActionBuilder( - io.kubernetes.client.openapi.models.V1HTTPGetActionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent, Boolean validationEnabled) { this(fluent, new V1HTTPGetAction(), validationEnabled); } - public V1HTTPGetActionBuilder( - io.kubernetes.client.openapi.models.V1HTTPGetActionFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPGetAction instance) { + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent, V1HTTPGetAction instance) { this(fluent, instance, false); } public V1HTTPGetActionBuilder( - io.kubernetes.client.openapi.models.V1HTTPGetActionFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPGetAction instance, - java.lang.Boolean validationEnabled) { + V1HTTPGetActionFluent fluent, V1HTTPGetAction instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withHost(instance.getHost()); @@ -60,13 +52,11 @@ public V1HTTPGetActionBuilder( this.validationEnabled = validationEnabled; } - public V1HTTPGetActionBuilder(io.kubernetes.client.openapi.models.V1HTTPGetAction instance) { + public V1HTTPGetActionBuilder(V1HTTPGetAction instance) { this(instance, false); } - public V1HTTPGetActionBuilder( - io.kubernetes.client.openapi.models.V1HTTPGetAction instance, - java.lang.Boolean validationEnabled) { + public V1HTTPGetActionBuilder(V1HTTPGetAction instance, Boolean validationEnabled) { this.fluent = this; this.withHost(instance.getHost()); @@ -81,10 +71,10 @@ public V1HTTPGetActionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HTTPGetActionFluent fluent; - java.lang.Boolean validationEnabled; + V1HTTPGetActionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HTTPGetAction build() { + public V1HTTPGetAction build() { V1HTTPGetAction buildable = new V1HTTPGetAction(); buildable.setHost(fluent.getHost()); buildable.setHttpHeaders(fluent.getHttpHeaders()); 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 fd1239566a..d5a256eddf 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 @@ -23,23 +23,21 @@ public interface V1HTTPGetActionFluent> extends Fluent { public String getHost(); - public A withHost(java.lang.String host); + public A withHost(String host); public Boolean hasHost(); public A addToHttpHeaders(Integer index, V1HTTPHeader item); - public A setToHttpHeaders( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPHeader item); + public A setToHttpHeaders(Integer index, V1HTTPHeader item); public A addToHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items); - public A addAllToHttpHeaders(Collection items); + public A addAllToHttpHeaders(Collection items); public A removeFromHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items); - public A removeAllFromHttpHeaders( - java.util.Collection items); + public A removeAllFromHttpHeaders(Collection items); public A removeMatchingFromHttpHeaders(Predicate predicate); @@ -49,75 +47,63 @@ public A removeAllFromHttpHeaders( * @return The buildable object. */ @Deprecated - public List getHttpHeaders(); + public List getHttpHeaders(); - public java.util.List buildHttpHeaders(); + public List buildHttpHeaders(); - public io.kubernetes.client.openapi.models.V1HTTPHeader buildHttpHeader(java.lang.Integer index); + public V1HTTPHeader buildHttpHeader(Integer index); - public io.kubernetes.client.openapi.models.V1HTTPHeader buildFirstHttpHeader(); + public V1HTTPHeader buildFirstHttpHeader(); - public io.kubernetes.client.openapi.models.V1HTTPHeader buildLastHttpHeader(); + public V1HTTPHeader buildLastHttpHeader(); - public io.kubernetes.client.openapi.models.V1HTTPHeader buildMatchingHttpHeader( - java.util.function.Predicate - predicate); + public V1HTTPHeader buildMatchingHttpHeader(Predicate predicate); - public java.lang.Boolean hasMatchingHttpHeader( - java.util.function.Predicate - predicate); + public Boolean hasMatchingHttpHeader(Predicate predicate); - public A withHttpHeaders( - java.util.List httpHeaders); + public A withHttpHeaders(List httpHeaders); public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... httpHeaders); - public java.lang.Boolean hasHttpHeaders(); + public Boolean hasHttpHeaders(); public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeader(); - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - addNewHttpHeaderLike(io.kubernetes.client.openapi.models.V1HTTPHeader item); + public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item); - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - setNewHttpHeaderLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPHeader item); + public V1HTTPGetActionFluent.HttpHeadersNested setNewHttpHeaderLike( + Integer index, V1HTTPHeader item); - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editHttpHeader(java.lang.Integer index); + public V1HTTPGetActionFluent.HttpHeadersNested editHttpHeader(Integer index); - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editFirstHttpHeader(); + public V1HTTPGetActionFluent.HttpHeadersNested editFirstHttpHeader(); - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editLastHttpHeader(); + public V1HTTPGetActionFluent.HttpHeadersNested editLastHttpHeader(); - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editMatchingHttpHeader( - java.util.function.Predicate - predicate); + public V1HTTPGetActionFluent.HttpHeadersNested editMatchingHttpHeader( + Predicate predicate); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); public IntOrString getPort(); - public A withPort(io.kubernetes.client.custom.IntOrString port); + public A withPort(IntOrString port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); public A withNewPort(int value); - public A withNewPort(java.lang.String value); + public A withNewPort(String value); - public java.lang.String getScheme(); + public String getScheme(); - public A withScheme(java.lang.String scheme); + public A withScheme(String scheme); - public java.lang.Boolean hasScheme(); + public Boolean hasScheme(); public interface HttpHeadersNested extends Nested, V1HTTPHeaderFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java index a98a9f95c1..1773b52148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluentImpl.java @@ -27,7 +27,7 @@ public class V1HTTPGetActionFluentImpl> exten implements V1HTTPGetActionFluent { public V1HTTPGetActionFluentImpl() {} - public V1HTTPGetActionFluentImpl(io.kubernetes.client.openapi.models.V1HTTPGetAction instance) { + public V1HTTPGetActionFluentImpl(V1HTTPGetAction instance) { this.withHost(instance.getHost()); this.withHttpHeaders(instance.getHttpHeaders()); @@ -41,15 +41,15 @@ public V1HTTPGetActionFluentImpl(io.kubernetes.client.openapi.models.V1HTTPGetAc private String host; private ArrayList httpHeaders; - private java.lang.String path; + private String path; private IntOrString port; - private java.lang.String scheme; + private String scheme; - public java.lang.String getHost() { + public String getHost() { return this.host; } - public A withHost(java.lang.String host) { + public A withHost(String host) { this.host = host; return (A) this; } @@ -58,12 +58,11 @@ public Boolean hasHost() { return this.host != null; } - public A addToHttpHeaders(Integer index, io.kubernetes.client.openapi.models.V1HTTPHeader item) { + public A addToHttpHeaders(Integer index, V1HTTPHeader item) { if (this.httpHeaders == null) { - this.httpHeaders = new java.util.ArrayList(); + this.httpHeaders = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder(item); + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); _visitables .get("httpHeaders") .add(index >= 0 ? index : _visitables.get("httpHeaders").size(), builder); @@ -71,14 +70,11 @@ public A addToHttpHeaders(Integer index, io.kubernetes.client.openapi.models.V1H return (A) this; } - public A setToHttpHeaders( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPHeader item) { + public A setToHttpHeaders(Integer index, V1HTTPHeader item) { if (this.httpHeaders == null) { - this.httpHeaders = - new java.util.ArrayList(); + this.httpHeaders = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder(item); + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); if (index < 0 || index >= _visitables.get("httpHeaders").size()) { _visitables.get("httpHeaders").add(builder); } else { @@ -94,26 +90,22 @@ public A setToHttpHeaders( public A addToHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { if (this.httpHeaders == null) { - this.httpHeaders = - new java.util.ArrayList(); + this.httpHeaders = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HTTPHeader item : items) { - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder(item); + 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) { + public A addAllToHttpHeaders(Collection items) { if (this.httpHeaders == null) { - this.httpHeaders = - new java.util.ArrayList(); + this.httpHeaders = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HTTPHeader item : items) { - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder(item); + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); _visitables.get("httpHeaders").add(builder); this.httpHeaders.add(builder); } @@ -121,9 +113,8 @@ public A addAllToHttpHeaders(Collection items) { - for (io.kubernetes.client.openapi.models.V1HTTPHeader item : items) { - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder(item); + public A removeAllFromHttpHeaders(Collection items) { + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); _visitables.get("httpHeaders").remove(builder); if (this.httpHeaders != null) { this.httpHeaders.remove(builder); @@ -145,14 +134,12 @@ public A removeAllFromHttpHeaders( return (A) this; } - public A removeMatchingFromHttpHeaders( - Predicate predicate) { + public A removeMatchingFromHttpHeaders(Predicate predicate) { if (httpHeaders == null) return (A) this; - final Iterator each = - httpHeaders.iterator(); + final Iterator each = httpHeaders.iterator(); final List visitables = _visitables.get("httpHeaders"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder = each.next(); + V1HTTPHeaderBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -167,30 +154,28 @@ public A removeMatchingFromHttpHeaders( * @return The buildable object. */ @Deprecated - public List getHttpHeaders() { + public List getHttpHeaders() { return httpHeaders != null ? build(httpHeaders) : null; } - public java.util.List buildHttpHeaders() { + public List buildHttpHeaders() { return httpHeaders != null ? build(httpHeaders) : null; } - public io.kubernetes.client.openapi.models.V1HTTPHeader buildHttpHeader(java.lang.Integer index) { + public V1HTTPHeader buildHttpHeader(Integer index) { return this.httpHeaders.get(index).build(); } - public io.kubernetes.client.openapi.models.V1HTTPHeader buildFirstHttpHeader() { + public V1HTTPHeader buildFirstHttpHeader() { return this.httpHeaders.get(0).build(); } - public io.kubernetes.client.openapi.models.V1HTTPHeader buildLastHttpHeader() { + public V1HTTPHeader buildLastHttpHeader() { return this.httpHeaders.get(httpHeaders.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1HTTPHeader buildMatchingHttpHeader( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder item : httpHeaders) { + public V1HTTPHeader buildMatchingHttpHeader(Predicate predicate) { + for (V1HTTPHeaderBuilder item : httpHeaders) { if (predicate.test(item)) { return item.build(); } @@ -198,10 +183,8 @@ public io.kubernetes.client.openapi.models.V1HTTPHeader buildMatchingHttpHeader( return null; } - public java.lang.Boolean hasMatchingHttpHeader( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder item : httpHeaders) { + public Boolean hasMatchingHttpHeader(Predicate predicate) { + for (V1HTTPHeaderBuilder item : httpHeaders) { if (predicate.test(item)) { return true; } @@ -209,14 +192,13 @@ public java.lang.Boolean hasMatchingHttpHeader( return false; } - public A withHttpHeaders( - java.util.List httpHeaders) { + public A withHttpHeaders(List httpHeaders) { if (this.httpHeaders != null) { _visitables.get("httpHeaders").removeAll(this.httpHeaders); } if (httpHeaders != null) { - this.httpHeaders = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1HTTPHeader item : httpHeaders) { + this.httpHeaders = new ArrayList(); + for (V1HTTPHeader item : httpHeaders) { this.addToHttpHeaders(item); } } else { @@ -230,14 +212,14 @@ public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... htt this.httpHeaders.clear(); } if (httpHeaders != null) { - for (io.kubernetes.client.openapi.models.V1HTTPHeader item : httpHeaders) { + for (V1HTTPHeader item : httpHeaders) { this.addToHttpHeaders(item); } } return (A) this; } - public java.lang.Boolean hasHttpHeaders() { + public Boolean hasHttpHeaders() { return httpHeaders != null && !httpHeaders.isEmpty(); } @@ -245,43 +227,35 @@ public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeader() { return new V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - addNewHttpHeaderLike(io.kubernetes.client.openapi.models.V1HTTPHeader item) { + public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { return new V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - setNewHttpHeaderLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPHeader item) { - return new io.kubernetes.client.openapi.models.V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl( - index, item); + public V1HTTPGetActionFluent.HttpHeadersNested setNewHttpHeaderLike( + Integer index, V1HTTPHeader item) { + return new V1HTTPGetActionFluentImpl.HttpHeadersNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editHttpHeader(java.lang.Integer index) { + public V1HTTPGetActionFluent.HttpHeadersNested editHttpHeader(Integer index) { if (httpHeaders.size() <= index) throw new RuntimeException("Can't edit httpHeaders. Index exceeds size."); return setNewHttpHeaderLike(index, buildHttpHeader(index)); } - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editFirstHttpHeader() { + public V1HTTPGetActionFluent.HttpHeadersNested editFirstHttpHeader() { if (httpHeaders.size() == 0) throw new RuntimeException("Can't edit first httpHeaders. The list is empty."); return setNewHttpHeaderLike(0, buildHttpHeader(0)); } - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editLastHttpHeader() { + public V1HTTPGetActionFluent.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)); } - public io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested - editMatchingHttpHeader( - java.util.function.Predicate - predicate) { + public V1HTTPGetActionFluent.HttpHeadersNested editMatchingHttpHeader( + Predicate predicate) { int index = -1; for (int i = 0; i < httpHeaders.size(); i++) { if (predicate.test(httpHeaders.get(i))) { @@ -293,29 +267,29 @@ public V1HTTPGetActionFluent.HttpHeadersNested addNewHttpHeader() { return setNewHttpHeaderLike(index, buildHttpHeader(index)); } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public io.kubernetes.client.custom.IntOrString getPort() { + public IntOrString getPort() { return this.port; } - public A withPort(io.kubernetes.client.custom.IntOrString port) { + public A withPort(IntOrString port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -323,20 +297,20 @@ public A withNewPort(int value) { return (A) withPort(new IntOrString(value)); } - public A withNewPort(java.lang.String value) { + public A withNewPort(String value) { return (A) withPort(new IntOrString(value)); } - public java.lang.String getScheme() { + public String getScheme() { return this.scheme; } - public A withScheme(java.lang.String scheme) { + public A withScheme(String scheme) { this.scheme = scheme; return (A) this; } - public java.lang.Boolean hasScheme() { + public Boolean hasScheme() { return this.scheme != null; } @@ -357,7 +331,7 @@ public int hashCode() { return java.util.Objects.hash(host, httpHeaders, path, port, scheme, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (host != null) { @@ -386,20 +360,19 @@ public java.lang.String toString() { class HttpHeadersNestedImpl extends V1HTTPHeaderFluentImpl> - implements io.kubernetes.client.openapi.models.V1HTTPGetActionFluent.HttpHeadersNested, - Nested { - HttpHeadersNestedImpl(java.lang.Integer index, V1HTTPHeader item) { + implements V1HTTPGetActionFluent.HttpHeadersNested, Nested { + HttpHeadersNestedImpl(Integer index, V1HTTPHeader item) { this.index = index; this.builder = new V1HTTPHeaderBuilder(this, item); } HttpHeadersNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder(this); + this.builder = new V1HTTPHeaderBuilder(this); } - io.kubernetes.client.openapi.models.V1HTTPHeaderBuilder builder; - java.lang.Integer index; + V1HTTPHeaderBuilder builder; + Integer index; public N and() { return (N) V1HTTPGetActionFluentImpl.this.setToHttpHeaders(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java index 1eaf4c9028..468b6df0aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1HTTPHeaderBuilder extends V1HTTPHeaderFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1HTTPHeader, V1HTTPHeaderBuilder> { + implements VisitableBuilder { public V1HTTPHeaderBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1HTTPHeaderBuilder(Boolean validationEnabled) { this(new V1HTTPHeader(), validationEnabled); } - public V1HTTPHeaderBuilder(io.kubernetes.client.openapi.models.V1HTTPHeaderFluent fluent) { + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent) { this(fluent, false); } - public V1HTTPHeaderBuilder( - io.kubernetes.client.openapi.models.V1HTTPHeaderFluent fluent, - java.lang.Boolean validationEnabled) { + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent, Boolean validationEnabled) { this(fluent, new V1HTTPHeader(), validationEnabled); } - public V1HTTPHeaderBuilder( - io.kubernetes.client.openapi.models.V1HTTPHeaderFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPHeader instance) { + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent, V1HTTPHeader instance) { this(fluent, instance, false); } public V1HTTPHeaderBuilder( - io.kubernetes.client.openapi.models.V1HTTPHeaderFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPHeader instance, - java.lang.Boolean validationEnabled) { + V1HTTPHeaderFluent fluent, V1HTTPHeader instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -53,13 +46,11 @@ public V1HTTPHeaderBuilder( this.validationEnabled = validationEnabled; } - public V1HTTPHeaderBuilder(io.kubernetes.client.openapi.models.V1HTTPHeader instance) { + public V1HTTPHeaderBuilder(V1HTTPHeader instance) { this(instance, false); } - public V1HTTPHeaderBuilder( - io.kubernetes.client.openapi.models.V1HTTPHeader instance, - java.lang.Boolean validationEnabled) { + public V1HTTPHeaderBuilder(V1HTTPHeader instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -68,10 +59,10 @@ public V1HTTPHeaderBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HTTPHeaderFluent fluent; - java.lang.Boolean validationEnabled; + V1HTTPHeaderFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HTTPHeader build() { + public V1HTTPHeader build() { V1HTTPHeader buildable = new V1HTTPHeader(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); 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 c16ea10731..48b72a9b51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java @@ -18,13 +18,13 @@ public interface V1HTTPHeaderFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getValue(); + public String getValue(); - public A withValue(java.lang.String value); + public A withValue(String value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java index c47d260c0f..2096600d60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluentImpl.java @@ -20,20 +20,20 @@ public class V1HTTPHeaderFluentImpl> extends Bas implements V1HTTPHeaderFluent { public V1HTTPHeaderFluentImpl() {} - public V1HTTPHeaderFluentImpl(io.kubernetes.client.openapi.models.V1HTTPHeader instance) { + public V1HTTPHeaderFluentImpl(V1HTTPHeader instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); } private String name; - private java.lang.String value; + private String value; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getValue() { + public String getValue() { return this.value; } - public A withValue(java.lang.String value) { + public A withValue(String value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(name, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 4b86cf3e01..de61e91bae 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluentImpl - implements VisitableBuilder< - V1HTTPIngressPath, io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder> { + implements VisitableBuilder { public V1HTTPIngressPathBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1HTTPIngressPathBuilder(Boolean validationEnabled) { this(new V1HTTPIngressPath(), validationEnabled); } - public V1HTTPIngressPathBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent fluent) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent) { this(fluent, false); } - public V1HTTPIngressPathBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent fluent, - java.lang.Boolean validationEnabled) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent, Boolean validationEnabled) { this(fluent, new V1HTTPIngressPath(), validationEnabled); } - public V1HTTPIngressPathBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPIngressPath instance) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent, V1HTTPIngressPath instance) { this(fluent, instance, false); } public V1HTTPIngressPathBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPIngressPath instance, - java.lang.Boolean validationEnabled) { + V1HTTPIngressPathFluent fluent, V1HTTPIngressPath instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withBackend(instance.getBackend()); @@ -56,13 +48,11 @@ public V1HTTPIngressPathBuilder( this.validationEnabled = validationEnabled; } - public V1HTTPIngressPathBuilder(io.kubernetes.client.openapi.models.V1HTTPIngressPath instance) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance) { this(instance, false); } - public V1HTTPIngressPathBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressPath instance, - java.lang.Boolean validationEnabled) { + public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance, Boolean validationEnabled) { this.fluent = this; this.withBackend(instance.getBackend()); @@ -73,10 +63,10 @@ public V1HTTPIngressPathBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent fluent; - java.lang.Boolean validationEnabled; + V1HTTPIngressPathFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HTTPIngressPath build() { + public V1HTTPIngressPath build() { V1HTTPIngressPath buildable = new V1HTTPIngressPath(); buildable.setBackend(fluent.getBackend()); buildable.setPath(fluent.getPath()); 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 b57c31fab7..fd3075f7a8 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 @@ -26,36 +26,33 @@ public interface V1HTTPIngressPathFluent> e @Deprecated public V1IngressBackend getBackend(); - public io.kubernetes.client.openapi.models.V1IngressBackend buildBackend(); + public V1IngressBackend buildBackend(); - public A withBackend(io.kubernetes.client.openapi.models.V1IngressBackend backend); + public A withBackend(V1IngressBackend backend); public Boolean hasBackend(); public V1HTTPIngressPathFluent.BackendNested withNewBackend(); - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - withNewBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item); + public V1HTTPIngressPathFluent.BackendNested withNewBackendLike(V1IngressBackend item); - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested editBackend(); + public V1HTTPIngressPathFluent.BackendNested editBackend(); - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - editOrNewBackend(); + public V1HTTPIngressPathFluent.BackendNested editOrNewBackend(); - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - editOrNewBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item); + public V1HTTPIngressPathFluent.BackendNested editOrNewBackendLike(V1IngressBackend item); public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); - public java.lang.String getPathType(); + public String getPathType(); - public A withPathType(java.lang.String pathType); + public A withPathType(String pathType); - public java.lang.Boolean hasPathType(); + public Boolean hasPathType(); public interface BackendNested extends Nested, V1IngressBackendFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java index 466a5018a2..a0ef07b4b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluentImpl.java @@ -21,8 +21,7 @@ public class V1HTTPIngressPathFluentImpl> e implements V1HTTPIngressPathFluent { public V1HTTPIngressPathFluentImpl() {} - public V1HTTPIngressPathFluentImpl( - io.kubernetes.client.openapi.models.V1HTTPIngressPath instance) { + public V1HTTPIngressPathFluentImpl(V1HTTPIngressPath instance) { this.withBackend(instance.getBackend()); this.withPath(instance.getPath()); @@ -32,7 +31,7 @@ public V1HTTPIngressPathFluentImpl( private V1IngressBackendBuilder backend; private String path; - private java.lang.String pathType; + private String pathType; /** * This method has been deprecated, please use method buildBackend instead. @@ -40,19 +39,22 @@ public V1HTTPIngressPathFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1IngressBackend getBackend() { + public V1IngressBackend getBackend() { return this.backend != null ? this.backend.build() : null; } - public io.kubernetes.client.openapi.models.V1IngressBackend buildBackend() { + public V1IngressBackend buildBackend() { return this.backend != null ? this.backend.build() : null; } - public A withBackend(io.kubernetes.client.openapi.models.V1IngressBackend backend) { + public A withBackend(V1IngressBackend backend) { _visitables.get("backend").remove(this.backend); if (backend != null) { this.backend = new V1IngressBackendBuilder(backend); _visitables.get("backend").add(this.backend); + } else { + this.backend = null; + _visitables.get("backend").remove(this.backend); } return (A) this; } @@ -65,52 +67,46 @@ public V1HTTPIngressPathFluent.BackendNested withNewBackend() { return new V1HTTPIngressPathFluentImpl.BackendNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - withNewBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item) { + public V1HTTPIngressPathFluent.BackendNested withNewBackendLike(V1IngressBackend item) { return new V1HTTPIngressPathFluentImpl.BackendNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - editBackend() { + public V1HTTPIngressPathFluent.BackendNested editBackend() { return withNewBackendLike(getBackend()); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - editOrNewBackend() { + public V1HTTPIngressPathFluent.BackendNested editOrNewBackend() { return withNewBackendLike( - getBackend() != null - ? getBackend() - : new io.kubernetes.client.openapi.models.V1IngressBackendBuilder().build()); + getBackend() != null ? getBackend() : new V1IngressBackendBuilder().build()); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested - editOrNewBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item) { + public V1HTTPIngressPathFluent.BackendNested editOrNewBackendLike(V1IngressBackend item) { return withNewBackendLike(getBackend() != null ? getBackend() : item); } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.String getPathType() { + public String getPathType() { return this.pathType; } - public A withPathType(java.lang.String pathType) { + public A withPathType(String pathType) { this.pathType = pathType; return (A) this; } - public java.lang.Boolean hasPathType() { + public Boolean hasPathType() { return this.pathType != null; } @@ -128,7 +124,7 @@ public int hashCode() { return java.util.Objects.hash(backend, path, pathType, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (backend != null) { @@ -149,17 +145,16 @@ public java.lang.String toString() { class BackendNestedImpl extends V1IngressBackendFluentImpl> - implements io.kubernetes.client.openapi.models.V1HTTPIngressPathFluent.BackendNested, - Nested { + implements V1HTTPIngressPathFluent.BackendNested, Nested { BackendNestedImpl(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } BackendNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IngressBackendBuilder(this); + this.builder = new V1IngressBackendBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressBackendBuilder builder; + V1IngressBackendBuilder builder; public N and() { return (N) V1HTTPIngressPathFluentImpl.this.withBackend(builder.build()); 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 796f9f9ce2..6d38e61d63 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 @@ -16,9 +16,7 @@ public class V1HTTPIngressRuleValueBuilder extends V1HTTPIngressRuleValueFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue, - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueBuilder> { + implements VisitableBuilder { public V1HTTPIngressRuleValueBuilder() { this(false); } @@ -32,45 +30,40 @@ public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent) { } public V1HTTPIngressRuleValueBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent fluent, - java.lang.Boolean validationEnabled) { + V1HTTPIngressRuleValueFluent fluent, Boolean validationEnabled) { this(fluent, new V1HTTPIngressRuleValue(), validationEnabled); } public V1HTTPIngressRuleValueBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue instance) { + V1HTTPIngressRuleValueFluent fluent, V1HTTPIngressRuleValue instance) { this(fluent, instance, false); } public V1HTTPIngressRuleValueBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent fluent, - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue instance, - java.lang.Boolean validationEnabled) { + V1HTTPIngressRuleValueFluent fluent, + V1HTTPIngressRuleValue instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPaths(instance.getPaths()); this.validationEnabled = validationEnabled; } - public V1HTTPIngressRuleValueBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue instance) { + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance) { this(instance, false); } - public V1HTTPIngressRuleValueBuilder( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue instance, - java.lang.Boolean validationEnabled) { + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance, Boolean validationEnabled) { this.fluent = this; this.withPaths(instance.getPaths()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent fluent; - java.lang.Boolean validationEnabled; + V1HTTPIngressRuleValueFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue build() { + public V1HTTPIngressRuleValue build() { V1HTTPIngressRuleValue buildable = new V1HTTPIngressRuleValue(); buildable.setPaths(fluent.getPaths()); return buildable; 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 3610794d56..88339be1c5 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 @@ -23,17 +23,15 @@ public interface V1HTTPIngressRuleValueFluent { public A addToPaths(Integer index, V1HTTPIngressPath item); - public A setToPaths( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPIngressPath item); + public A setToPaths(Integer index, V1HTTPIngressPath item); public A addToPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items); - public A addAllToPaths(Collection items); + public A addAllToPaths(Collection items); public A removeFromPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items); - public A removeAllFromPaths( - java.util.Collection items); + public A removeAllFromPaths(Collection items); public A removeMatchingFromPaths(Predicate predicate); @@ -43,52 +41,41 @@ public A removeAllFromPaths( * @return The buildable object. */ @Deprecated - public List getPaths(); + public List getPaths(); - public java.util.List buildPaths(); + public List buildPaths(); - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildPath(java.lang.Integer index); + public V1HTTPIngressPath buildPath(Integer index); - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildFirstPath(); + public V1HTTPIngressPath buildFirstPath(); - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildLastPath(); + public V1HTTPIngressPath buildLastPath(); - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildMatchingPath( - java.util.function.Predicate - predicate); + public V1HTTPIngressPath buildMatchingPath(Predicate predicate); - public Boolean hasMatchingPath( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPath(Predicate predicate); - public A withPaths(java.util.List paths); + public A withPaths(List paths); public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... paths); - public java.lang.Boolean hasPaths(); + public Boolean hasPaths(); public V1HTTPIngressRuleValueFluent.PathsNested addNewPath(); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - addNewPathLike(io.kubernetes.client.openapi.models.V1HTTPIngressPath item); + public V1HTTPIngressRuleValueFluent.PathsNested addNewPathLike(V1HTTPIngressPath item); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - setNewPathLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPIngressPath item); + public V1HTTPIngressRuleValueFluent.PathsNested setNewPathLike( + Integer index, V1HTTPIngressPath item); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested editPath( - java.lang.Integer index); + public V1HTTPIngressRuleValueFluent.PathsNested editPath(Integer index); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - editFirstPath(); + public V1HTTPIngressRuleValueFluent.PathsNested editFirstPath(); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - editLastPath(); + public V1HTTPIngressRuleValueFluent.PathsNested editLastPath(); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - editMatchingPath( - java.util.function.Predicate - predicate); + public V1HTTPIngressRuleValueFluent.PathsNested editMatchingPath( + Predicate predicate); public interface PathsNested extends Nested, V1HTTPIngressPathFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java index daf7c4e472..9585d6ea95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluentImpl.java @@ -26,32 +26,27 @@ public class V1HTTPIngressRuleValueFluentImpl implements V1HTTPIngressRuleValueFluent { public V1HTTPIngressRuleValueFluentImpl() {} - public V1HTTPIngressRuleValueFluentImpl( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue instance) { + public V1HTTPIngressRuleValueFluentImpl(V1HTTPIngressRuleValue instance) { this.withPaths(instance.getPaths()); } private ArrayList paths; - public A addToPaths(Integer index, io.kubernetes.client.openapi.models.V1HTTPIngressPath item) { + public A addToPaths(Integer index, V1HTTPIngressPath item) { if (this.paths == null) { - this.paths = new java.util.ArrayList(); + this.paths = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder(item); + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); _visitables.get("paths").add(index >= 0 ? index : _visitables.get("paths").size(), builder); this.paths.add(index >= 0 ? index : paths.size(), builder); return (A) this; } - public A setToPaths( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPIngressPath item) { + public A setToPaths(Integer index, V1HTTPIngressPath item) { if (this.paths == null) { - this.paths = - new java.util.ArrayList(); + this.paths = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder(item); + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); if (index < 0 || index >= _visitables.get("paths").size()) { _visitables.get("paths").add(builder); } else { @@ -67,26 +62,22 @@ public A setToPaths( public A addToPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { if (this.paths == null) { - this.paths = - new java.util.ArrayList(); + this.paths = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HTTPIngressPath item : items) { - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder(item); + 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) { + public A addAllToPaths(Collection items) { if (this.paths == null) { - this.paths = - new java.util.ArrayList(); + this.paths = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HTTPIngressPath item : items) { - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder(item); + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); _visitables.get("paths").add(builder); this.paths.add(builder); } @@ -94,9 +85,8 @@ public A addAllToPaths(Collection items) { - for (io.kubernetes.client.openapi.models.V1HTTPIngressPath item : items) { - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder = - new io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder(item); + public A removeAllFromPaths(Collection items) { + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); _visitables.get("paths").remove(builder); if (this.paths != null) { this.paths.remove(builder); @@ -118,14 +106,12 @@ public A removeAllFromPaths( return (A) this; } - public A removeMatchingFromPaths( - Predicate predicate) { + public A removeMatchingFromPaths(Predicate predicate) { if (paths == null) return (A) this; - final Iterator each = - paths.iterator(); + final Iterator each = paths.iterator(); final List visitables = _visitables.get("paths"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder = each.next(); + V1HTTPIngressPathBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -140,30 +126,28 @@ public A removeMatchingFromPaths( * @return The buildable object. */ @Deprecated - public List getPaths() { + public List getPaths() { return paths != null ? build(paths) : null; } - public java.util.List buildPaths() { + public List buildPaths() { return paths != null ? build(paths) : null; } - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildPath(java.lang.Integer index) { + public V1HTTPIngressPath buildPath(Integer index) { return this.paths.get(index).build(); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildFirstPath() { + public V1HTTPIngressPath buildFirstPath() { return this.paths.get(0).build(); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildLastPath() { + public V1HTTPIngressPath buildLastPath() { return this.paths.get(paths.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildMatchingPath( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder item : paths) { + public V1HTTPIngressPath buildMatchingPath(Predicate predicate) { + for (V1HTTPIngressPathBuilder item : paths) { if (predicate.test(item)) { return item.build(); } @@ -171,10 +155,8 @@ public io.kubernetes.client.openapi.models.V1HTTPIngressPath buildMatchingPath( return null; } - public Boolean hasMatchingPath( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder item : paths) { + public Boolean hasMatchingPath(Predicate predicate) { + for (V1HTTPIngressPathBuilder item : paths) { if (predicate.test(item)) { return true; } @@ -182,13 +164,13 @@ public Boolean hasMatchingPath( return false; } - public A withPaths(java.util.List paths) { + public A withPaths(List paths) { if (this.paths != null) { _visitables.get("paths").removeAll(this.paths); } if (paths != null) { - this.paths = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1HTTPIngressPath item : paths) { + this.paths = new ArrayList(); + for (V1HTTPIngressPath item : paths) { this.addToPaths(item); } } else { @@ -202,14 +184,14 @@ public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... path this.paths.clear(); } if (paths != null) { - for (io.kubernetes.client.openapi.models.V1HTTPIngressPath item : paths) { + for (V1HTTPIngressPath item : paths) { this.addToPaths(item); } } return (A) this; } - public java.lang.Boolean hasPaths() { + public Boolean hasPaths() { return paths != null && !paths.isEmpty(); } @@ -217,41 +199,33 @@ public V1HTTPIngressRuleValueFluent.PathsNested addNewPath() { return new V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - addNewPathLike(io.kubernetes.client.openapi.models.V1HTTPIngressPath item) { + public V1HTTPIngressRuleValueFluent.PathsNested addNewPathLike(V1HTTPIngressPath item) { return new V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - setNewPathLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPIngressPath item) { - return new io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl( - index, item); + public V1HTTPIngressRuleValueFluent.PathsNested setNewPathLike( + Integer index, V1HTTPIngressPath item) { + return new V1HTTPIngressRuleValueFluentImpl.PathsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested editPath( - java.lang.Integer index) { + public V1HTTPIngressRuleValueFluent.PathsNested editPath(Integer index) { if (paths.size() <= index) throw new RuntimeException("Can't edit paths. Index exceeds size."); return setNewPathLike(index, buildPath(index)); } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - editFirstPath() { + public V1HTTPIngressRuleValueFluent.PathsNested editFirstPath() { if (paths.size() == 0) throw new RuntimeException("Can't edit first paths. The list is empty."); return setNewPathLike(0, buildPath(0)); } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - editLastPath() { + public V1HTTPIngressRuleValueFluent.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)); } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested - editMatchingPath( - java.util.function.Predicate - predicate) { + public V1HTTPIngressRuleValueFluent.PathsNested editMatchingPath( + Predicate predicate) { int index = -1; for (int i = 0; i < paths.size(); i++) { if (predicate.test(paths.get(i))) { @@ -288,21 +262,19 @@ public String toString() { class PathsNestedImpl extends V1HTTPIngressPathFluentImpl> - implements io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueFluent.PathsNested, - Nested { - PathsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HTTPIngressPath item) { + implements V1HTTPIngressRuleValueFluent.PathsNested, Nested { + PathsNestedImpl(Integer index, V1HTTPIngressPath item) { this.index = index; this.builder = new V1HTTPIngressPathBuilder(this, item); } PathsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder(this); + this.builder = new V1HTTPIngressPathBuilder(this); } - io.kubernetes.client.openapi.models.V1HTTPIngressPathBuilder builder; - java.lang.Integer index; + V1HTTPIngressPathBuilder builder; + Integer index; public N and() { return (N) V1HTTPIngressRuleValueFluentImpl.this.setToPaths(index, builder.build()); 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 8be9d6e590..11d3164df2 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 @@ -16,9 +16,7 @@ public class V1HorizontalPodAutoscalerBuilder extends V1HorizontalPodAutoscalerFluentImpl - implements VisitableBuilder< - V1HorizontalPodAutoscaler, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> { + implements VisitableBuilder { public V1HorizontalPodAutoscalerBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1HorizontalPodAutoscalerBuilder(Boolean validationEnabled) { this(new V1HorizontalPodAutoscaler(), validationEnabled); } - public V1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent fluent) { + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent) { this(fluent, false); } public V1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent fluent, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerFluent fluent, Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscaler(), validationEnabled); } public V1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler instance) { + V1HorizontalPodAutoscalerFluent fluent, V1HorizontalPodAutoscaler instance) { this(fluent, instance, false); } public V1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerFluent fluent, + V1HorizontalPodAutoscaler instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,14 +57,12 @@ public V1HorizontalPodAutoscalerBuilder( this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler instance) { + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscaler instance) { this(instance, false); } public V1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscaler instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -84,10 +77,10 @@ public V1HorizontalPodAutoscalerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent fluent; - java.lang.Boolean validationEnabled; + V1HorizontalPodAutoscalerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler build() { + public V1HorizontalPodAutoscaler build() { V1HorizontalPodAutoscaler buildable = new V1HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 b0e64976c6..62f4e404ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java @@ -20,15 +20,15 @@ public interface V1HorizontalPodAutoscalerFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,81 +38,73 @@ public interface V1HorizontalPodAutoscalerFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - editMetadata(); + public V1HorizontalPodAutoscalerFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata(); + public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HorizontalPodAutoscalerSpec getSpec(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec buildSpec(); + public V1HorizontalPodAutoscalerSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec spec); + public A withSpec(V1HorizontalPodAutoscalerSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec item); + public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( + V1HorizontalPodAutoscalerSpec item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - editSpec(); + public V1HorizontalPodAutoscalerFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec(); + public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec item); + public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( + V1HorizontalPodAutoscalerSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HorizontalPodAutoscalerStatus getStatus(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus buildStatus(); + public V1HorizontalPodAutoscalerStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus status); + public A withStatus(V1HorizontalPodAutoscalerStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus item); + public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( + V1HorizontalPodAutoscalerStatus item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - editStatus(); + public V1HorizontalPodAutoscalerFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus(); + public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus item); + public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( + V1HorizontalPodAutoscalerStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -122,7 +114,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1HorizontalPodAutoscalerSpecFluent> { public N and(); @@ -130,7 +122,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1HorizontalPodAutoscalerStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java index a797941f34..a1e99f4375 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluentImpl.java @@ -21,8 +21,7 @@ public class V1HorizontalPodAutoscalerFluentImpl implements V1HorizontalPodAutoscalerFluent { public V1HorizontalPodAutoscalerFluentImpl() {} - public V1HorizontalPodAutoscalerFluentImpl( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler instance) { + public V1HorizontalPodAutoscalerFluentImpl(V1HorizontalPodAutoscaler instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1HorizontalPodAutoscalerFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1HorizontalPodAutoscalerSpecBuilder spec; private V1HorizontalPodAutoscalerStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,21 @@ public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { return new V1HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - editMetadata() { + public V1HorizontalPodAutoscalerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata() { + public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +122,28 @@ public V1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec getSpec() { + @Deprecated + public V1HorizontalPodAutoscalerSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec buildSpec() { + public V1HorizontalPodAutoscalerSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec spec) { + public A withSpec(V1HorizontalPodAutoscalerSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1HorizontalPodAutoscalerSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,28 +151,22 @@ public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { return new V1HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec item) { - return new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluentImpl - .SpecNestedImpl(item); + public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( + V1HorizontalPodAutoscalerSpec item) { + return new V1HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - editSpec() { + public V1HorizontalPodAutoscalerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec() { + public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1HorizontalPodAutoscalerSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec item) { + public V1HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( + V1HorizontalPodAutoscalerSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -181,26 +175,28 @@ public V1HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HorizontalPodAutoscalerStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus buildStatus() { + public V1HorizontalPodAutoscalerStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus status) { + public A withStatus(V1HorizontalPodAutoscalerStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusBuilder(status); + this.status = new V1HorizontalPodAutoscalerStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -208,29 +204,22 @@ public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { return new V1HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus item) { - return new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluentImpl - .StatusNestedImpl(item); + public V1HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( + V1HorizontalPodAutoscalerStatus item) { + return new V1HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - editStatus() { + public V1HorizontalPodAutoscalerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus() { + public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V1HorizontalPodAutoscalerStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus item) { + public V1HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( + V1HorizontalPodAutoscalerStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -251,7 +240,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -280,18 +269,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.MetadataNested< - N>, - Nested { + implements V1HorizontalPodAutoscalerFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); @@ -304,18 +291,16 @@ public N endMetadata() { class SpecNestedImpl extends V1HorizontalPodAutoscalerSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1HorizontalPodAutoscalerFluent.SpecNested, Nested { SpecNestedImpl(V1HorizontalPodAutoscalerSpec item) { this.builder = new V1HorizontalPodAutoscalerSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecBuilder(this); + this.builder = new V1HorizontalPodAutoscalerSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecBuilder builder; + V1HorizontalPodAutoscalerSpecBuilder builder; public N and() { return (N) V1HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); @@ -329,19 +314,16 @@ public N endSpec() { class StatusNestedImpl extends V1HorizontalPodAutoscalerStatusFluentImpl< V1HorizontalPodAutoscalerFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1HorizontalPodAutoscalerFluent.StatusNested, Nested { StatusNestedImpl(V1HorizontalPodAutoscalerStatus item) { this.builder = new V1HorizontalPodAutoscalerStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusBuilder(this); + this.builder = new V1HorizontalPodAutoscalerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusBuilder builder; + V1HorizontalPodAutoscalerStatusBuilder builder; public N and() { return (N) V1HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); 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 97ac6dc15b..46cc56b283 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 @@ -17,8 +17,7 @@ public class V1HorizontalPodAutoscalerListBuilder extends V1HorizontalPodAutoscalerListFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerList, - V1HorizontalPodAutoscalerListBuilder> { + V1HorizontalPodAutoscalerList, V1HorizontalPodAutoscalerListBuilder> { public V1HorizontalPodAutoscalerListBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent< } public V1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent fluent, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerListFluent fluent, Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscalerList(), validationEnabled); } public V1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerList instance) { + V1HorizontalPodAutoscalerListFluent fluent, V1HorizontalPodAutoscalerList instance) { this(fluent, instance, false); } public V1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerListFluent fluent, + V1HorizontalPodAutoscalerList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +56,12 @@ public V1HorizontalPodAutoscalerListBuilder( this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerList instance) { + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerList instance) { this(instance, false); } public V1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +74,10 @@ public V1HorizontalPodAutoscalerListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent fluent; - java.lang.Boolean validationEnabled; + V1HorizontalPodAutoscalerListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerList build() { + public V1HorizontalPodAutoscalerList build() { V1HorizontalPodAutoscalerList buildable = new V1HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 037d1695d6..c787ea524c 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 @@ -24,24 +24,21 @@ public interface V1HorizontalPodAutoscalerListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1HorizontalPodAutoscaler item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item); + public A setToItems(Integer index, V1HorizontalPodAutoscaler item); public A addToItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,92 +48,74 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildItem( - java.lang.Integer index); + public V1HorizontalPodAutoscaler buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildFirstItem(); + public V1HorizontalPodAutoscaler buildFirstItem(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildLastItem(); + public V1HorizontalPodAutoscaler buildLastItem(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> - predicate); + public V1HorizontalPodAutoscaler buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item); + public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( + V1HorizontalPodAutoscaler item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item); + public V1HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( + Integer index, V1HorizontalPodAutoscaler item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem(); + public V1HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem(); + public V1HorizontalPodAutoscalerListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> - predicate); + public V1HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - editMetadata(); + public V1HorizontalPodAutoscalerListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadata(); + public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -147,8 +126,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java index ec55dec6d5..d10859ef2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluentImpl.java @@ -39,14 +39,14 @@ public V1HorizontalPodAutoscalerListFluentImpl(V1HorizontalPodAutoscalerList ins private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item) { + public A addToItems(Integer index, V1HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(item); + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item) { + public A setToItems(Integer index, V1HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(item); + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -93,29 +85,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(item); + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -123,9 +108,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(item); + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -134,11 +118,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAuto return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -147,14 +129,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder = each.next(); + V1HorizontalPodAutoscalerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,33 +149,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildItem( - java.lang.Integer index) { + public V1HorizontalPodAutoscaler buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildFirstItem() { + public V1HorizontalPodAutoscaler buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildLastItem() { + public V1HorizontalPodAutoscaler buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder item : items) { + public V1HorizontalPodAutoscaler buildMatchingItem( + Predicate predicate) { + for (V1HorizontalPodAutoscalerBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -203,11 +179,8 @@ public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler buildMatchi return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1HorizontalPodAutoscalerBuilder item : items) { if (predicate.test(item)) { return true; } @@ -215,14 +188,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item : items) { + this.items = new ArrayList(); + for (V1HorizontalPodAutoscaler item : items) { this.addToItems(item); } } else { @@ -236,14 +208,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item : items) { + for (V1HorizontalPodAutoscaler item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -251,43 +223,34 @@ public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return new V1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item) { + public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( + V1HorizontalPodAutoscaler item) { return new V1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item) { - return new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluentImpl - .ItemsNestedImpl(index, item); + public V1HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( + Integer index, V1HorizontalPodAutoscaler item) { + return new V1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem() { + public V1HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem() { + public V1HorizontalPodAutoscalerListFluent.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 io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder> - predicate) { + public V1HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -299,16 +262,16 @@ public V1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -317,25 +280,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -343,27 +309,22 @@ public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata() { return new V1HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluentImpl - .MetadataNestedImpl(item); + public V1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - editMetadata() { + public V1HorizontalPodAutoscalerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadata() { + public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -383,7 +344,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -410,20 +371,18 @@ class ItemsNestedImpl extends V1HorizontalPodAutoscalerFluentImpl< V1HorizontalPodAutoscalerListFluent.ItemsNested> implements V1HorizontalPodAutoscalerListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler item) { + ItemsNestedImpl(Integer index, V1HorizontalPodAutoscaler item) { this.index = index; this.builder = new V1HorizontalPodAutoscalerBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder(this); + this.builder = new V1HorizontalPodAutoscalerBuilder(this); } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerBuilder builder; - java.lang.Integer index; + V1HorizontalPodAutoscalerBuilder builder; + Integer index; public N and() { return (N) V1HorizontalPodAutoscalerListFluentImpl.this.setToItems(index, builder.build()); @@ -436,19 +395,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1HorizontalPodAutoscalerListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java index 6be4df5edc..31539de993 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java @@ -17,8 +17,7 @@ public class V1HorizontalPodAutoscalerSpecBuilder extends V1HorizontalPodAutoscalerSpecFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec, - V1HorizontalPodAutoscalerSpecBuilder> { + V1HorizontalPodAutoscalerSpec, V1HorizontalPodAutoscalerSpecBuilder> { public V1HorizontalPodAutoscalerSpecBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { this(new V1HorizontalPodAutoscalerSpec(), validationEnabled); } - public V1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent fluent) { + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent) { this(fluent, false); } public V1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscalerSpec(), validationEnabled); } public V1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec instance) { + V1HorizontalPodAutoscalerSpecFluent fluent, V1HorizontalPodAutoscalerSpec instance) { this(fluent, instance, false); } public V1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerSpecFluent fluent, + V1HorizontalPodAutoscalerSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMaxReplicas(instance.getMaxReplicas()); @@ -60,14 +56,12 @@ public V1HorizontalPodAutoscalerSpecBuilder( this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec instance) { + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpec instance) { this(instance, false); } public V1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMaxReplicas(instance.getMaxReplicas()); @@ -80,10 +74,10 @@ public V1HorizontalPodAutoscalerSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1HorizontalPodAutoscalerSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec build() { + public V1HorizontalPodAutoscalerSpec build() { V1HorizontalPodAutoscalerSpec buildable = new V1HorizontalPodAutoscalerSpec(); buildable.setMaxReplicas(fluent.getMaxReplicas()); buildable.setMinReplicas(fluent.getMinReplicas()); 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 51e3a544a8..22cda0efbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java @@ -21,15 +21,15 @@ public interface V1HorizontalPodAutoscalerSpecFluent< extends Fluent { public Integer getMaxReplicas(); - public A withMaxReplicas(java.lang.Integer maxReplicas); + public A withMaxReplicas(Integer maxReplicas); public Boolean hasMaxReplicas(); - public java.lang.Integer getMinReplicas(); + public Integer getMinReplicas(); - public A withMinReplicas(java.lang.Integer minReplicas); + public A withMinReplicas(Integer minReplicas); - public java.lang.Boolean hasMinReplicas(); + public Boolean hasMinReplicas(); /** * This method has been deprecated, please use method buildScaleTargetRef instead. @@ -39,42 +39,29 @@ public interface V1HorizontalPodAutoscalerSpecFluent< @Deprecated public V1CrossVersionObjectReference getScaleTargetRef(); - public io.kubernetes.client.openapi.models.V1CrossVersionObjectReference buildScaleTargetRef(); + public V1CrossVersionObjectReference buildScaleTargetRef(); - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference scaleTargetRef); + public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef); - public java.lang.Boolean hasScaleTargetRef(); + public Boolean hasScaleTargetRef(); public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference item); + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( + V1CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef(); + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef(); + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef(); - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference item); + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( + V1CrossVersionObjectReference item); - public java.lang.Integer getTargetCPUUtilizationPercentage(); + public Integer getTargetCPUUtilizationPercentage(); - public A withTargetCPUUtilizationPercentage(java.lang.Integer targetCPUUtilizationPercentage); + public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage); - public java.lang.Boolean hasTargetCPUUtilizationPercentage(); + public Boolean hasTargetCPUUtilizationPercentage(); public interface ScaleTargetRefNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java index 621d0f7b64..d0217edd78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluentImpl.java @@ -22,8 +22,7 @@ public class V1HorizontalPodAutoscalerSpecFluentImpl< extends BaseFluent implements V1HorizontalPodAutoscalerSpecFluent { public V1HorizontalPodAutoscalerSpecFluentImpl() {} - public V1HorizontalPodAutoscalerSpecFluentImpl( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpec instance) { + public V1HorizontalPodAutoscalerSpecFluentImpl(V1HorizontalPodAutoscalerSpec instance) { this.withMaxReplicas(instance.getMaxReplicas()); this.withMinReplicas(instance.getMinReplicas()); @@ -34,15 +33,15 @@ public V1HorizontalPodAutoscalerSpecFluentImpl( } private Integer maxReplicas; - private java.lang.Integer minReplicas; + private Integer minReplicas; private V1CrossVersionObjectReferenceBuilder scaleTargetRef; - private java.lang.Integer targetCPUUtilizationPercentage; + private Integer targetCPUUtilizationPercentage; - public java.lang.Integer getMaxReplicas() { + public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(java.lang.Integer maxReplicas) { + public A withMaxReplicas(Integer maxReplicas) { this.maxReplicas = maxReplicas; return (A) this; } @@ -51,16 +50,16 @@ public Boolean hasMaxReplicas() { return this.maxReplicas != null; } - public java.lang.Integer getMinReplicas() { + public Integer getMinReplicas() { return this.minReplicas; } - public A withMinReplicas(java.lang.Integer minReplicas) { + public A withMinReplicas(Integer minReplicas) { this.minReplicas = minReplicas; return (A) this; } - public java.lang.Boolean hasMinReplicas() { + public Boolean hasMinReplicas() { return this.minReplicas != null; } @@ -70,25 +69,27 @@ public java.lang.Boolean hasMinReplicas() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1CrossVersionObjectReference getScaleTargetRef() { + public V1CrossVersionObjectReference getScaleTargetRef() { return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public io.kubernetes.client.openapi.models.V1CrossVersionObjectReference buildScaleTargetRef() { + public V1CrossVersionObjectReference buildScaleTargetRef() { return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference scaleTargetRef) { + public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); if (scaleTargetRef != null) { this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); _visitables.get("scaleTargetRef").add(this.scaleTargetRef); + } else { + this.scaleTargetRef = null; + _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); } return (A) this; } - public java.lang.Boolean hasScaleTargetRef() { + public Boolean hasScaleTargetRef() { return this.scaleTargetRef != null; } @@ -96,50 +97,37 @@ public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleT return new V1HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference item) { + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( + V1CrossVersionObjectReference item) { return new V1HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef() { + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef() { return withNewScaleTargetRefLike(getScaleTargetRef()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef() { + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef() { return withNewScaleTargetRefLike( getScaleTargetRef() != null ? getScaleTargetRef() - : new io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceBuilder() - .build()); + : new V1CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference item) { + public V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( + V1CrossVersionObjectReference item) { return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); } - public java.lang.Integer getTargetCPUUtilizationPercentage() { + public Integer getTargetCPUUtilizationPercentage() { return this.targetCPUUtilizationPercentage; } - public A withTargetCPUUtilizationPercentage(java.lang.Integer targetCPUUtilizationPercentage) { + public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; return (A) this; } - public java.lang.Boolean hasTargetCPUUtilizationPercentage() { + public Boolean hasTargetCPUUtilizationPercentage() { return this.targetCPUUtilizationPercentage != null; } @@ -191,21 +179,16 @@ public String toString() { class ScaleTargetRefNestedImpl extends V1CrossVersionObjectReferenceFluentImpl< V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - N>, - Nested { - ScaleTargetRefNestedImpl( - io.kubernetes.client.openapi.models.V1CrossVersionObjectReference item) { + implements V1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested, Nested { + ScaleTargetRefNestedImpl(V1CrossVersionObjectReference item) { this.builder = new V1CrossVersionObjectReferenceBuilder(this, item); } ScaleTargetRefNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceBuilder(this); + this.builder = new V1CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1CrossVersionObjectReferenceBuilder builder; + V1CrossVersionObjectReferenceBuilder builder; public N and() { return (N) V1HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); 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 c22be4d47f..b34212c960 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 @@ -17,8 +17,7 @@ public class V1HorizontalPodAutoscalerStatusBuilder extends V1HorizontalPodAutoscalerStatusFluentImpl implements VisitableBuilder< - V1HorizontalPodAutoscalerStatus, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusBuilder> { + V1HorizontalPodAutoscalerStatus, V1HorizontalPodAutoscalerStatusBuilder> { public V1HorizontalPodAutoscalerStatusBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFlu } public V1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1HorizontalPodAutoscalerStatus(), validationEnabled); } public V1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus instance) { + V1HorizontalPodAutoscalerStatusFluent fluent, V1HorizontalPodAutoscalerStatus instance) { this(fluent, instance, false); } public V1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerStatusFluent fluent, + V1HorizontalPodAutoscalerStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); @@ -61,14 +58,12 @@ public V1HorizontalPodAutoscalerStatusBuilder( this.validationEnabled = validationEnabled; } - public V1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus instance) { + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatus instance) { this(instance, false); } public V1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { + V1HorizontalPodAutoscalerStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); @@ -83,10 +78,10 @@ public V1HorizontalPodAutoscalerStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1HorizontalPodAutoscalerStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus build() { + public V1HorizontalPodAutoscalerStatus build() { V1HorizontalPodAutoscalerStatus buildable = new V1HorizontalPodAutoscalerStatus(); buildable.setCurrentCPUUtilizationPercentage(fluent.getCurrentCPUUtilizationPercentage()); buildable.setCurrentReplicas(fluent.getCurrentReplicas()); 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 299f80e5e5..3eee9d22b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java @@ -21,31 +21,31 @@ public interface V1HorizontalPodAutoscalerStatusFluent< extends Fluent { public Integer getCurrentCPUUtilizationPercentage(); - public A withCurrentCPUUtilizationPercentage(java.lang.Integer currentCPUUtilizationPercentage); + public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage); public Boolean hasCurrentCPUUtilizationPercentage(); - public java.lang.Integer getCurrentReplicas(); + public Integer getCurrentReplicas(); - public A withCurrentReplicas(java.lang.Integer currentReplicas); + public A withCurrentReplicas(Integer currentReplicas); - public java.lang.Boolean hasCurrentReplicas(); + public Boolean hasCurrentReplicas(); - public java.lang.Integer getDesiredReplicas(); + public Integer getDesiredReplicas(); - public A withDesiredReplicas(java.lang.Integer desiredReplicas); + public A withDesiredReplicas(Integer desiredReplicas); - public java.lang.Boolean hasDesiredReplicas(); + public Boolean hasDesiredReplicas(); public OffsetDateTime getLastScaleTime(); - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime); + public A withLastScaleTime(OffsetDateTime lastScaleTime); - public java.lang.Boolean hasLastScaleTime(); + public Boolean hasLastScaleTime(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java index b8937e54f0..3431d03a2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluentImpl.java @@ -22,8 +22,7 @@ public class V1HorizontalPodAutoscalerStatusFluentImpl< extends BaseFluent implements V1HorizontalPodAutoscalerStatusFluent { public V1HorizontalPodAutoscalerStatusFluentImpl() {} - public V1HorizontalPodAutoscalerStatusFluentImpl( - io.kubernetes.client.openapi.models.V1HorizontalPodAutoscalerStatus instance) { + public V1HorizontalPodAutoscalerStatusFluentImpl(V1HorizontalPodAutoscalerStatus instance) { this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); this.withCurrentReplicas(instance.getCurrentReplicas()); @@ -36,16 +35,16 @@ public V1HorizontalPodAutoscalerStatusFluentImpl( } private Integer currentCPUUtilizationPercentage; - private java.lang.Integer currentReplicas; - private java.lang.Integer desiredReplicas; + private Integer currentReplicas; + private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - public java.lang.Integer getCurrentCPUUtilizationPercentage() { + public Integer getCurrentCPUUtilizationPercentage() { return this.currentCPUUtilizationPercentage; } - public A withCurrentCPUUtilizationPercentage(java.lang.Integer currentCPUUtilizationPercentage) { + public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; return (A) this; } @@ -54,55 +53,55 @@ public Boolean hasCurrentCPUUtilizationPercentage() { return this.currentCPUUtilizationPercentage != null; } - public java.lang.Integer getCurrentReplicas() { + public Integer getCurrentReplicas() { return this.currentReplicas; } - public A withCurrentReplicas(java.lang.Integer currentReplicas) { + public A withCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; return (A) this; } - public java.lang.Boolean hasCurrentReplicas() { + public Boolean hasCurrentReplicas() { return this.currentReplicas != null; } - public java.lang.Integer getDesiredReplicas() { + public Integer getDesiredReplicas() { return this.desiredReplicas; } - public A withDesiredReplicas(java.lang.Integer desiredReplicas) { + public A withDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; return (A) this; } - public java.lang.Boolean hasDesiredReplicas() { + public Boolean hasDesiredReplicas() { return this.desiredReplicas != null; } - public java.time.OffsetDateTime getLastScaleTime() { + public OffsetDateTime getLastScaleTime() { return this.lastScaleTime; } - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime) { + public A withLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return (A) this; } - public java.lang.Boolean hasLastScaleTime() { + public Boolean hasLastScaleTime() { return this.lastScaleTime != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } 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 6b050bfae8..b5a4049e77 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1HostAliasBuilder extends V1HostAliasFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1HostAlias, - io.kubernetes.client.openapi.models.V1HostAliasBuilder> { + implements VisitableBuilder { public V1HostAliasBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1HostAliasBuilder(V1HostAliasFluent fluent) { this(fluent, false); } - public V1HostAliasBuilder( - io.kubernetes.client.openapi.models.V1HostAliasFluent fluent, - java.lang.Boolean validationEnabled) { + public V1HostAliasBuilder(V1HostAliasFluent fluent, Boolean validationEnabled) { this(fluent, new V1HostAlias(), validationEnabled); } - public V1HostAliasBuilder( - io.kubernetes.client.openapi.models.V1HostAliasFluent fluent, - io.kubernetes.client.openapi.models.V1HostAlias instance) { + public V1HostAliasBuilder(V1HostAliasFluent fluent, V1HostAlias instance) { this(fluent, instance, false); } public V1HostAliasBuilder( - io.kubernetes.client.openapi.models.V1HostAliasFluent fluent, - io.kubernetes.client.openapi.models.V1HostAlias instance, - java.lang.Boolean validationEnabled) { + V1HostAliasFluent fluent, V1HostAlias instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withHostnames(instance.getHostnames()); @@ -54,13 +46,11 @@ public V1HostAliasBuilder( this.validationEnabled = validationEnabled; } - public V1HostAliasBuilder(io.kubernetes.client.openapi.models.V1HostAlias instance) { + public V1HostAliasBuilder(V1HostAlias instance) { this(instance, false); } - public V1HostAliasBuilder( - io.kubernetes.client.openapi.models.V1HostAlias instance, - java.lang.Boolean validationEnabled) { + public V1HostAliasBuilder(V1HostAlias instance, Boolean validationEnabled) { this.fluent = this; this.withHostnames(instance.getHostnames()); @@ -69,10 +59,10 @@ public V1HostAliasBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HostAliasFluent fluent; - java.lang.Boolean validationEnabled; + V1HostAliasFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HostAlias build() { + public V1HostAlias build() { V1HostAlias buildable = new V1HostAlias(); buildable.setHostnames(fluent.getHostnames()); buildable.setIp(fluent.getIp()); 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 523f342076..4f575da1f3 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 @@ -21,37 +21,37 @@ public interface V1HostAliasFluent> extends Fluent { public A addToHostnames(Integer index, String item); - public A setToHostnames(java.lang.Integer index, java.lang.String item); + public A setToHostnames(Integer index, String item); public A addToHostnames(java.lang.String... items); - public A addAllToHostnames(Collection items); + public A addAllToHostnames(Collection items); public A removeFromHostnames(java.lang.String... items); - public A removeAllFromHostnames(java.util.Collection items); + public A removeAllFromHostnames(Collection items); - public List getHostnames(); + public List getHostnames(); - public java.lang.String getHostname(java.lang.Integer index); + public String getHostname(Integer index); - public java.lang.String getFirstHostname(); + public String getFirstHostname(); - public java.lang.String getLastHostname(); + public String getLastHostname(); - public java.lang.String getMatchingHostname(Predicate predicate); + public String getMatchingHostname(Predicate predicate); - public Boolean hasMatchingHostname(java.util.function.Predicate predicate); + public Boolean hasMatchingHostname(Predicate predicate); - public A withHostnames(java.util.List hostnames); + public A withHostnames(List hostnames); public A withHostnames(java.lang.String... hostnames); - public java.lang.Boolean hasHostnames(); + public Boolean hasHostnames(); - public java.lang.String getIp(); + public String getIp(); - public A withIp(java.lang.String ip); + public A withIp(String ip); - public java.lang.Boolean hasIp(); + public Boolean hasIp(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java index 872eb01eae..84c2535058 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluentImpl.java @@ -24,26 +24,26 @@ public class V1HostAliasFluentImpl> extends BaseF implements V1HostAliasFluent { public V1HostAliasFluentImpl() {} - public V1HostAliasFluentImpl(io.kubernetes.client.openapi.models.V1HostAlias instance) { + public V1HostAliasFluentImpl(V1HostAlias instance) { this.withHostnames(instance.getHostnames()); this.withIp(instance.getIp()); } private List hostnames; - private java.lang.String ip; + private String ip; - public A addToHostnames(Integer index, java.lang.String item) { + public A addToHostnames(Integer index, String item) { if (this.hostnames == null) { - this.hostnames = new ArrayList(); + this.hostnames = new ArrayList(); } this.hostnames.add(index, item); return (A) this; } - public A setToHostnames(java.lang.Integer index, java.lang.String item) { + public A setToHostnames(Integer index, String item) { if (this.hostnames == null) { - this.hostnames = new java.util.ArrayList(); + this.hostnames = new ArrayList(); } this.hostnames.set(index, item); return (A) this; @@ -51,26 +51,26 @@ public A setToHostnames(java.lang.Integer index, java.lang.String item) { public A addToHostnames(java.lang.String... items) { if (this.hostnames == null) { - this.hostnames = new java.util.ArrayList(); + this.hostnames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.hostnames.add(item); } return (A) this; } - public A addAllToHostnames(Collection items) { + public A addAllToHostnames(Collection items) { if (this.hostnames == null) { - this.hostnames = new java.util.ArrayList(); + this.hostnames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.hostnames.add(item); } return (A) this; } public A removeFromHostnames(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.hostnames != null) { this.hostnames.remove(item); } @@ -78,8 +78,8 @@ public A removeFromHostnames(java.lang.String... items) { return (A) this; } - public A removeAllFromHostnames(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromHostnames(Collection items) { + for (String item : items) { if (this.hostnames != null) { this.hostnames.remove(item); } @@ -87,24 +87,24 @@ public A removeAllFromHostnames(java.util.Collection items) { return (A) this; } - public java.util.List getHostnames() { + public List getHostnames() { return this.hostnames; } - public java.lang.String getHostname(java.lang.Integer index) { + public String getHostname(Integer index) { return this.hostnames.get(index); } - public java.lang.String getFirstHostname() { + public String getFirstHostname() { return this.hostnames.get(0); } - public java.lang.String getLastHostname() { + public String getLastHostname() { return this.hostnames.get(hostnames.size() - 1); } - public java.lang.String getMatchingHostname(Predicate predicate) { - for (java.lang.String item : hostnames) { + public String getMatchingHostname(Predicate predicate) { + for (String item : hostnames) { if (predicate.test(item)) { return item; } @@ -112,8 +112,8 @@ public java.lang.String getMatchingHostname(Predicate predicat return null; } - public Boolean hasMatchingHostname(java.util.function.Predicate predicate) { - for (java.lang.String item : hostnames) { + public Boolean hasMatchingHostname(Predicate predicate) { + for (String item : hostnames) { if (predicate.test(item)) { return true; } @@ -121,10 +121,10 @@ public Boolean hasMatchingHostname(java.util.function.Predicate hostnames) { + public A withHostnames(List hostnames) { if (hostnames != null) { - this.hostnames = new java.util.ArrayList(); - for (java.lang.String item : hostnames) { + this.hostnames = new ArrayList(); + for (String item : hostnames) { this.addToHostnames(item); } } else { @@ -138,27 +138,27 @@ public A withHostnames(java.lang.String... hostnames) { this.hostnames.clear(); } if (hostnames != null) { - for (java.lang.String item : hostnames) { + for (String item : hostnames) { this.addToHostnames(item); } } return (A) this; } - public java.lang.Boolean hasHostnames() { + public Boolean hasHostnames() { return hostnames != null && !hostnames.isEmpty(); } - public java.lang.String getIp() { + public String getIp() { return this.ip; } - public A withIp(java.lang.String ip) { + public A withIp(String ip) { this.ip = ip; return (A) this; } - public java.lang.Boolean hasIp() { + public Boolean hasIp() { return this.ip != null; } @@ -176,7 +176,7 @@ public int hashCode() { return java.util.Objects.hash(hostnames, ip, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (hostnames != null && !hostnames.isEmpty()) { 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 4f991090c0..4b02fbd826 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 @@ -16,8 +16,7 @@ public class V1HostPathVolumeSourceBuilder extends V1HostPathVolumeSourceFluentImpl - implements VisitableBuilder< - V1HostPathVolumeSource, io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder> { + implements VisitableBuilder { public V1HostPathVolumeSourceBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent) { } public V1HostPathVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1HostPathVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1HostPathVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1HostPathVolumeSource(), validationEnabled); } public V1HostPathVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1HostPathVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1HostPathVolumeSource instance) { + V1HostPathVolumeSourceFluent fluent, V1HostPathVolumeSource instance) { this(fluent, instance, false); } public V1HostPathVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1HostPathVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1HostPathVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1HostPathVolumeSourceFluent fluent, + V1HostPathVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPath(instance.getPath()); @@ -54,14 +51,11 @@ public V1HostPathVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1HostPathVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource instance) { + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance) { this(instance, false); } - public V1HostPathVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withPath(instance.getPath()); @@ -70,10 +64,10 @@ public V1HostPathVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1HostPathVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1HostPathVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1HostPathVolumeSource build() { + public V1HostPathVolumeSource build() { V1HostPathVolumeSource buildable = new V1HostPathVolumeSource(); buildable.setPath(fluent.getPath()); buildable.setType(fluent.getType()); 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 e47c270f4a..cb2be4e376 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 @@ -19,13 +19,13 @@ public interface V1HostPathVolumeSourceFluent { public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); public Boolean hasPath(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java index 0883e1c132..66da35cf34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluentImpl.java @@ -20,21 +20,20 @@ public class V1HostPathVolumeSourceFluentImpl implements V1HostPathVolumeSourceFluent { public V1HostPathVolumeSourceFluentImpl() {} - public V1HostPathVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource instance) { + public V1HostPathVolumeSourceFluentImpl(V1HostPathVolumeSource instance) { this.withPath(instance.getPath()); this.withType(instance.getType()); } private String path; - private java.lang.String type; + private String type; - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasPath() { return this.path != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(path, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (path != null) { 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 7a82117795..2197a672a2 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IPBlockBuilder extends V1IPBlockFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1IPBlockBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1IPBlockBuilder(V1IPBlockFluent fluent) { this(fluent, false); } - public V1IPBlockBuilder( - io.kubernetes.client.openapi.models.V1IPBlockFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IPBlockBuilder(V1IPBlockFluent fluent, Boolean validationEnabled) { this(fluent, new V1IPBlock(), validationEnabled); } - public V1IPBlockBuilder( - io.kubernetes.client.openapi.models.V1IPBlockFluent fluent, - io.kubernetes.client.openapi.models.V1IPBlock instance) { + public V1IPBlockBuilder(V1IPBlockFluent fluent, V1IPBlock instance) { this(fluent, instance, false); } public V1IPBlockBuilder( - io.kubernetes.client.openapi.models.V1IPBlockFluent fluent, - io.kubernetes.client.openapi.models.V1IPBlock instance, - java.lang.Boolean validationEnabled) { + V1IPBlockFluent fluent, V1IPBlock instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCidr(instance.getCidr()); @@ -52,12 +46,11 @@ public V1IPBlockBuilder( this.validationEnabled = validationEnabled; } - public V1IPBlockBuilder(io.kubernetes.client.openapi.models.V1IPBlock instance) { + public V1IPBlockBuilder(V1IPBlock instance) { this(instance, false); } - public V1IPBlockBuilder( - io.kubernetes.client.openapi.models.V1IPBlock instance, java.lang.Boolean validationEnabled) { + public V1IPBlockBuilder(V1IPBlock instance, Boolean validationEnabled) { this.fluent = this; this.withCidr(instance.getCidr()); @@ -66,10 +59,10 @@ public V1IPBlockBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IPBlockFluent fluent; - java.lang.Boolean validationEnabled; + V1IPBlockFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IPBlock build() { + public V1IPBlock build() { V1IPBlock buildable = new V1IPBlock(); buildable.setCidr(fluent.getCidr()); buildable.setExcept(fluent.getExcept()); 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 ab24f957ea..a635dddf69 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 @@ -21,38 +21,37 @@ public interface V1IPBlockFluent> extends Fluent { public String getCidr(); - public A withCidr(java.lang.String cidr); + public A withCidr(String cidr); public Boolean hasCidr(); - public A addToExcept(Integer index, java.lang.String item); + public A addToExcept(Integer index, String item); - public A setToExcept(java.lang.Integer index, java.lang.String item); + public A setToExcept(Integer index, String item); public A addToExcept(java.lang.String... items); - public A addAllToExcept(Collection items); + public A addAllToExcept(Collection items); public A removeFromExcept(java.lang.String... items); - public A removeAllFromExcept(java.util.Collection items); + public A removeAllFromExcept(Collection items); - public List getExcept(); + public List getExcept(); - public java.lang.String getExcept(java.lang.Integer index); + public String getExcept(Integer index); - public java.lang.String getFirstExcept(); + public String getFirstExcept(); - public java.lang.String getLastExcept(); + public String getLastExcept(); - public java.lang.String getMatchingExcept(Predicate predicate); + public String getMatchingExcept(Predicate predicate); - public java.lang.Boolean hasMatchingExcept( - java.util.function.Predicate predicate); + public Boolean hasMatchingExcept(Predicate predicate); - public A withExcept(java.util.List except); + public A withExcept(List except); public A withExcept(java.lang.String... except); - public java.lang.Boolean hasExcept(); + public Boolean hasExcept(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java index 0d1b52fb70..81aa9208e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluentImpl.java @@ -24,20 +24,20 @@ public class V1IPBlockFluentImpl> extends BaseFluen implements V1IPBlockFluent { public V1IPBlockFluentImpl() {} - public V1IPBlockFluentImpl(io.kubernetes.client.openapi.models.V1IPBlock instance) { + public V1IPBlockFluentImpl(V1IPBlock instance) { this.withCidr(instance.getCidr()); this.withExcept(instance.getExcept()); } private String cidr; - private List except; + private List except; - public java.lang.String getCidr() { + public String getCidr() { return this.cidr; } - public A withCidr(java.lang.String cidr) { + public A withCidr(String cidr) { this.cidr = cidr; return (A) this; } @@ -46,17 +46,17 @@ public Boolean hasCidr() { return this.cidr != null; } - public A addToExcept(Integer index, java.lang.String item) { + public A addToExcept(Integer index, String item) { if (this.except == null) { - this.except = new ArrayList(); + this.except = new ArrayList(); } this.except.add(index, item); return (A) this; } - public A setToExcept(java.lang.Integer index, java.lang.String item) { + public A setToExcept(Integer index, String item) { if (this.except == null) { - this.except = new java.util.ArrayList(); + this.except = new ArrayList(); } this.except.set(index, item); return (A) this; @@ -64,26 +64,26 @@ public A setToExcept(java.lang.Integer index, java.lang.String item) { public A addToExcept(java.lang.String... items) { if (this.except == null) { - this.except = new java.util.ArrayList(); + this.except = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.except.add(item); } return (A) this; } - public A addAllToExcept(Collection items) { + public A addAllToExcept(Collection items) { if (this.except == null) { - this.except = new java.util.ArrayList(); + this.except = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.except.add(item); } return (A) this; } public A removeFromExcept(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.except != null) { this.except.remove(item); } @@ -91,8 +91,8 @@ public A removeFromExcept(java.lang.String... items) { return (A) this; } - public A removeAllFromExcept(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromExcept(Collection items) { + for (String item : items) { if (this.except != null) { this.except.remove(item); } @@ -100,24 +100,24 @@ public A removeAllFromExcept(java.util.Collection items) { return (A) this; } - public java.util.List getExcept() { + public List getExcept() { return this.except; } - public java.lang.String getExcept(java.lang.Integer index) { + public String getExcept(Integer index) { return this.except.get(index); } - public java.lang.String getFirstExcept() { + public String getFirstExcept() { return this.except.get(0); } - public java.lang.String getLastExcept() { + public String getLastExcept() { return this.except.get(except.size() - 1); } - public java.lang.String getMatchingExcept(Predicate predicate) { - for (java.lang.String item : except) { + public String getMatchingExcept(Predicate predicate) { + for (String item : except) { if (predicate.test(item)) { return item; } @@ -125,9 +125,8 @@ public java.lang.String getMatchingExcept(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingExcept( - java.util.function.Predicate predicate) { - for (java.lang.String item : except) { + public Boolean hasMatchingExcept(Predicate predicate) { + for (String item : except) { if (predicate.test(item)) { return true; } @@ -135,10 +134,10 @@ public java.lang.Boolean hasMatchingExcept( return false; } - public A withExcept(java.util.List except) { + public A withExcept(List except) { if (except != null) { - this.except = new java.util.ArrayList(); - for (java.lang.String item : except) { + this.except = new ArrayList(); + for (String item : except) { this.addToExcept(item); } } else { @@ -152,14 +151,14 @@ public A withExcept(java.lang.String... except) { this.except.clear(); } if (except != null) { - for (java.lang.String item : except) { + for (String item : except) { this.addToExcept(item); } } return (A) this; } - public java.lang.Boolean hasExcept() { + public Boolean hasExcept() { return except != null && !except.isEmpty(); } @@ -176,7 +175,7 @@ public int hashCode() { return java.util.Objects.hash(cidr, except, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (cidr != null) { 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 bd67c89e16..e801fcd38e 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 @@ -17,8 +17,7 @@ public class V1ISCSIPersistentVolumeSourceBuilder extends V1ISCSIPersistentVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource, - V1ISCSIPersistentVolumeSourceBuilder> { + V1ISCSIPersistentVolumeSource, V1ISCSIPersistentVolumeSourceBuilder> { public V1ISCSIPersistentVolumeSourceBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1ISCSIPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ISCSIPersistentVolumeSource(), validationEnabled); } - public V1ISCSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent fluent) { + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent) { this(fluent, false); } public V1ISCSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ISCSIPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ISCSIPersistentVolumeSource(), validationEnabled); } public V1ISCSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource instance) { + V1ISCSIPersistentVolumeSourceFluent fluent, V1ISCSIPersistentVolumeSource instance) { this(fluent, instance, false); } public V1ISCSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ISCSIPersistentVolumeSourceFluent fluent, + V1ISCSIPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withChapAuthDiscovery(instance.getChapAuthDiscovery()); @@ -74,14 +70,12 @@ public V1ISCSIPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ISCSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource instance) { + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSource instance) { this(instance, false); } public V1ISCSIPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ISCSIPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); @@ -108,10 +102,10 @@ public V1ISCSIPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ISCSIPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource build() { + public V1ISCSIPersistentVolumeSource build() { V1ISCSIPersistentVolumeSource buildable = new V1ISCSIPersistentVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); buildable.setChapAuthSession(fluent.getChapAuthSession()); 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 c754ec8e6c..6d3cd2a2ea 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 @@ -24,82 +24,81 @@ public interface V1ISCSIPersistentVolumeSourceFluent< extends Fluent { public Boolean getChapAuthDiscovery(); - public A withChapAuthDiscovery(java.lang.Boolean chapAuthDiscovery); + public A withChapAuthDiscovery(Boolean chapAuthDiscovery); - public java.lang.Boolean hasChapAuthDiscovery(); + public Boolean hasChapAuthDiscovery(); - public java.lang.Boolean getChapAuthSession(); + public Boolean getChapAuthSession(); - public A withChapAuthSession(java.lang.Boolean chapAuthSession); + public A withChapAuthSession(Boolean chapAuthSession); - public java.lang.Boolean hasChapAuthSession(); + public Boolean hasChapAuthSession(); public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); - public java.lang.Boolean hasFsType(); + public Boolean hasFsType(); - public java.lang.String getInitiatorName(); + public String getInitiatorName(); - public A withInitiatorName(java.lang.String initiatorName); + public A withInitiatorName(String initiatorName); - public java.lang.Boolean hasInitiatorName(); + public Boolean hasInitiatorName(); - public java.lang.String getIqn(); + public String getIqn(); - public A withIqn(java.lang.String iqn); + public A withIqn(String iqn); - public java.lang.Boolean hasIqn(); + public Boolean hasIqn(); - public java.lang.String getIscsiInterface(); + public String getIscsiInterface(); - public A withIscsiInterface(java.lang.String iscsiInterface); + public A withIscsiInterface(String iscsiInterface); - public java.lang.Boolean hasIscsiInterface(); + public Boolean hasIscsiInterface(); public Integer getLun(); - public A withLun(java.lang.Integer lun); + public A withLun(Integer lun); - public java.lang.Boolean hasLun(); + public Boolean hasLun(); - public A addToPortals(java.lang.Integer index, java.lang.String item); + public A addToPortals(Integer index, String item); - public A setToPortals(java.lang.Integer index, java.lang.String item); + public A setToPortals(Integer index, String item); public A addToPortals(java.lang.String... items); - public A addAllToPortals(Collection items); + public A addAllToPortals(Collection items); public A removeFromPortals(java.lang.String... items); - public A removeAllFromPortals(java.util.Collection items); + public A removeAllFromPortals(Collection items); - public List getPortals(); + public List getPortals(); - public java.lang.String getPortal(java.lang.Integer index); + public String getPortal(Integer index); - public java.lang.String getFirstPortal(); + public String getFirstPortal(); - public java.lang.String getLastPortal(); + public String getLastPortal(); - public java.lang.String getMatchingPortal(Predicate predicate); + public String getMatchingPortal(Predicate predicate); - public java.lang.Boolean hasMatchingPortal( - java.util.function.Predicate predicate); + public Boolean hasMatchingPortal(Predicate predicate); - public A withPortals(java.util.List portals); + public A withPortals(List portals); public A withPortals(java.lang.String... portals); - public java.lang.Boolean hasPortals(); + public Boolean hasPortals(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -109,31 +108,29 @@ public java.lang.Boolean hasMatchingPortal( @Deprecated public V1SecretReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef(); + public V1SecretReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef); + public A withSecretRef(V1SecretReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item); - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item); - public java.lang.String getTargetPortal(); + public String getTargetPortal(); - public A withTargetPortal(java.lang.String targetPortal); + public A withTargetPortal(String targetPortal); - public java.lang.Boolean hasTargetPortal(); + public Boolean hasTargetPortal(); public A withChapAuthDiscovery(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java index 9b95b65751..042110141b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluentImpl.java @@ -26,8 +26,7 @@ public class V1ISCSIPersistentVolumeSourceFluentImpl< extends BaseFluent implements V1ISCSIPersistentVolumeSourceFluent { public V1ISCSIPersistentVolumeSourceFluentImpl() {} - public V1ISCSIPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource instance) { + public V1ISCSIPersistentVolumeSourceFluentImpl(V1ISCSIPersistentVolumeSource instance) { this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); this.withChapAuthSession(instance.getChapAuthSession()); @@ -52,119 +51,119 @@ public V1ISCSIPersistentVolumeSourceFluentImpl( } private Boolean chapAuthDiscovery; - private java.lang.Boolean chapAuthSession; + private Boolean chapAuthSession; private String fsType; - private java.lang.String initiatorName; - private java.lang.String iqn; - private java.lang.String iscsiInterface; + private String initiatorName; + private String iqn; + private String iscsiInterface; private Integer lun; - private List portals; - private java.lang.Boolean readOnly; + private List portals; + private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - private java.lang.String targetPortal; + private String targetPortal; - public java.lang.Boolean getChapAuthDiscovery() { + public Boolean getChapAuthDiscovery() { return this.chapAuthDiscovery; } - public A withChapAuthDiscovery(java.lang.Boolean chapAuthDiscovery) { + public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; return (A) this; } - public java.lang.Boolean hasChapAuthDiscovery() { + public Boolean hasChapAuthDiscovery() { return this.chapAuthDiscovery != null; } - public java.lang.Boolean getChapAuthSession() { + public Boolean getChapAuthSession() { return this.chapAuthSession; } - public A withChapAuthSession(java.lang.Boolean chapAuthSession) { + public A withChapAuthSession(Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; return (A) this; } - public java.lang.Boolean hasChapAuthSession() { + public Boolean hasChapAuthSession() { return this.chapAuthSession != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getInitiatorName() { + public String getInitiatorName() { return this.initiatorName; } - public A withInitiatorName(java.lang.String initiatorName) { + public A withInitiatorName(String initiatorName) { this.initiatorName = initiatorName; return (A) this; } - public java.lang.Boolean hasInitiatorName() { + public Boolean hasInitiatorName() { return this.initiatorName != null; } - public java.lang.String getIqn() { + public String getIqn() { return this.iqn; } - public A withIqn(java.lang.String iqn) { + public A withIqn(String iqn) { this.iqn = iqn; return (A) this; } - public java.lang.Boolean hasIqn() { + public Boolean hasIqn() { return this.iqn != null; } - public java.lang.String getIscsiInterface() { + public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(java.lang.String iscsiInterface) { + public A withIscsiInterface(String iscsiInterface) { this.iscsiInterface = iscsiInterface; return (A) this; } - public java.lang.Boolean hasIscsiInterface() { + public Boolean hasIscsiInterface() { return this.iscsiInterface != null; } - public java.lang.Integer getLun() { + public Integer getLun() { return this.lun; } - public A withLun(java.lang.Integer lun) { + public A withLun(Integer lun) { this.lun = lun; return (A) this; } - public java.lang.Boolean hasLun() { + public Boolean hasLun() { return this.lun != null; } - public A addToPortals(java.lang.Integer index, java.lang.String item) { + public A addToPortals(Integer index, String item) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList(); } this.portals.add(index, item); return (A) this; } - public A setToPortals(java.lang.Integer index, java.lang.String item) { + public A setToPortals(Integer index, String item) { if (this.portals == null) { - this.portals = new java.util.ArrayList(); + this.portals = new ArrayList(); } this.portals.set(index, item); return (A) this; @@ -172,26 +171,26 @@ public A setToPortals(java.lang.Integer index, java.lang.String item) { public A addToPortals(java.lang.String... items) { if (this.portals == null) { - this.portals = new java.util.ArrayList(); + this.portals = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.portals.add(item); } return (A) this; } - public A addAllToPortals(Collection items) { + public A addAllToPortals(Collection items) { if (this.portals == null) { - this.portals = new java.util.ArrayList(); + this.portals = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.portals.add(item); } return (A) this; } public A removeFromPortals(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.portals != null) { this.portals.remove(item); } @@ -199,8 +198,8 @@ public A removeFromPortals(java.lang.String... items) { return (A) this; } - public A removeAllFromPortals(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromPortals(Collection items) { + for (String item : items) { if (this.portals != null) { this.portals.remove(item); } @@ -208,24 +207,24 @@ public A removeAllFromPortals(java.util.Collection items) { return (A) this; } - public java.util.List getPortals() { + public List getPortals() { return this.portals; } - public java.lang.String getPortal(java.lang.Integer index) { + public String getPortal(Integer index) { return this.portals.get(index); } - public java.lang.String getFirstPortal() { + public String getFirstPortal() { return this.portals.get(0); } - public java.lang.String getLastPortal() { + public String getLastPortal() { return this.portals.get(portals.size() - 1); } - public java.lang.String getMatchingPortal(Predicate predicate) { - for (java.lang.String item : portals) { + public String getMatchingPortal(Predicate predicate) { + for (String item : portals) { if (predicate.test(item)) { return item; } @@ -233,9 +232,8 @@ public java.lang.String getMatchingPortal(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingPortal( - java.util.function.Predicate predicate) { - for (java.lang.String item : portals) { + public Boolean hasMatchingPortal(Predicate predicate) { + for (String item : portals) { if (predicate.test(item)) { return true; } @@ -243,10 +241,10 @@ public java.lang.Boolean hasMatchingPortal( return false; } - public A withPortals(java.util.List portals) { + public A withPortals(List portals) { if (portals != null) { - this.portals = new java.util.ArrayList(); - for (java.lang.String item : portals) { + this.portals = new ArrayList(); + for (String item : portals) { this.addToPortals(item); } } else { @@ -260,27 +258,27 @@ public A withPortals(java.lang.String... portals) { this.portals.clear(); } if (portals != null) { - for (java.lang.String item : portals) { + for (String item : portals) { this.addToPortals(item); } } return (A) this; } - public java.lang.Boolean hasPortals() { + public Boolean hasPortals() { return portals != null && !portals.isEmpty(); } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -294,20 +292,23 @@ public V1SecretReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef() { + public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef) { + public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(secretRef); + this.secretRef = new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -315,39 +316,35 @@ public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() return new V1ISCSIPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item) { return new V1ISCSIPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1ISCSIPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getTargetPortal() { + public String getTargetPortal() { return this.targetPortal; } - public A withTargetPortal(java.lang.String targetPortal) { + public A withTargetPortal(String targetPortal) { this.targetPortal = targetPortal; return (A) this; } - public java.lang.Boolean hasTargetPortal() { + public Boolean hasTargetPortal() { return this.targetPortal != null; } @@ -395,7 +392,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (chapAuthDiscovery != null) { @@ -460,19 +457,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { + implements V1ISCSIPersistentVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1ISCSIPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 2ca839e0c2..c09461a6af 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 @@ -16,9 +16,7 @@ public class V1ISCSIVolumeSourceBuilder extends V1ISCSIVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource, - io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceBuilder> { + implements VisitableBuilder { public V1ISCSIVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent) { } public V1ISCSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ISCSIVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ISCSIVolumeSource(), validationEnabled); } public V1ISCSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource instance) { + V1ISCSIVolumeSourceFluent fluent, V1ISCSIVolumeSource instance) { this(fluent, instance, false); } public V1ISCSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ISCSIVolumeSourceFluent fluent, + V1ISCSIVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withChapAuthDiscovery(instance.getChapAuthDiscovery()); @@ -73,14 +69,11 @@ public V1ISCSIVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ISCSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource instance) { + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance) { this(instance, false); } - public V1ISCSIVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); @@ -107,10 +100,10 @@ public V1ISCSIVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ISCSIVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSource build() { + public V1ISCSIVolumeSource build() { V1ISCSIVolumeSource buildable = new V1ISCSIVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); buildable.setChapAuthSession(fluent.getChapAuthSession()); 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 8cac3e0f6a..86fbd4d9a0 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 @@ -23,82 +23,81 @@ public interface V1ISCSIVolumeSourceFluent { public Boolean getChapAuthDiscovery(); - public A withChapAuthDiscovery(java.lang.Boolean chapAuthDiscovery); + public A withChapAuthDiscovery(Boolean chapAuthDiscovery); - public java.lang.Boolean hasChapAuthDiscovery(); + public Boolean hasChapAuthDiscovery(); - public java.lang.Boolean getChapAuthSession(); + public Boolean getChapAuthSession(); - public A withChapAuthSession(java.lang.Boolean chapAuthSession); + public A withChapAuthSession(Boolean chapAuthSession); - public java.lang.Boolean hasChapAuthSession(); + public Boolean hasChapAuthSession(); public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); - public java.lang.Boolean hasFsType(); + public Boolean hasFsType(); - public java.lang.String getInitiatorName(); + public String getInitiatorName(); - public A withInitiatorName(java.lang.String initiatorName); + public A withInitiatorName(String initiatorName); - public java.lang.Boolean hasInitiatorName(); + public Boolean hasInitiatorName(); - public java.lang.String getIqn(); + public String getIqn(); - public A withIqn(java.lang.String iqn); + public A withIqn(String iqn); - public java.lang.Boolean hasIqn(); + public Boolean hasIqn(); - public java.lang.String getIscsiInterface(); + public String getIscsiInterface(); - public A withIscsiInterface(java.lang.String iscsiInterface); + public A withIscsiInterface(String iscsiInterface); - public java.lang.Boolean hasIscsiInterface(); + public Boolean hasIscsiInterface(); public Integer getLun(); - public A withLun(java.lang.Integer lun); + public A withLun(Integer lun); - public java.lang.Boolean hasLun(); + public Boolean hasLun(); - public A addToPortals(java.lang.Integer index, java.lang.String item); + public A addToPortals(Integer index, String item); - public A setToPortals(java.lang.Integer index, java.lang.String item); + public A setToPortals(Integer index, String item); public A addToPortals(java.lang.String... items); - public A addAllToPortals(Collection items); + public A addAllToPortals(Collection items); public A removeFromPortals(java.lang.String... items); - public A removeAllFromPortals(java.util.Collection items); + public A removeAllFromPortals(Collection items); - public List getPortals(); + public List getPortals(); - public java.lang.String getPortal(java.lang.Integer index); + public String getPortal(Integer index); - public java.lang.String getFirstPortal(); + public String getFirstPortal(); - public java.lang.String getLastPortal(); + public String getLastPortal(); - public java.lang.String getMatchingPortal(Predicate predicate); + public String getMatchingPortal(Predicate predicate); - public java.lang.Boolean hasMatchingPortal( - java.util.function.Predicate predicate); + public Boolean hasMatchingPortal(Predicate predicate); - public A withPortals(java.util.List portals); + public A withPortals(List portals); public A withPortals(java.lang.String... portals); - public java.lang.Boolean hasPortals(); + public Boolean hasPortals(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -108,31 +107,29 @@ public java.lang.Boolean hasMatchingPortal( @Deprecated public V1LocalObjectReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef(); + public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef); + public A withSecretRef(V1LocalObjectReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1ISCSIVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); - public java.lang.String getTargetPortal(); + public String getTargetPortal(); - public A withTargetPortal(java.lang.String targetPortal); + public A withTargetPortal(String targetPortal); - public java.lang.Boolean hasTargetPortal(); + public Boolean hasTargetPortal(); public A withChapAuthDiscovery(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java index 8b8a42e80b..41fa80be5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluentImpl.java @@ -25,8 +25,7 @@ public class V1ISCSIVolumeSourceFluentImpl implements V1ISCSIVolumeSourceFluent { public V1ISCSIVolumeSourceFluentImpl() {} - public V1ISCSIVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource instance) { + public V1ISCSIVolumeSourceFluentImpl(V1ISCSIVolumeSource instance) { this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); this.withChapAuthSession(instance.getChapAuthSession()); @@ -51,119 +50,119 @@ public V1ISCSIVolumeSourceFluentImpl( } private Boolean chapAuthDiscovery; - private java.lang.Boolean chapAuthSession; + private Boolean chapAuthSession; private String fsType; - private java.lang.String initiatorName; - private java.lang.String iqn; - private java.lang.String iscsiInterface; + private String initiatorName; + private String iqn; + private String iscsiInterface; private Integer lun; - private List portals; - private java.lang.Boolean readOnly; + private List portals; + private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - private java.lang.String targetPortal; + private String targetPortal; - public java.lang.Boolean getChapAuthDiscovery() { + public Boolean getChapAuthDiscovery() { return this.chapAuthDiscovery; } - public A withChapAuthDiscovery(java.lang.Boolean chapAuthDiscovery) { + public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; return (A) this; } - public java.lang.Boolean hasChapAuthDiscovery() { + public Boolean hasChapAuthDiscovery() { return this.chapAuthDiscovery != null; } - public java.lang.Boolean getChapAuthSession() { + public Boolean getChapAuthSession() { return this.chapAuthSession; } - public A withChapAuthSession(java.lang.Boolean chapAuthSession) { + public A withChapAuthSession(Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; return (A) this; } - public java.lang.Boolean hasChapAuthSession() { + public Boolean hasChapAuthSession() { return this.chapAuthSession != null; } - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getInitiatorName() { + public String getInitiatorName() { return this.initiatorName; } - public A withInitiatorName(java.lang.String initiatorName) { + public A withInitiatorName(String initiatorName) { this.initiatorName = initiatorName; return (A) this; } - public java.lang.Boolean hasInitiatorName() { + public Boolean hasInitiatorName() { return this.initiatorName != null; } - public java.lang.String getIqn() { + public String getIqn() { return this.iqn; } - public A withIqn(java.lang.String iqn) { + public A withIqn(String iqn) { this.iqn = iqn; return (A) this; } - public java.lang.Boolean hasIqn() { + public Boolean hasIqn() { return this.iqn != null; } - public java.lang.String getIscsiInterface() { + public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(java.lang.String iscsiInterface) { + public A withIscsiInterface(String iscsiInterface) { this.iscsiInterface = iscsiInterface; return (A) this; } - public java.lang.Boolean hasIscsiInterface() { + public Boolean hasIscsiInterface() { return this.iscsiInterface != null; } - public java.lang.Integer getLun() { + public Integer getLun() { return this.lun; } - public A withLun(java.lang.Integer lun) { + public A withLun(Integer lun) { this.lun = lun; return (A) this; } - public java.lang.Boolean hasLun() { + public Boolean hasLun() { return this.lun != null; } - public A addToPortals(java.lang.Integer index, java.lang.String item) { + public A addToPortals(Integer index, String item) { if (this.portals == null) { - this.portals = new ArrayList(); + this.portals = new ArrayList(); } this.portals.add(index, item); return (A) this; } - public A setToPortals(java.lang.Integer index, java.lang.String item) { + public A setToPortals(Integer index, String item) { if (this.portals == null) { - this.portals = new java.util.ArrayList(); + this.portals = new ArrayList(); } this.portals.set(index, item); return (A) this; @@ -171,26 +170,26 @@ public A setToPortals(java.lang.Integer index, java.lang.String item) { public A addToPortals(java.lang.String... items) { if (this.portals == null) { - this.portals = new java.util.ArrayList(); + this.portals = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.portals.add(item); } return (A) this; } - public A addAllToPortals(Collection items) { + public A addAllToPortals(Collection items) { if (this.portals == null) { - this.portals = new java.util.ArrayList(); + this.portals = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.portals.add(item); } return (A) this; } public A removeFromPortals(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.portals != null) { this.portals.remove(item); } @@ -198,8 +197,8 @@ public A removeFromPortals(java.lang.String... items) { return (A) this; } - public A removeAllFromPortals(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromPortals(Collection items) { + for (String item : items) { if (this.portals != null) { this.portals.remove(item); } @@ -207,24 +206,24 @@ public A removeAllFromPortals(java.util.Collection items) { return (A) this; } - public java.util.List getPortals() { + public List getPortals() { return this.portals; } - public java.lang.String getPortal(java.lang.Integer index) { + public String getPortal(Integer index) { return this.portals.get(index); } - public java.lang.String getFirstPortal() { + public String getFirstPortal() { return this.portals.get(0); } - public java.lang.String getLastPortal() { + public String getLastPortal() { return this.portals.get(portals.size() - 1); } - public java.lang.String getMatchingPortal(Predicate predicate) { - for (java.lang.String item : portals) { + public String getMatchingPortal(Predicate predicate) { + for (String item : portals) { if (predicate.test(item)) { return item; } @@ -232,9 +231,8 @@ public java.lang.String getMatchingPortal(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingPortal( - java.util.function.Predicate predicate) { - for (java.lang.String item : portals) { + public Boolean hasMatchingPortal(Predicate predicate) { + for (String item : portals) { if (predicate.test(item)) { return true; } @@ -242,10 +240,10 @@ public java.lang.Boolean hasMatchingPortal( return false; } - public A withPortals(java.util.List portals) { + public A withPortals(List portals) { if (portals != null) { - this.portals = new java.util.ArrayList(); - for (java.lang.String item : portals) { + this.portals = new ArrayList(); + for (String item : portals) { this.addToPortals(item); } } else { @@ -259,27 +257,27 @@ public A withPortals(java.lang.String... portals) { this.portals.clear(); } if (portals != null) { - for (java.lang.String item : portals) { + for (String item : portals) { this.addToPortals(item); } } return (A) this; } - public java.lang.Boolean hasPortals() { + public Boolean hasPortals() { return portals != null && !portals.isEmpty(); } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -293,21 +291,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -315,39 +315,35 @@ public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1ISCSIVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1ISCSIVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1ISCSIVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1ISCSIVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1ISCSIVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getTargetPortal() { + public String getTargetPortal() { return this.targetPortal; } - public A withTargetPortal(java.lang.String targetPortal) { + public A withTargetPortal(String targetPortal) { this.targetPortal = targetPortal; return (A) this; } - public java.lang.Boolean hasTargetPortal() { + public Boolean hasTargetPortal() { return this.targetPortal != null; } @@ -395,7 +391,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (chapAuthDiscovery != null) { @@ -460,17 +456,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceFluent.SecretRefNested, - Nested { + implements V1ISCSIVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1ISCSIVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 7bbc92dc58..7244b42ae0 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressBackendBuilder extends V1IngressBackendFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressBackend, V1IngressBackendBuilder> { + implements VisitableBuilder { public V1IngressBackendBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1IngressBackendBuilder(V1IngressBackendFluent fluent) { this(fluent, false); } - public V1IngressBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressBackendFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressBackendBuilder(V1IngressBackendFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressBackend(), validationEnabled); } - public V1IngressBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressBackendFluent fluent, - io.kubernetes.client.openapi.models.V1IngressBackend instance) { + public V1IngressBackendBuilder(V1IngressBackendFluent fluent, V1IngressBackend instance) { this(fluent, instance, false); } public V1IngressBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressBackendFluent fluent, - io.kubernetes.client.openapi.models.V1IngressBackend instance, - java.lang.Boolean validationEnabled) { + V1IngressBackendFluent fluent, V1IngressBackend instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withResource(instance.getResource()); @@ -53,13 +46,11 @@ public V1IngressBackendBuilder( this.validationEnabled = validationEnabled; } - public V1IngressBackendBuilder(io.kubernetes.client.openapi.models.V1IngressBackend instance) { + public V1IngressBackendBuilder(V1IngressBackend instance) { this(instance, false); } - public V1IngressBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressBackend instance, - java.lang.Boolean validationEnabled) { + public V1IngressBackendBuilder(V1IngressBackend instance, Boolean validationEnabled) { this.fluent = this; this.withResource(instance.getResource()); @@ -68,10 +59,10 @@ public V1IngressBackendBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressBackendFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressBackendFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressBackend build() { + public V1IngressBackend build() { V1IngressBackend buildable = new V1IngressBackend(); buildable.setResource(fluent.getResource()); buildable.setService(fluent.getService()); 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 1299b4e7e0..0861e9bb7f 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 @@ -26,52 +26,47 @@ public interface V1IngressBackendFluent> ext @Deprecated public V1TypedLocalObjectReference getResource(); - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference buildResource(); + public V1TypedLocalObjectReference buildResource(); - public A withResource(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference resource); + public A withResource(V1TypedLocalObjectReference resource); public Boolean hasResource(); public V1IngressBackendFluent.ResourceNested withNewResource(); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item); + public V1IngressBackendFluent.ResourceNested withNewResourceLike( + V1TypedLocalObjectReference item); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - editResource(); + public V1IngressBackendFluent.ResourceNested editResource(); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - editOrNewResource(); + public V1IngressBackendFluent.ResourceNested editOrNewResource(); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item); + public V1IngressBackendFluent.ResourceNested editOrNewResourceLike( + V1TypedLocalObjectReference item); /** * This method has been deprecated, please use method buildService instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1IngressServiceBackend getService(); - public io.kubernetes.client.openapi.models.V1IngressServiceBackend buildService(); + public V1IngressServiceBackend buildService(); - public A withService(io.kubernetes.client.openapi.models.V1IngressServiceBackend service); + public A withService(V1IngressServiceBackend service); - public java.lang.Boolean hasService(); + public Boolean hasService(); public V1IngressBackendFluent.ServiceNested withNewService(); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested - withNewServiceLike(io.kubernetes.client.openapi.models.V1IngressServiceBackend item); + public V1IngressBackendFluent.ServiceNested withNewServiceLike(V1IngressServiceBackend item); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested editService(); + public V1IngressBackendFluent.ServiceNested editService(); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested - editOrNewService(); + public V1IngressBackendFluent.ServiceNested editOrNewService(); - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested - editOrNewServiceLike(io.kubernetes.client.openapi.models.V1IngressServiceBackend item); + public V1IngressBackendFluent.ServiceNested editOrNewServiceLike(V1IngressServiceBackend item); public interface ResourceNested extends Nested, @@ -82,8 +77,7 @@ public interface ResourceNested } public interface ServiceNested - extends io.kubernetes.client.fluent.Nested, - V1IngressServiceBackendFluent> { + extends Nested, V1IngressServiceBackendFluent> { public N and(); public N endService(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java index 4bf2449baf..17465bf490 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluentImpl.java @@ -21,7 +21,7 @@ public class V1IngressBackendFluentImpl> ext implements V1IngressBackendFluent { public V1IngressBackendFluentImpl() {} - public V1IngressBackendFluentImpl(io.kubernetes.client.openapi.models.V1IngressBackend instance) { + public V1IngressBackendFluentImpl(V1IngressBackend instance) { this.withResource(instance.getResource()); this.withService(instance.getService()); @@ -36,19 +36,22 @@ public V1IngressBackendFluentImpl(io.kubernetes.client.openapi.models.V1IngressB * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference getResource() { + public V1TypedLocalObjectReference getResource() { return this.resource != null ? this.resource.build() : null; } - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference buildResource() { + public V1TypedLocalObjectReference buildResource() { return this.resource != null ? this.resource.build() : null; } - public A withResource(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference resource) { + public A withResource(V1TypedLocalObjectReference resource) { _visitables.get("resource").remove(this.resource); if (resource != null) { this.resource = new V1TypedLocalObjectReferenceBuilder(resource); _visitables.get("resource").add(this.resource); + } else { + this.resource = null; + _visitables.get("resource").remove(this.resource); } return (A) this; } @@ -61,26 +64,22 @@ public V1IngressBackendFluent.ResourceNested withNewResource() { return new V1IngressBackendFluentImpl.ResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item) { + public V1IngressBackendFluent.ResourceNested withNewResourceLike( + V1TypedLocalObjectReference item) { return new V1IngressBackendFluentImpl.ResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - editResource() { + public V1IngressBackendFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - editOrNewResource() { + public V1IngressBackendFluent.ResourceNested editOrNewResource() { return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder().build()); + getResource() != null ? getResource() : new V1TypedLocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item) { + public V1IngressBackendFluent.ResourceNested editOrNewResourceLike( + V1TypedLocalObjectReference item) { return withNewResourceLike(getResource() != null ? getResource() : item); } @@ -89,25 +88,28 @@ public V1IngressBackendFluent.ResourceNested withNewResource() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1IngressServiceBackend getService() { + @Deprecated + public V1IngressServiceBackend getService() { return this.service != null ? this.service.build() : null; } - public io.kubernetes.client.openapi.models.V1IngressServiceBackend buildService() { + public V1IngressServiceBackend buildService() { return this.service != null ? this.service.build() : null; } - public A withService(io.kubernetes.client.openapi.models.V1IngressServiceBackend service) { + public A withService(V1IngressServiceBackend service) { _visitables.get("service").remove(this.service); if (service != null) { this.service = new V1IngressServiceBackendBuilder(service); _visitables.get("service").add(this.service); + } else { + this.service = null; + _visitables.get("service").remove(this.service); } return (A) this; } - public java.lang.Boolean hasService() { + public Boolean hasService() { return this.service != null; } @@ -115,26 +117,21 @@ public V1IngressBackendFluent.ServiceNested withNewService() { return new V1IngressBackendFluentImpl.ServiceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested - withNewServiceLike(io.kubernetes.client.openapi.models.V1IngressServiceBackend item) { - return new io.kubernetes.client.openapi.models.V1IngressBackendFluentImpl.ServiceNestedImpl( - item); + public V1IngressBackendFluent.ServiceNested withNewServiceLike(V1IngressServiceBackend item) { + return new V1IngressBackendFluentImpl.ServiceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested editService() { + public V1IngressBackendFluent.ServiceNested editService() { return withNewServiceLike(getService()); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested - editOrNewService() { + public V1IngressBackendFluent.ServiceNested editOrNewService() { return withNewServiceLike( - getService() != null - ? getService() - : new io.kubernetes.client.openapi.models.V1IngressServiceBackendBuilder().build()); + getService() != null ? getService() : new V1IngressServiceBackendBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested - editOrNewServiceLike(io.kubernetes.client.openapi.models.V1IngressServiceBackend item) { + public V1IngressBackendFluent.ServiceNested editOrNewServiceLike( + V1IngressServiceBackend item) { return withNewServiceLike(getService() != null ? getService() : item); } @@ -168,18 +165,16 @@ public String toString() { class ResourceNestedImpl extends V1TypedLocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressBackendFluent.ResourceNested, - Nested { + implements V1IngressBackendFluent.ResourceNested, Nested { ResourceNestedImpl(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } ResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder(this); + this.builder = new V1TypedLocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder builder; + V1TypedLocalObjectReferenceBuilder builder; public N and() { return (N) V1IngressBackendFluentImpl.this.withResource(builder.build()); @@ -192,17 +187,16 @@ public N endResource() { class ServiceNestedImpl extends V1IngressServiceBackendFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressBackendFluent.ServiceNested, - io.kubernetes.client.fluent.Nested { - ServiceNestedImpl(io.kubernetes.client.openapi.models.V1IngressServiceBackend item) { + implements V1IngressBackendFluent.ServiceNested, Nested { + ServiceNestedImpl(V1IngressServiceBackend item) { this.builder = new V1IngressServiceBackendBuilder(this, item); } ServiceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IngressServiceBackendBuilder(this); + this.builder = new V1IngressServiceBackendBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressServiceBackendBuilder builder; + V1IngressServiceBackendBuilder builder; public N and() { return (N) V1IngressBackendFluentImpl.this.withService(builder.build()); 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 90a73699b3..5ca5584981 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressBuilder extends V1IngressFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1IngressBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1IngressBuilder(Boolean validationEnabled) { this(new V1Ingress(), validationEnabled); } - public V1IngressBuilder(io.kubernetes.client.openapi.models.V1IngressFluent fluent) { + public V1IngressBuilder(V1IngressFluent fluent) { this(fluent, false); } - public V1IngressBuilder( - io.kubernetes.client.openapi.models.V1IngressFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressBuilder(V1IngressFluent fluent, Boolean validationEnabled) { this(fluent, new V1Ingress(), validationEnabled); } - public V1IngressBuilder( - io.kubernetes.client.openapi.models.V1IngressFluent fluent, - io.kubernetes.client.openapi.models.V1Ingress instance) { + public V1IngressBuilder(V1IngressFluent fluent, V1Ingress instance) { this(fluent, instance, false); } public V1IngressBuilder( - io.kubernetes.client.openapi.models.V1IngressFluent fluent, - io.kubernetes.client.openapi.models.V1Ingress instance, - java.lang.Boolean validationEnabled) { + V1IngressFluent fluent, V1Ingress instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +52,11 @@ public V1IngressBuilder( this.validationEnabled = validationEnabled; } - public V1IngressBuilder(io.kubernetes.client.openapi.models.V1Ingress instance) { + public V1IngressBuilder(V1Ingress instance) { this(instance, false); } - public V1IngressBuilder( - io.kubernetes.client.openapi.models.V1Ingress instance, java.lang.Boolean validationEnabled) { + public V1IngressBuilder(V1Ingress instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +71,10 @@ public V1IngressBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Ingress build() { + public V1Ingress build() { V1Ingress buildable = new V1Ingress(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 c6d213b016..10fd55aadb 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressClassBuilder extends V1IngressClassFluentImpl - implements VisitableBuilder< - V1IngressClass, io.kubernetes.client.openapi.models.V1IngressClassBuilder> { + implements VisitableBuilder { public V1IngressClassBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1IngressClassBuilder(V1IngressClassFluent fluent) { this(fluent, false); } - public V1IngressClassBuilder( - io.kubernetes.client.openapi.models.V1IngressClassFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressClassBuilder(V1IngressClassFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressClass(), validationEnabled); } - public V1IngressClassBuilder( - io.kubernetes.client.openapi.models.V1IngressClassFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClass instance) { + public V1IngressClassBuilder(V1IngressClassFluent fluent, V1IngressClass instance) { this(fluent, instance, false); } public V1IngressClassBuilder( - io.kubernetes.client.openapi.models.V1IngressClassFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClass instance, - java.lang.Boolean validationEnabled) { + V1IngressClassFluent fluent, V1IngressClass instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public V1IngressClassBuilder( this.validationEnabled = validationEnabled; } - public V1IngressClassBuilder(io.kubernetes.client.openapi.models.V1IngressClass instance) { + public V1IngressClassBuilder(V1IngressClass instance) { this(instance, false); } - public V1IngressClassBuilder( - io.kubernetes.client.openapi.models.V1IngressClass instance, - java.lang.Boolean validationEnabled) { + public V1IngressClassBuilder(V1IngressClass instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1IngressClassBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressClassFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressClassFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressClass build() { + public V1IngressClass build() { V1IngressClass buildable = new V1IngressClass(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 a81d21d7a3..d04d37ae13 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 @@ -19,15 +19,15 @@ public interface V1IngressClassFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,50 +37,45 @@ public interface V1IngressClassFluent> extends @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1IngressClassFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1IngressClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested editMetadata(); + public V1IngressClassFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested - editOrNewMetadata(); + public V1IngressClassFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1IngressClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1IngressClassSpec getSpec(); - public io.kubernetes.client.openapi.models.V1IngressClassSpec buildSpec(); + public V1IngressClassSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1IngressClassSpec spec); + public A withSpec(V1IngressClassSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1IngressClassFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressClassSpec item); + public V1IngressClassFluent.SpecNested withNewSpecLike(V1IngressClassSpec item); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested editSpec(); + public V1IngressClassFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested editOrNewSpec(); + public V1IngressClassFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressClassSpec item); + public V1IngressClassFluent.SpecNested editOrNewSpecLike(V1IngressClassSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -90,8 +85,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1IngressClassSpecFluent> { + extends Nested, V1IngressClassSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java index 234bec65fe..77e67e25d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluentImpl.java @@ -21,7 +21,7 @@ public class V1IngressClassFluentImpl> extends implements V1IngressClassFluent { public V1IngressClassFluentImpl() {} - public V1IngressClassFluentImpl(io.kubernetes.client.openapi.models.V1IngressClass instance) { + public V1IngressClassFluentImpl(V1IngressClass instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1IngressClassFluentImpl(io.kubernetes.client.openapi.models.V1IngressCla } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1IngressClassSpecBuilder spec; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,25 +96,20 @@ public V1IngressClassFluent.MetadataNested withNewMetadata() { return new V1IngressClassFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1IngressClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1IngressClassFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested editMetadata() { + public V1IngressClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested - editOrNewMetadata() { + public V1IngressClassFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1IngressClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -120,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested withNewSpec() { return new V1IngressClassFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressClassSpec item) { - return new io.kubernetes.client.openapi.models.V1IngressClassFluentImpl.SpecNestedImpl(item); + public V1IngressClassFluent.SpecNested withNewSpecLike(V1IngressClassSpec item) { + return new V1IngressClassFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested editSpec() { + public V1IngressClassFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1IngressClassSpecBuilder().build()); + public V1IngressClassFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1IngressClassSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressClassSpec item) { + public V1IngressClassFluent.SpecNested editOrNewSpecLike(V1IngressClassSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -183,7 +179,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -207,17 +203,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressClassFluent.MetadataNested, - Nested { + implements V1IngressClassFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1IngressClassFluentImpl.this.withMetadata(builder.build()); @@ -229,17 +224,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1IngressClassSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressClassFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1IngressClassSpec item) { + implements V1IngressClassFluent.SpecNested, Nested { + SpecNestedImpl(V1IngressClassSpec item) { this.builder = new V1IngressClassSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IngressClassSpecBuilder(this); + this.builder = new V1IngressClassSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressClassSpecBuilder builder; + V1IngressClassSpecBuilder builder; public N and() { return (N) V1IngressClassFluentImpl.this.withSpec(builder.build()); 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 6d2a8789a2..80b692acba 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 @@ -16,9 +16,7 @@ public class V1IngressClassListBuilder extends V1IngressClassListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressClassList, - io.kubernetes.client.openapi.models.V1IngressClassListBuilder> { + implements VisitableBuilder { public V1IngressClassListBuilder() { this(false); } @@ -31,22 +29,17 @@ public V1IngressClassListBuilder(V1IngressClassListFluent fluent) { this(fluent, false); } - public V1IngressClassListBuilder( - io.kubernetes.client.openapi.models.V1IngressClassListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressClassListBuilder(V1IngressClassListFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressClassList(), validationEnabled); } public V1IngressClassListBuilder( - io.kubernetes.client.openapi.models.V1IngressClassListFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClassList instance) { + V1IngressClassListFluent fluent, V1IngressClassList instance) { this(fluent, instance, false); } public V1IngressClassListBuilder( - io.kubernetes.client.openapi.models.V1IngressClassListFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClassList instance, - java.lang.Boolean validationEnabled) { + V1IngressClassListFluent fluent, V1IngressClassList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +52,11 @@ public V1IngressClassListBuilder( this.validationEnabled = validationEnabled; } - public V1IngressClassListBuilder( - io.kubernetes.client.openapi.models.V1IngressClassList instance) { + public V1IngressClassListBuilder(V1IngressClassList instance) { this(instance, false); } - public V1IngressClassListBuilder( - io.kubernetes.client.openapi.models.V1IngressClassList instance, - java.lang.Boolean validationEnabled) { + public V1IngressClassListBuilder(V1IngressClassList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +69,10 @@ public V1IngressClassListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressClassListFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressClassListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressClassList build() { + public V1IngressClassList build() { V1IngressClassList buildable = new V1IngressClassList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 04e54b8359..e3e5ffdbb5 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 @@ -22,23 +22,21 @@ public interface V1IngressClassListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1IngressClass item); + public A addToItems(Integer index, V1IngressClass item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressClass item); + public A setToItems(Integer index, V1IngressClass item); public A addToItems(io.kubernetes.client.openapi.models.V1IngressClass... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1IngressClass... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,84 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1IngressClass buildItem(java.lang.Integer index); + public V1IngressClass buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1IngressClass buildFirstItem(); + public V1IngressClass buildFirstItem(); - public io.kubernetes.client.openapi.models.V1IngressClass buildLastItem(); + public V1IngressClass buildLastItem(); - public io.kubernetes.client.openapi.models.V1IngressClass buildMatchingItem( - java.util.function.Predicate - predicate); + public V1IngressClass buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1IngressClassListFluent.ItemsNested addNewItem(); - public V1IngressClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1IngressClass item); + public V1IngressClassListFluent.ItemsNested addNewItemLike(V1IngressClass item); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressClass item); + public V1IngressClassListFluent.ItemsNested setNewItemLike(Integer index, V1IngressClass item); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1IngressClassListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested - editFirstItem(); + public V1IngressClassListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested editLastItem(); + public V1IngressClassListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1IngressClassListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1IngressClassListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1IngressClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - editMetadata(); + public V1IngressClassListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - editOrNewMetadata(); + public V1IngressClassListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1IngressClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1IngressClassFluent> { @@ -135,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java index 80f6d293eb..01a3d9c8f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluentImpl.java @@ -26,8 +26,7 @@ public class V1IngressClassListFluentImpl> extends BaseFluent implements V1IngressClassListFluent { public V1IngressClassListFluentImpl() {} - public V1IngressClassListFluentImpl( - io.kubernetes.client.openapi.models.V1IngressClassList instance) { + public V1IngressClassListFluentImpl(V1IngressClassList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1IngressClassListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1IngressClass item) { + public A addToItems(Integer index, V1IngressClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressClassBuilder(item); + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressClass item) { + public A setToItems(Integer index, V1IngressClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressClassBuilder(item); + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1IngressClass item : items) { - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressClassBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1IngressClass item : items) { - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressClassBuilder(item); + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1IngressClass item : items) { - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressClassBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder = each.next(); + V1IngressClassBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1IngressClass buildItem(java.lang.Integer index) { + public V1IngressClass buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1IngressClass buildFirstItem() { + public V1IngressClass buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1IngressClass buildLastItem() { + public V1IngressClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1IngressClass buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressClassBuilder item : items) { + public V1IngressClass buildMatchingItem(Predicate predicate) { + for (V1IngressClassBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1IngressClass buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressClassBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1IngressClassBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1IngressClass item : items) { + this.items = new ArrayList(); + for (V1IngressClass item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1IngressClass item : items) { + for (V1IngressClass item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,40 +221,33 @@ public V1IngressClassListFluent.ItemsNested addNewItem() { return new V1IngressClassListFluentImpl.ItemsNestedImpl(); } - public V1IngressClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1IngressClass item) { + public V1IngressClassListFluent.ItemsNested addNewItemLike(V1IngressClass item) { return new V1IngressClassListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressClass item) { - return new io.kubernetes.client.openapi.models.V1IngressClassListFluentImpl.ItemsNestedImpl( - index, item); + public V1IngressClassListFluent.ItemsNested setNewItemLike( + Integer index, V1IngressClass item) { + return new V1IngressClassListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1IngressClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested - editFirstItem() { + public V1IngressClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested - editLastItem() { + public V1IngressClassListFluent.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 io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1IngressClassListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1IngressClassListFluent.ItemsNested< return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -303,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -329,27 +306,20 @@ public V1IngressClassListFluent.MetadataNested withNewMetadata() { return new V1IngressClassListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1IngressClassListFluentImpl.MetadataNestedImpl( - item); + public V1IngressClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1IngressClassListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - editMetadata() { + public V1IngressClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - editOrNewMetadata() { + public V1IngressClassListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1IngressClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -369,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -394,19 +364,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1IngressClassFluentImpl> implements V1IngressClassListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressClass item) { + ItemsNestedImpl(Integer index, V1IngressClass item) { this.index = index; this.builder = new V1IngressClassBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1IngressClassBuilder(this); + this.builder = new V1IngressClassBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressClassBuilder builder; - java.lang.Integer index; + V1IngressClassBuilder builder; + Integer index; public N and() { return (N) V1IngressClassListFluentImpl.this.setToItems(index, builder.build()); @@ -419,17 +388,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressClassListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1IngressClassListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1IngressClassListFluentImpl.this.withMetadata(builder.build()); 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 bf971db158..90acd2a88f 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 @@ -17,8 +17,7 @@ public class V1IngressClassParametersReferenceBuilder extends V1IngressClassParametersReferenceFluentImpl implements VisitableBuilder< - V1IngressClassParametersReference, - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceBuilder> { + V1IngressClassParametersReference, V1IngressClassParametersReferenceBuilder> { public V1IngressClassParametersReferenceBuilder() { this(false); } @@ -28,26 +27,25 @@ public V1IngressClassParametersReferenceBuilder(Boolean validationEnabled) { } public V1IngressClassParametersReferenceBuilder( - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceFluent fluent) { + V1IngressClassParametersReferenceFluent fluent) { this(fluent, false); } public V1IngressClassParametersReferenceBuilder( - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V1IngressClassParametersReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressClassParametersReference(), validationEnabled); } public V1IngressClassParametersReferenceBuilder( - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClassParametersReference instance) { + V1IngressClassParametersReferenceFluent fluent, + V1IngressClassParametersReference instance) { this(fluent, instance, false); } public V1IngressClassParametersReferenceBuilder( - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClassParametersReference instance, - java.lang.Boolean validationEnabled) { + V1IngressClassParametersReferenceFluent fluent, + V1IngressClassParametersReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); @@ -62,14 +60,12 @@ public V1IngressClassParametersReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1IngressClassParametersReferenceBuilder( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference instance) { + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReference instance) { this(instance, false); } public V1IngressClassParametersReferenceBuilder( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference instance, - java.lang.Boolean validationEnabled) { + V1IngressClassParametersReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroup(instance.getApiGroup()); @@ -84,10 +80,10 @@ public V1IngressClassParametersReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressClassParametersReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressClassParametersReference build() { + public V1IngressClassParametersReference build() { V1IngressClassParametersReference buildable = new V1IngressClassParametersReference(); buildable.setApiGroup(fluent.getApiGroup()); buildable.setKind(fluent.getKind()); 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 05b2333155..2eb8f59fbb 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 @@ -20,31 +20,31 @@ public interface V1IngressClassParametersReferenceFluent< extends Fluent { public String getApiGroup(); - public A withApiGroup(java.lang.String apiGroup); + public A withApiGroup(String apiGroup); public Boolean hasApiGroup(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public java.lang.String getScope(); + public String getScope(); - public A withScope(java.lang.String scope); + public A withScope(String scope); - public java.lang.Boolean hasScope(); + public Boolean hasScope(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java index 7b2460ca39..5a8691e65e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluentImpl.java @@ -21,8 +21,7 @@ public class V1IngressClassParametersReferenceFluentImpl< extends BaseFluent implements V1IngressClassParametersReferenceFluent { public V1IngressClassParametersReferenceFluentImpl() {} - public V1IngressClassParametersReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference instance) { + public V1IngressClassParametersReferenceFluentImpl(V1IngressClassParametersReference instance) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1IngressClassParametersReferenceFluentImpl( } private String apiGroup; - private java.lang.String kind; - private java.lang.String name; - private java.lang.String namespace; - private java.lang.String scope; + private String kind; + private String name; + private String namespace; + private String scope; - public java.lang.String getApiGroup() { + public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(java.lang.String apiGroup) { + public A withApiGroup(String apiGroup) { this.apiGroup = apiGroup; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasApiGroup() { return this.apiGroup != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.String getScope() { + public String getScope() { return this.scope; } - public A withScope(java.lang.String scope) { + public A withScope(String scope) { this.scope = scope; return (A) this; } - public java.lang.Boolean hasScope() { + public Boolean hasScope() { return this.scope != null; } @@ -123,7 +122,7 @@ public int hashCode() { return java.util.Objects.hash(apiGroup, kind, name, namespace, scope, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroup != null) { 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 0635c801eb..7027fda4a7 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 @@ -16,9 +16,7 @@ public class V1IngressClassSpecBuilder extends V1IngressClassSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressClassSpec, - io.kubernetes.client.openapi.models.V1IngressClassSpecBuilder> { + implements VisitableBuilder { public V1IngressClassSpecBuilder() { this(false); } @@ -31,22 +29,17 @@ public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent) { this(fluent, false); } - public V1IngressClassSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressClassSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressClassSpec(), validationEnabled); } public V1IngressClassSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressClassSpecFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClassSpec instance) { + V1IngressClassSpecFluent fluent, V1IngressClassSpec instance) { this(fluent, instance, false); } public V1IngressClassSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressClassSpecFluent fluent, - io.kubernetes.client.openapi.models.V1IngressClassSpec instance, - java.lang.Boolean validationEnabled) { + V1IngressClassSpecFluent fluent, V1IngressClassSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withController(instance.getController()); @@ -55,14 +48,11 @@ public V1IngressClassSpecBuilder( this.validationEnabled = validationEnabled; } - public V1IngressClassSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressClassSpec instance) { + public V1IngressClassSpecBuilder(V1IngressClassSpec instance) { this(instance, false); } - public V1IngressClassSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressClassSpec instance, - java.lang.Boolean validationEnabled) { + public V1IngressClassSpecBuilder(V1IngressClassSpec instance, Boolean validationEnabled) { this.fluent = this; this.withController(instance.getController()); @@ -71,10 +61,10 @@ public V1IngressClassSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressClassSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressClassSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressClassSpec build() { + public V1IngressClassSpec build() { V1IngressClassSpec buildable = new V1IngressClassSpec(); buildable.setController(fluent.getController()); buildable.setParameters(fluent.getParameters()); 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 0d9a0f6232..4a2b1f1180 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 @@ -19,7 +19,7 @@ public interface V1IngressClassSpecFluent> extends Fluent { public String getController(); - public A withController(java.lang.String controller); + public A withController(String controller); public Boolean hasController(); @@ -31,28 +31,23 @@ public interface V1IngressClassSpecFluent> @Deprecated public V1IngressClassParametersReference getParameters(); - public io.kubernetes.client.openapi.models.V1IngressClassParametersReference buildParameters(); + public V1IngressClassParametersReference buildParameters(); - public A withParameters( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference parameters); + public A withParameters(V1IngressClassParametersReference parameters); - public java.lang.Boolean hasParameters(); + public Boolean hasParameters(); public V1IngressClassSpecFluent.ParametersNested withNewParameters(); - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - withNewParametersLike( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference item); + public V1IngressClassSpecFluent.ParametersNested withNewParametersLike( + V1IngressClassParametersReference item); - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - editParameters(); + public V1IngressClassSpecFluent.ParametersNested editParameters(); - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - editOrNewParameters(); + public V1IngressClassSpecFluent.ParametersNested editOrNewParameters(); - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - editOrNewParametersLike( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference item); + public V1IngressClassSpecFluent.ParametersNested editOrNewParametersLike( + V1IngressClassParametersReference item); public interface ParametersNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java index e4d2ba64ae..8914e1ddd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluentImpl.java @@ -21,8 +21,7 @@ public class V1IngressClassSpecFluentImpl> extends BaseFluent implements V1IngressClassSpecFluent { public V1IngressClassSpecFluentImpl() {} - public V1IngressClassSpecFluentImpl( - io.kubernetes.client.openapi.models.V1IngressClassSpec instance) { + public V1IngressClassSpecFluentImpl(V1IngressClassSpec instance) { this.withController(instance.getController()); this.withParameters(instance.getParameters()); @@ -31,11 +30,11 @@ public V1IngressClassSpecFluentImpl( private String controller; private V1IngressClassParametersReferenceBuilder parameters; - public java.lang.String getController() { + public String getController() { return this.controller; } - public A withController(java.lang.String controller) { + public A withController(String controller) { this.controller = controller; return (A) this; } @@ -54,23 +53,23 @@ public V1IngressClassParametersReference getParameters() { return this.parameters != null ? this.parameters.build() : null; } - public io.kubernetes.client.openapi.models.V1IngressClassParametersReference buildParameters() { + public V1IngressClassParametersReference buildParameters() { return this.parameters != null ? this.parameters.build() : null; } - public A withParameters( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference parameters) { + public A withParameters(V1IngressClassParametersReference parameters) { _visitables.get("parameters").remove(this.parameters); if (parameters != null) { - this.parameters = - new io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceBuilder( - parameters); + this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); _visitables.get("parameters").add(this.parameters); + } else { + this.parameters = null; + _visitables.get("parameters").remove(this.parameters); } return (A) this; } - public java.lang.Boolean hasParameters() { + public Boolean hasParameters() { return this.parameters != null; } @@ -78,29 +77,24 @@ public V1IngressClassSpecFluent.ParametersNested withNewParameters() { return new V1IngressClassSpecFluentImpl.ParametersNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - withNewParametersLike( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference item) { + public V1IngressClassSpecFluent.ParametersNested withNewParametersLike( + V1IngressClassParametersReference item) { return new V1IngressClassSpecFluentImpl.ParametersNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - editParameters() { + public V1IngressClassSpecFluent.ParametersNested editParameters() { return withNewParametersLike(getParameters()); } - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - editOrNewParameters() { + public V1IngressClassSpecFluent.ParametersNested editOrNewParameters() { return withNewParametersLike( getParameters() != null ? getParameters() - : new io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceBuilder() - .build()); + : new V1IngressClassParametersReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested - editOrNewParametersLike( - io.kubernetes.client.openapi.models.V1IngressClassParametersReference item) { + public V1IngressClassSpecFluent.ParametersNested editOrNewParametersLike( + V1IngressClassParametersReference item) { return withNewParametersLike(getParameters() != null ? getParameters() : item); } @@ -119,7 +113,7 @@ public int hashCode() { return java.util.Objects.hash(controller, parameters, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (controller != null) { @@ -137,18 +131,16 @@ public java.lang.String toString() { class ParametersNestedImpl extends V1IngressClassParametersReferenceFluentImpl< V1IngressClassSpecFluent.ParametersNested> - implements io.kubernetes.client.openapi.models.V1IngressClassSpecFluent.ParametersNested, - Nested { + implements V1IngressClassSpecFluent.ParametersNested, Nested { ParametersNestedImpl(V1IngressClassParametersReference item) { this.builder = new V1IngressClassParametersReferenceBuilder(this, item); } ParametersNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceBuilder(this); + this.builder = new V1IngressClassParametersReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressClassParametersReferenceBuilder builder; + V1IngressClassParametersReferenceBuilder builder; public N and() { return (N) V1IngressClassSpecFluentImpl.this.withParameters(builder.build()); 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 6fe25f7793..50bb9d6d91 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 @@ -19,15 +19,15 @@ public interface V1IngressFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1IngressFluent> extends Fluent @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1IngressFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1IngressFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested editMetadata(); + public V1IngressFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested editOrNewMetadata(); + public V1IngressFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1IngressFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1IngressSpec getSpec(); - public io.kubernetes.client.openapi.models.V1IngressSpec buildSpec(); + public V1IngressSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1IngressSpec spec); + public A withSpec(V1IngressSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1IngressFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressSpec item); + public V1IngressFluent.SpecNested withNewSpecLike(V1IngressSpec item); - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editSpec(); + public V1IngressFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editOrNewSpec(); + public V1IngressFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressSpec item); + public V1IngressFluent.SpecNested editOrNewSpecLike(V1IngressSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1IngressStatus getStatus(); - public io.kubernetes.client.openapi.models.V1IngressStatus buildStatus(); + public V1IngressStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1IngressStatus status); + public A withStatus(V1IngressStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1IngressFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1IngressStatus item); + public V1IngressFluent.StatusNested withNewStatusLike(V1IngressStatus item); - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested editStatus(); + public V1IngressFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested editOrNewStatus(); + public V1IngressFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1IngressStatus item); + public V1IngressFluent.StatusNested editOrNewStatusLike(V1IngressStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -115,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1IngressSpecFluent> { + extends Nested, V1IngressSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1IngressStatusFluent> { + extends Nested, V1IngressStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java index a13be636db..b931c9f061 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluentImpl.java @@ -21,7 +21,7 @@ public class V1IngressFluentImpl> extends BaseFluen implements V1IngressFluent { public V1IngressFluentImpl() {} - public V1IngressFluentImpl(io.kubernetes.client.openapi.models.V1Ingress instance) { + public V1IngressFluentImpl(V1Ingress instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1IngressFluentImpl(io.kubernetes.client.openapi.models.V1Ingress instanc } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1IngressSpecBuilder spec; private V1IngressStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1IngressFluent.MetadataNested withNewMetadata() { return new V1IngressFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1IngressFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1IngressFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested editMetadata() { + public V1IngressFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested editOrNewMetadata() { + public V1IngressFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1IngressFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1IngressSpec getSpec() { + @Deprecated + public V1IngressSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1IngressSpec buildSpec() { + public V1IngressSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1IngressSpec spec) { + public A withSpec(V1IngressSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1IngressSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1IngressFluent.SpecNested withNewSpec() { return new V1IngressFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressSpec item) { - return new io.kubernetes.client.openapi.models.V1IngressFluentImpl.SpecNestedImpl(item); + public V1IngressFluent.SpecNested withNewSpecLike(V1IngressSpec item) { + return new V1IngressFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editSpec() { + public V1IngressFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1IngressSpecBuilder().build()); + public V1IngressFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1IngressSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1IngressSpec item) { + public V1IngressFluent.SpecNested editOrNewSpecLike(V1IngressSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested editOrN * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1IngressStatus getStatus() { + @Deprecated + public V1IngressStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1IngressStatus buildStatus() { + public V1IngressStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1IngressStatus status) { + public A withStatus(V1IngressStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1IngressStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,20 @@ public V1IngressFluent.StatusNested withNewStatus() { return new V1IngressFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1IngressStatus item) { - return new io.kubernetes.client.openapi.models.V1IngressFluentImpl.StatusNestedImpl(item); + public V1IngressFluent.StatusNested withNewStatusLike(V1IngressStatus item) { + return new V1IngressFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested editStatus() { + public V1IngressFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested editOrNewStatus() { + public V1IngressFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1IngressStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1IngressStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1IngressStatus item) { + public V1IngressFluent.StatusNested editOrNewStatusLike(V1IngressStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressFluent.MetadataNested, Nested { + implements V1IngressFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1IngressFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1IngressSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1IngressSpec item) { + implements V1IngressFluent.SpecNested, Nested { + SpecNestedImpl(V1IngressSpec item) { this.builder = new V1IngressSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IngressSpecBuilder(this); + this.builder = new V1IngressSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressSpecBuilder builder; + V1IngressSpecBuilder builder; public N and() { return (N) V1IngressFluentImpl.this.withSpec(builder.build()); @@ -309,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1IngressStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1IngressStatus item) { + implements V1IngressFluent.StatusNested, Nested { + StatusNestedImpl(V1IngressStatus item) { this.builder = new V1IngressStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IngressStatusBuilder(this); + this.builder = new V1IngressStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressStatusBuilder builder; + V1IngressStatusBuilder builder; public N and() { return (N) V1IngressFluentImpl.this.withStatus(builder.build()); 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 dc7e27c5a6..c8c203de65 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressListBuilder extends V1IngressListFluentImpl - implements VisitableBuilder< - V1IngressList, io.kubernetes.client.openapi.models.V1IngressListBuilder> { + implements VisitableBuilder { public V1IngressListBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1IngressListBuilder(Boolean validationEnabled) { this(new V1IngressList(), validationEnabled); } - public V1IngressListBuilder(io.kubernetes.client.openapi.models.V1IngressListFluent fluent) { + public V1IngressListBuilder(V1IngressListFluent fluent) { this(fluent, false); } - public V1IngressListBuilder( - io.kubernetes.client.openapi.models.V1IngressListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressListBuilder(V1IngressListFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressList(), validationEnabled); } - public V1IngressListBuilder( - io.kubernetes.client.openapi.models.V1IngressListFluent fluent, - io.kubernetes.client.openapi.models.V1IngressList instance) { + public V1IngressListBuilder(V1IngressListFluent fluent, V1IngressList instance) { this(fluent, instance, false); } public V1IngressListBuilder( - io.kubernetes.client.openapi.models.V1IngressListFluent fluent, - io.kubernetes.client.openapi.models.V1IngressList instance, - java.lang.Boolean validationEnabled) { + V1IngressListFluent fluent, V1IngressList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public V1IngressListBuilder( this.validationEnabled = validationEnabled; } - public V1IngressListBuilder(io.kubernetes.client.openapi.models.V1IngressList instance) { + public V1IngressListBuilder(V1IngressList instance) { this(instance, false); } - public V1IngressListBuilder( - io.kubernetes.client.openapi.models.V1IngressList instance, - java.lang.Boolean validationEnabled) { + public V1IngressListBuilder(V1IngressList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1IngressListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressListFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressList build() { + public V1IngressList build() { V1IngressList buildable = new V1IngressList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 cbf8d942fd..34a579024b 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 @@ -22,22 +22,21 @@ public interface V1IngressListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Ingress item); + public A addToItems(Integer index, V1Ingress item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Ingress item); + public A setToItems(Integer index, V1Ingress item); public A addToItems(io.kubernetes.client.openapi.models.V1Ingress... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,78 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Ingress buildItem(java.lang.Integer index); + public V1Ingress buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Ingress buildFirstItem(); + public V1Ingress buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Ingress buildLastItem(); + public V1Ingress buildLastItem(); - public io.kubernetes.client.openapi.models.V1Ingress buildMatchingItem( - java.util.function.Predicate predicate); + public V1Ingress buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1IngressListFluent.ItemsNested addNewItem(); - public V1IngressListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Ingress item); + public V1IngressListFluent.ItemsNested addNewItemLike(V1Ingress item); - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Ingress item); + public V1IngressListFluent.ItemsNested setNewItemLike(Integer index, V1Ingress item); - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1IngressListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editFirstItem(); + public V1IngressListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editLastItem(); + public V1IngressListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1IngressListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1IngressListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1IngressListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested editMetadata(); + public V1IngressListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested - editOrNewMetadata(); + public V1IngressListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1IngressListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1IngressFluent> { @@ -128,8 +118,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java index 7617f48884..d0d5aa736b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluentImpl.java @@ -38,14 +38,14 @@ public V1IngressListFluentImpl(V1IngressList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Ingress item) { + public A addToItems(Integer index, V1Ingress item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressBuilder(item); + V1IngressBuilder builder = new V1IngressBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Ingress item) { + public A setToItems(Integer index, V1Ingress item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressBuilder(item); + V1IngressBuilder builder = new V1IngressBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Ingress... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Ingress item : items) { - io.kubernetes.client.openapi.models.V1IngressBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Ingress item : items) { - io.kubernetes.client.openapi.models.V1IngressBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressBuilder(item); + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection } public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - for (io.kubernetes.client.openapi.models.V1Ingress item : items) { - io.kubernetes.client.openapi.models.V1IngressBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressBuilder(item); + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items) return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Ingress item : items) { - io.kubernetes.client.openapi.models.V1IngressBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1IngressBuilder builder = each.next(); + V1IngressBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Ingress buildItem(java.lang.Integer index) { + public V1Ingress buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Ingress buildFirstItem() { + public V1Ingress buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Ingress buildLastItem() { + public V1Ingress buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Ingress buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressBuilder item : items) { + public V1Ingress buildMatchingItem(Predicate predicate) { + for (V1IngressBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -187,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1Ingress buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1IngressBuilder item : items) { if (predicate.test(item)) { return true; } @@ -198,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Ingress item : items) { + this.items = new ArrayList(); + for (V1Ingress item : items) { this.addToItems(item); } } else { @@ -218,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Ingress item : items) { + for (V1Ingress item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -233,37 +221,32 @@ public V1IngressListFluent.ItemsNested addNewItem() { return new V1IngressListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Ingress item) { + public V1IngressListFluent.ItemsNested addNewItemLike(V1Ingress item) { return new V1IngressListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Ingress item) { - return new io.kubernetes.client.openapi.models.V1IngressListFluentImpl.ItemsNestedImpl( - index, item); + public V1IngressListFluent.ItemsNested setNewItemLike(Integer index, V1Ingress item) { + return new V1IngressListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1IngressListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editFirstItem() { + public V1IngressListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editLastItem() { + public V1IngressListFluent.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 io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1IngressListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -275,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested ed return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -293,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -319,25 +305,20 @@ public V1IngressListFluent.MetadataNested withNewMetadata() { return new V1IngressListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1IngressListFluentImpl.MetadataNestedImpl(item); + public V1IngressListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1IngressListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested editMetadata() { + public V1IngressListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested - editOrNewMetadata() { + public V1IngressListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1IngressListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -357,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -381,19 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1IngressFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Ingress item) { + implements V1IngressListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Ingress item) { this.index = index; this.builder = new V1IngressBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1IngressBuilder(this); + this.builder = new V1IngressBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressBuilder builder; - java.lang.Integer index; + V1IngressBuilder builder; + Integer index; public N and() { return (N) V1IngressListFluentImpl.this.setToItems(index, builder.build()); @@ -405,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1IngressListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1IngressListFluentImpl.this.withMetadata(builder.build()); 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 09b203363c..c54b0665fe 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressRuleBuilder extends V1IngressRuleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressRule, - io.kubernetes.client.openapi.models.V1IngressRuleBuilder> { + implements VisitableBuilder { public V1IngressRuleBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1IngressRuleBuilder(V1IngressRuleFluent fluent) { this(fluent, false); } - public V1IngressRuleBuilder( - io.kubernetes.client.openapi.models.V1IngressRuleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressRuleBuilder(V1IngressRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressRule(), validationEnabled); } - public V1IngressRuleBuilder( - io.kubernetes.client.openapi.models.V1IngressRuleFluent fluent, - io.kubernetes.client.openapi.models.V1IngressRule instance) { + public V1IngressRuleBuilder(V1IngressRuleFluent fluent, V1IngressRule instance) { this(fluent, instance, false); } public V1IngressRuleBuilder( - io.kubernetes.client.openapi.models.V1IngressRuleFluent fluent, - io.kubernetes.client.openapi.models.V1IngressRule instance, - java.lang.Boolean validationEnabled) { + V1IngressRuleFluent fluent, V1IngressRule instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withHost(instance.getHost()); @@ -54,13 +46,11 @@ public V1IngressRuleBuilder( this.validationEnabled = validationEnabled; } - public V1IngressRuleBuilder(io.kubernetes.client.openapi.models.V1IngressRule instance) { + public V1IngressRuleBuilder(V1IngressRule instance) { this(instance, false); } - public V1IngressRuleBuilder( - io.kubernetes.client.openapi.models.V1IngressRule instance, - java.lang.Boolean validationEnabled) { + public V1IngressRuleBuilder(V1IngressRule instance, Boolean validationEnabled) { this.fluent = this; this.withHost(instance.getHost()); @@ -69,10 +59,10 @@ public V1IngressRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressRule build() { + public V1IngressRule build() { V1IngressRule buildable = new V1IngressRule(); buildable.setHost(fluent.getHost()); buildable.setHttp(fluent.getHttp()); 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 3e197262cf..16bb7bb661 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 @@ -19,7 +19,7 @@ public interface V1IngressRuleFluent> extends Fluent { public String getHost(); - public A withHost(java.lang.String host); + public A withHost(String host); public Boolean hasHost(); @@ -31,23 +31,21 @@ public interface V1IngressRuleFluent> extends F @Deprecated public V1HTTPIngressRuleValue getHttp(); - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue buildHttp(); + public V1HTTPIngressRuleValue buildHttp(); - public A withHttp(io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue http); + public A withHttp(V1HTTPIngressRuleValue http); - public java.lang.Boolean hasHttp(); + public Boolean hasHttp(); public V1IngressRuleFluent.HttpNested withNewHttp(); - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested withNewHttpLike( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue item); + public V1IngressRuleFluent.HttpNested withNewHttpLike(V1HTTPIngressRuleValue item); - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested editHttp(); + public V1IngressRuleFluent.HttpNested editHttp(); - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested editOrNewHttp(); + public V1IngressRuleFluent.HttpNested editOrNewHttp(); - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested editOrNewHttpLike( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue item); + public V1IngressRuleFluent.HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item); public interface HttpNested extends Nested, V1HTTPIngressRuleValueFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java index 9d4537a778..4c12ca7727 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluentImpl.java @@ -21,7 +21,7 @@ public class V1IngressRuleFluentImpl> extends B implements V1IngressRuleFluent { public V1IngressRuleFluentImpl() {} - public V1IngressRuleFluentImpl(io.kubernetes.client.openapi.models.V1IngressRule instance) { + public V1IngressRuleFluentImpl(V1IngressRule instance) { this.withHost(instance.getHost()); this.withHttp(instance.getHttp()); @@ -30,11 +30,11 @@ public V1IngressRuleFluentImpl(io.kubernetes.client.openapi.models.V1IngressRule private String host; private V1HTTPIngressRuleValueBuilder http; - public java.lang.String getHost() { + public String getHost() { return this.host; } - public A withHost(java.lang.String host) { + public A withHost(String host) { this.host = host; return (A) this; } @@ -49,24 +49,27 @@ public Boolean hasHost() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue getHttp() { + public V1HTTPIngressRuleValue getHttp() { return this.http != null ? this.http.build() : null; } - public io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue buildHttp() { + public V1HTTPIngressRuleValue buildHttp() { return this.http != null ? this.http.build() : null; } - public A withHttp(io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue http) { + public A withHttp(V1HTTPIngressRuleValue http) { _visitables.get("http").remove(this.http); if (http != null) { this.http = new V1HTTPIngressRuleValueBuilder(http); _visitables.get("http").add(this.http); + } else { + this.http = null; + _visitables.get("http").remove(this.http); } return (A) this; } - public java.lang.Boolean hasHttp() { + public Boolean hasHttp() { return this.http != null; } @@ -74,24 +77,20 @@ public V1IngressRuleFluent.HttpNested withNewHttp() { return new V1IngressRuleFluentImpl.HttpNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested withNewHttpLike( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue item) { + public V1IngressRuleFluent.HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { return new V1IngressRuleFluentImpl.HttpNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested editHttp() { + public V1IngressRuleFluent.HttpNested editHttp() { return withNewHttpLike(getHttp()); } - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested editOrNewHttp() { + public V1IngressRuleFluent.HttpNested editOrNewHttp() { return withNewHttpLike( - getHttp() != null - ? getHttp() - : new io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueBuilder().build()); + getHttp() != null ? getHttp() : new V1HTTPIngressRuleValueBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested editOrNewHttpLike( - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue item) { + public V1IngressRuleFluent.HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item) { return withNewHttpLike(getHttp() != null ? getHttp() : item); } @@ -108,7 +107,7 @@ public int hashCode() { return java.util.Objects.hash(host, http, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (host != null) { @@ -125,16 +124,16 @@ public java.lang.String toString() { class HttpNestedImpl extends V1HTTPIngressRuleValueFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressRuleFluent.HttpNested, Nested { - HttpNestedImpl(io.kubernetes.client.openapi.models.V1HTTPIngressRuleValue item) { + implements V1IngressRuleFluent.HttpNested, Nested { + HttpNestedImpl(V1HTTPIngressRuleValue item) { this.builder = new V1HTTPIngressRuleValueBuilder(this, item); } HttpNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueBuilder(this); + this.builder = new V1HTTPIngressRuleValueBuilder(this); } - io.kubernetes.client.openapi.models.V1HTTPIngressRuleValueBuilder builder; + V1HTTPIngressRuleValueBuilder builder; public N and() { return (N) V1IngressRuleFluentImpl.this.withHttp(builder.build()); 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 f40dd0c489..ea81fe28ed 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 @@ -16,9 +16,7 @@ public class V1IngressServiceBackendBuilder extends V1IngressServiceBackendFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressServiceBackend, - io.kubernetes.client.openapi.models.V1IngressServiceBackendBuilder> { + implements VisitableBuilder { public V1IngressServiceBackendBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent) { } public V1IngressServiceBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent fluent, - java.lang.Boolean validationEnabled) { + V1IngressServiceBackendFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressServiceBackend(), validationEnabled); } public V1IngressServiceBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent fluent, - io.kubernetes.client.openapi.models.V1IngressServiceBackend instance) { + V1IngressServiceBackendFluent fluent, V1IngressServiceBackend instance) { this(fluent, instance, false); } public V1IngressServiceBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent fluent, - io.kubernetes.client.openapi.models.V1IngressServiceBackend instance, - java.lang.Boolean validationEnabled) { + V1IngressServiceBackendFluent fluent, + V1IngressServiceBackend instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,12 @@ public V1IngressServiceBackendBuilder( this.validationEnabled = validationEnabled; } - public V1IngressServiceBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressServiceBackend instance) { + public V1IngressServiceBackendBuilder(V1IngressServiceBackend instance) { this(instance, false); } public V1IngressServiceBackendBuilder( - io.kubernetes.client.openapi.models.V1IngressServiceBackend instance, - java.lang.Boolean validationEnabled) { + V1IngressServiceBackend instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +65,10 @@ public V1IngressServiceBackendBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressServiceBackendFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressServiceBackend build() { + public V1IngressServiceBackend build() { V1IngressServiceBackend buildable = new V1IngressServiceBackend(); buildable.setName(fluent.getName()); buildable.setPort(fluent.getPort()); 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 bf932f69f7..32a8cb9735 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java @@ -20,7 +20,7 @@ public interface V1IngressServiceBackendFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); @@ -32,24 +32,21 @@ public interface V1IngressServiceBackendFluent withNewPort(); - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - withNewPortLike(io.kubernetes.client.openapi.models.V1ServiceBackendPort item); + public V1IngressServiceBackendFluent.PortNested withNewPortLike(V1ServiceBackendPort item); - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested editPort(); + public V1IngressServiceBackendFluent.PortNested editPort(); - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - editOrNewPort(); + public V1IngressServiceBackendFluent.PortNested editOrNewPort(); - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - editOrNewPortLike(io.kubernetes.client.openapi.models.V1ServiceBackendPort item); + public V1IngressServiceBackendFluent.PortNested editOrNewPortLike(V1ServiceBackendPort item); public interface PortNested extends Nested, V1ServiceBackendPortFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java index 934e461edc..82b7d110cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluentImpl.java @@ -21,8 +21,7 @@ public class V1IngressServiceBackendFluentImpl implements V1IngressServiceBackendFluent { public V1IngressServiceBackendFluentImpl() {} - public V1IngressServiceBackendFluentImpl( - io.kubernetes.client.openapi.models.V1IngressServiceBackend instance) { + public V1IngressServiceBackendFluentImpl(V1IngressServiceBackend instance) { this.withName(instance.getName()); this.withPort(instance.getPort()); @@ -31,11 +30,11 @@ public V1IngressServiceBackendFluentImpl( private String name; private V1ServiceBackendPortBuilder port; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -50,24 +49,27 @@ public Boolean hasName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ServiceBackendPort getPort() { + public V1ServiceBackendPort getPort() { return this.port != null ? this.port.build() : null; } - public io.kubernetes.client.openapi.models.V1ServiceBackendPort buildPort() { + public V1ServiceBackendPort buildPort() { return this.port != null ? this.port.build() : null; } - public A withPort(io.kubernetes.client.openapi.models.V1ServiceBackendPort port) { + public A withPort(V1ServiceBackendPort port) { _visitables.get("port").remove(this.port); if (port != null) { this.port = new V1ServiceBackendPortBuilder(port); _visitables.get("port").add(this.port); + } else { + this.port = null; + _visitables.get("port").remove(this.port); } return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -75,26 +77,20 @@ public V1IngressServiceBackendFluent.PortNested withNewPort() { return new V1IngressServiceBackendFluentImpl.PortNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - withNewPortLike(io.kubernetes.client.openapi.models.V1ServiceBackendPort item) { + public V1IngressServiceBackendFluent.PortNested withNewPortLike(V1ServiceBackendPort item) { return new V1IngressServiceBackendFluentImpl.PortNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - editPort() { + public V1IngressServiceBackendFluent.PortNested editPort() { return withNewPortLike(getPort()); } - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - editOrNewPort() { + public V1IngressServiceBackendFluent.PortNested editOrNewPort() { return withNewPortLike( - getPort() != null - ? getPort() - : new io.kubernetes.client.openapi.models.V1ServiceBackendPortBuilder().build()); + getPort() != null ? getPort() : new V1ServiceBackendPortBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested - editOrNewPortLike(io.kubernetes.client.openapi.models.V1ServiceBackendPort item) { + public V1IngressServiceBackendFluent.PortNested editOrNewPortLike(V1ServiceBackendPort item) { return withNewPortLike(getPort() != null ? getPort() : item); } @@ -111,7 +107,7 @@ public int hashCode() { return java.util.Objects.hash(name, port, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { @@ -128,17 +124,16 @@ public java.lang.String toString() { class PortNestedImpl extends V1ServiceBackendPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressServiceBackendFluent.PortNested, - Nested { - PortNestedImpl(io.kubernetes.client.openapi.models.V1ServiceBackendPort item) { + implements V1IngressServiceBackendFluent.PortNested, Nested { + PortNestedImpl(V1ServiceBackendPort item) { this.builder = new V1ServiceBackendPortBuilder(this, item); } PortNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ServiceBackendPortBuilder(this); + this.builder = new V1ServiceBackendPortBuilder(this); } - io.kubernetes.client.openapi.models.V1ServiceBackendPortBuilder builder; + V1ServiceBackendPortBuilder builder; public N and() { return (N) V1IngressServiceBackendFluentImpl.this.withPort(builder.build()); 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 943cf2c642..b01c96916f 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressSpecBuilder extends V1IngressSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressSpec, - io.kubernetes.client.openapi.models.V1IngressSpecBuilder> { + implements VisitableBuilder { public V1IngressSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1IngressSpecBuilder(V1IngressSpecFluent fluent) { this(fluent, false); } - public V1IngressSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressSpecBuilder(V1IngressSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressSpec(), validationEnabled); } - public V1IngressSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressSpecFluent fluent, - io.kubernetes.client.openapi.models.V1IngressSpec instance) { + public V1IngressSpecBuilder(V1IngressSpecFluent fluent, V1IngressSpec instance) { this(fluent, instance, false); } public V1IngressSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressSpecFluent fluent, - io.kubernetes.client.openapi.models.V1IngressSpec instance, - java.lang.Boolean validationEnabled) { + V1IngressSpecFluent fluent, V1IngressSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDefaultBackend(instance.getDefaultBackend()); @@ -58,13 +50,11 @@ public V1IngressSpecBuilder( this.validationEnabled = validationEnabled; } - public V1IngressSpecBuilder(io.kubernetes.client.openapi.models.V1IngressSpec instance) { + public V1IngressSpecBuilder(V1IngressSpec instance) { this(instance, false); } - public V1IngressSpecBuilder( - io.kubernetes.client.openapi.models.V1IngressSpec instance, - java.lang.Boolean validationEnabled) { + public V1IngressSpecBuilder(V1IngressSpec instance, Boolean validationEnabled) { this.fluent = this; this.withDefaultBackend(instance.getDefaultBackend()); @@ -77,10 +67,10 @@ public V1IngressSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressSpec build() { + public V1IngressSpec build() { V1IngressSpec buildable = new V1IngressSpec(); buildable.setDefaultBackend(fluent.getDefaultBackend()); buildable.setIngressClassName(fluent.getIngressClassName()); 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 6ab0e57ad0..c0598be1e2 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 @@ -29,45 +29,41 @@ public interface V1IngressSpecFluent> extends F @Deprecated public V1IngressBackend getDefaultBackend(); - public io.kubernetes.client.openapi.models.V1IngressBackend buildDefaultBackend(); + public V1IngressBackend buildDefaultBackend(); - public A withDefaultBackend(io.kubernetes.client.openapi.models.V1IngressBackend defaultBackend); + public A withDefaultBackend(V1IngressBackend defaultBackend); public Boolean hasDefaultBackend(); public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackend(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - withNewDefaultBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item); + public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackendLike( + V1IngressBackend item); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - editDefaultBackend(); + public V1IngressSpecFluent.DefaultBackendNested editDefaultBackend(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - editOrNewDefaultBackend(); + public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackend(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - editOrNewDefaultBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item); + public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackendLike( + V1IngressBackend item); public String getIngressClassName(); - public A withIngressClassName(java.lang.String ingressClassName); + public A withIngressClassName(String ingressClassName); - public java.lang.Boolean hasIngressClassName(); + public Boolean hasIngressClassName(); public A addToRules(Integer index, V1IngressRule item); - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressRule item); + public A setToRules(Integer index, V1IngressRule item); public A addToRules(io.kubernetes.client.openapi.models.V1IngressRule... items); - public A addAllToRules(Collection items); + public A addAllToRules(Collection items); public A removeFromRules(io.kubernetes.client.openapi.models.V1IngressRule... items); - public A removeAllFromRules( - java.util.Collection items); + public A removeAllFromRules(Collection items); public A removeMatchingFromRules(Predicate predicate); @@ -76,114 +72,95 @@ public A removeAllFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules(); + @Deprecated + public List getRules(); - public java.util.List buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1IngressRule buildRule(java.lang.Integer index); + public V1IngressRule buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1IngressRule buildFirstRule(); + public V1IngressRule buildFirstRule(); - public io.kubernetes.client.openapi.models.V1IngressRule buildLastRule(); + public V1IngressRule buildLastRule(); - public io.kubernetes.client.openapi.models.V1IngressRule buildMatchingRule( - java.util.function.Predicate - predicate); + public V1IngressRule buildMatchingRule(Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules(java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1IngressSpecFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1IngressRule item); + public V1IngressSpecFluent.RulesNested addNewRuleLike(V1IngressRule item); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressRule item); + public V1IngressSpecFluent.RulesNested setNewRuleLike(Integer index, V1IngressRule item); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editRule( - java.lang.Integer index); + public V1IngressSpecFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editFirstRule(); + public V1IngressSpecFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editLastRule(); + public V1IngressSpecFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editMatchingRule( - java.util.function.Predicate - predicate); + public V1IngressSpecFluent.RulesNested editMatchingRule( + Predicate predicate); - public A addToTls(java.lang.Integer index, V1IngressTLS item); + public A addToTls(Integer index, V1IngressTLS item); - public A setToTls(java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressTLS item); + public A setToTls(Integer index, V1IngressTLS item); public A addToTls(io.kubernetes.client.openapi.models.V1IngressTLS... items); - public A addAllToTls( - java.util.Collection items); + public A addAllToTls(Collection items); public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items); - public A removeAllFromTls( - java.util.Collection items); + public A removeAllFromTls(Collection items); - public A removeMatchingFromTls(java.util.function.Predicate predicate); + public A removeMatchingFromTls(Predicate predicate); /** * This method has been deprecated, please use method buildTls instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTls(); + @Deprecated + public List getTls(); - public java.util.List buildTls(); + public List buildTls(); - public io.kubernetes.client.openapi.models.V1IngressTLS buildTl(java.lang.Integer index); + public V1IngressTLS buildTl(Integer index); - public io.kubernetes.client.openapi.models.V1IngressTLS buildFirstTl(); + public V1IngressTLS buildFirstTl(); - public io.kubernetes.client.openapi.models.V1IngressTLS buildLastTl(); + public V1IngressTLS buildLastTl(); - public io.kubernetes.client.openapi.models.V1IngressTLS buildMatchingTl( - java.util.function.Predicate - predicate); + public V1IngressTLS buildMatchingTl(Predicate predicate); - public java.lang.Boolean hasMatchingTl( - java.util.function.Predicate - predicate); + public Boolean hasMatchingTl(Predicate predicate); - public A withTls(java.util.List tls); + public A withTls(List tls); public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls); - public java.lang.Boolean hasTls(); + public Boolean hasTls(); public V1IngressSpecFluent.TlsNested addNewTl(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested addNewTlLike( - io.kubernetes.client.openapi.models.V1IngressTLS item); + public V1IngressSpecFluent.TlsNested addNewTlLike(V1IngressTLS item); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested setNewTlLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressTLS item); + public V1IngressSpecFluent.TlsNested setNewTlLike(Integer index, V1IngressTLS item); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editTl( - java.lang.Integer index); + public V1IngressSpecFluent.TlsNested editTl(Integer index); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editFirstTl(); + public V1IngressSpecFluent.TlsNested editFirstTl(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editLastTl(); + public V1IngressSpecFluent.TlsNested editLastTl(); - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editMatchingTl( - java.util.function.Predicate - predicate); + public V1IngressSpecFluent.TlsNested editMatchingTl(Predicate predicate); public interface DefaultBackendNested extends Nested, V1IngressBackendFluent> { @@ -193,16 +170,14 @@ public interface DefaultBackendNested } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, - V1IngressRuleFluent> { + extends Nested, V1IngressRuleFluent> { public N and(); public N endRule(); } public interface TlsNested - extends io.kubernetes.client.fluent.Nested, - V1IngressTLSFluent> { + extends Nested, V1IngressTLSFluent> { public N and(); public N endTl(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java index 0b69731a50..799c40d05d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluentImpl.java @@ -26,7 +26,7 @@ public class V1IngressSpecFluentImpl> extends B implements V1IngressSpecFluent { public V1IngressSpecFluentImpl() {} - public V1IngressSpecFluentImpl(io.kubernetes.client.openapi.models.V1IngressSpec instance) { + public V1IngressSpecFluentImpl(V1IngressSpec instance) { this.withDefaultBackend(instance.getDefaultBackend()); this.withIngressClassName(instance.getIngressClassName()); @@ -39,7 +39,7 @@ public V1IngressSpecFluentImpl(io.kubernetes.client.openapi.models.V1IngressSpec private V1IngressBackendBuilder defaultBackend; private String ingressClassName; private ArrayList rules; - private java.util.ArrayList tls; + private ArrayList tls; /** * This method has been deprecated, please use method buildDefaultBackend instead. @@ -47,19 +47,22 @@ public V1IngressSpecFluentImpl(io.kubernetes.client.openapi.models.V1IngressSpec * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1IngressBackend getDefaultBackend() { + public V1IngressBackend getDefaultBackend() { return this.defaultBackend != null ? this.defaultBackend.build() : null; } - public io.kubernetes.client.openapi.models.V1IngressBackend buildDefaultBackend() { + public V1IngressBackend buildDefaultBackend() { return this.defaultBackend != null ? this.defaultBackend.build() : null; } - public A withDefaultBackend(io.kubernetes.client.openapi.models.V1IngressBackend defaultBackend) { + public A withDefaultBackend(V1IngressBackend defaultBackend) { _visitables.get("defaultBackend").remove(this.defaultBackend); if (defaultBackend != null) { this.defaultBackend = new V1IngressBackendBuilder(defaultBackend); _visitables.get("defaultBackend").add(this.defaultBackend); + } else { + this.defaultBackend = null; + _visitables.get("defaultBackend").remove(this.defaultBackend); } return (A) this; } @@ -72,61 +75,53 @@ public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackend() { return new V1IngressSpecFluentImpl.DefaultBackendNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - withNewDefaultBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item) { + public V1IngressSpecFluent.DefaultBackendNested withNewDefaultBackendLike( + V1IngressBackend item) { return new V1IngressSpecFluentImpl.DefaultBackendNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - editDefaultBackend() { + public V1IngressSpecFluent.DefaultBackendNested editDefaultBackend() { return withNewDefaultBackendLike(getDefaultBackend()); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - editOrNewDefaultBackend() { + public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackend() { return withNewDefaultBackendLike( - getDefaultBackend() != null - ? getDefaultBackend() - : new io.kubernetes.client.openapi.models.V1IngressBackendBuilder().build()); + getDefaultBackend() != null ? getDefaultBackend() : new V1IngressBackendBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested - editOrNewDefaultBackendLike(io.kubernetes.client.openapi.models.V1IngressBackend item) { + public V1IngressSpecFluent.DefaultBackendNested editOrNewDefaultBackendLike( + V1IngressBackend item) { return withNewDefaultBackendLike(getDefaultBackend() != null ? getDefaultBackend() : item); } - public java.lang.String getIngressClassName() { + public String getIngressClassName() { return this.ingressClassName; } - public A withIngressClassName(java.lang.String ingressClassName) { + public A withIngressClassName(String ingressClassName) { this.ingressClassName = ingressClassName; return (A) this; } - public java.lang.Boolean hasIngressClassName() { + public Boolean hasIngressClassName() { return this.ingressClassName != null; } - public A addToRules(Integer index, io.kubernetes.client.openapi.models.V1IngressRule item) { + public A addToRules(Integer index, V1IngressRule item) { if (this.rules == null) { - this.rules = new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressRuleBuilder(item); + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressRule item) { + public A setToRules(Integer index, V1IngressRule item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressRuleBuilder(item); + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -142,26 +137,22 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1IngressRule item : items) { - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressRuleBuilder(item); + 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) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1IngressRule item : items) { - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressRuleBuilder(item); + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -169,9 +160,8 @@ public A addAllToRules(Collection items) { - for (io.kubernetes.client.openapi.models.V1IngressRule item : items) { - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressRuleBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -193,14 +181,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - Predicate predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = - rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder = each.next(); + V1IngressRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -214,31 +200,29 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1IngressRule buildRule(java.lang.Integer index) { + public V1IngressRule buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1IngressRule buildFirstRule() { + public V1IngressRule buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1IngressRule buildLastRule() { + public V1IngressRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1IngressRule buildMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressRuleBuilder item : rules) { + public V1IngressRule buildMatchingRule(Predicate predicate) { + for (V1IngressRuleBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -246,10 +230,8 @@ public io.kubernetes.client.openapi.models.V1IngressRule buildMatchingRule( return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressRuleBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1IngressRuleBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -257,13 +239,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules(java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1IngressRule item : rules) { + this.rules = new ArrayList(); + for (V1IngressRule item : rules) { this.addToRules(item); } } else { @@ -277,14 +259,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules) { this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1IngressRule item : rules) { + for (V1IngressRule item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -292,38 +274,32 @@ public V1IngressSpecFluent.RulesNested addNewRule() { return new V1IngressSpecFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1IngressRule item) { - return new io.kubernetes.client.openapi.models.V1IngressSpecFluentImpl.RulesNestedImpl( - -1, item); + public V1IngressSpecFluent.RulesNested addNewRuleLike(V1IngressRule item) { + return new V1IngressSpecFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressRule item) { - return new io.kubernetes.client.openapi.models.V1IngressSpecFluentImpl.RulesNestedImpl( - index, item); + public V1IngressSpecFluent.RulesNested setNewRuleLike(Integer index, V1IngressRule item) { + return new V1IngressSpecFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editRule( - java.lang.Integer index) { + public V1IngressSpecFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editFirstRule() { + public V1IngressSpecFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editLastRule() { + public V1IngressSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested editMatchingRule( - java.util.function.Predicate - predicate) { + public V1IngressSpecFluent.RulesNested editMatchingRule( + Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -335,25 +311,21 @@ public io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested ed return setNewRuleLike(index, buildRule(index)); } - public A addToTls( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressTLS item) { + public A addToTls(Integer index, V1IngressTLS item) { if (this.tls == null) { - this.tls = new java.util.ArrayList(); + this.tls = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(item); + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); _visitables.get("tls").add(index >= 0 ? index : _visitables.get("tls").size(), builder); this.tls.add(index >= 0 ? index : tls.size(), builder); return (A) this; } - public A setToTls( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressTLS item) { + public A setToTls(Integer index, V1IngressTLS item) { if (this.tls == null) { - this.tls = new java.util.ArrayList(); + this.tls = new ArrayList(); } - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(item); + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); if (index < 0 || index >= _visitables.get("tls").size()) { _visitables.get("tls").add(builder); } else { @@ -369,25 +341,22 @@ public A setToTls( public A addToTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { if (this.tls == null) { - this.tls = new java.util.ArrayList(); + this.tls = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1IngressTLS item : items) { - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(item); + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); _visitables.get("tls").add(builder); this.tls.add(builder); } return (A) this; } - public A addAllToTls( - java.util.Collection items) { + public A addAllToTls(Collection items) { if (this.tls == null) { - this.tls = new java.util.ArrayList(); + this.tls = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1IngressTLS item : items) { - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(item); + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); _visitables.get("tls").add(builder); this.tls.add(builder); } @@ -395,9 +364,8 @@ public A addAllToTls( } public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - for (io.kubernetes.client.openapi.models.V1IngressTLS item : items) { - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(item); + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); _visitables.get("tls").remove(builder); if (this.tls != null) { this.tls.remove(builder); @@ -406,11 +374,9 @@ public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items return (A) this; } - public A removeAllFromTls( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1IngressTLS item : items) { - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = - new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(item); + public A removeAllFromTls(Collection items) { + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); _visitables.get("tls").remove(builder); if (this.tls != null) { this.tls.remove(builder); @@ -419,14 +385,12 @@ public A removeAllFromTls( return (A) this; } - public A removeMatchingFromTls( - java.util.function.Predicate - predicate) { + public A removeMatchingFromTls(Predicate predicate) { if (tls == null) return (A) this; - final Iterator each = tls.iterator(); + final Iterator each = tls.iterator(); final List visitables = _visitables.get("tls"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder = each.next(); + V1IngressTLSBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -440,31 +404,29 @@ public A removeMatchingFromTls( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTls() { + @Deprecated + public List getTls() { return tls != null ? build(tls) : null; } - public java.util.List buildTls() { + public List buildTls() { return tls != null ? build(tls) : null; } - public io.kubernetes.client.openapi.models.V1IngressTLS buildTl(java.lang.Integer index) { + public V1IngressTLS buildTl(Integer index) { return this.tls.get(index).build(); } - public io.kubernetes.client.openapi.models.V1IngressTLS buildFirstTl() { + public V1IngressTLS buildFirstTl() { return this.tls.get(0).build(); } - public io.kubernetes.client.openapi.models.V1IngressTLS buildLastTl() { + public V1IngressTLS buildLastTl() { return this.tls.get(tls.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1IngressTLS buildMatchingTl( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressTLSBuilder item : tls) { + public V1IngressTLS buildMatchingTl(Predicate predicate) { + for (V1IngressTLSBuilder item : tls) { if (predicate.test(item)) { return item.build(); } @@ -472,10 +434,8 @@ public io.kubernetes.client.openapi.models.V1IngressTLS buildMatchingTl( return null; } - public java.lang.Boolean hasMatchingTl( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1IngressTLSBuilder item : tls) { + public Boolean hasMatchingTl(Predicate predicate) { + for (V1IngressTLSBuilder item : tls) { if (predicate.test(item)) { return true; } @@ -483,13 +443,13 @@ public java.lang.Boolean hasMatchingTl( return false; } - public A withTls(java.util.List tls) { + public A withTls(List tls) { if (this.tls != null) { _visitables.get("tls").removeAll(this.tls); } if (tls != null) { - this.tls = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1IngressTLS item : tls) { + this.tls = new ArrayList(); + for (V1IngressTLS item : tls) { this.addToTls(item); } } else { @@ -503,14 +463,14 @@ public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls) { this.tls.clear(); } if (tls != null) { - for (io.kubernetes.client.openapi.models.V1IngressTLS item : tls) { + for (V1IngressTLS item : tls) { this.addToTls(item); } } return (A) this; } - public java.lang.Boolean hasTls() { + public Boolean hasTls() { return tls != null && !tls.isEmpty(); } @@ -518,37 +478,31 @@ public V1IngressSpecFluent.TlsNested addNewTl() { return new V1IngressSpecFluentImpl.TlsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested addNewTlLike( - io.kubernetes.client.openapi.models.V1IngressTLS item) { - return new io.kubernetes.client.openapi.models.V1IngressSpecFluentImpl.TlsNestedImpl(-1, item); + public V1IngressSpecFluent.TlsNested addNewTlLike(V1IngressTLS item) { + return new V1IngressSpecFluentImpl.TlsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested setNewTlLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressTLS item) { - return new io.kubernetes.client.openapi.models.V1IngressSpecFluentImpl.TlsNestedImpl( - index, item); + public V1IngressSpecFluent.TlsNested setNewTlLike(Integer index, V1IngressTLS item) { + return new V1IngressSpecFluentImpl.TlsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editTl( - java.lang.Integer index) { + public V1IngressSpecFluent.TlsNested editTl(Integer index) { if (tls.size() <= index) throw new RuntimeException("Can't edit tls. Index exceeds size."); return setNewTlLike(index, buildTl(index)); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editFirstTl() { + public V1IngressSpecFluent.TlsNested editFirstTl() { if (tls.size() == 0) throw new RuntimeException("Can't edit first tls. The list is empty."); return setNewTlLike(0, buildTl(0)); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editLastTl() { + public V1IngressSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested editMatchingTl( - java.util.function.Predicate - predicate) { + public V1IngressSpecFluent.TlsNested editMatchingTl(Predicate predicate) { int index = -1; for (int i = 0; i < tls.size(); i++) { if (predicate.test(tls.get(i))) { @@ -579,7 +533,7 @@ public int hashCode() { return java.util.Objects.hash(defaultBackend, ingressClassName, rules, tls, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (defaultBackend != null) { @@ -604,17 +558,16 @@ public java.lang.String toString() { class DefaultBackendNestedImpl extends V1IngressBackendFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressSpecFluent.DefaultBackendNested, - Nested { + implements V1IngressSpecFluent.DefaultBackendNested, Nested { DefaultBackendNestedImpl(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } DefaultBackendNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IngressBackendBuilder(this); + this.builder = new V1IngressBackendBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressBackendBuilder builder; + V1IngressBackendBuilder builder; public N and() { return (N) V1IngressSpecFluentImpl.this.withDefaultBackend(builder.build()); @@ -626,21 +579,19 @@ public N endDefaultBackend() { } class RulesNestedImpl extends V1IngressRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressSpecFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressRule item) { + implements V1IngressSpecFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1IngressRule item) { this.index = index; this.builder = new V1IngressRuleBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1IngressRuleBuilder(this); + this.builder = new V1IngressRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressRuleBuilder builder; - java.lang.Integer index; + V1IngressRuleBuilder builder; + Integer index; public N and() { return (N) V1IngressSpecFluentImpl.this.setToRules(index, builder.build()); @@ -652,20 +603,19 @@ public N endRule() { } class TlsNestedImpl extends V1IngressTLSFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressSpecFluent.TlsNested, - io.kubernetes.client.fluent.Nested { - TlsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1IngressTLS item) { + implements V1IngressSpecFluent.TlsNested, Nested { + TlsNestedImpl(Integer index, V1IngressTLS item) { this.index = index; this.builder = new V1IngressTLSBuilder(this, item); } TlsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1IngressTLSBuilder(this); + this.builder = new V1IngressTLSBuilder(this); } - io.kubernetes.client.openapi.models.V1IngressTLSBuilder builder; - java.lang.Integer index; + V1IngressTLSBuilder builder; + Integer index; public N and() { return (N) V1IngressSpecFluentImpl.this.setToTls(index, builder.build()); 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 979a3881d2..da99d6f26f 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressStatusBuilder extends V1IngressStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressStatus, - io.kubernetes.client.openapi.models.V1IngressStatusBuilder> { + implements VisitableBuilder { public V1IngressStatusBuilder() { this(false); } @@ -30,45 +28,37 @@ public V1IngressStatusBuilder(V1IngressStatusFluent fluent) { this(fluent, false); } - public V1IngressStatusBuilder( - io.kubernetes.client.openapi.models.V1IngressStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressStatusBuilder(V1IngressStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressStatus(), validationEnabled); } - public V1IngressStatusBuilder( - io.kubernetes.client.openapi.models.V1IngressStatusFluent fluent, - io.kubernetes.client.openapi.models.V1IngressStatus instance) { + public V1IngressStatusBuilder(V1IngressStatusFluent fluent, V1IngressStatus instance) { this(fluent, instance, false); } public V1IngressStatusBuilder( - io.kubernetes.client.openapi.models.V1IngressStatusFluent fluent, - io.kubernetes.client.openapi.models.V1IngressStatus instance, - java.lang.Boolean validationEnabled) { + V1IngressStatusFluent fluent, V1IngressStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLoadBalancer(instance.getLoadBalancer()); this.validationEnabled = validationEnabled; } - public V1IngressStatusBuilder(io.kubernetes.client.openapi.models.V1IngressStatus instance) { + public V1IngressStatusBuilder(V1IngressStatus instance) { this(instance, false); } - public V1IngressStatusBuilder( - io.kubernetes.client.openapi.models.V1IngressStatus instance, - java.lang.Boolean validationEnabled) { + public V1IngressStatusBuilder(V1IngressStatus instance, Boolean validationEnabled) { this.fluent = this; this.withLoadBalancer(instance.getLoadBalancer()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressStatus build() { + public V1IngressStatus build() { V1IngressStatus buildable = new V1IngressStatus(); buildable.setLoadBalancer(fluent.getLoadBalancer()); return buildable; 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 816dcb23f3..aecb257ad8 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 @@ -26,25 +26,23 @@ public interface V1IngressStatusFluent> exten @Deprecated public V1LoadBalancerStatus getLoadBalancer(); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus buildLoadBalancer(); + public V1LoadBalancerStatus buildLoadBalancer(); - public A withLoadBalancer(io.kubernetes.client.openapi.models.V1LoadBalancerStatus loadBalancer); + public A withLoadBalancer(V1LoadBalancerStatus loadBalancer); public Boolean hasLoadBalancer(); public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancer(); - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - withNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item); + public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike( + V1LoadBalancerStatus item); - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - editLoadBalancer(); + public V1IngressStatusFluent.LoadBalancerNested editLoadBalancer(); - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - editOrNewLoadBalancer(); + public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancer(); - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - editOrNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item); + public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( + V1LoadBalancerStatus item); public interface LoadBalancerNested extends Nested, V1LoadBalancerStatusFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java index 4c92b96d8b..981f7ccb8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluentImpl.java @@ -21,7 +21,7 @@ public class V1IngressStatusFluentImpl> exten implements V1IngressStatusFluent { public V1IngressStatusFluentImpl() {} - public V1IngressStatusFluentImpl(io.kubernetes.client.openapi.models.V1IngressStatus instance) { + public V1IngressStatusFluentImpl(V1IngressStatus instance) { this.withLoadBalancer(instance.getLoadBalancer()); } @@ -33,19 +33,22 @@ public V1IngressStatusFluentImpl(io.kubernetes.client.openapi.models.V1IngressSt * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus getLoadBalancer() { + public V1LoadBalancerStatus getLoadBalancer() { return this.loadBalancer != null ? this.loadBalancer.build() : null; } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus buildLoadBalancer() { + public V1LoadBalancerStatus buildLoadBalancer() { return this.loadBalancer != null ? this.loadBalancer.build() : null; } - public A withLoadBalancer(io.kubernetes.client.openapi.models.V1LoadBalancerStatus loadBalancer) { + public A withLoadBalancer(V1LoadBalancerStatus loadBalancer) { _visitables.get("loadBalancer").remove(this.loadBalancer); if (loadBalancer != null) { this.loadBalancer = new V1LoadBalancerStatusBuilder(loadBalancer); _visitables.get("loadBalancer").add(this.loadBalancer); + } else { + this.loadBalancer = null; + _visitables.get("loadBalancer").remove(this.loadBalancer); } return (A) this; } @@ -58,26 +61,22 @@ public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancer() { return new V1IngressStatusFluentImpl.LoadBalancerNestedImpl(); } - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - withNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item) { + public V1IngressStatusFluent.LoadBalancerNested withNewLoadBalancerLike( + V1LoadBalancerStatus item) { return new V1IngressStatusFluentImpl.LoadBalancerNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - editLoadBalancer() { + public V1IngressStatusFluent.LoadBalancerNested editLoadBalancer() { return withNewLoadBalancerLike(getLoadBalancer()); } - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - editOrNewLoadBalancer() { + public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancer() { return withNewLoadBalancerLike( - getLoadBalancer() != null - ? getLoadBalancer() - : new io.kubernetes.client.openapi.models.V1LoadBalancerStatusBuilder().build()); + getLoadBalancer() != null ? getLoadBalancer() : new V1LoadBalancerStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested - editOrNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item) { + public V1IngressStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( + V1LoadBalancerStatus item) { return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer() : item); } @@ -107,17 +106,16 @@ public String toString() { class LoadBalancerNestedImpl extends V1LoadBalancerStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1IngressStatusFluent.LoadBalancerNested, - Nested { - LoadBalancerNestedImpl(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item) { + implements V1IngressStatusFluent.LoadBalancerNested, Nested { + LoadBalancerNestedImpl(V1LoadBalancerStatus item) { this.builder = new V1LoadBalancerStatusBuilder(this, item); } LoadBalancerNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LoadBalancerStatusBuilder(this); + this.builder = new V1LoadBalancerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1LoadBalancerStatusBuilder builder; + V1LoadBalancerStatusBuilder builder; public N and() { return (N) V1IngressStatusFluentImpl.this.withLoadBalancer(builder.build()); 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 2058725a41..e5eaaa1c07 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1IngressTLSBuilder extends V1IngressTLSFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1IngressTLS, V1IngressTLSBuilder> { + implements VisitableBuilder { public V1IngressTLSBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1IngressTLSBuilder(Boolean validationEnabled) { this(new V1IngressTLS(), validationEnabled); } - public V1IngressTLSBuilder(io.kubernetes.client.openapi.models.V1IngressTLSFluent fluent) { + public V1IngressTLSBuilder(V1IngressTLSFluent fluent) { this(fluent, false); } - public V1IngressTLSBuilder( - io.kubernetes.client.openapi.models.V1IngressTLSFluent fluent, - java.lang.Boolean validationEnabled) { + public V1IngressTLSBuilder(V1IngressTLSFluent fluent, Boolean validationEnabled) { this(fluent, new V1IngressTLS(), validationEnabled); } - public V1IngressTLSBuilder( - io.kubernetes.client.openapi.models.V1IngressTLSFluent fluent, - io.kubernetes.client.openapi.models.V1IngressTLS instance) { + public V1IngressTLSBuilder(V1IngressTLSFluent fluent, V1IngressTLS instance) { this(fluent, instance, false); } public V1IngressTLSBuilder( - io.kubernetes.client.openapi.models.V1IngressTLSFluent fluent, - io.kubernetes.client.openapi.models.V1IngressTLS instance, - java.lang.Boolean validationEnabled) { + V1IngressTLSFluent fluent, V1IngressTLS instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withHosts(instance.getHosts()); @@ -53,13 +46,11 @@ public V1IngressTLSBuilder( this.validationEnabled = validationEnabled; } - public V1IngressTLSBuilder(io.kubernetes.client.openapi.models.V1IngressTLS instance) { + public V1IngressTLSBuilder(V1IngressTLS instance) { this(instance, false); } - public V1IngressTLSBuilder( - io.kubernetes.client.openapi.models.V1IngressTLS instance, - java.lang.Boolean validationEnabled) { + public V1IngressTLSBuilder(V1IngressTLS instance, Boolean validationEnabled) { this.fluent = this; this.withHosts(instance.getHosts()); @@ -68,10 +59,10 @@ public V1IngressTLSBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1IngressTLSFluent fluent; - java.lang.Boolean validationEnabled; + V1IngressTLSFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1IngressTLS build() { + public V1IngressTLS build() { V1IngressTLS buildable = new V1IngressTLS(); buildable.setHosts(fluent.getHosts()); buildable.setSecretName(fluent.getSecretName()); 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 0ef48de186..0f5e7f6969 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 @@ -21,37 +21,37 @@ public interface V1IngressTLSFluent> extends Fluent { public A addToHosts(Integer index, String item); - public A setToHosts(java.lang.Integer index, java.lang.String item); + public A setToHosts(Integer index, String item); public A addToHosts(java.lang.String... items); - public A addAllToHosts(Collection items); + public A addAllToHosts(Collection items); public A removeFromHosts(java.lang.String... items); - public A removeAllFromHosts(java.util.Collection items); + public A removeAllFromHosts(Collection items); - public List getHosts(); + public List getHosts(); - public java.lang.String getHost(java.lang.Integer index); + public String getHost(Integer index); - public java.lang.String getFirstHost(); + public String getFirstHost(); - public java.lang.String getLastHost(); + public String getLastHost(); - public java.lang.String getMatchingHost(Predicate predicate); + public String getMatchingHost(Predicate predicate); - public Boolean hasMatchingHost(java.util.function.Predicate predicate); + public Boolean hasMatchingHost(Predicate predicate); - public A withHosts(java.util.List hosts); + public A withHosts(List hosts); public A withHosts(java.lang.String... hosts); - public java.lang.Boolean hasHosts(); + public Boolean hasHosts(); - public java.lang.String getSecretName(); + public String getSecretName(); - public A withSecretName(java.lang.String secretName); + public A withSecretName(String secretName); - public java.lang.Boolean hasSecretName(); + public Boolean hasSecretName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java index 2a5a5441f9..fa6c90735a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluentImpl.java @@ -24,26 +24,26 @@ public class V1IngressTLSFluentImpl> extends Bas implements V1IngressTLSFluent { public V1IngressTLSFluentImpl() {} - public V1IngressTLSFluentImpl(io.kubernetes.client.openapi.models.V1IngressTLS instance) { + public V1IngressTLSFluentImpl(V1IngressTLS instance) { this.withHosts(instance.getHosts()); this.withSecretName(instance.getSecretName()); } private List hosts; - private java.lang.String secretName; + private String secretName; - public A addToHosts(Integer index, java.lang.String item) { + public A addToHosts(Integer index, String item) { if (this.hosts == null) { - this.hosts = new ArrayList(); + this.hosts = new ArrayList(); } this.hosts.add(index, item); return (A) this; } - public A setToHosts(java.lang.Integer index, java.lang.String item) { + public A setToHosts(Integer index, String item) { if (this.hosts == null) { - this.hosts = new java.util.ArrayList(); + this.hosts = new ArrayList(); } this.hosts.set(index, item); return (A) this; @@ -51,26 +51,26 @@ public A setToHosts(java.lang.Integer index, java.lang.String item) { public A addToHosts(java.lang.String... items) { if (this.hosts == null) { - this.hosts = new java.util.ArrayList(); + this.hosts = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.hosts.add(item); } return (A) this; } - public A addAllToHosts(Collection items) { + public A addAllToHosts(Collection items) { if (this.hosts == null) { - this.hosts = new java.util.ArrayList(); + this.hosts = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.hosts.add(item); } return (A) this; } public A removeFromHosts(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.hosts != null) { this.hosts.remove(item); } @@ -78,8 +78,8 @@ public A removeFromHosts(java.lang.String... items) { return (A) this; } - public A removeAllFromHosts(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromHosts(Collection items) { + for (String item : items) { if (this.hosts != null) { this.hosts.remove(item); } @@ -87,24 +87,24 @@ public A removeAllFromHosts(java.util.Collection items) { return (A) this; } - public java.util.List getHosts() { + public List getHosts() { return this.hosts; } - public java.lang.String getHost(java.lang.Integer index) { + public String getHost(Integer index) { return this.hosts.get(index); } - public java.lang.String getFirstHost() { + public String getFirstHost() { return this.hosts.get(0); } - public java.lang.String getLastHost() { + public String getLastHost() { return this.hosts.get(hosts.size() - 1); } - public java.lang.String getMatchingHost(Predicate predicate) { - for (java.lang.String item : hosts) { + public String getMatchingHost(Predicate predicate) { + for (String item : hosts) { if (predicate.test(item)) { return item; } @@ -112,8 +112,8 @@ public java.lang.String getMatchingHost(Predicate predicate) { return null; } - public Boolean hasMatchingHost(java.util.function.Predicate predicate) { - for (java.lang.String item : hosts) { + public Boolean hasMatchingHost(Predicate predicate) { + for (String item : hosts) { if (predicate.test(item)) { return true; } @@ -121,10 +121,10 @@ public Boolean hasMatchingHost(java.util.function.Predicate pr return false; } - public A withHosts(java.util.List hosts) { + public A withHosts(List hosts) { if (hosts != null) { - this.hosts = new java.util.ArrayList(); - for (java.lang.String item : hosts) { + this.hosts = new ArrayList(); + for (String item : hosts) { this.addToHosts(item); } } else { @@ -138,27 +138,27 @@ public A withHosts(java.lang.String... hosts) { this.hosts.clear(); } if (hosts != null) { - for (java.lang.String item : hosts) { + for (String item : hosts) { this.addToHosts(item); } } return (A) this; } - public java.lang.Boolean hasHosts() { + public Boolean hasHosts() { return hosts != null && !hosts.isEmpty(); } - public java.lang.String getSecretName() { + public String getSecretName() { return this.secretName; } - public A withSecretName(java.lang.String secretName) { + public A withSecretName(String secretName) { this.secretName = secretName; return (A) this; } - public java.lang.Boolean hasSecretName() { + public Boolean hasSecretName() { return this.secretName != null; } @@ -176,7 +176,7 @@ public int hashCode() { return java.util.Objects.hash(hosts, secretName, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (hosts != null && !hosts.isEmpty()) { 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 6200938c1e..14cf33491b 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluentImpl - implements VisitableBuilder< - V1JSONSchemaProps, io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder> { + implements VisitableBuilder { public V1JSONSchemaPropsBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent) { this(fluent, false); } - public V1JSONSchemaPropsBuilder( - io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent, Boolean validationEnabled) { this(fluent, new V1JSONSchemaProps(), validationEnabled); } - public V1JSONSchemaPropsBuilder( - io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent fluent, - io.kubernetes.client.openapi.models.V1JSONSchemaProps instance) { + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent, V1JSONSchemaProps instance) { this(fluent, instance, false); } public V1JSONSchemaPropsBuilder( - io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent fluent, - io.kubernetes.client.openapi.models.V1JSONSchemaProps instance, - java.lang.Boolean validationEnabled) { + V1JSONSchemaPropsFluent fluent, V1JSONSchemaProps instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withRef(instance.get$Ref()); @@ -123,13 +116,11 @@ public V1JSONSchemaPropsBuilder( this.validationEnabled = validationEnabled; } - public V1JSONSchemaPropsBuilder(io.kubernetes.client.openapi.models.V1JSONSchemaProps instance) { + public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance) { this(instance, false); } - public V1JSONSchemaPropsBuilder( - io.kubernetes.client.openapi.models.V1JSONSchemaProps instance, - java.lang.Boolean validationEnabled) { + public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance, Boolean validationEnabled) { this.fluent = this; this.withRef(instance.get$Ref()); @@ -208,10 +199,10 @@ public V1JSONSchemaPropsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent fluent; - java.lang.Boolean validationEnabled; + V1JSONSchemaPropsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1JSONSchemaProps build() { + public V1JSONSchemaProps build() { V1JSONSchemaProps buildable = new V1JSONSchemaProps(); buildable.set$Ref(fluent.getRef()); buildable.set$Schema(fluent.getSchema()); 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 6c261c5d3b..a80d72dde3 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 @@ -23,41 +23,39 @@ public interface V1JSONSchemaPropsFluent> extends Fluent { public String getRef(); - public A withRef(java.lang.String $ref); + public A withRef(String $ref); public Boolean hasRef(); - public java.lang.String getSchema(); + public String getSchema(); - public A withSchema(java.lang.String $schema); + public A withSchema(String $schema); - public java.lang.Boolean hasSchema(); + public Boolean hasSchema(); public Object getAdditionalItems(); - public A withAdditionalItems(java.lang.Object additionalItems); + public A withAdditionalItems(Object additionalItems); - public java.lang.Boolean hasAdditionalItems(); + public Boolean hasAdditionalItems(); - public java.lang.Object getAdditionalProperties(); + public Object getAdditionalProperties(); - public A withAdditionalProperties(java.lang.Object additionalProperties); + public A withAdditionalProperties(Object additionalProperties); - public java.lang.Boolean hasAdditionalProperties(); + public Boolean hasAdditionalProperties(); public A addToAllOf(Integer index, V1JSONSchemaProps item); - public A setToAllOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public A setToAllOf(Integer index, V1JSONSchemaProps item); public A addToAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A addAllToAllOf(Collection items); + public A addAllToAllOf(Collection items); public A removeFromAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A removeAllFromAllOf( - java.util.Collection items); + public A removeAllFromAllOf(Collection items); public A removeMatchingFromAllOf(Predicate predicate); @@ -67,516 +65,451 @@ public A removeAllFromAllOf( * @return The buildable object. */ @Deprecated - public List getAllOf(); + public List getAllOf(); - public java.util.List buildAllOf(); + public List buildAllOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildAllOf(java.lang.Integer index); + public V1JSONSchemaProps buildAllOf(Integer index); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildFirstAllOf(); + public V1JSONSchemaProps buildFirstAllOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildLastAllOf(); + public V1JSONSchemaProps buildLastAllOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingAllOf( - java.util.function.Predicate - predicate); + public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate); - public java.lang.Boolean hasMatchingAllOf( - java.util.function.Predicate - predicate); + public Boolean hasMatchingAllOf(Predicate predicate); - public A withAllOf(java.util.List allOf); + public A withAllOf(List allOf); public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allOf); - public java.lang.Boolean hasAllOf(); + public Boolean hasAllOf(); public V1JSONSchemaPropsFluent.AllOfNested addNewAllOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested addNewAllOfLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.AllOfNested addNewAllOfLike(V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike( + Integer index, V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested editAllOf( - java.lang.Integer index); + public V1JSONSchemaPropsFluent.AllOfNested editAllOf(Integer index); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested - editFirstAllOf(); + public V1JSONSchemaPropsFluent.AllOfNested editFirstAllOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested editLastAllOf(); + public V1JSONSchemaPropsFluent.AllOfNested editLastAllOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested - editMatchingAllOf( - java.util.function.Predicate - predicate); + public V1JSONSchemaPropsFluent.AllOfNested editMatchingAllOf( + Predicate predicate); - public A addToAnyOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public A addToAnyOf(Integer index, V1JSONSchemaProps item); - public A setToAnyOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public A setToAnyOf(Integer index, V1JSONSchemaProps item); public A addToAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A addAllToAnyOf( - java.util.Collection items); + public A addAllToAnyOf(Collection items); public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A removeAllFromAnyOf( - java.util.Collection items); + public A removeAllFromAnyOf(Collection items); - public A removeMatchingFromAnyOf( - java.util.function.Predicate - predicate); + public A removeMatchingFromAnyOf(Predicate predicate); /** * This method has been deprecated, please use method buildAnyOf instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getAnyOf(); + @Deprecated + public List getAnyOf(); - public java.util.List buildAnyOf(); + public List buildAnyOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildAnyOf(java.lang.Integer index); + public V1JSONSchemaProps buildAnyOf(Integer index); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildFirstAnyOf(); + public V1JSONSchemaProps buildFirstAnyOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildLastAnyOf(); + public V1JSONSchemaProps buildLastAnyOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingAnyOf( - java.util.function.Predicate - predicate); + public V1JSONSchemaProps buildMatchingAnyOf(Predicate predicate); - public java.lang.Boolean hasMatchingAnyOf( - java.util.function.Predicate - predicate); + public Boolean hasMatchingAnyOf(Predicate predicate); - public A withAnyOf(java.util.List anyOf); + public A withAnyOf(List anyOf); public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyOf); - public java.lang.Boolean hasAnyOf(); + public Boolean hasAnyOf(); public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOfLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike( + Integer index, V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested editAnyOf( - java.lang.Integer index); + public V1JSONSchemaPropsFluent.AnyOfNested editAnyOf(Integer index); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested - editFirstAnyOf(); + public V1JSONSchemaPropsFluent.AnyOfNested editFirstAnyOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested editLastAnyOf(); + public V1JSONSchemaPropsFluent.AnyOfNested editLastAnyOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested - editMatchingAnyOf( - java.util.function.Predicate - predicate); + public V1JSONSchemaPropsFluent.AnyOfNested editMatchingAnyOf( + Predicate predicate); - public java.lang.Object getDefault(); + public Object getDefault(); - public A withDefault(java.lang.Object _default); + public A withDefault(Object _default); - public java.lang.Boolean hasDefault(); + public Boolean hasDefault(); - public A addToDefinitions( - java.lang.String key, io.kubernetes.client.openapi.models.V1JSONSchemaProps value); + public A addToDefinitions(String key, V1JSONSchemaProps value); - public A addToDefinitions( - Map map); + public A addToDefinitions(Map map); - public A removeFromDefinitions(java.lang.String key); + public A removeFromDefinitions(String key); - public A removeFromDefinitions( - java.util.Map map); + public A removeFromDefinitions(Map map); - public java.util.Map - getDefinitions(); + public Map getDefinitions(); - public A withDefinitions( - java.util.Map - definitions); + public A withDefinitions(Map definitions); - public java.lang.Boolean hasDefinitions(); + public Boolean hasDefinitions(); - public A addToDependencies(java.lang.String key, java.lang.Object value); + public A addToDependencies(String key, Object value); - public A addToDependencies(java.util.Map map); + public A addToDependencies(Map map); - public A removeFromDependencies(java.lang.String key); + public A removeFromDependencies(String key); - public A removeFromDependencies(java.util.Map map); + public A removeFromDependencies(Map map); - public java.util.Map getDependencies(); + public Map getDependencies(); - public A withDependencies(java.util.Map dependencies); + public A withDependencies(Map dependencies); - public java.lang.Boolean hasDependencies(); + public Boolean hasDependencies(); - public java.lang.String getDescription(); + public String getDescription(); - public A withDescription(java.lang.String description); + public A withDescription(String description); - public java.lang.Boolean hasDescription(); + public Boolean hasDescription(); - public A addToEnum(java.lang.Integer index, java.lang.Object item); + public A addToEnum(Integer index, Object item); - public A setToEnum(java.lang.Integer index, java.lang.Object item); + public A setToEnum(Integer index, Object item); public A addToEnum(java.lang.Object... items); - public A addAllToEnum(java.util.Collection items); + public A addAllToEnum(Collection items); public A removeFromEnum(java.lang.Object... items); - public A removeAllFromEnum(java.util.Collection items); + public A removeAllFromEnum(Collection items); - public java.util.List getEnum(); + public List getEnum(); - public java.lang.Object getEnum(java.lang.Integer index); + public Object getEnum(Integer index); - public java.lang.Object getFirstEnum(); + public Object getFirstEnum(); - public java.lang.Object getLastEnum(); + public Object getLastEnum(); - public java.lang.Object getMatchingEnum(java.util.function.Predicate predicate); + public Object getMatchingEnum(Predicate predicate); - public java.lang.Boolean hasMatchingEnum( - java.util.function.Predicate predicate); + public Boolean hasMatchingEnum(Predicate predicate); - public A withEnum(java.util.List _enum); + public A withEnum(List _enum); public A withEnum(java.lang.Object... _enum); - public java.lang.Boolean hasEnum(); + public Boolean hasEnum(); - public java.lang.Object getExample(); + public Object getExample(); - public A withExample(java.lang.Object example); + public A withExample(Object example); - public java.lang.Boolean hasExample(); + public Boolean hasExample(); - public java.lang.Boolean getExclusiveMaximum(); + public Boolean getExclusiveMaximum(); - public A withExclusiveMaximum(java.lang.Boolean exclusiveMaximum); + public A withExclusiveMaximum(Boolean exclusiveMaximum); - public java.lang.Boolean hasExclusiveMaximum(); + public Boolean hasExclusiveMaximum(); - public java.lang.Boolean getExclusiveMinimum(); + public Boolean getExclusiveMinimum(); - public A withExclusiveMinimum(java.lang.Boolean exclusiveMinimum); + public A withExclusiveMinimum(Boolean exclusiveMinimum); - public java.lang.Boolean hasExclusiveMinimum(); + public Boolean hasExclusiveMinimum(); /** * This method has been deprecated, please use method buildExternalDocs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ExternalDocumentation getExternalDocs(); - public io.kubernetes.client.openapi.models.V1ExternalDocumentation buildExternalDocs(); + public V1ExternalDocumentation buildExternalDocs(); - public A withExternalDocs( - io.kubernetes.client.openapi.models.V1ExternalDocumentation externalDocs); + public A withExternalDocs(V1ExternalDocumentation externalDocs); - public java.lang.Boolean hasExternalDocs(); + public Boolean hasExternalDocs(); public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocs(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - withNewExternalDocsLike(io.kubernetes.client.openapi.models.V1ExternalDocumentation item); + public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocsLike( + V1ExternalDocumentation item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - editExternalDocs(); + public V1JSONSchemaPropsFluent.ExternalDocsNested editExternalDocs(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - editOrNewExternalDocs(); + public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocs(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - editOrNewExternalDocsLike(io.kubernetes.client.openapi.models.V1ExternalDocumentation item); + public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocsLike( + V1ExternalDocumentation item); - public java.lang.String getFormat(); + public String getFormat(); - public A withFormat(java.lang.String format); + public A withFormat(String format); - public java.lang.Boolean hasFormat(); + public Boolean hasFormat(); - public java.lang.String getId(); + public String getId(); - public A withId(java.lang.String id); + public A withId(String id); - public java.lang.Boolean hasId(); + public Boolean hasId(); - public java.lang.Object getItems(); + public Object getItems(); - public A withItems(java.lang.Object items); + public A withItems(Object items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public Long getMaxItems(); - public A withMaxItems(java.lang.Long maxItems); + public A withMaxItems(Long maxItems); - public java.lang.Boolean hasMaxItems(); + public Boolean hasMaxItems(); - public java.lang.Long getMaxLength(); + public Long getMaxLength(); - public A withMaxLength(java.lang.Long maxLength); + public A withMaxLength(Long maxLength); - public java.lang.Boolean hasMaxLength(); + public Boolean hasMaxLength(); - public java.lang.Long getMaxProperties(); + public Long getMaxProperties(); - public A withMaxProperties(java.lang.Long maxProperties); + public A withMaxProperties(Long maxProperties); - public java.lang.Boolean hasMaxProperties(); + public Boolean hasMaxProperties(); public Double getMaximum(); - public A withMaximum(java.lang.Double maximum); + public A withMaximum(Double maximum); - public java.lang.Boolean hasMaximum(); + public Boolean hasMaximum(); - public java.lang.Long getMinItems(); + public Long getMinItems(); - public A withMinItems(java.lang.Long minItems); + public A withMinItems(Long minItems); - public java.lang.Boolean hasMinItems(); + public Boolean hasMinItems(); - public java.lang.Long getMinLength(); + public Long getMinLength(); - public A withMinLength(java.lang.Long minLength); + public A withMinLength(Long minLength); - public java.lang.Boolean hasMinLength(); + public Boolean hasMinLength(); - public java.lang.Long getMinProperties(); + public Long getMinProperties(); - public A withMinProperties(java.lang.Long minProperties); + public A withMinProperties(Long minProperties); - public java.lang.Boolean hasMinProperties(); + public Boolean hasMinProperties(); - public java.lang.Double getMinimum(); + public Double getMinimum(); - public A withMinimum(java.lang.Double minimum); + public A withMinimum(Double minimum); - public java.lang.Boolean hasMinimum(); + public Boolean hasMinimum(); - public java.lang.Double getMultipleOf(); + public Double getMultipleOf(); - public A withMultipleOf(java.lang.Double multipleOf); + public A withMultipleOf(Double multipleOf); - public java.lang.Boolean hasMultipleOf(); + public Boolean hasMultipleOf(); /** * This method has been deprecated, please use method buildNot instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1JSONSchemaProps getNot(); + @Deprecated + public V1JSONSchemaProps getNot(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildNot(); + public V1JSONSchemaProps buildNot(); - public A withNot(io.kubernetes.client.openapi.models.V1JSONSchemaProps not); + public A withNot(V1JSONSchemaProps not); - public java.lang.Boolean hasNot(); + public Boolean hasNot(); public V1JSONSchemaPropsFluent.NotNested withNewNot(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested withNewNotLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.NotNested withNewNotLike(V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested editNot(); + public V1JSONSchemaPropsFluent.NotNested editNot(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested editOrNewNot(); + public V1JSONSchemaPropsFluent.NotNested editOrNewNot(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested editOrNewNotLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.NotNested editOrNewNotLike(V1JSONSchemaProps item); - public java.lang.Boolean getNullable(); + public Boolean getNullable(); - public A withNullable(java.lang.Boolean nullable); + public A withNullable(Boolean nullable); - public java.lang.Boolean hasNullable(); + public Boolean hasNullable(); - public A addToOneOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public A addToOneOf(Integer index, V1JSONSchemaProps item); - public A setToOneOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public A setToOneOf(Integer index, V1JSONSchemaProps item); public A addToOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A addAllToOneOf( - java.util.Collection items); + public A addAllToOneOf(Collection items); public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items); - public A removeAllFromOneOf( - java.util.Collection items); + public A removeAllFromOneOf(Collection items); - public A removeMatchingFromOneOf( - java.util.function.Predicate - predicate); + public A removeMatchingFromOneOf(Predicate predicate); /** * This method has been deprecated, please use method buildOneOf instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getOneOf(); + @Deprecated + public List getOneOf(); - public java.util.List buildOneOf(); + public List buildOneOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildOneOf(java.lang.Integer index); + public V1JSONSchemaProps buildOneOf(Integer index); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildFirstOneOf(); + public V1JSONSchemaProps buildFirstOneOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildLastOneOf(); + public V1JSONSchemaProps buildLastOneOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingOneOf( - java.util.function.Predicate - predicate); + public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate); - public java.lang.Boolean hasMatchingOneOf( - java.util.function.Predicate - predicate); + public Boolean hasMatchingOneOf(Predicate predicate); - public A withOneOf(java.util.List oneOf); + public A withOneOf(List oneOf); public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneOf); - public java.lang.Boolean hasOneOf(); + public Boolean hasOneOf(); public V1JSONSchemaPropsFluent.OneOfNested addNewOneOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested addNewOneOfLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.OneOfNested addNewOneOfLike(V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item); + public V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike( + Integer index, V1JSONSchemaProps item); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested editOneOf( - java.lang.Integer index); + public V1JSONSchemaPropsFluent.OneOfNested editOneOf(Integer index); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested - editFirstOneOf(); + public V1JSONSchemaPropsFluent.OneOfNested editFirstOneOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested editLastOneOf(); + public V1JSONSchemaPropsFluent.OneOfNested editLastOneOf(); - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested - editMatchingOneOf( - java.util.function.Predicate - predicate); + public V1JSONSchemaPropsFluent.OneOfNested editMatchingOneOf( + Predicate predicate); - public java.lang.String getPattern(); + public String getPattern(); - public A withPattern(java.lang.String pattern); + public A withPattern(String pattern); - public java.lang.Boolean hasPattern(); + public Boolean hasPattern(); - public A addToPatternProperties( - java.lang.String key, io.kubernetes.client.openapi.models.V1JSONSchemaProps value); + public A addToPatternProperties(String key, V1JSONSchemaProps value); - public A addToPatternProperties( - java.util.Map map); + public A addToPatternProperties(Map map); - public A removeFromPatternProperties(java.lang.String key); + public A removeFromPatternProperties(String key); - public A removeFromPatternProperties( - java.util.Map map); + public A removeFromPatternProperties(Map map); - public java.util.Map - getPatternProperties(); + public Map getPatternProperties(); - public A withPatternProperties( - java.util.Map - patternProperties); + public A withPatternProperties(Map patternProperties); - public java.lang.Boolean hasPatternProperties(); + public Boolean hasPatternProperties(); - public A addToProperties( - java.lang.String key, io.kubernetes.client.openapi.models.V1JSONSchemaProps value); + public A addToProperties(String key, V1JSONSchemaProps value); - public A addToProperties( - java.util.Map map); + public A addToProperties(Map map); - public A removeFromProperties(java.lang.String key); + public A removeFromProperties(String key); - public A removeFromProperties( - java.util.Map map); + public A removeFromProperties(Map map); - public java.util.Map - getProperties(); + public Map getProperties(); - public A withProperties( - java.util.Map - properties); + public A withProperties(Map properties); - public java.lang.Boolean hasProperties(); + public Boolean hasProperties(); - public A addToRequired(java.lang.Integer index, java.lang.String item); + public A addToRequired(Integer index, String item); - public A setToRequired(java.lang.Integer index, java.lang.String item); + public A setToRequired(Integer index, String item); public A addToRequired(java.lang.String... items); - public A addAllToRequired(java.util.Collection items); + public A addAllToRequired(Collection items); public A removeFromRequired(java.lang.String... items); - public A removeAllFromRequired(java.util.Collection items); + public A removeAllFromRequired(Collection items); - public java.util.List getRequired(); + public List getRequired(); - public java.lang.String getRequired(java.lang.Integer index); + public String getRequired(Integer index); - public java.lang.String getFirstRequired(); + public String getFirstRequired(); - public java.lang.String getLastRequired(); + public String getLastRequired(); - public java.lang.String getMatchingRequired( - java.util.function.Predicate predicate); + public String getMatchingRequired(Predicate predicate); - public java.lang.Boolean hasMatchingRequired( - java.util.function.Predicate predicate); + public Boolean hasMatchingRequired(Predicate predicate); - public A withRequired(java.util.List required); + public A withRequired(List required); public A withRequired(java.lang.String... required); - public java.lang.Boolean hasRequired(); + public Boolean hasRequired(); - public java.lang.String getTitle(); + public String getTitle(); - public A withTitle(java.lang.String title); + public A withTitle(String title); - public java.lang.Boolean hasTitle(); + public Boolean hasTitle(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); - public java.lang.Boolean getUniqueItems(); + public Boolean getUniqueItems(); - public A withUniqueItems(java.lang.Boolean uniqueItems); + public A withUniqueItems(Boolean uniqueItems); - public java.lang.Boolean hasUniqueItems(); + public Boolean hasUniqueItems(); public A withExclusiveMaximum(); @@ -594,15 +527,14 @@ public interface AllOfNested } public interface AnyOfNested - extends io.kubernetes.client.fluent.Nested, - V1JSONSchemaPropsFluent> { + extends Nested, V1JSONSchemaPropsFluent> { public N and(); public N endAnyOf(); } public interface ExternalDocsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ExternalDocumentationFluent> { public N and(); @@ -610,16 +542,14 @@ public interface ExternalDocsNested } public interface NotNested - extends io.kubernetes.client.fluent.Nested, - V1JSONSchemaPropsFluent> { + extends Nested, V1JSONSchemaPropsFluent> { public N and(); public N endNot(); } public interface OneOfNested - extends io.kubernetes.client.fluent.Nested, - V1JSONSchemaPropsFluent> { + extends Nested, V1JSONSchemaPropsFluent> { public N and(); public N endOneOf(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java index d159b5b8d8..22b2d25cb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluentImpl.java @@ -28,8 +28,7 @@ public class V1JSONSchemaPropsFluentImpl> e implements V1JSONSchemaPropsFluent { public V1JSONSchemaPropsFluentImpl() {} - public V1JSONSchemaPropsFluentImpl( - io.kubernetes.client.openapi.models.V1JSONSchemaProps instance) { + public V1JSONSchemaPropsFluentImpl(V1JSONSchemaProps instance) { this.withRef(instance.get$Ref()); this.withSchema(instance.get$Schema()); @@ -106,117 +105,110 @@ public V1JSONSchemaPropsFluentImpl( } private String $ref; - private java.lang.String $schema; + private String $schema; private Object additionalItems; - private java.lang.Object additionalProperties; + private Object additionalProperties; private ArrayList allOf; - private java.util.ArrayList anyOf; - private java.lang.Object _default; - private Map definitions; - private java.util.Map dependencies; - private java.lang.String description; - private List _enum; - private java.lang.Object example; + private ArrayList anyOf; + private Object _default; + private Map definitions; + private Map dependencies; + private String description; + private List _enum; + private Object example; private Boolean exclusiveMaximum; - private java.lang.Boolean exclusiveMinimum; + private Boolean exclusiveMinimum; private V1ExternalDocumentationBuilder externalDocs; - private java.lang.String format; - private java.lang.String id; - private java.lang.Object items; + private String format; + private String id; + private Object items; private Long maxItems; - private java.lang.Long maxLength; - private java.lang.Long maxProperties; + private Long maxLength; + private Long maxProperties; private Double maximum; - private java.lang.Long minItems; - private java.lang.Long minLength; - private java.lang.Long minProperties; - private java.lang.Double minimum; - private java.lang.Double multipleOf; - private io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder not; - private java.lang.Boolean nullable; - private java.util.ArrayList oneOf; - private java.lang.String pattern; - private java.util.Map - patternProperties; - private java.util.Map - properties; - private java.util.List required; - private java.lang.String title; - private java.lang.String type; - private java.lang.Boolean uniqueItems; - - public java.lang.String getRef() { + private Long minItems; + private Long minLength; + private Long minProperties; + private Double minimum; + private Double multipleOf; + private V1JSONSchemaPropsBuilder not; + private Boolean nullable; + private ArrayList oneOf; + private String pattern; + private Map patternProperties; + private Map properties; + private List required; + private String title; + private String type; + private Boolean uniqueItems; + + public String getRef() { return this.$ref; } - public A withRef(java.lang.String $ref) { + public A withRef(String $ref) { this.$ref = $ref; return (A) this; } - public java.lang.Boolean hasRef() { + public Boolean hasRef() { return this.$ref != null; } - public java.lang.String getSchema() { + public String getSchema() { return this.$schema; } - public A withSchema(java.lang.String $schema) { + public A withSchema(String $schema) { this.$schema = $schema; return (A) this; } - public java.lang.Boolean hasSchema() { + public Boolean hasSchema() { return this.$schema != null; } - public java.lang.Object getAdditionalItems() { + public Object getAdditionalItems() { return this.additionalItems; } - public A withAdditionalItems(java.lang.Object additionalItems) { + public A withAdditionalItems(Object additionalItems) { this.additionalItems = additionalItems; return (A) this; } - public java.lang.Boolean hasAdditionalItems() { + public Boolean hasAdditionalItems() { return this.additionalItems != null; } - public java.lang.Object getAdditionalProperties() { + public Object getAdditionalProperties() { return this.additionalProperties; } - public A withAdditionalProperties(java.lang.Object additionalProperties) { + public A withAdditionalProperties(Object additionalProperties) { this.additionalProperties = additionalProperties; return (A) this; } - public java.lang.Boolean hasAdditionalProperties() { + public Boolean hasAdditionalProperties() { return this.additionalProperties != null; } - public A addToAllOf(Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public A addToAllOf(Integer index, V1JSONSchemaProps item) { if (this.allOf == null) { - this.allOf = - new java.util.ArrayList(); + this.allOf = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("allOf").add(index >= 0 ? index : _visitables.get("allOf").size(), builder); this.allOf.add(index >= 0 ? index : allOf.size(), builder); return (A) this; } - public A setToAllOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public A setToAllOf(Integer index, V1JSONSchemaProps item) { if (this.allOf == null) { - this.allOf = - new java.util.ArrayList(); + this.allOf = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= _visitables.get("allOf").size()) { _visitables.get("allOf").add(builder); } else { @@ -232,26 +224,22 @@ public A setToAllOf( public A addToAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { if (this.allOf == null) { - this.allOf = - new java.util.ArrayList(); + this.allOf = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + 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) { + public A addAllToAllOf(Collection items) { if (this.allOf == null) { - this.allOf = - new java.util.ArrayList(); + this.allOf = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("allOf").add(builder); this.allOf.add(builder); } @@ -259,9 +247,8 @@ public A addAllToAllOf(Collection items) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + public A removeAllFromAllOf(Collection items) { + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("allOf").remove(builder); if (this.allOf != null) { this.allOf.remove(builder); @@ -283,14 +268,12 @@ public A removeAllFromAllOf( return (A) this; } - public A removeMatchingFromAllOf( - Predicate predicate) { + public A removeMatchingFromAllOf(Predicate predicate) { if (allOf == null) return (A) this; - final Iterator each = - allOf.iterator(); + final Iterator each = allOf.iterator(); final List visitables = _visitables.get("allOf"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = each.next(); + V1JSONSchemaPropsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -305,30 +288,28 @@ public A removeMatchingFromAllOf( * @return The buildable object. */ @Deprecated - public java.util.List getAllOf() { + public List getAllOf() { return allOf != null ? build(allOf) : null; } - public java.util.List buildAllOf() { + public List buildAllOf() { return allOf != null ? build(allOf) : null; } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildAllOf(java.lang.Integer index) { + public V1JSONSchemaProps buildAllOf(Integer index) { return this.allOf.get(index).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildFirstAllOf() { + public V1JSONSchemaProps buildFirstAllOf() { return this.allOf.get(0).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildLastAllOf() { + public V1JSONSchemaProps buildLastAllOf() { return this.allOf.get(allOf.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingAllOf( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder item : allOf) { + public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : allOf) { if (predicate.test(item)) { return item.build(); } @@ -336,10 +317,8 @@ public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingAllOf( return null; } - public java.lang.Boolean hasMatchingAllOf( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder item : allOf) { + public Boolean hasMatchingAllOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : allOf) { if (predicate.test(item)) { return true; } @@ -347,13 +326,13 @@ public java.lang.Boolean hasMatchingAllOf( return false; } - public A withAllOf(java.util.List allOf) { + public A withAllOf(List allOf) { if (this.allOf != null) { _visitables.get("allOf").removeAll(this.allOf); } if (allOf != null) { - this.allOf = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : allOf) { + this.allOf = new ArrayList(); + for (V1JSONSchemaProps item : allOf) { this.addToAllOf(item); } } else { @@ -367,14 +346,14 @@ public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allO this.allOf.clear(); } if (allOf != null) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : allOf) { + for (V1JSONSchemaProps item : allOf) { this.addToAllOf(item); } } return (A) this; } - public java.lang.Boolean hasAllOf() { + public Boolean hasAllOf() { return allOf != null && !allOf.isEmpty(); } @@ -382,40 +361,33 @@ public V1JSONSchemaPropsFluent.AllOfNested addNewAllOf() { return new V1JSONSchemaPropsFluentImpl.AllOfNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested addNewAllOfLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public V1JSONSchemaPropsFluent.AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { return new V1JSONSchemaPropsFluentImpl.AllOfNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl.AllOfNestedImpl( - index, item); + public V1JSONSchemaPropsFluent.AllOfNested setNewAllOfLike( + Integer index, V1JSONSchemaProps item) { + return new V1JSONSchemaPropsFluentImpl.AllOfNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested editAllOf( - java.lang.Integer index) { + public V1JSONSchemaPropsFluent.AllOfNested editAllOf(Integer index) { if (allOf.size() <= index) throw new RuntimeException("Can't edit allOf. Index exceeds size."); return setNewAllOfLike(index, buildAllOf(index)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested - editFirstAllOf() { + public V1JSONSchemaPropsFluent.AllOfNested editFirstAllOf() { if (allOf.size() == 0) throw new RuntimeException("Can't edit first allOf. The list is empty."); return setNewAllOfLike(0, buildAllOf(0)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested - editLastAllOf() { + public V1JSONSchemaPropsFluent.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)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested - editMatchingAllOf( - java.util.function.Predicate - predicate) { + public V1JSONSchemaPropsFluent.AllOfNested editMatchingAllOf( + Predicate predicate) { int index = -1; for (int i = 0; i < allOf.size(); i++) { if (predicate.test(allOf.get(i))) { @@ -427,27 +399,21 @@ public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AllOfNested(); + this.anyOf = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("anyOf").add(index >= 0 ? index : _visitables.get("anyOf").size(), builder); this.anyOf.add(index >= 0 ? index : anyOf.size(), builder); return (A) this; } - public A setToAnyOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public A setToAnyOf(Integer index, V1JSONSchemaProps item) { if (this.anyOf == null) { - this.anyOf = - new java.util.ArrayList(); + this.anyOf = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= _visitables.get("anyOf").size()) { _visitables.get("anyOf").add(builder); } else { @@ -463,27 +429,22 @@ public A setToAnyOf( public A addToAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { if (this.anyOf == null) { - this.anyOf = - new java.util.ArrayList(); + this.anyOf = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("anyOf").add(builder); this.anyOf.add(builder); } return (A) this; } - public A addAllToAnyOf( - java.util.Collection items) { + public A addAllToAnyOf(Collection items) { if (this.anyOf == null) { - this.anyOf = - new java.util.ArrayList(); + this.anyOf = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("anyOf").add(builder); this.anyOf.add(builder); } @@ -491,9 +452,8 @@ public A addAllToAnyOf( } public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("anyOf").remove(builder); if (this.anyOf != null) { this.anyOf.remove(builder); @@ -502,11 +462,9 @@ public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps.. return (A) this; } - public A removeAllFromAnyOf( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + public A removeAllFromAnyOf(Collection items) { + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("anyOf").remove(builder); if (this.anyOf != null) { this.anyOf.remove(builder); @@ -515,15 +473,12 @@ public A removeAllFromAnyOf( return (A) this; } - public A removeMatchingFromAnyOf( - java.util.function.Predicate - predicate) { + public A removeMatchingFromAnyOf(Predicate predicate) { if (anyOf == null) return (A) this; - final Iterator each = - anyOf.iterator(); + final Iterator each = anyOf.iterator(); final List visitables = _visitables.get("anyOf"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = each.next(); + V1JSONSchemaPropsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -537,31 +492,29 @@ public A removeMatchingFromAnyOf( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getAnyOf() { + @Deprecated + public List getAnyOf() { return anyOf != null ? build(anyOf) : null; } - public java.util.List buildAnyOf() { + public List buildAnyOf() { return anyOf != null ? build(anyOf) : null; } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildAnyOf(java.lang.Integer index) { + public V1JSONSchemaProps buildAnyOf(Integer index) { return this.anyOf.get(index).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildFirstAnyOf() { + public V1JSONSchemaProps buildFirstAnyOf() { return this.anyOf.get(0).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildLastAnyOf() { + public V1JSONSchemaProps buildLastAnyOf() { return this.anyOf.get(anyOf.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingAnyOf( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder item : anyOf) { + public V1JSONSchemaProps buildMatchingAnyOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : anyOf) { if (predicate.test(item)) { return item.build(); } @@ -569,10 +522,8 @@ public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingAnyOf( return null; } - public java.lang.Boolean hasMatchingAnyOf( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder item : anyOf) { + public Boolean hasMatchingAnyOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : anyOf) { if (predicate.test(item)) { return true; } @@ -580,13 +531,13 @@ public java.lang.Boolean hasMatchingAnyOf( return false; } - public A withAnyOf(java.util.List anyOf) { + public A withAnyOf(List anyOf) { if (this.anyOf != null) { _visitables.get("anyOf").removeAll(this.anyOf); } if (anyOf != null) { - this.anyOf = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : anyOf) { + this.anyOf = new ArrayList(); + for (V1JSONSchemaProps item : anyOf) { this.addToAnyOf(item); } } else { @@ -600,14 +551,14 @@ public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyO this.anyOf.clear(); } if (anyOf != null) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : anyOf) { + for (V1JSONSchemaProps item : anyOf) { this.addToAnyOf(item); } } return (A) this; } - public java.lang.Boolean hasAnyOf() { + public Boolean hasAnyOf() { return anyOf != null && !anyOf.isEmpty(); } @@ -615,41 +566,33 @@ public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOf() { return new V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOfLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl( - -1, item); + public V1JSONSchemaPropsFluent.AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { + return new V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl( - index, item); + public V1JSONSchemaPropsFluent.AnyOfNested setNewAnyOfLike( + Integer index, V1JSONSchemaProps item) { + return new V1JSONSchemaPropsFluentImpl.AnyOfNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested editAnyOf( - java.lang.Integer index) { + public V1JSONSchemaPropsFluent.AnyOfNested editAnyOf(Integer index) { if (anyOf.size() <= index) throw new RuntimeException("Can't edit anyOf. Index exceeds size."); return setNewAnyOfLike(index, buildAnyOf(index)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested - editFirstAnyOf() { + public V1JSONSchemaPropsFluent.AnyOfNested editFirstAnyOf() { if (anyOf.size() == 0) throw new RuntimeException("Can't edit first anyOf. The list is empty."); return setNewAnyOfLike(0, buildAnyOf(0)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested - editLastAnyOf() { + public V1JSONSchemaPropsFluent.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)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested - editMatchingAnyOf( - java.util.function.Predicate - predicate) { + public V1JSONSchemaPropsFluent.AnyOfNested editMatchingAnyOf( + Predicate predicate) { int index = -1; for (int i = 0; i < anyOf.size(); i++) { if (predicate.test(anyOf.get(i))) { @@ -661,21 +604,20 @@ public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.AnyOfNested map) { + public A addToDefinitions(Map map) { if (this.definitions == null && map != null) { - this.definitions = new java.util.LinkedHashMap(); + this.definitions = new LinkedHashMap(); } if (map != null) { this.definitions.putAll(map); @@ -696,7 +637,7 @@ public A addToDefinitions( return (A) this; } - public A removeFromDefinitions(java.lang.String key) { + public A removeFromDefinitions(String key) { if (this.definitions == null) { return (A) this; } @@ -706,8 +647,7 @@ public A removeFromDefinitions(java.lang.String key) { return (A) this; } - public A removeFromDefinitions( - java.util.Map map) { + public A removeFromDefinitions(Map map) { if (this.definitions == null) { return (A) this; } @@ -721,29 +661,26 @@ public A removeFromDefinitions( return (A) this; } - public java.util.Map - getDefinitions() { + public Map getDefinitions() { return this.definitions; } - public A withDefinitions( - java.util.Map - definitions) { + public A withDefinitions(Map definitions) { if (definitions == null) { this.definitions = null; } else { - this.definitions = new java.util.LinkedHashMap(definitions); + this.definitions = new LinkedHashMap(definitions); } return (A) this; } - public java.lang.Boolean hasDefinitions() { + public Boolean hasDefinitions() { return this.definitions != null; } - public A addToDependencies(java.lang.String key, java.lang.Object value) { + public A addToDependencies(String key, Object value) { if (this.dependencies == null && key != null && value != null) { - this.dependencies = new java.util.LinkedHashMap(); + this.dependencies = new LinkedHashMap(); } if (key != null && value != null) { this.dependencies.put(key, value); @@ -751,9 +688,9 @@ public A addToDependencies(java.lang.String key, java.lang.Object value) { return (A) this; } - public A addToDependencies(java.util.Map map) { + public A addToDependencies(Map map) { if (this.dependencies == null && map != null) { - this.dependencies = new java.util.LinkedHashMap(); + this.dependencies = new LinkedHashMap(); } if (map != null) { this.dependencies.putAll(map); @@ -761,7 +698,7 @@ public A addToDependencies(java.util.Map map return (A) this; } - public A removeFromDependencies(java.lang.String key) { + public A removeFromDependencies(String key) { if (this.dependencies == null) { return (A) this; } @@ -771,7 +708,7 @@ public A removeFromDependencies(java.lang.String key) { return (A) this; } - public A removeFromDependencies(java.util.Map map) { + public A removeFromDependencies(Map map) { if (this.dependencies == null) { return (A) this; } @@ -785,47 +722,47 @@ public A removeFromDependencies(java.util.Map getDependencies() { + public Map getDependencies() { return this.dependencies; } - public A withDependencies(java.util.Map dependencies) { + public A withDependencies(Map dependencies) { if (dependencies == null) { this.dependencies = null; } else { - this.dependencies = new java.util.LinkedHashMap(dependencies); + this.dependencies = new LinkedHashMap(dependencies); } return (A) this; } - public java.lang.Boolean hasDependencies() { + public Boolean hasDependencies() { return this.dependencies != null; } - public java.lang.String getDescription() { + public String getDescription() { return this.description; } - public A withDescription(java.lang.String description) { + public A withDescription(String description) { this.description = description; return (A) this; } - public java.lang.Boolean hasDescription() { + public Boolean hasDescription() { return this.description != null; } - public A addToEnum(java.lang.Integer index, java.lang.Object item) { + public A addToEnum(Integer index, Object item) { if (this._enum == null) { - this._enum = new java.util.ArrayList(); + this._enum = new ArrayList(); } this._enum.add(index, item); return (A) this; } - public A setToEnum(java.lang.Integer index, java.lang.Object item) { + public A setToEnum(Integer index, Object item) { if (this._enum == null) { - this._enum = new java.util.ArrayList(); + this._enum = new ArrayList(); } this._enum.set(index, item); return (A) this; @@ -833,26 +770,26 @@ public A setToEnum(java.lang.Integer index, java.lang.Object item) { public A addToEnum(java.lang.Object... items) { if (this._enum == null) { - this._enum = new java.util.ArrayList(); + this._enum = new ArrayList(); } - for (java.lang.Object item : items) { + for (Object item : items) { this._enum.add(item); } return (A) this; } - public A addAllToEnum(java.util.Collection items) { + public A addAllToEnum(Collection items) { if (this._enum == null) { - this._enum = new java.util.ArrayList(); + this._enum = new ArrayList(); } - for (java.lang.Object item : items) { + for (Object item : items) { this._enum.add(item); } return (A) this; } public A removeFromEnum(java.lang.Object... items) { - for (java.lang.Object item : items) { + for (Object item : items) { if (this._enum != null) { this._enum.remove(item); } @@ -860,8 +797,8 @@ public A removeFromEnum(java.lang.Object... items) { return (A) this; } - public A removeAllFromEnum(java.util.Collection items) { - for (java.lang.Object item : items) { + public A removeAllFromEnum(Collection items) { + for (Object item : items) { if (this._enum != null) { this._enum.remove(item); } @@ -869,25 +806,24 @@ public A removeAllFromEnum(java.util.Collection items) { return (A) this; } - public java.util.List getEnum() { + public List getEnum() { return this._enum; } - public java.lang.Object getEnum(java.lang.Integer index) { + public Object getEnum(Integer index) { return this._enum.get(index); } - public java.lang.Object getFirstEnum() { + public Object getFirstEnum() { return this._enum.get(0); } - public java.lang.Object getLastEnum() { + public Object getLastEnum() { return this._enum.get(_enum.size() - 1); } - public java.lang.Object getMatchingEnum( - java.util.function.Predicate predicate) { - for (java.lang.Object item : _enum) { + public Object getMatchingEnum(Predicate predicate) { + for (Object item : _enum) { if (predicate.test(item)) { return item; } @@ -895,9 +831,8 @@ public java.lang.Object getMatchingEnum( return null; } - public java.lang.Boolean hasMatchingEnum( - java.util.function.Predicate predicate) { - for (java.lang.Object item : _enum) { + public Boolean hasMatchingEnum(Predicate predicate) { + for (Object item : _enum) { if (predicate.test(item)) { return true; } @@ -905,10 +840,10 @@ public java.lang.Boolean hasMatchingEnum( return false; } - public A withEnum(java.util.List _enum) { + public A withEnum(List _enum) { if (_enum != null) { - this._enum = new java.util.ArrayList(); - for (java.lang.Object item : _enum) { + this._enum = new ArrayList(); + for (Object item : _enum) { this.addToEnum(item); } } else { @@ -922,53 +857,53 @@ public A withEnum(java.lang.Object... _enum) { this._enum.clear(); } if (_enum != null) { - for (java.lang.Object item : _enum) { + for (Object item : _enum) { this.addToEnum(item); } } return (A) this; } - public java.lang.Boolean hasEnum() { + public Boolean hasEnum() { return _enum != null && !_enum.isEmpty(); } - public java.lang.Object getExample() { + public Object getExample() { return this.example; } - public A withExample(java.lang.Object example) { + public A withExample(Object example) { this.example = example; return (A) this; } - public java.lang.Boolean hasExample() { + public Boolean hasExample() { return this.example != null; } - public java.lang.Boolean getExclusiveMaximum() { + public Boolean getExclusiveMaximum() { return this.exclusiveMaximum; } - public A withExclusiveMaximum(java.lang.Boolean exclusiveMaximum) { + public A withExclusiveMaximum(Boolean exclusiveMaximum) { this.exclusiveMaximum = exclusiveMaximum; return (A) this; } - public java.lang.Boolean hasExclusiveMaximum() { + public Boolean hasExclusiveMaximum() { return this.exclusiveMaximum != null; } - public java.lang.Boolean getExclusiveMinimum() { + public Boolean getExclusiveMinimum() { return this.exclusiveMinimum; } - public A withExclusiveMinimum(java.lang.Boolean exclusiveMinimum) { + public A withExclusiveMinimum(Boolean exclusiveMinimum) { this.exclusiveMinimum = exclusiveMinimum; return (A) this; } - public java.lang.Boolean hasExclusiveMinimum() { + public Boolean hasExclusiveMinimum() { return this.exclusiveMinimum != null; } @@ -977,26 +912,28 @@ public java.lang.Boolean hasExclusiveMinimum() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ExternalDocumentation getExternalDocs() { + @Deprecated + public V1ExternalDocumentation getExternalDocs() { return this.externalDocs != null ? this.externalDocs.build() : null; } - public io.kubernetes.client.openapi.models.V1ExternalDocumentation buildExternalDocs() { + public V1ExternalDocumentation buildExternalDocs() { return this.externalDocs != null ? this.externalDocs.build() : null; } - public A withExternalDocs( - io.kubernetes.client.openapi.models.V1ExternalDocumentation externalDocs) { + public A withExternalDocs(V1ExternalDocumentation externalDocs) { _visitables.get("externalDocs").remove(this.externalDocs); if (externalDocs != null) { this.externalDocs = new V1ExternalDocumentationBuilder(externalDocs); _visitables.get("externalDocs").add(this.externalDocs); + } else { + this.externalDocs = null; + _visitables.get("externalDocs").remove(this.externalDocs); } return (A) this; } - public java.lang.Boolean hasExternalDocs() { + public Boolean hasExternalDocs() { return this.externalDocs != null; } @@ -1004,183 +941,180 @@ public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocs() { return new V1JSONSchemaPropsFluentImpl.ExternalDocsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - withNewExternalDocsLike(io.kubernetes.client.openapi.models.V1ExternalDocumentation item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl - .ExternalDocsNestedImpl(item); + public V1JSONSchemaPropsFluent.ExternalDocsNested withNewExternalDocsLike( + V1ExternalDocumentation item) { + return new V1JSONSchemaPropsFluentImpl.ExternalDocsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - editExternalDocs() { + public V1JSONSchemaPropsFluent.ExternalDocsNested editExternalDocs() { return withNewExternalDocsLike(getExternalDocs()); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - editOrNewExternalDocs() { + public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocs() { return withNewExternalDocsLike( getExternalDocs() != null ? getExternalDocs() - : new io.kubernetes.client.openapi.models.V1ExternalDocumentationBuilder().build()); + : new V1ExternalDocumentationBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested - editOrNewExternalDocsLike(io.kubernetes.client.openapi.models.V1ExternalDocumentation item) { + public V1JSONSchemaPropsFluent.ExternalDocsNested editOrNewExternalDocsLike( + V1ExternalDocumentation item) { return withNewExternalDocsLike(getExternalDocs() != null ? getExternalDocs() : item); } - public java.lang.String getFormat() { + public String getFormat() { return this.format; } - public A withFormat(java.lang.String format) { + public A withFormat(String format) { this.format = format; return (A) this; } - public java.lang.Boolean hasFormat() { + public Boolean hasFormat() { return this.format != null; } - public java.lang.String getId() { + public String getId() { return this.id; } - public A withId(java.lang.String id) { + public A withId(String id) { this.id = id; return (A) this; } - public java.lang.Boolean hasId() { + public Boolean hasId() { return this.id != null; } - public java.lang.Object getItems() { + public Object getItems() { return this.items; } - public A withItems(java.lang.Object items) { + public A withItems(Object items) { this.items = items; return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return this.items != null; } - public java.lang.Long getMaxItems() { + public Long getMaxItems() { return this.maxItems; } - public A withMaxItems(java.lang.Long maxItems) { + public A withMaxItems(Long maxItems) { this.maxItems = maxItems; return (A) this; } - public java.lang.Boolean hasMaxItems() { + public Boolean hasMaxItems() { return this.maxItems != null; } - public java.lang.Long getMaxLength() { + public Long getMaxLength() { return this.maxLength; } - public A withMaxLength(java.lang.Long maxLength) { + public A withMaxLength(Long maxLength) { this.maxLength = maxLength; return (A) this; } - public java.lang.Boolean hasMaxLength() { + public Boolean hasMaxLength() { return this.maxLength != null; } - public java.lang.Long getMaxProperties() { + public Long getMaxProperties() { return this.maxProperties; } - public A withMaxProperties(java.lang.Long maxProperties) { + public A withMaxProperties(Long maxProperties) { this.maxProperties = maxProperties; return (A) this; } - public java.lang.Boolean hasMaxProperties() { + public Boolean hasMaxProperties() { return this.maxProperties != null; } - public java.lang.Double getMaximum() { + public Double getMaximum() { return this.maximum; } - public A withMaximum(java.lang.Double maximum) { + public A withMaximum(Double maximum) { this.maximum = maximum; return (A) this; } - public java.lang.Boolean hasMaximum() { + public Boolean hasMaximum() { return this.maximum != null; } - public java.lang.Long getMinItems() { + public Long getMinItems() { return this.minItems; } - public A withMinItems(java.lang.Long minItems) { + public A withMinItems(Long minItems) { this.minItems = minItems; return (A) this; } - public java.lang.Boolean hasMinItems() { + public Boolean hasMinItems() { return this.minItems != null; } - public java.lang.Long getMinLength() { + public Long getMinLength() { return this.minLength; } - public A withMinLength(java.lang.Long minLength) { + public A withMinLength(Long minLength) { this.minLength = minLength; return (A) this; } - public java.lang.Boolean hasMinLength() { + public Boolean hasMinLength() { return this.minLength != null; } - public java.lang.Long getMinProperties() { + public Long getMinProperties() { return this.minProperties; } - public A withMinProperties(java.lang.Long minProperties) { + public A withMinProperties(Long minProperties) { this.minProperties = minProperties; return (A) this; } - public java.lang.Boolean hasMinProperties() { + public Boolean hasMinProperties() { return this.minProperties != null; } - public java.lang.Double getMinimum() { + public Double getMinimum() { return this.minimum; } - public A withMinimum(java.lang.Double minimum) { + public A withMinimum(Double minimum) { this.minimum = minimum; return (A) this; } - public java.lang.Boolean hasMinimum() { + public Boolean hasMinimum() { return this.minimum != null; } - public java.lang.Double getMultipleOf() { + public Double getMultipleOf() { return this.multipleOf; } - public A withMultipleOf(java.lang.Double multipleOf) { + public A withMultipleOf(Double multipleOf) { this.multipleOf = multipleOf; return (A) this; } - public java.lang.Boolean hasMultipleOf() { + public Boolean hasMultipleOf() { return this.multipleOf != null; } @@ -1189,25 +1123,28 @@ public java.lang.Boolean hasMultipleOf() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1JSONSchemaProps getNot() { + @Deprecated + public V1JSONSchemaProps getNot() { return this.not != null ? this.not.build() : null; } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildNot() { + public V1JSONSchemaProps buildNot() { return this.not != null ? this.not.build() : null; } - public A withNot(io.kubernetes.client.openapi.models.V1JSONSchemaProps not) { + public A withNot(V1JSONSchemaProps not) { _visitables.get("not").remove(this.not); if (not != null) { - this.not = new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(not); + this.not = new V1JSONSchemaPropsBuilder(not); _visitables.get("not").add(this.not); + } else { + this.not = null; + _visitables.get("not").remove(this.not); } return (A) this; } - public java.lang.Boolean hasNot() { + public Boolean hasNot() { return this.not != null; } @@ -1215,61 +1152,50 @@ public V1JSONSchemaPropsFluent.NotNested withNewNot() { return new V1JSONSchemaPropsFluentImpl.NotNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested withNewNotLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl.NotNestedImpl(item); + public V1JSONSchemaPropsFluent.NotNested withNewNotLike(V1JSONSchemaProps item) { + return new V1JSONSchemaPropsFluentImpl.NotNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested editNot() { + public V1JSONSchemaPropsFluent.NotNested editNot() { return withNewNotLike(getNot()); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested editOrNewNot() { - return withNewNotLike( - getNot() != null - ? getNot() - : new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder().build()); + public V1JSONSchemaPropsFluent.NotNested editOrNewNot() { + return withNewNotLike(getNot() != null ? getNot() : new V1JSONSchemaPropsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.NotNested editOrNewNotLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public V1JSONSchemaPropsFluent.NotNested editOrNewNotLike(V1JSONSchemaProps item) { return withNewNotLike(getNot() != null ? getNot() : item); } - public java.lang.Boolean getNullable() { + public Boolean getNullable() { return this.nullable; } - public A withNullable(java.lang.Boolean nullable) { + public A withNullable(Boolean nullable) { this.nullable = nullable; return (A) this; } - public java.lang.Boolean hasNullable() { + public Boolean hasNullable() { return this.nullable != null; } - public A addToOneOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public A addToOneOf(Integer index, V1JSONSchemaProps item) { if (this.oneOf == null) { - this.oneOf = - new java.util.ArrayList(); + this.oneOf = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("oneOf").add(index >= 0 ? index : _visitables.get("oneOf").size(), builder); this.oneOf.add(index >= 0 ? index : oneOf.size(), builder); return (A) this; } - public A setToOneOf( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + public A setToOneOf(Integer index, V1JSONSchemaProps item) { if (this.oneOf == null) { - this.oneOf = - new java.util.ArrayList(); + this.oneOf = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); if (index < 0 || index >= _visitables.get("oneOf").size()) { _visitables.get("oneOf").add(builder); } else { @@ -1285,27 +1211,22 @@ public A setToOneOf( public A addToOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { if (this.oneOf == null) { - this.oneOf = - new java.util.ArrayList(); + this.oneOf = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("oneOf").add(builder); this.oneOf.add(builder); } return (A) this; } - public A addAllToOneOf( - java.util.Collection items) { + public A addAllToOneOf(Collection items) { if (this.oneOf == null) { - this.oneOf = - new java.util.ArrayList(); + this.oneOf = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("oneOf").add(builder); this.oneOf.add(builder); } @@ -1313,9 +1234,8 @@ public A addAllToOneOf( } public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("oneOf").remove(builder); if (this.oneOf != null) { this.oneOf.remove(builder); @@ -1324,11 +1244,9 @@ public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps.. return (A) this; } - public A removeAllFromOneOf( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : items) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = - new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(item); + public A removeAllFromOneOf(Collection items) { + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); _visitables.get("oneOf").remove(builder); if (this.oneOf != null) { this.oneOf.remove(builder); @@ -1337,15 +1255,12 @@ public A removeAllFromOneOf( return (A) this; } - public A removeMatchingFromOneOf( - java.util.function.Predicate - predicate) { + public A removeMatchingFromOneOf(Predicate predicate) { if (oneOf == null) return (A) this; - final Iterator each = - oneOf.iterator(); + final Iterator each = oneOf.iterator(); final List visitables = _visitables.get("oneOf"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder = each.next(); + V1JSONSchemaPropsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1359,31 +1274,29 @@ public A removeMatchingFromOneOf( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getOneOf() { + @Deprecated + public List getOneOf() { return oneOf != null ? build(oneOf) : null; } - public java.util.List buildOneOf() { + public List buildOneOf() { return oneOf != null ? build(oneOf) : null; } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildOneOf(java.lang.Integer index) { + public V1JSONSchemaProps buildOneOf(Integer index) { return this.oneOf.get(index).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildFirstOneOf() { + public V1JSONSchemaProps buildFirstOneOf() { return this.oneOf.get(0).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildLastOneOf() { + public V1JSONSchemaProps buildLastOneOf() { return this.oneOf.get(oneOf.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingOneOf( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder item : oneOf) { + public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : oneOf) { if (predicate.test(item)) { return item.build(); } @@ -1391,10 +1304,8 @@ public io.kubernetes.client.openapi.models.V1JSONSchemaProps buildMatchingOneOf( return null; } - public java.lang.Boolean hasMatchingOneOf( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder item : oneOf) { + public Boolean hasMatchingOneOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : oneOf) { if (predicate.test(item)) { return true; } @@ -1402,13 +1313,13 @@ public java.lang.Boolean hasMatchingOneOf( return false; } - public A withOneOf(java.util.List oneOf) { + public A withOneOf(List oneOf) { if (this.oneOf != null) { _visitables.get("oneOf").removeAll(this.oneOf); } if (oneOf != null) { - this.oneOf = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : oneOf) { + this.oneOf = new ArrayList(); + for (V1JSONSchemaProps item : oneOf) { this.addToOneOf(item); } } else { @@ -1422,14 +1333,14 @@ public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneO this.oneOf.clear(); } if (oneOf != null) { - for (io.kubernetes.client.openapi.models.V1JSONSchemaProps item : oneOf) { + for (V1JSONSchemaProps item : oneOf) { this.addToOneOf(item); } } return (A) this; } - public java.lang.Boolean hasOneOf() { + public Boolean hasOneOf() { return oneOf != null && !oneOf.isEmpty(); } @@ -1437,41 +1348,33 @@ public V1JSONSchemaPropsFluent.OneOfNested addNewOneOf() { return new V1JSONSchemaPropsFluentImpl.OneOfNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested addNewOneOfLike( - io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl.OneOfNestedImpl( - -1, item); + public V1JSONSchemaPropsFluent.OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { + return new V1JSONSchemaPropsFluentImpl.OneOfNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { - return new io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluentImpl.OneOfNestedImpl( - index, item); + public V1JSONSchemaPropsFluent.OneOfNested setNewOneOfLike( + Integer index, V1JSONSchemaProps item) { + return new V1JSONSchemaPropsFluentImpl.OneOfNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested editOneOf( - java.lang.Integer index) { + public V1JSONSchemaPropsFluent.OneOfNested editOneOf(Integer index) { if (oneOf.size() <= index) throw new RuntimeException("Can't edit oneOf. Index exceeds size."); return setNewOneOfLike(index, buildOneOf(index)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested - editFirstOneOf() { + public V1JSONSchemaPropsFluent.OneOfNested editFirstOneOf() { if (oneOf.size() == 0) throw new RuntimeException("Can't edit first oneOf. The list is empty."); return setNewOneOfLike(0, buildOneOf(0)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested - editLastOneOf() { + public V1JSONSchemaPropsFluent.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)); } - public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested - editMatchingOneOf( - java.util.function.Predicate - predicate) { + public V1JSONSchemaPropsFluent.OneOfNested editMatchingOneOf( + Predicate predicate) { int index = -1; for (int i = 0; i < oneOf.size(); i++) { if (predicate.test(oneOf.get(i))) { @@ -1483,23 +1386,22 @@ public io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.OneOfNested map) { + public A addToPatternProperties(Map map) { if (this.patternProperties == null && map != null) { - this.patternProperties = new java.util.LinkedHashMap(); + this.patternProperties = new LinkedHashMap(); } if (map != null) { this.patternProperties.putAll(map); @@ -1518,7 +1419,7 @@ public A addToPatternProperties( return (A) this; } - public A removeFromPatternProperties(java.lang.String key) { + public A removeFromPatternProperties(String key) { if (this.patternProperties == null) { return (A) this; } @@ -1528,8 +1429,7 @@ public A removeFromPatternProperties(java.lang.String key) { return (A) this; } - public A removeFromPatternProperties( - java.util.Map map) { + public A removeFromPatternProperties(Map map) { if (this.patternProperties == null) { return (A) this; } @@ -1543,30 +1443,26 @@ public A removeFromPatternProperties( return (A) this; } - public java.util.Map - getPatternProperties() { + public Map getPatternProperties() { return this.patternProperties; } - public A withPatternProperties( - java.util.Map - patternProperties) { + public A withPatternProperties(Map patternProperties) { if (patternProperties == null) { this.patternProperties = null; } else { - this.patternProperties = new java.util.LinkedHashMap(patternProperties); + this.patternProperties = new LinkedHashMap(patternProperties); } return (A) this; } - public java.lang.Boolean hasPatternProperties() { + public Boolean hasPatternProperties() { return this.patternProperties != null; } - public A addToProperties( - java.lang.String key, io.kubernetes.client.openapi.models.V1JSONSchemaProps value) { + public A addToProperties(String key, V1JSONSchemaProps value) { if (this.properties == null && key != null && value != null) { - this.properties = new java.util.LinkedHashMap(); + this.properties = new LinkedHashMap(); } if (key != null && value != null) { this.properties.put(key, value); @@ -1574,10 +1470,9 @@ public A addToProperties( return (A) this; } - public A addToProperties( - java.util.Map map) { + public A addToProperties(Map map) { if (this.properties == null && map != null) { - this.properties = new java.util.LinkedHashMap(); + this.properties = new LinkedHashMap(); } if (map != null) { this.properties.putAll(map); @@ -1585,7 +1480,7 @@ public A addToProperties( return (A) this; } - public A removeFromProperties(java.lang.String key) { + public A removeFromProperties(String key) { if (this.properties == null) { return (A) this; } @@ -1595,8 +1490,7 @@ public A removeFromProperties(java.lang.String key) { return (A) this; } - public A removeFromProperties( - java.util.Map map) { + public A removeFromProperties(Map map) { if (this.properties == null) { return (A) this; } @@ -1610,37 +1504,34 @@ public A removeFromProperties( return (A) this; } - public java.util.Map - getProperties() { + public Map getProperties() { return this.properties; } - public A withProperties( - java.util.Map - properties) { + public A withProperties(Map properties) { if (properties == null) { this.properties = null; } else { - this.properties = new java.util.LinkedHashMap(properties); + this.properties = new LinkedHashMap(properties); } return (A) this; } - public java.lang.Boolean hasProperties() { + public Boolean hasProperties() { return this.properties != null; } - public A addToRequired(java.lang.Integer index, java.lang.String item) { + public A addToRequired(Integer index, String item) { if (this.required == null) { - this.required = new java.util.ArrayList(); + this.required = new ArrayList(); } this.required.add(index, item); return (A) this; } - public A setToRequired(java.lang.Integer index, java.lang.String item) { + public A setToRequired(Integer index, String item) { if (this.required == null) { - this.required = new java.util.ArrayList(); + this.required = new ArrayList(); } this.required.set(index, item); return (A) this; @@ -1648,26 +1539,26 @@ public A setToRequired(java.lang.Integer index, java.lang.String item) { public A addToRequired(java.lang.String... items) { if (this.required == null) { - this.required = new java.util.ArrayList(); + this.required = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.required.add(item); } return (A) this; } - public A addAllToRequired(java.util.Collection items) { + public A addAllToRequired(Collection items) { if (this.required == null) { - this.required = new java.util.ArrayList(); + this.required = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.required.add(item); } return (A) this; } public A removeFromRequired(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.required != null) { this.required.remove(item); } @@ -1675,8 +1566,8 @@ public A removeFromRequired(java.lang.String... items) { return (A) this; } - public A removeAllFromRequired(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromRequired(Collection items) { + for (String item : items) { if (this.required != null) { this.required.remove(item); } @@ -1684,25 +1575,24 @@ public A removeAllFromRequired(java.util.Collection items) { return (A) this; } - public java.util.List getRequired() { + public List getRequired() { return this.required; } - public java.lang.String getRequired(java.lang.Integer index) { + public String getRequired(Integer index) { return this.required.get(index); } - public java.lang.String getFirstRequired() { + public String getFirstRequired() { return this.required.get(0); } - public java.lang.String getLastRequired() { + public String getLastRequired() { return this.required.get(required.size() - 1); } - public java.lang.String getMatchingRequired( - java.util.function.Predicate predicate) { - for (java.lang.String item : required) { + public String getMatchingRequired(Predicate predicate) { + for (String item : required) { if (predicate.test(item)) { return item; } @@ -1710,9 +1600,8 @@ public java.lang.String getMatchingRequired( return null; } - public java.lang.Boolean hasMatchingRequired( - java.util.function.Predicate predicate) { - for (java.lang.String item : required) { + public Boolean hasMatchingRequired(Predicate predicate) { + for (String item : required) { if (predicate.test(item)) { return true; } @@ -1720,10 +1609,10 @@ public java.lang.Boolean hasMatchingRequired( return false; } - public A withRequired(java.util.List required) { + public A withRequired(List required) { if (required != null) { - this.required = new java.util.ArrayList(); - for (java.lang.String item : required) { + this.required = new ArrayList(); + for (String item : required) { this.addToRequired(item); } } else { @@ -1737,57 +1626,57 @@ public A withRequired(java.lang.String... required) { this.required.clear(); } if (required != null) { - for (java.lang.String item : required) { + for (String item : required) { this.addToRequired(item); } } return (A) this; } - public java.lang.Boolean hasRequired() { + public Boolean hasRequired() { return required != null && !required.isEmpty(); } - public java.lang.String getTitle() { + public String getTitle() { return this.title; } - public A withTitle(java.lang.String title) { + public A withTitle(String title) { this.title = title; return (A) this; } - public java.lang.Boolean hasTitle() { + public Boolean hasTitle() { return this.title != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public java.lang.Boolean getUniqueItems() { + public Boolean getUniqueItems() { return this.uniqueItems; } - public A withUniqueItems(java.lang.Boolean uniqueItems) { + public A withUniqueItems(Boolean uniqueItems) { this.uniqueItems = uniqueItems; return (A) this; } - public java.lang.Boolean hasUniqueItems() { + public Boolean hasUniqueItems() { return this.uniqueItems != null; } - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1JSONSchemaPropsFluentImpl that = (V1JSONSchemaPropsFluentImpl) o; @@ -1896,7 +1785,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if ($ref != null) { @@ -2070,19 +1959,18 @@ public A withUniqueItems() { class AllOfNestedImpl extends V1JSONSchemaPropsFluentImpl> implements V1JSONSchemaPropsFluent.AllOfNested, Nested { - AllOfNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + AllOfNestedImpl(Integer index, V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } AllOfNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(this); + this.builder = new V1JSONSchemaPropsBuilder(this); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder; - java.lang.Integer index; + V1JSONSchemaPropsBuilder builder; + Integer index; public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.setToAllOf(index, builder.build()); @@ -2095,20 +1983,19 @@ public N endAllOf() { class AnyOfNestedImpl extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.AnyOfNested, io.kubernetes.client.fluent.Nested { - AnyOfNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + implements V1JSONSchemaPropsFluent.AnyOfNested, Nested { + AnyOfNestedImpl(Integer index, V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } AnyOfNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(this); + this.builder = new V1JSONSchemaPropsBuilder(this); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder; - java.lang.Integer index; + V1JSONSchemaPropsBuilder builder; + Integer index; public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.setToAnyOf(index, builder.build()); @@ -2121,17 +2008,16 @@ public N endAnyOf() { class ExternalDocsNestedImpl extends V1ExternalDocumentationFluentImpl> - implements io.kubernetes.client.openapi.models.V1JSONSchemaPropsFluent.ExternalDocsNested, - io.kubernetes.client.fluent.Nested { - ExternalDocsNestedImpl(io.kubernetes.client.openapi.models.V1ExternalDocumentation item) { + implements V1JSONSchemaPropsFluent.ExternalDocsNested, Nested { + ExternalDocsNestedImpl(V1ExternalDocumentation item) { this.builder = new V1ExternalDocumentationBuilder(this, item); } ExternalDocsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ExternalDocumentationBuilder(this); + this.builder = new V1ExternalDocumentationBuilder(this); } - io.kubernetes.client.openapi.models.V1ExternalDocumentationBuilder builder; + V1ExternalDocumentationBuilder builder; public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.withExternalDocs(builder.build()); @@ -2143,16 +2029,16 @@ public N endExternalDocs() { } class NotNestedImpl extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.NotNested, io.kubernetes.client.fluent.Nested { - NotNestedImpl(io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + implements V1JSONSchemaPropsFluent.NotNested, Nested { + NotNestedImpl(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } NotNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(this); + this.builder = new V1JSONSchemaPropsBuilder(this); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder; + V1JSONSchemaPropsBuilder builder; public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.withNot(builder.build()); @@ -2165,20 +2051,19 @@ public N endNot() { class OneOfNestedImpl extends V1JSONSchemaPropsFluentImpl> - implements V1JSONSchemaPropsFluent.OneOfNested, io.kubernetes.client.fluent.Nested { - OneOfNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JSONSchemaProps item) { + implements V1JSONSchemaPropsFluent.OneOfNested, Nested { + OneOfNestedImpl(Integer index, V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } OneOfNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder(this); + this.builder = new V1JSONSchemaPropsBuilder(this); } - io.kubernetes.client.openapi.models.V1JSONSchemaPropsBuilder builder; - java.lang.Integer index; + V1JSONSchemaPropsBuilder builder; + Integer index; public N and() { return (N) V1JSONSchemaPropsFluentImpl.this.setToOneOf(index, builder.build()); 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 4bcf1927be..71643ad176 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JobBuilder extends V1JobFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Job, - io.kubernetes.client.openapi.models.V1JobBuilder> { + implements VisitableBuilder { public V1JobBuilder() { this(false); } @@ -30,22 +28,15 @@ public V1JobBuilder(V1JobFluent fluent) { this(fluent, false); } - public V1JobBuilder( - io.kubernetes.client.openapi.models.V1JobFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JobBuilder(V1JobFluent fluent, Boolean validationEnabled) { this(fluent, new V1Job(), validationEnabled); } - public V1JobBuilder( - io.kubernetes.client.openapi.models.V1JobFluent fluent, - io.kubernetes.client.openapi.models.V1Job instance) { + public V1JobBuilder(V1JobFluent fluent, V1Job instance) { this(fluent, instance, false); } - public V1JobBuilder( - io.kubernetes.client.openapi.models.V1JobFluent fluent, - io.kubernetes.client.openapi.models.V1Job instance, - java.lang.Boolean validationEnabled) { + public V1JobBuilder(V1JobFluent fluent, V1Job instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,12 +51,11 @@ public V1JobBuilder( this.validationEnabled = validationEnabled; } - public V1JobBuilder(io.kubernetes.client.openapi.models.V1Job instance) { + public V1JobBuilder(V1Job instance) { this(instance, false); } - public V1JobBuilder( - io.kubernetes.client.openapi.models.V1Job instance, java.lang.Boolean validationEnabled) { + public V1JobBuilder(V1Job instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +70,10 @@ public V1JobBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JobFluent fluent; - java.lang.Boolean validationEnabled; + V1JobFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Job build() { + public V1Job build() { V1Job buildable = new V1Job(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 7e54a16df0..c90f9f4562 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JobConditionBuilder extends V1JobConditionFluentImpl - implements VisitableBuilder< - V1JobCondition, io.kubernetes.client.openapi.models.V1JobConditionBuilder> { + implements VisitableBuilder { public V1JobConditionBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1JobConditionBuilder(V1JobConditionFluent fluent) { this(fluent, false); } - public V1JobConditionBuilder( - io.kubernetes.client.openapi.models.V1JobConditionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JobConditionBuilder(V1JobConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1JobCondition(), validationEnabled); } - public V1JobConditionBuilder( - io.kubernetes.client.openapi.models.V1JobConditionFluent fluent, - io.kubernetes.client.openapi.models.V1JobCondition instance) { + public V1JobConditionBuilder(V1JobConditionFluent fluent, V1JobCondition instance) { this(fluent, instance, false); } public V1JobConditionBuilder( - io.kubernetes.client.openapi.models.V1JobConditionFluent fluent, - io.kubernetes.client.openapi.models.V1JobCondition instance, - java.lang.Boolean validationEnabled) { + V1JobConditionFluent fluent, V1JobCondition instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLastProbeTime(instance.getLastProbeTime()); @@ -61,13 +54,11 @@ public V1JobConditionBuilder( this.validationEnabled = validationEnabled; } - public V1JobConditionBuilder(io.kubernetes.client.openapi.models.V1JobCondition instance) { + public V1JobConditionBuilder(V1JobCondition instance) { this(instance, false); } - public V1JobConditionBuilder( - io.kubernetes.client.openapi.models.V1JobCondition instance, - java.lang.Boolean validationEnabled) { + public V1JobConditionBuilder(V1JobCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastProbeTime(instance.getLastProbeTime()); @@ -84,10 +75,10 @@ public V1JobConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JobConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1JobConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1JobCondition build() { + public V1JobCondition build() { V1JobCondition buildable = new V1JobCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); 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 c9644668c1..732bc2ce78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java @@ -19,37 +19,37 @@ public interface V1JobConditionFluent> extends Fluent { public OffsetDateTime getLastProbeTime(); - public A withLastProbeTime(java.time.OffsetDateTime lastProbeTime); + public A withLastProbeTime(OffsetDateTime lastProbeTime); public Boolean hasLastProbeTime(); - public java.time.OffsetDateTime getLastTransitionTime(); + public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public java.lang.Boolean hasLastTransitionTime(); + public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java index 8cc6a962ee..d8e8eb67db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluentImpl.java @@ -21,7 +21,7 @@ public class V1JobConditionFluentImpl> extends implements V1JobConditionFluent { public V1JobConditionFluentImpl() {} - public V1JobConditionFluentImpl(io.kubernetes.client.openapi.models.V1JobCondition instance) { + public V1JobConditionFluentImpl(V1JobCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -36,17 +36,17 @@ public V1JobConditionFluentImpl(io.kubernetes.client.openapi.models.V1JobConditi } private OffsetDateTime lastProbeTime; - private java.time.OffsetDateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(java.time.OffsetDateTime lastProbeTime) { + public A withLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return (A) this; } @@ -55,68 +55,68 @@ public Boolean hasLastProbeTime() { return this.lastProbeTime != null; } - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } - public java.lang.Boolean hasLastTransitionTime() { + public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -142,7 +142,7 @@ public int hashCode() { lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastProbeTime != null) { 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 00c5db409d..74cc4611c4 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 @@ -19,15 +19,15 @@ public interface V1JobFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1JobFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1JobFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1JobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editMetadata(); + public V1JobFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editOrNewMetadata(); + public V1JobFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1JobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1JobSpec getSpec(); - public io.kubernetes.client.openapi.models.V1JobSpec buildSpec(); + public V1JobSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1JobSpec spec); + public A withSpec(V1JobSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1JobFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1JobSpec item); + public V1JobFluent.SpecNested withNewSpecLike(V1JobSpec item); - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editSpec(); + public V1JobFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editOrNewSpec(); + public V1JobFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1JobSpec item); + public V1JobFluent.SpecNested editOrNewSpecLike(V1JobSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1JobStatus getStatus(); - public io.kubernetes.client.openapi.models.V1JobStatus buildStatus(); + public V1JobStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1JobStatus status); + public A withStatus(V1JobStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1JobFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1JobStatus item); + public V1JobFluent.StatusNested withNewStatusLike(V1JobStatus item); - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested editStatus(); + public V1JobFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested editOrNewStatus(); + public V1JobFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1JobStatus item); + public V1JobFluent.StatusNested editOrNewStatusLike(V1JobStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -114,16 +108,14 @@ public interface MetadataNested public N endMetadata(); } - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, V1JobSpecFluent> { + public interface SpecNested extends Nested, V1JobSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1JobStatusFluent> { + extends Nested, V1JobStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java index 16108f2687..9171062df1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluentImpl.java @@ -21,7 +21,7 @@ public class V1JobFluentImpl> extends BaseFluent implements V1JobFluent { public V1JobFluentImpl() {} - public V1JobFluentImpl(io.kubernetes.client.openapi.models.V1Job instance) { + public V1JobFluentImpl(V1Job instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1JobFluentImpl(io.kubernetes.client.openapi.models.V1Job instance) { } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1JobSpecBuilder spec; private V1JobStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1JobFluent.MetadataNested withNewMetadata() { return new V1JobFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1JobFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1JobFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editMetadata() { + public V1JobFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editOrNewMetadata() { + public V1JobFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1JobFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested editOrN * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1JobSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1JobSpec buildSpec() { + public V1JobSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1JobSpec spec) { + public A withSpec(V1JobSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1JobSpecBuilder(spec); + this.spec = new V1JobSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1JobFluent.SpecNested withNewSpec() { return new V1JobFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1JobSpec item) { - return new io.kubernetes.client.openapi.models.V1JobFluentImpl.SpecNestedImpl(item); + public V1JobFluent.SpecNested withNewSpecLike(V1JobSpec item) { + return new V1JobFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editSpec() { + public V1JobFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1JobSpecBuilder().build()); + public V1JobFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1JobSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1JobSpec item) { + public V1JobFluent.SpecNested editOrNewSpecLike(V1JobSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1JobFluent.SpecNested editOrNewSp * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1JobStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1JobStatus buildStatus() { + public V1JobStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1JobStatus status) { + public A withStatus(V1JobStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1JobStatusBuilder(status); + this.status = new V1JobStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,19 @@ public V1JobFluent.StatusNested withNewStatus() { return new V1JobFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1JobStatus item) { - return new io.kubernetes.client.openapi.models.V1JobFluentImpl.StatusNestedImpl(item); + public V1JobFluent.StatusNested withNewStatusLike(V1JobStatus item) { + return new V1JobFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested editStatus() { + public V1JobFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1JobStatusBuilder().build()); + public V1JobFluent.StatusNested editOrNewStatus() { + return withNewStatusLike(getStatus() != null ? getStatus() : new V1JobStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1JobStatus item) { + public V1JobFluent.StatusNested editOrNewStatusLike(V1JobStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +233,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +261,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobFluent.MetadataNested, Nested { + implements V1JobFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1JobFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +282,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1JobSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1JobSpec item) { + implements V1JobFluent.SpecNested, Nested { + SpecNestedImpl(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JobSpecBuilder(this); + this.builder = new V1JobSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1JobSpecBuilder builder; + V1JobSpecBuilder builder; public N and() { return (N) V1JobFluentImpl.this.withSpec(builder.build()); @@ -309,17 +303,16 @@ public N endSpec() { } class StatusNestedImpl extends V1JobStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1JobStatus item) { + implements V1JobFluent.StatusNested, Nested { + StatusNestedImpl(V1JobStatus item) { this.builder = new V1JobStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JobStatusBuilder(this); + this.builder = new V1JobStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1JobStatusBuilder builder; + V1JobStatusBuilder builder; public N and() { return (N) V1JobFluentImpl.this.withStatus(builder.build()); 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 a16bdcadce..f0faee22df 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JobListBuilder extends V1JobListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1JobList, - io.kubernetes.client.openapi.models.V1JobListBuilder> { + implements VisitableBuilder { public V1JobListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1JobListBuilder(V1JobListFluent fluent) { this(fluent, false); } - public V1JobListBuilder( - io.kubernetes.client.openapi.models.V1JobListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JobListBuilder(V1JobListFluent fluent, Boolean validationEnabled) { this(fluent, new V1JobList(), validationEnabled); } - public V1JobListBuilder( - io.kubernetes.client.openapi.models.V1JobListFluent fluent, - io.kubernetes.client.openapi.models.V1JobList instance) { + public V1JobListBuilder(V1JobListFluent fluent, V1JobList instance) { this(fluent, instance, false); } public V1JobListBuilder( - io.kubernetes.client.openapi.models.V1JobListFluent fluent, - io.kubernetes.client.openapi.models.V1JobList instance, - java.lang.Boolean validationEnabled) { + V1JobListFluent fluent, V1JobList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +50,11 @@ public V1JobListBuilder( this.validationEnabled = validationEnabled; } - public V1JobListBuilder(io.kubernetes.client.openapi.models.V1JobList instance) { + public V1JobListBuilder(V1JobList instance) { this(instance, false); } - public V1JobListBuilder( - io.kubernetes.client.openapi.models.V1JobList instance, java.lang.Boolean validationEnabled) { + public V1JobListBuilder(V1JobList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1JobListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JobListFluent fluent; - java.lang.Boolean validationEnabled; + V1JobListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1JobList build() { + public V1JobList build() { V1JobList buildable = new V1JobList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 5390e050c7..7f33ec2bfe 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 @@ -22,22 +22,21 @@ public interface V1JobListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1Job item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Job item); + public A setToItems(Integer index, V1Job item); public A addToItems(io.kubernetes.client.openapi.models.V1Job... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,77 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Job buildItem(java.lang.Integer index); + public V1Job buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Job buildFirstItem(); + public V1Job buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Job buildLastItem(); + public V1Job buildLastItem(); - public io.kubernetes.client.openapi.models.V1Job buildMatchingItem( - java.util.function.Predicate predicate); + public V1Job buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Job... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1JobListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Job item); + public V1JobListFluent.ItemsNested addNewItemLike(V1Job item); - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Job item); + public V1JobListFluent.ItemsNested setNewItemLike(Integer index, V1Job item); - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1JobListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editFirstItem(); + public V1JobListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editLastItem(); + public V1JobListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1JobListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1JobListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item); + public V1JobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested editMetadata(); + public V1JobListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested editOrNewMetadata(); + public V1JobListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1JobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1JobFluent> { public N and(); @@ -126,8 +117,7 @@ public interface ItemsNested extends Nested, V1JobFluent - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java index eca4c7e945..d04f64b77a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluentImpl.java @@ -38,14 +38,14 @@ public V1JobListFluentImpl(V1JobList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Job item) { + public A addToItems(Integer index, V1Job item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JobBuilder builder = - new io.kubernetes.client.openapi.models.V1JobBuilder(item); + V1JobBuilder builder = new V1JobBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Job item) { + public A setToItems(Integer index, V1Job item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JobBuilder builder = - new io.kubernetes.client.openapi.models.V1JobBuilder(item); + V1JobBuilder builder = new V1JobBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Job... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Job item : items) { - io.kubernetes.client.openapi.models.V1JobBuilder builder = - new io.kubernetes.client.openapi.models.V1JobBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Job item : items) { - io.kubernetes.client.openapi.models.V1JobBuilder builder = - new io.kubernetes.client.openapi.models.V1JobBuilder(item); + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection ite } public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items) { - for (io.kubernetes.client.openapi.models.V1Job item : items) { - io.kubernetes.client.openapi.models.V1JobBuilder builder = - new io.kubernetes.client.openapi.models.V1JobBuilder(item); + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items) { return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Job item : items) { - io.kubernetes.client.openapi.models.V1JobBuilder builder = - new io.kubernetes.client.openapi.models.V1JobBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1JobBuilder builder = each.next(); + V1JobBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,29 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Job buildItem(java.lang.Integer index) { + public V1Job buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Job buildFirstItem() { + public V1Job buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Job buildLastItem() { + public V1Job buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Job buildMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1JobBuilder item : items) { + public V1Job buildMatchingItem(Predicate predicate) { + for (V1JobBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -186,9 +177,8 @@ public io.kubernetes.client.openapi.models.V1Job buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1JobBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1JobBuilder item : items) { if (predicate.test(item)) { return true; } @@ -196,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Job item : items) { + this.items = new ArrayList(); + for (V1Job item : items) { this.addToItems(item); } } else { @@ -216,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Job... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Job item : items) { + for (V1Job item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -231,35 +221,31 @@ public V1JobListFluent.ItemsNested addNewItem() { return new V1JobListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Job item) { + public V1JobListFluent.ItemsNested addNewItemLike(V1Job item) { return new V1JobListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Job item) { - return new io.kubernetes.client.openapi.models.V1JobListFluentImpl.ItemsNestedImpl(index, item); + public V1JobListFluent.ItemsNested setNewItemLike(Integer index, V1Job item) { + return new V1JobListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1JobListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editFirstItem() { + public V1JobListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editLastItem() { + public V1JobListFluent.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 io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate) { + public V1JobListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -271,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested editMa return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -289,25 +275,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -315,24 +304,20 @@ public V1JobListFluent.MetadataNested withNewMetadata() { return new V1JobListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1JobListFluentImpl.MetadataNestedImpl(item); + public V1JobListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1JobListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested editMetadata() { + public V1JobListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested editOrNewMetadata() { + public V1JobListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1JobListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -352,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -376,19 +361,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1JobFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Job item) { + implements V1JobListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Job item) { this.index = index; this.builder = new V1JobBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1JobBuilder(this); + this.builder = new V1JobBuilder(this); } - io.kubernetes.client.openapi.models.V1JobBuilder builder; - java.lang.Integer index; + V1JobBuilder builder; + Integer index; public N and() { return (N) V1JobListFluentImpl.this.setToItems(index, builder.build()); @@ -400,17 +385,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1JobListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1JobListFluentImpl.this.withMetadata(builder.build()); 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 ae956e8336..9bc564fc6a 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JobSpecBuilder extends V1JobSpecFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1JobSpecBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1JobSpecBuilder(Boolean validationEnabled) { this(new V1JobSpec(), validationEnabled); } - public V1JobSpecBuilder(io.kubernetes.client.openapi.models.V1JobSpecFluent fluent) { + public V1JobSpecBuilder(V1JobSpecFluent fluent) { this(fluent, false); } - public V1JobSpecBuilder( - io.kubernetes.client.openapi.models.V1JobSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JobSpecBuilder(V1JobSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1JobSpec(), validationEnabled); } - public V1JobSpecBuilder( - io.kubernetes.client.openapi.models.V1JobSpecFluent fluent, - io.kubernetes.client.openapi.models.V1JobSpec instance) { + public V1JobSpecBuilder(V1JobSpecFluent fluent, V1JobSpec instance) { this(fluent, instance, false); } public V1JobSpecBuilder( - io.kubernetes.client.openapi.models.V1JobSpecFluent fluent, - io.kubernetes.client.openapi.models.V1JobSpec instance, - java.lang.Boolean validationEnabled) { + V1JobSpecFluent fluent, V1JobSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); @@ -57,6 +51,8 @@ public V1JobSpecBuilder( fluent.withParallelism(instance.getParallelism()); + fluent.withPodFailurePolicy(instance.getPodFailurePolicy()); + fluent.withSelector(instance.getSelector()); fluent.withSuspend(instance.getSuspend()); @@ -68,12 +64,11 @@ public V1JobSpecBuilder( this.validationEnabled = validationEnabled; } - public V1JobSpecBuilder(io.kubernetes.client.openapi.models.V1JobSpec instance) { + public V1JobSpecBuilder(V1JobSpec instance) { this(instance, false); } - public V1JobSpecBuilder( - io.kubernetes.client.openapi.models.V1JobSpec instance, java.lang.Boolean validationEnabled) { + public V1JobSpecBuilder(V1JobSpec instance, Boolean validationEnabled) { this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); @@ -87,6 +82,8 @@ public V1JobSpecBuilder( this.withParallelism(instance.getParallelism()); + this.withPodFailurePolicy(instance.getPodFailurePolicy()); + this.withSelector(instance.getSelector()); this.withSuspend(instance.getSuspend()); @@ -98,10 +95,10 @@ public V1JobSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JobSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1JobSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1JobSpec build() { + public V1JobSpec build() { V1JobSpec buildable = new V1JobSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); buildable.setBackoffLimit(fluent.getBackoffLimit()); @@ -109,6 +106,7 @@ public io.kubernetes.client.openapi.models.V1JobSpec build() { buildable.setCompletions(fluent.getCompletions()); buildable.setManualSelector(fluent.getManualSelector()); buildable.setParallelism(fluent.getParallelism()); + buildable.setPodFailurePolicy(fluent.getPodFailurePolicy()); buildable.setSelector(fluent.getSelector()); buildable.setSuspend(fluent.getSuspend()); buildable.setTemplate(fluent.getTemplate()); 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 626c909454..8b94c018cf 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 @@ -19,39 +19,65 @@ public interface V1JobSpecFluent> extends Fluent { public Long getActiveDeadlineSeconds(); - public A withActiveDeadlineSeconds(java.lang.Long activeDeadlineSeconds); + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds); public Boolean hasActiveDeadlineSeconds(); public Integer getBackoffLimit(); - public A withBackoffLimit(java.lang.Integer backoffLimit); + public A withBackoffLimit(Integer backoffLimit); - public java.lang.Boolean hasBackoffLimit(); + public Boolean hasBackoffLimit(); public String getCompletionMode(); - public A withCompletionMode(java.lang.String completionMode); + public A withCompletionMode(String completionMode); - public java.lang.Boolean hasCompletionMode(); + public Boolean hasCompletionMode(); - public java.lang.Integer getCompletions(); + public Integer getCompletions(); - public A withCompletions(java.lang.Integer completions); + public A withCompletions(Integer completions); - public java.lang.Boolean hasCompletions(); + public Boolean hasCompletions(); - public java.lang.Boolean getManualSelector(); + public Boolean getManualSelector(); - public A withManualSelector(java.lang.Boolean manualSelector); + public A withManualSelector(Boolean manualSelector); - public java.lang.Boolean hasManualSelector(); + public Boolean hasManualSelector(); - public java.lang.Integer getParallelism(); + public Integer getParallelism(); - public A withParallelism(java.lang.Integer parallelism); + public A withParallelism(Integer parallelism); - public java.lang.Boolean hasParallelism(); + public Boolean hasParallelism(); + + /** + * This method has been deprecated, please use method buildPodFailurePolicy instead. + * + * @return The buildable object. + */ + @Deprecated + public V1PodFailurePolicy getPodFailurePolicy(); + + public V1PodFailurePolicy buildPodFailurePolicy(); + + public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy); + + public Boolean hasPodFailurePolicy(); + + public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicy(); + + public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicyLike( + V1PodFailurePolicy item); + + public V1JobSpecFluent.PodFailurePolicyNested editPodFailurePolicy(); + + public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicy(); + + public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicyLike( + V1PodFailurePolicy item); /** * This method has been deprecated, please use method buildSelector instead. @@ -61,66 +87,69 @@ public interface V1JobSpecFluent> extends Fluent @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V1JobSpecFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested withNewSelectorLike( - io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1JobSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested editSelector(); + public V1JobSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested editOrNewSelector(); + public V1JobSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1JobSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - public java.lang.Boolean getSuspend(); + public Boolean getSuspend(); - public A withSuspend(java.lang.Boolean suspend); + public A withSuspend(Boolean suspend); - public java.lang.Boolean hasSuspend(); + public Boolean hasSuspend(); /** * This method has been deprecated, please use method buildTemplate instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate(); + public V1PodTemplateSpec buildTemplate(); - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template); + public A withTemplate(V1PodTemplateSpec template); - public java.lang.Boolean hasTemplate(); + public Boolean hasTemplate(); public V1JobSpecFluent.TemplateNested withNewTemplate(); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested withNewTemplateLike( - io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1JobSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested editTemplate(); + public V1JobSpecFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested editOrNewTemplate(); + public V1JobSpecFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1JobSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); - public java.lang.Integer getTtlSecondsAfterFinished(); + public Integer getTtlSecondsAfterFinished(); - public A withTtlSecondsAfterFinished(java.lang.Integer ttlSecondsAfterFinished); + public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished); - public java.lang.Boolean hasTtlSecondsAfterFinished(); + public Boolean hasTtlSecondsAfterFinished(); public A withManualSelector(); public A withSuspend(); + public interface PodFailurePolicyNested + extends Nested, V1PodFailurePolicyFluent> { + public N and(); + + public N endPodFailurePolicy(); + } + public interface SelectorNested extends Nested, V1LabelSelectorFluent> { public N and(); @@ -129,8 +158,7 @@ public interface SelectorNested } public interface TemplateNested - extends io.kubernetes.client.fluent.Nested, - V1PodTemplateSpecFluent> { + extends Nested, V1PodTemplateSpecFluent> { public N and(); public N endTemplate(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java index 9ce1d6baca..4840e2205a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V1JobSpecFluentImpl> extends BaseFluen implements V1JobSpecFluent { public V1JobSpecFluentImpl() {} - public V1JobSpecFluentImpl(io.kubernetes.client.openapi.models.V1JobSpec instance) { + public V1JobSpecFluentImpl(V1JobSpec instance) { this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withBackoffLimit(instance.getBackoffLimit()); @@ -34,6 +34,8 @@ public V1JobSpecFluentImpl(io.kubernetes.client.openapi.models.V1JobSpec instanc this.withParallelism(instance.getParallelism()); + this.withPodFailurePolicy(instance.getPodFailurePolicy()); + this.withSelector(instance.getSelector()); this.withSuspend(instance.getSuspend()); @@ -46,116 +48,176 @@ public V1JobSpecFluentImpl(io.kubernetes.client.openapi.models.V1JobSpec instanc private Long activeDeadlineSeconds; private Integer backoffLimit; private String completionMode; - private java.lang.Integer completions; + private Integer completions; private Boolean manualSelector; - private java.lang.Integer parallelism; + private Integer parallelism; + private V1PodFailurePolicyBuilder podFailurePolicy; private V1LabelSelectorBuilder selector; - private java.lang.Boolean suspend; + private Boolean suspend; private V1PodTemplateSpecBuilder template; - private java.lang.Integer ttlSecondsAfterFinished; + private Integer ttlSecondsAfterFinished; - public java.lang.Long getActiveDeadlineSeconds() { + public Long getActiveDeadlineSeconds() { return this.activeDeadlineSeconds; } - public A withActiveDeadlineSeconds(java.lang.Long activeDeadlineSeconds) { + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; return (A) this; } - public java.lang.Boolean hasActiveDeadlineSeconds() { + public Boolean hasActiveDeadlineSeconds() { return this.activeDeadlineSeconds != null; } - public java.lang.Integer getBackoffLimit() { + public Integer getBackoffLimit() { return this.backoffLimit; } - public A withBackoffLimit(java.lang.Integer backoffLimit) { + public A withBackoffLimit(Integer backoffLimit) { this.backoffLimit = backoffLimit; return (A) this; } - public java.lang.Boolean hasBackoffLimit() { + public Boolean hasBackoffLimit() { return this.backoffLimit != null; } - public java.lang.String getCompletionMode() { + public String getCompletionMode() { return this.completionMode; } - public A withCompletionMode(java.lang.String completionMode) { + public A withCompletionMode(String completionMode) { this.completionMode = completionMode; return (A) this; } - public java.lang.Boolean hasCompletionMode() { + public Boolean hasCompletionMode() { return this.completionMode != null; } - public java.lang.Integer getCompletions() { + public Integer getCompletions() { return this.completions; } - public A withCompletions(java.lang.Integer completions) { + public A withCompletions(Integer completions) { this.completions = completions; return (A) this; } - public java.lang.Boolean hasCompletions() { + public Boolean hasCompletions() { return this.completions != null; } - public java.lang.Boolean getManualSelector() { + public Boolean getManualSelector() { return this.manualSelector; } - public A withManualSelector(java.lang.Boolean manualSelector) { + public A withManualSelector(Boolean manualSelector) { this.manualSelector = manualSelector; return (A) this; } - public java.lang.Boolean hasManualSelector() { + public Boolean hasManualSelector() { return this.manualSelector != null; } - public java.lang.Integer getParallelism() { + public Integer getParallelism() { return this.parallelism; } - public A withParallelism(java.lang.Integer parallelism) { + public A withParallelism(Integer parallelism) { this.parallelism = parallelism; return (A) this; } - public java.lang.Boolean hasParallelism() { + public Boolean hasParallelism() { return this.parallelism != null; } + /** + * This method has been deprecated, please use method buildPodFailurePolicy instead. + * + * @return The buildable object. + */ + @Deprecated + public V1PodFailurePolicy getPodFailurePolicy() { + return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; + } + + public V1PodFailurePolicy buildPodFailurePolicy() { + return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; + } + + public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + _visitables.get("podFailurePolicy").remove(this.podFailurePolicy); + if (podFailurePolicy != null) { + this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); + _visitables.get("podFailurePolicy").add(this.podFailurePolicy); + } else { + this.podFailurePolicy = null; + _visitables.get("podFailurePolicy").remove(this.podFailurePolicy); + } + return (A) this; + } + + public Boolean hasPodFailurePolicy() { + return this.podFailurePolicy != null; + } + + public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicy() { + return new V1JobSpecFluentImpl.PodFailurePolicyNestedImpl(); + } + + public V1JobSpecFluent.PodFailurePolicyNested withNewPodFailurePolicyLike( + V1PodFailurePolicy item) { + return new V1JobSpecFluentImpl.PodFailurePolicyNestedImpl(item); + } + + public V1JobSpecFluent.PodFailurePolicyNested editPodFailurePolicy() { + return withNewPodFailurePolicyLike(getPodFailurePolicy()); + } + + public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicy() { + return withNewPodFailurePolicyLike( + getPodFailurePolicy() != null + ? getPodFailurePolicy() + : new V1PodFailurePolicyBuilder().build()); + } + + public V1JobSpecFluent.PodFailurePolicyNested editOrNewPodFailurePolicyLike( + V1PodFailurePolicy item) { + return withNewPodFailurePolicyLike( + getPodFailurePolicy() != null ? getPodFailurePolicy() : item); + } + /** * This method has been deprecated, please use method buildSelector instead. * * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -163,37 +225,33 @@ public V1JobSpecFluent.SelectorNested withNewSelector() { return new V1JobSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested withNewSelectorLike( - io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1JobSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1JobSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested editSelector() { + public V1JobSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested editOrNewSelector() { + public V1JobSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1JobSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } - public java.lang.Boolean getSuspend() { + public Boolean getSuspend() { return this.suspend; } - public A withSuspend(java.lang.Boolean suspend) { + public A withSuspend(Boolean suspend) { this.suspend = suspend; return (A) this; } - public java.lang.Boolean hasSuspend() { + public Boolean hasSuspend() { return this.suspend != null; } @@ -202,25 +260,28 @@ public java.lang.Boolean hasSuspend() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { - this.template = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(template); + this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -228,37 +289,33 @@ public V1JobSpecFluent.TemplateNested withNewTemplate() { return new V1JobSpecFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested withNewTemplateLike( - io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { - return new io.kubernetes.client.openapi.models.V1JobSpecFluentImpl.TemplateNestedImpl(item); + public V1JobSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new V1JobSpecFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested editTemplate() { + public V1JobSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested editOrNewTemplate() { + public V1JobSpecFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1JobSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } - public java.lang.Integer getTtlSecondsAfterFinished() { + public Integer getTtlSecondsAfterFinished() { return this.ttlSecondsAfterFinished; } - public A withTtlSecondsAfterFinished(java.lang.Integer ttlSecondsAfterFinished) { + public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; return (A) this; } - public java.lang.Boolean hasTtlSecondsAfterFinished() { + public Boolean hasTtlSecondsAfterFinished() { return this.ttlSecondsAfterFinished != null; } @@ -281,6 +338,9 @@ public boolean equals(Object o) { : that.manualSelector != null) return false; if (parallelism != null ? !parallelism.equals(that.parallelism) : that.parallelism != null) return false; + if (podFailurePolicy != null + ? !podFailurePolicy.equals(that.podFailurePolicy) + : that.podFailurePolicy != null) return false; if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; if (suspend != null ? !suspend.equals(that.suspend) : that.suspend != null) return false; if (template != null ? !template.equals(that.template) : that.template != null) return false; @@ -298,6 +358,7 @@ public int hashCode() { completions, manualSelector, parallelism, + podFailurePolicy, selector, suspend, template, @@ -305,7 +366,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (activeDeadlineSeconds != null) { @@ -332,6 +393,10 @@ public java.lang.String toString() { sb.append("parallelism:"); sb.append(parallelism + ","); } + if (podFailurePolicy != null) { + sb.append("podFailurePolicy:"); + sb.append(podFailurePolicy + ","); + } if (selector != null) { sb.append("selector:"); sb.append(selector + ","); @@ -360,17 +425,39 @@ public A withSuspend() { return withSuspend(true); } + class PodFailurePolicyNestedImpl + extends V1PodFailurePolicyFluentImpl> + implements V1JobSpecFluent.PodFailurePolicyNested, Nested { + PodFailurePolicyNestedImpl(V1PodFailurePolicy item) { + this.builder = new V1PodFailurePolicyBuilder(this, item); + } + + PodFailurePolicyNestedImpl() { + this.builder = new V1PodFailurePolicyBuilder(this); + } + + V1PodFailurePolicyBuilder builder; + + public N and() { + return (N) V1JobSpecFluentImpl.this.withPodFailurePolicy(builder.build()); + } + + public N endPodFailurePolicy() { + return and(); + } + } + class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobSpecFluent.SelectorNested, Nested { + implements V1JobSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1JobSpecFluentImpl.this.withSelector(builder.build()); @@ -382,17 +469,16 @@ public N endSelector() { } class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobSpecFluent.TemplateNested, - io.kubernetes.client.fluent.Nested { + implements V1JobSpecFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1JobSpecFluentImpl.this.withTemplate(builder.build()); 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 9392a6a4b5..88257b60d5 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JobStatusBuilder extends V1JobStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1JobStatus, - io.kubernetes.client.openapi.models.V1JobStatusBuilder> { + implements VisitableBuilder { public V1JobStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1JobStatusBuilder(V1JobStatusFluent fluent) { this(fluent, false); } - public V1JobStatusBuilder( - io.kubernetes.client.openapi.models.V1JobStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JobStatusBuilder(V1JobStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1JobStatus(), validationEnabled); } - public V1JobStatusBuilder( - io.kubernetes.client.openapi.models.V1JobStatusFluent fluent, - io.kubernetes.client.openapi.models.V1JobStatus instance) { + public V1JobStatusBuilder(V1JobStatusFluent fluent, V1JobStatus instance) { this(fluent, instance, false); } public V1JobStatusBuilder( - io.kubernetes.client.openapi.models.V1JobStatusFluent fluent, - io.kubernetes.client.openapi.models.V1JobStatus instance, - java.lang.Boolean validationEnabled) { + V1JobStatusFluent fluent, V1JobStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withActive(instance.getActive()); @@ -68,13 +60,11 @@ public V1JobStatusBuilder( this.validationEnabled = validationEnabled; } - public V1JobStatusBuilder(io.kubernetes.client.openapi.models.V1JobStatus instance) { + public V1JobStatusBuilder(V1JobStatus instance) { this(instance, false); } - public V1JobStatusBuilder( - io.kubernetes.client.openapi.models.V1JobStatus instance, - java.lang.Boolean validationEnabled) { + public V1JobStatusBuilder(V1JobStatus instance, Boolean validationEnabled) { this.fluent = this; this.withActive(instance.getActive()); @@ -97,10 +87,10 @@ public V1JobStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JobStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1JobStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1JobStatus build() { + public V1JobStatus build() { V1JobStatus buildable = new V1JobStatus(); buildable.setActive(fluent.getActive()); buildable.setCompletedIndexes(fluent.getCompletedIndexes()); 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 a9db438bd3..bef2b884f0 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 @@ -23,35 +23,33 @@ public interface V1JobStatusFluent> extends Fluent { public Integer getActive(); - public A withActive(java.lang.Integer active); + public A withActive(Integer active); public Boolean hasActive(); public String getCompletedIndexes(); - public A withCompletedIndexes(java.lang.String completedIndexes); + public A withCompletedIndexes(String completedIndexes); - public java.lang.Boolean hasCompletedIndexes(); + public Boolean hasCompletedIndexes(); public OffsetDateTime getCompletionTime(); - public A withCompletionTime(java.time.OffsetDateTime completionTime); + public A withCompletionTime(OffsetDateTime completionTime); - public java.lang.Boolean hasCompletionTime(); + public Boolean hasCompletionTime(); - public A addToConditions(java.lang.Integer index, V1JobCondition item); + public A addToConditions(Integer index, V1JobCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JobCondition item); + public A setToConditions(Integer index, V1JobCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1JobCondition... items); - public A addAllToConditions(Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -61,109 +59,91 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1JobCondition buildCondition(java.lang.Integer index); + public V1JobCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1JobCondition buildFirstCondition(); + public V1JobCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1JobCondition buildLastCondition(); + public V1JobCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1JobCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1JobCondition buildMatchingCondition(Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1JobStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1JobCondition item); + public V1JobStatusFluent.ConditionsNested addNewConditionLike(V1JobCondition item); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JobCondition item); + public V1JobStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1JobCondition item); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested editCondition( - java.lang.Integer index); + public V1JobStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - editFirstCondition(); + public V1JobStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - editLastCondition(); + public V1JobStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate); + public V1JobStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.Integer getFailed(); + public Integer getFailed(); - public A withFailed(java.lang.Integer failed); + public A withFailed(Integer failed); - public java.lang.Boolean hasFailed(); + public Boolean hasFailed(); - public java.lang.Integer getReady(); + public Integer getReady(); - public A withReady(java.lang.Integer ready); + public A withReady(Integer ready); - public java.lang.Boolean hasReady(); + public Boolean hasReady(); - public java.time.OffsetDateTime getStartTime(); + public OffsetDateTime getStartTime(); - public A withStartTime(java.time.OffsetDateTime startTime); + public A withStartTime(OffsetDateTime startTime); - public java.lang.Boolean hasStartTime(); + public Boolean hasStartTime(); - public java.lang.Integer getSucceeded(); + public Integer getSucceeded(); - public A withSucceeded(java.lang.Integer succeeded); + public A withSucceeded(Integer succeeded); - public java.lang.Boolean hasSucceeded(); + public Boolean hasSucceeded(); /** * This method has been deprecated, please use method buildUncountedTerminatedPods instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1UncountedTerminatedPods getUncountedTerminatedPods(); - public io.kubernetes.client.openapi.models.V1UncountedTerminatedPods - buildUncountedTerminatedPods(); + public V1UncountedTerminatedPods buildUncountedTerminatedPods(); - public A withUncountedTerminatedPods( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods uncountedTerminatedPods); + public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods); - public java.lang.Boolean hasUncountedTerminatedPods(); + public Boolean hasUncountedTerminatedPods(); public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPods(); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - withNewUncountedTerminatedPodsLike( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods item); + public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike( + V1UncountedTerminatedPods item); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - editUncountedTerminatedPods(); + public V1JobStatusFluent.UncountedTerminatedPodsNested editUncountedTerminatedPods(); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - editOrNewUncountedTerminatedPods(); + public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods(); - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - editOrNewUncountedTerminatedPodsLike( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods item); + public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike( + V1UncountedTerminatedPods item); public interface ConditionsNested extends Nested, V1JobConditionFluent> { @@ -173,7 +153,7 @@ public interface ConditionsNested } public interface UncountedTerminatedPodsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1UncountedTerminatedPodsFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java index bc0749356e..a32ea381cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluentImpl.java @@ -27,7 +27,7 @@ public class V1JobStatusFluentImpl> extends BaseF implements V1JobStatusFluent { public V1JobStatusFluentImpl() {} - public V1JobStatusFluentImpl(io.kubernetes.client.openapi.models.V1JobStatus instance) { + public V1JobStatusFluentImpl(V1JobStatus instance) { this.withActive(instance.getActive()); this.withCompletedIndexes(instance.getCompletedIndexes()); @@ -51,17 +51,17 @@ public V1JobStatusFluentImpl(io.kubernetes.client.openapi.models.V1JobStatus ins private String completedIndexes; private OffsetDateTime completionTime; private ArrayList conditions; - private java.lang.Integer failed; - private java.lang.Integer ready; - private java.time.OffsetDateTime startTime; - private java.lang.Integer succeeded; + private Integer failed; + private Integer ready; + private OffsetDateTime startTime; + private Integer succeeded; private V1UncountedTerminatedPodsBuilder uncountedTerminatedPods; - public java.lang.Integer getActive() { + public Integer getActive() { return this.active; } - public A withActive(java.lang.Integer active) { + public A withActive(Integer active) { this.active = active; return (A) this; } @@ -70,39 +70,37 @@ public Boolean hasActive() { return this.active != null; } - public java.lang.String getCompletedIndexes() { + public String getCompletedIndexes() { return this.completedIndexes; } - public A withCompletedIndexes(java.lang.String completedIndexes) { + public A withCompletedIndexes(String completedIndexes) { this.completedIndexes = completedIndexes; return (A) this; } - public java.lang.Boolean hasCompletedIndexes() { + public Boolean hasCompletedIndexes() { return this.completedIndexes != null; } - public java.time.OffsetDateTime getCompletionTime() { + public OffsetDateTime getCompletionTime() { return this.completionTime; } - public A withCompletionTime(java.time.OffsetDateTime completionTime) { + public A withCompletionTime(OffsetDateTime completionTime) { this.completionTime = completionTime; return (A) this; } - public java.lang.Boolean hasCompletionTime() { + public Boolean hasCompletionTime() { return this.completionTime != null; } - public A addToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JobCondition item) { + public A addToConditions(Integer index, V1JobCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1JobConditionBuilder(item); + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -110,14 +108,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JobCondition item) { + public A setToConditions(Integer index, V1JobCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1JobConditionBuilder(item); + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -133,27 +128,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JobCondition item : items) { - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1JobConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1JobCondition item : items) { - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1JobConditionBuilder(item); + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -161,9 +151,8 @@ public A addAllToConditions( } public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { - for (io.kubernetes.client.openapi.models.V1JobCondition item : items) { - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1JobConditionBuilder(item); + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -172,11 +161,9 @@ public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1JobCondition item : items) { - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1JobConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -185,14 +172,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder = each.next(); + V1JobConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -207,31 +192,28 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1JobCondition buildCondition( - java.lang.Integer index) { + public V1JobCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1JobCondition buildFirstCondition() { + public V1JobCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1JobCondition buildLastCondition() { + public V1JobCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1JobCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JobConditionBuilder item : conditions) { + public V1JobCondition buildMatchingCondition(Predicate predicate) { + for (V1JobConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -239,10 +221,8 @@ public io.kubernetes.client.openapi.models.V1JobCondition buildMatchingCondition return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1JobConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1JobConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -250,14 +230,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1JobCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1JobCondition item : conditions) { this.addToConditions(item); } } else { @@ -271,14 +250,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... co this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1JobCondition item : conditions) { + for (V1JobCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -286,43 +265,35 @@ public V1JobStatusFluent.ConditionsNested addNewCondition() { return new V1JobStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1JobCondition item) { + public V1JobStatusFluent.ConditionsNested addNewConditionLike(V1JobCondition item) { return new V1JobStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1JobCondition item) { - return new io.kubernetes.client.openapi.models.V1JobStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1JobStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1JobCondition item) { + return new V1JobStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested editCondition( - java.lang.Integer index) { + public V1JobStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - editFirstCondition() { + public V1JobStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - editLastCondition() { + public V1JobStatusFluent.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 io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate) { + public V1JobStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -334,55 +305,55 @@ public io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Integer getFailed() { + public Integer getFailed() { return this.failed; } - public A withFailed(java.lang.Integer failed) { + public A withFailed(Integer failed) { this.failed = failed; return (A) this; } - public java.lang.Boolean hasFailed() { + public Boolean hasFailed() { return this.failed != null; } - public java.lang.Integer getReady() { + public Integer getReady() { return this.ready; } - public A withReady(java.lang.Integer ready) { + public A withReady(Integer ready) { this.ready = ready; return (A) this; } - public java.lang.Boolean hasReady() { + public Boolean hasReady() { return this.ready != null; } - public java.time.OffsetDateTime getStartTime() { + public OffsetDateTime getStartTime() { return this.startTime; } - public A withStartTime(java.time.OffsetDateTime startTime) { + public A withStartTime(OffsetDateTime startTime) { this.startTime = startTime; return (A) this; } - public java.lang.Boolean hasStartTime() { + public Boolean hasStartTime() { return this.startTime != null; } - public java.lang.Integer getSucceeded() { + public Integer getSucceeded() { return this.succeeded; } - public A withSucceeded(java.lang.Integer succeeded) { + public A withSucceeded(Integer succeeded) { this.succeeded = succeeded; return (A) this; } - public java.lang.Boolean hasSucceeded() { + public Boolean hasSucceeded() { return this.succeeded != null; } @@ -391,29 +362,28 @@ public java.lang.Boolean hasSucceeded() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1UncountedTerminatedPods getUncountedTerminatedPods() { return this.uncountedTerminatedPods != null ? this.uncountedTerminatedPods.build() : null; } - public io.kubernetes.client.openapi.models.V1UncountedTerminatedPods - buildUncountedTerminatedPods() { + public V1UncountedTerminatedPods buildUncountedTerminatedPods() { return this.uncountedTerminatedPods != null ? this.uncountedTerminatedPods.build() : null; } - public A withUncountedTerminatedPods( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods uncountedTerminatedPods) { + public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { _visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); if (uncountedTerminatedPods != null) { - this.uncountedTerminatedPods = - new io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsBuilder( - uncountedTerminatedPods); + this.uncountedTerminatedPods = new V1UncountedTerminatedPodsBuilder(uncountedTerminatedPods); _visitables.get("uncountedTerminatedPods").add(this.uncountedTerminatedPods); + } else { + this.uncountedTerminatedPods = null; + _visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); } return (A) this; } - public java.lang.Boolean hasUncountedTerminatedPods() { + public Boolean hasUncountedTerminatedPods() { return this.uncountedTerminatedPods != null; } @@ -421,29 +391,24 @@ public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTermin return new V1JobStatusFluentImpl.UncountedTerminatedPodsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - withNewUncountedTerminatedPodsLike( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods item) { - return new io.kubernetes.client.openapi.models.V1JobStatusFluentImpl - .UncountedTerminatedPodsNestedImpl(item); + public V1JobStatusFluent.UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike( + V1UncountedTerminatedPods item) { + return new V1JobStatusFluentImpl.UncountedTerminatedPodsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - editUncountedTerminatedPods() { + public V1JobStatusFluent.UncountedTerminatedPodsNested editUncountedTerminatedPods() { return withNewUncountedTerminatedPodsLike(getUncountedTerminatedPods()); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - editOrNewUncountedTerminatedPods() { + public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods() { return withNewUncountedTerminatedPodsLike( getUncountedTerminatedPods() != null ? getUncountedTerminatedPods() - : new io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsBuilder().build()); + : new V1UncountedTerminatedPodsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobStatusFluent.UncountedTerminatedPodsNested - editOrNewUncountedTerminatedPodsLike( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods item) { + public V1JobStatusFluent.UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike( + V1UncountedTerminatedPods item) { return withNewUncountedTerminatedPodsLike( getUncountedTerminatedPods() != null ? getUncountedTerminatedPods() : item); } @@ -487,7 +452,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (active != null) { @@ -532,20 +497,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1JobConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1JobCondition item) { + implements V1JobStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1JobCondition item) { this.index = index; this.builder = new V1JobConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1JobConditionBuilder(this); + this.builder = new V1JobConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1JobConditionBuilder builder; - java.lang.Integer index; + V1JobConditionBuilder builder; + Integer index; public N and() { return (N) V1JobStatusFluentImpl.this.setToConditions(index, builder.build()); @@ -559,20 +523,16 @@ public N endCondition() { class UncountedTerminatedPodsNestedImpl extends V1UncountedTerminatedPodsFluentImpl< V1JobStatusFluent.UncountedTerminatedPodsNested> - implements io.kubernetes.client.openapi.models.V1JobStatusFluent - .UncountedTerminatedPodsNested< - N>, - io.kubernetes.client.fluent.Nested { - UncountedTerminatedPodsNestedImpl( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods item) { + implements V1JobStatusFluent.UncountedTerminatedPodsNested, Nested { + UncountedTerminatedPodsNestedImpl(V1UncountedTerminatedPods item) { this.builder = new V1UncountedTerminatedPodsBuilder(this, item); } UncountedTerminatedPodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsBuilder(this); + this.builder = new V1UncountedTerminatedPodsBuilder(this); } - io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsBuilder builder; + V1UncountedTerminatedPodsBuilder builder; public N and() { return (N) V1JobStatusFluentImpl.this.withUncountedTerminatedPods(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java index 06ec0894e4..f3d6d022d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1JobTemplateSpecBuilder extends V1JobTemplateSpecFluentImpl - implements VisitableBuilder< - V1JobTemplateSpec, io.kubernetes.client.openapi.models.V1JobTemplateSpecBuilder> { + implements VisitableBuilder { public V1JobTemplateSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent) { this(fluent, false); } - public V1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1JobTemplateSpec(), validationEnabled); } - public V1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent fluent, - io.kubernetes.client.openapi.models.V1JobTemplateSpec instance) { + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent, V1JobTemplateSpec instance) { this(fluent, instance, false); } public V1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent fluent, - io.kubernetes.client.openapi.models.V1JobTemplateSpec instance, - java.lang.Boolean validationEnabled) { + V1JobTemplateSpecFluent fluent, V1JobTemplateSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMetadata(instance.getMetadata()); @@ -53,13 +46,11 @@ public V1JobTemplateSpecBuilder( this.validationEnabled = validationEnabled; } - public V1JobTemplateSpecBuilder(io.kubernetes.client.openapi.models.V1JobTemplateSpec instance) { + public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance) { this(instance, false); } - public V1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1JobTemplateSpec instance, - java.lang.Boolean validationEnabled) { + public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMetadata(instance.getMetadata()); @@ -68,10 +59,10 @@ public V1JobTemplateSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1JobTemplateSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1JobTemplateSpec build() { + public V1JobTemplateSpec build() { V1JobTemplateSpec buildable = new V1JobTemplateSpec(); buildable.setMetadata(fluent.getMetadata()); buildable.setSpec(fluent.getSpec()); 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 0839b111d8..d5fe7e8a9c 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 @@ -26,51 +26,45 @@ public interface V1JobTemplateSpecFluent> e @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); public Boolean hasMetadata(); public V1JobTemplateSpecFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1JobTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - editMetadata(); + public V1JobTemplateSpecFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - editOrNewMetadata(); + public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1JobSpec getSpec(); - public io.kubernetes.client.openapi.models.V1JobSpec buildSpec(); + public V1JobSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1JobSpec spec); + public A withSpec(V1JobSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1JobTemplateSpecFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1JobSpec item); + public V1JobTemplateSpecFluent.SpecNested withNewSpecLike(V1JobSpec item); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested editSpec(); + public V1JobTemplateSpecFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested editOrNewSpec(); + public V1JobTemplateSpecFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1JobSpec item); + public V1JobTemplateSpecFluent.SpecNested editOrNewSpecLike(V1JobSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -80,8 +74,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1JobSpecFluent> { + extends Nested, V1JobSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java index d3828c4a76..91adc93e36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluentImpl.java @@ -21,8 +21,7 @@ public class V1JobTemplateSpecFluentImpl> e implements V1JobTemplateSpecFluent { public V1JobTemplateSpecFluentImpl() {} - public V1JobTemplateSpecFluentImpl( - io.kubernetes.client.openapi.models.V1JobTemplateSpec instance) { + public V1JobTemplateSpecFluentImpl(V1JobTemplateSpec instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); @@ -37,19 +36,22 @@ public V1JobTemplateSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } @@ -62,26 +64,20 @@ public V1JobTemplateSpecFluent.MetadataNested withNewMetadata() { return new V1JobTemplateSpecFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1JobTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1JobTemplateSpecFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - editMetadata() { + public V1JobTemplateSpecFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - editOrNewMetadata() { + public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1JobTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -90,25 +86,28 @@ public V1JobTemplateSpecFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1JobSpec getSpec() { + @Deprecated + public V1JobSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1JobSpec buildSpec() { + public V1JobSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1JobSpec spec) { + public A withSpec(V1JobSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1JobSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -116,24 +115,19 @@ public V1JobTemplateSpecFluent.SpecNested withNewSpec() { return new V1JobTemplateSpecFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1JobSpec item) { - return new io.kubernetes.client.openapi.models.V1JobTemplateSpecFluentImpl.SpecNestedImpl(item); + public V1JobTemplateSpecFluent.SpecNested withNewSpecLike(V1JobSpec item) { + return new V1JobTemplateSpecFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested editSpec() { + public V1JobTemplateSpecFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1JobSpecBuilder().build()); + public V1JobTemplateSpecFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1JobSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1JobSpec item) { + public V1JobTemplateSpecFluent.SpecNested editOrNewSpecLike(V1JobSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -167,17 +161,16 @@ public String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.MetadataNested, - Nested { + implements V1JobTemplateSpecFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1JobTemplateSpecFluentImpl.this.withMetadata(builder.build()); @@ -189,17 +182,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1JobSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1JobTemplateSpecFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1JobSpec item) { + implements V1JobTemplateSpecFluent.SpecNested, Nested { + SpecNestedImpl(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JobSpecBuilder(this); + this.builder = new V1JobSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1JobSpecBuilder builder; + V1JobSpecBuilder builder; public N and() { return (N) V1JobTemplateSpecFluentImpl.this.withSpec(builder.build()); 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 93c5ed5052..65cb68c7fc 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1KeyToPathBuilder extends V1KeyToPathFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1KeyToPath, V1KeyToPathBuilder> { + implements VisitableBuilder { public V1KeyToPathBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1KeyToPathBuilder(Boolean validationEnabled) { this(new V1KeyToPath(), validationEnabled); } - public V1KeyToPathBuilder(io.kubernetes.client.openapi.models.V1KeyToPathFluent fluent) { + public V1KeyToPathBuilder(V1KeyToPathFluent fluent) { this(fluent, false); } - public V1KeyToPathBuilder( - io.kubernetes.client.openapi.models.V1KeyToPathFluent fluent, - java.lang.Boolean validationEnabled) { + public V1KeyToPathBuilder(V1KeyToPathFluent fluent, Boolean validationEnabled) { this(fluent, new V1KeyToPath(), validationEnabled); } - public V1KeyToPathBuilder( - io.kubernetes.client.openapi.models.V1KeyToPathFluent fluent, - io.kubernetes.client.openapi.models.V1KeyToPath instance) { + public V1KeyToPathBuilder(V1KeyToPathFluent fluent, V1KeyToPath instance) { this(fluent, instance, false); } public V1KeyToPathBuilder( - io.kubernetes.client.openapi.models.V1KeyToPathFluent fluent, - io.kubernetes.client.openapi.models.V1KeyToPath instance, - java.lang.Boolean validationEnabled) { + V1KeyToPathFluent fluent, V1KeyToPath instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withKey(instance.getKey()); @@ -55,13 +48,11 @@ public V1KeyToPathBuilder( this.validationEnabled = validationEnabled; } - public V1KeyToPathBuilder(io.kubernetes.client.openapi.models.V1KeyToPath instance) { + public V1KeyToPathBuilder(V1KeyToPath instance) { this(instance, false); } - public V1KeyToPathBuilder( - io.kubernetes.client.openapi.models.V1KeyToPath instance, - java.lang.Boolean validationEnabled) { + public V1KeyToPathBuilder(V1KeyToPath instance, Boolean validationEnabled) { this.fluent = this; this.withKey(instance.getKey()); @@ -72,10 +63,10 @@ public V1KeyToPathBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1KeyToPathFluent fluent; - java.lang.Boolean validationEnabled; + V1KeyToPathFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1KeyToPath build() { + public V1KeyToPath build() { V1KeyToPath buildable = new V1KeyToPath(); buildable.setKey(fluent.getKey()); buildable.setMode(fluent.getMode()); 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 6047b3bfae..8b67b8db30 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 @@ -18,19 +18,19 @@ public interface V1KeyToPathFluent> extends Fluent { public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); public Boolean hasKey(); public Integer getMode(); - public A withMode(java.lang.Integer mode); + public A withMode(Integer mode); - public java.lang.Boolean hasMode(); + public Boolean hasMode(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java index 2b956cfa20..643090a84b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluentImpl.java @@ -20,7 +20,7 @@ public class V1KeyToPathFluentImpl> extends BaseF implements V1KeyToPathFluent { public V1KeyToPathFluentImpl() {} - public V1KeyToPathFluentImpl(io.kubernetes.client.openapi.models.V1KeyToPath instance) { + public V1KeyToPathFluentImpl(V1KeyToPath instance) { this.withKey(instance.getKey()); this.withMode(instance.getMode()); @@ -30,13 +30,13 @@ public V1KeyToPathFluentImpl(io.kubernetes.client.openapi.models.V1KeyToPath ins private String key; private Integer mode; - private java.lang.String path; + private String path; - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } @@ -45,29 +45,29 @@ public Boolean hasKey() { return this.key != null; } - public java.lang.Integer getMode() { + public Integer getMode() { return this.mode; } - public A withMode(java.lang.Integer mode) { + public A withMode(Integer mode) { this.mode = mode; return (A) this; } - public java.lang.Boolean hasMode() { + public Boolean hasMode() { return this.mode != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } @@ -85,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(key, mode, path, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (key != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java index bd54f6f346..5451e41bff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LabelSelectorBuilder extends V1LabelSelectorFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LabelSelector, V1LabelSelectorBuilder> { + implements VisitableBuilder { public V1LabelSelectorBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1LabelSelectorBuilder(Boolean validationEnabled) { this(new V1LabelSelector(), validationEnabled); } - public V1LabelSelectorBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorFluent fluent) { + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent) { this(fluent, false); } - public V1LabelSelectorBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1LabelSelector(), validationEnabled); } - public V1LabelSelectorBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1LabelSelector instance) { + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent, V1LabelSelector instance) { this(fluent, instance, false); } public V1LabelSelectorBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1LabelSelector instance, - java.lang.Boolean validationEnabled) { + V1LabelSelectorFluent fluent, V1LabelSelector instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMatchExpressions(instance.getMatchExpressions()); @@ -54,13 +46,11 @@ public V1LabelSelectorBuilder( this.validationEnabled = validationEnabled; } - public V1LabelSelectorBuilder(io.kubernetes.client.openapi.models.V1LabelSelector instance) { + public V1LabelSelectorBuilder(V1LabelSelector instance) { this(instance, false); } - public V1LabelSelectorBuilder( - io.kubernetes.client.openapi.models.V1LabelSelector instance, - java.lang.Boolean validationEnabled) { + public V1LabelSelectorBuilder(V1LabelSelector instance, Boolean validationEnabled) { this.fluent = this; this.withMatchExpressions(instance.getMatchExpressions()); @@ -69,10 +59,10 @@ public V1LabelSelectorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LabelSelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1LabelSelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LabelSelector build() { + public V1LabelSelector build() { V1LabelSelector buildable = new V1LabelSelector(); buildable.setMatchExpressions(fluent.getMatchExpressions()); buildable.setMatchLabels(fluent.getMatchLabels()); 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 af3022905e..ec82cd45d2 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 @@ -23,20 +23,17 @@ public interface V1LabelSelectorFluent> extends Fluent { public A addToMatchExpressions(Integer index, V1LabelSelectorRequirement item); - public A setToMatchExpressions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item); + public A setToMatchExpressions(Integer index, V1LabelSelectorRequirement item); public A addToMatchExpressions( io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items); - public A addAllToMatchExpressions( - Collection items); + public A addAllToMatchExpressions(Collection items); public A removeFromMatchExpressions( io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items); - public A removeAllFromMatchExpressions( - java.util.Collection items); + public A removeAllFromMatchExpressions(Collection items); public A removeMatchingFromMatchExpressions( Predicate predicate); @@ -47,77 +44,58 @@ public A removeMatchingFromMatchExpressions( * @return The buildable object. */ @Deprecated - public List getMatchExpressions(); + public List getMatchExpressions(); - public java.util.List - buildMatchExpressions(); + public List buildMatchExpressions(); - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement buildMatchExpression( - java.lang.Integer index); + public V1LabelSelectorRequirement buildMatchExpression(Integer index); - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement buildFirstMatchExpression(); + public V1LabelSelectorRequirement buildFirstMatchExpression(); - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement buildLastMatchExpression(); + public V1LabelSelectorRequirement buildLastMatchExpression(); - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement - buildMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> - predicate); + public V1LabelSelectorRequirement buildMatchingMatchExpression( + Predicate predicate); - public Boolean hasMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> - predicate); + public Boolean hasMatchingMatchExpression(Predicate predicate); - public A withMatchExpressions( - java.util.List - matchExpressions); + public A withMatchExpressions(List matchExpressions); public A withMatchExpressions( io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions); - public java.lang.Boolean hasMatchExpressions(); + public Boolean hasMatchExpressions(); public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpression(); - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - addNewMatchExpressionLike( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item); + public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( + V1LabelSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - setNewMatchExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item); + public V1LabelSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( + Integer index, V1LabelSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editMatchExpression(java.lang.Integer index); + public V1LabelSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index); - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editFirstMatchExpression(); + public V1LabelSelectorFluent.MatchExpressionsNested editFirstMatchExpression(); - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editLastMatchExpression(); + public V1LabelSelectorFluent.MatchExpressionsNested editLastMatchExpression(); - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> - predicate); + public V1LabelSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( + Predicate predicate); - public A addToMatchLabels(String key, java.lang.String value); + public A addToMatchLabels(String key, String value); - public A addToMatchLabels(Map map); + public A addToMatchLabels(Map map); - public A removeFromMatchLabels(java.lang.String key); + public A removeFromMatchLabels(String key); - public A removeFromMatchLabels(java.util.Map map); + public A removeFromMatchLabels(Map map); - public java.util.Map getMatchLabels(); + public Map getMatchLabels(); - public A withMatchLabels(java.util.Map matchLabels); + public A withMatchLabels(Map matchLabels); - public java.lang.Boolean hasMatchLabels(); + public Boolean hasMatchLabels(); public interface MatchExpressionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java index beb2de3fb0..3c9dd1b930 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluentImpl.java @@ -28,22 +28,20 @@ public class V1LabelSelectorFluentImpl> exten implements V1LabelSelectorFluent { public V1LabelSelectorFluentImpl() {} - public V1LabelSelectorFluentImpl(io.kubernetes.client.openapi.models.V1LabelSelector instance) { + public V1LabelSelectorFluentImpl(V1LabelSelector instance) { this.withMatchExpressions(instance.getMatchExpressions()); this.withMatchLabels(instance.getMatchLabels()); } private ArrayList matchExpressions; - private Map matchLabels; + private Map matchLabels; - public A addToMatchExpressions( - Integer index, io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item) { + public A addToMatchExpressions(Integer index, V1LabelSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = new java.util.ArrayList(); + this.matchExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(item); + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); _visitables .get("matchExpressions") .add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder); @@ -51,16 +49,11 @@ public A addToMatchExpressions( return (A) this; } - public A setToMatchExpressions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item) { + public A setToMatchExpressions(Integer index, V1LabelSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(item); + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); if (index < 0 || index >= _visitables.get("matchExpressions").size()) { _visitables.get("matchExpressions").add(builder); } else { @@ -77,29 +70,22 @@ public A setToMatchExpressions( public A addToMatchExpressions( io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(item); + 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) { + public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(item); + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); _visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } @@ -108,9 +94,8 @@ public A addAllToMatchExpressions( public A removeFromMatchExpressions( io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(item); + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); _visitables.get("matchExpressions").remove(builder); if (this.matchExpressions != null) { this.matchExpressions.remove(builder); @@ -119,11 +104,9 @@ public A removeFromMatchExpressions( return (A) this; } - public A removeAllFromMatchExpressions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(item); + public A removeAllFromMatchExpressions(Collection items) { + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); _visitables.get("matchExpressions").remove(builder); if (this.matchExpressions != null) { this.matchExpressions.remove(builder); @@ -133,13 +116,12 @@ public A removeAllFromMatchExpressions( } public A removeMatchingFromMatchExpressions( - Predicate predicate) { + Predicate predicate) { if (matchExpressions == null) return (A) this; - final Iterator each = - matchExpressions.iterator(); + final Iterator each = matchExpressions.iterator(); final List visitables = _visitables.get("matchExpressions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder = each.next(); + V1LabelSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -154,37 +136,29 @@ public A removeMatchingFromMatchExpressions( * @return The buildable object. */ @Deprecated - public List - getMatchExpressions() { + public List getMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public java.util.List - buildMatchExpressions() { + public List buildMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement buildMatchExpression( - java.lang.Integer index) { + public V1LabelSelectorRequirement buildMatchExpression(Integer index) { return this.matchExpressions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement - buildFirstMatchExpression() { + public V1LabelSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement buildLastMatchExpression() { + public V1LabelSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement - buildMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder item : - matchExpressions) { + public V1LabelSelectorRequirement buildMatchingMatchExpression( + Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { return item.build(); } @@ -193,11 +167,8 @@ public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement buildLastM } public Boolean hasMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder item : - matchExpressions) { + Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { return true; } @@ -205,15 +176,13 @@ public Boolean hasMatchingMatchExpression( return false; } - public A withMatchExpressions( - java.util.List - matchExpressions) { + public A withMatchExpressions(List matchExpressions) { if (this.matchExpressions != null) { _visitables.get("matchExpressions").removeAll(this.matchExpressions); } if (matchExpressions != null) { - this.matchExpressions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item : matchExpressions) { + this.matchExpressions = new ArrayList(); + for (V1LabelSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } } else { @@ -228,14 +197,14 @@ public A withMatchExpressions( this.matchExpressions.clear(); } if (matchExpressions != null) { - for (io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item : matchExpressions) { + for (V1LabelSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } } return (A) this; } - public java.lang.Boolean hasMatchExpressions() { + public Boolean hasMatchExpressions() { return matchExpressions != null && !matchExpressions.isEmpty(); } @@ -243,47 +212,37 @@ public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpression() { return new V1LabelSelectorFluentImpl.MatchExpressionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - addNewMatchExpressionLike( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item) { + public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( + V1LabelSelectorRequirement item) { return new V1LabelSelectorFluentImpl.MatchExpressionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - setNewMatchExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item) { - return new io.kubernetes.client.openapi.models.V1LabelSelectorFluentImpl - .MatchExpressionsNestedImpl(index, item); + public V1LabelSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( + Integer index, V1LabelSelectorRequirement item) { + return new V1LabelSelectorFluentImpl.MatchExpressionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editMatchExpression(java.lang.Integer index) { + public V1LabelSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index) { if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editFirstMatchExpression() { + public V1LabelSelectorFluent.MatchExpressionsNested editFirstMatchExpression() { if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); return setNewMatchExpressionLike(0, buildMatchExpression(0)); } - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editLastMatchExpression() { + public V1LabelSelectorFluent.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)); } - public io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested - editMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> - predicate) { + public V1LabelSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( + Predicate predicate) { int index = -1; for (int i = 0; i < matchExpressions.size(); i++) { if (predicate.test(matchExpressions.get(i))) { @@ -296,7 +255,7 @@ public V1LabelSelectorFluent.MatchExpressionsNested addNewMatchExpression() { return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public A addToMatchLabels(java.lang.String key, java.lang.String value) { + public A addToMatchLabels(String key, String value) { if (this.matchLabels == null && key != null && value != null) { this.matchLabels = new LinkedHashMap(); } @@ -306,9 +265,9 @@ public A addToMatchLabels(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToMatchLabels(java.util.Map map) { + public A addToMatchLabels(Map map) { if (this.matchLabels == null && map != null) { - this.matchLabels = new java.util.LinkedHashMap(); + this.matchLabels = new LinkedHashMap(); } if (map != null) { this.matchLabels.putAll(map); @@ -316,7 +275,7 @@ public A addToMatchLabels(java.util.Map map) return (A) this; } - public A removeFromMatchLabels(java.lang.String key) { + public A removeFromMatchLabels(String key) { if (this.matchLabels == null) { return (A) this; } @@ -326,7 +285,7 @@ public A removeFromMatchLabels(java.lang.String key) { return (A) this; } - public A removeFromMatchLabels(java.util.Map map) { + public A removeFromMatchLabels(Map map) { if (this.matchLabels == null) { return (A) this; } @@ -340,20 +299,20 @@ public A removeFromMatchLabels(java.util.Map return (A) this; } - public java.util.Map getMatchLabels() { + public Map getMatchLabels() { return this.matchLabels; } - public A withMatchLabels(java.util.Map matchLabels) { + public A withMatchLabels(Map matchLabels) { if (matchLabels == null) { this.matchLabels = null; } else { - this.matchLabels = new java.util.LinkedHashMap(matchLabels); + this.matchLabels = new LinkedHashMap(matchLabels); } return (A) this; } - public java.lang.Boolean hasMatchLabels() { + public Boolean hasMatchLabels() { return this.matchLabels != null; } @@ -373,7 +332,7 @@ public int hashCode() { return java.util.Objects.hash(matchExpressions, matchLabels, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (matchExpressions != null && !matchExpressions.isEmpty()) { @@ -390,24 +349,19 @@ public java.lang.String toString() { class MatchExpressionsNestedImpl extends V1LabelSelectorRequirementFluentImpl> - implements io.kubernetes.client.openapi.models.V1LabelSelectorFluent.MatchExpressionsNested< - N>, - Nested { - MatchExpressionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement item) { + implements V1LabelSelectorFluent.MatchExpressionsNested, Nested { + MatchExpressionsNestedImpl(Integer index, V1LabelSelectorRequirement item) { this.index = index; this.builder = new V1LabelSelectorRequirementBuilder(this, item); } MatchExpressionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder(this); + this.builder = new V1LabelSelectorRequirementBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder builder; - java.lang.Integer index; + V1LabelSelectorRequirementBuilder builder; + Integer index; public N and() { return (N) V1LabelSelectorFluentImpl.this.setToMatchExpressions(index, builder.build()); 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 5b19ab3873..60b1e73a70 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 @@ -16,9 +16,7 @@ public class V1LabelSelectorRequirementBuilder extends V1LabelSelectorRequirementFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementBuilder> { + implements VisitableBuilder { public V1LabelSelectorRequirementBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent flu } public V1LabelSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementFluent fluent, - java.lang.Boolean validationEnabled) { + V1LabelSelectorRequirementFluent fluent, Boolean validationEnabled) { this(fluent, new V1LabelSelectorRequirement(), validationEnabled); } public V1LabelSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement instance) { + V1LabelSelectorRequirementFluent fluent, V1LabelSelectorRequirement instance) { this(fluent, instance, false); } public V1LabelSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement instance, - java.lang.Boolean validationEnabled) { + V1LabelSelectorRequirementFluent fluent, + V1LabelSelectorRequirement instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKey(instance.getKey()); @@ -57,14 +53,12 @@ public V1LabelSelectorRequirementBuilder( this.validationEnabled = validationEnabled; } - public V1LabelSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement instance) { + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirement instance) { this(instance, false); } public V1LabelSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement instance, - java.lang.Boolean validationEnabled) { + V1LabelSelectorRequirement instance, Boolean validationEnabled) { this.fluent = this; this.withKey(instance.getKey()); @@ -75,10 +69,10 @@ public V1LabelSelectorRequirementBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LabelSelectorRequirementFluent fluent; - java.lang.Boolean validationEnabled; + V1LabelSelectorRequirementFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LabelSelectorRequirement build() { + public V1LabelSelectorRequirement build() { V1LabelSelectorRequirement buildable = new V1LabelSelectorRequirement(); buildable.setKey(fluent.getKey()); buildable.setOperator(fluent.getOperator()); 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 c888dd0737..1e3b231a5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java @@ -22,44 +22,43 @@ public interface V1LabelSelectorRequirementFluent { public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); public Boolean hasKey(); - public java.lang.String getOperator(); + public String getOperator(); - public A withOperator(java.lang.String operator); + public A withOperator(String operator); - public java.lang.Boolean hasOperator(); + public Boolean hasOperator(); - public A addToValues(Integer index, java.lang.String item); + public A addToValues(Integer index, String item); - public A setToValues(java.lang.Integer index, java.lang.String item); + public A setToValues(Integer index, String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); + public A addAllToValues(Collection items); public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(java.util.Collection items); + public A removeAllFromValues(Collection items); - public List getValues(); + public List getValues(); - public java.lang.String getValue(java.lang.Integer index); + public String getValue(Integer index); - public java.lang.String getFirstValue(); + public String getFirstValue(); - public java.lang.String getLastValue(); + public String getLastValue(); - public java.lang.String getMatchingValue(Predicate predicate); + public String getMatchingValue(Predicate predicate); - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate); + public Boolean hasMatchingValue(Predicate predicate); - public A withValues(java.util.List values); + public A withValues(List values); public A withValues(java.lang.String... values); - public java.lang.Boolean hasValues(); + public Boolean hasValues(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java index c5e2ffa913..e2b13592fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluentImpl.java @@ -24,8 +24,7 @@ public class V1LabelSelectorRequirementFluentImpl implements V1LabelSelectorRequirementFluent { public V1LabelSelectorRequirementFluentImpl() {} - public V1LabelSelectorRequirementFluentImpl( - io.kubernetes.client.openapi.models.V1LabelSelectorRequirement instance) { + public V1LabelSelectorRequirementFluentImpl(V1LabelSelectorRequirement instance) { this.withKey(instance.getKey()); this.withOperator(instance.getOperator()); @@ -34,14 +33,14 @@ public V1LabelSelectorRequirementFluentImpl( } private String key; - private java.lang.String operator; - private List values; + private String operator; + private List values; - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } @@ -50,30 +49,30 @@ public Boolean hasKey() { return this.key != null; } - public java.lang.String getOperator() { + public String getOperator() { return this.operator; } - public A withOperator(java.lang.String operator) { + public A withOperator(String operator) { this.operator = operator; return (A) this; } - public java.lang.Boolean hasOperator() { + public Boolean hasOperator() { return this.operator != null; } - public A addToValues(Integer index, java.lang.String item) { + public A addToValues(Integer index, String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList(); } this.values.add(index, item); return (A) this; } - public A setToValues(java.lang.Integer index, java.lang.String item) { + public A setToValues(Integer index, String item) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } this.values.set(index, item); return (A) this; @@ -81,26 +80,26 @@ public A setToValues(java.lang.Integer index, java.lang.String item) { public A addToValues(java.lang.String... items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } - public A addAllToValues(Collection items) { + public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } public A removeFromValues(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -108,8 +107,8 @@ public A removeFromValues(java.lang.String... items) { return (A) this; } - public A removeAllFromValues(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromValues(Collection items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -117,24 +116,24 @@ public A removeAllFromValues(java.util.Collection items) { return (A) this; } - public java.util.List getValues() { + public List getValues() { return this.values; } - public java.lang.String getValue(java.lang.Integer index) { + public String getValue(Integer index) { return this.values.get(index); } - public java.lang.String getFirstValue() { + public String getFirstValue() { return this.values.get(0); } - public java.lang.String getLastValue() { + public String getLastValue() { return this.values.get(values.size() - 1); } - public java.lang.String getMatchingValue(Predicate predicate) { - for (java.lang.String item : values) { + public String getMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return item; } @@ -142,9 +141,8 @@ public java.lang.String getMatchingValue(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate) { - for (java.lang.String item : values) { + public Boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return true; } @@ -152,10 +150,10 @@ public java.lang.Boolean hasMatchingValue( return false; } - public A withValues(java.util.List values) { + public A withValues(List values) { if (values != null) { - this.values = new java.util.ArrayList(); - for (java.lang.String item : values) { + this.values = new ArrayList(); + for (String item : values) { this.addToValues(item); } } else { @@ -169,14 +167,14 @@ public A withValues(java.lang.String... values) { this.values.clear(); } if (values != null) { - for (java.lang.String item : values) { + for (String item : values) { this.addToValues(item); } } return (A) this; } - public java.lang.Boolean hasValues() { + public Boolean hasValues() { return values != null && !values.isEmpty(); } @@ -194,7 +192,7 @@ public int hashCode() { return java.util.Objects.hash(key, operator, values, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (key != null) { 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 2f1fea06b0..320d387071 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LeaseBuilder extends V1LeaseFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1LeaseBuilder() { this(false); } @@ -28,22 +28,15 @@ public V1LeaseBuilder(V1LeaseFluent fluent) { this(fluent, false); } - public V1LeaseBuilder( - io.kubernetes.client.openapi.models.V1LeaseFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LeaseBuilder(V1LeaseFluent fluent, Boolean validationEnabled) { this(fluent, new V1Lease(), validationEnabled); } - public V1LeaseBuilder( - io.kubernetes.client.openapi.models.V1LeaseFluent fluent, - io.kubernetes.client.openapi.models.V1Lease instance) { + public V1LeaseBuilder(V1LeaseFluent fluent, V1Lease instance) { this(fluent, instance, false); } - public V1LeaseBuilder( - io.kubernetes.client.openapi.models.V1LeaseFluent fluent, - io.kubernetes.client.openapi.models.V1Lease instance, - java.lang.Boolean validationEnabled) { + public V1LeaseBuilder(V1LeaseFluent fluent, V1Lease instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -56,12 +49,11 @@ public V1LeaseBuilder( this.validationEnabled = validationEnabled; } - public V1LeaseBuilder(io.kubernetes.client.openapi.models.V1Lease instance) { + public V1LeaseBuilder(V1Lease instance) { this(instance, false); } - public V1LeaseBuilder( - io.kubernetes.client.openapi.models.V1Lease instance, java.lang.Boolean validationEnabled) { + public V1LeaseBuilder(V1Lease instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -74,10 +66,10 @@ public V1LeaseBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LeaseFluent fluent; - java.lang.Boolean validationEnabled; + V1LeaseFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Lease build() { + public V1Lease build() { V1Lease buildable = new V1Lease(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 3ae8fad1cc..1d6396d62f 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 @@ -19,15 +19,15 @@ public interface V1LeaseFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,49 +37,45 @@ public interface V1LeaseFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1LeaseFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1LeaseFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editMetadata(); + public V1LeaseFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editOrNewMetadata(); + public V1LeaseFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1LeaseFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LeaseSpec getSpec(); - public io.kubernetes.client.openapi.models.V1LeaseSpec buildSpec(); + public V1LeaseSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1LeaseSpec spec); + public A withSpec(V1LeaseSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1LeaseFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1LeaseSpec item); + public V1LeaseFluent.SpecNested withNewSpecLike(V1LeaseSpec item); - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested editSpec(); + public V1LeaseFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested editOrNewSpec(); + public V1LeaseFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1LeaseSpec item); + public V1LeaseFluent.SpecNested editOrNewSpecLike(V1LeaseSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -88,9 +84,7 @@ public interface MetadataNested public N endMetadata(); } - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1LeaseSpecFluent> { + public interface SpecNested extends Nested, V1LeaseSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java index b53377ffea..9e31d76754 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluentImpl.java @@ -21,7 +21,7 @@ public class V1LeaseFluentImpl> extends BaseFluent implements V1LeaseFluent { public V1LeaseFluentImpl() {} - public V1LeaseFluentImpl(io.kubernetes.client.openapi.models.V1Lease instance) { + public V1LeaseFluentImpl(V1Lease instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1LeaseFluentImpl(io.kubernetes.client.openapi.models.V1Lease instance) { } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1LeaseSpecBuilder spec; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,24 +96,20 @@ public V1LeaseFluent.MetadataNested withNewMetadata() { return new V1LeaseFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1LeaseFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1LeaseFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editMetadata() { + public V1LeaseFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editOrNewMetadata() { + public V1LeaseFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1LeaseFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -119,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested editO * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LeaseSpec getSpec() { + @Deprecated + public V1LeaseSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1LeaseSpec buildSpec() { + public V1LeaseSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1LeaseSpec spec) { + public A withSpec(V1LeaseSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1LeaseSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -145,24 +147,19 @@ public V1LeaseFluent.SpecNested withNewSpec() { return new V1LeaseFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1LeaseSpec item) { - return new io.kubernetes.client.openapi.models.V1LeaseFluentImpl.SpecNestedImpl(item); + public V1LeaseFluent.SpecNested withNewSpecLike(V1LeaseSpec item) { + return new V1LeaseFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested editSpec() { + public V1LeaseFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1LeaseSpecBuilder().build()); + public V1LeaseFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1LeaseSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1LeaseSpec item) { + public V1LeaseFluent.SpecNested editOrNewSpecLike(V1LeaseSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -182,7 +179,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -206,16 +203,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1LeaseFluent.MetadataNested, Nested { + implements V1LeaseFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1LeaseFluentImpl.this.withMetadata(builder.build()); @@ -227,17 +224,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1LeaseSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1LeaseFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1LeaseSpec item) { + implements V1LeaseFluent.SpecNested, Nested { + SpecNestedImpl(V1LeaseSpec item) { this.builder = new V1LeaseSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LeaseSpecBuilder(this); + this.builder = new V1LeaseSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1LeaseSpecBuilder builder; + V1LeaseSpecBuilder builder; public N and() { return (N) V1LeaseFluentImpl.this.withSpec(builder.build()); 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 f183b517b9..cc43eed236 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LeaseListBuilder extends V1LeaseListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LeaseList, - io.kubernetes.client.openapi.models.V1LeaseListBuilder> { + implements VisitableBuilder { public V1LeaseListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1LeaseListBuilder(V1LeaseListFluent fluent) { this(fluent, false); } - public V1LeaseListBuilder( - io.kubernetes.client.openapi.models.V1LeaseListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LeaseListBuilder(V1LeaseListFluent fluent, Boolean validationEnabled) { this(fluent, new V1LeaseList(), validationEnabled); } - public V1LeaseListBuilder( - io.kubernetes.client.openapi.models.V1LeaseListFluent fluent, - io.kubernetes.client.openapi.models.V1LeaseList instance) { + public V1LeaseListBuilder(V1LeaseListFluent fluent, V1LeaseList instance) { this(fluent, instance, false); } public V1LeaseListBuilder( - io.kubernetes.client.openapi.models.V1LeaseListFluent fluent, - io.kubernetes.client.openapi.models.V1LeaseList instance, - java.lang.Boolean validationEnabled) { + V1LeaseListFluent fluent, V1LeaseList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1LeaseListBuilder( this.validationEnabled = validationEnabled; } - public V1LeaseListBuilder(io.kubernetes.client.openapi.models.V1LeaseList instance) { + public V1LeaseListBuilder(V1LeaseList instance) { this(instance, false); } - public V1LeaseListBuilder( - io.kubernetes.client.openapi.models.V1LeaseList instance, - java.lang.Boolean validationEnabled) { + public V1LeaseListBuilder(V1LeaseList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1LeaseListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LeaseListFluent fluent; - java.lang.Boolean validationEnabled; + V1LeaseListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LeaseList build() { + public V1LeaseList build() { V1LeaseList buildable = new V1LeaseList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 4612b49f21..d61b4a99c1 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 @@ -22,22 +22,21 @@ public interface V1LeaseListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Lease item); + public A addToItems(Integer index, V1Lease item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Lease item); + public A setToItems(Integer index, V1Lease item); public A addToItems(io.kubernetes.client.openapi.models.V1Lease... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,78 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Lease buildItem(java.lang.Integer index); + public V1Lease buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Lease buildFirstItem(); + public V1Lease buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Lease buildLastItem(); + public V1Lease buildLastItem(); - public io.kubernetes.client.openapi.models.V1Lease buildMatchingItem( - java.util.function.Predicate predicate); + public V1Lease buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Lease... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1LeaseListFluent.ItemsNested addNewItem(); - public V1LeaseListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Lease item); + public V1LeaseListFluent.ItemsNested addNewItemLike(V1Lease item); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Lease item); + public V1LeaseListFluent.ItemsNested setNewItemLike(Integer index, V1Lease item); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1LeaseListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editFirstItem(); + public V1LeaseListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editLastItem(); + public V1LeaseListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1LeaseListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1LeaseListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1LeaseListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested editMetadata(); + public V1LeaseListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested - editOrNewMetadata(); + public V1LeaseListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1LeaseListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1LeaseFluent> { @@ -128,8 +118,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java index bf3d5eb48a..89b2df59da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluentImpl.java @@ -26,7 +26,7 @@ public class V1LeaseListFluentImpl> extends BaseF implements V1LeaseListFluent { public V1LeaseListFluentImpl() {} - public V1LeaseListFluentImpl(io.kubernetes.client.openapi.models.V1LeaseList instance) { + public V1LeaseListFluentImpl(V1LeaseList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -38,14 +38,14 @@ public V1LeaseListFluentImpl(io.kubernetes.client.openapi.models.V1LeaseList ins private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Lease item) { + public A addToItems(Integer index, V1Lease item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = - new io.kubernetes.client.openapi.models.V1LeaseBuilder(item); + V1LeaseBuilder builder = new V1LeaseBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Lease item) { + public A setToItems(Integer index, V1Lease item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = - new io.kubernetes.client.openapi.models.V1LeaseBuilder(item); + V1LeaseBuilder builder = new V1LeaseBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Lease... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Lease item : items) { - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = - new io.kubernetes.client.openapi.models.V1LeaseBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Lease item : items) { - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = - new io.kubernetes.client.openapi.models.V1LeaseBuilder(item); + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection i } public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items) { - for (io.kubernetes.client.openapi.models.V1Lease item : items) { - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = - new io.kubernetes.client.openapi.models.V1LeaseBuilder(item); + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items) { return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Lease item : items) { - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = - new io.kubernetes.client.openapi.models.V1LeaseBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LeaseBuilder builder = each.next(); + V1LeaseBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,29 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Lease buildItem(java.lang.Integer index) { + public V1Lease buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Lease buildFirstItem() { + public V1Lease buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Lease buildLastItem() { + public V1Lease buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Lease buildMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1LeaseBuilder item : items) { + public V1Lease buildMatchingItem(Predicate predicate) { + for (V1LeaseBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -186,9 +177,8 @@ public io.kubernetes.client.openapi.models.V1Lease buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1LeaseBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1LeaseBuilder item : items) { if (predicate.test(item)) { return true; } @@ -196,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Lease item : items) { + this.items = new ArrayList(); + for (V1Lease item : items) { this.addToItems(item); } } else { @@ -216,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Lease... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Lease item : items) { + for (V1Lease item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -231,36 +221,31 @@ public V1LeaseListFluent.ItemsNested addNewItem() { return new V1LeaseListFluentImpl.ItemsNestedImpl(); } - public V1LeaseListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Lease item) { + public V1LeaseListFluent.ItemsNested addNewItemLike(V1Lease item) { return new V1LeaseListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Lease item) { - return new io.kubernetes.client.openapi.models.V1LeaseListFluentImpl.ItemsNestedImpl( - index, item); + public V1LeaseListFluent.ItemsNested setNewItemLike(Integer index, V1Lease item) { + return new V1LeaseListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1LeaseListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editFirstItem() { + public V1LeaseListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editLastItem() { + public V1LeaseListFluent.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 io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate) { + public V1LeaseListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -272,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1LeaseListFluent.ItemsNested edit return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -290,25 +275,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -316,25 +304,20 @@ public V1LeaseListFluent.MetadataNested withNewMetadata() { return new V1LeaseListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1LeaseListFluentImpl.MetadataNestedImpl(item); + public V1LeaseListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1LeaseListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested editMetadata() { + public V1LeaseListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested - editOrNewMetadata() { + public V1LeaseListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1LeaseListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -354,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -379,18 +362,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1LeaseFluentImpl> implements V1LeaseListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Lease item) { + ItemsNestedImpl(Integer index, V1Lease item) { this.index = index; this.builder = new V1LeaseBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LeaseBuilder(this); + this.builder = new V1LeaseBuilder(this); } - io.kubernetes.client.openapi.models.V1LeaseBuilder builder; - java.lang.Integer index; + V1LeaseBuilder builder; + Integer index; public N and() { return (N) V1LeaseListFluentImpl.this.setToItems(index, builder.build()); @@ -402,17 +385,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1LeaseListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1LeaseListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1LeaseListFluentImpl.this.withMetadata(builder.build()); 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 04d357dbab..a4135a8fb6 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LeaseSpecBuilder extends V1LeaseSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LeaseSpec, - io.kubernetes.client.openapi.models.V1LeaseSpecBuilder> { + implements VisitableBuilder { public V1LeaseSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent) { this(fluent, false); } - public V1LeaseSpecBuilder( - io.kubernetes.client.openapi.models.V1LeaseSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1LeaseSpec(), validationEnabled); } - public V1LeaseSpecBuilder( - io.kubernetes.client.openapi.models.V1LeaseSpecFluent fluent, - io.kubernetes.client.openapi.models.V1LeaseSpec instance) { + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent, V1LeaseSpec instance) { this(fluent, instance, false); } public V1LeaseSpecBuilder( - io.kubernetes.client.openapi.models.V1LeaseSpecFluent fluent, - io.kubernetes.client.openapi.models.V1LeaseSpec instance, - java.lang.Boolean validationEnabled) { + V1LeaseSpecFluent fluent, V1LeaseSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAcquireTime(instance.getAcquireTime()); @@ -60,13 +52,11 @@ public V1LeaseSpecBuilder( this.validationEnabled = validationEnabled; } - public V1LeaseSpecBuilder(io.kubernetes.client.openapi.models.V1LeaseSpec instance) { + public V1LeaseSpecBuilder(V1LeaseSpec instance) { this(instance, false); } - public V1LeaseSpecBuilder( - io.kubernetes.client.openapi.models.V1LeaseSpec instance, - java.lang.Boolean validationEnabled) { + public V1LeaseSpecBuilder(V1LeaseSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAcquireTime(instance.getAcquireTime()); @@ -81,10 +71,10 @@ public V1LeaseSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LeaseSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1LeaseSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LeaseSpec build() { + public V1LeaseSpec build() { V1LeaseSpec buildable = new V1LeaseSpec(); buildable.setAcquireTime(fluent.getAcquireTime()); buildable.setHolderIdentity(fluent.getHolderIdentity()); 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 d31eb71756..5f351942b5 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 @@ -19,31 +19,31 @@ public interface V1LeaseSpecFluent> extends Fluent { public OffsetDateTime getAcquireTime(); - public A withAcquireTime(java.time.OffsetDateTime acquireTime); + public A withAcquireTime(OffsetDateTime acquireTime); public Boolean hasAcquireTime(); public String getHolderIdentity(); - public A withHolderIdentity(java.lang.String holderIdentity); + public A withHolderIdentity(String holderIdentity); - public java.lang.Boolean hasHolderIdentity(); + public Boolean hasHolderIdentity(); public Integer getLeaseDurationSeconds(); - public A withLeaseDurationSeconds(java.lang.Integer leaseDurationSeconds); + public A withLeaseDurationSeconds(Integer leaseDurationSeconds); - public java.lang.Boolean hasLeaseDurationSeconds(); + public Boolean hasLeaseDurationSeconds(); - public java.lang.Integer getLeaseTransitions(); + public Integer getLeaseTransitions(); - public A withLeaseTransitions(java.lang.Integer leaseTransitions); + public A withLeaseTransitions(Integer leaseTransitions); - public java.lang.Boolean hasLeaseTransitions(); + public Boolean hasLeaseTransitions(); - public java.time.OffsetDateTime getRenewTime(); + public OffsetDateTime getRenewTime(); - public A withRenewTime(java.time.OffsetDateTime renewTime); + public A withRenewTime(OffsetDateTime renewTime); - public java.lang.Boolean hasRenewTime(); + public Boolean hasRenewTime(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java index bad5ce9621..eee4dcb1df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V1LeaseSpecFluentImpl> extends BaseF implements V1LeaseSpecFluent { public V1LeaseSpecFluentImpl() {} - public V1LeaseSpecFluentImpl(io.kubernetes.client.openapi.models.V1LeaseSpec instance) { + public V1LeaseSpecFluentImpl(V1LeaseSpec instance) { this.withAcquireTime(instance.getAcquireTime()); this.withHolderIdentity(instance.getHolderIdentity()); @@ -36,14 +36,14 @@ public V1LeaseSpecFluentImpl(io.kubernetes.client.openapi.models.V1LeaseSpec ins private OffsetDateTime acquireTime; private String holderIdentity; private Integer leaseDurationSeconds; - private java.lang.Integer leaseTransitions; - private java.time.OffsetDateTime renewTime; + private Integer leaseTransitions; + private OffsetDateTime renewTime; - public java.time.OffsetDateTime getAcquireTime() { + public OffsetDateTime getAcquireTime() { return this.acquireTime; } - public A withAcquireTime(java.time.OffsetDateTime acquireTime) { + public A withAcquireTime(OffsetDateTime acquireTime) { this.acquireTime = acquireTime; return (A) this; } @@ -52,55 +52,55 @@ public Boolean hasAcquireTime() { return this.acquireTime != null; } - public java.lang.String getHolderIdentity() { + public String getHolderIdentity() { return this.holderIdentity; } - public A withHolderIdentity(java.lang.String holderIdentity) { + public A withHolderIdentity(String holderIdentity) { this.holderIdentity = holderIdentity; return (A) this; } - public java.lang.Boolean hasHolderIdentity() { + public Boolean hasHolderIdentity() { return this.holderIdentity != null; } - public java.lang.Integer getLeaseDurationSeconds() { + public Integer getLeaseDurationSeconds() { return this.leaseDurationSeconds; } - public A withLeaseDurationSeconds(java.lang.Integer leaseDurationSeconds) { + public A withLeaseDurationSeconds(Integer leaseDurationSeconds) { this.leaseDurationSeconds = leaseDurationSeconds; return (A) this; } - public java.lang.Boolean hasLeaseDurationSeconds() { + public Boolean hasLeaseDurationSeconds() { return this.leaseDurationSeconds != null; } - public java.lang.Integer getLeaseTransitions() { + public Integer getLeaseTransitions() { return this.leaseTransitions; } - public A withLeaseTransitions(java.lang.Integer leaseTransitions) { + public A withLeaseTransitions(Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; return (A) this; } - public java.lang.Boolean hasLeaseTransitions() { + public Boolean hasLeaseTransitions() { return this.leaseTransitions != null; } - public java.time.OffsetDateTime getRenewTime() { + public OffsetDateTime getRenewTime() { return this.renewTime; } - public A withRenewTime(java.time.OffsetDateTime renewTime) { + public A withRenewTime(OffsetDateTime renewTime) { this.renewTime = renewTime; return (A) this; } - public java.lang.Boolean hasRenewTime() { + public Boolean hasRenewTime() { return this.renewTime != null; } @@ -134,7 +134,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (acquireTime != null) { 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 ba268ad89a..bf83278308 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LifecycleBuilder extends V1LifecycleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Lifecycle, - io.kubernetes.client.openapi.models.V1LifecycleBuilder> { + implements VisitableBuilder { public V1LifecycleBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1LifecycleBuilder(V1LifecycleFluent fluent) { this(fluent, false); } - public V1LifecycleBuilder( - io.kubernetes.client.openapi.models.V1LifecycleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LifecycleBuilder(V1LifecycleFluent fluent, Boolean validationEnabled) { this(fluent, new V1Lifecycle(), validationEnabled); } - public V1LifecycleBuilder( - io.kubernetes.client.openapi.models.V1LifecycleFluent fluent, - io.kubernetes.client.openapi.models.V1Lifecycle instance) { + public V1LifecycleBuilder(V1LifecycleFluent fluent, V1Lifecycle instance) { this(fluent, instance, false); } public V1LifecycleBuilder( - io.kubernetes.client.openapi.models.V1LifecycleFluent fluent, - io.kubernetes.client.openapi.models.V1Lifecycle instance, - java.lang.Boolean validationEnabled) { + V1LifecycleFluent fluent, V1Lifecycle instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPostStart(instance.getPostStart()); @@ -54,13 +46,11 @@ public V1LifecycleBuilder( this.validationEnabled = validationEnabled; } - public V1LifecycleBuilder(io.kubernetes.client.openapi.models.V1Lifecycle instance) { + public V1LifecycleBuilder(V1Lifecycle instance) { this(instance, false); } - public V1LifecycleBuilder( - io.kubernetes.client.openapi.models.V1Lifecycle instance, - java.lang.Boolean validationEnabled) { + public V1LifecycleBuilder(V1Lifecycle instance, Boolean validationEnabled) { this.fluent = this; this.withPostStart(instance.getPostStart()); @@ -69,10 +59,10 @@ public V1LifecycleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LifecycleFluent fluent; - java.lang.Boolean validationEnabled; + V1LifecycleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Lifecycle build() { + public V1Lifecycle build() { V1Lifecycle buildable = new V1Lifecycle(); buildable.setPostStart(fluent.getPostStart()); buildable.setPreStop(fluent.getPreStop()); 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 134cbba9ae..ff12c7f038 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 @@ -26,50 +26,45 @@ public interface V1LifecycleFluent> extends Fluen @Deprecated public V1LifecycleHandler getPostStart(); - public io.kubernetes.client.openapi.models.V1LifecycleHandler buildPostStart(); + public V1LifecycleHandler buildPostStart(); - public A withPostStart(io.kubernetes.client.openapi.models.V1LifecycleHandler postStart); + public A withPostStart(V1LifecycleHandler postStart); public Boolean hasPostStart(); public V1LifecycleFluent.PostStartNested withNewPostStart(); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested - withNewPostStartLike(io.kubernetes.client.openapi.models.V1LifecycleHandler item); + public V1LifecycleFluent.PostStartNested withNewPostStartLike(V1LifecycleHandler item); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested editPostStart(); + public V1LifecycleFluent.PostStartNested editPostStart(); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested - editOrNewPostStart(); + public V1LifecycleFluent.PostStartNested editOrNewPostStart(); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested - editOrNewPostStartLike(io.kubernetes.client.openapi.models.V1LifecycleHandler item); + public V1LifecycleFluent.PostStartNested editOrNewPostStartLike(V1LifecycleHandler item); /** * This method has been deprecated, please use method buildPreStop instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LifecycleHandler getPreStop(); + @Deprecated + public V1LifecycleHandler getPreStop(); - public io.kubernetes.client.openapi.models.V1LifecycleHandler buildPreStop(); + public V1LifecycleHandler buildPreStop(); - public A withPreStop(io.kubernetes.client.openapi.models.V1LifecycleHandler preStop); + public A withPreStop(V1LifecycleHandler preStop); - public java.lang.Boolean hasPreStop(); + public Boolean hasPreStop(); public V1LifecycleFluent.PreStopNested withNewPreStop(); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested withNewPreStopLike( - io.kubernetes.client.openapi.models.V1LifecycleHandler item); + public V1LifecycleFluent.PreStopNested withNewPreStopLike(V1LifecycleHandler item); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested editPreStop(); + public V1LifecycleFluent.PreStopNested editPreStop(); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested editOrNewPreStop(); + public V1LifecycleFluent.PreStopNested editOrNewPreStop(); - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested - editOrNewPreStopLike(io.kubernetes.client.openapi.models.V1LifecycleHandler item); + public V1LifecycleFluent.PreStopNested editOrNewPreStopLike(V1LifecycleHandler item); public interface PostStartNested extends Nested, V1LifecycleHandlerFluent> { @@ -79,8 +74,7 @@ public interface PostStartNested } public interface PreStopNested - extends io.kubernetes.client.fluent.Nested, - V1LifecycleHandlerFluent> { + extends Nested, V1LifecycleHandlerFluent> { public N and(); public N endPreStop(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java index e17f0c5f09..a6893fb2c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluentImpl.java @@ -21,7 +21,7 @@ public class V1LifecycleFluentImpl> extends BaseF implements V1LifecycleFluent { public V1LifecycleFluentImpl() {} - public V1LifecycleFluentImpl(io.kubernetes.client.openapi.models.V1Lifecycle instance) { + public V1LifecycleFluentImpl(V1Lifecycle instance) { this.withPostStart(instance.getPostStart()); this.withPreStop(instance.getPreStop()); @@ -36,19 +36,22 @@ public V1LifecycleFluentImpl(io.kubernetes.client.openapi.models.V1Lifecycle ins * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LifecycleHandler getPostStart() { + public V1LifecycleHandler getPostStart() { return this.postStart != null ? this.postStart.build() : null; } - public io.kubernetes.client.openapi.models.V1LifecycleHandler buildPostStart() { + public V1LifecycleHandler buildPostStart() { return this.postStart != null ? this.postStart.build() : null; } - public A withPostStart(io.kubernetes.client.openapi.models.V1LifecycleHandler postStart) { + public A withPostStart(V1LifecycleHandler postStart) { _visitables.get("postStart").remove(this.postStart); if (postStart != null) { - this.postStart = new io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder(postStart); + this.postStart = new V1LifecycleHandlerBuilder(postStart); _visitables.get("postStart").add(this.postStart); + } else { + this.postStart = null; + _visitables.get("postStart").remove(this.postStart); } return (A) this; } @@ -61,25 +64,20 @@ public V1LifecycleFluent.PostStartNested withNewPostStart() { return new V1LifecycleFluentImpl.PostStartNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested - withNewPostStartLike(io.kubernetes.client.openapi.models.V1LifecycleHandler item) { + public V1LifecycleFluent.PostStartNested withNewPostStartLike(V1LifecycleHandler item) { return new V1LifecycleFluentImpl.PostStartNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested editPostStart() { + public V1LifecycleFluent.PostStartNested editPostStart() { return withNewPostStartLike(getPostStart()); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested - editOrNewPostStart() { + public V1LifecycleFluent.PostStartNested editOrNewPostStart() { return withNewPostStartLike( - getPostStart() != null - ? getPostStart() - : new io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder().build()); + getPostStart() != null ? getPostStart() : new V1LifecycleHandlerBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested - editOrNewPostStartLike(io.kubernetes.client.openapi.models.V1LifecycleHandler item) { + public V1LifecycleFluent.PostStartNested editOrNewPostStartLike(V1LifecycleHandler item) { return withNewPostStartLike(getPostStart() != null ? getPostStart() : item); } @@ -88,25 +86,28 @@ public io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LifecycleHandler getPreStop() { + @Deprecated + public V1LifecycleHandler getPreStop() { return this.preStop != null ? this.preStop.build() : null; } - public io.kubernetes.client.openapi.models.V1LifecycleHandler buildPreStop() { + public V1LifecycleHandler buildPreStop() { return this.preStop != null ? this.preStop.build() : null; } - public A withPreStop(io.kubernetes.client.openapi.models.V1LifecycleHandler preStop) { + public A withPreStop(V1LifecycleHandler preStop) { _visitables.get("preStop").remove(this.preStop); if (preStop != null) { - this.preStop = new io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder(preStop); + this.preStop = new V1LifecycleHandlerBuilder(preStop); _visitables.get("preStop").add(this.preStop); + } else { + this.preStop = null; + _visitables.get("preStop").remove(this.preStop); } return (A) this; } - public java.lang.Boolean hasPreStop() { + public Boolean hasPreStop() { return this.preStop != null; } @@ -114,24 +115,20 @@ public V1LifecycleFluent.PreStopNested withNewPreStop() { return new V1LifecycleFluentImpl.PreStopNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested withNewPreStopLike( - io.kubernetes.client.openapi.models.V1LifecycleHandler item) { - return new io.kubernetes.client.openapi.models.V1LifecycleFluentImpl.PreStopNestedImpl(item); + public V1LifecycleFluent.PreStopNested withNewPreStopLike(V1LifecycleHandler item) { + return new V1LifecycleFluentImpl.PreStopNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested editPreStop() { + public V1LifecycleFluent.PreStopNested editPreStop() { return withNewPreStopLike(getPreStop()); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested editOrNewPreStop() { + public V1LifecycleFluent.PreStopNested editOrNewPreStop() { return withNewPreStopLike( - getPreStop() != null - ? getPreStop() - : new io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder().build()); + getPreStop() != null ? getPreStop() : new V1LifecycleHandlerBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested - editOrNewPreStopLike(io.kubernetes.client.openapi.models.V1LifecycleHandler item) { + public V1LifecycleFluent.PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { return withNewPreStopLike(getPreStop() != null ? getPreStop() : item); } @@ -166,17 +163,16 @@ public String toString() { class PostStartNestedImpl extends V1LifecycleHandlerFluentImpl> - implements io.kubernetes.client.openapi.models.V1LifecycleFluent.PostStartNested, - Nested { - PostStartNestedImpl(io.kubernetes.client.openapi.models.V1LifecycleHandler item) { + implements V1LifecycleFluent.PostStartNested, Nested { + PostStartNestedImpl(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } PostStartNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder(this); + this.builder = new V1LifecycleHandlerBuilder(this); } - io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder builder; + V1LifecycleHandlerBuilder builder; public N and() { return (N) V1LifecycleFluentImpl.this.withPostStart(builder.build()); @@ -189,17 +185,16 @@ public N endPostStart() { class PreStopNestedImpl extends V1LifecycleHandlerFluentImpl> - implements io.kubernetes.client.openapi.models.V1LifecycleFluent.PreStopNested, - io.kubernetes.client.fluent.Nested { - PreStopNestedImpl(io.kubernetes.client.openapi.models.V1LifecycleHandler item) { + implements V1LifecycleFluent.PreStopNested, Nested { + PreStopNestedImpl(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } PreStopNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder(this); + this.builder = new V1LifecycleHandlerBuilder(this); } - io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder builder; + V1LifecycleHandlerBuilder builder; public N and() { return (N) V1LifecycleFluentImpl.this.withPreStop(builder.build()); 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 6b45cb4983..5e6b985e72 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 @@ -16,9 +16,7 @@ public class V1LifecycleHandlerBuilder extends V1LifecycleHandlerFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LifecycleHandler, - io.kubernetes.client.openapi.models.V1LifecycleHandlerBuilder> { + implements VisitableBuilder { public V1LifecycleHandlerBuilder() { this(false); } @@ -31,22 +29,17 @@ public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent) { this(fluent, false); } - public V1LifecycleHandlerBuilder( - io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent, Boolean validationEnabled) { this(fluent, new V1LifecycleHandler(), validationEnabled); } public V1LifecycleHandlerBuilder( - io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent fluent, - io.kubernetes.client.openapi.models.V1LifecycleHandler instance) { + V1LifecycleHandlerFluent fluent, V1LifecycleHandler instance) { this(fluent, instance, false); } public V1LifecycleHandlerBuilder( - io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent fluent, - io.kubernetes.client.openapi.models.V1LifecycleHandler instance, - java.lang.Boolean validationEnabled) { + V1LifecycleHandlerFluent fluent, V1LifecycleHandler instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withExec(instance.getExec()); @@ -57,14 +50,11 @@ public V1LifecycleHandlerBuilder( this.validationEnabled = validationEnabled; } - public V1LifecycleHandlerBuilder( - io.kubernetes.client.openapi.models.V1LifecycleHandler instance) { + public V1LifecycleHandlerBuilder(V1LifecycleHandler instance) { this(instance, false); } - public V1LifecycleHandlerBuilder( - io.kubernetes.client.openapi.models.V1LifecycleHandler instance, - java.lang.Boolean validationEnabled) { + public V1LifecycleHandlerBuilder(V1LifecycleHandler instance, Boolean validationEnabled) { this.fluent = this; this.withExec(instance.getExec()); @@ -75,10 +65,10 @@ public V1LifecycleHandlerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent fluent; - java.lang.Boolean validationEnabled; + V1LifecycleHandlerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LifecycleHandler build() { + public V1LifecycleHandler build() { V1LifecycleHandler buildable = new V1LifecycleHandler(); buildable.setExec(fluent.getExec()); buildable.setHttpGet(fluent.getHttpGet()); 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 a77ce846d7..29ce79affc 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 @@ -26,79 +26,69 @@ public interface V1LifecycleHandlerFluent> @Deprecated public V1ExecAction getExec(); - public io.kubernetes.client.openapi.models.V1ExecAction buildExec(); + public V1ExecAction buildExec(); - public A withExec(io.kubernetes.client.openapi.models.V1ExecAction exec); + public A withExec(V1ExecAction exec); public Boolean hasExec(); public V1LifecycleHandlerFluent.ExecNested withNewExec(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested withNewExecLike( - io.kubernetes.client.openapi.models.V1ExecAction item); + public V1LifecycleHandlerFluent.ExecNested withNewExecLike(V1ExecAction item); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested editExec(); + public V1LifecycleHandlerFluent.ExecNested editExec(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested editOrNewExec(); + public V1LifecycleHandlerFluent.ExecNested editOrNewExec(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested - editOrNewExecLike(io.kubernetes.client.openapi.models.V1ExecAction item); + public V1LifecycleHandlerFluent.ExecNested editOrNewExecLike(V1ExecAction item); /** * This method has been deprecated, please use method buildHttpGet instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HTTPGetAction getHttpGet(); - public io.kubernetes.client.openapi.models.V1HTTPGetAction buildHttpGet(); + public V1HTTPGetAction buildHttpGet(); - public A withHttpGet(io.kubernetes.client.openapi.models.V1HTTPGetAction httpGet); + public A withHttpGet(V1HTTPGetAction httpGet); - public java.lang.Boolean hasHttpGet(); + public Boolean hasHttpGet(); public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGet(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - withNewHttpGetLike(io.kubernetes.client.openapi.models.V1HTTPGetAction item); + public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - editHttpGet(); + public V1LifecycleHandlerFluent.HttpGetNested editHttpGet(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - editOrNewHttpGet(); + public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGet(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - editOrNewHttpGetLike(io.kubernetes.client.openapi.models.V1HTTPGetAction item); + public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item); /** * This method has been deprecated, please use method buildTcpSocket instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TCPSocketAction getTcpSocket(); - public io.kubernetes.client.openapi.models.V1TCPSocketAction buildTcpSocket(); + public V1TCPSocketAction buildTcpSocket(); - public A withTcpSocket(io.kubernetes.client.openapi.models.V1TCPSocketAction tcpSocket); + public A withTcpSocket(V1TCPSocketAction tcpSocket); - public java.lang.Boolean hasTcpSocket(); + public Boolean hasTcpSocket(); public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocket(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - withNewTcpSocketLike(io.kubernetes.client.openapi.models.V1TCPSocketAction item); + public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - editTcpSocket(); + public V1LifecycleHandlerFluent.TcpSocketNested editTcpSocket(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - editOrNewTcpSocket(); + public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocket(); - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - editOrNewTcpSocketLike(io.kubernetes.client.openapi.models.V1TCPSocketAction item); + public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item); public interface ExecNested extends Nested, V1ExecActionFluent> { @@ -108,16 +98,14 @@ public interface ExecNested } public interface HttpGetNested - extends io.kubernetes.client.fluent.Nested, - V1HTTPGetActionFluent> { + extends Nested, V1HTTPGetActionFluent> { public N and(); public N endHttpGet(); } public interface TcpSocketNested - extends io.kubernetes.client.fluent.Nested, - V1TCPSocketActionFluent> { + extends Nested, V1TCPSocketActionFluent> { public N and(); public N endTcpSocket(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java index de52c8c12e..65c991b8bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluentImpl.java @@ -21,8 +21,7 @@ public class V1LifecycleHandlerFluentImpl> extends BaseFluent implements V1LifecycleHandlerFluent { public V1LifecycleHandlerFluentImpl() {} - public V1LifecycleHandlerFluentImpl( - io.kubernetes.client.openapi.models.V1LifecycleHandler instance) { + public V1LifecycleHandlerFluentImpl(V1LifecycleHandler instance) { this.withExec(instance.getExec()); this.withHttpGet(instance.getHttpGet()); @@ -44,15 +43,18 @@ public V1ExecAction getExec() { return this.exec != null ? this.exec.build() : null; } - public io.kubernetes.client.openapi.models.V1ExecAction buildExec() { + public V1ExecAction buildExec() { return this.exec != null ? this.exec.build() : null; } - public A withExec(io.kubernetes.client.openapi.models.V1ExecAction exec) { + public A withExec(V1ExecAction exec) { _visitables.get("exec").remove(this.exec); if (exec != null) { - this.exec = new io.kubernetes.client.openapi.models.V1ExecActionBuilder(exec); + this.exec = new V1ExecActionBuilder(exec); _visitables.get("exec").add(this.exec); + } else { + this.exec = null; + _visitables.get("exec").remove(this.exec); } return (A) this; } @@ -65,25 +67,19 @@ public V1LifecycleHandlerFluent.ExecNested withNewExec() { return new V1LifecycleHandlerFluentImpl.ExecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested withNewExecLike( - io.kubernetes.client.openapi.models.V1ExecAction item) { + public V1LifecycleHandlerFluent.ExecNested withNewExecLike(V1ExecAction item) { return new V1LifecycleHandlerFluentImpl.ExecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested editExec() { + public V1LifecycleHandlerFluent.ExecNested editExec() { return withNewExecLike(getExec()); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested - editOrNewExec() { - return withNewExecLike( - getExec() != null - ? getExec() - : new io.kubernetes.client.openapi.models.V1ExecActionBuilder().build()); + public V1LifecycleHandlerFluent.ExecNested editOrNewExec() { + return withNewExecLike(getExec() != null ? getExec() : new V1ExecActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested - editOrNewExecLike(io.kubernetes.client.openapi.models.V1ExecAction item) { + public V1LifecycleHandlerFluent.ExecNested editOrNewExecLike(V1ExecAction item) { return withNewExecLike(getExec() != null ? getExec() : item); } @@ -92,25 +88,28 @@ public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested withNewHttpGet() { return new V1LifecycleHandlerFluentImpl.HttpGetNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - withNewHttpGetLike(io.kubernetes.client.openapi.models.V1HTTPGetAction item) { - return new io.kubernetes.client.openapi.models.V1LifecycleHandlerFluentImpl.HttpGetNestedImpl( - item); + public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { + return new V1LifecycleHandlerFluentImpl.HttpGetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - editHttpGet() { + public V1LifecycleHandlerFluent.HttpGetNested editHttpGet() { return withNewHttpGetLike(getHttpGet()); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - editOrNewHttpGet() { + public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGet() { return withNewHttpGetLike( - getHttpGet() != null - ? getHttpGet() - : new io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder().build()); + getHttpGet() != null ? getHttpGet() : new V1HTTPGetActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested - editOrNewHttpGetLike(io.kubernetes.client.openapi.models.V1HTTPGetAction item) { + public V1LifecycleHandlerFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { return withNewHttpGetLike(getHttpGet() != null ? getHttpGet() : item); } @@ -147,25 +139,28 @@ public V1LifecycleHandlerFluent.HttpGetNested withNewHttpGet() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1TCPSocketAction getTcpSocket() { + @Deprecated + public V1TCPSocketAction getTcpSocket() { return this.tcpSocket != null ? this.tcpSocket.build() : null; } - public io.kubernetes.client.openapi.models.V1TCPSocketAction buildTcpSocket() { + public V1TCPSocketAction buildTcpSocket() { return this.tcpSocket != null ? this.tcpSocket.build() : null; } - public A withTcpSocket(io.kubernetes.client.openapi.models.V1TCPSocketAction tcpSocket) { + public A withTcpSocket(V1TCPSocketAction tcpSocket) { _visitables.get("tcpSocket").remove(this.tcpSocket); if (tcpSocket != null) { this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); _visitables.get("tcpSocket").add(this.tcpSocket); + } else { + this.tcpSocket = null; + _visitables.get("tcpSocket").remove(this.tcpSocket); } return (A) this; } - public java.lang.Boolean hasTcpSocket() { + public Boolean hasTcpSocket() { return this.tcpSocket != null; } @@ -173,27 +168,21 @@ public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocket() { return new V1LifecycleHandlerFluentImpl.TcpSocketNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - withNewTcpSocketLike(io.kubernetes.client.openapi.models.V1TCPSocketAction item) { - return new io.kubernetes.client.openapi.models.V1LifecycleHandlerFluentImpl.TcpSocketNestedImpl( - item); + public V1LifecycleHandlerFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { + return new V1LifecycleHandlerFluentImpl.TcpSocketNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - editTcpSocket() { + public V1LifecycleHandlerFluent.TcpSocketNested editTcpSocket() { return withNewTcpSocketLike(getTcpSocket()); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - editOrNewTcpSocket() { + public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocket() { return withNewTcpSocketLike( - getTcpSocket() != null - ? getTcpSocket() - : new io.kubernetes.client.openapi.models.V1TCPSocketActionBuilder().build()); + getTcpSocket() != null ? getTcpSocket() : new V1TCPSocketActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested - editOrNewTcpSocketLike(io.kubernetes.client.openapi.models.V1TCPSocketAction item) { + public V1LifecycleHandlerFluent.TcpSocketNested editOrNewTcpSocketLike( + V1TCPSocketAction item) { return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket() : item); } @@ -232,17 +221,16 @@ public String toString() { } class ExecNestedImpl extends V1ExecActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.ExecNested, - Nested { - ExecNestedImpl(io.kubernetes.client.openapi.models.V1ExecAction item) { + implements V1LifecycleHandlerFluent.ExecNested, Nested { + ExecNestedImpl(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } ExecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ExecActionBuilder(this); + this.builder = new V1ExecActionBuilder(this); } - io.kubernetes.client.openapi.models.V1ExecActionBuilder builder; + V1ExecActionBuilder builder; public N and() { return (N) V1LifecycleHandlerFluentImpl.this.withExec(builder.build()); @@ -255,17 +243,16 @@ public N endExec() { class HttpGetNestedImpl extends V1HTTPGetActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.HttpGetNested, - io.kubernetes.client.fluent.Nested { + implements V1LifecycleHandlerFluent.HttpGetNested, Nested { HttpGetNestedImpl(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } HttpGetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder(this); + this.builder = new V1HTTPGetActionBuilder(this); } - io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder builder; + V1HTTPGetActionBuilder builder; public N and() { return (N) V1LifecycleHandlerFluentImpl.this.withHttpGet(builder.build()); @@ -278,17 +265,16 @@ public N endHttpGet() { class TcpSocketNestedImpl extends V1TCPSocketActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1LifecycleHandlerFluent.TcpSocketNested, - io.kubernetes.client.fluent.Nested { - TcpSocketNestedImpl(io.kubernetes.client.openapi.models.V1TCPSocketAction item) { + implements V1LifecycleHandlerFluent.TcpSocketNested, Nested { + TcpSocketNestedImpl(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } TcpSocketNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1TCPSocketActionBuilder(this); + this.builder = new V1TCPSocketActionBuilder(this); } - io.kubernetes.client.openapi.models.V1TCPSocketActionBuilder builder; + V1TCPSocketActionBuilder builder; public N and() { return (N) V1LifecycleHandlerFluentImpl.this.withTcpSocket(builder.build()); 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 3a45083876..973a4360c4 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LimitRangeBuilder extends V1LimitRangeFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LimitRange, - io.kubernetes.client.openapi.models.V1LimitRangeBuilder> { + implements VisitableBuilder { public V1LimitRangeBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1LimitRangeBuilder(V1LimitRangeFluent fluent) { this(fluent, false); } - public V1LimitRangeBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LimitRangeBuilder(V1LimitRangeFluent fluent, Boolean validationEnabled) { this(fluent, new V1LimitRange(), validationEnabled); } - public V1LimitRangeBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRange instance) { + public V1LimitRangeBuilder(V1LimitRangeFluent fluent, V1LimitRange instance) { this(fluent, instance, false); } public V1LimitRangeBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRange instance, - java.lang.Boolean validationEnabled) { + V1LimitRangeFluent fluent, V1LimitRange instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1LimitRangeBuilder( this.validationEnabled = validationEnabled; } - public V1LimitRangeBuilder(io.kubernetes.client.openapi.models.V1LimitRange instance) { + public V1LimitRangeBuilder(V1LimitRange instance) { this(instance, false); } - public V1LimitRangeBuilder( - io.kubernetes.client.openapi.models.V1LimitRange instance, - java.lang.Boolean validationEnabled) { + public V1LimitRangeBuilder(V1LimitRange instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1LimitRangeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LimitRangeFluent fluent; - java.lang.Boolean validationEnabled; + V1LimitRangeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LimitRange build() { + public V1LimitRange build() { V1LimitRange buildable = new V1LimitRange(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 05bf7ae74d..2f85668db7 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 @@ -19,15 +19,15 @@ public interface V1LimitRangeFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,50 +37,45 @@ public interface V1LimitRangeFluent> extends Flu @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1LimitRangeFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1LimitRangeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested editMetadata(); + public V1LimitRangeFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested - editOrNewMetadata(); + public V1LimitRangeFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1LimitRangeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LimitRangeSpec getSpec(); - public io.kubernetes.client.openapi.models.V1LimitRangeSpec buildSpec(); + public V1LimitRangeSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1LimitRangeSpec spec); + public A withSpec(V1LimitRangeSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1LimitRangeFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1LimitRangeSpec item); + public V1LimitRangeFluent.SpecNested withNewSpecLike(V1LimitRangeSpec item); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested editSpec(); + public V1LimitRangeFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested editOrNewSpec(); + public V1LimitRangeFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1LimitRangeSpec item); + public V1LimitRangeFluent.SpecNested editOrNewSpecLike(V1LimitRangeSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -90,8 +85,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1LimitRangeSpecFluent> { + extends Nested, V1LimitRangeSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java index c1e7eac4b0..fc24492c6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluentImpl.java @@ -21,7 +21,7 @@ public class V1LimitRangeFluentImpl> extends Bas implements V1LimitRangeFluent { public V1LimitRangeFluentImpl() {} - public V1LimitRangeFluentImpl(io.kubernetes.client.openapi.models.V1LimitRange instance) { + public V1LimitRangeFluentImpl(V1LimitRange instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1LimitRangeFluentImpl(io.kubernetes.client.openapi.models.V1LimitRange i } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1LimitRangeSpecBuilder spec; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,25 +96,20 @@ public V1LimitRangeFluent.MetadataNested withNewMetadata() { return new V1LimitRangeFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1LimitRangeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1LimitRangeFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested editMetadata() { + public V1LimitRangeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested - editOrNewMetadata() { + public V1LimitRangeFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1LimitRangeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -120,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LimitRangeSpec getSpec() { + @Deprecated + public V1LimitRangeSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1LimitRangeSpec buildSpec() { + public V1LimitRangeSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1LimitRangeSpec spec) { + public A withSpec(V1LimitRangeSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1LimitRangeSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -146,24 +147,19 @@ public V1LimitRangeFluent.SpecNested withNewSpec() { return new V1LimitRangeFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1LimitRangeSpec item) { - return new io.kubernetes.client.openapi.models.V1LimitRangeFluentImpl.SpecNestedImpl(item); + public V1LimitRangeFluent.SpecNested withNewSpecLike(V1LimitRangeSpec item) { + return new V1LimitRangeFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested editSpec() { + public V1LimitRangeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1LimitRangeSpecBuilder().build()); + public V1LimitRangeFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1LimitRangeSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1LimitRangeSpec item) { + public V1LimitRangeFluent.SpecNested editOrNewSpecLike(V1LimitRangeSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -183,7 +179,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -207,17 +203,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1LimitRangeFluent.MetadataNested, - Nested { + implements V1LimitRangeFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1LimitRangeFluentImpl.this.withMetadata(builder.build()); @@ -229,17 +224,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1LimitRangeSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1LimitRangeFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1LimitRangeSpec item) { + implements V1LimitRangeFluent.SpecNested, Nested { + SpecNestedImpl(V1LimitRangeSpec item) { this.builder = new V1LimitRangeSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LimitRangeSpecBuilder(this); + this.builder = new V1LimitRangeSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1LimitRangeSpecBuilder builder; + V1LimitRangeSpecBuilder builder; public N and() { return (N) V1LimitRangeFluentImpl.this.withSpec(builder.build()); 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 2f3f79cf77..68788ccd72 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluentImpl - implements VisitableBuilder< - V1LimitRangeItem, io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder> { + implements VisitableBuilder { public V1LimitRangeItemBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent) { this(fluent, false); } - public V1LimitRangeItemBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeItemFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent, Boolean validationEnabled) { this(fluent, new V1LimitRangeItem(), validationEnabled); } - public V1LimitRangeItemBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeItemFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRangeItem instance) { + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent, V1LimitRangeItem instance) { this(fluent, instance, false); } public V1LimitRangeItemBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeItemFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRangeItem instance, - java.lang.Boolean validationEnabled) { + V1LimitRangeItemFluent fluent, V1LimitRangeItem instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDefault(instance.getDefault()); @@ -61,13 +54,11 @@ public V1LimitRangeItemBuilder( this.validationEnabled = validationEnabled; } - public V1LimitRangeItemBuilder(io.kubernetes.client.openapi.models.V1LimitRangeItem instance) { + public V1LimitRangeItemBuilder(V1LimitRangeItem instance) { this(instance, false); } - public V1LimitRangeItemBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeItem instance, - java.lang.Boolean validationEnabled) { + public V1LimitRangeItemBuilder(V1LimitRangeItem instance, Boolean validationEnabled) { this.fluent = this; this.withDefault(instance.getDefault()); @@ -84,10 +75,10 @@ public V1LimitRangeItemBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LimitRangeItemFluent fluent; - java.lang.Boolean validationEnabled; + V1LimitRangeItemFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LimitRangeItem build() { + public V1LimitRangeItem build() { V1LimitRangeItem buildable = new V1LimitRangeItem(); buildable.setDefault(fluent.getDefault()); buildable.setDefaultRequest(fluent.getDefaultRequest()); 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 10397444f1..6a9c077218 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 @@ -20,89 +20,77 @@ public interface V1LimitRangeItemFluent> extends Fluent { public A addToDefault(String key, Quantity value); - public A addToDefault(Map map); + public A addToDefault(Map map); - public A removeFromDefault(java.lang.String key); + public A removeFromDefault(String key); - public A removeFromDefault( - java.util.Map map); + public A removeFromDefault(Map map); - public java.util.Map getDefault(); + public Map getDefault(); - public A withDefault( - java.util.Map _default); + public A withDefault(Map _default); public Boolean hasDefault(); - public A addToDefaultRequest(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToDefaultRequest(String key, Quantity value); - public A addToDefaultRequest( - java.util.Map map); + public A addToDefaultRequest(Map map); - public A removeFromDefaultRequest(java.lang.String key); + public A removeFromDefaultRequest(String key); - public A removeFromDefaultRequest( - java.util.Map map); + public A removeFromDefaultRequest(Map map); - public java.util.Map getDefaultRequest(); + public Map getDefaultRequest(); - public A withDefaultRequest( - java.util.Map defaultRequest); + public A withDefaultRequest(Map defaultRequest); - public java.lang.Boolean hasDefaultRequest(); + public Boolean hasDefaultRequest(); - public A addToMax(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToMax(String key, Quantity value); - public A addToMax(java.util.Map map); + public A addToMax(Map map); - public A removeFromMax(java.lang.String key); + public A removeFromMax(String key); - public A removeFromMax(java.util.Map map); + public A removeFromMax(Map map); - public java.util.Map getMax(); + public Map getMax(); - public A withMax( - java.util.Map max); + public A withMax(Map max); - public java.lang.Boolean hasMax(); + public Boolean hasMax(); - public A addToMaxLimitRequestRatio( - java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToMaxLimitRequestRatio(String key, Quantity value); - public A addToMaxLimitRequestRatio( - java.util.Map map); + public A addToMaxLimitRequestRatio(Map map); - public A removeFromMaxLimitRequestRatio(java.lang.String key); + public A removeFromMaxLimitRequestRatio(String key); - public A removeFromMaxLimitRequestRatio( - java.util.Map map); + public A removeFromMaxLimitRequestRatio(Map map); - public java.util.Map - getMaxLimitRequestRatio(); + public Map getMaxLimitRequestRatio(); - public A withMaxLimitRequestRatio( - java.util.Map maxLimitRequestRatio); + public A withMaxLimitRequestRatio(Map maxLimitRequestRatio); - public java.lang.Boolean hasMaxLimitRequestRatio(); + public Boolean hasMaxLimitRequestRatio(); - public A addToMin(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToMin(String key, Quantity value); - public A addToMin(java.util.Map map); + public A addToMin(Map map); - public A removeFromMin(java.lang.String key); + public A removeFromMin(String key); - public A removeFromMin(java.util.Map map); + public A removeFromMin(Map map); - public java.util.Map getMin(); + public Map getMin(); - public A withMin( - java.util.Map min); + public A withMin(Map min); - public java.lang.Boolean hasMin(); + public Boolean hasMin(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java index 5e92446c1c..d195889f57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluentImpl.java @@ -23,7 +23,7 @@ public class V1LimitRangeItemFluentImpl> ext implements V1LimitRangeItemFluent { public V1LimitRangeItemFluentImpl() {} - public V1LimitRangeItemFluentImpl(io.kubernetes.client.openapi.models.V1LimitRangeItem instance) { + public V1LimitRangeItemFluentImpl(V1LimitRangeItem instance) { this.withDefault(instance.getDefault()); this.withDefaultRequest(instance.getDefaultRequest()); @@ -38,14 +38,13 @@ public V1LimitRangeItemFluentImpl(io.kubernetes.client.openapi.models.V1LimitRan } private Map _default; - private java.util.Map defaultRequest; - private java.util.Map max; - private java.util.Map - maxLimitRequestRatio; - private java.util.Map min; - private java.lang.String type; - - public A addToDefault(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + private Map defaultRequest; + private Map max; + private Map maxLimitRequestRatio; + private Map min; + private String type; + + public A addToDefault(String key, Quantity value) { if (this._default == null && key != null && value != null) { this._default = new LinkedHashMap(); } @@ -55,9 +54,9 @@ public A addToDefault(java.lang.String key, io.kubernetes.client.custom.Quantity return (A) this; } - public A addToDefault(java.util.Map map) { + public A addToDefault(Map map) { if (this._default == null && map != null) { - this._default = new java.util.LinkedHashMap(); + this._default = new LinkedHashMap(); } if (map != null) { this._default.putAll(map); @@ -65,7 +64,7 @@ public A addToDefault(java.util.Map map) { + public A removeFromDefault(Map map) { if (this._default == null) { return (A) this; } @@ -90,16 +88,15 @@ public A removeFromDefault( return (A) this; } - public java.util.Map getDefault() { + public Map getDefault() { return this._default; } - public A withDefault( - java.util.Map _default) { + public A withDefault(Map _default) { if (_default == null) { this._default = null; } else { - this._default = new java.util.LinkedHashMap(_default); + this._default = new LinkedHashMap(_default); } return (A) this; } @@ -108,9 +105,9 @@ public Boolean hasDefault() { return this._default != null; } - public A addToDefaultRequest(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToDefaultRequest(String key, Quantity value) { if (this.defaultRequest == null && key != null && value != null) { - this.defaultRequest = new java.util.LinkedHashMap(); + this.defaultRequest = new LinkedHashMap(); } if (key != null && value != null) { this.defaultRequest.put(key, value); @@ -118,10 +115,9 @@ public A addToDefaultRequest(java.lang.String key, io.kubernetes.client.custom.Q return (A) this; } - public A addToDefaultRequest( - java.util.Map map) { + public A addToDefaultRequest(Map map) { if (this.defaultRequest == null && map != null) { - this.defaultRequest = new java.util.LinkedHashMap(); + this.defaultRequest = new LinkedHashMap(); } if (map != null) { this.defaultRequest.putAll(map); @@ -129,7 +125,7 @@ public A addToDefaultRequest( return (A) this; } - public A removeFromDefaultRequest(java.lang.String key) { + public A removeFromDefaultRequest(String key) { if (this.defaultRequest == null) { return (A) this; } @@ -139,8 +135,7 @@ public A removeFromDefaultRequest(java.lang.String key) { return (A) this; } - public A removeFromDefaultRequest( - java.util.Map map) { + public A removeFromDefaultRequest(Map map) { if (this.defaultRequest == null) { return (A) this; } @@ -154,27 +149,26 @@ public A removeFromDefaultRequest( return (A) this; } - public java.util.Map getDefaultRequest() { + public Map getDefaultRequest() { return this.defaultRequest; } - public A withDefaultRequest( - java.util.Map defaultRequest) { + public A withDefaultRequest(Map defaultRequest) { if (defaultRequest == null) { this.defaultRequest = null; } else { - this.defaultRequest = new java.util.LinkedHashMap(defaultRequest); + this.defaultRequest = new LinkedHashMap(defaultRequest); } return (A) this; } - public java.lang.Boolean hasDefaultRequest() { + public Boolean hasDefaultRequest() { return this.defaultRequest != null; } - public A addToMax(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToMax(String key, Quantity value) { if (this.max == null && key != null && value != null) { - this.max = new java.util.LinkedHashMap(); + this.max = new LinkedHashMap(); } if (key != null && value != null) { this.max.put(key, value); @@ -182,9 +176,9 @@ public A addToMax(java.lang.String key, io.kubernetes.client.custom.Quantity val return (A) this; } - public A addToMax(java.util.Map map) { + public A addToMax(Map map) { if (this.max == null && map != null) { - this.max = new java.util.LinkedHashMap(); + this.max = new LinkedHashMap(); } if (map != null) { this.max.putAll(map); @@ -192,7 +186,7 @@ public A addToMax(java.util.Map map) { + public A removeFromMax(Map map) { if (this.max == null) { return (A) this; } @@ -217,28 +210,26 @@ public A removeFromMax( return (A) this; } - public java.util.Map getMax() { + public Map getMax() { return this.max; } - public A withMax( - java.util.Map max) { + public A withMax(Map max) { if (max == null) { this.max = null; } else { - this.max = new java.util.LinkedHashMap(max); + this.max = new LinkedHashMap(max); } return (A) this; } - public java.lang.Boolean hasMax() { + public Boolean hasMax() { return this.max != null; } - public A addToMaxLimitRequestRatio( - java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToMaxLimitRequestRatio(String key, Quantity value) { if (this.maxLimitRequestRatio == null && key != null && value != null) { - this.maxLimitRequestRatio = new java.util.LinkedHashMap(); + this.maxLimitRequestRatio = new LinkedHashMap(); } if (key != null && value != null) { this.maxLimitRequestRatio.put(key, value); @@ -246,10 +237,9 @@ public A addToMaxLimitRequestRatio( return (A) this; } - public A addToMaxLimitRequestRatio( - java.util.Map map) { + public A addToMaxLimitRequestRatio(Map map) { if (this.maxLimitRequestRatio == null && map != null) { - this.maxLimitRequestRatio = new java.util.LinkedHashMap(); + this.maxLimitRequestRatio = new LinkedHashMap(); } if (map != null) { this.maxLimitRequestRatio.putAll(map); @@ -257,7 +247,7 @@ public A addToMaxLimitRequestRatio( return (A) this; } - public A removeFromMaxLimitRequestRatio(java.lang.String key) { + public A removeFromMaxLimitRequestRatio(String key) { if (this.maxLimitRequestRatio == null) { return (A) this; } @@ -267,8 +257,7 @@ public A removeFromMaxLimitRequestRatio(java.lang.String key) { return (A) this; } - public A removeFromMaxLimitRequestRatio( - java.util.Map map) { + public A removeFromMaxLimitRequestRatio(Map map) { if (this.maxLimitRequestRatio == null) { return (A) this; } @@ -282,28 +271,26 @@ public A removeFromMaxLimitRequestRatio( return (A) this; } - public java.util.Map - getMaxLimitRequestRatio() { + public Map getMaxLimitRequestRatio() { return this.maxLimitRequestRatio; } - public A withMaxLimitRequestRatio( - java.util.Map maxLimitRequestRatio) { + public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { if (maxLimitRequestRatio == null) { this.maxLimitRequestRatio = null; } else { - this.maxLimitRequestRatio = new java.util.LinkedHashMap(maxLimitRequestRatio); + this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); } return (A) this; } - public java.lang.Boolean hasMaxLimitRequestRatio() { + public Boolean hasMaxLimitRequestRatio() { return this.maxLimitRequestRatio != null; } - public A addToMin(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToMin(String key, Quantity value) { if (this.min == null && key != null && value != null) { - this.min = new java.util.LinkedHashMap(); + this.min = new LinkedHashMap(); } if (key != null && value != null) { this.min.put(key, value); @@ -311,9 +298,9 @@ public A addToMin(java.lang.String key, io.kubernetes.client.custom.Quantity val return (A) this; } - public A addToMin(java.util.Map map) { + public A addToMin(Map map) { if (this.min == null && map != null) { - this.min = new java.util.LinkedHashMap(); + this.min = new LinkedHashMap(); } if (map != null) { this.min.putAll(map); @@ -321,7 +308,7 @@ public A addToMin(java.util.Map map) { + public A removeFromMin(Map map) { if (this.min == null) { return (A) this; } @@ -346,34 +332,33 @@ public A removeFromMin( return (A) this; } - public java.util.Map getMin() { + public Map getMin() { return this.min; } - public A withMin( - java.util.Map min) { + public A withMin(Map min) { if (min == null) { this.min = null; } else { - this.min = new java.util.LinkedHashMap(min); + this.min = new LinkedHashMap(min); } return (A) this; } - public java.lang.Boolean hasMin() { + public Boolean hasMin() { return this.min != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -399,7 +384,7 @@ public int hashCode() { _default, defaultRequest, max, maxLimitRequestRatio, min, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (_default != null && !_default.isEmpty()) { 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 2f5dd81c27..0a41438b2b 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LimitRangeListBuilder extends V1LimitRangeListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LimitRangeList, - io.kubernetes.client.openapi.models.V1LimitRangeListBuilder> { + implements VisitableBuilder { public V1LimitRangeListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent) { this(fluent, false); } - public V1LimitRangeListBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent, Boolean validationEnabled) { this(fluent, new V1LimitRangeList(), validationEnabled); } - public V1LimitRangeListBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeListFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRangeList instance) { + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent, V1LimitRangeList instance) { this(fluent, instance, false); } public V1LimitRangeListBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeListFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRangeList instance, - java.lang.Boolean validationEnabled) { + V1LimitRangeListFluent fluent, V1LimitRangeList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1LimitRangeListBuilder( this.validationEnabled = validationEnabled; } - public V1LimitRangeListBuilder(io.kubernetes.client.openapi.models.V1LimitRangeList instance) { + public V1LimitRangeListBuilder(V1LimitRangeList instance) { this(instance, false); } - public V1LimitRangeListBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeList instance, - java.lang.Boolean validationEnabled) { + public V1LimitRangeListBuilder(V1LimitRangeList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1LimitRangeListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LimitRangeListFluent fluent; - java.lang.Boolean validationEnabled; + V1LimitRangeListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LimitRangeList build() { + public V1LimitRangeList build() { V1LimitRangeList buildable = new V1LimitRangeList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 29a6617f80..c3f2afd11e 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 @@ -22,23 +22,21 @@ public interface V1LimitRangeListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1LimitRange item); + public A addToItems(Integer index, V1LimitRange item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRange item); + public A setToItems(Integer index, V1LimitRange item); public A addToItems(io.kubernetes.client.openapi.models.V1LimitRange... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1LimitRange... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,82 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1LimitRange buildItem(java.lang.Integer index); + public V1LimitRange buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1LimitRange buildFirstItem(); + public V1LimitRange buildFirstItem(); - public io.kubernetes.client.openapi.models.V1LimitRange buildLastItem(); + public V1LimitRange buildLastItem(); - public io.kubernetes.client.openapi.models.V1LimitRange buildMatchingItem( - java.util.function.Predicate - predicate); + public V1LimitRange buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1LimitRangeListFluent.ItemsNested addNewItem(); - public V1LimitRangeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1LimitRange item); + public V1LimitRangeListFluent.ItemsNested addNewItemLike(V1LimitRange item); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRange item); + public V1LimitRangeListFluent.ItemsNested setNewItemLike(Integer index, V1LimitRange item); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1LimitRangeListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editFirstItem(); + public V1LimitRangeListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editLastItem(); + public V1LimitRangeListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1LimitRangeListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1LimitRangeListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1LimitRangeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - editMetadata(); + public V1LimitRangeListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - editOrNewMetadata(); + public V1LimitRangeListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1LimitRangeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1LimitRangeFluent> { @@ -133,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java index af051633fd..6f13711fec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluentImpl.java @@ -26,7 +26,7 @@ public class V1LimitRangeListFluentImpl> ext implements V1LimitRangeListFluent { public V1LimitRangeListFluentImpl() {} - public V1LimitRangeListFluentImpl(io.kubernetes.client.openapi.models.V1LimitRangeList instance) { + public V1LimitRangeListFluentImpl(V1LimitRangeList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -38,14 +38,14 @@ public V1LimitRangeListFluentImpl(io.kubernetes.client.openapi.models.V1LimitRan private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1LimitRange item) { + public A addToItems(Integer index, V1LimitRange item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeBuilder(item); + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRange item) { + public A setToItems(Integer index, V1LimitRange item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeBuilder(item); + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LimitRange item : items) { - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LimitRange item : items) { - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeBuilder(item); + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1LimitRange item : items) { - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder = each.next(); + V1LimitRangeBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1LimitRange buildItem(java.lang.Integer index) { + public V1LimitRange buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LimitRange buildFirstItem() { + public V1LimitRange buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LimitRange buildLastItem() { + public V1LimitRange buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LimitRange buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LimitRangeBuilder item : items) { + public V1LimitRange buildMatchingItem(Predicate predicate) { + for (V1LimitRangeBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1LimitRange buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LimitRangeBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1LimitRangeBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LimitRange item : items) { + this.items = new ArrayList(); + for (V1LimitRange item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1LimitRange item : items) { + for (V1LimitRange item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1LimitRangeListFluent.ItemsNested addNewItem() { return new V1LimitRangeListFluentImpl.ItemsNestedImpl(); } - public V1LimitRangeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1LimitRange item) { + public V1LimitRangeListFluent.ItemsNested addNewItemLike(V1LimitRange item) { return new V1LimitRangeListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRange item) { - return new io.kubernetes.client.openapi.models.V1LimitRangeListFluentImpl.ItemsNestedImpl( - index, item); + public V1LimitRangeListFluent.ItemsNested setNewItemLike(Integer index, V1LimitRange item) { + return new V1LimitRangeListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1LimitRangeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editFirstItem() { + public V1LimitRangeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editLastItem() { + public V1LimitRangeListFluent.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 io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1LimitRangeListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1LimitRangeListFluent.MetadataNested withNewMetadata() { return new V1LimitRangeListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1LimitRangeListFluentImpl.MetadataNestedImpl( - item); + public V1LimitRangeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1LimitRangeListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - editMetadata() { + public V1LimitRangeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - editOrNewMetadata() { + public V1LimitRangeListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1LimitRangeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,21 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1LimitRangeFluentImpl> - implements io.kubernetes.client.openapi.models.V1LimitRangeListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRange item) { + implements V1LimitRangeListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1LimitRange item) { this.index = index; this.builder = new V1LimitRangeBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LimitRangeBuilder(this); + this.builder = new V1LimitRangeBuilder(this); } - io.kubernetes.client.openapi.models.V1LimitRangeBuilder builder; - java.lang.Integer index; + V1LimitRangeBuilder builder; + Integer index; public N and() { return (N) V1LimitRangeListFluentImpl.this.setToItems(index, builder.build()); @@ -414,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1LimitRangeListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1LimitRangeListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1LimitRangeListFluentImpl.this.withMetadata(builder.build()); 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 aa6bbd8def..ffec87c725 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluentImpl - implements VisitableBuilder< - V1LimitRangeSpec, io.kubernetes.client.openapi.models.V1LimitRangeSpecBuilder> { + implements VisitableBuilder { public V1LimitRangeSpecBuilder() { this(false); } @@ -25,50 +24,41 @@ public V1LimitRangeSpecBuilder(Boolean validationEnabled) { this(new V1LimitRangeSpec(), validationEnabled); } - public V1LimitRangeSpecBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent fluent) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent) { this(fluent, false); } - public V1LimitRangeSpecBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1LimitRangeSpec(), validationEnabled); } - public V1LimitRangeSpecBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRangeSpec instance) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent, V1LimitRangeSpec instance) { this(fluent, instance, false); } public V1LimitRangeSpecBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1LimitRangeSpec instance, - java.lang.Boolean validationEnabled) { + V1LimitRangeSpecFluent fluent, V1LimitRangeSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLimits(instance.getLimits()); this.validationEnabled = validationEnabled; } - public V1LimitRangeSpecBuilder(io.kubernetes.client.openapi.models.V1LimitRangeSpec instance) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance) { this(instance, false); } - public V1LimitRangeSpecBuilder( - io.kubernetes.client.openapi.models.V1LimitRangeSpec instance, - java.lang.Boolean validationEnabled) { + public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance, Boolean validationEnabled) { this.fluent = this; this.withLimits(instance.getLimits()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1LimitRangeSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LimitRangeSpec build() { + public V1LimitRangeSpec build() { V1LimitRangeSpec buildable = new V1LimitRangeSpec(); buildable.setLimits(fluent.getLimits()); return buildable; 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 558e0a0b50..54edd54082 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 @@ -22,17 +22,15 @@ public interface V1LimitRangeSpecFluent> extends Fluent { public A addToLimits(Integer index, V1LimitRangeItem item); - public A setToLimits( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRangeItem item); + public A setToLimits(Integer index, V1LimitRangeItem item); public A addToLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items); - public A addAllToLimits(Collection items); + public A addAllToLimits(Collection items); public A removeFromLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items); - public A removeAllFromLimits( - java.util.Collection items); + public A removeAllFromLimits(Collection items); public A removeMatchingFromLimits(Predicate predicate); @@ -42,50 +40,41 @@ public A removeAllFromLimits( * @return The buildable object. */ @Deprecated - public List getLimits(); + public List getLimits(); - public java.util.List buildLimits(); + public List buildLimits(); - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildLimit(java.lang.Integer index); + public V1LimitRangeItem buildLimit(Integer index); - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildFirstLimit(); + public V1LimitRangeItem buildFirstLimit(); - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildLastLimit(); + public V1LimitRangeItem buildLastLimit(); - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildMatchingLimit( - java.util.function.Predicate - predicate); + public V1LimitRangeItem buildMatchingLimit(Predicate predicate); - public Boolean hasMatchingLimit( - java.util.function.Predicate - predicate); + public Boolean hasMatchingLimit(Predicate predicate); - public A withLimits(java.util.List limits); + public A withLimits(List limits); public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limits); - public java.lang.Boolean hasLimits(); + public Boolean hasLimits(); public V1LimitRangeSpecFluent.LimitsNested addNewLimit(); - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested addNewLimitLike( - io.kubernetes.client.openapi.models.V1LimitRangeItem item); + public V1LimitRangeSpecFluent.LimitsNested addNewLimitLike(V1LimitRangeItem item); - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested setNewLimitLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRangeItem item); + public V1LimitRangeSpecFluent.LimitsNested setNewLimitLike( + Integer index, V1LimitRangeItem item); - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested editLimit( - java.lang.Integer index); + public V1LimitRangeSpecFluent.LimitsNested editLimit(Integer index); - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested - editFirstLimit(); + public V1LimitRangeSpecFluent.LimitsNested editFirstLimit(); - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested editLastLimit(); + public V1LimitRangeSpecFluent.LimitsNested editLastLimit(); - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested - editMatchingLimit( - java.util.function.Predicate - predicate); + public V1LimitRangeSpecFluent.LimitsNested editMatchingLimit( + Predicate predicate); public interface LimitsNested extends Nested, V1LimitRangeItemFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java index 7b26a849d8..894390a4a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluentImpl.java @@ -26,7 +26,7 @@ public class V1LimitRangeSpecFluentImpl> ext implements V1LimitRangeSpecFluent { public V1LimitRangeSpecFluentImpl() {} - public V1LimitRangeSpecFluentImpl(io.kubernetes.client.openapi.models.V1LimitRangeSpec instance) { + public V1LimitRangeSpecFluentImpl(V1LimitRangeSpec instance) { this.withLimits(instance.getLimits()); } @@ -34,24 +34,19 @@ public V1LimitRangeSpecFluentImpl(io.kubernetes.client.openapi.models.V1LimitRan public A addToLimits(Integer index, V1LimitRangeItem item) { if (this.limits == null) { - this.limits = - new java.util.ArrayList(); + this.limits = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder(item); + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); _visitables.get("limits").add(index >= 0 ? index : _visitables.get("limits").size(), builder); this.limits.add(index >= 0 ? index : limits.size(), builder); return (A) this; } - public A setToLimits( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRangeItem item) { + public A setToLimits(Integer index, V1LimitRangeItem item) { if (this.limits == null) { - this.limits = - new java.util.ArrayList(); + this.limits = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder(item); + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); if (index < 0 || index >= _visitables.get("limits").size()) { _visitables.get("limits").add(builder); } else { @@ -67,26 +62,22 @@ public A setToLimits( public A addToLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { if (this.limits == null) { - this.limits = - new java.util.ArrayList(); + this.limits = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LimitRangeItem item : items) { - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder(item); + 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) { + public A addAllToLimits(Collection items) { if (this.limits == null) { - this.limits = - new java.util.ArrayList(); + this.limits = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LimitRangeItem item : items) { - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder(item); + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); _visitables.get("limits").add(builder); this.limits.add(builder); } @@ -94,9 +85,8 @@ public A addAllToLimits(Collection items) { - for (io.kubernetes.client.openapi.models.V1LimitRangeItem item : items) { - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder = - new io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder(item); + public A removeAllFromLimits(Collection items) { + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); _visitables.get("limits").remove(builder); if (this.limits != null) { this.limits.remove(builder); @@ -118,14 +106,12 @@ public A removeAllFromLimits( return (A) this; } - public A removeMatchingFromLimits( - Predicate predicate) { + public A removeMatchingFromLimits(Predicate predicate) { if (limits == null) return (A) this; - final Iterator each = - limits.iterator(); + final Iterator each = limits.iterator(); final List visitables = _visitables.get("limits"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder = each.next(); + V1LimitRangeItemBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -140,30 +126,28 @@ public A removeMatchingFromLimits( * @return The buildable object. */ @Deprecated - public List getLimits() { + public List getLimits() { return limits != null ? build(limits) : null; } - public java.util.List buildLimits() { + public List buildLimits() { return limits != null ? build(limits) : null; } - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildLimit(java.lang.Integer index) { + public V1LimitRangeItem buildLimit(Integer index) { return this.limits.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildFirstLimit() { + public V1LimitRangeItem buildFirstLimit() { return this.limits.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildLastLimit() { + public V1LimitRangeItem buildLastLimit() { return this.limits.get(limits.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LimitRangeItem buildMatchingLimit( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder item : limits) { + public V1LimitRangeItem buildMatchingLimit(Predicate predicate) { + for (V1LimitRangeItemBuilder item : limits) { if (predicate.test(item)) { return item.build(); } @@ -171,10 +155,8 @@ public io.kubernetes.client.openapi.models.V1LimitRangeItem buildMatchingLimit( return null; } - public Boolean hasMatchingLimit( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder item : limits) { + public Boolean hasMatchingLimit(Predicate predicate) { + for (V1LimitRangeItemBuilder item : limits) { if (predicate.test(item)) { return true; } @@ -182,13 +164,13 @@ public Boolean hasMatchingLimit( return false; } - public A withLimits(java.util.List limits) { + public A withLimits(List limits) { if (this.limits != null) { _visitables.get("limits").removeAll(this.limits); } if (limits != null) { - this.limits = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LimitRangeItem item : limits) { + this.limits = new ArrayList(); + for (V1LimitRangeItem item : limits) { this.addToLimits(item); } } else { @@ -202,14 +184,14 @@ public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limi this.limits.clear(); } if (limits != null) { - for (io.kubernetes.client.openapi.models.V1LimitRangeItem item : limits) { + for (V1LimitRangeItem item : limits) { this.addToLimits(item); } } return (A) this; } - public java.lang.Boolean hasLimits() { + public Boolean hasLimits() { return limits != null && !limits.isEmpty(); } @@ -217,42 +199,35 @@ public V1LimitRangeSpecFluent.LimitsNested addNewLimit() { return new V1LimitRangeSpecFluentImpl.LimitsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested addNewLimitLike( - io.kubernetes.client.openapi.models.V1LimitRangeItem item) { + public V1LimitRangeSpecFluent.LimitsNested addNewLimitLike(V1LimitRangeItem item) { return new V1LimitRangeSpecFluentImpl.LimitsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested setNewLimitLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LimitRangeItem item) { - return new io.kubernetes.client.openapi.models.V1LimitRangeSpecFluentImpl.LimitsNestedImpl( - index, item); + public V1LimitRangeSpecFluent.LimitsNested setNewLimitLike( + Integer index, V1LimitRangeItem item) { + return new V1LimitRangeSpecFluentImpl.LimitsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested editLimit( - java.lang.Integer index) { + public V1LimitRangeSpecFluent.LimitsNested editLimit(Integer index) { if (limits.size() <= index) throw new RuntimeException("Can't edit limits. Index exceeds size."); return setNewLimitLike(index, buildLimit(index)); } - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested - editFirstLimit() { + public V1LimitRangeSpecFluent.LimitsNested editFirstLimit() { if (limits.size() == 0) throw new RuntimeException("Can't edit first limits. The list is empty."); return setNewLimitLike(0, buildLimit(0)); } - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested - editLastLimit() { + public V1LimitRangeSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested - editMatchingLimit( - java.util.function.Predicate - predicate) { + public V1LimitRangeSpecFluent.LimitsNested editMatchingLimit( + Predicate predicate) { int index = -1; for (int i = 0; i < limits.size(); i++) { if (predicate.test(limits.get(i))) { @@ -289,20 +264,19 @@ public String toString() { class LimitsNestedImpl extends V1LimitRangeItemFluentImpl> - implements io.kubernetes.client.openapi.models.V1LimitRangeSpecFluent.LimitsNested, - Nested { - LimitsNestedImpl(java.lang.Integer index, V1LimitRangeItem item) { + implements V1LimitRangeSpecFluent.LimitsNested, Nested { + LimitsNestedImpl(Integer index, V1LimitRangeItem item) { this.index = index; this.builder = new V1LimitRangeItemBuilder(this, item); } LimitsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder(this); + this.builder = new V1LimitRangeItemBuilder(this); } - io.kubernetes.client.openapi.models.V1LimitRangeItemBuilder builder; - java.lang.Integer index; + V1LimitRangeItemBuilder builder; + Integer index; public N and() { return (N) V1LimitRangeSpecFluentImpl.this.setToLimits(index, builder.build()); 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 48a5a639be..2f752476f1 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ListMetaBuilder extends V1ListMetaFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1ListMetaBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1ListMetaBuilder(Boolean validationEnabled) { this(new V1ListMeta(), validationEnabled); } - public V1ListMetaBuilder(io.kubernetes.client.openapi.models.V1ListMetaFluent fluent) { + public V1ListMetaBuilder(V1ListMetaFluent fluent) { this(fluent, false); } - public V1ListMetaBuilder( - io.kubernetes.client.openapi.models.V1ListMetaFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ListMetaBuilder(V1ListMetaFluent fluent, Boolean validationEnabled) { this(fluent, new V1ListMeta(), validationEnabled); } - public V1ListMetaBuilder( - io.kubernetes.client.openapi.models.V1ListMetaFluent fluent, - io.kubernetes.client.openapi.models.V1ListMeta instance) { + public V1ListMetaBuilder(V1ListMetaFluent fluent, V1ListMeta instance) { this(fluent, instance, false); } public V1ListMetaBuilder( - io.kubernetes.client.openapi.models.V1ListMetaFluent fluent, - io.kubernetes.client.openapi.models.V1ListMeta instance, - java.lang.Boolean validationEnabled) { + V1ListMetaFluent fluent, V1ListMeta instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withContinue(instance.getContinue()); @@ -56,13 +50,11 @@ public V1ListMetaBuilder( this.validationEnabled = validationEnabled; } - public V1ListMetaBuilder(io.kubernetes.client.openapi.models.V1ListMeta instance) { + public V1ListMetaBuilder(V1ListMeta instance) { this(instance, false); } - public V1ListMetaBuilder( - io.kubernetes.client.openapi.models.V1ListMeta instance, - java.lang.Boolean validationEnabled) { + public V1ListMetaBuilder(V1ListMeta instance, Boolean validationEnabled) { this.fluent = this; this.withContinue(instance.getContinue()); @@ -75,10 +67,10 @@ public V1ListMetaBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ListMetaFluent fluent; - java.lang.Boolean validationEnabled; + V1ListMetaFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ListMeta build() { + public V1ListMeta build() { V1ListMeta buildable = new V1ListMeta(); buildable.setContinue(fluent.getContinue()); buildable.setRemainingItemCount(fluent.getRemainingItemCount()); 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 6e3defa200..a55abf8c12 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 @@ -18,25 +18,25 @@ public interface V1ListMetaFluent> extends Fluent { public String getContinue(); - public A withContinue(java.lang.String _continue); + public A withContinue(String _continue); public Boolean hasContinue(); public Long getRemainingItemCount(); - public A withRemainingItemCount(java.lang.Long remainingItemCount); + public A withRemainingItemCount(Long remainingItemCount); - public java.lang.Boolean hasRemainingItemCount(); + public Boolean hasRemainingItemCount(); - public java.lang.String getResourceVersion(); + public String getResourceVersion(); - public A withResourceVersion(java.lang.String resourceVersion); + public A withResourceVersion(String resourceVersion); - public java.lang.Boolean hasResourceVersion(); + public Boolean hasResourceVersion(); - public java.lang.String getSelfLink(); + public String getSelfLink(); - public A withSelfLink(java.lang.String selfLink); + public A withSelfLink(String selfLink); - public java.lang.Boolean hasSelfLink(); + public Boolean hasSelfLink(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java index 82bee338e5..7d6c3705f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluentImpl.java @@ -20,7 +20,7 @@ public class V1ListMetaFluentImpl> extends BaseFlu implements V1ListMetaFluent { public V1ListMetaFluentImpl() {} - public V1ListMetaFluentImpl(io.kubernetes.client.openapi.models.V1ListMeta instance) { + public V1ListMetaFluentImpl(V1ListMeta instance) { this.withContinue(instance.getContinue()); this.withRemainingItemCount(instance.getRemainingItemCount()); @@ -32,14 +32,14 @@ public V1ListMetaFluentImpl(io.kubernetes.client.openapi.models.V1ListMeta insta private String _continue; private Long remainingItemCount; - private java.lang.String resourceVersion; - private java.lang.String selfLink; + private String resourceVersion; + private String selfLink; - public java.lang.String getContinue() { + public String getContinue() { return this._continue; } - public A withContinue(java.lang.String _continue) { + public A withContinue(String _continue) { this._continue = _continue; return (A) this; } @@ -48,42 +48,42 @@ public Boolean hasContinue() { return this._continue != null; } - public java.lang.Long getRemainingItemCount() { + public Long getRemainingItemCount() { return this.remainingItemCount; } - public A withRemainingItemCount(java.lang.Long remainingItemCount) { + public A withRemainingItemCount(Long remainingItemCount) { this.remainingItemCount = remainingItemCount; return (A) this; } - public java.lang.Boolean hasRemainingItemCount() { + public Boolean hasRemainingItemCount() { return this.remainingItemCount != null; } - public java.lang.String getResourceVersion() { + public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(java.lang.String resourceVersion) { + public A withResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return (A) this; } - public java.lang.Boolean hasResourceVersion() { + public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public java.lang.String getSelfLink() { + public String getSelfLink() { return this.selfLink; } - public A withSelfLink(java.lang.String selfLink) { + public A withSelfLink(String selfLink) { this.selfLink = selfLink; return (A) this; } - public java.lang.Boolean hasSelfLink() { + public Boolean hasSelfLink() { return this.selfLink != null; } @@ -108,7 +108,7 @@ public int hashCode() { _continue, remainingItemCount, resourceVersion, selfLink, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (_continue != null) { 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 ff9343da09..44f0eab336 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 @@ -16,8 +16,7 @@ public class V1LoadBalancerIngressBuilder extends V1LoadBalancerIngressFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LoadBalancerIngress, V1LoadBalancerIngressBuilder> { + implements VisitableBuilder { public V1LoadBalancerIngressBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent) { } public V1LoadBalancerIngressBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent fluent, - java.lang.Boolean validationEnabled) { + V1LoadBalancerIngressFluent fluent, Boolean validationEnabled) { this(fluent, new V1LoadBalancerIngress(), validationEnabled); } public V1LoadBalancerIngressBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent fluent, - io.kubernetes.client.openapi.models.V1LoadBalancerIngress instance) { + V1LoadBalancerIngressFluent fluent, V1LoadBalancerIngress instance) { this(fluent, instance, false); } public V1LoadBalancerIngressBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent fluent, - io.kubernetes.client.openapi.models.V1LoadBalancerIngress instance, - java.lang.Boolean validationEnabled) { + V1LoadBalancerIngressFluent fluent, + V1LoadBalancerIngress instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withHostname(instance.getHostname()); @@ -56,14 +53,11 @@ public V1LoadBalancerIngressBuilder( this.validationEnabled = validationEnabled; } - public V1LoadBalancerIngressBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerIngress instance) { + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance) { this(instance, false); } - public V1LoadBalancerIngressBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerIngress instance, - java.lang.Boolean validationEnabled) { + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance, Boolean validationEnabled) { this.fluent = this; this.withHostname(instance.getHostname()); @@ -74,10 +68,10 @@ public V1LoadBalancerIngressBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent fluent; - java.lang.Boolean validationEnabled; + V1LoadBalancerIngressFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress build() { + public V1LoadBalancerIngress build() { V1LoadBalancerIngress buildable = new V1LoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); buildable.setIp(fluent.getIp()); 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 84e1f2d76a..87e7e89706 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 @@ -23,29 +23,27 @@ public interface V1LoadBalancerIngressFluent { public String getHostname(); - public A withHostname(java.lang.String hostname); + public A withHostname(String hostname); public Boolean hasHostname(); - public java.lang.String getIp(); + public String getIp(); - public A withIp(java.lang.String ip); + public A withIp(String ip); - public java.lang.Boolean hasIp(); + public Boolean hasIp(); public A addToPorts(Integer index, V1PortStatus item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PortStatus item); + public A setToPorts(Integer index, V1PortStatus item); public A addToPorts(io.kubernetes.client.openapi.models.V1PortStatus... items); - public A addAllToPorts(Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.V1PortStatus... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); public A removeMatchingFromPorts(Predicate predicate); @@ -55,52 +53,41 @@ public A removeAllFromPorts( * @return The buildable object. */ @Deprecated - public List getPorts(); + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.V1PortStatus buildPort(java.lang.Integer index); + public V1PortStatus buildPort(Integer index); - public io.kubernetes.client.openapi.models.V1PortStatus buildFirstPort(); + public V1PortStatus buildFirstPort(); - public io.kubernetes.client.openapi.models.V1PortStatus buildLastPort(); + public V1PortStatus buildLastPort(); - public io.kubernetes.client.openapi.models.V1PortStatus buildMatchingPort( - java.util.function.Predicate - predicate); + public V1PortStatus buildMatchingPort(Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1LoadBalancerIngressFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1PortStatus item); + public V1LoadBalancerIngressFluent.PortsNested addNewPortLike(V1PortStatus item); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PortStatus item); + public V1LoadBalancerIngressFluent.PortsNested setNewPortLike( + Integer index, V1PortStatus item); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested editPort( - java.lang.Integer index); + public V1LoadBalancerIngressFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - editFirstPort(); + public V1LoadBalancerIngressFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - editLastPort(); + public V1LoadBalancerIngressFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - editMatchingPort( - java.util.function.Predicate - predicate); + public V1LoadBalancerIngressFluent.PortsNested editMatchingPort( + Predicate predicate); public interface PortsNested extends Nested, V1PortStatusFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java index 50243c07f7..78fb918628 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluentImpl.java @@ -26,8 +26,7 @@ public class V1LoadBalancerIngressFluentImpl implements V1LoadBalancerIngressFluent { public V1LoadBalancerIngressFluentImpl() {} - public V1LoadBalancerIngressFluentImpl( - io.kubernetes.client.openapi.models.V1LoadBalancerIngress instance) { + public V1LoadBalancerIngressFluentImpl(V1LoadBalancerIngress instance) { this.withHostname(instance.getHostname()); this.withIp(instance.getIp()); @@ -36,14 +35,14 @@ public V1LoadBalancerIngressFluentImpl( } private String hostname; - private java.lang.String ip; + private String ip; private ArrayList ports; - public java.lang.String getHostname() { + public String getHostname() { return this.hostname; } - public A withHostname(java.lang.String hostname) { + public A withHostname(String hostname) { this.hostname = hostname; return (A) this; } @@ -52,39 +51,34 @@ public Boolean hasHostname() { return this.hostname != null; } - public java.lang.String getIp() { + public String getIp() { return this.ip; } - public A withIp(java.lang.String ip) { + public A withIp(String ip) { this.ip = ip; return (A) this; } - public java.lang.Boolean hasIp() { + public Boolean hasIp() { return this.ip != null; } public A addToPorts(Integer index, V1PortStatus item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1PortStatusBuilder(item); + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PortStatus item) { + public A setToPorts(Integer index, V1PortStatus item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1PortStatusBuilder(item); + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -100,26 +94,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PortStatus item : items) { - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1PortStatusBuilder(item); + 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) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PortStatus item : items) { - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1PortStatusBuilder(item); + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -127,9 +117,8 @@ public A addAllToPorts(Collection items) { - for (io.kubernetes.client.openapi.models.V1PortStatus item : items) { - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1PortStatusBuilder(item); + public A removeAllFromPorts(Collection items) { + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -151,13 +138,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - Predicate predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder = each.next(); + V1PortStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -172,30 +158,28 @@ public A removeMatchingFromPorts( * @return The buildable object. */ @Deprecated - public List getPorts() { + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.V1PortStatus buildPort(java.lang.Integer index) { + public V1PortStatus buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PortStatus buildFirstPort() { + public V1PortStatus buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PortStatus buildLastPort() { + public V1PortStatus buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PortStatus buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PortStatusBuilder item : ports) { + public V1PortStatus buildMatchingPort(Predicate predicate) { + for (V1PortStatusBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -203,10 +187,8 @@ public io.kubernetes.client.openapi.models.V1PortStatus buildMatchingPort( return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PortStatusBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (V1PortStatusBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -214,13 +196,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts(java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PortStatus item : ports) { + this.ports = new ArrayList(); + for (V1PortStatus item : ports) { this.addToPorts(item); } } else { @@ -234,14 +216,14 @@ public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports) { this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.V1PortStatus item : ports) { + for (V1PortStatus item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -249,41 +231,33 @@ public V1LoadBalancerIngressFluent.PortsNested addNewPort() { return new V1LoadBalancerIngressFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1PortStatus item) { + public V1LoadBalancerIngressFluent.PortsNested addNewPortLike(V1PortStatus item) { return new V1LoadBalancerIngressFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PortStatus item) { - return new io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluentImpl.PortsNestedImpl( - index, item); + public V1LoadBalancerIngressFluent.PortsNested setNewPortLike( + Integer index, V1PortStatus item) { + return new V1LoadBalancerIngressFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested editPort( - java.lang.Integer index) { + public V1LoadBalancerIngressFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - editFirstPort() { + public V1LoadBalancerIngressFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - editLastPort() { + public V1LoadBalancerIngressFluent.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)); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested - editMatchingPort( - java.util.function.Predicate - predicate) { + public V1LoadBalancerIngressFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -309,7 +283,7 @@ public int hashCode() { return java.util.Objects.hash(hostname, ip, ports, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (hostname != null) { @@ -330,21 +304,19 @@ public java.lang.String toString() { class PortsNestedImpl extends V1PortStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1LoadBalancerIngressFluent.PortsNested, - Nested { - PortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PortStatus item) { + implements V1LoadBalancerIngressFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, V1PortStatus item) { this.index = index; this.builder = new V1PortStatusBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PortStatusBuilder(this); + this.builder = new V1PortStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1PortStatusBuilder builder; - java.lang.Integer index; + V1PortStatusBuilder builder; + Integer index; public N and() { return (N) V1LoadBalancerIngressFluentImpl.this.setToPorts(index, builder.build()); 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 5fcae555cf..a24d32a2e0 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 @@ -16,8 +16,7 @@ public class V1LoadBalancerStatusBuilder extends V1LoadBalancerStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LoadBalancerStatus, V1LoadBalancerStatusBuilder> { + implements VisitableBuilder { public V1LoadBalancerStatusBuilder() { this(false); } @@ -26,51 +25,45 @@ public V1LoadBalancerStatusBuilder(Boolean validationEnabled) { this(new V1LoadBalancerStatus(), validationEnabled); } - public V1LoadBalancerStatusBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent fluent) { + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent) { this(fluent, false); } public V1LoadBalancerStatusBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1LoadBalancerStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1LoadBalancerStatus(), validationEnabled); } public V1LoadBalancerStatusBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1LoadBalancerStatus instance) { + V1LoadBalancerStatusFluent fluent, V1LoadBalancerStatus instance) { this(fluent, instance, false); } public V1LoadBalancerStatusBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1LoadBalancerStatus instance, - java.lang.Boolean validationEnabled) { + V1LoadBalancerStatusFluent fluent, + V1LoadBalancerStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withIngress(instance.getIngress()); this.validationEnabled = validationEnabled; } - public V1LoadBalancerStatusBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerStatus instance) { + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance) { this(instance, false); } - public V1LoadBalancerStatusBuilder( - io.kubernetes.client.openapi.models.V1LoadBalancerStatus instance, - java.lang.Boolean validationEnabled) { + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance, Boolean validationEnabled) { this.fluent = this; this.withIngress(instance.getIngress()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1LoadBalancerStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus build() { + public V1LoadBalancerStatus build() { V1LoadBalancerStatus buildable = new V1LoadBalancerStatus(); buildable.setIngress(fluent.getIngress()); return buildable; 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 9f17ebfccf..f37d4bea23 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 @@ -23,18 +23,15 @@ public interface V1LoadBalancerStatusFluent { public A addToIngress(Integer index, V1LoadBalancerIngress item); - public A setToIngress( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LoadBalancerIngress item); + public A setToIngress(Integer index, V1LoadBalancerIngress item); public A addToIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items); - public A addAllToIngress( - Collection items); + public A addAllToIngress(Collection items); public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items); - public A removeAllFromIngress( - java.util.Collection items); + public A removeAllFromIngress(Collection items); public A removeMatchingFromIngress(Predicate predicate); @@ -44,55 +41,42 @@ public A removeAllFromIngress( * @return The buildable object. */ @Deprecated - public List getIngress(); + public List getIngress(); - public java.util.List buildIngress(); + public List buildIngress(); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildIngress( - java.lang.Integer index); + public V1LoadBalancerIngress buildIngress(Integer index); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildFirstIngress(); + public V1LoadBalancerIngress buildFirstIngress(); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildLastIngress(); + public V1LoadBalancerIngress buildLastIngress(); - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildMatchingIngress( - java.util.function.Predicate - predicate); + public V1LoadBalancerIngress buildMatchingIngress( + Predicate predicate); - public Boolean hasMatchingIngress( - java.util.function.Predicate - predicate); + public Boolean hasMatchingIngress(Predicate predicate); - public A withIngress( - java.util.List ingress); + public A withIngress(List ingress); public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... ingress); - public java.lang.Boolean hasIngress(); + public Boolean hasIngress(); public V1LoadBalancerStatusFluent.IngressNested addNewIngress(); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - addNewIngressLike(io.kubernetes.client.openapi.models.V1LoadBalancerIngress item); + public V1LoadBalancerStatusFluent.IngressNested addNewIngressLike(V1LoadBalancerIngress item); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - setNewIngressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LoadBalancerIngress item); + public V1LoadBalancerStatusFluent.IngressNested setNewIngressLike( + Integer index, V1LoadBalancerIngress item); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editIngress(java.lang.Integer index); + public V1LoadBalancerStatusFluent.IngressNested editIngress(Integer index); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editFirstIngress(); + public V1LoadBalancerStatusFluent.IngressNested editFirstIngress(); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editLastIngress(); + public V1LoadBalancerStatusFluent.IngressNested editLastIngress(); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder> - predicate); + public V1LoadBalancerStatusFluent.IngressNested editMatchingIngress( + Predicate predicate); public interface IngressNested extends Nested, V1LoadBalancerIngressFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java index 966aa3e152..673ba85db6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluentImpl.java @@ -26,34 +26,27 @@ public class V1LoadBalancerStatusFluentImpl implements V1LoadBalancerStatusFluent { public V1LoadBalancerStatusFluentImpl() {} - public V1LoadBalancerStatusFluentImpl( - io.kubernetes.client.openapi.models.V1LoadBalancerStatus instance) { + public V1LoadBalancerStatusFluentImpl(V1LoadBalancerStatus instance) { this.withIngress(instance.getIngress()); } private ArrayList ingress; - public A addToIngress( - Integer index, io.kubernetes.client.openapi.models.V1LoadBalancerIngress item) { + public A addToIngress(Integer index, V1LoadBalancerIngress item) { if (this.ingress == null) { - this.ingress = new java.util.ArrayList(); + this.ingress = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = - new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(item); + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); _visitables.get("ingress").add(index >= 0 ? index : _visitables.get("ingress").size(), builder); this.ingress.add(index >= 0 ? index : ingress.size(), builder); return (A) this; } - public A setToIngress( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LoadBalancerIngress item) { + public A setToIngress(Integer index, V1LoadBalancerIngress item) { if (this.ingress == null) { - this.ingress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder>(); + this.ingress = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = - new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(item); + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); if (index < 0 || index >= _visitables.get("ingress").size()) { _visitables.get("ingress").add(builder); } else { @@ -69,29 +62,22 @@ public A setToIngress( public A addToIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { if (this.ingress == null) { - this.ingress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder>(); + this.ingress = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngress item : items) { - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = - new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(item); + 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) { + public A addAllToIngress(Collection items) { if (this.ingress == null) { - this.ingress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder>(); + this.ingress = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngress item : items) { - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = - new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(item); + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); _visitables.get("ingress").add(builder); this.ingress.add(builder); } @@ -99,9 +85,8 @@ public A addAllToIngress( } public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngress item : items) { - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = - new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(item); + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); _visitables.get("ingress").remove(builder); if (this.ingress != null) { this.ingress.remove(builder); @@ -110,11 +95,9 @@ public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIng return (A) this; } - public A removeAllFromIngress( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngress item : items) { - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = - new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(item); + public A removeAllFromIngress(Collection items) { + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); _visitables.get("ingress").remove(builder); if (this.ingress != null) { this.ingress.remove(builder); @@ -123,14 +106,12 @@ public A removeAllFromIngress( return (A) this; } - public A removeMatchingFromIngress( - Predicate predicate) { + public A removeMatchingFromIngress(Predicate predicate) { if (ingress == null) return (A) this; - final Iterator each = - ingress.iterator(); + final Iterator each = ingress.iterator(); final List visitables = _visitables.get("ingress"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder = each.next(); + V1LoadBalancerIngressBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -145,31 +126,29 @@ public A removeMatchingFromIngress( * @return The buildable object. */ @Deprecated - public List getIngress() { + public List getIngress() { return ingress != null ? build(ingress) : null; } - public java.util.List buildIngress() { + public List buildIngress() { return ingress != null ? build(ingress) : null; } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildIngress( - java.lang.Integer index) { + public V1LoadBalancerIngress buildIngress(Integer index) { return this.ingress.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildFirstIngress() { + public V1LoadBalancerIngress buildFirstIngress() { return this.ingress.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildLastIngress() { + public V1LoadBalancerIngress buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildMatchingIngress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder item : ingress) { + public V1LoadBalancerIngress buildMatchingIngress( + Predicate predicate) { + for (V1LoadBalancerIngressBuilder item : ingress) { if (predicate.test(item)) { return item.build(); } @@ -177,10 +156,8 @@ public io.kubernetes.client.openapi.models.V1LoadBalancerIngress buildMatchingIn return null; } - public Boolean hasMatchingIngress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder item : ingress) { + public Boolean hasMatchingIngress(Predicate predicate) { + for (V1LoadBalancerIngressBuilder item : ingress) { if (predicate.test(item)) { return true; } @@ -188,14 +165,13 @@ public Boolean hasMatchingIngress( return false; } - public A withIngress( - java.util.List ingress) { + public A withIngress(List ingress) { if (this.ingress != null) { _visitables.get("ingress").removeAll(this.ingress); } if (ingress != null) { - this.ingress = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngress item : ingress) { + this.ingress = new ArrayList(); + for (V1LoadBalancerIngress item : ingress) { this.addToIngress(item); } } else { @@ -209,14 +185,14 @@ public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress.. this.ingress.clear(); } if (ingress != null) { - for (io.kubernetes.client.openapi.models.V1LoadBalancerIngress item : ingress) { + for (V1LoadBalancerIngress item : ingress) { this.addToIngress(item); } } return (A) this; } - public java.lang.Boolean hasIngress() { + public Boolean hasIngress() { return ingress != null && !ingress.isEmpty(); } @@ -224,44 +200,35 @@ public V1LoadBalancerStatusFluent.IngressNested addNewIngress() { return new V1LoadBalancerStatusFluentImpl.IngressNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - addNewIngressLike(io.kubernetes.client.openapi.models.V1LoadBalancerIngress item) { + public V1LoadBalancerStatusFluent.IngressNested addNewIngressLike(V1LoadBalancerIngress item) { return new V1LoadBalancerStatusFluentImpl.IngressNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - setNewIngressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LoadBalancerIngress item) { - return new io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluentImpl.IngressNestedImpl( - index, item); + public V1LoadBalancerStatusFluent.IngressNested setNewIngressLike( + Integer index, V1LoadBalancerIngress item) { + return new V1LoadBalancerStatusFluentImpl.IngressNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editIngress(java.lang.Integer index) { + public V1LoadBalancerStatusFluent.IngressNested editIngress(Integer index) { if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); return setNewIngressLike(index, buildIngress(index)); } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editFirstIngress() { + public V1LoadBalancerStatusFluent.IngressNested editFirstIngress() { if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); return setNewIngressLike(0, buildIngress(0)); } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editLastIngress() { + public V1LoadBalancerStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested - editMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder> - predicate) { + public V1LoadBalancerStatusFluent.IngressNested editMatchingIngress( + Predicate predicate) { int index = -1; for (int i = 0; i < ingress.size(); i++) { if (predicate.test(ingress.get(i))) { @@ -298,20 +265,19 @@ public String toString() { class IngressNestedImpl extends V1LoadBalancerIngressFluentImpl> - implements io.kubernetes.client.openapi.models.V1LoadBalancerStatusFluent.IngressNested, - Nested { - IngressNestedImpl(java.lang.Integer index, V1LoadBalancerIngress item) { + implements V1LoadBalancerStatusFluent.IngressNested, Nested { + IngressNestedImpl(Integer index, V1LoadBalancerIngress item) { this.index = index; this.builder = new V1LoadBalancerIngressBuilder(this, item); } IngressNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder(this); + this.builder = new V1LoadBalancerIngressBuilder(this); } - io.kubernetes.client.openapi.models.V1LoadBalancerIngressBuilder builder; - java.lang.Integer index; + V1LoadBalancerIngressBuilder builder; + Integer index; public N and() { return (N) V1LoadBalancerStatusFluentImpl.this.setToIngress(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java index 01105af11b..c1146158b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java @@ -16,8 +16,7 @@ public class V1LocalObjectReferenceBuilder extends V1LocalObjectReferenceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LocalObjectReference, V1LocalObjectReferenceBuilder> { + implements VisitableBuilder { public V1LocalObjectReferenceBuilder() { this(false); } @@ -31,45 +30,40 @@ public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent) { } public V1LocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1LocalObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V1LocalObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1LocalObjectReference(), validationEnabled); } public V1LocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1LocalObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1LocalObjectReference instance) { + V1LocalObjectReferenceFluent fluent, V1LocalObjectReference instance) { this(fluent, instance, false); } public V1LocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1LocalObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1LocalObjectReference instance, - java.lang.Boolean validationEnabled) { + V1LocalObjectReferenceFluent fluent, + V1LocalObjectReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1LocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1LocalObjectReference instance) { + public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance) { this(instance, false); } - public V1LocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1LocalObjectReference instance, - java.lang.Boolean validationEnabled) { + public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1LocalObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LocalObjectReference build() { + public V1LocalObjectReference build() { V1LocalObjectReference buildable = new V1LocalObjectReference(); buildable.setName(fluent.getName()); return buildable; 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 2aa52d66d8..3e5254c168 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 @@ -19,7 +19,7 @@ public interface V1LocalObjectReferenceFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java index 4407ecbcbc..90f60612a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluentImpl.java @@ -20,18 +20,17 @@ public class V1LocalObjectReferenceFluentImpl implements V1LocalObjectReferenceFluent { public V1LocalObjectReferenceFluentImpl() {} - public V1LocalObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1LocalObjectReference instance) { + public V1LocalObjectReferenceFluentImpl(V1LocalObjectReference instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -52,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 8b91304711..b58c9c50d3 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 @@ -16,9 +16,7 @@ public class V1LocalSubjectAccessReviewBuilder extends V1LocalSubjectAccessReviewFluentImpl - implements VisitableBuilder< - V1LocalSubjectAccessReview, - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewBuilder> { + implements VisitableBuilder { public V1LocalSubjectAccessReviewBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent flu } public V1LocalSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent fluent, - java.lang.Boolean validationEnabled) { + V1LocalSubjectAccessReviewFluent fluent, Boolean validationEnabled) { this(fluent, new V1LocalSubjectAccessReview(), validationEnabled); } public V1LocalSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent fluent, - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReview instance) { + V1LocalSubjectAccessReviewFluent fluent, V1LocalSubjectAccessReview instance) { this(fluent, instance, false); } public V1LocalSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent fluent, - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReview instance, - java.lang.Boolean validationEnabled) { + V1LocalSubjectAccessReviewFluent fluent, + V1LocalSubjectAccessReview instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V1LocalSubjectAccessReviewBuilder( this.validationEnabled = validationEnabled; } - public V1LocalSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReview instance) { + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReview instance) { this(instance, false); } public V1LocalSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReview instance, - java.lang.Boolean validationEnabled) { + V1LocalSubjectAccessReview instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V1LocalSubjectAccessReviewBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent fluent; - java.lang.Boolean validationEnabled; + V1LocalSubjectAccessReviewFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReview build() { + public V1LocalSubjectAccessReview build() { V1LocalSubjectAccessReview buildable = new V1LocalSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 cd1248d3e8..cecf8f30ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java @@ -20,15 +20,15 @@ public interface V1LocalSubjectAccessReviewFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,81 +38,74 @@ public interface V1LocalSubjectAccessReviewFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - editMetadata(); + public V1LocalSubjectAccessReviewFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - editOrNewMetadata(); + public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewSpec getSpec(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec buildSpec(); + public V1SubjectAccessReviewSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec spec); + public A withSpec(V1SubjectAccessReviewSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item); + public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpecLike( + V1SubjectAccessReviewSpec item); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - editSpec(); + public V1LocalSubjectAccessReviewFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - editOrNewSpec(); + public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item); + public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( + V1SubjectAccessReviewSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewStatus getStatus(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus buildStatus(); + public V1SubjectAccessReviewStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus status); + public A withStatus(V1SubjectAccessReviewStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item); + public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatusLike( + V1SubjectAccessReviewStatus item); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - editStatus(); + public V1LocalSubjectAccessReviewFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - editOrNewStatus(); + public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item); + public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectAccessReviewStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -122,7 +115,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SubjectAccessReviewSpecFluent> { public N and(); @@ -130,7 +123,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SubjectAccessReviewStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java index 5508ea259c..e5e4a83304 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluentImpl.java @@ -21,8 +21,7 @@ public class V1LocalSubjectAccessReviewFluentImpl implements V1LocalSubjectAccessReviewFluent { public V1LocalSubjectAccessReviewFluentImpl() {} - public V1LocalSubjectAccessReviewFluentImpl( - io.kubernetes.client.openapi.models.V1LocalSubjectAccessReview instance) { + public V1LocalSubjectAccessReviewFluentImpl(V1LocalSubjectAccessReview instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1LocalSubjectAccessReviewFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1SubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,21 @@ public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadata() { return new V1LocalSubjectAccessReviewFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1LocalSubjectAccessReviewFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - editMetadata() { + public V1LocalSubjectAccessReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - editOrNewMetadata() { + public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1LocalSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +122,28 @@ public V1LocalSubjectAccessReviewFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec buildSpec() { + public V1SubjectAccessReviewSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec spec) { + public A withSpec(V1SubjectAccessReviewSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder(spec); + this.spec = new V1SubjectAccessReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,27 +151,22 @@ public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpec() { return new V1LocalSubjectAccessReviewFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item) { - return new io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluentImpl - .SpecNestedImpl(item); + public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpecLike( + V1SubjectAccessReviewSpec item) { + return new V1LocalSubjectAccessReviewFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - editSpec() { + public V1LocalSubjectAccessReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - editOrNewSpec() { + public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1SubjectAccessReviewSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item) { + public V1LocalSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( + V1SubjectAccessReviewSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -180,26 +175,28 @@ public V1LocalSubjectAccessReviewFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus buildStatus() { + public V1SubjectAccessReviewStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus status) { + public A withStatus(V1SubjectAccessReviewStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder(status); + this.status = new V1SubjectAccessReviewStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -207,27 +204,22 @@ public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatus() { return new V1LocalSubjectAccessReviewFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item) { - return new io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluentImpl - .StatusNestedImpl(item); + public V1LocalSubjectAccessReviewFluent.StatusNested withNewStatusLike( + V1SubjectAccessReviewStatus item) { + return new V1LocalSubjectAccessReviewFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - editStatus() { + public V1LocalSubjectAccessReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - editOrNewStatus() { + public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1SubjectAccessReviewStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item) { + public V1LocalSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectAccessReviewStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -248,7 +240,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -277,19 +269,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent - .MetadataNested< - N>, - Nested { + implements V1LocalSubjectAccessReviewFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1LocalSubjectAccessReviewFluentImpl.this.withMetadata(builder.build()); @@ -302,17 +291,16 @@ public N endMetadata() { class SpecNestedImpl extends V1SubjectAccessReviewSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item) { + implements V1LocalSubjectAccessReviewFluent.SpecNested, Nested { + SpecNestedImpl(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder(this); + this.builder = new V1SubjectAccessReviewSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder builder; + V1SubjectAccessReviewSpecBuilder builder; public N and() { return (N) V1LocalSubjectAccessReviewFluentImpl.this.withSpec(builder.build()); @@ -326,19 +314,16 @@ public N endSpec() { class StatusNestedImpl extends V1SubjectAccessReviewStatusFluentImpl< V1LocalSubjectAccessReviewFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1LocalSubjectAccessReviewFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1LocalSubjectAccessReviewFluent.StatusNested, Nested { StatusNestedImpl(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder(this); + this.builder = new V1SubjectAccessReviewStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder builder; + V1SubjectAccessReviewStatusBuilder builder; public N and() { return (N) V1LocalSubjectAccessReviewFluentImpl.this.withStatus(builder.build()); 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 842919f788..4d65ea5095 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 @@ -16,9 +16,7 @@ public class V1LocalVolumeSourceBuilder extends V1LocalVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1LocalVolumeSource, - io.kubernetes.client.openapi.models.V1LocalVolumeSourceBuilder> { + implements VisitableBuilder { public V1LocalVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent) { } public V1LocalVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1LocalVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1LocalVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1LocalVolumeSource(), validationEnabled); } public V1LocalVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1LocalVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1LocalVolumeSource instance) { + V1LocalVolumeSourceFluent fluent, V1LocalVolumeSource instance) { this(fluent, instance, false); } public V1LocalVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1LocalVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1LocalVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1LocalVolumeSourceFluent fluent, + V1LocalVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -55,14 +51,11 @@ public V1LocalVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1LocalVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1LocalVolumeSource instance) { + public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance) { this(instance, false); } - public V1LocalVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1LocalVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -71,10 +64,10 @@ public V1LocalVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1LocalVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1LocalVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1LocalVolumeSource build() { + public V1LocalVolumeSource build() { V1LocalVolumeSource buildable = new V1LocalVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setPath(fluent.getPath()); 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 15e720d789..a54634f169 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 @@ -19,13 +19,13 @@ public interface V1LocalVolumeSourceFluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java index da80247bf0..ed2c1f651b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluentImpl.java @@ -20,21 +20,20 @@ public class V1LocalVolumeSourceFluentImpl implements V1LocalVolumeSourceFluent { public V1LocalVolumeSourceFluentImpl() {} - public V1LocalVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1LocalVolumeSource instance) { + public V1LocalVolumeSourceFluentImpl(V1LocalVolumeSource instance) { this.withFsType(instance.getFsType()); this.withPath(instance.getPath()); } private String fsType; - private java.lang.String path; + private String path; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, path, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 04b6a6b773..757b7c1867 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 @@ -16,9 +16,7 @@ public class V1ManagedFieldsEntryBuilder extends V1ManagedFieldsEntryFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry, - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder> { + implements VisitableBuilder { public V1ManagedFieldsEntryBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent) { } public V1ManagedFieldsEntryBuilder( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryFluent fluent, - java.lang.Boolean validationEnabled) { + V1ManagedFieldsEntryFluent fluent, Boolean validationEnabled) { this(fluent, new V1ManagedFieldsEntry(), validationEnabled); } public V1ManagedFieldsEntryBuilder( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryFluent fluent, - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry instance) { + V1ManagedFieldsEntryFluent fluent, V1ManagedFieldsEntry instance) { this(fluent, instance, false); } public V1ManagedFieldsEntryBuilder( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryFluent fluent, - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry instance, - java.lang.Boolean validationEnabled) { + V1ManagedFieldsEntryFluent fluent, + V1ManagedFieldsEntry instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -65,14 +61,11 @@ public V1ManagedFieldsEntryBuilder( this.validationEnabled = validationEnabled; } - public V1ManagedFieldsEntryBuilder( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry instance) { + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance) { this(instance, false); } - public V1ManagedFieldsEntryBuilder( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry instance, - java.lang.Boolean validationEnabled) { + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -91,10 +84,10 @@ public V1ManagedFieldsEntryBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryFluent fluent; - java.lang.Boolean validationEnabled; + V1ManagedFieldsEntryFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry build() { + public V1ManagedFieldsEntry build() { V1ManagedFieldsEntry buildable = new V1ManagedFieldsEntry(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setFieldsType(fluent.getFieldsType()); 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 2fad24a95f..e82f9e9c83 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 @@ -20,43 +20,43 @@ public interface V1ManagedFieldsEntryFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getFieldsType(); + public String getFieldsType(); - public A withFieldsType(java.lang.String fieldsType); + public A withFieldsType(String fieldsType); - public java.lang.Boolean hasFieldsType(); + public Boolean hasFieldsType(); public Object getFieldsV1(); - public A withFieldsV1(java.lang.Object fieldsV1); + public A withFieldsV1(Object fieldsV1); - public java.lang.Boolean hasFieldsV1(); + public Boolean hasFieldsV1(); - public java.lang.String getManager(); + public String getManager(); - public A withManager(java.lang.String manager); + public A withManager(String manager); - public java.lang.Boolean hasManager(); + public Boolean hasManager(); - public java.lang.String getOperation(); + public String getOperation(); - public A withOperation(java.lang.String operation); + public A withOperation(String operation); - public java.lang.Boolean hasOperation(); + public Boolean hasOperation(); - public java.lang.String getSubresource(); + public String getSubresource(); - public A withSubresource(java.lang.String subresource); + public A withSubresource(String subresource); - public java.lang.Boolean hasSubresource(); + public Boolean hasSubresource(); public OffsetDateTime getTime(); - public A withTime(java.time.OffsetDateTime time); + public A withTime(OffsetDateTime time); - public java.lang.Boolean hasTime(); + public Boolean hasTime(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java index 3b2513038d..6616399ed3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluentImpl.java @@ -21,8 +21,7 @@ public class V1ManagedFieldsEntryFluentImpl implements V1ManagedFieldsEntryFluent { public V1ManagedFieldsEntryFluentImpl() {} - public V1ManagedFieldsEntryFluentImpl( - io.kubernetes.client.openapi.models.V1ManagedFieldsEntry instance) { + public V1ManagedFieldsEntryFluentImpl(V1ManagedFieldsEntry instance) { this.withApiVersion(instance.getApiVersion()); this.withFieldsType(instance.getFieldsType()); @@ -39,18 +38,18 @@ public V1ManagedFieldsEntryFluentImpl( } private String apiVersion; - private java.lang.String fieldsType; + private String fieldsType; private Object fieldsV1; - private java.lang.String manager; - private java.lang.String operation; - private java.lang.String subresource; + private String manager; + private String operation; + private String subresource; private OffsetDateTime time; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -59,85 +58,85 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getFieldsType() { + public String getFieldsType() { return this.fieldsType; } - public A withFieldsType(java.lang.String fieldsType) { + public A withFieldsType(String fieldsType) { this.fieldsType = fieldsType; return (A) this; } - public java.lang.Boolean hasFieldsType() { + public Boolean hasFieldsType() { return this.fieldsType != null; } - public java.lang.Object getFieldsV1() { + public Object getFieldsV1() { return this.fieldsV1; } - public A withFieldsV1(java.lang.Object fieldsV1) { + public A withFieldsV1(Object fieldsV1) { this.fieldsV1 = fieldsV1; return (A) this; } - public java.lang.Boolean hasFieldsV1() { + public Boolean hasFieldsV1() { return this.fieldsV1 != null; } - public java.lang.String getManager() { + public String getManager() { return this.manager; } - public A withManager(java.lang.String manager) { + public A withManager(String manager) { this.manager = manager; return (A) this; } - public java.lang.Boolean hasManager() { + public Boolean hasManager() { return this.manager != null; } - public java.lang.String getOperation() { + public String getOperation() { return this.operation; } - public A withOperation(java.lang.String operation) { + public A withOperation(String operation) { this.operation = operation; return (A) this; } - public java.lang.Boolean hasOperation() { + public Boolean hasOperation() { return this.operation != null; } - public java.lang.String getSubresource() { + public String getSubresource() { return this.subresource; } - public A withSubresource(java.lang.String subresource) { + public A withSubresource(String subresource) { this.subresource = subresource; return (A) this; } - public java.lang.Boolean hasSubresource() { + public Boolean hasSubresource() { return this.subresource != null; } - public java.time.OffsetDateTime getTime() { + public OffsetDateTime getTime() { return this.time; } - public A withTime(java.time.OffsetDateTime time) { + public A withTime(OffsetDateTime time) { this.time = time; return (A) this; } - public java.lang.Boolean hasTime() { + public Boolean hasTime() { return this.time != null; } - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1ManagedFieldsEntryFluentImpl that = (V1ManagedFieldsEntryFluentImpl) o; @@ -160,7 +159,7 @@ public int hashCode() { apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 297d6ab0df..7367ca3b4b 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1MutatingWebhook, - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder> { + implements VisitableBuilder { public V1MutatingWebhookBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent) { this(fluent, false); } - public V1MutatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookFluent fluent, - java.lang.Boolean validationEnabled) { + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent, Boolean validationEnabled) { this(fluent, new V1MutatingWebhook(), validationEnabled); } - public V1MutatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookFluent fluent, - io.kubernetes.client.openapi.models.V1MutatingWebhook instance) { + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent, V1MutatingWebhook instance) { this(fluent, instance, false); } public V1MutatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookFluent fluent, - io.kubernetes.client.openapi.models.V1MutatingWebhook instance, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookFluent fluent, V1MutatingWebhook instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); @@ -72,13 +64,11 @@ public V1MutatingWebhookBuilder( this.validationEnabled = validationEnabled; } - public V1MutatingWebhookBuilder(io.kubernetes.client.openapi.models.V1MutatingWebhook instance) { + public V1MutatingWebhookBuilder(V1MutatingWebhook instance) { this(instance, false); } - public V1MutatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhook instance, - java.lang.Boolean validationEnabled) { + public V1MutatingWebhookBuilder(V1MutatingWebhook instance, Boolean validationEnabled) { this.fluent = this; this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); @@ -105,10 +95,10 @@ public V1MutatingWebhookBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1MutatingWebhookFluent fluent; - java.lang.Boolean validationEnabled; + V1MutatingWebhookFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1MutatingWebhook build() { + public V1MutatingWebhook build() { V1MutatingWebhook buildable = new V1MutatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); buildable.setClientConfig(fluent.getClientConfig()); 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 a236c972d7..2ccc37a7fe 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 @@ -17,8 +17,7 @@ public class V1MutatingWebhookConfigurationBuilder extends V1MutatingWebhookConfigurationFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> { + V1MutatingWebhookConfiguration, V1MutatingWebhookConfigurationBuilder> { public V1MutatingWebhookConfigurationBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluen } public V1MutatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1MutatingWebhookConfiguration(), validationEnabled); } public V1MutatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration instance) { + V1MutatingWebhookConfigurationFluent fluent, V1MutatingWebhookConfiguration instance) { this(fluent, instance, false); } public V1MutatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration instance, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookConfigurationFluent fluent, + V1MutatingWebhookConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +56,12 @@ public V1MutatingWebhookConfigurationBuilder( this.validationEnabled = validationEnabled; } - public V1MutatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration instance) { + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfiguration instance) { this(instance, false); } public V1MutatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration instance, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +74,10 @@ public V1MutatingWebhookConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1MutatingWebhookConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration build() { + public V1MutatingWebhookConfiguration build() { V1MutatingWebhookConfiguration buildable = new V1MutatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 8efe7314d4..1d6ba5a796 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 @@ -24,15 +24,15 @@ public interface V1MutatingWebhookConfigurationFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -42,40 +42,35 @@ public interface V1MutatingWebhookConfigurationFluent< @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadata(); public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - editMetadata(); + public V1MutatingWebhookConfigurationFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - editOrNewMetadata(); + public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); - public A addToWebhooks(Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item); + public A addToWebhooks(Integer index, V1MutatingWebhook item); - public A setToWebhooks( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item); + public A setToWebhooks(Integer index, V1MutatingWebhook item); public A addToWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items); - public A addAllToWebhooks( - Collection items); + public A addAllToWebhooks(Collection items); public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items); - public A removeAllFromWebhooks( - java.util.Collection items); + public A removeAllFromWebhooks(Collection items); public A removeMatchingFromWebhooks(Predicate predicate); @@ -84,55 +79,43 @@ public A removeAllFromWebhooks( * * @return The buildable object. */ - @java.lang.Deprecated - public List getWebhooks(); + @Deprecated + public List getWebhooks(); - public java.util.List buildWebhooks(); + public List buildWebhooks(); - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildWebhook( - java.lang.Integer index); + public V1MutatingWebhook buildWebhook(Integer index); - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildFirstWebhook(); + public V1MutatingWebhook buildFirstWebhook(); - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildLastWebhook(); + public V1MutatingWebhook buildLastWebhook(); - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildMatchingWebhook( - java.util.function.Predicate - predicate); + public V1MutatingWebhook buildMatchingWebhook(Predicate predicate); - public java.lang.Boolean hasMatchingWebhook( - java.util.function.Predicate - predicate); + public Boolean hasMatchingWebhook(Predicate predicate); - public A withWebhooks( - java.util.List webhooks); + public A withWebhooks(List webhooks); public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... webhooks); - public java.lang.Boolean hasWebhooks(); + public Boolean hasWebhooks(); public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhook(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - addNewWebhookLike(io.kubernetes.client.openapi.models.V1MutatingWebhook item); + public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( + V1MutatingWebhook item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - setNewWebhookLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item); + public V1MutatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( + Integer index, V1MutatingWebhook item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editWebhook(java.lang.Integer index); + public V1MutatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editFirstWebhook(); + public V1MutatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editLastWebhook(); + public V1MutatingWebhookConfigurationFluent.WebhooksNested editLastWebhook(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editMatchingWebhook( - java.util.function.Predicate - predicate); + public V1MutatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( + Predicate predicate); public interface MetadataNested extends Nested, @@ -143,7 +126,7 @@ public interface MetadataNested } public interface WebhooksNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1MutatingWebhookFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java index dec638f7ec..85470849c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluentImpl.java @@ -38,15 +38,15 @@ public V1MutatingWebhookConfigurationFluentImpl(V1MutatingWebhookConfiguration i } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private ArrayList webhooks; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,16 +55,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -74,24 +74,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -99,37 +102,30 @@ public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadata() return new V1MutatingWebhookConfigurationFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1MutatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V1MutatingWebhookConfigurationFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - editMetadata() { + public V1MutatingWebhookConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - editOrNewMetadata() { + public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1MutatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToWebhooks( - Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item) { + public A addToWebhooks(Integer index, V1MutatingWebhook item) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(item); + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); _visitables .get("webhooks") .add(index >= 0 ? index : _visitables.get("webhooks").size(), builder); @@ -137,14 +133,11 @@ public A addToWebhooks( return (A) this; } - public A setToWebhooks( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item) { + public A setToWebhooks(Integer index, V1MutatingWebhook item) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(item); + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); if (index < 0 || index >= _visitables.get("webhooks").size()) { _visitables.get("webhooks").add(builder); } else { @@ -160,27 +153,22 @@ public A setToWebhooks( public A addToWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1MutatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(item); + 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) { + public A addAllToWebhooks(Collection items) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1MutatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(item); + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); _visitables.get("webhooks").add(builder); this.webhooks.add(builder); } @@ -188,9 +176,8 @@ public A addAllToWebhooks( } public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(item); + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); _visitables.get("webhooks").remove(builder); if (this.webhooks != null) { this.webhooks.remove(builder); @@ -199,11 +186,9 @@ public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhoo return (A) this; } - public A removeAllFromWebhooks( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(item); + public A removeAllFromWebhooks(Collection items) { + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); _visitables.get("webhooks").remove(builder); if (this.webhooks != null) { this.webhooks.remove(builder); @@ -212,14 +197,12 @@ public A removeAllFromWebhooks( return (A) this; } - public A removeMatchingFromWebhooks( - Predicate predicate) { + public A removeMatchingFromWebhooks(Predicate predicate) { if (webhooks == null) return (A) this; - final Iterator each = - webhooks.iterator(); + final Iterator each = webhooks.iterator(); final List visitables = _visitables.get("webhooks"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder = each.next(); + V1MutatingWebhookBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -233,32 +216,29 @@ public A removeMatchingFromWebhooks( * * @return The buildable object. */ - @java.lang.Deprecated - public List getWebhooks() { + @Deprecated + public List getWebhooks() { return webhooks != null ? build(webhooks) : null; } - public java.util.List buildWebhooks() { + public List buildWebhooks() { return webhooks != null ? build(webhooks) : null; } - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildWebhook( - java.lang.Integer index) { + public V1MutatingWebhook buildWebhook(Integer index) { return this.webhooks.get(index).build(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildFirstWebhook() { + public V1MutatingWebhook buildFirstWebhook() { return this.webhooks.get(0).build(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildLastWebhook() { + public V1MutatingWebhook buildLastWebhook() { return this.webhooks.get(webhooks.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhook buildMatchingWebhook( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder item : webhooks) { + public V1MutatingWebhook buildMatchingWebhook(Predicate predicate) { + for (V1MutatingWebhookBuilder item : webhooks) { if (predicate.test(item)) { return item.build(); } @@ -266,10 +246,8 @@ public io.kubernetes.client.openapi.models.V1MutatingWebhook buildMatchingWebhoo return null; } - public java.lang.Boolean hasMatchingWebhook( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder item : webhooks) { + public Boolean hasMatchingWebhook(Predicate predicate) { + for (V1MutatingWebhookBuilder item : webhooks) { if (predicate.test(item)) { return true; } @@ -277,14 +255,13 @@ public java.lang.Boolean hasMatchingWebhook( return false; } - public A withWebhooks( - java.util.List webhooks) { + public A withWebhooks(List webhooks) { if (this.webhooks != null) { _visitables.get("webhooks").removeAll(this.webhooks); } if (webhooks != null) { - this.webhooks = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1MutatingWebhook item : webhooks) { + this.webhooks = new ArrayList(); + for (V1MutatingWebhook item : webhooks) { this.addToWebhooks(item); } } else { @@ -298,14 +275,14 @@ public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... w this.webhooks.clear(); } if (webhooks != null) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhook item : webhooks) { + for (V1MutatingWebhook item : webhooks) { this.addToWebhooks(item); } } return (A) this; } - public java.lang.Boolean hasWebhooks() { + public Boolean hasWebhooks() { return webhooks != null && !webhooks.isEmpty(); } @@ -313,44 +290,36 @@ public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhook() { return new V1MutatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - addNewWebhookLike(io.kubernetes.client.openapi.models.V1MutatingWebhook item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluentImpl - .WebhooksNestedImpl(-1, item); + public V1MutatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( + V1MutatingWebhook item) { + return new V1MutatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - setNewWebhookLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluentImpl - .WebhooksNestedImpl(index, item); + public V1MutatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( + Integer index, V1MutatingWebhook item) { + return new V1MutatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editWebhook(java.lang.Integer index) { + public V1MutatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index) { if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); return setNewWebhookLike(index, buildWebhook(index)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editFirstWebhook() { + public V1MutatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook() { if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); return setNewWebhookLike(0, buildWebhook(0)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editLastWebhook() { + public V1MutatingWebhookConfigurationFluent.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)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent.WebhooksNested - editMatchingWebhook( - java.util.function.Predicate - predicate) { + public V1MutatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( + Predicate predicate) { int index = -1; for (int i = 0; i < webhooks.size(); i++) { if (predicate.test(webhooks.get(i))) { @@ -378,7 +347,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, webhooks, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -403,19 +372,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent - .MetadataNested< - N>, - Nested { + implements V1MutatingWebhookConfigurationFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1MutatingWebhookConfigurationFluentImpl.this.withMetadata(builder.build()); @@ -428,23 +394,19 @@ public N endMetadata() { class WebhooksNestedImpl extends V1MutatingWebhookFluentImpl> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationFluent - .WebhooksNested< - N>, - io.kubernetes.client.fluent.Nested { - WebhooksNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhook item) { + implements V1MutatingWebhookConfigurationFluent.WebhooksNested, Nested { + WebhooksNestedImpl(Integer index, V1MutatingWebhook item) { this.index = index; this.builder = new V1MutatingWebhookBuilder(this, item); } WebhooksNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder(this); + this.builder = new V1MutatingWebhookBuilder(this); } - io.kubernetes.client.openapi.models.V1MutatingWebhookBuilder builder; - java.lang.Integer index; + V1MutatingWebhookBuilder builder; + Integer index; public N and() { return (N) 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 0c4aae27be..46582f5d54 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 @@ -17,8 +17,7 @@ public class V1MutatingWebhookConfigurationListBuilder extends V1MutatingWebhookConfigurationListFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListBuilder> { + V1MutatingWebhookConfigurationList, V1MutatingWebhookConfigurationListBuilder> { public V1MutatingWebhookConfigurationListBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1MutatingWebhookConfigurationListBuilder( } public V1MutatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent fluent, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookConfigurationListFluent fluent, Boolean validationEnabled) { this(fluent, new V1MutatingWebhookConfigurationList(), validationEnabled); } public V1MutatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList instance) { + V1MutatingWebhookConfigurationListFluent fluent, + V1MutatingWebhookConfigurationList instance) { this(fluent, instance, false); } public V1MutatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookConfigurationListFluent fluent, + V1MutatingWebhookConfigurationList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,14 +58,12 @@ public V1MutatingWebhookConfigurationListBuilder( this.validationEnabled = validationEnabled; } - public V1MutatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList instance) { + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationList instance) { this(instance, false); } public V1MutatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1MutatingWebhookConfigurationList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +76,10 @@ public V1MutatingWebhookConfigurationListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent fluent; - java.lang.Boolean validationEnabled; + V1MutatingWebhookConfigurationListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList build() { + public V1MutatingWebhookConfigurationList build() { V1MutatingWebhookConfigurationList buildable = new V1MutatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 47c71b4ce9..f94998042b 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 @@ -24,28 +24,22 @@ public interface V1MutatingWebhookConfigurationListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item); + public A addToItems(Integer index, V1MutatingWebhookConfiguration item); - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item); + public A setToItems(Integer index, V1MutatingWebhookConfiguration item); public A addToItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems( io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); - public A removeAllFromItems( - java.util.Collection - items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -55,101 +49,75 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildItem( - java.lang.Integer index); + public V1MutatingWebhookConfiguration buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildFirstItem(); + public V1MutatingWebhookConfiguration buildFirstItem(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildLastItem(); + public V1MutatingWebhookConfiguration buildLastItem(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> - predicate); + public V1MutatingWebhookConfiguration buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItem(); public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item); + V1MutatingWebhookConfiguration item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item); + public V1MutatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1MutatingWebhookConfiguration item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1MutatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editFirstItem(); + public V1MutatingWebhookConfigurationListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editLastItem(); + public V1MutatingWebhookConfigurationListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> - predicate); + public V1MutatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - editMetadata(); + public V1MutatingWebhookConfigurationListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata(); + public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -161,7 +129,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ListMetaFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java index 50f25a71ff..b38a1d28a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluentImpl.java @@ -39,14 +39,14 @@ public V1MutatingWebhookConfigurationListFluentImpl(V1MutatingWebhookConfigurati private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,30 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item) { + public A addToItems(Integer index, V1MutatingWebhookConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(item); + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item) { + public A setToItems(Integer index, V1MutatingWebhookConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(item); + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -94,29 +85,24 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(item); + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = + new V1MutatingWebhookConfigurationBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -125,9 +111,9 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(item); + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = + new V1MutatingWebhookConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -136,12 +122,10 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = + new V1MutatingWebhookConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -150,16 +134,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate - predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder = - each.next(); + V1MutatingWebhookConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -174,33 +154,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildItem( - java.lang.Integer index) { + public V1MutatingWebhookConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildFirstItem() { + public V1MutatingWebhookConfiguration buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildLastItem() { + public V1MutatingWebhookConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder item : items) { + public V1MutatingWebhookConfiguration buildMatchingItem( + Predicate predicate) { + for (V1MutatingWebhookConfigurationBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -208,11 +184,8 @@ public io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration buildM return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1MutatingWebhookConfigurationBuilder item : items) { if (predicate.test(item)) { return true; } @@ -220,14 +193,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item : items) { + this.items = new ArrayList(); + for (V1MutatingWebhookConfiguration item : items) { this.addToItems(item); } } else { @@ -241,14 +213,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfigur this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item : items) { + for (V1MutatingWebhookConfiguration item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -256,43 +228,34 @@ public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItem() { return new V1MutatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item) { + public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( + V1MutatingWebhookConfiguration item) { return new V1MutatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluentImpl - .ItemsNestedImpl(index, item); + public V1MutatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1MutatingWebhookConfiguration item) { + return new V1MutatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1MutatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editFirstItem() { + public V1MutatingWebhookConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editLastItem() { + public V1MutatingWebhookConfigurationListFluent.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 io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder> - predicate) { + public V1MutatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -304,16 +267,16 @@ public V1MutatingWebhookConfigurationListFluent.ItemsNested addNewItem() { return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -322,25 +285,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -348,35 +314,22 @@ public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadat return new V1MutatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluentImpl - .MetadataNestedImpl(item); + public V1MutatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1MutatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - editMetadata() { + public V1MutatingWebhookConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata() { + public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1MutatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -397,7 +350,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -423,25 +376,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1MutatingWebhookConfigurationFluentImpl< V1MutatingWebhookConfigurationListFluent.ItemsNested> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration item) { + implements V1MutatingWebhookConfigurationListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1MutatingWebhookConfiguration item) { this.index = index; this.builder = new V1MutatingWebhookConfigurationBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder(this); + this.builder = new V1MutatingWebhookConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationBuilder builder; - java.lang.Integer index; + V1MutatingWebhookConfigurationBuilder builder; + Integer index; public N and() { return (N) @@ -455,19 +402,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1MutatingWebhookConfigurationListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1MutatingWebhookConfigurationListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java index 18e4690bb8..fe74679569 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java @@ -22,34 +22,33 @@ public interface V1MutatingWebhookFluent> extends Fluent { public A addToAdmissionReviewVersions(Integer index, String item); - public A setToAdmissionReviewVersions(java.lang.Integer index, java.lang.String item); + public A setToAdmissionReviewVersions(Integer index, String item); public A addToAdmissionReviewVersions(java.lang.String... items); - public A addAllToAdmissionReviewVersions(Collection items); + public A addAllToAdmissionReviewVersions(Collection items); public A removeFromAdmissionReviewVersions(java.lang.String... items); - public A removeAllFromAdmissionReviewVersions(java.util.Collection items); + public A removeAllFromAdmissionReviewVersions(Collection items); - public List getAdmissionReviewVersions(); + public List getAdmissionReviewVersions(); - public java.lang.String getAdmissionReviewVersion(java.lang.Integer index); + public String getAdmissionReviewVersion(Integer index); - public java.lang.String getFirstAdmissionReviewVersion(); + public String getFirstAdmissionReviewVersion(); - public java.lang.String getLastAdmissionReviewVersion(); + public String getLastAdmissionReviewVersion(); - public java.lang.String getMatchingAdmissionReviewVersion(Predicate predicate); + public String getMatchingAdmissionReviewVersion(Predicate predicate); - public Boolean hasMatchingAdmissionReviewVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate); - public A withAdmissionReviewVersions(java.util.List admissionReviewVersions); + public A withAdmissionReviewVersions(List admissionReviewVersions); public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions); - public java.lang.Boolean hasAdmissionReviewVersions(); + public Boolean hasAdmissionReviewVersions(); /** * This method has been deprecated, please use method buildClientConfig instead. @@ -59,193 +58,167 @@ public Boolean hasMatchingAdmissionReviewVersion( @Deprecated public AdmissionregistrationV1WebhookClientConfig getClientConfig(); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig - buildClientConfig(); + public AdmissionregistrationV1WebhookClientConfig buildClientConfig(); - public A withClientConfig( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig clientConfig); + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig); - public java.lang.Boolean hasClientConfig(); + public Boolean hasClientConfig(); public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfig(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - withNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item); + public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - editClientConfig(); + public V1MutatingWebhookFluent.ClientConfigNested editClientConfig(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - editOrNewClientConfig(); + public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfig(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - editOrNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item); + public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item); - public java.lang.String getFailurePolicy(); + public String getFailurePolicy(); - public A withFailurePolicy(java.lang.String failurePolicy); + public A withFailurePolicy(String failurePolicy); - public java.lang.Boolean hasFailurePolicy(); + public Boolean hasFailurePolicy(); - public java.lang.String getMatchPolicy(); + public String getMatchPolicy(); - public A withMatchPolicy(java.lang.String matchPolicy); + public A withMatchPolicy(String matchPolicy); - public java.lang.Boolean hasMatchPolicy(); + public Boolean hasMatchPolicy(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildNamespaceSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector(); + public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector); + public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public java.lang.Boolean hasNamespaceSelector(); + public Boolean hasNamespaceSelector(); public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - editNamespaceSelector(); + public V1MutatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelector(); + public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item); /** * This method has been deprecated, please use method buildObjectSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getObjectSelector(); + @Deprecated + public V1LabelSelector getObjectSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildObjectSelector(); + public V1LabelSelector buildObjectSelector(); - public A withObjectSelector(io.kubernetes.client.openapi.models.V1LabelSelector objectSelector); + public A withObjectSelector(V1LabelSelector objectSelector); - public java.lang.Boolean hasObjectSelector(); + public Boolean hasObjectSelector(); public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelector(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - withNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - editObjectSelector(); + public V1MutatingWebhookFluent.ObjectSelectorNested editObjectSelector(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelector(); + public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( + V1LabelSelector item); - public java.lang.String getReinvocationPolicy(); + public String getReinvocationPolicy(); - public A withReinvocationPolicy(java.lang.String reinvocationPolicy); + public A withReinvocationPolicy(String reinvocationPolicy); - public java.lang.Boolean hasReinvocationPolicy(); + public Boolean hasReinvocationPolicy(); - public A addToRules(java.lang.Integer index, V1RuleWithOperations item); + public A addToRules(Integer index, V1RuleWithOperations item); - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item); + public A setToRules(Integer index, V1RuleWithOperations item); public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A addAllToRules( - java.util.Collection items); + public A addAllToRules(Collection items); public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A removeAllFromRules( - java.util.Collection items); + public A removeAllFromRules(Collection items); - public A removeMatchingFromRules( - java.util.function.Predicate predicate); + public A removeMatchingFromRules(Predicate predicate); /** * This method has been deprecated, please use method buildRules instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getRules(); + @Deprecated + public List getRules(); - public java.util.List buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildRule( - java.lang.Integer index); + public V1RuleWithOperations buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildFirstRule(); + public V1RuleWithOperations buildFirstRule(); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildLastRule(); + public V1RuleWithOperations buildLastRule(); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildMatchingRule( - java.util.function.Predicate - predicate); + public V1RuleWithOperations buildMatchingRule(Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules( - java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1MutatingWebhookFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1RuleWithOperations item); + public V1MutatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item); + public V1MutatingWebhookFluent.RulesNested setNewRuleLike( + Integer index, V1RuleWithOperations item); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested editRule( - java.lang.Integer index); + public V1MutatingWebhookFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested editFirstRule(); + public V1MutatingWebhookFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested editLastRule(); + public V1MutatingWebhookFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder> - predicate); + public V1MutatingWebhookFluent.RulesNested editMatchingRule( + Predicate predicate); - public java.lang.String getSideEffects(); + public String getSideEffects(); - public A withSideEffects(java.lang.String sideEffects); + public A withSideEffects(String sideEffects); - public java.lang.Boolean hasSideEffects(); + public Boolean hasSideEffects(); - public java.lang.Integer getTimeoutSeconds(); + public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds); + public A withTimeoutSeconds(Integer timeoutSeconds); - public java.lang.Boolean hasTimeoutSeconds(); + public Boolean hasTimeoutSeconds(); public interface ClientConfigNested extends Nested, @@ -257,24 +230,21 @@ public interface ClientConfigNested } public interface NamespaceSelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endNamespaceSelector(); } public interface ObjectSelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endObjectSelector(); } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, - V1RuleWithOperationsFluent> { + extends Nested, V1RuleWithOperationsFluent> { public N and(); public N endRule(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java index 26f2a9f684..822986004b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluentImpl.java @@ -26,8 +26,7 @@ public class V1MutatingWebhookFluentImpl> e implements V1MutatingWebhookFluent { public V1MutatingWebhookFluentImpl() {} - public V1MutatingWebhookFluentImpl( - io.kubernetes.client.openapi.models.V1MutatingWebhook instance) { + public V1MutatingWebhookFluentImpl(V1MutatingWebhook instance) { this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); this.withClientConfig(instance.getClientConfig()); @@ -53,27 +52,27 @@ public V1MutatingWebhookFluentImpl( private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; - private java.lang.String failurePolicy; - private java.lang.String matchPolicy; - private java.lang.String name; + private String failurePolicy; + private String matchPolicy; + private String name; private V1LabelSelectorBuilder namespaceSelector; private V1LabelSelectorBuilder objectSelector; - private java.lang.String reinvocationPolicy; + private String reinvocationPolicy; private ArrayList rules; - private java.lang.String sideEffects; + private String sideEffects; private Integer timeoutSeconds; - public A addToAdmissionReviewVersions(java.lang.Integer index, java.lang.String item) { + public A addToAdmissionReviewVersions(Integer index, String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } this.admissionReviewVersions.add(index, item); return (A) this; } - public A setToAdmissionReviewVersions(java.lang.Integer index, java.lang.String item) { + public A setToAdmissionReviewVersions(Integer index, String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } this.admissionReviewVersions.set(index, item); return (A) this; @@ -81,26 +80,26 @@ public A setToAdmissionReviewVersions(java.lang.Integer index, java.lang.String public A addToAdmissionReviewVersions(java.lang.String... items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.admissionReviewVersions.add(item); } return (A) this; } - public A addAllToAdmissionReviewVersions(Collection items) { + public A addAllToAdmissionReviewVersions(Collection items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.admissionReviewVersions.add(item); } return (A) this; } public A removeFromAdmissionReviewVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.admissionReviewVersions != null) { this.admissionReviewVersions.remove(item); } @@ -108,8 +107,8 @@ public A removeFromAdmissionReviewVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromAdmissionReviewVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAdmissionReviewVersions(Collection items) { + for (String item : items) { if (this.admissionReviewVersions != null) { this.admissionReviewVersions.remove(item); } @@ -117,24 +116,24 @@ public A removeAllFromAdmissionReviewVersions(java.util.Collection getAdmissionReviewVersions() { + public List getAdmissionReviewVersions() { return this.admissionReviewVersions; } - public java.lang.String getAdmissionReviewVersion(java.lang.Integer index) { + public String getAdmissionReviewVersion(Integer index) { return this.admissionReviewVersions.get(index); } - public java.lang.String getFirstAdmissionReviewVersion() { + public String getFirstAdmissionReviewVersion() { return this.admissionReviewVersions.get(0); } - public java.lang.String getLastAdmissionReviewVersion() { + public String getLastAdmissionReviewVersion() { return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - public java.lang.String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (java.lang.String item : admissionReviewVersions) { + public String getMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { return item; } @@ -142,9 +141,8 @@ public java.lang.String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (java.lang.String item : admissionReviewVersions) { + public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { return true; } @@ -152,10 +150,10 @@ public Boolean hasMatchingAdmissionReviewVersion( return false; } - public A withAdmissionReviewVersions(java.util.List admissionReviewVersions) { + public A withAdmissionReviewVersions(List admissionReviewVersions) { if (admissionReviewVersions != null) { - this.admissionReviewVersions = new java.util.ArrayList(); - for (java.lang.String item : admissionReviewVersions) { + this.admissionReviewVersions = new ArrayList(); + for (String item : admissionReviewVersions) { this.addToAdmissionReviewVersions(item); } } else { @@ -169,14 +167,14 @@ public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions this.admissionReviewVersions.clear(); } if (admissionReviewVersions != null) { - for (java.lang.String item : admissionReviewVersions) { + for (String item : admissionReviewVersions) { this.addToAdmissionReviewVersions(item); } } return (A) this; } - public java.lang.Boolean hasAdmissionReviewVersions() { + public Boolean hasAdmissionReviewVersions() { return admissionReviewVersions != null && !admissionReviewVersions.isEmpty(); } @@ -186,27 +184,27 @@ public java.lang.Boolean hasAdmissionReviewVersions() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig - getClientConfig() { + public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig - buildClientConfig() { + public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public A withClientConfig( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig clientConfig) { + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { _visitables.get("clientConfig").remove(this.clientConfig); if (clientConfig != null) { this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); _visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + _visitables.get("clientConfig").remove(this.clientConfig); } return (A) this; } - public java.lang.Boolean hasClientConfig() { + public Boolean hasClientConfig() { return this.clientConfig != null; } @@ -214,69 +212,63 @@ public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfig() { return new V1MutatingWebhookFluentImpl.ClientConfigNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - withNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item) { + public V1MutatingWebhookFluent.ClientConfigNested withNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item) { return new V1MutatingWebhookFluentImpl.ClientConfigNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - editClientConfig() { + public V1MutatingWebhookFluent.ClientConfigNested editClientConfig() { return withNewClientConfigLike(getClientConfig()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - editOrNewClientConfig() { + public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfig() { return withNewClientConfigLike( getClientConfig() != null ? getClientConfig() - : new io.kubernetes.client.openapi.models - .AdmissionregistrationV1WebhookClientConfigBuilder() - .build()); + : new AdmissionregistrationV1WebhookClientConfigBuilder().build()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested - editOrNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item) { + public V1MutatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item) { return withNewClientConfigLike(getClientConfig() != null ? getClientConfig() : item); } - public java.lang.String getFailurePolicy() { + public String getFailurePolicy() { return this.failurePolicy; } - public A withFailurePolicy(java.lang.String failurePolicy) { + public A withFailurePolicy(String failurePolicy) { this.failurePolicy = failurePolicy; return (A) this; } - public java.lang.Boolean hasFailurePolicy() { + public Boolean hasFailurePolicy() { return this.failurePolicy != null; } - public java.lang.String getMatchPolicy() { + public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(java.lang.String matchPolicy) { + public A withMatchPolicy(String matchPolicy) { this.matchPolicy = matchPolicy; return (A) this; } - public java.lang.Boolean hasMatchPolicy() { + public Boolean hasMatchPolicy() { return this.matchPolicy != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -285,27 +277,28 @@ public java.lang.Boolean hasName() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNamespaceSelector() { + @Deprecated + public V1LabelSelector getNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector() { + public V1LabelSelector buildNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector) { + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); if (namespaceSelector != null) { - this.namespaceSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(namespaceSelector); + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public java.lang.Boolean hasNamespaceSelector() { + public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } @@ -313,27 +306,24 @@ public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelect return new V1MutatingWebhookFluentImpl.NamespaceSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookFluentImpl - .NamespaceSelectorNestedImpl(item); + public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item) { + return new V1MutatingWebhookFluentImpl.NamespaceSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - editNamespaceSelector() { + public V1MutatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelector() { + public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1MutatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item) { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() : item); } @@ -343,26 +333,28 @@ public V1MutatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelect * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getObjectSelector() { + @Deprecated + public V1LabelSelector getObjectSelector() { return this.objectSelector != null ? this.objectSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildObjectSelector() { + public V1LabelSelector buildObjectSelector() { return this.objectSelector != null ? this.objectSelector.build() : null; } - public A withObjectSelector(io.kubernetes.client.openapi.models.V1LabelSelector objectSelector) { + public A withObjectSelector(V1LabelSelector objectSelector) { _visitables.get("objectSelector").remove(this.objectSelector); if (objectSelector != null) { - this.objectSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(objectSelector); + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); _visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + _visitables.get("objectSelector").remove(this.objectSelector); } return (A) this; } - public java.lang.Boolean hasObjectSelector() { + public Boolean hasObjectSelector() { return this.objectSelector != null; } @@ -370,65 +362,53 @@ public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelector() { return new V1MutatingWebhookFluentImpl.ObjectSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - withNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookFluentImpl - .ObjectSelectorNestedImpl(item); + public V1MutatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( + V1LabelSelector item) { + return new V1MutatingWebhookFluentImpl.ObjectSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - editObjectSelector() { + public V1MutatingWebhookFluent.ObjectSelectorNested editObjectSelector() { return withNewObjectSelectorLike(getObjectSelector()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelector() { + public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector() { return withNewObjectSelectorLike( - getObjectSelector() != null - ? getObjectSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getObjectSelector() != null ? getObjectSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1MutatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( + V1LabelSelector item) { return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector() : item); } - public java.lang.String getReinvocationPolicy() { + public String getReinvocationPolicy() { return this.reinvocationPolicy; } - public A withReinvocationPolicy(java.lang.String reinvocationPolicy) { + public A withReinvocationPolicy(String reinvocationPolicy) { this.reinvocationPolicy = reinvocationPolicy; return (A) this; } - public java.lang.Boolean hasReinvocationPolicy() { + public Boolean hasReinvocationPolicy() { return this.reinvocationPolicy != null; } - public A addToRules(java.lang.Integer index, V1RuleWithOperations item) { + public A addToRules(Integer index, V1RuleWithOperations item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item) { + public A setToRules(Integer index, V1RuleWithOperations item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -444,29 +424,22 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; } - public A addAllToRules( - java.util.Collection items) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -474,9 +447,8 @@ public A addAllToRules( } public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -485,11 +457,9 @@ public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperation return (A) this; } - public A removeAllFromRules( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -498,15 +468,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - java.util.function.Predicate - predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = - rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = each.next(); + V1RuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -520,32 +487,29 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildRule( - java.lang.Integer index) { + public V1RuleWithOperations buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildFirstRule() { + public V1RuleWithOperations buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildLastRule() { + public V1RuleWithOperations buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder item : rules) { + public V1RuleWithOperations buildMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -553,10 +517,8 @@ public io.kubernetes.client.openapi.models.V1RuleWithOperations buildMatchingRul return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -564,14 +526,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules( - java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : rules) { + this.rules = new ArrayList(); + for (V1RuleWithOperations item : rules) { this.addToRules(item); } } else { @@ -585,14 +546,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... r this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : rules) { + for (V1RuleWithOperations item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -600,41 +561,33 @@ public V1MutatingWebhookFluent.RulesNested addNewRule() { return new V1MutatingWebhookFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1RuleWithOperations item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookFluentImpl.RulesNestedImpl( - -1, item); + public V1MutatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item) { + return new V1MutatingWebhookFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item) { - return new io.kubernetes.client.openapi.models.V1MutatingWebhookFluentImpl.RulesNestedImpl( - index, item); + public V1MutatingWebhookFluent.RulesNested setNewRuleLike( + Integer index, V1RuleWithOperations item) { + return new V1MutatingWebhookFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested editRule( - java.lang.Integer index) { + public V1MutatingWebhookFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested - editFirstRule() { + public V1MutatingWebhookFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested editLastRule() { + public V1MutatingWebhookFluent.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)); } - public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder> - predicate) { + public V1MutatingWebhookFluent.RulesNested editMatchingRule( + Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -646,29 +599,29 @@ public io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested extends AdmissionregistrationV1WebhookClientConfigFluentImpl< V1MutatingWebhookFluent.ClientConfigNested> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ClientConfigNested, - Nested { - ClientConfigNestedImpl( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item) { + implements V1MutatingWebhookFluent.ClientConfigNested, Nested { + ClientConfigNestedImpl(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } ClientConfigNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigBuilder( - this); + this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this); } - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigBuilder builder; + AdmissionregistrationV1WebhookClientConfigBuilder builder; public N and() { return (N) V1MutatingWebhookFluentImpl.this.withClientConfig(builder.build()); @@ -801,19 +750,16 @@ public N endClientConfig() { class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookFluent - .NamespaceSelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1MutatingWebhookFluent.NamespaceSelectorNested, Nested { NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } NamespaceSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1MutatingWebhookFluentImpl.this.withNamespaceSelector(builder.build()); @@ -826,18 +772,16 @@ public N endNamespaceSelector() { class ObjectSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.ObjectSelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1MutatingWebhookFluent.ObjectSelectorNested, Nested { ObjectSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } ObjectSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1MutatingWebhookFluentImpl.this.withObjectSelector(builder.build()); @@ -850,21 +794,19 @@ public N endObjectSelector() { class RulesNestedImpl extends V1RuleWithOperationsFluentImpl> - implements io.kubernetes.client.openapi.models.V1MutatingWebhookFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item) { + implements V1MutatingWebhookFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(this); + this.builder = new V1RuleWithOperationsBuilder(this); } - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder; - java.lang.Integer index; + V1RuleWithOperationsBuilder builder; + Integer index; public N and() { return (N) V1MutatingWebhookFluentImpl.this.setToRules(index, builder.build()); 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 da1e9793eb..ab4effd869 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluentImpl - implements VisitableBuilder< - V1NFSVolumeSource, io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder> { + implements VisitableBuilder { public V1NFSVolumeSourceBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent) { this(fluent, false); } - public V1NFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1NFSVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1NFSVolumeSource(), validationEnabled); } - public V1NFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1NFSVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1NFSVolumeSource instance) { + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent, V1NFSVolumeSource instance) { this(fluent, instance, false); } public V1NFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1NFSVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1NFSVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1NFSVolumeSourceFluent fluent, V1NFSVolumeSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPath(instance.getPath()); @@ -55,13 +48,11 @@ public V1NFSVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1NFSVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1NFSVolumeSource instance) { + public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance) { this(instance, false); } - public V1NFSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1NFSVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withPath(instance.getPath()); @@ -72,10 +63,10 @@ public V1NFSVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NFSVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1NFSVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NFSVolumeSource build() { + public V1NFSVolumeSource build() { V1NFSVolumeSource buildable = new V1NFSVolumeSource(); buildable.setPath(fluent.getPath()); buildable.setReadOnly(fluent.getReadOnly()); 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 50a95948f9..5c4d192a70 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 @@ -18,21 +18,21 @@ public interface V1NFSVolumeSourceFluent> extends Fluent { public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); public Boolean hasPath(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getServer(); + public String getServer(); - public A withServer(java.lang.String server); + public A withServer(String server); - public java.lang.Boolean hasServer(); + public Boolean hasServer(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java index 16e6735aa3..a453e68772 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1NFSVolumeSourceFluentImpl> e implements V1NFSVolumeSourceFluent { public V1NFSVolumeSourceFluentImpl() {} - public V1NFSVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1NFSVolumeSource instance) { + public V1NFSVolumeSourceFluentImpl(V1NFSVolumeSource instance) { this.withPath(instance.getPath()); this.withReadOnly(instance.getReadOnly()); @@ -31,44 +30,44 @@ public V1NFSVolumeSourceFluentImpl( private String path; private Boolean readOnly; - private java.lang.String server; + private String server; - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getServer() { + public String getServer() { return this.server; } - public A withServer(java.lang.String server) { + public A withServer(String server) { this.server = server; return (A) this; } - public java.lang.Boolean hasServer() { + public Boolean hasServer() { return this.server != null; } @@ -86,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(path, readOnly, server, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (path != null) { 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 c6e59e2626..2e9eb4df8a 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NamespaceBuilder extends V1NamespaceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Namespace, - io.kubernetes.client.openapi.models.V1NamespaceBuilder> { + implements VisitableBuilder { public V1NamespaceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1NamespaceBuilder(V1NamespaceFluent fluent) { this(fluent, false); } - public V1NamespaceBuilder( - io.kubernetes.client.openapi.models.V1NamespaceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NamespaceBuilder(V1NamespaceFluent fluent, Boolean validationEnabled) { this(fluent, new V1Namespace(), validationEnabled); } - public V1NamespaceBuilder( - io.kubernetes.client.openapi.models.V1NamespaceFluent fluent, - io.kubernetes.client.openapi.models.V1Namespace instance) { + public V1NamespaceBuilder(V1NamespaceFluent fluent, V1Namespace instance) { this(fluent, instance, false); } public V1NamespaceBuilder( - io.kubernetes.client.openapi.models.V1NamespaceFluent fluent, - io.kubernetes.client.openapi.models.V1Namespace instance, - java.lang.Boolean validationEnabled) { + V1NamespaceFluent fluent, V1Namespace instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1NamespaceBuilder( this.validationEnabled = validationEnabled; } - public V1NamespaceBuilder(io.kubernetes.client.openapi.models.V1Namespace instance) { + public V1NamespaceBuilder(V1Namespace instance) { this(instance, false); } - public V1NamespaceBuilder( - io.kubernetes.client.openapi.models.V1Namespace instance, - java.lang.Boolean validationEnabled) { + public V1NamespaceBuilder(V1Namespace instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1NamespaceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NamespaceFluent fluent; - java.lang.Boolean validationEnabled; + V1NamespaceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Namespace build() { + public V1Namespace build() { V1Namespace buildable = new V1Namespace(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 450c5c74d2..2184b268da 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 @@ -16,8 +16,7 @@ public class V1NamespaceConditionBuilder extends V1NamespaceConditionFluentImpl - implements VisitableBuilder< - V1NamespaceCondition, io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder> { + implements VisitableBuilder { public V1NamespaceConditionBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent) { } public V1NamespaceConditionBuilder( - io.kubernetes.client.openapi.models.V1NamespaceConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1NamespaceConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1NamespaceCondition(), validationEnabled); } public V1NamespaceConditionBuilder( - io.kubernetes.client.openapi.models.V1NamespaceConditionFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceCondition instance) { + V1NamespaceConditionFluent fluent, V1NamespaceCondition instance) { this(fluent, instance, false); } public V1NamespaceConditionBuilder( - io.kubernetes.client.openapi.models.V1NamespaceConditionFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceCondition instance, - java.lang.Boolean validationEnabled) { + V1NamespaceConditionFluent fluent, + V1NamespaceCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -60,14 +57,11 @@ public V1NamespaceConditionBuilder( this.validationEnabled = validationEnabled; } - public V1NamespaceConditionBuilder( - io.kubernetes.client.openapi.models.V1NamespaceCondition instance) { + public V1NamespaceConditionBuilder(V1NamespaceCondition instance) { this(instance, false); } - public V1NamespaceConditionBuilder( - io.kubernetes.client.openapi.models.V1NamespaceCondition instance, - java.lang.Boolean validationEnabled) { + public V1NamespaceConditionBuilder(V1NamespaceCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -82,10 +76,10 @@ public V1NamespaceConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NamespaceConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1NamespaceConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NamespaceCondition build() { + public V1NamespaceCondition build() { V1NamespaceCondition buildable = new V1NamespaceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 1407d1df71..634b9e47e8 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 @@ -20,31 +20,31 @@ public interface V1NamespaceConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java index 0ff484e606..061e7b4ac2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1NamespaceConditionFluentImpl implements V1NamespaceConditionFluent { public V1NamespaceConditionFluentImpl() {} - public V1NamespaceConditionFluentImpl( - io.kubernetes.client.openapi.models.V1NamespaceCondition instance) { + public V1NamespaceConditionFluentImpl(V1NamespaceCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1NamespaceConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 5ea38cd5c8..81d773b936 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 @@ -19,15 +19,15 @@ public interface V1NamespaceFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1NamespaceFluent> extends Fluen @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1NamespaceFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1NamespaceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested editMetadata(); + public V1NamespaceFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested - editOrNewMetadata(); + public V1NamespaceFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1NamespaceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NamespaceSpec getSpec(); - public io.kubernetes.client.openapi.models.V1NamespaceSpec buildSpec(); + public V1NamespaceSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1NamespaceSpec spec); + public A withSpec(V1NamespaceSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1NamespaceFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1NamespaceSpec item); + public V1NamespaceFluent.SpecNested withNewSpecLike(V1NamespaceSpec item); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editSpec(); + public V1NamespaceFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editOrNewSpec(); + public V1NamespaceFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1NamespaceSpec item); + public V1NamespaceFluent.SpecNested editOrNewSpecLike(V1NamespaceSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NamespaceStatus getStatus(); - public io.kubernetes.client.openapi.models.V1NamespaceStatus buildStatus(); + public V1NamespaceStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1NamespaceStatus status); + public A withStatus(V1NamespaceStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1NamespaceFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1NamespaceStatus item); + public V1NamespaceFluent.StatusNested withNewStatusLike(V1NamespaceStatus item); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested editStatus(); + public V1NamespaceFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested editOrNewStatus(); + public V1NamespaceFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1NamespaceStatus item); + public V1NamespaceFluent.StatusNested editOrNewStatusLike(V1NamespaceStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1NamespaceSpecFluent> { + extends Nested, V1NamespaceSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1NamespaceStatusFluent> { + extends Nested, V1NamespaceStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java index 09e661d784..a353af02e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluentImpl.java @@ -21,7 +21,7 @@ public class V1NamespaceFluentImpl> extends BaseF implements V1NamespaceFluent { public V1NamespaceFluentImpl() {} - public V1NamespaceFluentImpl(io.kubernetes.client.openapi.models.V1Namespace instance) { + public V1NamespaceFluentImpl(V1Namespace instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1NamespaceFluentImpl(io.kubernetes.client.openapi.models.V1Namespace ins } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1NamespaceSpecBuilder spec; private V1NamespaceStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1NamespaceFluent.MetadataNested withNewMetadata() { return new V1NamespaceFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1NamespaceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1NamespaceFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested editMetadata() { + public V1NamespaceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested - editOrNewMetadata() { + public V1NamespaceFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1NamespaceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested e * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NamespaceSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1NamespaceSpec buildSpec() { + public V1NamespaceSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1NamespaceSpec spec) { + public A withSpec(V1NamespaceSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1NamespaceSpecBuilder(spec); + this.spec = new V1NamespaceSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1NamespaceFluent.SpecNested withNewSpec() { return new V1NamespaceFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1NamespaceSpec item) { - return new io.kubernetes.client.openapi.models.V1NamespaceFluentImpl.SpecNestedImpl(item); + public V1NamespaceFluent.SpecNested withNewSpecLike(V1NamespaceSpec item) { + return new V1NamespaceFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editSpec() { + public V1NamespaceFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1NamespaceSpecBuilder().build()); + public V1NamespaceFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1NamespaceSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1NamespaceSpec item) { + public V1NamespaceFluent.SpecNested editOrNewSpecLike(V1NamespaceSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested editO * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NamespaceStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1NamespaceStatus buildStatus() { + public V1NamespaceStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1NamespaceStatus status) { + public A withStatus(V1NamespaceStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1NamespaceStatusBuilder(status); + this.status = new V1NamespaceStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1NamespaceFluent.StatusNested withNewStatus() { return new V1NamespaceFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1NamespaceStatus item) { - return new io.kubernetes.client.openapi.models.V1NamespaceFluentImpl.StatusNestedImpl(item); + public V1NamespaceFluent.StatusNested withNewStatusLike(V1NamespaceStatus item) { + return new V1NamespaceFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested editStatus() { + public V1NamespaceFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested editOrNewStatus() { + public V1NamespaceFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1NamespaceStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1NamespaceStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1NamespaceStatus item) { + public V1NamespaceFluent.StatusNested editOrNewStatusLike(V1NamespaceStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1NamespaceFluent.MetadataNested, - Nested { + implements V1NamespaceFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1NamespaceFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1NamespaceSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1NamespaceFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1NamespaceSpec item) { + implements V1NamespaceFluent.SpecNested, Nested { + SpecNestedImpl(V1NamespaceSpec item) { this.builder = new V1NamespaceSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NamespaceSpecBuilder(this); + this.builder = new V1NamespaceSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1NamespaceSpecBuilder builder; + V1NamespaceSpecBuilder builder; public N and() { return (N) V1NamespaceFluentImpl.this.withSpec(builder.build()); @@ -311,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1NamespaceStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1NamespaceFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1NamespaceFluent.StatusNested, Nested { StatusNestedImpl(V1NamespaceStatus item) { this.builder = new V1NamespaceStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NamespaceStatusBuilder(this); + this.builder = new V1NamespaceStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1NamespaceStatusBuilder builder; + V1NamespaceStatusBuilder builder; public N and() { return (N) V1NamespaceFluentImpl.this.withStatus(builder.build()); 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 d4d6f26285..7ae1159aa6 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NamespaceListBuilder extends V1NamespaceListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NamespaceList, - io.kubernetes.client.openapi.models.V1NamespaceListBuilder> { + implements VisitableBuilder { public V1NamespaceListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1NamespaceListBuilder(V1NamespaceListFluent fluent) { this(fluent, false); } - public V1NamespaceListBuilder( - io.kubernetes.client.openapi.models.V1NamespaceListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NamespaceListBuilder(V1NamespaceListFluent fluent, Boolean validationEnabled) { this(fluent, new V1NamespaceList(), validationEnabled); } - public V1NamespaceListBuilder( - io.kubernetes.client.openapi.models.V1NamespaceListFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceList instance) { + public V1NamespaceListBuilder(V1NamespaceListFluent fluent, V1NamespaceList instance) { this(fluent, instance, false); } public V1NamespaceListBuilder( - io.kubernetes.client.openapi.models.V1NamespaceListFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceList instance, - java.lang.Boolean validationEnabled) { + V1NamespaceListFluent fluent, V1NamespaceList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1NamespaceListBuilder( this.validationEnabled = validationEnabled; } - public V1NamespaceListBuilder(io.kubernetes.client.openapi.models.V1NamespaceList instance) { + public V1NamespaceListBuilder(V1NamespaceList instance) { this(instance, false); } - public V1NamespaceListBuilder( - io.kubernetes.client.openapi.models.V1NamespaceList instance, - java.lang.Boolean validationEnabled) { + public V1NamespaceListBuilder(V1NamespaceList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1NamespaceListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NamespaceListFluent fluent; - java.lang.Boolean validationEnabled; + V1NamespaceListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NamespaceList build() { + public V1NamespaceList build() { V1NamespaceList buildable = new V1NamespaceList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 35173608a2..5e8870e824 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 @@ -22,23 +22,21 @@ public interface V1NamespaceListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1Namespace item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Namespace item); + public A setToItems(Integer index, V1Namespace item); public A addToItems(io.kubernetes.client.openapi.models.V1Namespace... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Namespace... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,81 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Namespace buildItem(java.lang.Integer index); + public V1Namespace buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Namespace buildFirstItem(); + public V1Namespace buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Namespace buildLastItem(); + public V1Namespace buildLastItem(); - public io.kubernetes.client.openapi.models.V1Namespace buildMatchingItem( - java.util.function.Predicate - predicate); + public V1Namespace buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1NamespaceListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Namespace item); + public V1NamespaceListFluent.ItemsNested addNewItemLike(V1Namespace item); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Namespace item); + public V1NamespaceListFluent.ItemsNested setNewItemLike(Integer index, V1Namespace item); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1NamespaceListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editFirstItem(); + public V1NamespaceListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editLastItem(); + public V1NamespaceListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1NamespaceListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1NamespaceListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1NamespaceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested editMetadata(); + public V1NamespaceListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - editOrNewMetadata(); + public V1NamespaceListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1NamespaceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1NamespaceFluent> { @@ -132,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java index bb93258c94..e1c0aaaf53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluentImpl.java @@ -38,14 +38,14 @@ public V1NamespaceListFluentImpl(V1NamespaceList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Namespace item) { + public A addToItems(Integer index, V1Namespace item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceBuilder(item); + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Namespace item) { + public A setToItems(Integer index, V1Namespace item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceBuilder(item); + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1Namespace... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Namespace item : items) { - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Namespace item : items) { - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceBuilder(item); + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1Namespace item : items) { - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder = each.next(); + V1NamespaceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Namespace buildItem(java.lang.Integer index) { + public V1Namespace buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Namespace buildFirstItem() { + public V1Namespace buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Namespace buildLastItem() { + public V1Namespace buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Namespace buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NamespaceBuilder item : items) { + public V1Namespace buildMatchingItem(Predicate predicate) { + for (V1NamespaceBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1Namespace buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NamespaceBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1NamespaceBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Namespace item : items) { + this.items = new ArrayList(); + for (V1Namespace item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Namespace item : items) { + for (V1Namespace item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1NamespaceListFluent.ItemsNested addNewItem() { return new V1NamespaceListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Namespace item) { + public V1NamespaceListFluent.ItemsNested addNewItemLike(V1Namespace item) { return new V1NamespaceListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Namespace item) { - return new io.kubernetes.client.openapi.models.V1NamespaceListFluentImpl.ItemsNestedImpl( - index, item); + public V1NamespaceListFluent.ItemsNested setNewItemLike(Integer index, V1Namespace item) { + return new V1NamespaceListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1NamespaceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editFirstItem() { + public V1NamespaceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editLastItem() { + public V1NamespaceListFluent.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 io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1NamespaceListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1NamespaceListFluent.MetadataNested withNewMetadata() { return new V1NamespaceListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1NamespaceListFluentImpl.MetadataNestedImpl( - item); + public V1NamespaceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1NamespaceListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - editMetadata() { + public V1NamespaceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - editOrNewMetadata() { + public V1NamespaceListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1NamespaceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -388,20 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1NamespaceFluentImpl> - implements io.kubernetes.client.openapi.models.V1NamespaceListFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Namespace item) { + implements V1NamespaceListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Namespace item) { this.index = index; this.builder = new V1NamespaceBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NamespaceBuilder(this); + this.builder = new V1NamespaceBuilder(this); } - io.kubernetes.client.openapi.models.V1NamespaceBuilder builder; - java.lang.Integer index; + V1NamespaceBuilder builder; + Integer index; public N and() { return (N) V1NamespaceListFluentImpl.this.setToItems(index, builder.build()); @@ -413,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1NamespaceListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1NamespaceListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1NamespaceListFluentImpl.this.withMetadata(builder.build()); 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 625155710f..c49b1a5cfd 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NamespaceSpec, V1NamespaceSpecBuilder> { + implements VisitableBuilder { public V1NamespaceSpecBuilder() { this(false); } @@ -25,50 +24,41 @@ public V1NamespaceSpecBuilder(Boolean validationEnabled) { this(new V1NamespaceSpec(), validationEnabled); } - public V1NamespaceSpecBuilder( - io.kubernetes.client.openapi.models.V1NamespaceSpecFluent fluent) { + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent) { this(fluent, false); } - public V1NamespaceSpecBuilder( - io.kubernetes.client.openapi.models.V1NamespaceSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1NamespaceSpec(), validationEnabled); } - public V1NamespaceSpecBuilder( - io.kubernetes.client.openapi.models.V1NamespaceSpecFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceSpec instance) { + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent, V1NamespaceSpec instance) { this(fluent, instance, false); } public V1NamespaceSpecBuilder( - io.kubernetes.client.openapi.models.V1NamespaceSpecFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceSpec instance, - java.lang.Boolean validationEnabled) { + V1NamespaceSpecFluent fluent, V1NamespaceSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withFinalizers(instance.getFinalizers()); this.validationEnabled = validationEnabled; } - public V1NamespaceSpecBuilder(io.kubernetes.client.openapi.models.V1NamespaceSpec instance) { + public V1NamespaceSpecBuilder(V1NamespaceSpec instance) { this(instance, false); } - public V1NamespaceSpecBuilder( - io.kubernetes.client.openapi.models.V1NamespaceSpec instance, - java.lang.Boolean validationEnabled) { + public V1NamespaceSpecBuilder(V1NamespaceSpec instance, Boolean validationEnabled) { this.fluent = this; this.withFinalizers(instance.getFinalizers()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NamespaceSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1NamespaceSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NamespaceSpec build() { + public V1NamespaceSpec build() { V1NamespaceSpec buildable = new V1NamespaceSpec(); buildable.setFinalizers(fluent.getFinalizers()); return buildable; 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 848b4d66be..9c54d5a35e 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 @@ -21,31 +21,31 @@ public interface V1NamespaceSpecFluent> extends Fluent { public A addToFinalizers(Integer index, String item); - public A setToFinalizers(java.lang.Integer index, java.lang.String item); + public A setToFinalizers(Integer index, String item); public A addToFinalizers(java.lang.String... items); - public A addAllToFinalizers(Collection items); + public A addAllToFinalizers(Collection items); public A removeFromFinalizers(java.lang.String... items); - public A removeAllFromFinalizers(java.util.Collection items); + public A removeAllFromFinalizers(Collection items); - public List getFinalizers(); + public List getFinalizers(); - public java.lang.String getFinalizer(java.lang.Integer index); + public String getFinalizer(Integer index); - public java.lang.String getFirstFinalizer(); + public String getFirstFinalizer(); - public java.lang.String getLastFinalizer(); + public String getLastFinalizer(); - public java.lang.String getMatchingFinalizer(Predicate predicate); + public String getMatchingFinalizer(Predicate predicate); - public Boolean hasMatchingFinalizer(java.util.function.Predicate predicate); + public Boolean hasMatchingFinalizer(Predicate predicate); - public A withFinalizers(java.util.List finalizers); + public A withFinalizers(List finalizers); public A withFinalizers(java.lang.String... finalizers); - public java.lang.Boolean hasFinalizers(); + public Boolean hasFinalizers(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java index 160cb53ca5..f283956479 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluentImpl.java @@ -24,23 +24,23 @@ public class V1NamespaceSpecFluentImpl> exten implements V1NamespaceSpecFluent { public V1NamespaceSpecFluentImpl() {} - public V1NamespaceSpecFluentImpl(io.kubernetes.client.openapi.models.V1NamespaceSpec instance) { + public V1NamespaceSpecFluentImpl(V1NamespaceSpec instance) { this.withFinalizers(instance.getFinalizers()); } private List finalizers; - public A addToFinalizers(Integer index, java.lang.String item) { + public A addToFinalizers(Integer index, String item) { if (this.finalizers == null) { - this.finalizers = new ArrayList(); + this.finalizers = new ArrayList(); } this.finalizers.add(index, item); return (A) this; } - public A setToFinalizers(java.lang.Integer index, java.lang.String item) { + public A setToFinalizers(Integer index, String item) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } this.finalizers.set(index, item); return (A) this; @@ -48,26 +48,26 @@ public A setToFinalizers(java.lang.Integer index, java.lang.String item) { public A addToFinalizers(java.lang.String... items) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.finalizers.add(item); } return (A) this; } - public A addAllToFinalizers(Collection items) { + public A addAllToFinalizers(Collection items) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.finalizers.add(item); } return (A) this; } public A removeFromFinalizers(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.finalizers != null) { this.finalizers.remove(item); } @@ -75,8 +75,8 @@ public A removeFromFinalizers(java.lang.String... items) { return (A) this; } - public A removeAllFromFinalizers(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromFinalizers(Collection items) { + for (String item : items) { if (this.finalizers != null) { this.finalizers.remove(item); } @@ -84,24 +84,24 @@ public A removeAllFromFinalizers(java.util.Collection items) { return (A) this; } - public java.util.List getFinalizers() { + public List getFinalizers() { return this.finalizers; } - public java.lang.String getFinalizer(java.lang.Integer index) { + public String getFinalizer(Integer index) { return this.finalizers.get(index); } - public java.lang.String getFirstFinalizer() { + public String getFirstFinalizer() { return this.finalizers.get(0); } - public java.lang.String getLastFinalizer() { + public String getLastFinalizer() { return this.finalizers.get(finalizers.size() - 1); } - public java.lang.String getMatchingFinalizer(Predicate predicate) { - for (java.lang.String item : finalizers) { + public String getMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { if (predicate.test(item)) { return item; } @@ -109,8 +109,8 @@ public java.lang.String getMatchingFinalizer(Predicate predica return null; } - public Boolean hasMatchingFinalizer(java.util.function.Predicate predicate) { - for (java.lang.String item : finalizers) { + public Boolean hasMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { if (predicate.test(item)) { return true; } @@ -118,10 +118,10 @@ public Boolean hasMatchingFinalizer(java.util.function.Predicate finalizers) { + public A withFinalizers(List finalizers) { if (finalizers != null) { - this.finalizers = new java.util.ArrayList(); - for (java.lang.String item : finalizers) { + this.finalizers = new ArrayList(); + for (String item : finalizers) { this.addToFinalizers(item); } } else { @@ -135,14 +135,14 @@ public A withFinalizers(java.lang.String... finalizers) { this.finalizers.clear(); } if (finalizers != null) { - for (java.lang.String item : finalizers) { + for (String item : finalizers) { this.addToFinalizers(item); } } return (A) this; } - public java.lang.Boolean hasFinalizers() { + public Boolean hasFinalizers() { return finalizers != null && !finalizers.isEmpty(); } @@ -159,7 +159,7 @@ public int hashCode() { return java.util.Objects.hash(finalizers, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (finalizers != null && !finalizers.isEmpty()) { 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 dc7c941c27..0bf2d9d328 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NamespaceStatus, V1NamespaceStatusBuilder> { + implements VisitableBuilder { public V1NamespaceStatusBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent) { this(fluent, false); } - public V1NamespaceStatusBuilder( - io.kubernetes.client.openapi.models.V1NamespaceStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1NamespaceStatus(), validationEnabled); } - public V1NamespaceStatusBuilder( - io.kubernetes.client.openapi.models.V1NamespaceStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceStatus instance) { + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent, V1NamespaceStatus instance) { this(fluent, instance, false); } public V1NamespaceStatusBuilder( - io.kubernetes.client.openapi.models.V1NamespaceStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NamespaceStatus instance, - java.lang.Boolean validationEnabled) { + V1NamespaceStatusFluent fluent, V1NamespaceStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -53,13 +46,11 @@ public V1NamespaceStatusBuilder( this.validationEnabled = validationEnabled; } - public V1NamespaceStatusBuilder(io.kubernetes.client.openapi.models.V1NamespaceStatus instance) { + public V1NamespaceStatusBuilder(V1NamespaceStatus instance) { this(instance, false); } - public V1NamespaceStatusBuilder( - io.kubernetes.client.openapi.models.V1NamespaceStatus instance, - java.lang.Boolean validationEnabled) { + public V1NamespaceStatusBuilder(V1NamespaceStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); @@ -68,10 +59,10 @@ public V1NamespaceStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NamespaceStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1NamespaceStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NamespaceStatus build() { + public V1NamespaceStatus build() { V1NamespaceStatus buildable = new V1NamespaceStatus(); buildable.setConditions(fluent.getConditions()); buildable.setPhase(fluent.getPhase()); 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 8e3e6edfd2..9b92feda8e 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 @@ -22,18 +22,15 @@ public interface V1NamespaceStatusFluent> extends Fluent { public A addToConditions(Integer index, V1NamespaceCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NamespaceCondition item); + public A setToConditions(Integer index, V1NamespaceCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -43,61 +40,48 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildCondition( - java.lang.Integer index); + public V1NamespaceCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildFirstCondition(); + public V1NamespaceCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildLastCondition(); + public V1NamespaceCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1NamespaceCondition buildMatchingCondition( + Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1NamespaceStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1NamespaceCondition item); + public V1NamespaceStatusFluent.ConditionsNested addNewConditionLike(V1NamespaceCondition item); - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NamespaceCondition item); + public V1NamespaceStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1NamespaceCondition item); - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1NamespaceStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editFirstCondition(); + public V1NamespaceStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editLastCondition(); + public V1NamespaceStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder> - predicate); + public V1NamespaceStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public String getPhase(); - public A withPhase(java.lang.String phase); + public A withPhase(String phase); - public java.lang.Boolean hasPhase(); + public Boolean hasPhase(); public interface ConditionsNested extends Nested, V1NamespaceConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java index d5c495189f..97d4250842 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1NamespaceStatusFluentImpl> e implements V1NamespaceStatusFluent { public V1NamespaceStatusFluentImpl() {} - public V1NamespaceStatusFluentImpl( - io.kubernetes.client.openapi.models.V1NamespaceStatus instance) { + public V1NamespaceStatusFluentImpl(V1NamespaceStatus instance) { this.withConditions(instance.getConditions()); this.withPhase(instance.getPhase()); @@ -38,12 +37,9 @@ public V1NamespaceStatusFluentImpl( public A addToConditions(Integer index, V1NamespaceCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(item); + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -51,15 +47,11 @@ public A addToConditions(Integer index, V1NamespaceCondition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NamespaceCondition item) { + public A setToConditions(Integer index, V1NamespaceCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(item); + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -75,29 +67,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NamespaceCondition item : items) { - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NamespaceCondition item : items) { - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(item); + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -105,9 +90,8 @@ public A addAllToConditions( } public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { - for (io.kubernetes.client.openapi.models.V1NamespaceCondition item : items) { - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(item); + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -116,11 +100,9 @@ public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCon return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NamespaceCondition item : items) { - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -129,14 +111,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder = each.next(); + V1NamespaceConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -151,32 +131,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildCondition( - java.lang.Integer index) { + public V1NamespaceCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildFirstCondition() { + public V1NamespaceCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildLastCondition() { + public V1NamespaceCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NamespaceCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder item : conditions) { + public V1NamespaceCondition buildMatchingCondition( + Predicate predicate) { + for (V1NamespaceConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -184,10 +161,8 @@ public io.kubernetes.client.openapi.models.V1NamespaceCondition buildMatchingCon return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1NamespaceConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -195,14 +170,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NamespaceCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1NamespaceCondition item : conditions) { this.addToConditions(item); } } else { @@ -216,14 +190,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1NamespaceCondition item : conditions) { + for (V1NamespaceCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -231,44 +205,36 @@ public V1NamespaceStatusFluent.ConditionsNested addNewCondition() { return new V1NamespaceStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1NamespaceCondition item) { + public V1NamespaceStatusFluent.ConditionsNested addNewConditionLike( + V1NamespaceCondition item) { return new V1NamespaceStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NamespaceCondition item) { - return new io.kubernetes.client.openapi.models.V1NamespaceStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1NamespaceStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1NamespaceCondition item) { + return new V1NamespaceStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1NamespaceStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editFirstCondition() { + public V1NamespaceStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editLastCondition() { + public V1NamespaceStatusFluent.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 io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder> - predicate) { + public V1NamespaceStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -280,16 +246,16 @@ public V1NamespaceStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.String getPhase() { + public String getPhase() { return this.phase; } - public A withPhase(java.lang.String phase) { + public A withPhase(String phase) { this.phase = phase; return (A) this; } - public java.lang.Boolean hasPhase() { + public Boolean hasPhase() { return this.phase != null; } @@ -307,7 +273,7 @@ public int hashCode() { return java.util.Objects.hash(conditions, phase, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (conditions != null && !conditions.isEmpty()) { @@ -324,20 +290,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1NamespaceConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1NamespaceStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1NamespaceCondition item) { + implements V1NamespaceStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1NamespaceCondition item) { this.index = index; this.builder = new V1NamespaceConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder(this); + this.builder = new V1NamespaceConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1NamespaceConditionBuilder builder; - java.lang.Integer index; + V1NamespaceConditionBuilder builder; + Integer index; public N and() { return (N) V1NamespaceStatusFluentImpl.this.setToConditions(index, builder.build()); 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 0fac5bbe7a..26692b0523 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NetworkPolicy, V1NetworkPolicyBuilder> { + implements VisitableBuilder { public V1NetworkPolicyBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1NetworkPolicyBuilder(Boolean validationEnabled) { this(new V1NetworkPolicy(), validationEnabled); } - public V1NetworkPolicyBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyFluent fluent) { + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent) { this(fluent, false); } - public V1NetworkPolicyBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicy(), validationEnabled); } - public V1NetworkPolicyBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicy instance) { + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent, V1NetworkPolicy instance) { this(fluent, instance, false); } public V1NetworkPolicyBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicy instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyFluent fluent, V1NetworkPolicy instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1NetworkPolicyBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicyBuilder(io.kubernetes.client.openapi.models.V1NetworkPolicy instance) { + public V1NetworkPolicyBuilder(V1NetworkPolicy instance) { this(instance, false); } - public V1NetworkPolicyBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicy instance, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicyBuilder(V1NetworkPolicy instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1NetworkPolicyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicy build() { + public V1NetworkPolicy build() { V1NetworkPolicy buildable = new V1NetworkPolicy(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 0d83bc4e67..4ff4f5b41f 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 @@ -16,9 +16,7 @@ public class V1NetworkPolicyEgressRuleBuilder extends V1NetworkPolicyEgressRuleFluentImpl - implements VisitableBuilder< - V1NetworkPolicyEgressRule, - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> { + implements VisitableBuilder { public V1NetworkPolicyEgressRuleBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluen } public V1NetworkPolicyEgressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyEgressRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicyEgressRule(), validationEnabled); } public V1NetworkPolicyEgressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule instance) { + V1NetworkPolicyEgressRuleFluent fluent, V1NetworkPolicyEgressRule instance) { this(fluent, instance, false); } public V1NetworkPolicyEgressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyEgressRuleFluent fluent, + V1NetworkPolicyEgressRule instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPorts(instance.getPorts()); @@ -55,14 +51,12 @@ public V1NetworkPolicyEgressRuleBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicyEgressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule instance) { + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRule instance) { this(instance, false); } public V1NetworkPolicyEgressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyEgressRule instance, Boolean validationEnabled) { this.fluent = this; this.withPorts(instance.getPorts()); @@ -71,10 +65,10 @@ public V1NetworkPolicyEgressRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyEgressRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule build() { + public V1NetworkPolicyEgressRule build() { V1NetworkPolicyEgressRule buildable = new V1NetworkPolicyEgressRule(); buildable.setPorts(fluent.getPorts()); buildable.setTo(fluent.getTo()); 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 ce8130e0be..85ba6045f7 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 @@ -23,17 +23,15 @@ public interface V1NetworkPolicyEgressRuleFluent { public A addToPorts(Integer index, V1NetworkPolicyPort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item); + public A setToPorts(Integer index, V1NetworkPolicyPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A addAllToPorts(Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); public A removeMatchingFromPorts(Predicate predicate); @@ -43,124 +41,97 @@ public A removeAllFromPorts( * @return The buildable object. */ @Deprecated - public List getPorts(); + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildPort(java.lang.Integer index); + public V1NetworkPolicyPort buildPort(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildFirstPort(); + public V1NetworkPolicyPort buildFirstPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildLastPort(); + public V1NetworkPolicyPort buildLastPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort( - java.util.function.Predicate - predicate); + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate); - public Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPort item); + public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item); + public V1NetworkPolicyEgressRuleFluent.PortsNested setNewPortLike( + Integer index, V1NetworkPolicyPort item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editPort(java.lang.Integer index); + public V1NetworkPolicyEgressRuleFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editFirstPort(); + public V1NetworkPolicyEgressRuleFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editLastPort(); + public V1NetworkPolicyEgressRuleFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder> - predicate); + public V1NetworkPolicyEgressRuleFluent.PortsNested editMatchingPort( + Predicate predicate); - public A addToTo(java.lang.Integer index, V1NetworkPolicyPeer item); + public A addToTo(Integer index, V1NetworkPolicyPeer item); - public A setToTo( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item); + public A setToTo(Integer index, V1NetworkPolicyPeer item); public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A addAllToTo( - java.util.Collection items); + public A addAllToTo(Collection items); public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A removeAllFromTo( - java.util.Collection items); + public A removeAllFromTo(Collection items); - public A removeMatchingFromTo(java.util.function.Predicate predicate); + public A removeMatchingFromTo(Predicate predicate); /** * This method has been deprecated, please use method buildTo instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTo(); + @Deprecated + public List getTo(); - public java.util.List buildTo(); + public List buildTo(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildTo(java.lang.Integer index); + public V1NetworkPolicyPeer buildTo(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFirstTo(); + public V1NetworkPolicyPeer buildFirstTo(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildLastTo(); + public V1NetworkPolicyPeer buildLastTo(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingTo( - java.util.function.Predicate - predicate); + public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate); - public java.lang.Boolean hasMatchingTo( - java.util.function.Predicate - predicate); + public Boolean hasMatchingTo(Predicate predicate); - public A withTo(java.util.List to); + public A withTo(List to); public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to); - public java.lang.Boolean hasTo(); + public Boolean hasTo(); public V1NetworkPolicyEgressRuleFluent.ToNested addNewTo(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - addNewToLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item); + public V1NetworkPolicyEgressRuleFluent.ToNested addNewToLike(V1NetworkPolicyPeer item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - setNewToLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item); + public V1NetworkPolicyEgressRuleFluent.ToNested setNewToLike( + Integer index, V1NetworkPolicyPeer item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested editTo( - java.lang.Integer index); + public V1NetworkPolicyEgressRuleFluent.ToNested editTo(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - editFirstTo(); + public V1NetworkPolicyEgressRuleFluent.ToNested editFirstTo(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - editLastTo(); + public V1NetworkPolicyEgressRuleFluent.ToNested editLastTo(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - editMatchingTo( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder> - predicate); + public V1NetworkPolicyEgressRuleFluent.ToNested editMatchingTo( + Predicate predicate); public interface PortsNested extends Nested, V1NetworkPolicyPortFluent> { @@ -170,8 +141,7 @@ public interface PortsNested } public interface ToNested - extends io.kubernetes.client.fluent.Nested, - V1NetworkPolicyPeerFluent> { + extends Nested, V1NetworkPolicyPeerFluent> { public N and(); public N endTo(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java index 9a0644ae54..e62249193b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluentImpl.java @@ -26,35 +26,30 @@ public class V1NetworkPolicyEgressRuleFluentImpl implements V1NetworkPolicyEgressRuleFluent { public V1NetworkPolicyEgressRuleFluentImpl() {} - public V1NetworkPolicyEgressRuleFluentImpl( - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule instance) { + public V1NetworkPolicyEgressRuleFluentImpl(V1NetworkPolicyEgressRule instance) { this.withPorts(instance.getPorts()); this.withTo(instance.getTo()); } private ArrayList ports; - private java.util.ArrayList to; + private ArrayList to; - public A addToPorts(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { + public A addToPorts(Integer index, V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { + public A setToPorts(Integer index, V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -70,27 +65,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + 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) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -98,9 +88,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -109,11 +98,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -122,14 +109,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - Predicate predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = each.next(); + V1NetworkPolicyPortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -144,31 +129,28 @@ public A removeMatchingFromPorts( * @return The buildable object. */ @Deprecated - public List getPorts() { + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildPort( - java.lang.Integer index) { + public V1NetworkPolicyPort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildFirstPort() { + public V1NetworkPolicyPort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildLastPort() { + public V1NetworkPolicyPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder item : ports) { + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -176,10 +158,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort return null; } - public Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -187,14 +167,13 @@ public Boolean hasMatchingPort( return false; } - public A withPorts( - java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : ports) { + this.ports = new ArrayList(); + for (V1NetworkPolicyPort item : ports) { this.addToPorts(item); } } else { @@ -208,14 +187,14 @@ public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... po this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : ports) { + for (V1NetworkPolicyPort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -223,42 +202,33 @@ public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPort() { return new V1NetworkPolicyEgressRuleFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { + public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item) { return new V1NetworkPolicyEgressRuleFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluentImpl - .PortsNestedImpl(index, item); + public V1NetworkPolicyEgressRuleFluent.PortsNested setNewPortLike( + Integer index, V1NetworkPolicyPort item) { + return new V1NetworkPolicyEgressRuleFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editPort(java.lang.Integer index) { + public V1NetworkPolicyEgressRuleFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editFirstPort() { + public V1NetworkPolicyEgressRuleFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editLastPort() { + public V1NetworkPolicyEgressRuleFluent.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)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested - editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder> - predicate) { + public V1NetworkPolicyEgressRuleFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -270,26 +240,21 @@ public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPort() { return setNewPortLike(index, buildPort(index)); } - public A addToTo(java.lang.Integer index, V1NetworkPolicyPeer item) { + public A addToTo(Integer index, V1NetworkPolicyPeer item) { if (this.to == null) { - this.to = - new java.util.ArrayList(); + this.to = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("to").add(index >= 0 ? index : _visitables.get("to").size(), builder); this.to.add(index >= 0 ? index : to.size(), builder); return (A) this; } - public A setToTo( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item) { + public A setToTo(Integer index, V1NetworkPolicyPeer item) { if (this.to == null) { - this.to = - new java.util.ArrayList(); + this.to = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= _visitables.get("to").size()) { _visitables.get("to").add(builder); } else { @@ -305,27 +270,22 @@ public A setToTo( public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { if (this.to == null) { - this.to = - new java.util.ArrayList(); + this.to = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("to").add(builder); this.to.add(builder); } return (A) this; } - public A addAllToTo( - java.util.Collection items) { + public A addAllToTo(Collection items) { if (this.to == null) { - this.to = - new java.util.ArrayList(); + this.to = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("to").add(builder); this.to.add(builder); } @@ -333,9 +293,8 @@ public A addAllToTo( } public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("to").remove(builder); if (this.to != null) { this.to.remove(builder); @@ -344,11 +303,9 @@ public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... return (A) this; } - public A removeAllFromTo( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + public A removeAllFromTo(Collection items) { + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("to").remove(builder); if (this.to != null) { this.to.remove(builder); @@ -357,15 +314,12 @@ public A removeAllFromTo( return (A) this; } - public A removeMatchingFromTo( - java.util.function.Predicate - predicate) { + public A removeMatchingFromTo(Predicate predicate) { if (to == null) return (A) this; - final Iterator each = - to.iterator(); + final Iterator each = to.iterator(); final List visitables = _visitables.get("to"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = each.next(); + V1NetworkPolicyPeerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -379,31 +333,29 @@ public A removeMatchingFromTo( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTo() { + @Deprecated + public List getTo() { return to != null ? build(to) : null; } - public java.util.List buildTo() { + public List buildTo() { return to != null ? build(to) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildTo(java.lang.Integer index) { + public V1NetworkPolicyPeer buildTo(Integer index) { return this.to.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFirstTo() { + public V1NetworkPolicyPeer buildFirstTo() { return this.to.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildLastTo() { + public V1NetworkPolicyPeer buildLastTo() { return this.to.get(to.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingTo( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder item : to) { + public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : to) { if (predicate.test(item)) { return item.build(); } @@ -411,10 +363,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingTo( return null; } - public java.lang.Boolean hasMatchingTo( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder item : to) { + public Boolean hasMatchingTo(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : to) { if (predicate.test(item)) { return true; } @@ -422,13 +372,13 @@ public java.lang.Boolean hasMatchingTo( return false; } - public A withTo(java.util.List to) { + public A withTo(List to) { if (this.to != null) { _visitables.get("to").removeAll(this.to); } if (to != null) { - this.to = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : to) { + this.to = new ArrayList(); + for (V1NetworkPolicyPeer item : to) { this.addToTo(item); } } else { @@ -442,14 +392,14 @@ public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to) { this.to.clear(); } if (to != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : to) { + for (V1NetworkPolicyPeer item : to) { this.addToTo(item); } } return (A) this; } - public java.lang.Boolean hasTo() { + public Boolean hasTo() { return to != null && !to.isEmpty(); } @@ -457,43 +407,33 @@ public V1NetworkPolicyEgressRuleFluent.ToNested addNewTo() { return new V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - addNewToLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl( - -1, item); + public V1NetworkPolicyEgressRuleFluent.ToNested addNewToLike(V1NetworkPolicyPeer item) { + return new V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - setNewToLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl( - index, item); + public V1NetworkPolicyEgressRuleFluent.ToNested setNewToLike( + Integer index, V1NetworkPolicyPeer item) { + return new V1NetworkPolicyEgressRuleFluentImpl.ToNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested editTo( - java.lang.Integer index) { + public V1NetworkPolicyEgressRuleFluent.ToNested editTo(Integer index) { if (to.size() <= index) throw new RuntimeException("Can't edit to. Index exceeds size."); return setNewToLike(index, buildTo(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - editFirstTo() { + public V1NetworkPolicyEgressRuleFluent.ToNested editFirstTo() { if (to.size() == 0) throw new RuntimeException("Can't edit first to. The list is empty."); return setNewToLike(0, buildTo(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - editLastTo() { + public V1NetworkPolicyEgressRuleFluent.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)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested - editMatchingTo( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder> - predicate) { + public V1NetworkPolicyEgressRuleFluent.ToNested editMatchingTo( + Predicate predicate) { int index = -1; for (int i = 0; i < to.size(); i++) { if (predicate.test(to.get(i))) { @@ -535,20 +475,19 @@ public String toString() { class PortsNestedImpl extends V1NetworkPolicyPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested, - Nested { - PortsNestedImpl(java.lang.Integer index, V1NetworkPolicyPort item) { + implements V1NetworkPolicyEgressRuleFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(this); + this.builder = new V1NetworkPolicyPortBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder; - java.lang.Integer index; + V1NetworkPolicyPortBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicyEgressRuleFluentImpl.this.setToPorts(index, builder.build()); @@ -561,20 +500,19 @@ public N endPort() { class ToNestedImpl extends V1NetworkPolicyPeerFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested, - io.kubernetes.client.fluent.Nested { - ToNestedImpl(java.lang.Integer index, V1NetworkPolicyPeer item) { + implements V1NetworkPolicyEgressRuleFluent.ToNested, Nested { + ToNestedImpl(Integer index, V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } ToNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(this); + this.builder = new V1NetworkPolicyPeerBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder; - java.lang.Integer index; + V1NetworkPolicyPeerBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicyEgressRuleFluentImpl.this.setToTo(index, builder.build()); 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 5316217c3c..afad8cdd88 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 @@ -19,15 +19,15 @@ public interface V1NetworkPolicyFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,77 +37,69 @@ public interface V1NetworkPolicyFluent> exten @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1NetworkPolicyFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1NetworkPolicyFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested editMetadata(); + public V1NetworkPolicyFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - editOrNewMetadata(); + public V1NetworkPolicyFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1NetworkPolicyFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NetworkPolicySpec getSpec(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpec buildSpec(); + public V1NetworkPolicySpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1NetworkPolicySpec spec); + public A withSpec(V1NetworkPolicySpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1NetworkPolicyFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec item); + public V1NetworkPolicyFluent.SpecNested withNewSpecLike(V1NetworkPolicySpec item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested editSpec(); + public V1NetworkPolicyFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested editOrNewSpec(); + public V1NetworkPolicyFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec item); + public V1NetworkPolicyFluent.SpecNested editOrNewSpecLike(V1NetworkPolicySpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NetworkPolicyStatus getStatus(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatus buildStatus(); + public V1NetworkPolicyStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1NetworkPolicyStatus status); + public A withStatus(V1NetworkPolicyStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1NetworkPolicyFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1NetworkPolicyStatus item); + public V1NetworkPolicyFluent.StatusNested withNewStatusLike(V1NetworkPolicyStatus item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested editStatus(); + public V1NetworkPolicyFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested - editOrNewStatus(); + public V1NetworkPolicyFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1NetworkPolicyStatus item); + public V1NetworkPolicyFluent.StatusNested editOrNewStatusLike(V1NetworkPolicyStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -117,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1NetworkPolicySpecFluent> { + extends Nested, V1NetworkPolicySpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1NetworkPolicyStatusFluent> { + extends Nested, V1NetworkPolicyStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java index 6ffa039eaf..7508abe1fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluentImpl.java @@ -21,7 +21,7 @@ public class V1NetworkPolicyFluentImpl> exten implements V1NetworkPolicyFluent { public V1NetworkPolicyFluentImpl() {} - public V1NetworkPolicyFluentImpl(io.kubernetes.client.openapi.models.V1NetworkPolicy instance) { + public V1NetworkPolicyFluentImpl(V1NetworkPolicy instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1NetworkPolicyFluentImpl(io.kubernetes.client.openapi.models.V1NetworkPo } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1NetworkPolicySpecBuilder spec; private V1NetworkPolicyStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,26 +99,20 @@ public V1NetworkPolicyFluent.MetadataNested withNewMetadata() { return new V1NetworkPolicyFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1NetworkPolicyFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1NetworkPolicyFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - editMetadata() { + public V1NetworkPolicyFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - editOrNewMetadata() { + public V1NetworkPolicyFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1NetworkPolicyFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -124,25 +121,28 @@ public V1NetworkPolicyFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NetworkPolicySpec getSpec() { + @Deprecated + public V1NetworkPolicySpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpec buildSpec() { + public V1NetworkPolicySpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1NetworkPolicySpec spec) { + public A withSpec(V1NetworkPolicySpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1NetworkPolicySpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -150,24 +150,20 @@ public V1NetworkPolicyFluent.SpecNested withNewSpec() { return new V1NetworkPolicyFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyFluentImpl.SpecNestedImpl(item); + public V1NetworkPolicyFluent.SpecNested withNewSpecLike(V1NetworkPolicySpec item) { + return new V1NetworkPolicyFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested editSpec() { + public V1NetworkPolicyFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested editOrNewSpec() { + public V1NetworkPolicyFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1NetworkPolicySpecBuilder().build()); + getSpec() != null ? getSpec() : new V1NetworkPolicySpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec item) { + public V1NetworkPolicyFluent.SpecNested editOrNewSpecLike(V1NetworkPolicySpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -176,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested e * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NetworkPolicyStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatus buildStatus() { + public V1NetworkPolicyStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1NetworkPolicyStatus status) { + public A withStatus(V1NetworkPolicyStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1NetworkPolicyStatusBuilder(status); + this.status = new V1NetworkPolicyStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -202,25 +201,20 @@ public V1NetworkPolicyFluent.StatusNested withNewStatus() { return new V1NetworkPolicyFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1NetworkPolicyStatus item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyFluentImpl.StatusNestedImpl(item); + public V1NetworkPolicyFluent.StatusNested withNewStatusLike(V1NetworkPolicyStatus item) { + return new V1NetworkPolicyFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested editStatus() { + public V1NetworkPolicyFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested - editOrNewStatus() { + public V1NetworkPolicyFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1NetworkPolicyStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1NetworkPolicyStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1NetworkPolicyStatus item) { + public V1NetworkPolicyFluent.StatusNested editOrNewStatusLike(V1NetworkPolicyStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -241,7 +235,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -270,17 +264,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.MetadataNested, - Nested { + implements V1NetworkPolicyFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1NetworkPolicyFluentImpl.this.withMetadata(builder.build()); @@ -292,17 +285,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1NetworkPolicySpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1NetworkPolicyFluent.SpecNested, Nested { SpecNestedImpl(V1NetworkPolicySpec item) { this.builder = new V1NetworkPolicySpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicySpecBuilder(this); + this.builder = new V1NetworkPolicySpecBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicySpecBuilder builder; + V1NetworkPolicySpecBuilder builder; public N and() { return (N) V1NetworkPolicyFluentImpl.this.withSpec(builder.build()); @@ -315,17 +307,16 @@ public N endSpec() { class StatusNestedImpl extends V1NetworkPolicyStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1NetworkPolicyFluent.StatusNested, Nested { StatusNestedImpl(V1NetworkPolicyStatus item) { this.builder = new V1NetworkPolicyStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyStatusBuilder(this); + this.builder = new V1NetworkPolicyStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyStatusBuilder builder; + V1NetworkPolicyStatusBuilder builder; public N and() { return (N) V1NetworkPolicyFluentImpl.this.withStatus(builder.build()); 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 2567e3258b..22dcffe976 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 @@ -16,9 +16,7 @@ public class V1NetworkPolicyIngressRuleBuilder extends V1NetworkPolicyIngressRuleFluentImpl - implements VisitableBuilder< - V1NetworkPolicyIngressRule, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> { + implements VisitableBuilder { public V1NetworkPolicyIngressRuleBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1NetworkPolicyIngressRuleBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyIngressRule(), validationEnabled); } - public V1NetworkPolicyIngressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent fluent) { + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent) { this(fluent, false); } public V1NetworkPolicyIngressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyIngressRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicyIngressRule(), validationEnabled); } public V1NetworkPolicyIngressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule instance) { + V1NetworkPolicyIngressRuleFluent fluent, V1NetworkPolicyIngressRule instance) { this(fluent, instance, false); } public V1NetworkPolicyIngressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyIngressRuleFluent fluent, + V1NetworkPolicyIngressRule instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFrom(instance.getFrom()); @@ -56,14 +51,12 @@ public V1NetworkPolicyIngressRuleBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicyIngressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule instance) { + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRule instance) { this(instance, false); } public V1NetworkPolicyIngressRuleBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyIngressRule instance, Boolean validationEnabled) { this.fluent = this; this.withFrom(instance.getFrom()); @@ -72,10 +65,10 @@ public V1NetworkPolicyIngressRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyIngressRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule build() { + public V1NetworkPolicyIngressRule build() { V1NetworkPolicyIngressRule buildable = new V1NetworkPolicyIngressRule(); buildable.setFrom(fluent.getFrom()); buildable.setPorts(fluent.getPorts()); 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 43faad773e..bb4894c488 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 @@ -23,17 +23,15 @@ public interface V1NetworkPolicyIngressRuleFluent { public A addToFrom(Integer index, V1NetworkPolicyPeer item); - public A setToFrom( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item); + public A setToFrom(Integer index, V1NetworkPolicyPeer item); public A addToFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A addAllToFrom(Collection items); + public A addAllToFrom(Collection items); public A removeFromFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items); - public A removeAllFromFrom( - java.util.Collection items); + public A removeAllFromFrom(Collection items); public A removeMatchingFromFrom(Predicate predicate); @@ -43,125 +41,97 @@ public A removeAllFromFrom( * @return The buildable object. */ @Deprecated - public List getFrom(); + public List getFrom(); - public java.util.List buildFrom(); + public List buildFrom(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFrom(java.lang.Integer index); + public V1NetworkPolicyPeer buildFrom(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFirstFrom(); + public V1NetworkPolicyPeer buildFirstFrom(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildLastFrom(); + public V1NetworkPolicyPeer buildLastFrom(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingFrom( - java.util.function.Predicate - predicate); + public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate); - public Boolean hasMatchingFrom( - java.util.function.Predicate - predicate); + public Boolean hasMatchingFrom(Predicate predicate); - public A withFrom(java.util.List from); + public A withFrom(List from); public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... from); - public java.lang.Boolean hasFrom(); + public Boolean hasFrom(); public V1NetworkPolicyIngressRuleFluent.FromNested addNewFrom(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - addNewFromLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item); + public V1NetworkPolicyIngressRuleFluent.FromNested addNewFromLike(V1NetworkPolicyPeer item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - setNewFromLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item); + public V1NetworkPolicyIngressRuleFluent.FromNested setNewFromLike( + Integer index, V1NetworkPolicyPeer item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editFrom(java.lang.Integer index); + public V1NetworkPolicyIngressRuleFluent.FromNested editFrom(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editFirstFrom(); + public V1NetworkPolicyIngressRuleFluent.FromNested editFirstFrom(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editLastFrom(); + public V1NetworkPolicyIngressRuleFluent.FromNested editLastFrom(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editMatchingFrom( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder> - predicate); + public V1NetworkPolicyIngressRuleFluent.FromNested editMatchingFrom( + Predicate predicate); - public A addToPorts(java.lang.Integer index, V1NetworkPolicyPort item); + public A addToPorts(Integer index, V1NetworkPolicyPort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item); + public A setToPorts(Integer index, V1NetworkPolicyPort item); public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A addAllToPorts( - java.util.Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts( - java.util.function.Predicate predicate); + public A removeMatchingFromPorts(Predicate predicate); /** * This method has been deprecated, please use method buildPorts instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts(); + @Deprecated + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildPort(java.lang.Integer index); + public V1NetworkPolicyPort buildPort(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildFirstPort(); + public V1NetworkPolicyPort buildFirstPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildLastPort(); + public V1NetworkPolicyPort buildLastPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort( - java.util.function.Predicate - predicate); + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPort item); + public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item); + public V1NetworkPolicyIngressRuleFluent.PortsNested setNewPortLike( + Integer index, V1NetworkPolicyPort item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editPort(java.lang.Integer index); + public V1NetworkPolicyIngressRuleFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editFirstPort(); + public V1NetworkPolicyIngressRuleFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editLastPort(); + public V1NetworkPolicyIngressRuleFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder> - predicate); + public V1NetworkPolicyIngressRuleFluent.PortsNested editMatchingPort( + Predicate predicate); public interface FromNested extends Nested, V1NetworkPolicyPeerFluent> { @@ -171,7 +141,7 @@ public interface FromNested } public interface PortsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1NetworkPolicyPortFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java index fa258d8489..110f122fd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluentImpl.java @@ -26,36 +26,30 @@ public class V1NetworkPolicyIngressRuleFluentImpl implements V1NetworkPolicyIngressRuleFluent { public V1NetworkPolicyIngressRuleFluentImpl() {} - public V1NetworkPolicyIngressRuleFluentImpl( - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule instance) { + public V1NetworkPolicyIngressRuleFluentImpl(V1NetworkPolicyIngressRule instance) { this.withFrom(instance.getFrom()); this.withPorts(instance.getPorts()); } private ArrayList from; - private java.util.ArrayList ports; + private ArrayList ports; public A addToFrom(Integer index, V1NetworkPolicyPeer item) { if (this.from == null) { - this.from = - new java.util.ArrayList(); + this.from = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("from").add(index >= 0 ? index : _visitables.get("from").size(), builder); this.from.add(index >= 0 ? index : from.size(), builder); return (A) this; } - public A setToFrom( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item) { + public A setToFrom(Integer index, V1NetworkPolicyPeer item) { if (this.from == null) { - this.from = - new java.util.ArrayList(); + this.from = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); if (index < 0 || index >= _visitables.get("from").size()) { _visitables.get("from").add(builder); } else { @@ -71,26 +65,22 @@ public A setToFrom( public A addToFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { if (this.from == null) { - this.from = - new java.util.ArrayList(); + this.from = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + 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) { + public A addAllToFrom(Collection items) { if (this.from == null) { - this.from = - new java.util.ArrayList(); + this.from = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("from").add(builder); this.from.add(builder); } @@ -98,9 +88,8 @@ public A addAllToFrom(Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(item); + public A removeAllFromFrom(Collection items) { + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); _visitables.get("from").remove(builder); if (this.from != null) { this.from.remove(builder); @@ -122,14 +109,12 @@ public A removeAllFromFrom( return (A) this; } - public A removeMatchingFromFrom( - Predicate predicate) { + public A removeMatchingFromFrom(Predicate predicate) { if (from == null) return (A) this; - final Iterator each = - from.iterator(); + final Iterator each = from.iterator(); final List visitables = _visitables.get("from"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder = each.next(); + V1NetworkPolicyPeerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -144,31 +129,28 @@ public A removeMatchingFromFrom( * @return The buildable object. */ @Deprecated - public List getFrom() { + public List getFrom() { return from != null ? build(from) : null; } - public java.util.List buildFrom() { + public List buildFrom() { return from != null ? build(from) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFrom( - java.lang.Integer index) { + public V1NetworkPolicyPeer buildFrom(Integer index) { return this.from.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFirstFrom() { + public V1NetworkPolicyPeer buildFirstFrom() { return this.from.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildLastFrom() { + public V1NetworkPolicyPeer buildLastFrom() { return this.from.get(from.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingFrom( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder item : from) { + public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : from) { if (predicate.test(item)) { return item.build(); } @@ -176,10 +158,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingFrom return null; } - public Boolean hasMatchingFrom( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder item : from) { + public Boolean hasMatchingFrom(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : from) { if (predicate.test(item)) { return true; } @@ -187,13 +167,13 @@ public Boolean hasMatchingFrom( return false; } - public A withFrom(java.util.List from) { + public A withFrom(List from) { if (this.from != null) { _visitables.get("from").removeAll(this.from); } if (from != null) { - this.from = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : from) { + this.from = new ArrayList(); + for (V1NetworkPolicyPeer item : from) { this.addToFrom(item); } } else { @@ -207,14 +187,14 @@ public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... fro this.from.clear(); } if (from != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item : from) { + for (V1NetworkPolicyPeer item : from) { this.addToFrom(item); } } return (A) this; } - public java.lang.Boolean hasFrom() { + public Boolean hasFrom() { return from != null && !from.isEmpty(); } @@ -222,42 +202,33 @@ public V1NetworkPolicyIngressRuleFluent.FromNested addNewFrom() { return new V1NetworkPolicyIngressRuleFluentImpl.FromNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - addNewFromLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item) { + public V1NetworkPolicyIngressRuleFluent.FromNested addNewFromLike(V1NetworkPolicyPeer item) { return new V1NetworkPolicyIngressRuleFluentImpl.FromNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - setNewFromLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluentImpl - .FromNestedImpl(index, item); + public V1NetworkPolicyIngressRuleFluent.FromNested setNewFromLike( + Integer index, V1NetworkPolicyPeer item) { + return new V1NetworkPolicyIngressRuleFluentImpl.FromNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editFrom(java.lang.Integer index) { + public V1NetworkPolicyIngressRuleFluent.FromNested editFrom(Integer index) { if (from.size() <= index) throw new RuntimeException("Can't edit from. Index exceeds size."); return setNewFromLike(index, buildFrom(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editFirstFrom() { + public V1NetworkPolicyIngressRuleFluent.FromNested editFirstFrom() { if (from.size() == 0) throw new RuntimeException("Can't edit first from. The list is empty."); return setNewFromLike(0, buildFrom(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editLastFrom() { + public V1NetworkPolicyIngressRuleFluent.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)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested - editMatchingFrom( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder> - predicate) { + public V1NetworkPolicyIngressRuleFluent.FromNested editMatchingFrom( + Predicate predicate) { int index = -1; for (int i = 0; i < from.size(); i++) { if (predicate.test(from.get(i))) { @@ -269,26 +240,21 @@ public V1NetworkPolicyIngressRuleFluent.FromNested addNewFrom() { return setNewFromLike(index, buildFrom(index)); } - public A addToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { + public A addToPorts(Integer index, V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { + public A setToPorts(Integer index, V1NetworkPolicyPort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -304,27 +270,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; } - public A addAllToPorts( - java.util.Collection items) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -332,9 +293,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -343,11 +303,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -356,15 +314,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder = each.next(); + V1NetworkPolicyPortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -378,32 +333,29 @@ public A removeMatchingFromPorts( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPorts() { + @Deprecated + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildPort( - java.lang.Integer index) { + public V1NetworkPolicyPort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildFirstPort() { + public V1NetworkPolicyPort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildLastPort() { + public V1NetworkPolicyPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder item : ports) { + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -411,10 +363,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -422,14 +372,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts( - java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : ports) { + this.ports = new ArrayList(); + for (V1NetworkPolicyPort item : ports) { this.addToPorts(item); } } else { @@ -443,14 +392,14 @@ public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... po this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyPort item : ports) { + for (V1NetworkPolicyPort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -458,43 +407,33 @@ public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPort() { return new V1NetworkPolicyIngressRuleFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluentImpl - .PortsNestedImpl(-1, item); + public V1NetworkPolicyIngressRuleFluent.PortsNested addNewPortLike(V1NetworkPolicyPort item) { + return new V1NetworkPolicyIngressRuleFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluentImpl - .PortsNestedImpl(index, item); + public V1NetworkPolicyIngressRuleFluent.PortsNested setNewPortLike( + Integer index, V1NetworkPolicyPort item) { + return new V1NetworkPolicyIngressRuleFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editPort(java.lang.Integer index) { + public V1NetworkPolicyIngressRuleFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editFirstPort() { + public V1NetworkPolicyIngressRuleFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editLastPort() { + public V1NetworkPolicyIngressRuleFluent.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)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested - editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder> - predicate) { + public V1NetworkPolicyIngressRuleFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -536,20 +475,19 @@ public String toString() { class FromNestedImpl extends V1NetworkPolicyPeerFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.FromNested, - Nested { - FromNestedImpl(java.lang.Integer index, V1NetworkPolicyPeer item) { + implements V1NetworkPolicyIngressRuleFluent.FromNested, Nested { + FromNestedImpl(Integer index, V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } FromNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder(this); + this.builder = new V1NetworkPolicyPeerBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder builder; - java.lang.Integer index; + V1NetworkPolicyPeerBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicyIngressRuleFluentImpl.this.setToFrom(index, builder.build()); @@ -562,21 +500,19 @@ public N endFrom() { class PortsNestedImpl extends V1NetworkPolicyPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleFluent.PortsNested< - N>, - io.kubernetes.client.fluent.Nested { - PortsNestedImpl(java.lang.Integer index, V1NetworkPolicyPort item) { + implements V1NetworkPolicyIngressRuleFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder(this); + this.builder = new V1NetworkPolicyPortBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder builder; - java.lang.Integer index; + V1NetworkPolicyPortBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicyIngressRuleFluentImpl.this.setToPorts(index, builder.build()); 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 7b207dd866..c66624eb71 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 @@ -16,8 +16,7 @@ public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluentImpl - implements VisitableBuilder< - V1NetworkPolicyList, io.kubernetes.client.openapi.models.V1NetworkPolicyListBuilder> { + implements VisitableBuilder { public V1NetworkPolicyListBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1NetworkPolicyListBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyList(), validationEnabled); } - public V1NetworkPolicyListBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent fluent) { + public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent) { this(fluent, false); } public V1NetworkPolicyListBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyListFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicyList(), validationEnabled); } public V1NetworkPolicyListBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyList instance) { + V1NetworkPolicyListFluent fluent, V1NetworkPolicyList instance) { this(fluent, instance, false); } public V1NetworkPolicyListBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyList instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyListFluent fluent, + V1NetworkPolicyList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1NetworkPolicyListBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicyListBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyList instance) { + public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance) { this(instance, false); } - public V1NetworkPolicyListBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyList instance, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1NetworkPolicyListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicyList build() { + public V1NetworkPolicyList build() { V1NetworkPolicyList buildable = new V1NetworkPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 6dee418fd7..87fd1c1d43 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 @@ -23,23 +23,21 @@ public interface V1NetworkPolicyListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item); + public A addToItems(Integer index, V1NetworkPolicy item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item); + public A setToItems(Integer index, V1NetworkPolicy item); public A addToItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildItem(java.lang.Integer index); + public V1NetworkPolicy buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildFirstItem(); + public V1NetworkPolicy buildFirstItem(); - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildLastItem(); + public V1NetworkPolicy buildLastItem(); - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildMatchingItem( - java.util.function.Predicate - predicate); + public V1NetworkPolicy buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1NetworkPolicyListFluent.ItemsNested addNewItem(); - public V1NetworkPolicyListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1NetworkPolicy item); + public V1NetworkPolicyListFluent.ItemsNested addNewItemLike(V1NetworkPolicy item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item); + public V1NetworkPolicyListFluent.ItemsNested setNewItemLike( + Integer index, V1NetworkPolicy item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1NetworkPolicyListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - editFirstItem(); + public V1NetworkPolicyListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - editLastItem(); + public V1NetworkPolicyListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1NetworkPolicyListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1NetworkPolicyListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1NetworkPolicyListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - editMetadata(); + public V1NetworkPolicyListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - editOrNewMetadata(); + public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1NetworkPolicyFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java index 35313dddcc..25a3995dc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluentImpl.java @@ -38,14 +38,14 @@ public V1NetworkPolicyListFluentImpl(V1NetworkPolicyList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item) { + public A addToItems(Integer index, V1NetworkPolicy item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder(item); + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item) { + public A setToItems(Integer index, V1NetworkPolicy item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder(item); + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicy item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicy item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder(item); + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicy item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder = each.next(); + V1NetworkPolicyBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildItem(java.lang.Integer index) { + public V1NetworkPolicy buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildFirstItem() { + public V1NetworkPolicy buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildLastItem() { + public V1NetworkPolicy buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicy buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder item : items) { + public V1NetworkPolicy buildMatchingItem(Predicate predicate) { + for (V1NetworkPolicyBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicy buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1NetworkPolicyBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicy item : items) { + this.items = new ArrayList(); + for (V1NetworkPolicy item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicy item : items) { + for (V1NetworkPolicy item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,41 +221,33 @@ public V1NetworkPolicyListFluent.ItemsNested addNewItem() { return new V1NetworkPolicyListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1NetworkPolicy item) { + public V1NetworkPolicyListFluent.ItemsNested addNewItemLike(V1NetworkPolicy item) { return new V1NetworkPolicyListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyListFluentImpl.ItemsNestedImpl( - index, item); + public V1NetworkPolicyListFluent.ItemsNested setNewItemLike( + Integer index, V1NetworkPolicy item) { + return new V1NetworkPolicyListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1NetworkPolicyListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - editFirstItem() { + public V1NetworkPolicyListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - editLastItem() { + public V1NetworkPolicyListFluent.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 io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1NetworkPolicyListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -303,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -329,27 +306,20 @@ public V1NetworkPolicyListFluent.MetadataNested withNewMetadata() { return new V1NetworkPolicyListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyListFluentImpl.MetadataNestedImpl( - item); + public V1NetworkPolicyListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1NetworkPolicyListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - editMetadata() { + public V1NetworkPolicyListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - editOrNewMetadata() { + public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1NetworkPolicyListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -369,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -395,19 +365,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1NetworkPolicyFluentImpl> implements V1NetworkPolicyListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicy item) { + ItemsNestedImpl(Integer index, V1NetworkPolicy item) { this.index = index; this.builder = new V1NetworkPolicyBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder(this); + this.builder = new V1NetworkPolicyBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyBuilder builder; - java.lang.Integer index; + V1NetworkPolicyBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicyListFluentImpl.this.setToItems(index, builder.build()); @@ -420,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1NetworkPolicyListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1NetworkPolicyListFluentImpl.this.withMetadata(builder.build()); 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 8dafdfff8c..439ad79d79 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 @@ -16,8 +16,7 @@ public class V1NetworkPolicyPeerBuilder extends V1NetworkPolicyPeerFluentImpl - implements VisitableBuilder< - V1NetworkPolicyPeer, io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder> { + implements VisitableBuilder { public V1NetworkPolicyPeerBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1NetworkPolicyPeerBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyPeer(), validationEnabled); } - public V1NetworkPolicyPeerBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent fluent) { + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent) { this(fluent, false); } public V1NetworkPolicyPeerBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyPeerFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicyPeer(), validationEnabled); } public V1NetworkPolicyPeerBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyPeer instance) { + V1NetworkPolicyPeerFluent fluent, V1NetworkPolicyPeer instance) { this(fluent, instance, false); } public V1NetworkPolicyPeerBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyPeer instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyPeerFluent fluent, + V1NetworkPolicyPeer instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withIpBlock(instance.getIpBlock()); @@ -57,14 +53,11 @@ public V1NetworkPolicyPeerBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicyPeerBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeer instance) { + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance) { this(instance, false); } - public V1NetworkPolicyPeerBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeer instance, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance, Boolean validationEnabled) { this.fluent = this; this.withIpBlock(instance.getIpBlock()); @@ -75,10 +68,10 @@ public V1NetworkPolicyPeerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyPeerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer build() { + public V1NetworkPolicyPeer build() { V1NetworkPolicyPeer buildable = new V1NetworkPolicyPeer(); buildable.setIpBlock(fluent.getIpBlock()); buildable.setNamespaceSelector(fluent.getNamespaceSelector()); 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 a9aa7dfee0..a2487d62ae 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 @@ -27,82 +27,73 @@ public interface V1NetworkPolicyPeerFluent withNewIpBlock(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - withNewIpBlockLike(io.kubernetes.client.openapi.models.V1IPBlock item); + public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlockLike(V1IPBlock item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - editIpBlock(); + public V1NetworkPolicyPeerFluent.IpBlockNested editIpBlock(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - editOrNewIpBlock(); + public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlock(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - editOrNewIpBlockLike(io.kubernetes.client.openapi.models.V1IPBlock item); + public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlockLike(V1IPBlock item); /** * This method has been deprecated, please use method buildNamespaceSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector(); + public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector); + public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public java.lang.Boolean hasNamespaceSelector(); + public Boolean hasNamespaceSelector(); public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - editNamespaceSelector(); + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - editOrNewNamespaceSelector(); + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item); /** * This method has been deprecated, please use method buildPodSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getPodSelector(); + @Deprecated + public V1LabelSelector getPodSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildPodSelector(); + public V1LabelSelector buildPodSelector(); - public A withPodSelector(io.kubernetes.client.openapi.models.V1LabelSelector podSelector); + public A withPodSelector(V1LabelSelector podSelector); - public java.lang.Boolean hasPodSelector(); + public Boolean hasPodSelector(); public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - editPodSelector(); + public V1NetworkPolicyPeerFluent.PodSelectorNested editPodSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - editOrNewPodSelector(); + public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelectorLike( + V1LabelSelector item); public interface IpBlockNested extends Nested, V1IPBlockFluent> { @@ -112,7 +103,7 @@ public interface IpBlockNested } public interface NamespaceSelectorNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1LabelSelectorFluent> { public N and(); @@ -120,8 +111,7 @@ public interface NamespaceSelectorNested } public interface PodSelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endPodSelector(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java index fab09ec2ee..d6e4f7939d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluentImpl.java @@ -21,8 +21,7 @@ public class V1NetworkPolicyPeerFluentImpl implements V1NetworkPolicyPeerFluent { public V1NetworkPolicyPeerFluentImpl() {} - public V1NetworkPolicyPeerFluentImpl( - io.kubernetes.client.openapi.models.V1NetworkPolicyPeer instance) { + public V1NetworkPolicyPeerFluentImpl(V1NetworkPolicyPeer instance) { this.withIpBlock(instance.getIpBlock()); this.withNamespaceSelector(instance.getNamespaceSelector()); @@ -44,15 +43,18 @@ public V1IPBlock getIpBlock() { return this.ipBlock != null ? this.ipBlock.build() : null; } - public io.kubernetes.client.openapi.models.V1IPBlock buildIpBlock() { + public V1IPBlock buildIpBlock() { return this.ipBlock != null ? this.ipBlock.build() : null; } - public A withIpBlock(io.kubernetes.client.openapi.models.V1IPBlock ipBlock) { + public A withIpBlock(V1IPBlock ipBlock) { _visitables.get("ipBlock").remove(this.ipBlock); if (ipBlock != null) { - this.ipBlock = new io.kubernetes.client.openapi.models.V1IPBlockBuilder(ipBlock); + this.ipBlock = new V1IPBlockBuilder(ipBlock); _visitables.get("ipBlock").add(this.ipBlock); + } else { + this.ipBlock = null; + _visitables.get("ipBlock").remove(this.ipBlock); } return (A) this; } @@ -65,26 +67,19 @@ public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlock() { return new V1NetworkPolicyPeerFluentImpl.IpBlockNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - withNewIpBlockLike(io.kubernetes.client.openapi.models.V1IPBlock item) { + public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlockLike(V1IPBlock item) { return new V1NetworkPolicyPeerFluentImpl.IpBlockNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - editIpBlock() { + public V1NetworkPolicyPeerFluent.IpBlockNested editIpBlock() { return withNewIpBlockLike(getIpBlock()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - editOrNewIpBlock() { - return withNewIpBlockLike( - getIpBlock() != null - ? getIpBlock() - : new io.kubernetes.client.openapi.models.V1IPBlockBuilder().build()); + public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlock() { + return withNewIpBlockLike(getIpBlock() != null ? getIpBlock() : new V1IPBlockBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested - editOrNewIpBlockLike(io.kubernetes.client.openapi.models.V1IPBlock item) { + public V1NetworkPolicyPeerFluent.IpBlockNested editOrNewIpBlockLike(V1IPBlock item) { return withNewIpBlockLike(getIpBlock() != null ? getIpBlock() : item); } @@ -93,27 +88,28 @@ public V1NetworkPolicyPeerFluent.IpBlockNested withNewIpBlock() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNamespaceSelector() { + @Deprecated + public V1LabelSelector getNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector() { + public V1LabelSelector buildNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector) { + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); if (namespaceSelector != null) { - this.namespaceSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(namespaceSelector); + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public java.lang.Boolean hasNamespaceSelector() { + public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } @@ -121,27 +117,24 @@ public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSele return new V1NetworkPolicyPeerFluentImpl.NamespaceSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluentImpl - .NamespaceSelectorNestedImpl(item); + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item) { + return new V1NetworkPolicyPeerFluentImpl.NamespaceSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - editNamespaceSelector() { + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - editOrNewNamespaceSelector() { + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1NetworkPolicyPeerFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item) { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() : item); } @@ -151,26 +144,28 @@ public V1NetworkPolicyPeerFluent.NamespaceSelectorNested withNewNamespaceSele * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getPodSelector() { + @Deprecated + public V1LabelSelector getPodSelector() { return this.podSelector != null ? this.podSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildPodSelector() { + public V1LabelSelector buildPodSelector() { return this.podSelector != null ? this.podSelector.build() : null; } - public A withPodSelector(io.kubernetes.client.openapi.models.V1LabelSelector podSelector) { + public A withPodSelector(V1LabelSelector podSelector) { _visitables.get("podSelector").remove(this.podSelector); if (podSelector != null) { - this.podSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(podSelector); + this.podSelector = new V1LabelSelectorBuilder(podSelector); _visitables.get("podSelector").add(this.podSelector); + } else { + this.podSelector = null; + _visitables.get("podSelector").remove(this.podSelector); } return (A) this; } - public java.lang.Boolean hasPodSelector() { + public Boolean hasPodSelector() { return this.podSelector != null; } @@ -178,27 +173,22 @@ public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelector() { return new V1NetworkPolicyPeerFluentImpl.PodSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluentImpl - .PodSelectorNestedImpl(item); + public V1NetworkPolicyPeerFluent.PodSelectorNested withNewPodSelectorLike( + V1LabelSelector item) { + return new V1NetworkPolicyPeerFluentImpl.PodSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - editPodSelector() { + public V1NetworkPolicyPeerFluent.PodSelectorNested editPodSelector() { return withNewPodSelectorLike(getPodSelector()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - editOrNewPodSelector() { + public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelector() { return withNewPodSelectorLike( - getPodSelector() != null - ? getPodSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getPodSelector() != null ? getPodSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested - editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1NetworkPolicyPeerFluent.PodSelectorNested editOrNewPodSelectorLike( + V1LabelSelector item) { return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector() : item); } @@ -239,17 +229,16 @@ public String toString() { } class IpBlockNestedImpl extends V1IPBlockFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.IpBlockNested, - Nested { + implements V1NetworkPolicyPeerFluent.IpBlockNested, Nested { IpBlockNestedImpl(V1IPBlock item) { this.builder = new V1IPBlockBuilder(this, item); } IpBlockNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1IPBlockBuilder(this); + this.builder = new V1IPBlockBuilder(this); } - io.kubernetes.client.openapi.models.V1IPBlockBuilder builder; + V1IPBlockBuilder builder; public N and() { return (N) V1NetworkPolicyPeerFluentImpl.this.withIpBlock(builder.build()); @@ -262,19 +251,16 @@ public N endIpBlock() { class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent - .NamespaceSelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1NetworkPolicyPeerFluent.NamespaceSelectorNested, Nested { NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } NamespaceSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1NetworkPolicyPeerFluentImpl.this.withNamespaceSelector(builder.build()); @@ -287,17 +273,16 @@ public N endNamespaceSelector() { class PodSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyPeerFluent.PodSelectorNested, - io.kubernetes.client.fluent.Nested { + implements V1NetworkPolicyPeerFluent.PodSelectorNested, Nested { PodSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } PodSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1NetworkPolicyPeerFluentImpl.this.withPodSelector(builder.build()); 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 f79f2aacfa..053c4f99b5 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 @@ -16,8 +16,7 @@ public class V1NetworkPolicyPortBuilder extends V1NetworkPolicyPortFluentImpl - implements VisitableBuilder< - V1NetworkPolicyPort, io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder> { + implements VisitableBuilder { public V1NetworkPolicyPortBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent) { } public V1NetworkPolicyPortBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPortFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyPortFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicyPort(), validationEnabled); } public V1NetworkPolicyPortBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPortFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyPort instance) { + V1NetworkPolicyPortFluent fluent, V1NetworkPolicyPort instance) { this(fluent, instance, false); } public V1NetworkPolicyPortBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPortFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyPort instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyPortFluent fluent, + V1NetworkPolicyPort instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withEndPort(instance.getEndPort()); @@ -56,14 +53,11 @@ public V1NetworkPolicyPortBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicyPortBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPort instance) { + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance) { this(instance, false); } - public V1NetworkPolicyPortBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyPort instance, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance, Boolean validationEnabled) { this.fluent = this; this.withEndPort(instance.getEndPort()); @@ -74,10 +68,10 @@ public V1NetworkPolicyPortBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyPortFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyPortFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicyPort build() { + public V1NetworkPolicyPort build() { V1NetworkPolicyPort buildable = new V1NetworkPolicyPort(); buildable.setEndPort(fluent.getEndPort()); buildable.setPort(fluent.getPort()); 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 78d374c401..5530eea58b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java @@ -20,23 +20,23 @@ public interface V1NetworkPolicyPortFluent { public Integer getEndPort(); - public A withEndPort(java.lang.Integer endPort); + public A withEndPort(Integer endPort); public Boolean hasEndPort(); public IntOrString getPort(); - public A withPort(io.kubernetes.client.custom.IntOrString port); + public A withPort(IntOrString port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); public A withNewPort(int value); public A withNewPort(String value); - public java.lang.String getProtocol(); + public String getProtocol(); - public A withProtocol(java.lang.String protocol); + public A withProtocol(String protocol); - public java.lang.Boolean hasProtocol(); + public Boolean hasProtocol(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java index feb1f9a660..758a5f8f66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluentImpl.java @@ -21,8 +21,7 @@ public class V1NetworkPolicyPortFluentImpl implements V1NetworkPolicyPortFluent { public V1NetworkPolicyPortFluentImpl() {} - public V1NetworkPolicyPortFluentImpl( - io.kubernetes.client.openapi.models.V1NetworkPolicyPort instance) { + public V1NetworkPolicyPortFluentImpl(V1NetworkPolicyPort instance) { this.withEndPort(instance.getEndPort()); this.withPort(instance.getPort()); @@ -34,11 +33,11 @@ public V1NetworkPolicyPortFluentImpl( private IntOrString port; private String protocol; - public java.lang.Integer getEndPort() { + public Integer getEndPort() { return this.endPort; } - public A withEndPort(java.lang.Integer endPort) { + public A withEndPort(Integer endPort) { this.endPort = endPort; return (A) this; } @@ -47,16 +46,16 @@ public Boolean hasEndPort() { return this.endPort != null; } - public io.kubernetes.client.custom.IntOrString getPort() { + public IntOrString getPort() { return this.port; } - public A withPort(io.kubernetes.client.custom.IntOrString port) { + public A withPort(IntOrString port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -64,20 +63,20 @@ public A withNewPort(int value) { return (A) withPort(new IntOrString(value)); } - public A withNewPort(java.lang.String value) { + public A withNewPort(String value) { return (A) withPort(new IntOrString(value)); } - public java.lang.String getProtocol() { + public String getProtocol() { return this.protocol; } - public A withProtocol(java.lang.String protocol) { + public A withProtocol(String protocol) { this.protocol = protocol; return (A) this; } - public java.lang.Boolean hasProtocol() { + public Boolean hasProtocol() { return this.protocol != null; } @@ -95,7 +94,7 @@ public int hashCode() { return java.util.Objects.hash(endPort, port, protocol, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (endPort != null) { 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 2eff6a74a8..14ccaa7c2a 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 @@ -16,8 +16,7 @@ public class V1NetworkPolicySpecBuilder extends V1NetworkPolicySpecFluentImpl - implements VisitableBuilder< - V1NetworkPolicySpec, io.kubernetes.client.openapi.models.V1NetworkPolicySpecBuilder> { + implements VisitableBuilder { public V1NetworkPolicySpecBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent) { } public V1NetworkPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicySpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicySpec(), validationEnabled); } public V1NetworkPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance) { + V1NetworkPolicySpecFluent fluent, V1NetworkPolicySpec instance) { this(fluent, instance, false); } public V1NetworkPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicySpecFluent fluent, + V1NetworkPolicySpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withEgress(instance.getEgress()); @@ -58,14 +55,11 @@ public V1NetworkPolicySpecBuilder( this.validationEnabled = validationEnabled; } - public V1NetworkPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance) { + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance) { this(instance, false); } - public V1NetworkPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance, Boolean validationEnabled) { this.fluent = this; this.withEgress(instance.getEgress()); @@ -78,10 +72,10 @@ public V1NetworkPolicySpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicySpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicySpec build() { + public V1NetworkPolicySpec build() { V1NetworkPolicySpec buildable = new V1NetworkPolicySpec(); buildable.setEgress(fluent.getEgress()); buildable.setIngress(fluent.getIngress()); 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 3a66a2ef14..85ed813cd2 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 @@ -23,18 +23,15 @@ public interface V1NetworkPolicySpecFluent { public A addToEgress(Integer index, V1NetworkPolicyEgressRule item); - public A setToEgress( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item); + public A setToEgress(Integer index, V1NetworkPolicyEgressRule item); public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items); - public A addAllToEgress( - Collection items); + public A addAllToEgress(Collection items); public A removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items); - public A removeAllFromEgress( - java.util.Collection items); + public A removeAllFromEgress(Collection items); public A removeMatchingFromEgress(Predicate predicate); @@ -44,199 +41,157 @@ public A removeAllFromEgress( * @return The buildable object. */ @Deprecated - public List getEgress(); + public List getEgress(); - public java.util.List - buildEgress(); + public List buildEgress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildEgress( - java.lang.Integer index); + public V1NetworkPolicyEgressRule buildEgress(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildFirstEgress(); + public V1NetworkPolicyEgressRule buildFirstEgress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildLastEgress(); + public V1NetworkPolicyEgressRule buildLastEgress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildMatchingEgress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> - predicate); + public V1NetworkPolicyEgressRule buildMatchingEgress( + Predicate predicate); - public Boolean hasMatchingEgress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> - predicate); + public Boolean hasMatchingEgress(Predicate predicate); - public A withEgress( - java.util.List egress); + public A withEgress(List egress); public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress); - public java.lang.Boolean hasEgress(); + public Boolean hasEgress(); public V1NetworkPolicySpecFluent.EgressNested addNewEgress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - addNewEgressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item); + public V1NetworkPolicySpecFluent.EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - setNewEgressLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item); + public V1NetworkPolicySpecFluent.EgressNested setNewEgressLike( + Integer index, V1NetworkPolicyEgressRule item); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested editEgress( - java.lang.Integer index); + public V1NetworkPolicySpecFluent.EgressNested editEgress(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - editFirstEgress(); + public V1NetworkPolicySpecFluent.EgressNested editFirstEgress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - editLastEgress(); + public V1NetworkPolicySpecFluent.EgressNested editLastEgress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - editMatchingEgress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> - predicate); + public V1NetworkPolicySpecFluent.EgressNested editMatchingEgress( + Predicate predicate); - public A addToIngress(java.lang.Integer index, V1NetworkPolicyIngressRule item); + public A addToIngress(Integer index, V1NetworkPolicyIngressRule item); - public A setToIngress( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item); + public A setToIngress(Integer index, V1NetworkPolicyIngressRule item); public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items); - public A addAllToIngress( - java.util.Collection items); + public A addAllToIngress(Collection items); public A removeFromIngress( io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items); - public A removeAllFromIngress( - java.util.Collection items); + public A removeAllFromIngress(Collection items); - public A removeMatchingFromIngress( - java.util.function.Predicate predicate); + public A removeMatchingFromIngress(Predicate predicate); /** * This method has been deprecated, please use method buildIngress instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getIngress(); + @Deprecated + public List getIngress(); - public java.util.List - buildIngress(); + public List buildIngress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildIngress( - java.lang.Integer index); + public V1NetworkPolicyIngressRule buildIngress(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildFirstIngress(); + public V1NetworkPolicyIngressRule buildFirstIngress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildLastIngress(); + public V1NetworkPolicyIngressRule buildLastIngress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate); + public V1NetworkPolicyIngressRule buildMatchingIngress( + Predicate predicate); - public java.lang.Boolean hasMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate); + public Boolean hasMatchingIngress(Predicate predicate); - public A withIngress( - java.util.List ingress); + public A withIngress(List ingress); public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress); - public java.lang.Boolean hasIngress(); + public Boolean hasIngress(); public V1NetworkPolicySpecFluent.IngressNested addNewIngress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - addNewIngressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item); + public V1NetworkPolicySpecFluent.IngressNested addNewIngressLike( + V1NetworkPolicyIngressRule item); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - setNewIngressLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item); + public V1NetworkPolicySpecFluent.IngressNested setNewIngressLike( + Integer index, V1NetworkPolicyIngressRule item); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested editIngress( - java.lang.Integer index); + public V1NetworkPolicySpecFluent.IngressNested editIngress(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - editFirstIngress(); + public V1NetworkPolicySpecFluent.IngressNested editFirstIngress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - editLastIngress(); + public V1NetworkPolicySpecFluent.IngressNested editLastIngress(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - editMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate); + public V1NetworkPolicySpecFluent.IngressNested editMatchingIngress( + Predicate predicate); /** * This method has been deprecated, please use method buildPodSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getPodSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildPodSelector(); + public V1LabelSelector buildPodSelector(); - public A withPodSelector(io.kubernetes.client.openapi.models.V1LabelSelector podSelector); + public A withPodSelector(V1LabelSelector podSelector); - public java.lang.Boolean hasPodSelector(); + public Boolean hasPodSelector(); public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - editPodSelector(); + public V1NetworkPolicySpecFluent.PodSelectorNested editPodSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - editOrNewPodSelector(); + public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelector(); - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelectorLike( + V1LabelSelector item); - public A addToPolicyTypes(java.lang.Integer index, String item); + public A addToPolicyTypes(Integer index, String item); - public A setToPolicyTypes(java.lang.Integer index, java.lang.String item); + public A setToPolicyTypes(Integer index, String item); public A addToPolicyTypes(java.lang.String... items); - public A addAllToPolicyTypes(java.util.Collection items); + public A addAllToPolicyTypes(Collection items); public A removeFromPolicyTypes(java.lang.String... items); - public A removeAllFromPolicyTypes(java.util.Collection items); + public A removeAllFromPolicyTypes(Collection items); - public java.util.List getPolicyTypes(); + public List getPolicyTypes(); - public java.lang.String getPolicyType(java.lang.Integer index); + public String getPolicyType(Integer index); - public java.lang.String getFirstPolicyType(); + public String getFirstPolicyType(); - public java.lang.String getLastPolicyType(); + public String getLastPolicyType(); - public java.lang.String getMatchingPolicyType( - java.util.function.Predicate predicate); + public String getMatchingPolicyType(Predicate predicate); - public java.lang.Boolean hasMatchingPolicyType( - java.util.function.Predicate predicate); + public Boolean hasMatchingPolicyType(Predicate predicate); - public A withPolicyTypes(java.util.List policyTypes); + public A withPolicyTypes(List policyTypes); public A withPolicyTypes(java.lang.String... policyTypes); - public java.lang.Boolean hasPolicyTypes(); + public Boolean hasPolicyTypes(); public interface EgressNested extends Nested, @@ -247,7 +202,7 @@ public interface EgressNested } public interface IngressNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1NetworkPolicyIngressRuleFluent> { public N and(); @@ -255,8 +210,7 @@ public interface IngressNested } public interface PodSelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endPodSelector(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java index 57aed140b2..78a0d2e927 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluentImpl.java @@ -26,8 +26,7 @@ public class V1NetworkPolicySpecFluentImpl implements V1NetworkPolicySpecFluent { public V1NetworkPolicySpecFluentImpl() {} - public V1NetworkPolicySpecFluentImpl( - io.kubernetes.client.openapi.models.V1NetworkPolicySpec instance) { + public V1NetworkPolicySpecFluentImpl(V1NetworkPolicySpec instance) { this.withEgress(instance.getEgress()); this.withIngress(instance.getIngress()); @@ -38,31 +37,25 @@ public V1NetworkPolicySpecFluentImpl( } private ArrayList egress; - private java.util.ArrayList ingress; + private ArrayList ingress; private V1LabelSelectorBuilder podSelector; private List policyTypes; - public A addToEgress( - Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) { + public A addToEgress(Integer index, V1NetworkPolicyEgressRule item) { if (this.egress == null) { - this.egress = new java.util.ArrayList(); + this.egress = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(item); + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); _visitables.get("egress").add(index >= 0 ? index : _visitables.get("egress").size(), builder); this.egress.add(index >= 0 ? index : egress.size(), builder); return (A) this; } - public A setToEgress( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) { + public A setToEgress(Integer index, V1NetworkPolicyEgressRule item) { if (this.egress == null) { - this.egress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder>(); + this.egress = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(item); + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); if (index < 0 || index >= _visitables.get("egress").size()) { _visitables.get("egress").add(builder); } else { @@ -78,29 +71,22 @@ public A setToEgress( public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { if (this.egress == null) { - this.egress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder>(); + this.egress = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(item); + 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) { + public A addAllToEgress(Collection items) { if (this.egress == null) { - this.egress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder>(); + this.egress = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(item); + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); _visitables.get("egress").add(builder); this.egress.add(builder); } @@ -109,9 +95,8 @@ public A addAllToEgress( public A removeFromEgress( io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(item); + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); _visitables.get("egress").remove(builder); if (this.egress != null) { this.egress.remove(builder); @@ -120,11 +105,9 @@ public A removeFromEgress( return (A) this; } - public A removeAllFromEgress( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(item); + public A removeAllFromEgress(Collection items) { + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); _visitables.get("egress").remove(builder); if (this.egress != null) { this.egress.remove(builder); @@ -133,14 +116,12 @@ public A removeAllFromEgress( return (A) this; } - public A removeMatchingFromEgress( - Predicate predicate) { + public A removeMatchingFromEgress(Predicate predicate) { if (egress == null) return (A) this; - final Iterator each = - egress.iterator(); + final Iterator each = egress.iterator(); final List visitables = _visitables.get("egress"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder = each.next(); + V1NetworkPolicyEgressRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -155,33 +136,29 @@ public A removeMatchingFromEgress( * @return The buildable object. */ @Deprecated - public java.util.List getEgress() { + public List getEgress() { return egress != null ? build(egress) : null; } - public java.util.List - buildEgress() { + public List buildEgress() { return egress != null ? build(egress) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildEgress( - java.lang.Integer index) { + public V1NetworkPolicyEgressRule buildEgress(Integer index) { return this.egress.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildFirstEgress() { + public V1NetworkPolicyEgressRule buildFirstEgress() { return this.egress.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildLastEgress() { + public V1NetworkPolicyEgressRule buildLastEgress() { return this.egress.get(egress.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildMatchingEgress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder item : egress) { + public V1NetworkPolicyEgressRule buildMatchingEgress( + Predicate predicate) { + for (V1NetworkPolicyEgressRuleBuilder item : egress) { if (predicate.test(item)) { return item.build(); } @@ -189,11 +166,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule buildMatchi return null; } - public Boolean hasMatchingEgress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder item : egress) { + public Boolean hasMatchingEgress(Predicate predicate) { + for (V1NetworkPolicyEgressRuleBuilder item : egress) { if (predicate.test(item)) { return true; } @@ -201,14 +175,13 @@ public Boolean hasMatchingEgress( return false; } - public A withEgress( - java.util.List egress) { + public A withEgress(List egress) { if (this.egress != null) { _visitables.get("egress").removeAll(this.egress); } if (egress != null) { - this.egress = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item : egress) { + this.egress = new ArrayList(); + for (V1NetworkPolicyEgressRule item : egress) { this.addToEgress(item); } } else { @@ -222,14 +195,14 @@ public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRul this.egress.clear(); } if (egress != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item : egress) { + for (V1NetworkPolicyEgressRule item : egress) { this.addToEgress(item); } } return (A) this; } - public java.lang.Boolean hasEgress() { + public Boolean hasEgress() { return egress != null && !egress.isEmpty(); } @@ -237,45 +210,36 @@ public V1NetworkPolicySpecFluent.EgressNested addNewEgress() { return new V1NetworkPolicySpecFluentImpl.EgressNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - addNewEgressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) { + public V1NetworkPolicySpecFluent.EgressNested addNewEgressLike( + V1NetworkPolicyEgressRule item) { return new V1NetworkPolicySpecFluentImpl.EgressNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - setNewEgressLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluentImpl.EgressNestedImpl( - index, item); + public V1NetworkPolicySpecFluent.EgressNested setNewEgressLike( + Integer index, V1NetworkPolicyEgressRule item) { + return new V1NetworkPolicySpecFluentImpl.EgressNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested editEgress( - java.lang.Integer index) { + public V1NetworkPolicySpecFluent.EgressNested editEgress(Integer index) { if (egress.size() <= index) throw new RuntimeException("Can't edit egress. Index exceeds size."); return setNewEgressLike(index, buildEgress(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - editFirstEgress() { + public V1NetworkPolicySpecFluent.EgressNested editFirstEgress() { if (egress.size() == 0) throw new RuntimeException("Can't edit first egress. The list is empty."); return setNewEgressLike(0, buildEgress(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - editLastEgress() { + public V1NetworkPolicySpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested - editMatchingEgress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder> - predicate) { + public V1NetworkPolicySpecFluent.EgressNested editMatchingEgress( + Predicate predicate) { int index = -1; for (int i = 0; i < egress.size(); i++) { if (predicate.test(egress.get(i))) { @@ -287,29 +251,21 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNeste return setNewEgressLike(index, buildEgress(index)); } - public A addToIngress( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) { + public A addToIngress(Integer index, V1NetworkPolicyIngressRule item) { if (this.ingress == null) { - this.ingress = new java.util.ArrayList(); + this.ingress = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(item); + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); _visitables.get("ingress").add(index >= 0 ? index : _visitables.get("ingress").size(), builder); this.ingress.add(index >= 0 ? index : ingress.size(), builder); return (A) this; } - public A setToIngress( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) { + public A setToIngress(Integer index, V1NetworkPolicyIngressRule item) { if (this.ingress == null) { - this.ingress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder>(); + this.ingress = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(item); + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); if (index < 0 || index >= _visitables.get("ingress").size()) { _visitables.get("ingress").add(builder); } else { @@ -325,29 +281,22 @@ public A setToIngress( public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { if (this.ingress == null) { - this.ingress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder>(); + this.ingress = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(item); + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); _visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; } - public A addAllToIngress( - java.util.Collection items) { + public A addAllToIngress(Collection items) { if (this.ingress == null) { - this.ingress = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder>(); + this.ingress = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(item); + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); _visitables.get("ingress").add(builder); this.ingress.add(builder); } @@ -356,9 +305,8 @@ public A addAllToIngress( public A removeFromIngress( io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(item); + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); _visitables.get("ingress").remove(builder); if (this.ingress != null) { this.ingress.remove(builder); @@ -367,11 +315,9 @@ public A removeFromIngress( return (A) this; } - public A removeAllFromIngress( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item : items) { - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(item); + public A removeAllFromIngress(Collection items) { + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); _visitables.get("ingress").remove(builder); if (this.ingress != null) { this.ingress.remove(builder); @@ -380,16 +326,12 @@ public A removeAllFromIngress( return (A) this; } - public A removeMatchingFromIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate) { + public A removeMatchingFromIngress(Predicate predicate) { if (ingress == null) return (A) this; - final Iterator each = - ingress.iterator(); + final Iterator each = ingress.iterator(); final List visitables = _visitables.get("ingress"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder = each.next(); + V1NetworkPolicyIngressRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -403,35 +345,30 @@ public A removeMatchingFromIngress( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getIngress() { + @Deprecated + public List getIngress() { return ingress != null ? build(ingress) : null; } - public java.util.List - buildIngress() { + public List buildIngress() { return ingress != null ? build(ingress) : null; } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildIngress( - java.lang.Integer index) { + public V1NetworkPolicyIngressRule buildIngress(Integer index) { return this.ingress.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildFirstIngress() { + public V1NetworkPolicyIngressRule buildFirstIngress() { return this.ingress.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildLastIngress() { + public V1NetworkPolicyIngressRule buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder item : ingress) { + public V1NetworkPolicyIngressRule buildMatchingIngress( + Predicate predicate) { + for (V1NetworkPolicyIngressRuleBuilder item : ingress) { if (predicate.test(item)) { return item.build(); } @@ -439,11 +376,8 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule buildMatch return null; } - public java.lang.Boolean hasMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder item : ingress) { + public Boolean hasMatchingIngress(Predicate predicate) { + for (V1NetworkPolicyIngressRuleBuilder item : ingress) { if (predicate.test(item)) { return true; } @@ -451,14 +385,13 @@ public java.lang.Boolean hasMatchingIngress( return false; } - public A withIngress( - java.util.List ingress) { + public A withIngress(List ingress) { if (this.ingress != null) { _visitables.get("ingress").removeAll(this.ingress); } if (ingress != null) { - this.ingress = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item : ingress) { + this.ingress = new ArrayList(); + for (V1NetworkPolicyIngressRule item : ingress) { this.addToIngress(item); } } else { @@ -472,14 +405,14 @@ public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressR this.ingress.clear(); } if (ingress != null) { - for (io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item : ingress) { + for (V1NetworkPolicyIngressRule item : ingress) { this.addToIngress(item); } } return (A) this; } - public java.lang.Boolean hasIngress() { + public Boolean hasIngress() { return ingress != null && !ingress.isEmpty(); } @@ -487,46 +420,36 @@ public V1NetworkPolicySpecFluent.IngressNested addNewIngress() { return new V1NetworkPolicySpecFluentImpl.IngressNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - addNewIngressLike(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluentImpl.IngressNestedImpl( - -1, item); + public V1NetworkPolicySpecFluent.IngressNested addNewIngressLike( + V1NetworkPolicyIngressRule item) { + return new V1NetworkPolicySpecFluentImpl.IngressNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - setNewIngressLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluentImpl.IngressNestedImpl( - index, item); + public V1NetworkPolicySpecFluent.IngressNested setNewIngressLike( + Integer index, V1NetworkPolicyIngressRule item) { + return new V1NetworkPolicySpecFluentImpl.IngressNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested editIngress( - java.lang.Integer index) { + public V1NetworkPolicySpecFluent.IngressNested editIngress(Integer index) { if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); return setNewIngressLike(index, buildIngress(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - editFirstIngress() { + public V1NetworkPolicySpecFluent.IngressNested editFirstIngress() { if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); return setNewIngressLike(0, buildIngress(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - editLastIngress() { + public V1NetworkPolicySpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested - editMatchingIngress( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder> - predicate) { + public V1NetworkPolicySpecFluent.IngressNested editMatchingIngress( + Predicate predicate) { int index = -1; for (int i = 0; i < ingress.size(); i++) { if (predicate.test(ingress.get(i))) { @@ -543,25 +466,28 @@ public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNest * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getPodSelector() { + @Deprecated + public V1LabelSelector getPodSelector() { return this.podSelector != null ? this.podSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildPodSelector() { + public V1LabelSelector buildPodSelector() { return this.podSelector != null ? this.podSelector.build() : null; } - public A withPodSelector(io.kubernetes.client.openapi.models.V1LabelSelector podSelector) { + public A withPodSelector(V1LabelSelector podSelector) { _visitables.get("podSelector").remove(this.podSelector); if (podSelector != null) { this.podSelector = new V1LabelSelectorBuilder(podSelector); _visitables.get("podSelector").add(this.podSelector); + } else { + this.podSelector = null; + _visitables.get("podSelector").remove(this.podSelector); } return (A) this; } - public java.lang.Boolean hasPodSelector() { + public Boolean hasPodSelector() { return this.podSelector != null; } @@ -569,41 +495,36 @@ public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelector() { return new V1NetworkPolicySpecFluentImpl.PodSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - withNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluentImpl - .PodSelectorNestedImpl(item); + public V1NetworkPolicySpecFluent.PodSelectorNested withNewPodSelectorLike( + V1LabelSelector item) { + return new V1NetworkPolicySpecFluentImpl.PodSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - editPodSelector() { + public V1NetworkPolicySpecFluent.PodSelectorNested editPodSelector() { return withNewPodSelectorLike(getPodSelector()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - editOrNewPodSelector() { + public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelector() { return withNewPodSelectorLike( - getPodSelector() != null - ? getPodSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getPodSelector() != null ? getPodSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested - editOrNewPodSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1NetworkPolicySpecFluent.PodSelectorNested editOrNewPodSelectorLike( + V1LabelSelector item) { return withNewPodSelectorLike(getPodSelector() != null ? getPodSelector() : item); } - public A addToPolicyTypes(java.lang.Integer index, java.lang.String item) { + public A addToPolicyTypes(Integer index, String item) { if (this.policyTypes == null) { - this.policyTypes = new java.util.ArrayList(); + this.policyTypes = new ArrayList(); } this.policyTypes.add(index, item); return (A) this; } - public A setToPolicyTypes(java.lang.Integer index, java.lang.String item) { + public A setToPolicyTypes(Integer index, String item) { if (this.policyTypes == null) { - this.policyTypes = new java.util.ArrayList(); + this.policyTypes = new ArrayList(); } this.policyTypes.set(index, item); return (A) this; @@ -611,26 +532,26 @@ public A setToPolicyTypes(java.lang.Integer index, java.lang.String item) { public A addToPolicyTypes(java.lang.String... items) { if (this.policyTypes == null) { - this.policyTypes = new java.util.ArrayList(); + this.policyTypes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.policyTypes.add(item); } return (A) this; } - public A addAllToPolicyTypes(java.util.Collection items) { + public A addAllToPolicyTypes(Collection items) { if (this.policyTypes == null) { - this.policyTypes = new java.util.ArrayList(); + this.policyTypes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.policyTypes.add(item); } return (A) this; } public A removeFromPolicyTypes(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.policyTypes != null) { this.policyTypes.remove(item); } @@ -638,8 +559,8 @@ public A removeFromPolicyTypes(java.lang.String... items) { return (A) this; } - public A removeAllFromPolicyTypes(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromPolicyTypes(Collection items) { + for (String item : items) { if (this.policyTypes != null) { this.policyTypes.remove(item); } @@ -647,25 +568,24 @@ public A removeAllFromPolicyTypes(java.util.Collection items) return (A) this; } - public java.util.List getPolicyTypes() { + public List getPolicyTypes() { return this.policyTypes; } - public java.lang.String getPolicyType(java.lang.Integer index) { + public String getPolicyType(Integer index) { return this.policyTypes.get(index); } - public java.lang.String getFirstPolicyType() { + public String getFirstPolicyType() { return this.policyTypes.get(0); } - public java.lang.String getLastPolicyType() { + public String getLastPolicyType() { return this.policyTypes.get(policyTypes.size() - 1); } - public java.lang.String getMatchingPolicyType( - java.util.function.Predicate predicate) { - for (java.lang.String item : policyTypes) { + public String getMatchingPolicyType(Predicate predicate) { + for (String item : policyTypes) { if (predicate.test(item)) { return item; } @@ -673,9 +593,8 @@ public java.lang.String getMatchingPolicyType( return null; } - public java.lang.Boolean hasMatchingPolicyType( - java.util.function.Predicate predicate) { - for (java.lang.String item : policyTypes) { + public Boolean hasMatchingPolicyType(Predicate predicate) { + for (String item : policyTypes) { if (predicate.test(item)) { return true; } @@ -683,10 +602,10 @@ public java.lang.Boolean hasMatchingPolicyType( return false; } - public A withPolicyTypes(java.util.List policyTypes) { + public A withPolicyTypes(List policyTypes) { if (policyTypes != null) { - this.policyTypes = new java.util.ArrayList(); - for (java.lang.String item : policyTypes) { + this.policyTypes = new ArrayList(); + for (String item : policyTypes) { this.addToPolicyTypes(item); } } else { @@ -700,14 +619,14 @@ public A withPolicyTypes(java.lang.String... policyTypes) { this.policyTypes.clear(); } if (policyTypes != null) { - for (java.lang.String item : policyTypes) { + for (String item : policyTypes) { this.addToPolicyTypes(item); } } return (A) this; } - public java.lang.Boolean hasPolicyTypes() { + public Boolean hasPolicyTypes() { return policyTypes != null && !policyTypes.isEmpty(); } @@ -728,7 +647,7 @@ public int hashCode() { return java.util.Objects.hash(egress, ingress, podSelector, policyTypes, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (egress != null && !egress.isEmpty()) { @@ -753,20 +672,19 @@ public java.lang.String toString() { class EgressNestedImpl extends V1NetworkPolicyEgressRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.EgressNested, - Nested { - EgressNestedImpl(java.lang.Integer index, V1NetworkPolicyEgressRule item) { + implements V1NetworkPolicySpecFluent.EgressNested, Nested { + EgressNestedImpl(Integer index, V1NetworkPolicyEgressRule item) { this.index = index; this.builder = new V1NetworkPolicyEgressRuleBuilder(this, item); } EgressNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder(this); + this.builder = new V1NetworkPolicyEgressRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleBuilder builder; - java.lang.Integer index; + V1NetworkPolicyEgressRuleBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicySpecFluentImpl.this.setToEgress(index, builder.build()); @@ -779,21 +697,19 @@ public N endEgress() { class IngressNestedImpl extends V1NetworkPolicyIngressRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.IngressNested, - io.kubernetes.client.fluent.Nested { - IngressNestedImpl(java.lang.Integer index, V1NetworkPolicyIngressRule item) { + implements V1NetworkPolicySpecFluent.IngressNested, Nested { + IngressNestedImpl(Integer index, V1NetworkPolicyIngressRule item) { this.index = index; this.builder = new V1NetworkPolicyIngressRuleBuilder(this, item); } IngressNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder(this); + this.builder = new V1NetworkPolicyIngressRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRuleBuilder builder; - java.lang.Integer index; + V1NetworkPolicyIngressRuleBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicySpecFluentImpl.this.setToIngress(index, builder.build()); @@ -806,17 +722,16 @@ public N endIngress() { class PodSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicySpecFluent.PodSelectorNested, - io.kubernetes.client.fluent.Nested { + implements V1NetworkPolicySpecFluent.PodSelectorNested, Nested { PodSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } PodSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1NetworkPolicySpecFluentImpl.this.withPodSelector(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java index ed55c4c50e..64c8a3168e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusBuilder.java @@ -16,8 +16,7 @@ public class V1NetworkPolicyStatusBuilder extends V1NetworkPolicyStatusFluentImpl - implements VisitableBuilder< - V1NetworkPolicyStatus, io.kubernetes.client.openapi.models.V1NetworkPolicyStatusBuilder> { + implements VisitableBuilder { public V1NetworkPolicyStatusBuilder() { this(false); } @@ -26,51 +25,45 @@ public V1NetworkPolicyStatusBuilder(Boolean validationEnabled) { this(new V1NetworkPolicyStatus(), validationEnabled); } - public V1NetworkPolicyStatusBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent fluent) { + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatusFluent fluent) { this(fluent, false); } public V1NetworkPolicyStatusBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1NetworkPolicyStatus(), validationEnabled); } public V1NetworkPolicyStatusBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyStatus instance) { + V1NetworkPolicyStatusFluent fluent, V1NetworkPolicyStatus instance) { this(fluent, instance, false); } public V1NetworkPolicyStatusBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NetworkPolicyStatus instance, - java.lang.Boolean validationEnabled) { + V1NetworkPolicyStatusFluent fluent, + V1NetworkPolicyStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - public V1NetworkPolicyStatusBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatus instance) { + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatus instance) { this(instance, false); } - public V1NetworkPolicyStatusBuilder( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatus instance, - java.lang.Boolean validationEnabled) { + public V1NetworkPolicyStatusBuilder(V1NetworkPolicyStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1NetworkPolicyStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatus build() { + public V1NetworkPolicyStatus build() { V1NetworkPolicyStatus buildable = new V1NetworkPolicyStatus(); buildable.setConditions(fluent.getConditions()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java index 07310c7a27..3a162ea82b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluent.java @@ -23,17 +23,15 @@ public interface V1NetworkPolicyStatusFluent { public A addToConditions(Integer index, V1Condition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); + public A setToConditions(Integer index, V1Condition item); public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A addAllToConditions(Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -43,53 +41,41 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index); + public V1Condition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition(); + public V1Condition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition(); + public V1Condition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1Condition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1NetworkPolicyStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item); + public V1NetworkPolicyStatusFluent.ConditionsNested addNewConditionLike(V1Condition item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); + public V1NetworkPolicyStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1Condition item); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1NetworkPolicyStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editFirstCondition(); + public V1NetworkPolicyStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editLastCondition(); + public V1NetworkPolicyStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate); + public V1NetworkPolicyStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, V1ConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java index daa1b2691b..a3c2a7690d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1NetworkPolicyStatusFluentImpl implements V1NetworkPolicyStatusFluent { public V1NetworkPolicyStatusFluentImpl() {} - public V1NetworkPolicyStatusFluentImpl( - io.kubernetes.client.openapi.models.V1NetworkPolicyStatus instance) { + public V1NetworkPolicyStatusFluentImpl(V1NetworkPolicyStatus instance) { this.withConditions(instance.getConditions()); } @@ -35,11 +34,9 @@ public V1NetworkPolicyStatusFluentImpl( public A addToConditions(Integer index, V1Condition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -47,14 +44,11 @@ public A addToConditions(Integer index, V1Condition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { + public A setToConditions(Integer index, V1Condition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -70,26 +64,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -97,9 +87,8 @@ public A addAllToConditions(Collection items) { - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -121,14 +108,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = each.next(); + V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -143,30 +128,28 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index) { + public V1Condition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition() { + public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition() { + public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -174,10 +157,8 @@ public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -185,14 +166,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { this.addToConditions(item); } } else { @@ -206,14 +186,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { + for (V1Condition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -221,43 +201,35 @@ public V1NetworkPolicyStatusFluent.ConditionsNested addNewCondition() { return new V1NetworkPolicyStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item) { + public V1NetworkPolicyStatusFluent.ConditionsNested addNewConditionLike(V1Condition item) { return new V1NetworkPolicyStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { - return new io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1NetworkPolicyStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1Condition item) { + return new V1NetworkPolicyStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1NetworkPolicyStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editFirstCondition() { + public V1NetworkPolicyStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editLastCondition() { + public V1NetworkPolicyStatusFluent.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 io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate) { + public V1NetworkPolicyStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -295,21 +267,19 @@ public String toString() { class ConditionsNestedImpl extends V1ConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1NetworkPolicyStatusFluent.ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1Condition item) { + implements V1NetworkPolicyStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ConditionBuilder(this); + this.builder = new V1ConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder; - java.lang.Integer index; + V1ConditionBuilder builder; + Integer index; public N and() { return (N) V1NetworkPolicyStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java index f7fed57100..38a7700dfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeAddressBuilder extends V1NodeAddressFluentImpl - implements VisitableBuilder< - V1NodeAddress, io.kubernetes.client.openapi.models.V1NodeAddressBuilder> { + implements VisitableBuilder { public V1NodeAddressBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1NodeAddressBuilder(V1NodeAddressFluent fluent) { this(fluent, false); } - public V1NodeAddressBuilder( - io.kubernetes.client.openapi.models.V1NodeAddressFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeAddressBuilder(V1NodeAddressFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeAddress(), validationEnabled); } - public V1NodeAddressBuilder( - io.kubernetes.client.openapi.models.V1NodeAddressFluent fluent, - io.kubernetes.client.openapi.models.V1NodeAddress instance) { + public V1NodeAddressBuilder(V1NodeAddressFluent fluent, V1NodeAddress instance) { this(fluent, instance, false); } public V1NodeAddressBuilder( - io.kubernetes.client.openapi.models.V1NodeAddressFluent fluent, - io.kubernetes.client.openapi.models.V1NodeAddress instance, - java.lang.Boolean validationEnabled) { + V1NodeAddressFluent fluent, V1NodeAddress instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAddress(instance.getAddress()); @@ -53,13 +46,11 @@ public V1NodeAddressBuilder( this.validationEnabled = validationEnabled; } - public V1NodeAddressBuilder(io.kubernetes.client.openapi.models.V1NodeAddress instance) { + public V1NodeAddressBuilder(V1NodeAddress instance) { this(instance, false); } - public V1NodeAddressBuilder( - io.kubernetes.client.openapi.models.V1NodeAddress instance, - java.lang.Boolean validationEnabled) { + public V1NodeAddressBuilder(V1NodeAddress instance, Boolean validationEnabled) { this.fluent = this; this.withAddress(instance.getAddress()); @@ -68,10 +59,10 @@ public V1NodeAddressBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeAddressFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeAddressFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeAddress build() { + public V1NodeAddress build() { V1NodeAddress buildable = new V1NodeAddress(); buildable.setAddress(fluent.getAddress()); buildable.setType(fluent.getType()); 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 ee3b36e513..9185382148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java @@ -18,13 +18,13 @@ public interface V1NodeAddressFluent> extends Fluent { public String getAddress(); - public A withAddress(java.lang.String address); + public A withAddress(String address); public Boolean hasAddress(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java index 6d5ca191b1..eb7c703dde 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluentImpl.java @@ -20,20 +20,20 @@ public class V1NodeAddressFluentImpl> extends B implements V1NodeAddressFluent { public V1NodeAddressFluentImpl() {} - public V1NodeAddressFluentImpl(io.kubernetes.client.openapi.models.V1NodeAddress instance) { + public V1NodeAddressFluentImpl(V1NodeAddress instance) { this.withAddress(instance.getAddress()); this.withType(instance.getType()); } private String address; - private java.lang.String type; + private String type; - public java.lang.String getAddress() { + public String getAddress() { return this.address; } - public A withAddress(java.lang.String address) { + public A withAddress(String address) { this.address = address; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasAddress() { return this.address != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(address, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (address != null) { 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 690a342545..70fe210388 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeAffinityBuilder extends V1NodeAffinityFluentImpl - implements VisitableBuilder< - V1NodeAffinity, io.kubernetes.client.openapi.models.V1NodeAffinityBuilder> { + implements VisitableBuilder { public V1NodeAffinityBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1NodeAffinityBuilder(Boolean validationEnabled) { this(new V1NodeAffinity(), validationEnabled); } - public V1NodeAffinityBuilder(io.kubernetes.client.openapi.models.V1NodeAffinityFluent fluent) { + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent) { this(fluent, false); } - public V1NodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1NodeAffinityFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeAffinity(), validationEnabled); } - public V1NodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1NodeAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1NodeAffinity instance) { + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent, V1NodeAffinity instance) { this(fluent, instance, false); } public V1NodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1NodeAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1NodeAffinity instance, - java.lang.Boolean validationEnabled) { + V1NodeAffinityFluent fluent, V1NodeAffinity instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -55,13 +48,11 @@ public V1NodeAffinityBuilder( this.validationEnabled = validationEnabled; } - public V1NodeAffinityBuilder(io.kubernetes.client.openapi.models.V1NodeAffinity instance) { + public V1NodeAffinityBuilder(V1NodeAffinity instance) { this(instance, false); } - public V1NodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1NodeAffinity instance, - java.lang.Boolean validationEnabled) { + public V1NodeAffinityBuilder(V1NodeAffinity instance, Boolean validationEnabled) { this.fluent = this; this.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -72,10 +63,10 @@ public V1NodeAffinityBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeAffinityFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeAffinityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeAffinity build() { + public V1NodeAffinity build() { V1NodeAffinity buildable = new V1NodeAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution( fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); 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 348e152d12..8bad137fb3 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 @@ -24,19 +24,19 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( Integer index, V1PreferredSchedulingTerm item); public A setToPreferredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item); + Integer index, V1PreferredSchedulingTerm item); public A addToPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items); public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); + Collection items); public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items); public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( Predicate predicate); @@ -48,80 +48,54 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( * @return The buildable object. */ @Deprecated - public List - getPreferredDuringSchedulingIgnoredDuringExecution(); + public List getPreferredDuringSchedulingIgnoredDuringExecution(); - public java.util.List - buildPreferredDuringSchedulingIgnoredDuringExecution(); + public List buildPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution( + Integer index); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildLastPreferredDuringSchedulingIgnoredDuringExecution(); + public V1PreferredSchedulingTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> - predicate); + public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> - predicate); + Predicate predicate); public A withPreferredDuringSchedulingIgnoredDuringExecution( - java.util.List - preferredDuringSchedulingIgnoredDuringExecution); + List preferredDuringSchedulingIgnoredDuringExecution); public A withPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... preferredDuringSchedulingIgnoredDuringExecution); - public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); + public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item); + Integer index, V1PreferredSchedulingTerm item); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - editPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> - predicate); + Predicate predicate); /** * This method has been deprecated, please use method @@ -129,42 +103,30 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution( * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeSelector - buildRequiredDuringSchedulingIgnoredDuringExecution(); + public V1NodeSelector buildRequiredDuringSchedulingIgnoredDuringExecution(); public A withRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1NodeSelector - requiredDuringSchedulingIgnoredDuringExecution); + V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution); - public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); + public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1NodeSelector item); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1NodeSelector item); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item); public interface PreferredDuringSchedulingIgnoredDuringExecutionNested extends Nested, @@ -176,7 +138,7 @@ public interface PreferredDuringSchedulingIgnoredDuringExecutionNested } public interface RequiredDuringSchedulingIgnoredDuringExecutionNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1NodeSelectorFluent< V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java index ff9318c485..2da985c1b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluentImpl.java @@ -26,7 +26,7 @@ public class V1NodeAffinityFluentImpl> extends implements V1NodeAffinityFluent { public V1NodeAffinityFluentImpl() {} - public V1NodeAffinityFluentImpl(io.kubernetes.client.openapi.models.V1NodeAffinity instance) { + public V1NodeAffinityFluentImpl(V1NodeAffinity instance) { this.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -39,13 +39,12 @@ public V1NodeAffinityFluentImpl(io.kubernetes.client.openapi.models.V1NodeAffini private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; public A addToPreferredDuringSchedulingIgnoredDuringExecution( - Integer index, io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item) { + Integer index, V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(item); + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); _visitables .get("preferredDuringSchedulingIgnoredDuringExecution") .add( @@ -59,14 +58,12 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( } public A setToPreferredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item) { + Integer index, V1PreferredSchedulingTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder>(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(item); + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); if (index < 0 || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -85,12 +82,10 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder>(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item : items) { - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(item); + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -98,15 +93,13 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( } public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { + Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder>(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item : items) { - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(item); + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -115,9 +108,8 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item : items) { - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(item); + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -127,10 +119,9 @@ public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( } public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item : items) { - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(item); + Collection items) { + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -140,13 +131,13 @@ public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( } public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + Predicate predicate) { if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = + final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder = each.next(); + V1PreferredSchedulingTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,44 +153,36 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( * @return The buildable object. */ @Deprecated - public List - getPreferredDuringSchedulingIgnoredDuringExecution() { + public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public java.util.List - buildPreferredDuringSchedulingIgnoredDuringExecution() { + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExecution( + Integer index) { return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { + public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildLastPreferredDuringSchedulingIgnoredDuringExecution() { + public V1PreferredSchedulingTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution .get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1) .build(); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm - buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder item : - preferredDuringSchedulingIgnoredDuringExecution) { + public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return item.build(); } @@ -208,11 +191,8 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( } public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder item : - preferredDuringSchedulingIgnoredDuringExecution) { + Predicate predicate) { + for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return true; } @@ -221,17 +201,15 @@ public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( } public A withPreferredDuringSchedulingIgnoredDuringExecution( - java.util.List - preferredDuringSchedulingIgnoredDuringExecution) { + List preferredDuringSchedulingIgnoredDuringExecution) { if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { _visitables .get("preferredDuringSchedulingIgnoredDuringExecution") .removeAll(this.preferredDuringSchedulingIgnoredDuringExecution); } if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item : - preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } } else { @@ -247,15 +225,14 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution( this.preferredDuringSchedulingIgnoredDuringExecution.clear(); } if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item : - preferredDuringSchedulingIgnoredDuringExecution) { + for (V1PreferredSchedulingTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } } return (A) this; } - public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); } @@ -265,29 +242,21 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item) { + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( -1, item); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item) { - return new io.kubernetes.client.openapi.models.V1NodeAffinityFluentImpl - .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); + Integer index, V1PreferredSchedulingTerm item) { + return new V1NodeAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( + index, item); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - editPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException( "Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); @@ -295,9 +264,7 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException( @@ -306,9 +273,7 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { 0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) @@ -318,13 +283,9 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution.size(); i++) { if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { @@ -345,24 +306,21 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeSelector - getRequiredDuringSchedulingIgnoredDuringExecution() { + @Deprecated + public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution != null ? this.requiredDuringSchedulingIgnoredDuringExecution.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeSelector - buildRequiredDuringSchedulingIgnoredDuringExecution() { + public V1NodeSelector buildRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution != null ? this.requiredDuringSchedulingIgnoredDuringExecution.build() : null; } public A withRequiredDuringSchedulingIgnoredDuringExecution( - io.kubernetes.client.openapi.models.V1NodeSelector - requiredDuringSchedulingIgnoredDuringExecution) { + V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { _visitables .get("requiredDuringSchedulingIgnoredDuringExecution") .remove(this.requiredDuringSchedulingIgnoredDuringExecution); @@ -372,11 +330,16 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution( _visitables .get("requiredDuringSchedulingIgnoredDuringExecution") .add(this.requiredDuringSchedulingIgnoredDuringExecution); + } else { + this.requiredDuringSchedulingIgnoredDuringExecution = null; + _visitables + .get("requiredDuringSchedulingIgnoredDuringExecution") + .remove(this.requiredDuringSchedulingIgnoredDuringExecution); } return (A) this; } - public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution != null; } @@ -385,38 +348,28 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return new V1NodeAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1NodeSelector item) { - return new io.kubernetes.client.openapi.models.V1NodeAffinityFluentImpl - .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(item); + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return new V1NodeAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( + item); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution() { return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( getRequiredDuringSchedulingIgnoredDuringExecution()); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( getRequiredDuringSchedulingIgnoredDuringExecution() != null ? getRequiredDuringSchedulingIgnoredDuringExecution() - : new io.kubernetes.client.openapi.models.V1NodeSelectorBuilder().build()); + : new V1NodeSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1NodeSelector item) { + public V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike( getRequiredDuringSchedulingIgnoredDuringExecution() != null ? getRequiredDuringSchedulingIgnoredDuringExecution() @@ -464,24 +417,21 @@ public String toString() { class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1PreferredSchedulingTermFluentImpl< V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> - implements io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - N>, + implements V1NodeAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested, Nested { PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm item) { + Integer index, V1PreferredSchedulingTerm item) { this.index = index; this.builder = new V1PreferredSchedulingTermBuilder(this, item); } PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder(this); + this.builder = new V1PreferredSchedulingTermBuilder(this); } - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder builder; - java.lang.Integer index; + V1PreferredSchedulingTermBuilder builder; + Integer index; public N and() { return (N) @@ -497,19 +447,17 @@ public N endPreferredDuringSchedulingIgnoredDuringExecution() { class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1NodeSelectorFluentImpl< V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> - implements io.kubernetes.client.openapi.models.V1NodeAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1NodeAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested, + Nested { RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeSelectorBuilder(this); + this.builder = new V1NodeSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSelectorBuilder builder; + V1NodeSelectorBuilder builder; public N and() { return (N) 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 0240e614a5..c702d5a26b 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeBuilder extends V1NodeFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Node, - io.kubernetes.client.openapi.models.V1NodeBuilder> { + implements VisitableBuilder { public V1NodeBuilder() { this(false); } @@ -30,22 +28,15 @@ public V1NodeBuilder(V1NodeFluent fluent) { this(fluent, false); } - public V1NodeBuilder( - io.kubernetes.client.openapi.models.V1NodeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeBuilder(V1NodeFluent fluent, Boolean validationEnabled) { this(fluent, new V1Node(), validationEnabled); } - public V1NodeBuilder( - io.kubernetes.client.openapi.models.V1NodeFluent fluent, - io.kubernetes.client.openapi.models.V1Node instance) { + public V1NodeBuilder(V1NodeFluent fluent, V1Node instance) { this(fluent, instance, false); } - public V1NodeBuilder( - io.kubernetes.client.openapi.models.V1NodeFluent fluent, - io.kubernetes.client.openapi.models.V1Node instance, - java.lang.Boolean validationEnabled) { + public V1NodeBuilder(V1NodeFluent fluent, V1Node instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,12 +51,11 @@ public V1NodeBuilder( this.validationEnabled = validationEnabled; } - public V1NodeBuilder(io.kubernetes.client.openapi.models.V1Node instance) { + public V1NodeBuilder(V1Node instance) { this(instance, false); } - public V1NodeBuilder( - io.kubernetes.client.openapi.models.V1Node instance, java.lang.Boolean validationEnabled) { + public V1NodeBuilder(V1Node instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +70,10 @@ public V1NodeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Node build() { + public V1Node build() { V1Node buildable = new V1Node(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 abf55de85d..e5717f49f2 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeConditionBuilder extends V1NodeConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NodeCondition, V1NodeConditionBuilder> { + implements VisitableBuilder { public V1NodeConditionBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1NodeConditionBuilder(Boolean validationEnabled) { this(new V1NodeCondition(), validationEnabled); } - public V1NodeConditionBuilder( - io.kubernetes.client.openapi.models.V1NodeConditionFluent fluent) { + public V1NodeConditionBuilder(V1NodeConditionFluent fluent) { this(fluent, false); } - public V1NodeConditionBuilder( - io.kubernetes.client.openapi.models.V1NodeConditionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeConditionBuilder(V1NodeConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeCondition(), validationEnabled); } - public V1NodeConditionBuilder( - io.kubernetes.client.openapi.models.V1NodeConditionFluent fluent, - io.kubernetes.client.openapi.models.V1NodeCondition instance) { + public V1NodeConditionBuilder(V1NodeConditionFluent fluent, V1NodeCondition instance) { this(fluent, instance, false); } public V1NodeConditionBuilder( - io.kubernetes.client.openapi.models.V1NodeConditionFluent fluent, - io.kubernetes.client.openapi.models.V1NodeCondition instance, - java.lang.Boolean validationEnabled) { + V1NodeConditionFluent fluent, V1NodeCondition instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLastHeartbeatTime(instance.getLastHeartbeatTime()); @@ -62,13 +54,11 @@ public V1NodeConditionBuilder( this.validationEnabled = validationEnabled; } - public V1NodeConditionBuilder(io.kubernetes.client.openapi.models.V1NodeCondition instance) { + public V1NodeConditionBuilder(V1NodeCondition instance) { this(instance, false); } - public V1NodeConditionBuilder( - io.kubernetes.client.openapi.models.V1NodeCondition instance, - java.lang.Boolean validationEnabled) { + public V1NodeConditionBuilder(V1NodeCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); @@ -85,10 +75,10 @@ public V1NodeConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeCondition build() { + public V1NodeCondition build() { V1NodeCondition buildable = new V1NodeCondition(); buildable.setLastHeartbeatTime(fluent.getLastHeartbeatTime()); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); 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 f462a778b0..b253f393e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java @@ -19,37 +19,37 @@ public interface V1NodeConditionFluent> extends Fluent { public OffsetDateTime getLastHeartbeatTime(); - public A withLastHeartbeatTime(java.time.OffsetDateTime lastHeartbeatTime); + public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime); public Boolean hasLastHeartbeatTime(); - public java.time.OffsetDateTime getLastTransitionTime(); + public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public java.lang.Boolean hasLastTransitionTime(); + public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java index 632157f79a..09bc1e7720 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluentImpl.java @@ -21,7 +21,7 @@ public class V1NodeConditionFluentImpl> exten implements V1NodeConditionFluent { public V1NodeConditionFluentImpl() {} - public V1NodeConditionFluentImpl(io.kubernetes.client.openapi.models.V1NodeCondition instance) { + public V1NodeConditionFluentImpl(V1NodeCondition instance) { this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -36,17 +36,17 @@ public V1NodeConditionFluentImpl(io.kubernetes.client.openapi.models.V1NodeCondi } private OffsetDateTime lastHeartbeatTime; - private java.time.OffsetDateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastHeartbeatTime() { + public OffsetDateTime getLastHeartbeatTime() { return this.lastHeartbeatTime; } - public A withLastHeartbeatTime(java.time.OffsetDateTime lastHeartbeatTime) { + public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; return (A) this; } @@ -55,68 +55,68 @@ public Boolean hasLastHeartbeatTime() { return this.lastHeartbeatTime != null; } - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } - public java.lang.Boolean hasLastTransitionTime() { + public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -142,7 +142,7 @@ public int hashCode() { lastHeartbeatTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastHeartbeatTime != null) { 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 167c77807a..94813c422f 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 @@ -16,8 +16,7 @@ public class V1NodeConfigSourceBuilder extends V1NodeConfigSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NodeConfigSource, V1NodeConfigSourceBuilder> { + implements VisitableBuilder { public V1NodeConfigSourceBuilder() { this(false); } @@ -26,51 +25,42 @@ public V1NodeConfigSourceBuilder(Boolean validationEnabled) { this(new V1NodeConfigSource(), validationEnabled); } - public V1NodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent fluent) { + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent) { this(fluent, false); } - public V1NodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeConfigSource(), validationEnabled); } public V1NodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent fluent, - io.kubernetes.client.openapi.models.V1NodeConfigSource instance) { + V1NodeConfigSourceFluent fluent, V1NodeConfigSource instance) { this(fluent, instance, false); } public V1NodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent fluent, - io.kubernetes.client.openapi.models.V1NodeConfigSource instance, - java.lang.Boolean validationEnabled) { + V1NodeConfigSourceFluent fluent, V1NodeConfigSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConfigMap(instance.getConfigMap()); this.validationEnabled = validationEnabled; } - public V1NodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigSource instance) { + public V1NodeConfigSourceBuilder(V1NodeConfigSource instance) { this(instance, false); } - public V1NodeConfigSourceBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigSource instance, - java.lang.Boolean validationEnabled) { + public V1NodeConfigSourceBuilder(V1NodeConfigSource instance, Boolean validationEnabled) { this.fluent = this; this.withConfigMap(instance.getConfigMap()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeConfigSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeConfigSource build() { + public V1NodeConfigSource build() { V1NodeConfigSource buildable = new V1NodeConfigSource(); buildable.setConfigMap(fluent.getConfigMap()); return buildable; 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 b76fb0c02e..b4907b33f6 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 @@ -26,25 +26,23 @@ public interface V1NodeConfigSourceFluent> @Deprecated public V1ConfigMapNodeConfigSource getConfigMap(); - public io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource buildConfigMap(); + public V1ConfigMapNodeConfigSource buildConfigMap(); - public A withConfigMap(io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource configMap); + public A withConfigMap(V1ConfigMapNodeConfigSource configMap); public Boolean hasConfigMap(); public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMap(); - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - withNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource item); + public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMapLike( + V1ConfigMapNodeConfigSource item); - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - editConfigMap(); + public V1NodeConfigSourceFluent.ConfigMapNested editConfigMap(); - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - editOrNewConfigMap(); + public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMap(); - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - editOrNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource item); + public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMapLike( + V1ConfigMapNodeConfigSource item); public interface ConfigMapNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java index e84b2e3ab9..e5692b1d70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1NodeConfigSourceFluentImpl> extends BaseFluent implements V1NodeConfigSourceFluent { public V1NodeConfigSourceFluentImpl() {} - public V1NodeConfigSourceFluentImpl( - io.kubernetes.client.openapi.models.V1NodeConfigSource instance) { + public V1NodeConfigSourceFluentImpl(V1NodeConfigSource instance) { this.withConfigMap(instance.getConfigMap()); } @@ -38,17 +37,18 @@ public V1ConfigMapNodeConfigSource getConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource buildConfigMap() { + public V1ConfigMapNodeConfigSource buildConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public A withConfigMap( - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource configMap) { + public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { _visitables.get("configMap").remove(this.configMap); if (configMap != null) { - this.configMap = - new io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceBuilder(configMap); + this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); _visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + _visitables.get("configMap").remove(this.configMap); } return (A) this; } @@ -61,26 +61,22 @@ public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMap() { return new V1NodeConfigSourceFluentImpl.ConfigMapNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - withNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource item) { + public V1NodeConfigSourceFluent.ConfigMapNested withNewConfigMapLike( + V1ConfigMapNodeConfigSource item) { return new V1NodeConfigSourceFluentImpl.ConfigMapNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - editConfigMap() { + public V1NodeConfigSourceFluent.ConfigMapNested editConfigMap() { return withNewConfigMapLike(getConfigMap()); } - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - editOrNewConfigMap() { + public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMap() { return withNewConfigMapLike( - getConfigMap() != null - ? getConfigMap() - : new io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceBuilder().build()); + getConfigMap() != null ? getConfigMap() : new V1ConfigMapNodeConfigSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested - editOrNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSource item) { + public V1NodeConfigSourceFluent.ConfigMapNested editOrNewConfigMapLike( + V1ConfigMapNodeConfigSource item) { return withNewConfigMapLike(getConfigMap() != null ? getConfigMap() : item); } @@ -110,18 +106,16 @@ public String toString() { class ConfigMapNestedImpl extends V1ConfigMapNodeConfigSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeConfigSourceFluent.ConfigMapNested, - Nested { + implements V1NodeConfigSourceFluent.ConfigMapNested, Nested { ConfigMapNestedImpl(V1ConfigMapNodeConfigSource item) { this.builder = new V1ConfigMapNodeConfigSourceBuilder(this, item); } ConfigMapNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceBuilder(this); + this.builder = new V1ConfigMapNodeConfigSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ConfigMapNodeConfigSourceBuilder builder; + V1ConfigMapNodeConfigSourceBuilder builder; public N and() { return (N) V1NodeConfigSourceFluentImpl.this.withConfigMap(builder.build()); 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 737fc65788..f95135a8d5 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 @@ -16,8 +16,7 @@ public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluentImpl - implements VisitableBuilder< - V1NodeConfigStatus, io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder> { + implements VisitableBuilder { public V1NodeConfigStatusBuilder() { this(false); } @@ -30,22 +29,17 @@ public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent) { this(fluent, false); } - public V1NodeConfigStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeConfigStatus(), validationEnabled); } public V1NodeConfigStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NodeConfigStatus instance) { + V1NodeConfigStatusFluent fluent, V1NodeConfigStatus instance) { this(fluent, instance, false); } public V1NodeConfigStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NodeConfigStatus instance, - java.lang.Boolean validationEnabled) { + V1NodeConfigStatusFluent fluent, V1NodeConfigStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withActive(instance.getActive()); @@ -58,14 +52,11 @@ public V1NodeConfigStatusBuilder( this.validationEnabled = validationEnabled; } - public V1NodeConfigStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigStatus instance) { + public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance) { this(instance, false); } - public V1NodeConfigStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeConfigStatus instance, - java.lang.Boolean validationEnabled) { + public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance, Boolean validationEnabled) { this.fluent = this; this.withActive(instance.getActive()); @@ -78,10 +69,10 @@ public V1NodeConfigStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeConfigStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeConfigStatus build() { + public V1NodeConfigStatus build() { V1NodeConfigStatus buildable = new V1NodeConfigStatus(); buildable.setActive(fluent.getActive()); buildable.setAssigned(fluent.getAssigned()); 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 c60359ad96..b99a718f07 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 @@ -26,86 +26,77 @@ public interface V1NodeConfigStatusFluent> @Deprecated public V1NodeConfigSource getActive(); - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildActive(); + public V1NodeConfigSource buildActive(); - public A withActive(io.kubernetes.client.openapi.models.V1NodeConfigSource active); + public A withActive(V1NodeConfigSource active); public Boolean hasActive(); public V1NodeConfigStatusFluent.ActiveNested withNewActive(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested - withNewActiveLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeConfigStatusFluent.ActiveNested withNewActiveLike(V1NodeConfigSource item); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested editActive(); + public V1NodeConfigStatusFluent.ActiveNested editActive(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested - editOrNewActive(); + public V1NodeConfigStatusFluent.ActiveNested editOrNewActive(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested - editOrNewActiveLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeConfigStatusFluent.ActiveNested editOrNewActiveLike(V1NodeConfigSource item); /** * This method has been deprecated, please use method buildAssigned instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeConfigSource getAssigned(); + @Deprecated + public V1NodeConfigSource getAssigned(); - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildAssigned(); + public V1NodeConfigSource buildAssigned(); - public A withAssigned(io.kubernetes.client.openapi.models.V1NodeConfigSource assigned); + public A withAssigned(V1NodeConfigSource assigned); - public java.lang.Boolean hasAssigned(); + public Boolean hasAssigned(); public V1NodeConfigStatusFluent.AssignedNested withNewAssigned(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - withNewAssignedLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeConfigStatusFluent.AssignedNested withNewAssignedLike(V1NodeConfigSource item); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - editAssigned(); + public V1NodeConfigStatusFluent.AssignedNested editAssigned(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - editOrNewAssigned(); + public V1NodeConfigStatusFluent.AssignedNested editOrNewAssigned(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - editOrNewAssignedLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeConfigStatusFluent.AssignedNested editOrNewAssignedLike(V1NodeConfigSource item); public String getError(); - public A withError(java.lang.String error); + public A withError(String error); - public java.lang.Boolean hasError(); + public Boolean hasError(); /** * This method has been deprecated, please use method buildLastKnownGood instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeConfigSource getLastKnownGood(); + @Deprecated + public V1NodeConfigSource getLastKnownGood(); - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildLastKnownGood(); + public V1NodeConfigSource buildLastKnownGood(); - public A withLastKnownGood(io.kubernetes.client.openapi.models.V1NodeConfigSource lastKnownGood); + public A withLastKnownGood(V1NodeConfigSource lastKnownGood); - public java.lang.Boolean hasLastKnownGood(); + public Boolean hasLastKnownGood(); public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGood(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - withNewLastKnownGoodLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGoodLike( + V1NodeConfigSource item); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - editLastKnownGood(); + public V1NodeConfigStatusFluent.LastKnownGoodNested editLastKnownGood(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - editOrNewLastKnownGood(); + public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGood(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - editOrNewLastKnownGoodLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGoodLike( + V1NodeConfigSource item); public interface ActiveNested extends Nested, V1NodeConfigSourceFluent> { @@ -115,16 +106,14 @@ public interface ActiveNested } public interface AssignedNested - extends io.kubernetes.client.fluent.Nested, - V1NodeConfigSourceFluent> { + extends Nested, V1NodeConfigSourceFluent> { public N and(); public N endAssigned(); } public interface LastKnownGoodNested - extends io.kubernetes.client.fluent.Nested, - V1NodeConfigSourceFluent> { + extends Nested, V1NodeConfigSourceFluent> { public N and(); public N endLastKnownGood(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java index 7afdf336b6..b7e094a784 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V1NodeConfigStatusFluentImpl> extends BaseFluent implements V1NodeConfigStatusFluent { public V1NodeConfigStatusFluentImpl() {} - public V1NodeConfigStatusFluentImpl( - io.kubernetes.client.openapi.models.V1NodeConfigStatus instance) { + public V1NodeConfigStatusFluentImpl(V1NodeConfigStatus instance) { this.withActive(instance.getActive()); this.withAssigned(instance.getAssigned()); @@ -35,7 +34,7 @@ public V1NodeConfigStatusFluentImpl( private V1NodeConfigSourceBuilder active; private V1NodeConfigSourceBuilder assigned; private String error; - private io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder lastKnownGood; + private V1NodeConfigSourceBuilder lastKnownGood; /** * This method has been deprecated, please use method buildActive instead. @@ -43,19 +42,22 @@ public V1NodeConfigStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1NodeConfigSource getActive() { + public V1NodeConfigSource getActive() { return this.active != null ? this.active.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildActive() { + public V1NodeConfigSource buildActive() { return this.active != null ? this.active.build() : null; } - public A withActive(io.kubernetes.client.openapi.models.V1NodeConfigSource active) { + public A withActive(V1NodeConfigSource active) { _visitables.get("active").remove(this.active); if (active != null) { - this.active = new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(active); + this.active = new V1NodeConfigSourceBuilder(active); _visitables.get("active").add(this.active); + } else { + this.active = null; + _visitables.get("active").remove(this.active); } return (A) this; } @@ -68,25 +70,20 @@ public V1NodeConfigStatusFluent.ActiveNested withNewActive() { return new V1NodeConfigStatusFluentImpl.ActiveNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested - withNewActiveLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + public V1NodeConfigStatusFluent.ActiveNested withNewActiveLike(V1NodeConfigSource item) { return new V1NodeConfigStatusFluentImpl.ActiveNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested editActive() { + public V1NodeConfigStatusFluent.ActiveNested editActive() { return withNewActiveLike(getActive()); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested - editOrNewActive() { + public V1NodeConfigStatusFluent.ActiveNested editOrNewActive() { return withNewActiveLike( - getActive() != null - ? getActive() - : new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder().build()); + getActive() != null ? getActive() : new V1NodeConfigSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested - editOrNewActiveLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + public V1NodeConfigStatusFluent.ActiveNested editOrNewActiveLike(V1NodeConfigSource item) { return withNewActiveLike(getActive() != null ? getActive() : item); } @@ -95,25 +92,28 @@ public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeConfigSource getAssigned() { + @Deprecated + public V1NodeConfigSource getAssigned() { return this.assigned != null ? this.assigned.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildAssigned() { + public V1NodeConfigSource buildAssigned() { return this.assigned != null ? this.assigned.build() : null; } - public A withAssigned(io.kubernetes.client.openapi.models.V1NodeConfigSource assigned) { + public A withAssigned(V1NodeConfigSource assigned) { _visitables.get("assigned").remove(this.assigned); if (assigned != null) { - this.assigned = new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(assigned); + this.assigned = new V1NodeConfigSourceBuilder(assigned); _visitables.get("assigned").add(this.assigned); + } else { + this.assigned = null; + _visitables.get("assigned").remove(this.assigned); } return (A) this; } - public java.lang.Boolean hasAssigned() { + public Boolean hasAssigned() { return this.assigned != null; } @@ -121,40 +121,33 @@ public V1NodeConfigStatusFluent.AssignedNested withNewAssigned() { return new V1NodeConfigStatusFluentImpl.AssignedNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - withNewAssignedLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { - return new io.kubernetes.client.openapi.models.V1NodeConfigStatusFluentImpl.AssignedNestedImpl( - item); + public V1NodeConfigStatusFluent.AssignedNested withNewAssignedLike(V1NodeConfigSource item) { + return new V1NodeConfigStatusFluentImpl.AssignedNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - editAssigned() { + public V1NodeConfigStatusFluent.AssignedNested editAssigned() { return withNewAssignedLike(getAssigned()); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - editOrNewAssigned() { + public V1NodeConfigStatusFluent.AssignedNested editOrNewAssigned() { return withNewAssignedLike( - getAssigned() != null - ? getAssigned() - : new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder().build()); + getAssigned() != null ? getAssigned() : new V1NodeConfigSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested - editOrNewAssignedLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + public V1NodeConfigStatusFluent.AssignedNested editOrNewAssignedLike(V1NodeConfigSource item) { return withNewAssignedLike(getAssigned() != null ? getAssigned() : item); } - public java.lang.String getError() { + public String getError() { return this.error; } - public A withError(java.lang.String error) { + public A withError(String error) { this.error = error; return (A) this; } - public java.lang.Boolean hasError() { + public Boolean hasError() { return this.error != null; } @@ -163,26 +156,28 @@ public java.lang.Boolean hasError() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeConfigSource getLastKnownGood() { + @Deprecated + public V1NodeConfigSource getLastKnownGood() { return this.lastKnownGood != null ? this.lastKnownGood.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildLastKnownGood() { + public V1NodeConfigSource buildLastKnownGood() { return this.lastKnownGood != null ? this.lastKnownGood.build() : null; } - public A withLastKnownGood(io.kubernetes.client.openapi.models.V1NodeConfigSource lastKnownGood) { + public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { _visitables.get("lastKnownGood").remove(this.lastKnownGood); if (lastKnownGood != null) { - this.lastKnownGood = - new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(lastKnownGood); + this.lastKnownGood = new V1NodeConfigSourceBuilder(lastKnownGood); _visitables.get("lastKnownGood").add(this.lastKnownGood); + } else { + this.lastKnownGood = null; + _visitables.get("lastKnownGood").remove(this.lastKnownGood); } return (A) this; } - public java.lang.Boolean hasLastKnownGood() { + public Boolean hasLastKnownGood() { return this.lastKnownGood != null; } @@ -190,27 +185,22 @@ public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGood() { return new V1NodeConfigStatusFluentImpl.LastKnownGoodNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - withNewLastKnownGoodLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { - return new io.kubernetes.client.openapi.models.V1NodeConfigStatusFluentImpl - .LastKnownGoodNestedImpl(item); + public V1NodeConfigStatusFluent.LastKnownGoodNested withNewLastKnownGoodLike( + V1NodeConfigSource item) { + return new V1NodeConfigStatusFluentImpl.LastKnownGoodNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - editLastKnownGood() { + public V1NodeConfigStatusFluent.LastKnownGoodNested editLastKnownGood() { return withNewLastKnownGoodLike(getLastKnownGood()); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - editOrNewLastKnownGood() { + public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGood() { return withNewLastKnownGoodLike( - getLastKnownGood() != null - ? getLastKnownGood() - : new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder().build()); + getLastKnownGood() != null ? getLastKnownGood() : new V1NodeConfigSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested - editOrNewLastKnownGoodLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + public V1NodeConfigStatusFluent.LastKnownGoodNested editOrNewLastKnownGoodLike( + V1NodeConfigSource item) { return withNewLastKnownGoodLike(getLastKnownGood() != null ? getLastKnownGood() : item); } @@ -231,7 +221,7 @@ public int hashCode() { return java.util.Objects.hash(active, assigned, error, lastKnownGood, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (active != null) { @@ -256,17 +246,16 @@ public java.lang.String toString() { class ActiveNestedImpl extends V1NodeConfigSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.ActiveNested, - Nested { - ActiveNestedImpl(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + implements V1NodeConfigStatusFluent.ActiveNested, Nested { + ActiveNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } ActiveNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(this); + this.builder = new V1NodeConfigSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder builder; + V1NodeConfigSourceBuilder builder; public N and() { return (N) V1NodeConfigStatusFluentImpl.this.withActive(builder.build()); @@ -279,17 +268,16 @@ public N endActive() { class AssignedNestedImpl extends V1NodeConfigSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.AssignedNested, - io.kubernetes.client.fluent.Nested { - AssignedNestedImpl(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + implements V1NodeConfigStatusFluent.AssignedNested, Nested { + AssignedNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } AssignedNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(this); + this.builder = new V1NodeConfigSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder builder; + V1NodeConfigSourceBuilder builder; public N and() { return (N) V1NodeConfigStatusFluentImpl.this.withAssigned(builder.build()); @@ -302,18 +290,16 @@ public N endAssigned() { class LastKnownGoodNestedImpl extends V1NodeConfigSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeConfigStatusFluent.LastKnownGoodNested< - N>, - io.kubernetes.client.fluent.Nested { - LastKnownGoodNestedImpl(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + implements V1NodeConfigStatusFluent.LastKnownGoodNested, Nested { + LastKnownGoodNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } LastKnownGoodNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(this); + this.builder = new V1NodeConfigSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder builder; + V1NodeConfigSourceBuilder builder; public N and() { return (N) V1NodeConfigStatusFluentImpl.this.withLastKnownGood(builder.build()); 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 536bf117b6..b7961f3a9a 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 @@ -16,9 +16,7 @@ public class V1NodeDaemonEndpointsBuilder extends V1NodeDaemonEndpointsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints, - io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder> { + implements VisitableBuilder { public V1NodeDaemonEndpointsBuilder() { this(false); } @@ -32,45 +30,40 @@ public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent) { } public V1NodeDaemonEndpointsBuilder( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent fluent, - java.lang.Boolean validationEnabled) { + V1NodeDaemonEndpointsFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeDaemonEndpoints(), validationEnabled); } public V1NodeDaemonEndpointsBuilder( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent fluent, - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints instance) { + V1NodeDaemonEndpointsFluent fluent, V1NodeDaemonEndpoints instance) { this(fluent, instance, false); } public V1NodeDaemonEndpointsBuilder( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent fluent, - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints instance, - java.lang.Boolean validationEnabled) { + V1NodeDaemonEndpointsFluent fluent, + V1NodeDaemonEndpoints instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKubeletEndpoint(instance.getKubeletEndpoint()); this.validationEnabled = validationEnabled; } - public V1NodeDaemonEndpointsBuilder( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints instance) { + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance) { this(instance, false); } - public V1NodeDaemonEndpointsBuilder( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints instance, - java.lang.Boolean validationEnabled) { + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance, Boolean validationEnabled) { this.fluent = this; this.withKubeletEndpoint(instance.getKubeletEndpoint()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeDaemonEndpointsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints build() { + public V1NodeDaemonEndpoints build() { V1NodeDaemonEndpoints buildable = new V1NodeDaemonEndpoints(); buildable.setKubeletEndpoint(fluent.getKubeletEndpoint()); return buildable; 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 303d98362c..37af3ede31 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 @@ -27,26 +27,23 @@ public interface V1NodeDaemonEndpointsFluent withNewKubeletEndpoint(); - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - withNewKubeletEndpointLike(io.kubernetes.client.openapi.models.V1DaemonEndpoint item); + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike( + V1DaemonEndpoint item); - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - editKubeletEndpoint(); + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editKubeletEndpoint(); - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - editOrNewKubeletEndpoint(); + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpoint(); - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - editOrNewKubeletEndpointLike(io.kubernetes.client.openapi.models.V1DaemonEndpoint item); + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike( + V1DaemonEndpoint item); public interface KubeletEndpointNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java index 9a1a103164..7ec0ed9fff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluentImpl.java @@ -21,8 +21,7 @@ public class V1NodeDaemonEndpointsFluentImpl implements V1NodeDaemonEndpointsFluent { public V1NodeDaemonEndpointsFluentImpl() {} - public V1NodeDaemonEndpointsFluentImpl( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints instance) { + public V1NodeDaemonEndpointsFluentImpl(V1NodeDaemonEndpoints instance) { this.withKubeletEndpoint(instance.getKubeletEndpoint()); } @@ -38,17 +37,18 @@ public V1DaemonEndpoint getKubeletEndpoint() { return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; } - public io.kubernetes.client.openapi.models.V1DaemonEndpoint buildKubeletEndpoint() { + public V1DaemonEndpoint buildKubeletEndpoint() { return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; } - public A withKubeletEndpoint( - io.kubernetes.client.openapi.models.V1DaemonEndpoint kubeletEndpoint) { + public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { _visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); if (kubeletEndpoint != null) { - this.kubeletEndpoint = - new io.kubernetes.client.openapi.models.V1DaemonEndpointBuilder(kubeletEndpoint); + this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); _visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); + } else { + this.kubeletEndpoint = null; + _visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); } return (A) this; } @@ -61,26 +61,24 @@ public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpoi return new V1NodeDaemonEndpointsFluentImpl.KubeletEndpointNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - withNewKubeletEndpointLike(io.kubernetes.client.openapi.models.V1DaemonEndpoint item) { + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested withNewKubeletEndpointLike( + V1DaemonEndpoint item) { return new V1NodeDaemonEndpointsFluentImpl.KubeletEndpointNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - editKubeletEndpoint() { + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editKubeletEndpoint() { return withNewKubeletEndpointLike(getKubeletEndpoint()); } - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - editOrNewKubeletEndpoint() { + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpoint() { return withNewKubeletEndpointLike( getKubeletEndpoint() != null ? getKubeletEndpoint() - : new io.kubernetes.client.openapi.models.V1DaemonEndpointBuilder().build()); + : new V1DaemonEndpointBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent.KubeletEndpointNested - editOrNewKubeletEndpointLike(io.kubernetes.client.openapi.models.V1DaemonEndpoint item) { + public V1NodeDaemonEndpointsFluent.KubeletEndpointNested editOrNewKubeletEndpointLike( + V1DaemonEndpoint item) { return withNewKubeletEndpointLike(getKubeletEndpoint() != null ? getKubeletEndpoint() : item); } @@ -111,19 +109,16 @@ public String toString() { class KubeletEndpointNestedImpl extends V1DaemonEndpointFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsFluent - .KubeletEndpointNested< - N>, - Nested { - KubeletEndpointNestedImpl(io.kubernetes.client.openapi.models.V1DaemonEndpoint item) { + implements V1NodeDaemonEndpointsFluent.KubeletEndpointNested, Nested { + KubeletEndpointNestedImpl(V1DaemonEndpoint item) { this.builder = new V1DaemonEndpointBuilder(this, item); } KubeletEndpointNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DaemonEndpointBuilder(this); + this.builder = new V1DaemonEndpointBuilder(this); } - io.kubernetes.client.openapi.models.V1DaemonEndpointBuilder builder; + V1DaemonEndpointBuilder builder; public N and() { return (N) V1NodeDaemonEndpointsFluentImpl.this.withKubeletEndpoint(builder.build()); 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 b9ed9a5733..cc24538768 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 @@ -19,15 +19,15 @@ public interface V1NodeFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1NodeFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1NodeFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1NodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editMetadata(); + public V1NodeFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editOrNewMetadata(); + public V1NodeFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1NodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeSpec getSpec(); - public io.kubernetes.client.openapi.models.V1NodeSpec buildSpec(); + public V1NodeSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1NodeSpec spec); + public A withSpec(V1NodeSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1NodeFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1NodeSpec item); + public V1NodeFluent.SpecNested withNewSpecLike(V1NodeSpec item); - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editSpec(); + public V1NodeFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editOrNewSpec(); + public V1NodeFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1NodeSpec item); + public V1NodeFluent.SpecNested editOrNewSpecLike(V1NodeSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeStatus getStatus(); - public io.kubernetes.client.openapi.models.V1NodeStatus buildStatus(); + public V1NodeStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1NodeStatus status); + public A withStatus(V1NodeStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1NodeFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1NodeStatus item); + public V1NodeFluent.StatusNested withNewStatusLike(V1NodeStatus item); - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested editStatus(); + public V1NodeFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested editOrNewStatus(); + public V1NodeFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1NodeStatus item); + public V1NodeFluent.StatusNested editOrNewStatusLike(V1NodeStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -114,16 +108,14 @@ public interface MetadataNested public N endMetadata(); } - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, V1NodeSpecFluent> { + public interface SpecNested extends Nested, V1NodeSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1NodeStatusFluent> { + extends Nested, V1NodeStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java index 3a2108b6ad..f533c6126d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluentImpl.java @@ -21,7 +21,7 @@ public class V1NodeFluentImpl> extends BaseFluent implements V1NodeFluent { public V1NodeFluentImpl() {} - public V1NodeFluentImpl(io.kubernetes.client.openapi.models.V1Node instance) { + public V1NodeFluentImpl(V1Node instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1NodeFluentImpl(io.kubernetes.client.openapi.models.V1Node instance) { } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1NodeSpecBuilder spec; private V1NodeStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1NodeFluent.MetadataNested withNewMetadata() { return new V1NodeFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1NodeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1NodeFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editMetadata() { + public V1NodeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editOrNewMetadata() { + public V1NodeFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1NodeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested editOr * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeSpec getSpec() { + @Deprecated + public V1NodeSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeSpec buildSpec() { + public V1NodeSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1NodeSpec spec) { + public A withSpec(V1NodeSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1NodeSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1NodeFluent.SpecNested withNewSpec() { return new V1NodeFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1NodeSpec item) { - return new io.kubernetes.client.openapi.models.V1NodeFluentImpl.SpecNestedImpl(item); + public V1NodeFluent.SpecNested withNewSpecLike(V1NodeSpec item) { + return new V1NodeFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editSpec() { + public V1NodeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1NodeSpecBuilder().build()); + public V1NodeFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1NodeSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1NodeSpec item) { + public V1NodeFluent.SpecNested editOrNewSpecLike(V1NodeSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested editOrNewS * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeStatus getStatus() { + @Deprecated + public V1NodeStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeStatus buildStatus() { + public V1NodeStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1NodeStatus status) { + public A withStatus(V1NodeStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1NodeStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,19 @@ public V1NodeFluent.StatusNested withNewStatus() { return new V1NodeFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1NodeStatus item) { - return new io.kubernetes.client.openapi.models.V1NodeFluentImpl.StatusNestedImpl(item); + public V1NodeFluent.StatusNested withNewStatusLike(V1NodeStatus item) { + return new V1NodeFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested editStatus() { + public V1NodeFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1NodeStatusBuilder().build()); + public V1NodeFluent.StatusNested editOrNewStatus() { + return withNewStatusLike(getStatus() != null ? getStatus() : new V1NodeStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1NodeStatus item) { + public V1NodeFluent.StatusNested editOrNewStatusLike(V1NodeStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +233,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +261,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeFluent.MetadataNested, Nested { + implements V1NodeFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1NodeFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +282,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1NodeSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1NodeFluent.SpecNested, Nested { SpecNestedImpl(V1NodeSpec item) { this.builder = new V1NodeSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeSpecBuilder(this); + this.builder = new V1NodeSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSpecBuilder builder; + V1NodeSpecBuilder builder; public N and() { return (N) V1NodeFluentImpl.this.withSpec(builder.build()); @@ -309,17 +303,16 @@ public N endSpec() { } class StatusNestedImpl extends V1NodeStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1NodeStatus item) { + implements V1NodeFluent.StatusNested, Nested { + StatusNestedImpl(V1NodeStatus item) { this.builder = new V1NodeStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeStatusBuilder(this); + this.builder = new V1NodeStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeStatusBuilder builder; + V1NodeStatusBuilder builder; public N and() { return (N) V1NodeFluentImpl.this.withStatus(builder.build()); 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 6ce33d6654..cd3f347c0d 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeListBuilder extends V1NodeListFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1NodeListBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1NodeListBuilder(Boolean validationEnabled) { this(new V1NodeList(), validationEnabled); } - public V1NodeListBuilder(io.kubernetes.client.openapi.models.V1NodeListFluent fluent) { + public V1NodeListBuilder(V1NodeListFluent fluent) { this(fluent, false); } - public V1NodeListBuilder( - io.kubernetes.client.openapi.models.V1NodeListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeListBuilder(V1NodeListFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeList(), validationEnabled); } - public V1NodeListBuilder( - io.kubernetes.client.openapi.models.V1NodeListFluent fluent, - io.kubernetes.client.openapi.models.V1NodeList instance) { + public V1NodeListBuilder(V1NodeListFluent fluent, V1NodeList instance) { this(fluent, instance, false); } public V1NodeListBuilder( - io.kubernetes.client.openapi.models.V1NodeListFluent fluent, - io.kubernetes.client.openapi.models.V1NodeList instance, - java.lang.Boolean validationEnabled) { + V1NodeListFluent fluent, V1NodeList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -56,13 +50,11 @@ public V1NodeListBuilder( this.validationEnabled = validationEnabled; } - public V1NodeListBuilder(io.kubernetes.client.openapi.models.V1NodeList instance) { + public V1NodeListBuilder(V1NodeList instance) { this(instance, false); } - public V1NodeListBuilder( - io.kubernetes.client.openapi.models.V1NodeList instance, - java.lang.Boolean validationEnabled) { + public V1NodeListBuilder(V1NodeList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -75,10 +67,10 @@ public V1NodeListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeListFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeList build() { + public V1NodeList build() { V1NodeList buildable = new V1NodeList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 43cb1f4cc5..c6c7f4ec47 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 @@ -22,22 +22,21 @@ public interface V1NodeListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1Node item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Node item); + public A setToItems(Integer index, V1Node item); public A addToItems(io.kubernetes.client.openapi.models.V1Node... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,77 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Node buildItem(java.lang.Integer index); + public V1Node buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Node buildFirstItem(); + public V1Node buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Node buildLastItem(); + public V1Node buildLastItem(); - public io.kubernetes.client.openapi.models.V1Node buildMatchingItem( - java.util.function.Predicate predicate); + public V1Node buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Node... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1NodeListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Node item); + public V1NodeListFluent.ItemsNested addNewItemLike(V1Node item); - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Node item); + public V1NodeListFluent.ItemsNested setNewItemLike(Integer index, V1Node item); - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1NodeListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editFirstItem(); + public V1NodeListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editLastItem(); + public V1NodeListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1NodeListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1NodeListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item); + public V1NodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested editMetadata(); + public V1NodeListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested editOrNewMetadata(); + public V1NodeListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1NodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1NodeFluent> { public N and(); @@ -126,8 +117,7 @@ public interface ItemsNested extends Nested, V1NodeFluent - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java index e289b520b4..87924f0c61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluentImpl.java @@ -38,14 +38,14 @@ public V1NodeListFluentImpl(V1NodeList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Node item) { + public A addToItems(Integer index, V1Node item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeBuilder(item); + V1NodeBuilder builder = new V1NodeBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Node item) { + public A setToItems(Integer index, V1Node item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeBuilder(item); + V1NodeBuilder builder = new V1NodeBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Node... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Node item : items) { - io.kubernetes.client.openapi.models.V1NodeBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Node item : items) { - io.kubernetes.client.openapi.models.V1NodeBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeBuilder(item); + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection it } public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items) { - for (io.kubernetes.client.openapi.models.V1Node item : items) { - io.kubernetes.client.openapi.models.V1NodeBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeBuilder(item); + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items) { return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Node item : items) { - io.kubernetes.client.openapi.models.V1NodeBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NodeBuilder builder = each.next(); + V1NodeBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,29 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Node buildItem(java.lang.Integer index) { + public V1Node buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Node buildFirstItem() { + public V1Node buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Node buildLastItem() { + public V1Node buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Node buildMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1NodeBuilder item : items) { + public V1Node buildMatchingItem(Predicate predicate) { + for (V1NodeBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -186,9 +177,8 @@ public io.kubernetes.client.openapi.models.V1Node buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1NodeBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1NodeBuilder item : items) { if (predicate.test(item)) { return true; } @@ -196,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Node item : items) { + this.items = new ArrayList(); + for (V1Node item : items) { this.addToItems(item); } } else { @@ -216,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Node... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Node item : items) { + for (V1Node item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -231,36 +221,31 @@ public V1NodeListFluent.ItemsNested addNewItem() { return new V1NodeListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Node item) { + public V1NodeListFluent.ItemsNested addNewItemLike(V1Node item) { return new V1NodeListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Node item) { - return new io.kubernetes.client.openapi.models.V1NodeListFluentImpl.ItemsNestedImpl( - index, item); + public V1NodeListFluent.ItemsNested setNewItemLike(Integer index, V1Node item) { + return new V1NodeListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1NodeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editFirstItem() { + public V1NodeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editLastItem() { + public V1NodeListFluent.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 io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate) { + public V1NodeListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -272,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested editM return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -290,25 +275,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -316,25 +304,20 @@ public V1NodeListFluent.MetadataNested withNewMetadata() { return new V1NodeListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1NodeListFluentImpl.MetadataNestedImpl(item); + public V1NodeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1NodeListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested editMetadata() { + public V1NodeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested - editOrNewMetadata() { + public V1NodeListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1NodeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -354,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -378,19 +361,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1NodeFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Node item) { + implements V1NodeListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Node item) { this.index = index; this.builder = new V1NodeBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NodeBuilder(this); + this.builder = new V1NodeBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeBuilder builder; - java.lang.Integer index; + V1NodeBuilder builder; + Integer index; public N and() { return (N) V1NodeListFluentImpl.this.setToItems(index, builder.build()); @@ -402,17 +385,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1NodeListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1NodeListFluentImpl.this.withMetadata(builder.build()); 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 93295022b2..d654fdc297 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeSelectorBuilder extends V1NodeSelectorFluentImpl - implements VisitableBuilder< - V1NodeSelector, io.kubernetes.client.openapi.models.V1NodeSelectorBuilder> { + implements VisitableBuilder { public V1NodeSelectorBuilder() { this(false); } @@ -29,45 +28,37 @@ public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent) { this(fluent, false); } - public V1NodeSelectorBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeSelector(), validationEnabled); } - public V1NodeSelectorBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSelector instance) { + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent, V1NodeSelector instance) { this(fluent, instance, false); } public V1NodeSelectorBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSelector instance, - java.lang.Boolean validationEnabled) { + V1NodeSelectorFluent fluent, V1NodeSelector instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withNodeSelectorTerms(instance.getNodeSelectorTerms()); this.validationEnabled = validationEnabled; } - public V1NodeSelectorBuilder(io.kubernetes.client.openapi.models.V1NodeSelector instance) { + public V1NodeSelectorBuilder(V1NodeSelector instance) { this(instance, false); } - public V1NodeSelectorBuilder( - io.kubernetes.client.openapi.models.V1NodeSelector instance, - java.lang.Boolean validationEnabled) { + public V1NodeSelectorBuilder(V1NodeSelector instance, Boolean validationEnabled) { this.fluent = this; this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeSelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeSelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeSelector build() { + public V1NodeSelector build() { V1NodeSelector buildable = new V1NodeSelector(); buildable.setNodeSelectorTerms(fluent.getNodeSelectorTerms()); return buildable; 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 a7ac323083..372dcc731a 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 @@ -22,19 +22,16 @@ public interface V1NodeSelectorFluent> extends Fluent { public A addToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item); - public A setToNodeSelectorTerms( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorTerm item); + public A setToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item); public A addToNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items); - public A addAllToNodeSelectorTerms( - Collection items); + public A addAllToNodeSelectorTerms(Collection items); public A removeFromNodeSelectorTerms( io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items); - public A removeAllFromNodeSelectorTerms( - java.util.Collection items); + public A removeAllFromNodeSelectorTerms(Collection items); public A removeMatchingFromNodeSelectorTerms(Predicate predicate); @@ -44,57 +41,44 @@ public A removeAllFromNodeSelectorTerms( * @return The buildable object. */ @Deprecated - public List getNodeSelectorTerms(); + public List getNodeSelectorTerms(); - public java.util.List - buildNodeSelectorTerms(); + public List buildNodeSelectorTerms(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildNodeSelectorTerm( - java.lang.Integer index); + public V1NodeSelectorTerm buildNodeSelectorTerm(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildFirstNodeSelectorTerm(); + public V1NodeSelectorTerm buildFirstNodeSelectorTerm(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildLastNodeSelectorTerm(); + public V1NodeSelectorTerm buildLastNodeSelectorTerm(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildMatchingNodeSelectorTerm( - java.util.function.Predicate - predicate); + public V1NodeSelectorTerm buildMatchingNodeSelectorTerm( + Predicate predicate); - public Boolean hasMatchingNodeSelectorTerm( - java.util.function.Predicate - predicate); + public Boolean hasMatchingNodeSelectorTerm(Predicate predicate); - public A withNodeSelectorTerms( - java.util.List nodeSelectorTerms); + public A withNodeSelectorTerms(List nodeSelectorTerms); public A withNodeSelectorTerms( io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms); - public java.lang.Boolean hasNodeSelectorTerms(); + public Boolean hasNodeSelectorTerms(); public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTerm(); - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - addNewNodeSelectorTermLike(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item); + public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTermLike( + V1NodeSelectorTerm item); - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - setNewNodeSelectorTermLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorTerm item); + public V1NodeSelectorFluent.NodeSelectorTermsNested setNewNodeSelectorTermLike( + Integer index, V1NodeSelectorTerm item); - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editNodeSelectorTerm(java.lang.Integer index); + public V1NodeSelectorFluent.NodeSelectorTermsNested editNodeSelectorTerm(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editFirstNodeSelectorTerm(); + public V1NodeSelectorFluent.NodeSelectorTermsNested editFirstNodeSelectorTerm(); - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editLastNodeSelectorTerm(); + public V1NodeSelectorFluent.NodeSelectorTermsNested editLastNodeSelectorTerm(); - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editMatchingNodeSelectorTerm( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder> - predicate); + public V1NodeSelectorFluent.NodeSelectorTermsNested editMatchingNodeSelectorTerm( + Predicate predicate); public interface NodeSelectorTermsNested extends Nested, V1NodeSelectorTermFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java index f04c3a01bc..6c655ed8d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluentImpl.java @@ -26,7 +26,7 @@ public class V1NodeSelectorFluentImpl> extends implements V1NodeSelectorFluent { public V1NodeSelectorFluentImpl() {} - public V1NodeSelectorFluentImpl(io.kubernetes.client.openapi.models.V1NodeSelector instance) { + public V1NodeSelectorFluentImpl(V1NodeSelector instance) { this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); } @@ -34,11 +34,9 @@ public V1NodeSelectorFluentImpl(io.kubernetes.client.openapi.models.V1NodeSelect public A addToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = - new java.util.ArrayList(); + this.nodeSelectorTerms = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(item); + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); _visitables .get("nodeSelectorTerms") .add(index >= 0 ? index : _visitables.get("nodeSelectorTerms").size(), builder); @@ -46,14 +44,11 @@ public A addToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item) { return (A) this; } - public A setToNodeSelectorTerms( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { + public A setToNodeSelectorTerms(Integer index, V1NodeSelectorTerm item) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = - new java.util.ArrayList(); + this.nodeSelectorTerms = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(item); + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); if (index < 0 || index >= _visitables.get("nodeSelectorTerms").size()) { _visitables.get("nodeSelectorTerms").add(builder); } else { @@ -69,27 +64,22 @@ public A setToNodeSelectorTerms( public A addToNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = - new java.util.ArrayList(); + this.nodeSelectorTerms = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeSelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(item); + 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) { + public A addAllToNodeSelectorTerms(Collection items) { if (this.nodeSelectorTerms == null) { - this.nodeSelectorTerms = - new java.util.ArrayList(); + this.nodeSelectorTerms = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeSelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(item); + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); _visitables.get("nodeSelectorTerms").add(builder); this.nodeSelectorTerms.add(builder); } @@ -98,9 +88,8 @@ public A addAllToNodeSelectorTerms( public A removeFromNodeSelectorTerms( io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(item); + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); _visitables.get("nodeSelectorTerms").remove(builder); if (this.nodeSelectorTerms != null) { this.nodeSelectorTerms.remove(builder); @@ -109,11 +98,9 @@ public A removeFromNodeSelectorTerms( return (A) this; } - public A removeAllFromNodeSelectorTerms( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(item); + public A removeAllFromNodeSelectorTerms(Collection items) { + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); _visitables.get("nodeSelectorTerms").remove(builder); if (this.nodeSelectorTerms != null) { this.nodeSelectorTerms.remove(builder); @@ -122,14 +109,12 @@ public A removeAllFromNodeSelectorTerms( return (A) this; } - public A removeMatchingFromNodeSelectorTerms( - Predicate predicate) { + public A removeMatchingFromNodeSelectorTerms(Predicate predicate) { if (nodeSelectorTerms == null) return (A) this; - final Iterator each = - nodeSelectorTerms.iterator(); + final Iterator each = nodeSelectorTerms.iterator(); final List visitables = _visitables.get("nodeSelectorTerms"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder = each.next(); + V1NodeSelectorTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -144,32 +129,29 @@ public A removeMatchingFromNodeSelectorTerms( * @return The buildable object. */ @Deprecated - public List getNodeSelectorTerms() { + public List getNodeSelectorTerms() { return nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; } - public java.util.List - buildNodeSelectorTerms() { + public List buildNodeSelectorTerms() { return nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; } - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildNodeSelectorTerm( - java.lang.Integer index) { + public V1NodeSelectorTerm buildNodeSelectorTerm(Integer index) { return this.nodeSelectorTerms.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildFirstNodeSelectorTerm() { + public V1NodeSelectorTerm buildFirstNodeSelectorTerm() { return this.nodeSelectorTerms.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildLastNodeSelectorTerm() { + public V1NodeSelectorTerm buildLastNodeSelectorTerm() { return this.nodeSelectorTerms.get(nodeSelectorTerms.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildMatchingNodeSelectorTerm( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder item : nodeSelectorTerms) { + public V1NodeSelectorTerm buildMatchingNodeSelectorTerm( + Predicate predicate) { + for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { if (predicate.test(item)) { return item.build(); } @@ -177,10 +159,8 @@ public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildMatchingNodeS return null; } - public Boolean hasMatchingNodeSelectorTerm( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder item : nodeSelectorTerms) { + public Boolean hasMatchingNodeSelectorTerm(Predicate predicate) { + for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { if (predicate.test(item)) { return true; } @@ -188,14 +168,13 @@ public Boolean hasMatchingNodeSelectorTerm( return false; } - public A withNodeSelectorTerms( - java.util.List nodeSelectorTerms) { + public A withNodeSelectorTerms(List nodeSelectorTerms) { if (this.nodeSelectorTerms != null) { _visitables.get("nodeSelectorTerms").removeAll(this.nodeSelectorTerms); } if (nodeSelectorTerms != null) { - this.nodeSelectorTerms = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NodeSelectorTerm item : nodeSelectorTerms) { + this.nodeSelectorTerms = new ArrayList(); + for (V1NodeSelectorTerm item : nodeSelectorTerms) { this.addToNodeSelectorTerms(item); } } else { @@ -210,14 +189,14 @@ public A withNodeSelectorTerms( this.nodeSelectorTerms.clear(); } if (nodeSelectorTerms != null) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorTerm item : nodeSelectorTerms) { + for (V1NodeSelectorTerm item : nodeSelectorTerms) { this.addToNodeSelectorTerms(item); } } return (A) this; } - public java.lang.Boolean hasNodeSelectorTerms() { + public Boolean hasNodeSelectorTerms() { return nodeSelectorTerms != null && !nodeSelectorTerms.isEmpty(); } @@ -225,45 +204,37 @@ public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTerm() return new V1NodeSelectorFluentImpl.NodeSelectorTermsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - addNewNodeSelectorTermLike(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { + public V1NodeSelectorFluent.NodeSelectorTermsNested addNewNodeSelectorTermLike( + V1NodeSelectorTerm item) { return new V1NodeSelectorFluentImpl.NodeSelectorTermsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - setNewNodeSelectorTermLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { - return new io.kubernetes.client.openapi.models.V1NodeSelectorFluentImpl - .NodeSelectorTermsNestedImpl(index, item); + public V1NodeSelectorFluent.NodeSelectorTermsNested setNewNodeSelectorTermLike( + Integer index, V1NodeSelectorTerm item) { + return new V1NodeSelectorFluentImpl.NodeSelectorTermsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editNodeSelectorTerm(java.lang.Integer index) { + public V1NodeSelectorFluent.NodeSelectorTermsNested editNodeSelectorTerm(Integer index) { if (nodeSelectorTerms.size() <= index) throw new RuntimeException("Can't edit nodeSelectorTerms. Index exceeds size."); return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editFirstNodeSelectorTerm() { + public V1NodeSelectorFluent.NodeSelectorTermsNested editFirstNodeSelectorTerm() { if (nodeSelectorTerms.size() == 0) throw new RuntimeException("Can't edit first nodeSelectorTerms. The list is empty."); return setNewNodeSelectorTermLike(0, buildNodeSelectorTerm(0)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editLastNodeSelectorTerm() { + public V1NodeSelectorFluent.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)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested - editMatchingNodeSelectorTerm( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder> - predicate) { + public V1NodeSelectorFluent.NodeSelectorTermsNested editMatchingNodeSelectorTerm( + Predicate predicate) { int index = -1; for (int i = 0; i < nodeSelectorTerms.size(); i++) { if (predicate.test(nodeSelectorTerms.get(i))) { @@ -303,22 +274,19 @@ public String toString() { class NodeSelectorTermsNestedImpl extends V1NodeSelectorTermFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeSelectorFluent.NodeSelectorTermsNested< - N>, - Nested { - NodeSelectorTermsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { + implements V1NodeSelectorFluent.NodeSelectorTermsNested, Nested { + NodeSelectorTermsNestedImpl(Integer index, V1NodeSelectorTerm item) { this.index = index; this.builder = new V1NodeSelectorTermBuilder(this, item); } NodeSelectorTermsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(this); + this.builder = new V1NodeSelectorTermBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder; - java.lang.Integer index; + V1NodeSelectorTermBuilder builder; + Integer index; public N and() { return (N) V1NodeSelectorFluentImpl.this.setToNodeSelectorTerms(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java index 6520a29efa..c159a0fae8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java @@ -16,9 +16,7 @@ public class V1NodeSelectorRequirementBuilder extends V1NodeSelectorRequirementFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement, - V1NodeSelectorRequirementBuilder> { + implements VisitableBuilder { public V1NodeSelectorRequirementBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1NodeSelectorRequirementBuilder(Boolean validationEnabled) { this(new V1NodeSelectorRequirement(), validationEnabled); } - public V1NodeSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementFluent fluent) { + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent) { this(fluent, false); } public V1NodeSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementFluent fluent, - java.lang.Boolean validationEnabled) { + V1NodeSelectorRequirementFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeSelectorRequirement(), validationEnabled); } public V1NodeSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement instance) { + V1NodeSelectorRequirementFluent fluent, V1NodeSelectorRequirement instance) { this(fluent, instance, false); } public V1NodeSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement instance, - java.lang.Boolean validationEnabled) { + V1NodeSelectorRequirementFluent fluent, + V1NodeSelectorRequirement instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKey(instance.getKey()); @@ -58,14 +53,12 @@ public V1NodeSelectorRequirementBuilder( this.validationEnabled = validationEnabled; } - public V1NodeSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement instance) { + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirement instance) { this(instance, false); } public V1NodeSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement instance, - java.lang.Boolean validationEnabled) { + V1NodeSelectorRequirement instance, Boolean validationEnabled) { this.fluent = this; this.withKey(instance.getKey()); @@ -76,10 +69,10 @@ public V1NodeSelectorRequirementBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeSelectorRequirementFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement build() { + public V1NodeSelectorRequirement build() { V1NodeSelectorRequirement buildable = new V1NodeSelectorRequirement(); buildable.setKey(fluent.getKey()); buildable.setOperator(fluent.getOperator()); 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 6c511b67af..d687cc643f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java @@ -22,44 +22,43 @@ public interface V1NodeSelectorRequirementFluent { public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); public Boolean hasKey(); - public java.lang.String getOperator(); + public String getOperator(); - public A withOperator(java.lang.String operator); + public A withOperator(String operator); - public java.lang.Boolean hasOperator(); + public Boolean hasOperator(); - public A addToValues(Integer index, java.lang.String item); + public A addToValues(Integer index, String item); - public A setToValues(java.lang.Integer index, java.lang.String item); + public A setToValues(Integer index, String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); + public A addAllToValues(Collection items); public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(java.util.Collection items); + public A removeAllFromValues(Collection items); - public List getValues(); + public List getValues(); - public java.lang.String getValue(java.lang.Integer index); + public String getValue(Integer index); - public java.lang.String getFirstValue(); + public String getFirstValue(); - public java.lang.String getLastValue(); + public String getLastValue(); - public java.lang.String getMatchingValue(Predicate predicate); + public String getMatchingValue(Predicate predicate); - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate); + public Boolean hasMatchingValue(Predicate predicate); - public A withValues(java.util.List values); + public A withValues(List values); public A withValues(java.lang.String... values); - public java.lang.Boolean hasValues(); + public Boolean hasValues(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java index b4f268498f..a486f25ec5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluentImpl.java @@ -24,8 +24,7 @@ public class V1NodeSelectorRequirementFluentImpl implements V1NodeSelectorRequirementFluent { public V1NodeSelectorRequirementFluentImpl() {} - public V1NodeSelectorRequirementFluentImpl( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement instance) { + public V1NodeSelectorRequirementFluentImpl(V1NodeSelectorRequirement instance) { this.withKey(instance.getKey()); this.withOperator(instance.getOperator()); @@ -34,14 +33,14 @@ public V1NodeSelectorRequirementFluentImpl( } private String key; - private java.lang.String operator; - private List values; + private String operator; + private List values; - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } @@ -50,30 +49,30 @@ public Boolean hasKey() { return this.key != null; } - public java.lang.String getOperator() { + public String getOperator() { return this.operator; } - public A withOperator(java.lang.String operator) { + public A withOperator(String operator) { this.operator = operator; return (A) this; } - public java.lang.Boolean hasOperator() { + public Boolean hasOperator() { return this.operator != null; } - public A addToValues(Integer index, java.lang.String item) { + public A addToValues(Integer index, String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList(); } this.values.add(index, item); return (A) this; } - public A setToValues(java.lang.Integer index, java.lang.String item) { + public A setToValues(Integer index, String item) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } this.values.set(index, item); return (A) this; @@ -81,26 +80,26 @@ public A setToValues(java.lang.Integer index, java.lang.String item) { public A addToValues(java.lang.String... items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } - public A addAllToValues(Collection items) { + public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } public A removeFromValues(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -108,8 +107,8 @@ public A removeFromValues(java.lang.String... items) { return (A) this; } - public A removeAllFromValues(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromValues(Collection items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -117,24 +116,24 @@ public A removeAllFromValues(java.util.Collection items) { return (A) this; } - public java.util.List getValues() { + public List getValues() { return this.values; } - public java.lang.String getValue(java.lang.Integer index) { + public String getValue(Integer index) { return this.values.get(index); } - public java.lang.String getFirstValue() { + public String getFirstValue() { return this.values.get(0); } - public java.lang.String getLastValue() { + public String getLastValue() { return this.values.get(values.size() - 1); } - public java.lang.String getMatchingValue(Predicate predicate) { - for (java.lang.String item : values) { + public String getMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return item; } @@ -142,9 +141,8 @@ public java.lang.String getMatchingValue(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate) { - for (java.lang.String item : values) { + public Boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return true; } @@ -152,10 +150,10 @@ public java.lang.Boolean hasMatchingValue( return false; } - public A withValues(java.util.List values) { + public A withValues(List values) { if (values != null) { - this.values = new java.util.ArrayList(); - for (java.lang.String item : values) { + this.values = new ArrayList(); + for (String item : values) { this.addToValues(item); } } else { @@ -169,14 +167,14 @@ public A withValues(java.lang.String... values) { this.values.clear(); } if (values != null) { - for (java.lang.String item : values) { + for (String item : values) { this.addToValues(item); } } return (A) this; } - public java.lang.Boolean hasValues() { + public Boolean hasValues() { return values != null && !values.isEmpty(); } @@ -194,7 +192,7 @@ public int hashCode() { return java.util.Objects.hash(key, operator, values, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (key != null) { 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 9af2434737..30d4f696f7 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 @@ -16,8 +16,7 @@ public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NodeSelectorTerm, V1NodeSelectorTermBuilder> { + implements VisitableBuilder { public V1NodeSelectorTermBuilder() { this(false); } @@ -26,27 +25,21 @@ public V1NodeSelectorTermBuilder(Boolean validationEnabled) { this(new V1NodeSelectorTerm(), validationEnabled); } - public V1NodeSelectorTermBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent fluent) { + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent) { this(fluent, false); } - public V1NodeSelectorTermBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeSelectorTerm(), validationEnabled); } public V1NodeSelectorTermBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSelectorTerm instance) { + V1NodeSelectorTermFluent fluent, V1NodeSelectorTerm instance) { this(fluent, instance, false); } public V1NodeSelectorTermBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSelectorTerm instance, - java.lang.Boolean validationEnabled) { + V1NodeSelectorTermFluent fluent, V1NodeSelectorTerm instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMatchExpressions(instance.getMatchExpressions()); @@ -55,14 +48,11 @@ public V1NodeSelectorTermBuilder( this.validationEnabled = validationEnabled; } - public V1NodeSelectorTermBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm instance) { + public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance) { this(instance, false); } - public V1NodeSelectorTermBuilder( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm instance, - java.lang.Boolean validationEnabled) { + public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance, Boolean validationEnabled) { this.fluent = this; this.withMatchExpressions(instance.getMatchExpressions()); @@ -71,10 +61,10 @@ public V1NodeSelectorTermBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeSelectorTermFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm build() { + public V1NodeSelectorTerm build() { V1NodeSelectorTerm buildable = new V1NodeSelectorTerm(); buildable.setMatchExpressions(fluent.getMatchExpressions()); buildable.setMatchFields(fluent.getMatchFields()); 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 e7786e5592..d202f7ba9b 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 @@ -22,20 +22,17 @@ public interface V1NodeSelectorTermFluent> extends Fluent { public A addToMatchExpressions(Integer index, V1NodeSelectorRequirement item); - public A setToMatchExpressions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public A setToMatchExpressions(Integer index, V1NodeSelectorRequirement item); public A addToMatchExpressions( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - public A addAllToMatchExpressions( - Collection items); + public A addAllToMatchExpressions(Collection items); public A removeFromMatchExpressions( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - public A removeAllFromMatchExpressions( - java.util.Collection items); + public A removeAllFromMatchExpressions(Collection items); public A removeMatchingFromMatchExpressions( Predicate predicate); @@ -46,145 +43,104 @@ public A removeMatchingFromMatchExpressions( * @return The buildable object. */ @Deprecated - public List getMatchExpressions(); + public List getMatchExpressions(); - public java.util.List - buildMatchExpressions(); + public List buildMatchExpressions(); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchExpression( - java.lang.Integer index); + public V1NodeSelectorRequirement buildMatchExpression(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildFirstMatchExpression(); + public V1NodeSelectorRequirement buildFirstMatchExpression(); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildLastMatchExpression(); + public V1NodeSelectorRequirement buildLastMatchExpression(); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public V1NodeSelectorRequirement buildMatchingMatchExpression( + Predicate predicate); - public Boolean hasMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public Boolean hasMatchingMatchExpression(Predicate predicate); - public A withMatchExpressions( - java.util.List - matchExpressions); + public A withMatchExpressions(List matchExpressions); public A withMatchExpressions( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions); - public java.lang.Boolean hasMatchExpressions(); + public Boolean hasMatchExpressions(); public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpression(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - addNewMatchExpressionLike(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpressionLike( + V1NodeSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - setNewMatchExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public V1NodeSelectorTermFluent.MatchExpressionsNested setNewMatchExpressionLike( + Integer index, V1NodeSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editMatchExpression(java.lang.Integer index); + public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchExpression(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editFirstMatchExpression(); + public V1NodeSelectorTermFluent.MatchExpressionsNested editFirstMatchExpression(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editLastMatchExpression(); + public V1NodeSelectorTermFluent.MatchExpressionsNested editLastMatchExpression(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchingMatchExpression( + Predicate predicate); - public A addToMatchFields( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public A addToMatchFields(Integer index, V1NodeSelectorRequirement item); - public A setToMatchFields( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public A setToMatchFields(Integer index, V1NodeSelectorRequirement item); public A addToMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - public A addAllToMatchFields( - java.util.Collection items); + public A addAllToMatchFields(Collection items); public A removeFromMatchFields( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items); - public A removeAllFromMatchFields( - java.util.Collection items); + public A removeAllFromMatchFields(Collection items); - public A removeMatchingFromMatchFields( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public A removeMatchingFromMatchFields(Predicate predicate); /** * This method has been deprecated, please use method buildMatchFields instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getMatchFields(); + @Deprecated + public List getMatchFields(); - public java.util.List - buildMatchFields(); + public List buildMatchFields(); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchField( - java.lang.Integer index); + public V1NodeSelectorRequirement buildMatchField(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildFirstMatchField(); + public V1NodeSelectorRequirement buildFirstMatchField(); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildLastMatchField(); + public V1NodeSelectorRequirement buildLastMatchField(); - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchingMatchField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public V1NodeSelectorRequirement buildMatchingMatchField( + Predicate predicate); - public java.lang.Boolean hasMatchingMatchField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public Boolean hasMatchingMatchField(Predicate predicate); - public A withMatchFields( - java.util.List matchFields); + public A withMatchFields(List matchFields); public A withMatchFields( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields); - public java.lang.Boolean hasMatchFields(); + public Boolean hasMatchFields(); public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchField(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - addNewMatchFieldLike(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchFieldLike( + V1NodeSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - setNewMatchFieldLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item); + public V1NodeSelectorTermFluent.MatchFieldsNested setNewMatchFieldLike( + Integer index, V1NodeSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editMatchField(java.lang.Integer index); + public V1NodeSelectorTermFluent.MatchFieldsNested editMatchField(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editFirstMatchField(); + public V1NodeSelectorTermFluent.MatchFieldsNested editFirstMatchField(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editLastMatchField(); + public V1NodeSelectorTermFluent.MatchFieldsNested editLastMatchField(); - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editMatchingMatchField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate); + public V1NodeSelectorTermFluent.MatchFieldsNested editMatchingMatchField( + Predicate predicate); public interface MatchExpressionsNested extends Nested, @@ -195,7 +151,7 @@ public interface MatchExpressionsNested } public interface MatchFieldsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1NodeSelectorRequirementFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java index 20af535775..371cd61c6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluentImpl.java @@ -26,25 +26,20 @@ public class V1NodeSelectorTermFluentImpl> extends BaseFluent implements V1NodeSelectorTermFluent { public V1NodeSelectorTermFluentImpl() {} - public V1NodeSelectorTermFluentImpl( - io.kubernetes.client.openapi.models.V1NodeSelectorTerm instance) { + public V1NodeSelectorTermFluentImpl(V1NodeSelectorTerm instance) { this.withMatchExpressions(instance.getMatchExpressions()); this.withMatchFields(instance.getMatchFields()); } private ArrayList matchExpressions; - private java.util.ArrayList matchFields; + private ArrayList matchFields; - public A addToMatchExpressions( - Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + public A addToMatchExpressions(Integer index, V1NodeSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables .get("matchExpressions") .add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder); @@ -52,15 +47,11 @@ public A addToMatchExpressions( return (A) this; } - public A setToMatchExpressions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + public A setToMatchExpressions(Integer index, V1NodeSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= _visitables.get("matchExpressions").size()) { _visitables.get("matchExpressions").add(builder); } else { @@ -77,29 +68,22 @@ public A setToMatchExpressions( public A addToMatchExpressions( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + 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) { + public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } @@ -108,9 +92,8 @@ public A addAllToMatchExpressions( public A removeFromMatchExpressions( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchExpressions").remove(builder); if (this.matchExpressions != null) { this.matchExpressions.remove(builder); @@ -119,11 +102,9 @@ public A removeFromMatchExpressions( return (A) this; } - public A removeAllFromMatchExpressions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + public A removeAllFromMatchExpressions(Collection items) { + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchExpressions").remove(builder); if (this.matchExpressions != null) { this.matchExpressions.remove(builder); @@ -133,13 +114,12 @@ public A removeAllFromMatchExpressions( } public A removeMatchingFromMatchExpressions( - Predicate predicate) { + Predicate predicate) { if (matchExpressions == null) return (A) this; - final Iterator each = - matchExpressions.iterator(); + final Iterator each = matchExpressions.iterator(); final List visitables = _visitables.get("matchExpressions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = each.next(); + V1NodeSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -154,34 +134,29 @@ public A removeMatchingFromMatchExpressions( * @return The buildable object. */ @Deprecated - public List getMatchExpressions() { + public List getMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public java.util.List - buildMatchExpressions() { + public List buildMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchExpression( - java.lang.Integer index) { + public V1NodeSelectorRequirement buildMatchExpression(Integer index) { return this.matchExpressions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildFirstMatchExpression() { + public V1NodeSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildLastMatchExpression() { + public V1NodeSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder item : - matchExpressions) { + public V1NodeSelectorRequirement buildMatchingMatchExpression( + Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { return item.build(); } @@ -189,12 +164,8 @@ public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchi return null; } - public Boolean hasMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder item : - matchExpressions) { + public Boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { return true; } @@ -202,15 +173,13 @@ public Boolean hasMatchingMatchExpression( return false; } - public A withMatchExpressions( - java.util.List - matchExpressions) { + public A withMatchExpressions(List matchExpressions) { if (this.matchExpressions != null) { _visitables.get("matchExpressions").removeAll(this.matchExpressions); } if (matchExpressions != null) { - this.matchExpressions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : matchExpressions) { + this.matchExpressions = new ArrayList(); + for (V1NodeSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } } else { @@ -225,14 +194,14 @@ public A withMatchExpressions( this.matchExpressions.clear(); } if (matchExpressions != null) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : matchExpressions) { + for (V1NodeSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } } return (A) this; } - public java.lang.Boolean hasMatchExpressions() { + public Boolean hasMatchExpressions() { return matchExpressions != null && !matchExpressions.isEmpty(); } @@ -240,47 +209,37 @@ public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpression( return new V1NodeSelectorTermFluentImpl.MatchExpressionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - addNewMatchExpressionLike( - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpressionLike( + V1NodeSelectorRequirement item) { return new V1NodeSelectorTermFluentImpl.MatchExpressionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - setNewMatchExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { - return new io.kubernetes.client.openapi.models.V1NodeSelectorTermFluentImpl - .MatchExpressionsNestedImpl(index, item); + public V1NodeSelectorTermFluent.MatchExpressionsNested setNewMatchExpressionLike( + Integer index, V1NodeSelectorRequirement item) { + return new V1NodeSelectorTermFluentImpl.MatchExpressionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editMatchExpression(java.lang.Integer index) { + public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchExpression(Integer index) { if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editFirstMatchExpression() { + public V1NodeSelectorTermFluent.MatchExpressionsNested editFirstMatchExpression() { if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); return setNewMatchExpressionLike(0, buildMatchExpression(0)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editLastMatchExpression() { + public V1NodeSelectorTermFluent.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)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchExpressionsNested - editMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { + public V1NodeSelectorTermFluent.MatchExpressionsNested editMatchingMatchExpression( + Predicate predicate) { int index = -1; for (int i = 0; i < matchExpressions.size(); i++) { if (predicate.test(matchExpressions.get(i))) { @@ -293,15 +252,11 @@ public V1NodeSelectorTermFluent.MatchExpressionsNested addNewMatchExpression( return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public A addToMatchFields( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + public A addToMatchFields(Integer index, V1NodeSelectorRequirement item) { if (this.matchFields == null) { - this.matchFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchFields = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables .get("matchFields") .add(index >= 0 ? index : _visitables.get("matchFields").size(), builder); @@ -309,15 +264,11 @@ public A addToMatchFields( return (A) this; } - public A setToMatchFields( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + public A setToMatchFields(Integer index, V1NodeSelectorRequirement item) { if (this.matchFields == null) { - this.matchFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchFields = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); if (index < 0 || index >= _visitables.get("matchFields").size()) { _visitables.get("matchFields").add(builder); } else { @@ -334,29 +285,22 @@ public A setToMatchFields( public A addToMatchFields( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { if (this.matchFields == null) { - this.matchFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchFields = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchFields").add(builder); this.matchFields.add(builder); } return (A) this; } - public A addAllToMatchFields( - java.util.Collection items) { + public A addAllToMatchFields(Collection items) { if (this.matchFields == null) { - this.matchFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder>(); + this.matchFields = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchFields").add(builder); this.matchFields.add(builder); } @@ -365,9 +309,8 @@ public A addAllToMatchFields( public A removeFromMatchFields( io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchFields").remove(builder); if (this.matchFields != null) { this.matchFields.remove(builder); @@ -376,11 +319,9 @@ public A removeFromMatchFields( return (A) this; } - public A removeAllFromMatchFields( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(item); + public A removeAllFromMatchFields(Collection items) { + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); _visitables.get("matchFields").remove(builder); if (this.matchFields != null) { this.matchFields.remove(builder); @@ -389,16 +330,12 @@ public A removeAllFromMatchFields( return (A) this; } - public A removeMatchingFromMatchFields( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { + public A removeMatchingFromMatchFields(Predicate predicate) { if (matchFields == null) return (A) this; - final Iterator each = - matchFields.iterator(); + final Iterator each = matchFields.iterator(); final List visitables = _visitables.get("matchFields"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder = each.next(); + V1NodeSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -412,35 +349,30 @@ public A removeMatchingFromMatchFields( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getMatchFields() { + @Deprecated + public List getMatchFields() { return matchFields != null ? build(matchFields) : null; } - public java.util.List - buildMatchFields() { + public List buildMatchFields() { return matchFields != null ? build(matchFields) : null; } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchField( - java.lang.Integer index) { + public V1NodeSelectorRequirement buildMatchField(Integer index) { return this.matchFields.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildFirstMatchField() { + public V1NodeSelectorRequirement buildFirstMatchField() { return this.matchFields.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildLastMatchField() { + public V1NodeSelectorRequirement buildLastMatchField() { return this.matchFields.get(matchFields.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchingMatchField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder item : matchFields) { + public V1NodeSelectorRequirement buildMatchingMatchField( + Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchFields) { if (predicate.test(item)) { return item.build(); } @@ -448,11 +380,8 @@ public io.kubernetes.client.openapi.models.V1NodeSelectorRequirement buildMatchi return null; } - public java.lang.Boolean hasMatchingMatchField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder item : matchFields) { + public Boolean hasMatchingMatchField(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchFields) { if (predicate.test(item)) { return true; } @@ -460,14 +389,13 @@ public java.lang.Boolean hasMatchingMatchField( return false; } - public A withMatchFields( - java.util.List matchFields) { + public A withMatchFields(List matchFields) { if (this.matchFields != null) { _visitables.get("matchFields").removeAll(this.matchFields); } if (matchFields != null) { - this.matchFields = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : matchFields) { + this.matchFields = new ArrayList(); + for (V1NodeSelectorRequirement item : matchFields) { this.addToMatchFields(item); } } else { @@ -482,14 +410,14 @@ public A withMatchFields( this.matchFields.clear(); } if (matchFields != null) { - for (io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item : matchFields) { + for (V1NodeSelectorRequirement item : matchFields) { this.addToMatchFields(item); } } return (A) this; } - public java.lang.Boolean hasMatchFields() { + public Boolean hasMatchFields() { return matchFields != null && !matchFields.isEmpty(); } @@ -497,46 +425,36 @@ public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchField() { return new V1NodeSelectorTermFluentImpl.MatchFieldsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - addNewMatchFieldLike(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { - return new io.kubernetes.client.openapi.models.V1NodeSelectorTermFluentImpl - .MatchFieldsNestedImpl(-1, item); + public V1NodeSelectorTermFluent.MatchFieldsNested addNewMatchFieldLike( + V1NodeSelectorRequirement item) { + return new V1NodeSelectorTermFluentImpl.MatchFieldsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - setNewMatchFieldLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { - return new io.kubernetes.client.openapi.models.V1NodeSelectorTermFluentImpl - .MatchFieldsNestedImpl(index, item); + public V1NodeSelectorTermFluent.MatchFieldsNested setNewMatchFieldLike( + Integer index, V1NodeSelectorRequirement item) { + return new V1NodeSelectorTermFluentImpl.MatchFieldsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editMatchField(java.lang.Integer index) { + public V1NodeSelectorTermFluent.MatchFieldsNested editMatchField(Integer index) { if (matchFields.size() <= index) throw new RuntimeException("Can't edit matchFields. Index exceeds size."); return setNewMatchFieldLike(index, buildMatchField(index)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editFirstMatchField() { + public V1NodeSelectorTermFluent.MatchFieldsNested editFirstMatchField() { if (matchFields.size() == 0) throw new RuntimeException("Can't edit first matchFields. The list is empty."); return setNewMatchFieldLike(0, buildMatchField(0)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editLastMatchField() { + public V1NodeSelectorTermFluent.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)); } - public io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested - editMatchingMatchField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder> - predicate) { + public V1NodeSelectorTermFluent.MatchFieldsNested editMatchingMatchField( + Predicate predicate) { int index = -1; for (int i = 0; i < matchFields.size(); i++) { if (predicate.test(matchFields.get(i))) { @@ -582,24 +500,19 @@ public String toString() { class MatchExpressionsNestedImpl extends V1NodeSelectorRequirementFluentImpl< V1NodeSelectorTermFluent.MatchExpressionsNested> - implements io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent - .MatchExpressionsNested< - N>, - Nested { - MatchExpressionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + implements V1NodeSelectorTermFluent.MatchExpressionsNested, Nested { + MatchExpressionsNestedImpl(Integer index, V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } MatchExpressionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(this); + this.builder = new V1NodeSelectorRequirementBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder; - java.lang.Integer index; + V1NodeSelectorRequirementBuilder builder; + Integer index; public N and() { return (N) V1NodeSelectorTermFluentImpl.this.setToMatchExpressions(index, builder.build()); @@ -612,22 +525,19 @@ public N endMatchExpression() { class MatchFieldsNestedImpl extends V1NodeSelectorRequirementFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeSelectorTermFluent.MatchFieldsNested, - io.kubernetes.client.fluent.Nested { - MatchFieldsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1NodeSelectorRequirement item) { + implements V1NodeSelectorTermFluent.MatchFieldsNested, Nested { + MatchFieldsNestedImpl(Integer index, V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } MatchFieldsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder(this); + this.builder = new V1NodeSelectorRequirementBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSelectorRequirementBuilder builder; - java.lang.Integer index; + V1NodeSelectorRequirementBuilder builder; + Integer index; public N and() { return (N) V1NodeSelectorTermFluentImpl.this.setToMatchFields(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java index 5fe4e80916..9845e82d69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeSpecBuilder extends V1NodeSpecFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1NodeSpecBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1NodeSpecBuilder(V1NodeSpecFluent fluent) { this(fluent, false); } - public V1NodeSpecBuilder( - io.kubernetes.client.openapi.models.V1NodeSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeSpecBuilder(V1NodeSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeSpec(), validationEnabled); } - public V1NodeSpecBuilder( - io.kubernetes.client.openapi.models.V1NodeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSpec instance) { + public V1NodeSpecBuilder(V1NodeSpecFluent fluent, V1NodeSpec instance) { this(fluent, instance, false); } public V1NodeSpecBuilder( - io.kubernetes.client.openapi.models.V1NodeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSpec instance, - java.lang.Boolean validationEnabled) { + V1NodeSpecFluent fluent, V1NodeSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConfigSource(instance.getConfigSource()); @@ -62,13 +56,11 @@ public V1NodeSpecBuilder( this.validationEnabled = validationEnabled; } - public V1NodeSpecBuilder(io.kubernetes.client.openapi.models.V1NodeSpec instance) { + public V1NodeSpecBuilder(V1NodeSpec instance) { this(instance, false); } - public V1NodeSpecBuilder( - io.kubernetes.client.openapi.models.V1NodeSpec instance, - java.lang.Boolean validationEnabled) { + public V1NodeSpecBuilder(V1NodeSpec instance, Boolean validationEnabled) { this.fluent = this; this.withConfigSource(instance.getConfigSource()); @@ -87,10 +79,10 @@ public V1NodeSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeSpec build() { + public V1NodeSpec build() { V1NodeSpec buildable = new V1NodeSpec(); buildable.setConfigSource(fluent.getConfigSource()); buildable.setExternalID(fluent.getExternalID()); 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 e8ff2efe42..db4b4960f8 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 @@ -29,141 +29,129 @@ public interface V1NodeSpecFluent> extends Fluent< @Deprecated public V1NodeConfigSource getConfigSource(); - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildConfigSource(); + public V1NodeConfigSource buildConfigSource(); - public A withConfigSource(io.kubernetes.client.openapi.models.V1NodeConfigSource configSource); + public A withConfigSource(V1NodeConfigSource configSource); public Boolean hasConfigSource(); public V1NodeSpecFluent.ConfigSourceNested withNewConfigSource(); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - withNewConfigSourceLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeSpecFluent.ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - editConfigSource(); + public V1NodeSpecFluent.ConfigSourceNested editConfigSource(); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - editOrNewConfigSource(); + public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSource(); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - editOrNewConfigSourceLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item); + public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item); public String getExternalID(); - public A withExternalID(java.lang.String externalID); + public A withExternalID(String externalID); - public java.lang.Boolean hasExternalID(); + public Boolean hasExternalID(); - public java.lang.String getPodCIDR(); + public String getPodCIDR(); - public A withPodCIDR(java.lang.String podCIDR); + public A withPodCIDR(String podCIDR); - public java.lang.Boolean hasPodCIDR(); + public Boolean hasPodCIDR(); - public A addToPodCIDRs(Integer index, java.lang.String item); + public A addToPodCIDRs(Integer index, String item); - public A setToPodCIDRs(java.lang.Integer index, java.lang.String item); + public A setToPodCIDRs(Integer index, String item); public A addToPodCIDRs(java.lang.String... items); - public A addAllToPodCIDRs(Collection items); + public A addAllToPodCIDRs(Collection items); public A removeFromPodCIDRs(java.lang.String... items); - public A removeAllFromPodCIDRs(java.util.Collection items); + public A removeAllFromPodCIDRs(Collection items); - public List getPodCIDRs(); + public List getPodCIDRs(); - public java.lang.String getPodCIDR(java.lang.Integer index); + public String getPodCIDR(Integer index); - public java.lang.String getFirstPodCIDR(); + public String getFirstPodCIDR(); - public java.lang.String getLastPodCIDR(); + public String getLastPodCIDR(); - public java.lang.String getMatchingPodCIDR(Predicate predicate); + public String getMatchingPodCIDR(Predicate predicate); - public java.lang.Boolean hasMatchingPodCIDR( - java.util.function.Predicate predicate); + public Boolean hasMatchingPodCIDR(Predicate predicate); - public A withPodCIDRs(java.util.List podCIDRs); + public A withPodCIDRs(List podCIDRs); public A withPodCIDRs(java.lang.String... podCIDRs); - public java.lang.Boolean hasPodCIDRs(); + public Boolean hasPodCIDRs(); - public java.lang.String getProviderID(); + public String getProviderID(); - public A withProviderID(java.lang.String providerID); + public A withProviderID(String providerID); - public java.lang.Boolean hasProviderID(); + public Boolean hasProviderID(); - public A addToTaints(java.lang.Integer index, V1Taint item); + public A addToTaints(Integer index, V1Taint item); - public A setToTaints(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Taint item); + public A setToTaints(Integer index, V1Taint item); public A addToTaints(io.kubernetes.client.openapi.models.V1Taint... items); - public A addAllToTaints(java.util.Collection items); + public A addAllToTaints(Collection items); public A removeFromTaints(io.kubernetes.client.openapi.models.V1Taint... items); - public A removeAllFromTaints( - java.util.Collection items); + public A removeAllFromTaints(Collection items); - public A removeMatchingFromTaints(java.util.function.Predicate predicate); + public A removeMatchingFromTaints(Predicate predicate); /** * This method has been deprecated, please use method buildTaints instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTaints(); + @Deprecated + public List getTaints(); - public java.util.List buildTaints(); + public List buildTaints(); - public io.kubernetes.client.openapi.models.V1Taint buildTaint(java.lang.Integer index); + public V1Taint buildTaint(Integer index); - public io.kubernetes.client.openapi.models.V1Taint buildFirstTaint(); + public V1Taint buildFirstTaint(); - public io.kubernetes.client.openapi.models.V1Taint buildLastTaint(); + public V1Taint buildLastTaint(); - public io.kubernetes.client.openapi.models.V1Taint buildMatchingTaint( - java.util.function.Predicate predicate); + public V1Taint buildMatchingTaint(Predicate predicate); - public java.lang.Boolean hasMatchingTaint( - java.util.function.Predicate predicate); + public Boolean hasMatchingTaint(Predicate predicate); - public A withTaints(java.util.List taints); + public A withTaints(List taints); public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints); - public java.lang.Boolean hasTaints(); + public Boolean hasTaints(); public V1NodeSpecFluent.TaintsNested addNewTaint(); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested addNewTaintLike( - io.kubernetes.client.openapi.models.V1Taint item); + public V1NodeSpecFluent.TaintsNested addNewTaintLike(V1Taint item); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested setNewTaintLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Taint item); + public V1NodeSpecFluent.TaintsNested setNewTaintLike(Integer index, V1Taint item); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editTaint( - java.lang.Integer index); + public V1NodeSpecFluent.TaintsNested editTaint(Integer index); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editFirstTaint(); + public V1NodeSpecFluent.TaintsNested editFirstTaint(); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editLastTaint(); + public V1NodeSpecFluent.TaintsNested editLastTaint(); - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editMatchingTaint( - java.util.function.Predicate predicate); + public V1NodeSpecFluent.TaintsNested editMatchingTaint(Predicate predicate); - public java.lang.Boolean getUnschedulable(); + public Boolean getUnschedulable(); - public A withUnschedulable(java.lang.Boolean unschedulable); + public A withUnschedulable(Boolean unschedulable); - public java.lang.Boolean hasUnschedulable(); + public Boolean hasUnschedulable(); public A withUnschedulable(); @@ -175,8 +163,7 @@ public interface ConfigSourceNested } public interface TaintsNested - extends io.kubernetes.client.fluent.Nested, - V1TaintFluent> { + extends Nested, V1TaintFluent> { public N and(); public N endTaint(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java index f000375718..570b10ca7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluentImpl.java @@ -26,7 +26,7 @@ public class V1NodeSpecFluentImpl> extends BaseFlu implements V1NodeSpecFluent { public V1NodeSpecFluentImpl() {} - public V1NodeSpecFluentImpl(io.kubernetes.client.openapi.models.V1NodeSpec instance) { + public V1NodeSpecFluentImpl(V1NodeSpec instance) { this.withConfigSource(instance.getConfigSource()); this.withExternalID(instance.getExternalID()); @@ -44,9 +44,9 @@ public V1NodeSpecFluentImpl(io.kubernetes.client.openapi.models.V1NodeSpec insta private V1NodeConfigSourceBuilder configSource; private String externalID; - private java.lang.String podCIDR; - private List podCIDRs; - private java.lang.String providerID; + private String podCIDR; + private List podCIDRs; + private String providerID; private ArrayList taints; private Boolean unschedulable; @@ -56,24 +56,27 @@ public V1NodeSpecFluentImpl(io.kubernetes.client.openapi.models.V1NodeSpec insta * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1NodeConfigSource getConfigSource() { + public V1NodeConfigSource getConfigSource() { return this.configSource != null ? this.configSource.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeConfigSource buildConfigSource() { + public V1NodeConfigSource buildConfigSource() { return this.configSource != null ? this.configSource.build() : null; } - public A withConfigSource(io.kubernetes.client.openapi.models.V1NodeConfigSource configSource) { + public A withConfigSource(V1NodeConfigSource configSource) { _visitables.get("configSource").remove(this.configSource); if (configSource != null) { this.configSource = new V1NodeConfigSourceBuilder(configSource); _visitables.get("configSource").add(this.configSource); + } else { + this.configSource = null; + _visitables.get("configSource").remove(this.configSource); } return (A) this; } - public java.lang.Boolean hasConfigSource() { + public Boolean hasConfigSource() { return this.configSource != null; } @@ -81,66 +84,60 @@ public V1NodeSpecFluent.ConfigSourceNested withNewConfigSource() { return new V1NodeSpecFluentImpl.ConfigSourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - withNewConfigSourceLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + public V1NodeSpecFluent.ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { return new V1NodeSpecFluentImpl.ConfigSourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - editConfigSource() { + public V1NodeSpecFluent.ConfigSourceNested editConfigSource() { return withNewConfigSourceLike(getConfigSource()); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - editOrNewConfigSource() { + public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSource() { return withNewConfigSourceLike( - getConfigSource() != null - ? getConfigSource() - : new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder().build()); + getConfigSource() != null ? getConfigSource() : new V1NodeConfigSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested - editOrNewConfigSourceLike(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + public V1NodeSpecFluent.ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { return withNewConfigSourceLike(getConfigSource() != null ? getConfigSource() : item); } - public java.lang.String getExternalID() { + public String getExternalID() { return this.externalID; } - public A withExternalID(java.lang.String externalID) { + public A withExternalID(String externalID) { this.externalID = externalID; return (A) this; } - public java.lang.Boolean hasExternalID() { + public Boolean hasExternalID() { return this.externalID != null; } - public java.lang.String getPodCIDR() { + public String getPodCIDR() { return this.podCIDR; } - public A withPodCIDR(java.lang.String podCIDR) { + public A withPodCIDR(String podCIDR) { this.podCIDR = podCIDR; return (A) this; } - public java.lang.Boolean hasPodCIDR() { + public Boolean hasPodCIDR() { return this.podCIDR != null; } - public A addToPodCIDRs(Integer index, java.lang.String item) { + public A addToPodCIDRs(Integer index, String item) { if (this.podCIDRs == null) { - this.podCIDRs = new java.util.ArrayList(); + this.podCIDRs = new ArrayList(); } this.podCIDRs.add(index, item); return (A) this; } - public A setToPodCIDRs(java.lang.Integer index, java.lang.String item) { + public A setToPodCIDRs(Integer index, String item) { if (this.podCIDRs == null) { - this.podCIDRs = new java.util.ArrayList(); + this.podCIDRs = new ArrayList(); } this.podCIDRs.set(index, item); return (A) this; @@ -148,26 +145,26 @@ public A setToPodCIDRs(java.lang.Integer index, java.lang.String item) { public A addToPodCIDRs(java.lang.String... items) { if (this.podCIDRs == null) { - this.podCIDRs = new java.util.ArrayList(); + this.podCIDRs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.podCIDRs.add(item); } return (A) this; } - public A addAllToPodCIDRs(Collection items) { + public A addAllToPodCIDRs(Collection items) { if (this.podCIDRs == null) { - this.podCIDRs = new java.util.ArrayList(); + this.podCIDRs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.podCIDRs.add(item); } return (A) this; } public A removeFromPodCIDRs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.podCIDRs != null) { this.podCIDRs.remove(item); } @@ -175,8 +172,8 @@ public A removeFromPodCIDRs(java.lang.String... items) { return (A) this; } - public A removeAllFromPodCIDRs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromPodCIDRs(Collection items) { + for (String item : items) { if (this.podCIDRs != null) { this.podCIDRs.remove(item); } @@ -184,24 +181,24 @@ public A removeAllFromPodCIDRs(java.util.Collection items) { return (A) this; } - public java.util.List getPodCIDRs() { + public List getPodCIDRs() { return this.podCIDRs; } - public java.lang.String getPodCIDR(java.lang.Integer index) { + public String getPodCIDR(Integer index) { return this.podCIDRs.get(index); } - public java.lang.String getFirstPodCIDR() { + public String getFirstPodCIDR() { return this.podCIDRs.get(0); } - public java.lang.String getLastPodCIDR() { + public String getLastPodCIDR() { return this.podCIDRs.get(podCIDRs.size() - 1); } - public java.lang.String getMatchingPodCIDR(Predicate predicate) { - for (java.lang.String item : podCIDRs) { + public String getMatchingPodCIDR(Predicate predicate) { + for (String item : podCIDRs) { if (predicate.test(item)) { return item; } @@ -209,9 +206,8 @@ public java.lang.String getMatchingPodCIDR(Predicate predicate return null; } - public java.lang.Boolean hasMatchingPodCIDR( - java.util.function.Predicate predicate) { - for (java.lang.String item : podCIDRs) { + public Boolean hasMatchingPodCIDR(Predicate predicate) { + for (String item : podCIDRs) { if (predicate.test(item)) { return true; } @@ -219,10 +215,10 @@ public java.lang.Boolean hasMatchingPodCIDR( return false; } - public A withPodCIDRs(java.util.List podCIDRs) { + public A withPodCIDRs(List podCIDRs) { if (podCIDRs != null) { - this.podCIDRs = new java.util.ArrayList(); - for (java.lang.String item : podCIDRs) { + this.podCIDRs = new ArrayList(); + for (String item : podCIDRs) { this.addToPodCIDRs(item); } } else { @@ -236,47 +232,45 @@ public A withPodCIDRs(java.lang.String... podCIDRs) { this.podCIDRs.clear(); } if (podCIDRs != null) { - for (java.lang.String item : podCIDRs) { + for (String item : podCIDRs) { this.addToPodCIDRs(item); } } return (A) this; } - public java.lang.Boolean hasPodCIDRs() { + public Boolean hasPodCIDRs() { return podCIDRs != null && !podCIDRs.isEmpty(); } - public java.lang.String getProviderID() { + public String getProviderID() { return this.providerID; } - public A withProviderID(java.lang.String providerID) { + public A withProviderID(String providerID) { this.providerID = providerID; return (A) this; } - public java.lang.Boolean hasProviderID() { + public Boolean hasProviderID() { return this.providerID != null; } - public A addToTaints(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Taint item) { + public A addToTaints(Integer index, V1Taint item) { if (this.taints == null) { - this.taints = new java.util.ArrayList(); + this.taints = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TaintBuilder builder = - new io.kubernetes.client.openapi.models.V1TaintBuilder(item); + V1TaintBuilder builder = new V1TaintBuilder(item); _visitables.get("taints").add(index >= 0 ? index : _visitables.get("taints").size(), builder); this.taints.add(index >= 0 ? index : taints.size(), builder); return (A) this; } - public A setToTaints(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Taint item) { + public A setToTaints(Integer index, V1Taint item) { if (this.taints == null) { - this.taints = new java.util.ArrayList(); + this.taints = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TaintBuilder builder = - new io.kubernetes.client.openapi.models.V1TaintBuilder(item); + V1TaintBuilder builder = new V1TaintBuilder(item); if (index < 0 || index >= _visitables.get("taints").size()) { _visitables.get("taints").add(builder); } else { @@ -292,24 +286,22 @@ public A setToTaints(java.lang.Integer index, io.kubernetes.client.openapi.model public A addToTaints(io.kubernetes.client.openapi.models.V1Taint... items) { if (this.taints == null) { - this.taints = new java.util.ArrayList(); + this.taints = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Taint item : items) { - io.kubernetes.client.openapi.models.V1TaintBuilder builder = - new io.kubernetes.client.openapi.models.V1TaintBuilder(item); + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); _visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; } - public A addAllToTaints(java.util.Collection items) { + public A addAllToTaints(Collection items) { if (this.taints == null) { - this.taints = new java.util.ArrayList(); + this.taints = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Taint item : items) { - io.kubernetes.client.openapi.models.V1TaintBuilder builder = - new io.kubernetes.client.openapi.models.V1TaintBuilder(item); + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); _visitables.get("taints").add(builder); this.taints.add(builder); } @@ -317,9 +309,8 @@ public A addAllToTaints(java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Taint item : items) { - io.kubernetes.client.openapi.models.V1TaintBuilder builder = - new io.kubernetes.client.openapi.models.V1TaintBuilder(item); + public A removeAllFromTaints(Collection items) { + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); _visitables.get("taints").remove(builder); if (this.taints != null) { this.taints.remove(builder); @@ -341,13 +330,12 @@ public A removeAllFromTaints( return (A) this; } - public A removeMatchingFromTaints( - java.util.function.Predicate predicate) { + public A removeMatchingFromTaints(Predicate predicate) { if (taints == null) return (A) this; - final Iterator each = taints.iterator(); + final Iterator each = taints.iterator(); final List visitables = _visitables.get("taints"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1TaintBuilder builder = each.next(); + V1TaintBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -361,30 +349,29 @@ public A removeMatchingFromTaints( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTaints() { + @Deprecated + public List getTaints() { return taints != null ? build(taints) : null; } - public java.util.List buildTaints() { + public List buildTaints() { return taints != null ? build(taints) : null; } - public io.kubernetes.client.openapi.models.V1Taint buildTaint(java.lang.Integer index) { + public V1Taint buildTaint(Integer index) { return this.taints.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Taint buildFirstTaint() { + public V1Taint buildFirstTaint() { return this.taints.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Taint buildLastTaint() { + public V1Taint buildLastTaint() { return this.taints.get(taints.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Taint buildMatchingTaint( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1TaintBuilder item : taints) { + public V1Taint buildMatchingTaint(Predicate predicate) { + for (V1TaintBuilder item : taints) { if (predicate.test(item)) { return item.build(); } @@ -392,9 +379,8 @@ public io.kubernetes.client.openapi.models.V1Taint buildMatchingTaint( return null; } - public java.lang.Boolean hasMatchingTaint( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1TaintBuilder item : taints) { + public Boolean hasMatchingTaint(Predicate predicate) { + for (V1TaintBuilder item : taints) { if (predicate.test(item)) { return true; } @@ -402,13 +388,13 @@ public java.lang.Boolean hasMatchingTaint( return false; } - public A withTaints(java.util.List taints) { + public A withTaints(List taints) { if (this.taints != null) { _visitables.get("taints").removeAll(this.taints); } if (taints != null) { - this.taints = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Taint item : taints) { + this.taints = new ArrayList(); + for (V1Taint item : taints) { this.addToTaints(item); } } else { @@ -422,14 +408,14 @@ public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints) { this.taints.clear(); } if (taints != null) { - for (io.kubernetes.client.openapi.models.V1Taint item : taints) { + for (V1Taint item : taints) { this.addToTaints(item); } } return (A) this; } - public java.lang.Boolean hasTaints() { + public Boolean hasTaints() { return taints != null && !taints.isEmpty(); } @@ -437,38 +423,33 @@ public V1NodeSpecFluent.TaintsNested addNewTaint() { return new V1NodeSpecFluentImpl.TaintsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested addNewTaintLike( - io.kubernetes.client.openapi.models.V1Taint item) { - return new io.kubernetes.client.openapi.models.V1NodeSpecFluentImpl.TaintsNestedImpl(-1, item); + public V1NodeSpecFluent.TaintsNested addNewTaintLike(V1Taint item) { + return new V1NodeSpecFluentImpl.TaintsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested setNewTaintLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Taint item) { - return new io.kubernetes.client.openapi.models.V1NodeSpecFluentImpl.TaintsNestedImpl( - index, item); + public V1NodeSpecFluent.TaintsNested setNewTaintLike(Integer index, V1Taint item) { + return new V1NodeSpecFluentImpl.TaintsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editTaint( - java.lang.Integer index) { + public V1NodeSpecFluent.TaintsNested editTaint(Integer index) { if (taints.size() <= index) throw new RuntimeException("Can't edit taints. Index exceeds size."); return setNewTaintLike(index, buildTaint(index)); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editFirstTaint() { + public V1NodeSpecFluent.TaintsNested editFirstTaint() { if (taints.size() == 0) throw new RuntimeException("Can't edit first taints. The list is empty."); return setNewTaintLike(0, buildTaint(0)); } - public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editLastTaint() { + public V1NodeSpecFluent.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 io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested editMatchingTaint( - java.util.function.Predicate predicate) { + public V1NodeSpecFluent.TaintsNested editMatchingTaint(Predicate predicate) { int index = -1; for (int i = 0; i < taints.size(); i++) { if (predicate.test(taints.get(i))) { @@ -480,16 +461,16 @@ public io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested edit return setNewTaintLike(index, buildTaint(index)); } - public java.lang.Boolean getUnschedulable() { + public Boolean getUnschedulable() { return this.unschedulable; } - public A withUnschedulable(java.lang.Boolean unschedulable) { + public A withUnschedulable(Boolean unschedulable) { this.unschedulable = unschedulable; return (A) this; } - public java.lang.Boolean hasUnschedulable() { + public Boolean hasUnschedulable() { return this.unschedulable != null; } @@ -524,7 +505,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (configSource != null) { @@ -565,17 +546,16 @@ public A withUnschedulable() { class ConfigSourceNestedImpl extends V1NodeConfigSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeSpecFluent.ConfigSourceNested, - Nested { - ConfigSourceNestedImpl(io.kubernetes.client.openapi.models.V1NodeConfigSource item) { + implements V1NodeSpecFluent.ConfigSourceNested, Nested { + ConfigSourceNestedImpl(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } ConfigSourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder(this); + this.builder = new V1NodeConfigSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeConfigSourceBuilder builder; + V1NodeConfigSourceBuilder builder; public N and() { return (N) V1NodeSpecFluentImpl.this.withConfigSource(builder.build()); @@ -587,20 +567,19 @@ public N endConfigSource() { } class TaintsNestedImpl extends V1TaintFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeSpecFluent.TaintsNested, - io.kubernetes.client.fluent.Nested { - TaintsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Taint item) { + implements V1NodeSpecFluent.TaintsNested, Nested { + TaintsNestedImpl(Integer index, V1Taint item) { this.index = index; this.builder = new V1TaintBuilder(this, item); } TaintsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1TaintBuilder(this); + this.builder = new V1TaintBuilder(this); } - io.kubernetes.client.openapi.models.V1TaintBuilder builder; - java.lang.Integer index; + V1TaintBuilder builder; + Integer index; public N and() { return (N) V1NodeSpecFluentImpl.this.setToTaints(index, builder.build()); 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 6c6989058d..5ddef87028 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeStatusBuilder extends V1NodeStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NodeStatus, - io.kubernetes.client.openapi.models.V1NodeStatusBuilder> { + implements VisitableBuilder { public V1NodeStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1NodeStatusBuilder(V1NodeStatusFluent fluent) { this(fluent, false); } - public V1NodeStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeStatusBuilder(V1NodeStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeStatus(), validationEnabled); } - public V1NodeStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NodeStatus instance) { + public V1NodeStatusBuilder(V1NodeStatusFluent fluent, V1NodeStatus instance) { this(fluent, instance, false); } public V1NodeStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeStatusFluent fluent, - io.kubernetes.client.openapi.models.V1NodeStatus instance, - java.lang.Boolean validationEnabled) { + V1NodeStatusFluent fluent, V1NodeStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAddresses(instance.getAddresses()); @@ -72,13 +64,11 @@ public V1NodeStatusBuilder( this.validationEnabled = validationEnabled; } - public V1NodeStatusBuilder(io.kubernetes.client.openapi.models.V1NodeStatus instance) { + public V1NodeStatusBuilder(V1NodeStatus instance) { this(instance, false); } - public V1NodeStatusBuilder( - io.kubernetes.client.openapi.models.V1NodeStatus instance, - java.lang.Boolean validationEnabled) { + public V1NodeStatusBuilder(V1NodeStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAddresses(instance.getAddresses()); @@ -105,10 +95,10 @@ public V1NodeStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeStatus build() { + public V1NodeStatus build() { V1NodeStatus buildable = new V1NodeStatus(); buildable.setAddresses(fluent.getAddresses()); buildable.setAllocatable(fluent.getAllocatable()); 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 867b5366f8..6417d96fd6 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 @@ -24,17 +24,15 @@ public interface V1NodeStatusFluent> extends Fluent { public A addToAddresses(Integer index, V1NodeAddress item); - public A setToAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeAddress item); + public A setToAddresses(Integer index, V1NodeAddress item); public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items); - public A addAllToAddresses(Collection items); + public A addAllToAddresses(Collection items); public A removeFromAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items); - public A removeAllFromAddresses( - java.util.Collection items); + public A removeAllFromAddresses(Collection items); public A removeMatchingFromAddresses(Predicate predicate); @@ -44,420 +42,348 @@ public A removeAllFromAddresses( * @return The buildable object. */ @Deprecated - public List getAddresses(); + public List getAddresses(); - public java.util.List buildAddresses(); + public List buildAddresses(); - public io.kubernetes.client.openapi.models.V1NodeAddress buildAddress(java.lang.Integer index); + public V1NodeAddress buildAddress(Integer index); - public io.kubernetes.client.openapi.models.V1NodeAddress buildFirstAddress(); + public V1NodeAddress buildFirstAddress(); - public io.kubernetes.client.openapi.models.V1NodeAddress buildLastAddress(); + public V1NodeAddress buildLastAddress(); - public io.kubernetes.client.openapi.models.V1NodeAddress buildMatchingAddress( - java.util.function.Predicate - predicate); + public V1NodeAddress buildMatchingAddress(Predicate predicate); - public Boolean hasMatchingAddress( - java.util.function.Predicate - predicate); + public Boolean hasMatchingAddress(Predicate predicate); - public A withAddresses( - java.util.List addresses); + public A withAddresses(List addresses); public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addresses); - public java.lang.Boolean hasAddresses(); + public Boolean hasAddresses(); public V1NodeStatusFluent.AddressesNested addNewAddress(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - addNewAddressLike(io.kubernetes.client.openapi.models.V1NodeAddress item); + public V1NodeStatusFluent.AddressesNested addNewAddressLike(V1NodeAddress item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - setNewAddressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeAddress item); + public V1NodeStatusFluent.AddressesNested setNewAddressLike(Integer index, V1NodeAddress item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested editAddress( - java.lang.Integer index); + public V1NodeStatusFluent.AddressesNested editAddress(Integer index); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - editFirstAddress(); + public V1NodeStatusFluent.AddressesNested editFirstAddress(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - editLastAddress(); + public V1NodeStatusFluent.AddressesNested editLastAddress(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - editMatchingAddress( - java.util.function.Predicate - predicate); + public V1NodeStatusFluent.AddressesNested editMatchingAddress( + Predicate predicate); public A addToAllocatable(String key, Quantity value); - public A addToAllocatable(Map map); + public A addToAllocatable(Map map); - public A removeFromAllocatable(java.lang.String key); + public A removeFromAllocatable(String key); - public A removeFromAllocatable( - java.util.Map map); + public A removeFromAllocatable(Map map); - public java.util.Map getAllocatable(); + public Map getAllocatable(); - public A withAllocatable( - java.util.Map allocatable); + public A withAllocatable(Map allocatable); - public java.lang.Boolean hasAllocatable(); + public Boolean hasAllocatable(); - public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToCapacity(String key, Quantity value); - public A addToCapacity(java.util.Map map); + public A addToCapacity(Map map); - public A removeFromCapacity(java.lang.String key); + public A removeFromCapacity(String key); - public A removeFromCapacity( - java.util.Map map); + public A removeFromCapacity(Map map); - public java.util.Map getCapacity(); + public Map getCapacity(); - public A withCapacity( - java.util.Map capacity); + public A withCapacity(Map capacity); - public java.lang.Boolean hasCapacity(); + public Boolean hasCapacity(); - public A addToConditions(java.lang.Integer index, V1NodeCondition item); + public A addToConditions(Integer index, V1NodeCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item); + public A setToConditions(Integer index, V1NodeCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items); - public A addAllToConditions( - java.util.Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); - public A removeMatchingFromConditions( - java.util.function.Predicate predicate); + public A removeMatchingFromConditions(Predicate predicate); /** * This method has been deprecated, please use method buildConditions instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getConditions(); + @Deprecated + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1NodeCondition buildCondition( - java.lang.Integer index); + public V1NodeCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1NodeCondition buildFirstCondition(); + public V1NodeCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1NodeCondition buildLastCondition(); + public V1NodeCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1NodeCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1NodeCondition buildMatchingCondition(Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1NodeStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1NodeCondition item); + public V1NodeStatusFluent.ConditionsNested addNewConditionLike(V1NodeCondition item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item); + public V1NodeStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1NodeCondition item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested editCondition( - java.lang.Integer index); + public V1NodeStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - editFirstCondition(); + public V1NodeStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - editLastCondition(); + public V1NodeStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate); + public V1NodeStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); /** * This method has been deprecated, please use method buildConfig instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeConfigStatus getConfig(); - public io.kubernetes.client.openapi.models.V1NodeConfigStatus buildConfig(); + public V1NodeConfigStatus buildConfig(); - public A withConfig(io.kubernetes.client.openapi.models.V1NodeConfigStatus config); + public A withConfig(V1NodeConfigStatus config); - public java.lang.Boolean hasConfig(); + public Boolean hasConfig(); public V1NodeStatusFluent.ConfigNested withNewConfig(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested withNewConfigLike( - io.kubernetes.client.openapi.models.V1NodeConfigStatus item); + public V1NodeStatusFluent.ConfigNested withNewConfigLike(V1NodeConfigStatus item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editConfig(); + public V1NodeStatusFluent.ConfigNested editConfig(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editOrNewConfig(); + public V1NodeStatusFluent.ConfigNested editOrNewConfig(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editOrNewConfigLike( - io.kubernetes.client.openapi.models.V1NodeConfigStatus item); + public V1NodeStatusFluent.ConfigNested editOrNewConfigLike(V1NodeConfigStatus item); /** * This method has been deprecated, please use method buildDaemonEndpoints instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeDaemonEndpoints getDaemonEndpoints(); - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints buildDaemonEndpoints(); + public V1NodeDaemonEndpoints buildDaemonEndpoints(); - public A withDaemonEndpoints( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints daemonEndpoints); + public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints); - public java.lang.Boolean hasDaemonEndpoints(); + public Boolean hasDaemonEndpoints(); public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpoints(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - withNewDaemonEndpointsLike(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item); + public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike( + V1NodeDaemonEndpoints item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - editDaemonEndpoints(); + public V1NodeStatusFluent.DaemonEndpointsNested editDaemonEndpoints(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - editOrNewDaemonEndpoints(); + public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpoints(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - editOrNewDaemonEndpointsLike(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item); + public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike( + V1NodeDaemonEndpoints item); - public A addToImages(java.lang.Integer index, V1ContainerImage item); + public A addToImages(Integer index, V1ContainerImage item); - public A setToImages( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerImage item); + public A setToImages(Integer index, V1ContainerImage item); public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items); - public A addAllToImages( - java.util.Collection items); + public A addAllToImages(Collection items); public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items); - public A removeAllFromImages( - java.util.Collection items); + public A removeAllFromImages(Collection items); - public A removeMatchingFromImages( - java.util.function.Predicate predicate); + public A removeMatchingFromImages(Predicate predicate); /** * This method has been deprecated, please use method buildImages instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getImages(); + @Deprecated + public List getImages(); - public java.util.List buildImages(); + public List buildImages(); - public io.kubernetes.client.openapi.models.V1ContainerImage buildImage(java.lang.Integer index); + public V1ContainerImage buildImage(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerImage buildFirstImage(); + public V1ContainerImage buildFirstImage(); - public io.kubernetes.client.openapi.models.V1ContainerImage buildLastImage(); + public V1ContainerImage buildLastImage(); - public io.kubernetes.client.openapi.models.V1ContainerImage buildMatchingImage( - java.util.function.Predicate - predicate); + public V1ContainerImage buildMatchingImage(Predicate predicate); - public java.lang.Boolean hasMatchingImage( - java.util.function.Predicate - predicate); + public Boolean hasMatchingImage(Predicate predicate); - public A withImages(java.util.List images); + public A withImages(List images); public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... images); - public java.lang.Boolean hasImages(); + public Boolean hasImages(); public V1NodeStatusFluent.ImagesNested addNewImage(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested addNewImageLike( - io.kubernetes.client.openapi.models.V1ContainerImage item); + public V1NodeStatusFluent.ImagesNested addNewImageLike(V1ContainerImage item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested setNewImageLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerImage item); + public V1NodeStatusFluent.ImagesNested setNewImageLike(Integer index, V1ContainerImage item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editImage( - java.lang.Integer index); + public V1NodeStatusFluent.ImagesNested editImage(Integer index); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editFirstImage(); + public V1NodeStatusFluent.ImagesNested editFirstImage(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editLastImage(); + public V1NodeStatusFluent.ImagesNested editLastImage(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editMatchingImage( - java.util.function.Predicate - predicate); + public V1NodeStatusFluent.ImagesNested editMatchingImage( + Predicate predicate); /** * This method has been deprecated, please use method buildNodeInfo instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeSystemInfo getNodeInfo(); - public io.kubernetes.client.openapi.models.V1NodeSystemInfo buildNodeInfo(); + public V1NodeSystemInfo buildNodeInfo(); - public A withNodeInfo(io.kubernetes.client.openapi.models.V1NodeSystemInfo nodeInfo); + public A withNodeInfo(V1NodeSystemInfo nodeInfo); - public java.lang.Boolean hasNodeInfo(); + public Boolean hasNodeInfo(); public V1NodeStatusFluent.NodeInfoNested withNewNodeInfo(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested - withNewNodeInfoLike(io.kubernetes.client.openapi.models.V1NodeSystemInfo item); + public V1NodeStatusFluent.NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested editNodeInfo(); + public V1NodeStatusFluent.NodeInfoNested editNodeInfo(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested - editOrNewNodeInfo(); + public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfo(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested - editOrNewNodeInfoLike(io.kubernetes.client.openapi.models.V1NodeSystemInfo item); + public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item); - public java.lang.String getPhase(); + public String getPhase(); - public A withPhase(java.lang.String phase); + public A withPhase(String phase); - public java.lang.Boolean hasPhase(); + public Boolean hasPhase(); - public A addToVolumesAttached(java.lang.Integer index, V1AttachedVolume item); + public A addToVolumesAttached(Integer index, V1AttachedVolume item); - public A setToVolumesAttached( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item); + public A setToVolumesAttached(Integer index, V1AttachedVolume item); public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items); - public A addAllToVolumesAttached( - java.util.Collection items); + public A addAllToVolumesAttached(Collection items); public A removeFromVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items); - public A removeAllFromVolumesAttached( - java.util.Collection items); + public A removeAllFromVolumesAttached(Collection items); - public A removeMatchingFromVolumesAttached( - java.util.function.Predicate predicate); + public A removeMatchingFromVolumesAttached(Predicate predicate); /** * This method has been deprecated, please use method buildVolumesAttached instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumesAttached(); + @Deprecated + public List getVolumesAttached(); - public java.util.List - buildVolumesAttached(); + public List buildVolumesAttached(); - public io.kubernetes.client.openapi.models.V1AttachedVolume buildVolumesAttached( - java.lang.Integer index); + public V1AttachedVolume buildVolumesAttached(Integer index); - public io.kubernetes.client.openapi.models.V1AttachedVolume buildFirstVolumesAttached(); + public V1AttachedVolume buildFirstVolumesAttached(); - public io.kubernetes.client.openapi.models.V1AttachedVolume buildLastVolumesAttached(); + public V1AttachedVolume buildLastVolumesAttached(); - public io.kubernetes.client.openapi.models.V1AttachedVolume buildMatchingVolumesAttached( - java.util.function.Predicate - predicate); + public V1AttachedVolume buildMatchingVolumesAttached( + Predicate predicate); - public java.lang.Boolean hasMatchingVolumesAttached( - java.util.function.Predicate - predicate); + public Boolean hasMatchingVolumesAttached(Predicate predicate); - public A withVolumesAttached( - java.util.List volumesAttached); + public A withVolumesAttached(List volumesAttached); public A withVolumesAttached( io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached); - public java.lang.Boolean hasVolumesAttached(); + public Boolean hasVolumesAttached(); public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttached(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - addNewVolumesAttachedLike(io.kubernetes.client.openapi.models.V1AttachedVolume item); + public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike( + V1AttachedVolume item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - setNewVolumesAttachedLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item); + public V1NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike( + Integer index, V1AttachedVolume item); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editVolumesAttached(java.lang.Integer index); + public V1NodeStatusFluent.VolumesAttachedNested editVolumesAttached(Integer index); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editFirstVolumesAttached(); + public V1NodeStatusFluent.VolumesAttachedNested editFirstVolumesAttached(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editLastVolumesAttached(); + public V1NodeStatusFluent.VolumesAttachedNested editLastVolumesAttached(); - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editMatchingVolumesAttached( - java.util.function.Predicate - predicate); + public V1NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached( + Predicate predicate); - public A addToVolumesInUse(java.lang.Integer index, java.lang.String item); + public A addToVolumesInUse(Integer index, String item); - public A setToVolumesInUse(java.lang.Integer index, java.lang.String item); + public A setToVolumesInUse(Integer index, String item); public A addToVolumesInUse(java.lang.String... items); - public A addAllToVolumesInUse(java.util.Collection items); + public A addAllToVolumesInUse(Collection items); public A removeFromVolumesInUse(java.lang.String... items); - public A removeAllFromVolumesInUse(java.util.Collection items); + public A removeAllFromVolumesInUse(Collection items); - public java.util.List getVolumesInUse(); + public List getVolumesInUse(); - public java.lang.String getVolumesInUse(java.lang.Integer index); + public String getVolumesInUse(Integer index); - public java.lang.String getFirstVolumesInUse(); + public String getFirstVolumesInUse(); - public java.lang.String getLastVolumesInUse(); + public String getLastVolumesInUse(); - public java.lang.String getMatchingVolumesInUse( - java.util.function.Predicate predicate); + public String getMatchingVolumesInUse(Predicate predicate); - public java.lang.Boolean hasMatchingVolumesInUse( - java.util.function.Predicate predicate); + public Boolean hasMatchingVolumesInUse(Predicate predicate); - public A withVolumesInUse(java.util.List volumesInUse); + public A withVolumesInUse(List volumesInUse); public A withVolumesInUse(java.lang.String... volumesInUse); - public java.lang.Boolean hasVolumesInUse(); + public Boolean hasVolumesInUse(); public interface AddressesNested extends Nested, V1NodeAddressFluent> { @@ -467,48 +393,42 @@ public interface AddressesNested } public interface ConditionsNested - extends io.kubernetes.client.fluent.Nested, - V1NodeConditionFluent> { + extends Nested, V1NodeConditionFluent> { public N and(); public N endCondition(); } public interface ConfigNested - extends io.kubernetes.client.fluent.Nested, - V1NodeConfigStatusFluent> { + extends Nested, V1NodeConfigStatusFluent> { public N and(); public N endConfig(); } public interface DaemonEndpointsNested - extends io.kubernetes.client.fluent.Nested, - V1NodeDaemonEndpointsFluent> { + extends Nested, V1NodeDaemonEndpointsFluent> { public N and(); public N endDaemonEndpoints(); } public interface ImagesNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerImageFluent> { + extends Nested, V1ContainerImageFluent> { public N and(); public N endImage(); } public interface NodeInfoNested - extends io.kubernetes.client.fluent.Nested, - V1NodeSystemInfoFluent> { + extends Nested, V1NodeSystemInfoFluent> { public N and(); public N endNodeInfo(); } public interface VolumesAttachedNested - extends io.kubernetes.client.fluent.Nested, - V1AttachedVolumeFluent> { + extends Nested, V1AttachedVolumeFluent> { public N and(); public N endVolumesAttached(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java index c82a674427..bcfea70871 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluentImpl.java @@ -29,7 +29,7 @@ public class V1NodeStatusFluentImpl> extends Bas implements V1NodeStatusFluent { public V1NodeStatusFluentImpl() {} - public V1NodeStatusFluentImpl(io.kubernetes.client.openapi.models.V1NodeStatus instance) { + public V1NodeStatusFluentImpl(V1NodeStatus instance) { this.withAddresses(instance.getAddresses()); this.withAllocatable(instance.getAllocatable()); @@ -55,23 +55,21 @@ public V1NodeStatusFluentImpl(io.kubernetes.client.openapi.models.V1NodeStatus i private ArrayList addresses; private Map allocatable; - private java.util.Map capacity; - private java.util.ArrayList conditions; + private Map capacity; + private ArrayList conditions; private V1NodeConfigStatusBuilder config; private V1NodeDaemonEndpointsBuilder daemonEndpoints; - private java.util.ArrayList images; + private ArrayList images; private V1NodeSystemInfoBuilder nodeInfo; - private java.lang.String phase; - private java.util.ArrayList volumesAttached; - private List volumesInUse; + private String phase; + private ArrayList volumesAttached; + private List volumesInUse; public A addToAddresses(Integer index, V1NodeAddress item) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item); + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); _visitables .get("addresses") .add(index >= 0 ? index : _visitables.get("addresses").size(), builder); @@ -79,14 +77,11 @@ public A addToAddresses(Integer index, V1NodeAddress item) { return (A) this; } - public A setToAddresses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeAddress item) { + public A setToAddresses(Integer index, V1NodeAddress item) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item); + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); if (index < 0 || index >= _visitables.get("addresses").size()) { _visitables.get("addresses").add(builder); } else { @@ -102,26 +97,22 @@ public A setToAddresses( public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) { - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item); + 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) { + public A addAllToAddresses(Collection items) { if (this.addresses == null) { - this.addresses = - new java.util.ArrayList(); + this.addresses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) { - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item); + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); _visitables.get("addresses").add(builder); this.addresses.add(builder); } @@ -129,9 +120,8 @@ public A addAllToAddresses(Collection items) { - for (io.kubernetes.client.openapi.models.V1NodeAddress item : items) { - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(item); + public A removeAllFromAddresses(Collection items) { + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); _visitables.get("addresses").remove(builder); if (this.addresses != null) { this.addresses.remove(builder); @@ -153,14 +141,12 @@ public A removeAllFromAddresses( return (A) this; } - public A removeMatchingFromAddresses( - Predicate predicate) { + public A removeMatchingFromAddresses(Predicate predicate) { if (addresses == null) return (A) this; - final Iterator each = - addresses.iterator(); + final Iterator each = addresses.iterator(); final List visitables = _visitables.get("addresses"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder = each.next(); + V1NodeAddressBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -175,30 +161,28 @@ public A removeMatchingFromAddresses( * @return The buildable object. */ @Deprecated - public java.util.List getAddresses() { + public List getAddresses() { return addresses != null ? build(addresses) : null; } - public java.util.List buildAddresses() { + public List buildAddresses() { return addresses != null ? build(addresses) : null; } - public io.kubernetes.client.openapi.models.V1NodeAddress buildAddress(java.lang.Integer index) { + public V1NodeAddress buildAddress(Integer index) { return this.addresses.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NodeAddress buildFirstAddress() { + public V1NodeAddress buildFirstAddress() { return this.addresses.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NodeAddress buildLastAddress() { + public V1NodeAddress buildLastAddress() { return this.addresses.get(addresses.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NodeAddress buildMatchingAddress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeAddressBuilder item : addresses) { + public V1NodeAddress buildMatchingAddress(Predicate predicate) { + for (V1NodeAddressBuilder item : addresses) { if (predicate.test(item)) { return item.build(); } @@ -206,10 +190,8 @@ public io.kubernetes.client.openapi.models.V1NodeAddress buildMatchingAddress( return null; } - public Boolean hasMatchingAddress( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeAddressBuilder item : addresses) { + public Boolean hasMatchingAddress(Predicate predicate) { + for (V1NodeAddressBuilder item : addresses) { if (predicate.test(item)) { return true; } @@ -217,14 +199,13 @@ public Boolean hasMatchingAddress( return false; } - public A withAddresses( - java.util.List addresses) { + public A withAddresses(List addresses) { if (this.addresses != null) { _visitables.get("addresses").removeAll(this.addresses); } if (addresses != null) { - this.addresses = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NodeAddress item : addresses) { + this.addresses = new ArrayList(); + for (V1NodeAddress item : addresses) { this.addToAddresses(item); } } else { @@ -238,14 +219,14 @@ public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addr this.addresses.clear(); } if (addresses != null) { - for (io.kubernetes.client.openapi.models.V1NodeAddress item : addresses) { + for (V1NodeAddress item : addresses) { this.addToAddresses(item); } } return (A) this; } - public java.lang.Boolean hasAddresses() { + public Boolean hasAddresses() { return addresses != null && !addresses.isEmpty(); } @@ -253,43 +234,35 @@ public V1NodeStatusFluent.AddressesNested addNewAddress() { return new V1NodeStatusFluentImpl.AddressesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - addNewAddressLike(io.kubernetes.client.openapi.models.V1NodeAddress item) { + public V1NodeStatusFluent.AddressesNested addNewAddressLike(V1NodeAddress item) { return new V1NodeStatusFluentImpl.AddressesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - setNewAddressLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeAddress item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.AddressesNestedImpl( - index, item); + public V1NodeStatusFluent.AddressesNested setNewAddressLike( + Integer index, V1NodeAddress item) { + return new V1NodeStatusFluentImpl.AddressesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested editAddress( - java.lang.Integer index) { + public V1NodeStatusFluent.AddressesNested editAddress(Integer index) { if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); return setNewAddressLike(index, buildAddress(index)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - editFirstAddress() { + public V1NodeStatusFluent.AddressesNested editFirstAddress() { if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); return setNewAddressLike(0, buildAddress(0)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - editLastAddress() { + public V1NodeStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested - editMatchingAddress( - java.util.function.Predicate - predicate) { + public V1NodeStatusFluent.AddressesNested editMatchingAddress( + Predicate predicate) { int index = -1; for (int i = 0; i < addresses.size(); i++) { if (predicate.test(addresses.get(i))) { @@ -301,7 +274,7 @@ public io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested return setNewAddressLike(index, buildAddress(index)); } - public A addToAllocatable(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToAllocatable(String key, Quantity value) { if (this.allocatable == null && key != null && value != null) { this.allocatable = new LinkedHashMap(); } @@ -311,10 +284,9 @@ public A addToAllocatable(java.lang.String key, io.kubernetes.client.custom.Quan return (A) this; } - public A addToAllocatable( - java.util.Map map) { + public A addToAllocatable(Map map) { if (this.allocatable == null && map != null) { - this.allocatable = new java.util.LinkedHashMap(); + this.allocatable = new LinkedHashMap(); } if (map != null) { this.allocatable.putAll(map); @@ -322,7 +294,7 @@ public A addToAllocatable( return (A) this; } - public A removeFromAllocatable(java.lang.String key) { + public A removeFromAllocatable(String key) { if (this.allocatable == null) { return (A) this; } @@ -332,8 +304,7 @@ public A removeFromAllocatable(java.lang.String key) { return (A) this; } - public A removeFromAllocatable( - java.util.Map map) { + public A removeFromAllocatable(Map map) { if (this.allocatable == null) { return (A) this; } @@ -347,27 +318,26 @@ public A removeFromAllocatable( return (A) this; } - public java.util.Map getAllocatable() { + public Map getAllocatable() { return this.allocatable; } - public A withAllocatable( - java.util.Map allocatable) { + public A withAllocatable(Map allocatable) { if (allocatable == null) { this.allocatable = null; } else { - this.allocatable = new java.util.LinkedHashMap(allocatable); + this.allocatable = new LinkedHashMap(allocatable); } return (A) this; } - public java.lang.Boolean hasAllocatable() { + public Boolean hasAllocatable() { return this.allocatable != null; } - public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToCapacity(String key, Quantity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new java.util.LinkedHashMap(); + this.capacity = new LinkedHashMap(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -375,10 +345,9 @@ public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantit return (A) this; } - public A addToCapacity( - java.util.Map map) { + public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new java.util.LinkedHashMap(); + this.capacity = new LinkedHashMap(); } if (map != null) { this.capacity.putAll(map); @@ -386,7 +355,7 @@ public A addToCapacity( return (A) this; } - public A removeFromCapacity(java.lang.String key) { + public A removeFromCapacity(String key) { if (this.capacity == null) { return (A) this; } @@ -396,8 +365,7 @@ public A removeFromCapacity(java.lang.String key) { return (A) this; } - public A removeFromCapacity( - java.util.Map map) { + public A removeFromCapacity(Map map) { if (this.capacity == null) { return (A) this; } @@ -411,31 +379,28 @@ public A removeFromCapacity( return (A) this; } - public java.util.Map getCapacity() { + public Map getCapacity() { return this.capacity; } - public A withCapacity( - java.util.Map capacity) { + public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new java.util.LinkedHashMap(capacity); + this.capacity = new LinkedHashMap(capacity); } return (A) this; } - public java.lang.Boolean hasCapacity() { + public Boolean hasCapacity() { return this.capacity != null; } - public A addToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item) { + public A addToConditions(Integer index, V1NodeCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item); + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -443,14 +408,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item) { + public A setToConditions(Integer index, V1NodeCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item); + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -466,27 +428,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) { - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item); + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - java.util.Collection items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) { - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item); + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -494,9 +451,8 @@ public A addAllToConditions( } public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { - for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) { - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item); + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -505,11 +461,9 @@ public A removeFromConditions(io.kubernetes.client.openapi.models.V1NodeConditio return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NodeCondition item : items) { - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -518,15 +472,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - java.util.function.Predicate - predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder = each.next(); + V1NodeConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -540,32 +491,29 @@ public A removeMatchingFromConditions( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getConditions() { + @Deprecated + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1NodeCondition buildCondition( - java.lang.Integer index) { + public V1NodeCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NodeCondition buildFirstCondition() { + public V1NodeCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NodeCondition buildLastCondition() { + public V1NodeCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NodeCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeConditionBuilder item : conditions) { + public V1NodeCondition buildMatchingCondition(Predicate predicate) { + for (V1NodeConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -573,10 +521,8 @@ public io.kubernetes.client.openapi.models.V1NodeCondition buildMatchingConditio return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NodeConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1NodeConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -584,14 +530,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NodeCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1NodeCondition item : conditions) { this.addToConditions(item); } } else { @@ -605,14 +550,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... c this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1NodeCondition item : conditions) { + for (V1NodeCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -620,44 +565,35 @@ public V1NodeStatusFluent.ConditionsNested addNewCondition() { return new V1NodeStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1NodeCondition item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ConditionsNestedImpl( - -1, item); + public V1NodeStatusFluent.ConditionsNested addNewConditionLike(V1NodeCondition item) { + return new V1NodeStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NodeCondition item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1NodeStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1NodeCondition item) { + return new V1NodeStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested editCondition( - java.lang.Integer index) { + public V1NodeStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - editFirstCondition() { + public V1NodeStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - editLastCondition() { + public V1NodeStatusFluent.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 io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate) { + public V1NodeStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -674,25 +610,28 @@ public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested withNewConfig() { return new V1NodeStatusFluentImpl.ConfigNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested withNewConfigLike( - io.kubernetes.client.openapi.models.V1NodeConfigStatus item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ConfigNestedImpl(item); + public V1NodeStatusFluent.ConfigNested withNewConfigLike(V1NodeConfigStatus item) { + return new V1NodeStatusFluentImpl.ConfigNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editConfig() { + public V1NodeStatusFluent.ConfigNested editConfig() { return withNewConfigLike(getConfig()); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editOrNewConfig() { + public V1NodeStatusFluent.ConfigNested editOrNewConfig() { return withNewConfigLike( - getConfig() != null - ? getConfig() - : new io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder().build()); + getConfig() != null ? getConfig() : new V1NodeConfigStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested editOrNewConfigLike( - io.kubernetes.client.openapi.models.V1NodeConfigStatus item) { + public V1NodeStatusFluent.ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { return withNewConfigLike(getConfig() != null ? getConfig() : item); } @@ -726,26 +661,28 @@ public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested ed * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints getDaemonEndpoints() { + @Deprecated + public V1NodeDaemonEndpoints getDaemonEndpoints() { return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints buildDaemonEndpoints() { + public V1NodeDaemonEndpoints buildDaemonEndpoints() { return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; } - public A withDaemonEndpoints( - io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints daemonEndpoints) { + public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { _visitables.get("daemonEndpoints").remove(this.daemonEndpoints); if (daemonEndpoints != null) { this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); _visitables.get("daemonEndpoints").add(this.daemonEndpoints); + } else { + this.daemonEndpoints = null; + _visitables.get("daemonEndpoints").remove(this.daemonEndpoints); } return (A) this; } - public java.lang.Boolean hasDaemonEndpoints() { + public Boolean hasDaemonEndpoints() { return this.daemonEndpoints != null; } @@ -753,50 +690,42 @@ public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpoints() { return new V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - withNewDaemonEndpointsLike(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl( - item); + public V1NodeStatusFluent.DaemonEndpointsNested withNewDaemonEndpointsLike( + V1NodeDaemonEndpoints item) { + return new V1NodeStatusFluentImpl.DaemonEndpointsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - editDaemonEndpoints() { + public V1NodeStatusFluent.DaemonEndpointsNested editDaemonEndpoints() { return withNewDaemonEndpointsLike(getDaemonEndpoints()); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - editOrNewDaemonEndpoints() { + public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpoints() { return withNewDaemonEndpointsLike( getDaemonEndpoints() != null ? getDaemonEndpoints() - : new io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder().build()); + : new V1NodeDaemonEndpointsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested - editOrNewDaemonEndpointsLike(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item) { + public V1NodeStatusFluent.DaemonEndpointsNested editOrNewDaemonEndpointsLike( + V1NodeDaemonEndpoints item) { return withNewDaemonEndpointsLike(getDaemonEndpoints() != null ? getDaemonEndpoints() : item); } - public A addToImages(java.lang.Integer index, V1ContainerImage item) { + public A addToImages(Integer index, V1ContainerImage item) { if (this.images == null) { - this.images = - new java.util.ArrayList(); + this.images = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item); + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); _visitables.get("images").add(index >= 0 ? index : _visitables.get("images").size(), builder); this.images.add(index >= 0 ? index : images.size(), builder); return (A) this; } - public A setToImages( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerImage item) { + public A setToImages(Integer index, V1ContainerImage item) { if (this.images == null) { - this.images = - new java.util.ArrayList(); + this.images = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item); + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); if (index < 0 || index >= _visitables.get("images").size()) { _visitables.get("images").add(builder); } else { @@ -812,27 +741,22 @@ public A setToImages( public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { if (this.images == null) { - this.images = - new java.util.ArrayList(); + this.images = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) { - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item); + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); _visitables.get("images").add(builder); this.images.add(builder); } return (A) this; } - public A addAllToImages( - java.util.Collection items) { + public A addAllToImages(Collection items) { if (this.images == null) { - this.images = - new java.util.ArrayList(); + this.images = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) { - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item); + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); _visitables.get("images").add(builder); this.images.add(builder); } @@ -840,9 +764,8 @@ public A addAllToImages( } public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) { - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item); + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); _visitables.get("images").remove(builder); if (this.images != null) { this.images.remove(builder); @@ -851,11 +774,9 @@ public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage.. return (A) this; } - public A removeAllFromImages( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ContainerImage item : items) { - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(item); + public A removeAllFromImages(Collection items) { + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); _visitables.get("images").remove(builder); if (this.images != null) { this.images.remove(builder); @@ -864,15 +785,12 @@ public A removeAllFromImages( return (A) this; } - public A removeMatchingFromImages( - java.util.function.Predicate - predicate) { + public A removeMatchingFromImages(Predicate predicate) { if (images == null) return (A) this; - final Iterator each = - images.iterator(); + final Iterator each = images.iterator(); final List visitables = _visitables.get("images"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder = each.next(); + V1ContainerImageBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -886,31 +804,29 @@ public A removeMatchingFromImages( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getImages() { + @Deprecated + public List getImages() { return images != null ? build(images) : null; } - public java.util.List buildImages() { + public List buildImages() { return images != null ? build(images) : null; } - public io.kubernetes.client.openapi.models.V1ContainerImage buildImage(java.lang.Integer index) { + public V1ContainerImage buildImage(Integer index) { return this.images.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ContainerImage buildFirstImage() { + public V1ContainerImage buildFirstImage() { return this.images.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ContainerImage buildLastImage() { + public V1ContainerImage buildLastImage() { return this.images.get(images.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ContainerImage buildMatchingImage( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerImageBuilder item : images) { + public V1ContainerImage buildMatchingImage(Predicate predicate) { + for (V1ContainerImageBuilder item : images) { if (predicate.test(item)) { return item.build(); } @@ -918,10 +834,8 @@ public io.kubernetes.client.openapi.models.V1ContainerImage buildMatchingImage( return null; } - public java.lang.Boolean hasMatchingImage( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerImageBuilder item : images) { + public Boolean hasMatchingImage(Predicate predicate) { + for (V1ContainerImageBuilder item : images) { if (predicate.test(item)) { return true; } @@ -929,13 +843,13 @@ public java.lang.Boolean hasMatchingImage( return false; } - public A withImages(java.util.List images) { + public A withImages(List images) { if (this.images != null) { _visitables.get("images").removeAll(this.images); } if (images != null) { - this.images = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ContainerImage item : images) { + this.images = new ArrayList(); + for (V1ContainerImage item : images) { this.addToImages(item); } } else { @@ -949,14 +863,14 @@ public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... imag this.images.clear(); } if (images != null) { - for (io.kubernetes.client.openapi.models.V1ContainerImage item : images) { + for (V1ContainerImage item : images) { this.addToImages(item); } } return (A) this; } - public java.lang.Boolean hasImages() { + public Boolean hasImages() { return images != null && !images.isEmpty(); } @@ -964,40 +878,34 @@ public V1NodeStatusFluent.ImagesNested addNewImage() { return new V1NodeStatusFluentImpl.ImagesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested addNewImageLike( - io.kubernetes.client.openapi.models.V1ContainerImage item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ImagesNestedImpl( - -1, item); + public V1NodeStatusFluent.ImagesNested addNewImageLike(V1ContainerImage item) { + return new V1NodeStatusFluentImpl.ImagesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested setNewImageLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerImage item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.ImagesNestedImpl( - index, item); + public V1NodeStatusFluent.ImagesNested setNewImageLike(Integer index, V1ContainerImage item) { + return new V1NodeStatusFluentImpl.ImagesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editImage( - java.lang.Integer index) { + public V1NodeStatusFluent.ImagesNested editImage(Integer index) { if (images.size() <= index) throw new RuntimeException("Can't edit images. Index exceeds size."); return setNewImageLike(index, buildImage(index)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editFirstImage() { + public V1NodeStatusFluent.ImagesNested editFirstImage() { if (images.size() == 0) throw new RuntimeException("Can't edit first images. The list is empty."); return setNewImageLike(0, buildImage(0)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editLastImage() { + public V1NodeStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested editMatchingImage( - java.util.function.Predicate - predicate) { + public V1NodeStatusFluent.ImagesNested editMatchingImage( + Predicate predicate) { int index = -1; for (int i = 0; i < images.size(); i++) { if (predicate.test(images.get(i))) { @@ -1014,25 +922,28 @@ public io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested ed * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NodeSystemInfo getNodeInfo() { return this.nodeInfo != null ? this.nodeInfo.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeSystemInfo buildNodeInfo() { + public V1NodeSystemInfo buildNodeInfo() { return this.nodeInfo != null ? this.nodeInfo.build() : null; } - public A withNodeInfo(io.kubernetes.client.openapi.models.V1NodeSystemInfo nodeInfo) { + public A withNodeInfo(V1NodeSystemInfo nodeInfo) { _visitables.get("nodeInfo").remove(this.nodeInfo); if (nodeInfo != null) { - this.nodeInfo = new io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder(nodeInfo); + this.nodeInfo = new V1NodeSystemInfoBuilder(nodeInfo); _visitables.get("nodeInfo").add(this.nodeInfo); + } else { + this.nodeInfo = null; + _visitables.get("nodeInfo").remove(this.nodeInfo); } return (A) this; } - public java.lang.Boolean hasNodeInfo() { + public Boolean hasNodeInfo() { return this.nodeInfo != null; } @@ -1040,48 +951,41 @@ public V1NodeStatusFluent.NodeInfoNested withNewNodeInfo() { return new V1NodeStatusFluentImpl.NodeInfoNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested - withNewNodeInfoLike(io.kubernetes.client.openapi.models.V1NodeSystemInfo item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.NodeInfoNestedImpl(item); + public V1NodeStatusFluent.NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { + return new V1NodeStatusFluentImpl.NodeInfoNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested editNodeInfo() { + public V1NodeStatusFluent.NodeInfoNested editNodeInfo() { return withNewNodeInfoLike(getNodeInfo()); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested - editOrNewNodeInfo() { + public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfo() { return withNewNodeInfoLike( - getNodeInfo() != null - ? getNodeInfo() - : new io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder().build()); + getNodeInfo() != null ? getNodeInfo() : new V1NodeSystemInfoBuilder().build()); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested - editOrNewNodeInfoLike(io.kubernetes.client.openapi.models.V1NodeSystemInfo item) { + public V1NodeStatusFluent.NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { return withNewNodeInfoLike(getNodeInfo() != null ? getNodeInfo() : item); } - public java.lang.String getPhase() { + public String getPhase() { return this.phase; } - public A withPhase(java.lang.String phase) { + public A withPhase(String phase) { this.phase = phase; return (A) this; } - public java.lang.Boolean hasPhase() { + public Boolean hasPhase() { return this.phase != null; } - public A addToVolumesAttached( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item) { + public A addToVolumesAttached(Integer index, V1AttachedVolume item) { if (this.volumesAttached == null) { - this.volumesAttached = new java.util.ArrayList(); + this.volumesAttached = new ArrayList(); } - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item); + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); _visitables .get("volumesAttached") .add(index >= 0 ? index : _visitables.get("volumesAttached").size(), builder); @@ -1089,14 +993,11 @@ public A addToVolumesAttached( return (A) this; } - public A setToVolumesAttached( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item) { + public A setToVolumesAttached(Integer index, V1AttachedVolume item) { if (this.volumesAttached == null) { - this.volumesAttached = - new java.util.ArrayList(); + this.volumesAttached = new ArrayList(); } - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item); + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); if (index < 0 || index >= _visitables.get("volumesAttached").size()) { _visitables.get("volumesAttached").add(builder); } else { @@ -1112,27 +1013,22 @@ public A setToVolumesAttached( public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { if (this.volumesAttached == null) { - this.volumesAttached = - new java.util.ArrayList(); + this.volumesAttached = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) { - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item); + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); _visitables.get("volumesAttached").add(builder); this.volumesAttached.add(builder); } return (A) this; } - public A addAllToVolumesAttached( - java.util.Collection items) { + public A addAllToVolumesAttached(Collection items) { if (this.volumesAttached == null) { - this.volumesAttached = - new java.util.ArrayList(); + this.volumesAttached = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) { - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item); + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); _visitables.get("volumesAttached").add(builder); this.volumesAttached.add(builder); } @@ -1141,9 +1037,8 @@ public A addAllToVolumesAttached( public A removeFromVolumesAttached( io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) { - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item); + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); _visitables.get("volumesAttached").remove(builder); if (this.volumesAttached != null) { this.volumesAttached.remove(builder); @@ -1152,11 +1047,9 @@ public A removeFromVolumesAttached( return (A) this; } - public A removeAllFromVolumesAttached( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1AttachedVolume item : items) { - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(item); + public A removeAllFromVolumesAttached(Collection items) { + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); _visitables.get("volumesAttached").remove(builder); if (this.volumesAttached != null) { this.volumesAttached.remove(builder); @@ -1165,15 +1058,12 @@ public A removeAllFromVolumesAttached( return (A) this; } - public A removeMatchingFromVolumesAttached( - java.util.function.Predicate - predicate) { + public A removeMatchingFromVolumesAttached(Predicate predicate) { if (volumesAttached == null) return (A) this; - final Iterator each = - volumesAttached.iterator(); + final Iterator each = volumesAttached.iterator(); final List visitables = _visitables.get("volumesAttached"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder = each.next(); + V1AttachedVolumeBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1187,33 +1077,30 @@ public A removeMatchingFromVolumesAttached( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumesAttached() { + @Deprecated + public List getVolumesAttached() { return volumesAttached != null ? build(volumesAttached) : null; } - public java.util.List - buildVolumesAttached() { + public List buildVolumesAttached() { return volumesAttached != null ? build(volumesAttached) : null; } - public io.kubernetes.client.openapi.models.V1AttachedVolume buildVolumesAttached( - java.lang.Integer index) { + public V1AttachedVolume buildVolumesAttached(Integer index) { return this.volumesAttached.get(index).build(); } - public io.kubernetes.client.openapi.models.V1AttachedVolume buildFirstVolumesAttached() { + public V1AttachedVolume buildFirstVolumesAttached() { return this.volumesAttached.get(0).build(); } - public io.kubernetes.client.openapi.models.V1AttachedVolume buildLastVolumesAttached() { + public V1AttachedVolume buildLastVolumesAttached() { return this.volumesAttached.get(volumesAttached.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1AttachedVolume buildMatchingVolumesAttached( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder item : volumesAttached) { + public V1AttachedVolume buildMatchingVolumesAttached( + Predicate predicate) { + for (V1AttachedVolumeBuilder item : volumesAttached) { if (predicate.test(item)) { return item.build(); } @@ -1221,10 +1108,8 @@ public io.kubernetes.client.openapi.models.V1AttachedVolume buildMatchingVolumes return null; } - public java.lang.Boolean hasMatchingVolumesAttached( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder item : volumesAttached) { + public Boolean hasMatchingVolumesAttached(Predicate predicate) { + for (V1AttachedVolumeBuilder item : volumesAttached) { if (predicate.test(item)) { return true; } @@ -1232,14 +1117,13 @@ public java.lang.Boolean hasMatchingVolumesAttached( return false; } - public A withVolumesAttached( - java.util.List volumesAttached) { + public A withVolumesAttached(List volumesAttached) { if (this.volumesAttached != null) { _visitables.get("volumesAttached").removeAll(this.volumesAttached); } if (volumesAttached != null) { - this.volumesAttached = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1AttachedVolume item : volumesAttached) { + this.volumesAttached = new ArrayList(); + for (V1AttachedVolume item : volumesAttached) { this.addToVolumesAttached(item); } } else { @@ -1254,14 +1138,14 @@ public A withVolumesAttached( this.volumesAttached.clear(); } if (volumesAttached != null) { - for (io.kubernetes.client.openapi.models.V1AttachedVolume item : volumesAttached) { + for (V1AttachedVolume item : volumesAttached) { this.addToVolumesAttached(item); } } return (A) this; } - public java.lang.Boolean hasVolumesAttached() { + public Boolean hasVolumesAttached() { return volumesAttached != null && !volumesAttached.isEmpty(); } @@ -1269,45 +1153,37 @@ public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttached() { return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - addNewVolumesAttachedLike(io.kubernetes.client.openapi.models.V1AttachedVolume item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.VolumesAttachedNestedImpl( - -1, item); + public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttachedLike( + V1AttachedVolume item) { + return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - setNewVolumesAttachedLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1AttachedVolume item) { - return new io.kubernetes.client.openapi.models.V1NodeStatusFluentImpl.VolumesAttachedNestedImpl( - index, item); + public V1NodeStatusFluent.VolumesAttachedNested setNewVolumesAttachedLike( + Integer index, V1AttachedVolume item) { + return new V1NodeStatusFluentImpl.VolumesAttachedNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editVolumesAttached(java.lang.Integer index) { + public V1NodeStatusFluent.VolumesAttachedNested editVolumesAttached(Integer index) { if (volumesAttached.size() <= index) throw new RuntimeException("Can't edit volumesAttached. Index exceeds size."); return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editFirstVolumesAttached() { + public V1NodeStatusFluent.VolumesAttachedNested editFirstVolumesAttached() { if (volumesAttached.size() == 0) throw new RuntimeException("Can't edit first volumesAttached. The list is empty."); return setNewVolumesAttachedLike(0, buildVolumesAttached(0)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editLastVolumesAttached() { + public V1NodeStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested - editMatchingVolumesAttached( - java.util.function.Predicate - predicate) { + public V1NodeStatusFluent.VolumesAttachedNested editMatchingVolumesAttached( + Predicate predicate) { int index = -1; for (int i = 0; i < volumesAttached.size(); i++) { if (predicate.test(volumesAttached.get(i))) { @@ -1320,17 +1196,17 @@ public V1NodeStatusFluent.VolumesAttachedNested addNewVolumesAttached() { return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); } - public A addToVolumesInUse(java.lang.Integer index, java.lang.String item) { + public A addToVolumesInUse(Integer index, String item) { if (this.volumesInUse == null) { - this.volumesInUse = new java.util.ArrayList(); + this.volumesInUse = new ArrayList(); } this.volumesInUse.add(index, item); return (A) this; } - public A setToVolumesInUse(java.lang.Integer index, java.lang.String item) { + public A setToVolumesInUse(Integer index, String item) { if (this.volumesInUse == null) { - this.volumesInUse = new java.util.ArrayList(); + this.volumesInUse = new ArrayList(); } this.volumesInUse.set(index, item); return (A) this; @@ -1338,26 +1214,26 @@ public A setToVolumesInUse(java.lang.Integer index, java.lang.String item) { public A addToVolumesInUse(java.lang.String... items) { if (this.volumesInUse == null) { - this.volumesInUse = new java.util.ArrayList(); + this.volumesInUse = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.volumesInUse.add(item); } return (A) this; } - public A addAllToVolumesInUse(java.util.Collection items) { + public A addAllToVolumesInUse(Collection items) { if (this.volumesInUse == null) { - this.volumesInUse = new java.util.ArrayList(); + this.volumesInUse = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.volumesInUse.add(item); } return (A) this; } public A removeFromVolumesInUse(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.volumesInUse != null) { this.volumesInUse.remove(item); } @@ -1365,8 +1241,8 @@ public A removeFromVolumesInUse(java.lang.String... items) { return (A) this; } - public A removeAllFromVolumesInUse(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVolumesInUse(Collection items) { + for (String item : items) { if (this.volumesInUse != null) { this.volumesInUse.remove(item); } @@ -1374,25 +1250,24 @@ public A removeAllFromVolumesInUse(java.util.Collection items) return (A) this; } - public java.util.List getVolumesInUse() { + public List getVolumesInUse() { return this.volumesInUse; } - public java.lang.String getVolumesInUse(java.lang.Integer index) { + public String getVolumesInUse(Integer index) { return this.volumesInUse.get(index); } - public java.lang.String getFirstVolumesInUse() { + public String getFirstVolumesInUse() { return this.volumesInUse.get(0); } - public java.lang.String getLastVolumesInUse() { + public String getLastVolumesInUse() { return this.volumesInUse.get(volumesInUse.size() - 1); } - public java.lang.String getMatchingVolumesInUse( - java.util.function.Predicate predicate) { - for (java.lang.String item : volumesInUse) { + public String getMatchingVolumesInUse(Predicate predicate) { + for (String item : volumesInUse) { if (predicate.test(item)) { return item; } @@ -1400,9 +1275,8 @@ public java.lang.String getMatchingVolumesInUse( return null; } - public java.lang.Boolean hasMatchingVolumesInUse( - java.util.function.Predicate predicate) { - for (java.lang.String item : volumesInUse) { + public Boolean hasMatchingVolumesInUse(Predicate predicate) { + for (String item : volumesInUse) { if (predicate.test(item)) { return true; } @@ -1410,10 +1284,10 @@ public java.lang.Boolean hasMatchingVolumesInUse( return false; } - public A withVolumesInUse(java.util.List volumesInUse) { + public A withVolumesInUse(List volumesInUse) { if (volumesInUse != null) { - this.volumesInUse = new java.util.ArrayList(); - for (java.lang.String item : volumesInUse) { + this.volumesInUse = new ArrayList(); + for (String item : volumesInUse) { this.addToVolumesInUse(item); } } else { @@ -1427,14 +1301,14 @@ public A withVolumesInUse(java.lang.String... volumesInUse) { this.volumesInUse.clear(); } if (volumesInUse != null) { - for (java.lang.String item : volumesInUse) { + for (String item : volumesInUse) { this.addToVolumesInUse(item); } } return (A) this; } - public java.lang.Boolean hasVolumesInUse() { + public Boolean hasVolumesInUse() { return volumesInUse != null && !volumesInUse.isEmpty(); } @@ -1480,7 +1354,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (addresses != null && !addresses.isEmpty()) { @@ -1533,20 +1407,19 @@ public java.lang.String toString() { class AddressesNestedImpl extends V1NodeAddressFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.AddressesNested, - Nested { - AddressesNestedImpl(java.lang.Integer index, V1NodeAddress item) { + implements V1NodeStatusFluent.AddressesNested, Nested { + AddressesNestedImpl(Integer index, V1NodeAddress item) { this.index = index; this.builder = new V1NodeAddressBuilder(this, item); } AddressesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NodeAddressBuilder(this); + this.builder = new V1NodeAddressBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeAddressBuilder builder; - java.lang.Integer index; + V1NodeAddressBuilder builder; + Integer index; public N and() { return (N) V1NodeStatusFluentImpl.this.setToAddresses(index, builder.build()); @@ -1559,20 +1432,19 @@ public N endAddress() { class ConditionsNestedImpl extends V1NodeConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConditionsNested, - io.kubernetes.client.fluent.Nested { - ConditionsNestedImpl(java.lang.Integer index, V1NodeCondition item) { + implements V1NodeStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1NodeCondition item) { this.index = index; this.builder = new V1NodeConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NodeConditionBuilder(this); + this.builder = new V1NodeConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeConditionBuilder builder; - java.lang.Integer index; + V1NodeConditionBuilder builder; + Integer index; public N and() { return (N) V1NodeStatusFluentImpl.this.setToConditions(index, builder.build()); @@ -1584,17 +1456,16 @@ public N endCondition() { } class ConfigNestedImpl extends V1NodeConfigStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.ConfigNested, - io.kubernetes.client.fluent.Nested { + implements V1NodeStatusFluent.ConfigNested, Nested { ConfigNestedImpl(V1NodeConfigStatus item) { this.builder = new V1NodeConfigStatusBuilder(this, item); } ConfigNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder(this); + this.builder = new V1NodeConfigStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeConfigStatusBuilder builder; + V1NodeConfigStatusBuilder builder; public N and() { return (N) V1NodeStatusFluentImpl.this.withConfig(builder.build()); @@ -1607,17 +1478,16 @@ public N endConfig() { class DaemonEndpointsNestedImpl extends V1NodeDaemonEndpointsFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.DaemonEndpointsNested, - io.kubernetes.client.fluent.Nested { - DaemonEndpointsNestedImpl(io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints item) { + implements V1NodeStatusFluent.DaemonEndpointsNested, Nested { + DaemonEndpointsNestedImpl(V1NodeDaemonEndpoints item) { this.builder = new V1NodeDaemonEndpointsBuilder(this, item); } DaemonEndpointsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder(this); + this.builder = new V1NodeDaemonEndpointsBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeDaemonEndpointsBuilder builder; + V1NodeDaemonEndpointsBuilder builder; public N and() { return (N) V1NodeStatusFluentImpl.this.withDaemonEndpoints(builder.build()); @@ -1629,20 +1499,19 @@ public N endDaemonEndpoints() { } class ImagesNestedImpl extends V1ContainerImageFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.ImagesNested, - io.kubernetes.client.fluent.Nested { - ImagesNestedImpl(java.lang.Integer index, V1ContainerImage item) { + implements V1NodeStatusFluent.ImagesNested, Nested { + ImagesNestedImpl(Integer index, V1ContainerImage item) { this.index = index; this.builder = new V1ContainerImageBuilder(this, item); } ImagesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerImageBuilder(this); + this.builder = new V1ContainerImageBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerImageBuilder builder; - java.lang.Integer index; + V1ContainerImageBuilder builder; + Integer index; public N and() { return (N) V1NodeStatusFluentImpl.this.setToImages(index, builder.build()); @@ -1655,17 +1524,16 @@ public N endImage() { class NodeInfoNestedImpl extends V1NodeSystemInfoFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.NodeInfoNested, - io.kubernetes.client.fluent.Nested { + implements V1NodeStatusFluent.NodeInfoNested, Nested { NodeInfoNestedImpl(V1NodeSystemInfo item) { this.builder = new V1NodeSystemInfoBuilder(this, item); } NodeInfoNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder(this); + this.builder = new V1NodeSystemInfoBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder builder; + V1NodeSystemInfoBuilder builder; public N and() { return (N) V1NodeStatusFluentImpl.this.withNodeInfo(builder.build()); @@ -1678,20 +1546,19 @@ public N endNodeInfo() { class VolumesAttachedNestedImpl extends V1AttachedVolumeFluentImpl> - implements io.kubernetes.client.openapi.models.V1NodeStatusFluent.VolumesAttachedNested, - io.kubernetes.client.fluent.Nested { - VolumesAttachedNestedImpl(java.lang.Integer index, V1AttachedVolume item) { + implements V1NodeStatusFluent.VolumesAttachedNested, Nested { + VolumesAttachedNestedImpl(Integer index, V1AttachedVolume item) { this.index = index; this.builder = new V1AttachedVolumeBuilder(this, item); } VolumesAttachedNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder(this); + this.builder = new V1AttachedVolumeBuilder(this); } - io.kubernetes.client.openapi.models.V1AttachedVolumeBuilder builder; - java.lang.Integer index; + V1AttachedVolumeBuilder builder; + Integer index; public N and() { return (N) V1NodeStatusFluentImpl.this.setToVolumesAttached(index, builder.build()); 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 e3861c8e20..c014b11e5c 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluentImpl - implements VisitableBuilder< - V1NodeSystemInfo, io.kubernetes.client.openapi.models.V1NodeSystemInfoBuilder> { + implements VisitableBuilder { public V1NodeSystemInfoBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent) { this(fluent, false); } - public V1NodeSystemInfoBuilder( - io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent, Boolean validationEnabled) { this(fluent, new V1NodeSystemInfo(), validationEnabled); } - public V1NodeSystemInfoBuilder( - io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSystemInfo instance) { + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent, V1NodeSystemInfo instance) { this(fluent, instance, false); } public V1NodeSystemInfoBuilder( - io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent fluent, - io.kubernetes.client.openapi.models.V1NodeSystemInfo instance, - java.lang.Boolean validationEnabled) { + V1NodeSystemInfoFluent fluent, V1NodeSystemInfo instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withArchitecture(instance.getArchitecture()); @@ -69,13 +62,11 @@ public V1NodeSystemInfoBuilder( this.validationEnabled = validationEnabled; } - public V1NodeSystemInfoBuilder(io.kubernetes.client.openapi.models.V1NodeSystemInfo instance) { + public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance) { this(instance, false); } - public V1NodeSystemInfoBuilder( - io.kubernetes.client.openapi.models.V1NodeSystemInfo instance, - java.lang.Boolean validationEnabled) { + public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance, Boolean validationEnabled) { this.fluent = this; this.withArchitecture(instance.getArchitecture()); @@ -100,10 +91,10 @@ public V1NodeSystemInfoBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NodeSystemInfoFluent fluent; - java.lang.Boolean validationEnabled; + V1NodeSystemInfoFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NodeSystemInfo build() { + public V1NodeSystemInfo build() { V1NodeSystemInfo buildable = new V1NodeSystemInfo(); buildable.setArchitecture(fluent.getArchitecture()); buildable.setBootID(fluent.getBootID()); 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 c7df2ed716..cab0292467 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 @@ -18,61 +18,61 @@ public interface V1NodeSystemInfoFluent> extends Fluent { public String getArchitecture(); - public A withArchitecture(java.lang.String architecture); + public A withArchitecture(String architecture); public Boolean hasArchitecture(); - public java.lang.String getBootID(); + public String getBootID(); - public A withBootID(java.lang.String bootID); + public A withBootID(String bootID); - public java.lang.Boolean hasBootID(); + public Boolean hasBootID(); - public java.lang.String getContainerRuntimeVersion(); + public String getContainerRuntimeVersion(); - public A withContainerRuntimeVersion(java.lang.String containerRuntimeVersion); + public A withContainerRuntimeVersion(String containerRuntimeVersion); - public java.lang.Boolean hasContainerRuntimeVersion(); + public Boolean hasContainerRuntimeVersion(); - public java.lang.String getKernelVersion(); + public String getKernelVersion(); - public A withKernelVersion(java.lang.String kernelVersion); + public A withKernelVersion(String kernelVersion); - public java.lang.Boolean hasKernelVersion(); + public Boolean hasKernelVersion(); - public java.lang.String getKubeProxyVersion(); + public String getKubeProxyVersion(); - public A withKubeProxyVersion(java.lang.String kubeProxyVersion); + public A withKubeProxyVersion(String kubeProxyVersion); - public java.lang.Boolean hasKubeProxyVersion(); + public Boolean hasKubeProxyVersion(); - public java.lang.String getKubeletVersion(); + public String getKubeletVersion(); - public A withKubeletVersion(java.lang.String kubeletVersion); + public A withKubeletVersion(String kubeletVersion); - public java.lang.Boolean hasKubeletVersion(); + public Boolean hasKubeletVersion(); - public java.lang.String getMachineID(); + public String getMachineID(); - public A withMachineID(java.lang.String machineID); + public A withMachineID(String machineID); - public java.lang.Boolean hasMachineID(); + public Boolean hasMachineID(); - public java.lang.String getOperatingSystem(); + public String getOperatingSystem(); - public A withOperatingSystem(java.lang.String operatingSystem); + public A withOperatingSystem(String operatingSystem); - public java.lang.Boolean hasOperatingSystem(); + public Boolean hasOperatingSystem(); - public java.lang.String getOsImage(); + public String getOsImage(); - public A withOsImage(java.lang.String osImage); + public A withOsImage(String osImage); - public java.lang.Boolean hasOsImage(); + public Boolean hasOsImage(); - public java.lang.String getSystemUUID(); + public String getSystemUUID(); - public A withSystemUUID(java.lang.String systemUUID); + public A withSystemUUID(String systemUUID); - public java.lang.Boolean hasSystemUUID(); + public Boolean hasSystemUUID(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java index 872b58612f..59f25d028b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluentImpl.java @@ -20,7 +20,7 @@ public class V1NodeSystemInfoFluentImpl> ext implements V1NodeSystemInfoFluent { public V1NodeSystemInfoFluentImpl() {} - public V1NodeSystemInfoFluentImpl(io.kubernetes.client.openapi.models.V1NodeSystemInfo instance) { + public V1NodeSystemInfoFluentImpl(V1NodeSystemInfo instance) { this.withArchitecture(instance.getArchitecture()); this.withBootID(instance.getBootID()); @@ -43,21 +43,21 @@ public V1NodeSystemInfoFluentImpl(io.kubernetes.client.openapi.models.V1NodeSyst } private String architecture; - private java.lang.String bootID; - private java.lang.String containerRuntimeVersion; - private java.lang.String kernelVersion; - private java.lang.String kubeProxyVersion; - private java.lang.String kubeletVersion; - private java.lang.String machineID; - private java.lang.String operatingSystem; - private java.lang.String osImage; - private java.lang.String systemUUID; - - public java.lang.String getArchitecture() { + private String bootID; + private String containerRuntimeVersion; + private String kernelVersion; + private String kubeProxyVersion; + private String kubeletVersion; + private String machineID; + private String operatingSystem; + private String osImage; + private String systemUUID; + + public String getArchitecture() { return this.architecture; } - public A withArchitecture(java.lang.String architecture) { + public A withArchitecture(String architecture) { this.architecture = architecture; return (A) this; } @@ -66,120 +66,120 @@ public Boolean hasArchitecture() { return this.architecture != null; } - public java.lang.String getBootID() { + public String getBootID() { return this.bootID; } - public A withBootID(java.lang.String bootID) { + public A withBootID(String bootID) { this.bootID = bootID; return (A) this; } - public java.lang.Boolean hasBootID() { + public Boolean hasBootID() { return this.bootID != null; } - public java.lang.String getContainerRuntimeVersion() { + public String getContainerRuntimeVersion() { return this.containerRuntimeVersion; } - public A withContainerRuntimeVersion(java.lang.String containerRuntimeVersion) { + public A withContainerRuntimeVersion(String containerRuntimeVersion) { this.containerRuntimeVersion = containerRuntimeVersion; return (A) this; } - public java.lang.Boolean hasContainerRuntimeVersion() { + public Boolean hasContainerRuntimeVersion() { return this.containerRuntimeVersion != null; } - public java.lang.String getKernelVersion() { + public String getKernelVersion() { return this.kernelVersion; } - public A withKernelVersion(java.lang.String kernelVersion) { + public A withKernelVersion(String kernelVersion) { this.kernelVersion = kernelVersion; return (A) this; } - public java.lang.Boolean hasKernelVersion() { + public Boolean hasKernelVersion() { return this.kernelVersion != null; } - public java.lang.String getKubeProxyVersion() { + public String getKubeProxyVersion() { return this.kubeProxyVersion; } - public A withKubeProxyVersion(java.lang.String kubeProxyVersion) { + public A withKubeProxyVersion(String kubeProxyVersion) { this.kubeProxyVersion = kubeProxyVersion; return (A) this; } - public java.lang.Boolean hasKubeProxyVersion() { + public Boolean hasKubeProxyVersion() { return this.kubeProxyVersion != null; } - public java.lang.String getKubeletVersion() { + public String getKubeletVersion() { return this.kubeletVersion; } - public A withKubeletVersion(java.lang.String kubeletVersion) { + public A withKubeletVersion(String kubeletVersion) { this.kubeletVersion = kubeletVersion; return (A) this; } - public java.lang.Boolean hasKubeletVersion() { + public Boolean hasKubeletVersion() { return this.kubeletVersion != null; } - public java.lang.String getMachineID() { + public String getMachineID() { return this.machineID; } - public A withMachineID(java.lang.String machineID) { + public A withMachineID(String machineID) { this.machineID = machineID; return (A) this; } - public java.lang.Boolean hasMachineID() { + public Boolean hasMachineID() { return this.machineID != null; } - public java.lang.String getOperatingSystem() { + public String getOperatingSystem() { return this.operatingSystem; } - public A withOperatingSystem(java.lang.String operatingSystem) { + public A withOperatingSystem(String operatingSystem) { this.operatingSystem = operatingSystem; return (A) this; } - public java.lang.Boolean hasOperatingSystem() { + public Boolean hasOperatingSystem() { return this.operatingSystem != null; } - public java.lang.String getOsImage() { + public String getOsImage() { return this.osImage; } - public A withOsImage(java.lang.String osImage) { + public A withOsImage(String osImage) { this.osImage = osImage; return (A) this; } - public java.lang.Boolean hasOsImage() { + public Boolean hasOsImage() { return this.osImage != null; } - public java.lang.String getSystemUUID() { + public String getSystemUUID() { return this.systemUUID; } - public A withSystemUUID(java.lang.String systemUUID) { + public A withSystemUUID(String systemUUID) { this.systemUUID = systemUUID; return (A) this; } - public java.lang.Boolean hasSystemUUID() { + public Boolean hasSystemUUID() { return this.systemUUID != null; } @@ -228,7 +228,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (architecture != null) { 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 593eb3f596..351fbd9401 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 @@ -16,9 +16,7 @@ public class V1NonResourceAttributesBuilder extends V1NonResourceAttributesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NonResourceAttributes, - io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder> { + implements VisitableBuilder { public V1NonResourceAttributesBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent) { } public V1NonResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1NonResourceAttributesFluent fluent, - java.lang.Boolean validationEnabled) { + V1NonResourceAttributesFluent fluent, Boolean validationEnabled) { this(fluent, new V1NonResourceAttributes(), validationEnabled); } public V1NonResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1NonResourceAttributesFluent fluent, - io.kubernetes.client.openapi.models.V1NonResourceAttributes instance) { + V1NonResourceAttributesFluent fluent, V1NonResourceAttributes instance) { this(fluent, instance, false); } public V1NonResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1NonResourceAttributesFluent fluent, - io.kubernetes.client.openapi.models.V1NonResourceAttributes instance, - java.lang.Boolean validationEnabled) { + V1NonResourceAttributesFluent fluent, + V1NonResourceAttributes instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPath(instance.getPath()); @@ -55,14 +51,12 @@ public V1NonResourceAttributesBuilder( this.validationEnabled = validationEnabled; } - public V1NonResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1NonResourceAttributes instance) { + public V1NonResourceAttributesBuilder(V1NonResourceAttributes instance) { this(instance, false); } public V1NonResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1NonResourceAttributes instance, - java.lang.Boolean validationEnabled) { + V1NonResourceAttributes instance, Boolean validationEnabled) { this.fluent = this; this.withPath(instance.getPath()); @@ -71,10 +65,10 @@ public V1NonResourceAttributesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NonResourceAttributesFluent fluent; - java.lang.Boolean validationEnabled; + V1NonResourceAttributesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NonResourceAttributes build() { + public V1NonResourceAttributes build() { V1NonResourceAttributes buildable = new V1NonResourceAttributes(); buildable.setPath(fluent.getPath()); buildable.setVerb(fluent.getVerb()); 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 71acca1acf..26d77046e0 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 @@ -19,13 +19,13 @@ public interface V1NonResourceAttributesFluent { public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); public Boolean hasPath(); - public java.lang.String getVerb(); + public String getVerb(); - public A withVerb(java.lang.String verb); + public A withVerb(String verb); - public java.lang.Boolean hasVerb(); + public Boolean hasVerb(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java index 40257c72c0..9eeaf18e91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluentImpl.java @@ -20,21 +20,20 @@ public class V1NonResourceAttributesFluentImpl implements V1NonResourceAttributesFluent { public V1NonResourceAttributesFluentImpl() {} - public V1NonResourceAttributesFluentImpl( - io.kubernetes.client.openapi.models.V1NonResourceAttributes instance) { + public V1NonResourceAttributesFluentImpl(V1NonResourceAttributes instance) { this.withPath(instance.getPath()); this.withVerb(instance.getVerb()); } private String path; - private java.lang.String verb; + private String verb; - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasPath() { return this.path != null; } - public java.lang.String getVerb() { + public String getVerb() { return this.verb; } - public A withVerb(java.lang.String verb) { + public A withVerb(String verb) { this.verb = verb; return (A) this; } - public java.lang.Boolean hasVerb() { + public Boolean hasVerb() { return this.verb != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(path, verb, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (path != null) { 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 025908b793..5e86c754b1 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1NonResourceRule, V1NonResourceRuleBuilder> { + implements VisitableBuilder { public V1NonResourceRuleBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1NonResourceRuleBuilder(Boolean validationEnabled) { this(new V1NonResourceRule(), validationEnabled); } - public V1NonResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1NonResourceRuleFluent fluent) { + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent) { this(fluent, false); } - public V1NonResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1NonResourceRuleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1NonResourceRule(), validationEnabled); } - public V1NonResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1NonResourceRuleFluent fluent, - io.kubernetes.client.openapi.models.V1NonResourceRule instance) { + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent, V1NonResourceRule instance) { this(fluent, instance, false); } public V1NonResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1NonResourceRuleFluent fluent, - io.kubernetes.client.openapi.models.V1NonResourceRule instance, - java.lang.Boolean validationEnabled) { + V1NonResourceRuleFluent fluent, V1NonResourceRule instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withNonResourceURLs(instance.getNonResourceURLs()); @@ -54,13 +46,11 @@ public V1NonResourceRuleBuilder( this.validationEnabled = validationEnabled; } - public V1NonResourceRuleBuilder(io.kubernetes.client.openapi.models.V1NonResourceRule instance) { + public V1NonResourceRuleBuilder(V1NonResourceRule instance) { this(instance, false); } - public V1NonResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1NonResourceRule instance, - java.lang.Boolean validationEnabled) { + public V1NonResourceRuleBuilder(V1NonResourceRule instance, Boolean validationEnabled) { this.fluent = this; this.withNonResourceURLs(instance.getNonResourceURLs()); @@ -69,10 +59,10 @@ public V1NonResourceRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1NonResourceRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1NonResourceRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1NonResourceRule build() { + public V1NonResourceRule build() { V1NonResourceRule buildable = new V1NonResourceRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); buildable.setVerbs(fluent.getVerbs()); 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 85deb1cfaa..95d5ad9df9 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 @@ -21,63 +21,61 @@ public interface V1NonResourceRuleFluent> extends Fluent { public A addToNonResourceURLs(Integer index, String item); - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item); + public A setToNonResourceURLs(Integer index, String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); + public A addAllToNonResourceURLs(Collection items); public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(java.util.Collection items); + public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); + public List getNonResourceURLs(); - public java.lang.String getNonResourceURL(java.lang.Integer index); + public String getNonResourceURL(Integer index); - public java.lang.String getFirstNonResourceURL(); + public String getFirstNonResourceURL(); - public java.lang.String getLastNonResourceURL(); + public String getLastNonResourceURL(); - public java.lang.String getMatchingNonResourceURL(Predicate predicate); + public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate); + public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(java.util.List nonResourceURLs); + public A withNonResourceURLs(List nonResourceURLs); public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public java.lang.Boolean hasNonResourceURLs(); + public Boolean hasNonResourceURLs(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java index 773c24fd19..a684ede81b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluentImpl.java @@ -24,27 +24,26 @@ public class V1NonResourceRuleFluentImpl> e implements V1NonResourceRuleFluent { public V1NonResourceRuleFluentImpl() {} - public V1NonResourceRuleFluentImpl( - io.kubernetes.client.openapi.models.V1NonResourceRule instance) { + public V1NonResourceRuleFluentImpl(V1NonResourceRule instance) { this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); } private List nonResourceURLs; - private java.util.List verbs; + private List verbs; - public A addToNonResourceURLs(Integer index, java.lang.String item) { + public A addToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.add(index, item); return (A) this; } - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { + public A setToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -52,26 +51,26 @@ public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { public A addToNonResourceURLs(java.lang.String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } - public A addAllToNonResourceURLs(Collection items) { + public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } public A removeFromNonResourceURLs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -79,8 +78,8 @@ public A removeFromNonResourceURLs(java.lang.String... items) { return (A) this; } - public A removeAllFromNonResourceURLs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNonResourceURLs(Collection items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -88,24 +87,24 @@ public A removeAllFromNonResourceURLs(java.util.Collection ite return (A) this; } - public java.util.List getNonResourceURLs() { + public List getNonResourceURLs() { return this.nonResourceURLs; } - public java.lang.String getNonResourceURL(java.lang.Integer index) { + public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public java.lang.String getFirstNonResourceURL() { + public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public java.lang.String getLastNonResourceURL() { + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public java.lang.String getMatchingNonResourceURL(Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public String getMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return item; } @@ -113,9 +112,8 @@ public java.lang.String getMatchingNonResourceURL(Predicate pr return null; } - public Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public Boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return true; } @@ -123,10 +121,10 @@ public Boolean hasMatchingNonResourceURL( return false; } - public A withNonResourceURLs(java.util.List nonResourceURLs) { + public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new java.util.ArrayList(); - for (java.lang.String item : nonResourceURLs) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } else { @@ -140,28 +138,28 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { this.nonResourceURLs.clear(); } if (nonResourceURLs != null) { - for (java.lang.String item : nonResourceURLs) { + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceURLs() { + public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -169,26 +167,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -196,8 +194,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -205,25 +203,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -231,9 +228,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -241,10 +237,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -258,14 +254,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -284,7 +280,7 @@ public int hashCode() { return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { 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 20a71b7634..52f04ce8dc 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 @@ -16,8 +16,7 @@ public class V1ObjectFieldSelectorBuilder extends V1ObjectFieldSelectorFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ObjectFieldSelector, V1ObjectFieldSelectorBuilder> { + implements VisitableBuilder { public V1ObjectFieldSelectorBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent) { } public V1ObjectFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ObjectFieldSelectorFluent fluent, - java.lang.Boolean validationEnabled) { + V1ObjectFieldSelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1ObjectFieldSelector(), validationEnabled); } public V1ObjectFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ObjectFieldSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ObjectFieldSelector instance) { + V1ObjectFieldSelectorFluent fluent, V1ObjectFieldSelector instance) { this(fluent, instance, false); } public V1ObjectFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ObjectFieldSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ObjectFieldSelector instance, - java.lang.Boolean validationEnabled) { + V1ObjectFieldSelectorFluent fluent, + V1ObjectFieldSelector instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -54,14 +51,11 @@ public V1ObjectFieldSelectorBuilder( this.validationEnabled = validationEnabled; } - public V1ObjectFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ObjectFieldSelector instance) { + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance) { this(instance, false); } - public V1ObjectFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ObjectFieldSelector instance, - java.lang.Boolean validationEnabled) { + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -70,10 +64,10 @@ public V1ObjectFieldSelectorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ObjectFieldSelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1ObjectFieldSelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ObjectFieldSelector build() { + public V1ObjectFieldSelector build() { V1ObjectFieldSelector buildable = new V1ObjectFieldSelector(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setFieldPath(fluent.getFieldPath()); 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 22393827d3..62e3288fa5 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 @@ -19,13 +19,13 @@ public interface V1ObjectFieldSelectorFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getFieldPath(); + public String getFieldPath(); - public A withFieldPath(java.lang.String fieldPath); + public A withFieldPath(String fieldPath); - public java.lang.Boolean hasFieldPath(); + public Boolean hasFieldPath(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java index 680838f658..0d9f200770 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluentImpl.java @@ -20,21 +20,20 @@ public class V1ObjectFieldSelectorFluentImpl implements V1ObjectFieldSelectorFluent { public V1ObjectFieldSelectorFluentImpl() {} - public V1ObjectFieldSelectorFluentImpl( - io.kubernetes.client.openapi.models.V1ObjectFieldSelector instance) { + public V1ObjectFieldSelectorFluentImpl(V1ObjectFieldSelector instance) { this.withApiVersion(instance.getApiVersion()); this.withFieldPath(instance.getFieldPath()); } private String apiVersion; - private java.lang.String fieldPath; + private String fieldPath; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getFieldPath() { + public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(java.lang.String fieldPath) { + public A withFieldPath(String fieldPath) { this.fieldPath = fieldPath; return (A) this; } - public java.lang.Boolean hasFieldPath() { + public Boolean hasFieldPath() { return this.fieldPath != null; } @@ -71,7 +70,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, fieldPath, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 421028c42a..30141a2c2c 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ObjectMetaBuilder extends V1ObjectMetaFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ObjectMeta, V1ObjectMetaBuilder> { + implements VisitableBuilder { public V1ObjectMetaBuilder() { this(false); } @@ -25,31 +24,23 @@ public V1ObjectMetaBuilder(Boolean validationEnabled) { this(new V1ObjectMeta(), validationEnabled); } - public V1ObjectMetaBuilder(io.kubernetes.client.openapi.models.V1ObjectMetaFluent fluent) { + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent) { this(fluent, false); } - public V1ObjectMetaBuilder( - io.kubernetes.client.openapi.models.V1ObjectMetaFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent, Boolean validationEnabled) { this(fluent, new V1ObjectMeta(), validationEnabled); } - public V1ObjectMetaBuilder( - io.kubernetes.client.openapi.models.V1ObjectMetaFluent fluent, - io.kubernetes.client.openapi.models.V1ObjectMeta instance) { + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent, V1ObjectMeta instance) { this(fluent, instance, false); } public V1ObjectMetaBuilder( - io.kubernetes.client.openapi.models.V1ObjectMetaFluent fluent, - io.kubernetes.client.openapi.models.V1ObjectMeta instance, - java.lang.Boolean validationEnabled) { + V1ObjectMetaFluent fluent, V1ObjectMeta instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAnnotations(instance.getAnnotations()); - fluent.withClusterName(instance.getClusterName()); - fluent.withCreationTimestamp(instance.getCreationTimestamp()); fluent.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); @@ -81,18 +72,14 @@ public V1ObjectMetaBuilder( this.validationEnabled = validationEnabled; } - public V1ObjectMetaBuilder(io.kubernetes.client.openapi.models.V1ObjectMeta instance) { + public V1ObjectMetaBuilder(V1ObjectMeta instance) { this(instance, false); } - public V1ObjectMetaBuilder( - io.kubernetes.client.openapi.models.V1ObjectMeta instance, - java.lang.Boolean validationEnabled) { + public V1ObjectMetaBuilder(V1ObjectMeta instance, Boolean validationEnabled) { this.fluent = this; this.withAnnotations(instance.getAnnotations()); - this.withClusterName(instance.getClusterName()); - this.withCreationTimestamp(instance.getCreationTimestamp()); this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); @@ -124,13 +111,12 @@ public V1ObjectMetaBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ObjectMetaFluent fluent; - java.lang.Boolean validationEnabled; + V1ObjectMetaFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ObjectMeta build() { + public V1ObjectMeta build() { V1ObjectMeta buildable = new V1ObjectMeta(); buildable.setAnnotations(fluent.getAnnotations()); - buildable.setClusterName(fluent.getClusterName()); buildable.setCreationTimestamp(fluent.getCreationTimestamp()); buildable.setDeletionGracePeriodSeconds(fluent.getDeletionGracePeriodSeconds()); buildable.setDeletionTimestamp(fluent.getDeletionTimestamp()); 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 b7a8335d09..de10a2ace9 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 @@ -22,119 +22,108 @@ /** Generated */ public interface V1ObjectMetaFluent> extends Fluent { - public A addToAnnotations(String key, java.lang.String value); + public A addToAnnotations(String key, String value); - public A addToAnnotations(Map map); + public A addToAnnotations(Map map); - public A removeFromAnnotations(java.lang.String key); + public A removeFromAnnotations(String key); - public A removeFromAnnotations(java.util.Map map); + public A removeFromAnnotations(Map map); - public java.util.Map getAnnotations(); + public Map getAnnotations(); - public A withAnnotations(java.util.Map annotations); + public A withAnnotations(Map annotations); public Boolean hasAnnotations(); - public java.lang.String getClusterName(); - - public A withClusterName(java.lang.String clusterName); - - public java.lang.Boolean hasClusterName(); - public OffsetDateTime getCreationTimestamp(); - public A withCreationTimestamp(java.time.OffsetDateTime creationTimestamp); + public A withCreationTimestamp(OffsetDateTime creationTimestamp); - public java.lang.Boolean hasCreationTimestamp(); + public Boolean hasCreationTimestamp(); public Long getDeletionGracePeriodSeconds(); - public A withDeletionGracePeriodSeconds(java.lang.Long deletionGracePeriodSeconds); + public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds); - public java.lang.Boolean hasDeletionGracePeriodSeconds(); + public Boolean hasDeletionGracePeriodSeconds(); - public java.time.OffsetDateTime getDeletionTimestamp(); + public OffsetDateTime getDeletionTimestamp(); - public A withDeletionTimestamp(java.time.OffsetDateTime deletionTimestamp); + public A withDeletionTimestamp(OffsetDateTime deletionTimestamp); - public java.lang.Boolean hasDeletionTimestamp(); + public Boolean hasDeletionTimestamp(); - public A addToFinalizers(Integer index, java.lang.String item); + public A addToFinalizers(Integer index, String item); - public A setToFinalizers(java.lang.Integer index, java.lang.String item); + public A setToFinalizers(Integer index, String item); public A addToFinalizers(java.lang.String... items); - public A addAllToFinalizers(Collection items); + public A addAllToFinalizers(Collection items); public A removeFromFinalizers(java.lang.String... items); - public A removeAllFromFinalizers(java.util.Collection items); + public A removeAllFromFinalizers(Collection items); - public List getFinalizers(); + public List getFinalizers(); - public java.lang.String getFinalizer(java.lang.Integer index); + public String getFinalizer(Integer index); - public java.lang.String getFirstFinalizer(); + public String getFirstFinalizer(); - public java.lang.String getLastFinalizer(); + public String getLastFinalizer(); - public java.lang.String getMatchingFinalizer(Predicate predicate); + public String getMatchingFinalizer(Predicate predicate); - public java.lang.Boolean hasMatchingFinalizer( - java.util.function.Predicate predicate); + public Boolean hasMatchingFinalizer(Predicate predicate); - public A withFinalizers(java.util.List finalizers); + public A withFinalizers(List finalizers); public A withFinalizers(java.lang.String... finalizers); - public java.lang.Boolean hasFinalizers(); + public Boolean hasFinalizers(); - public java.lang.String getGenerateName(); + public String getGenerateName(); - public A withGenerateName(java.lang.String generateName); + public A withGenerateName(String generateName); - public java.lang.Boolean hasGenerateName(); + public Boolean hasGenerateName(); - public java.lang.Long getGeneration(); + public Long getGeneration(); - public A withGeneration(java.lang.Long generation); + public A withGeneration(Long generation); - public java.lang.Boolean hasGeneration(); + public Boolean hasGeneration(); - public A addToLabels(java.lang.String key, java.lang.String value); + public A addToLabels(String key, String value); - public A addToLabels(java.util.Map map); + public A addToLabels(Map map); - public A removeFromLabels(java.lang.String key); + public A removeFromLabels(String key); - public A removeFromLabels(java.util.Map map); + public A removeFromLabels(Map map); - public java.util.Map getLabels(); + public Map getLabels(); - public A withLabels(java.util.Map labels); + public A withLabels(Map labels); - public java.lang.Boolean hasLabels(); + public Boolean hasLabels(); - public A addToManagedFields(java.lang.Integer index, V1ManagedFieldsEntry item); + public A addToManagedFields(Integer index, V1ManagedFieldsEntry item); - public A setToManagedFields( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item); + public A setToManagedFields(Integer index, V1ManagedFieldsEntry item); public A addToManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items); - public A addAllToManagedFields( - java.util.Collection items); + public A addAllToManagedFields(Collection items); public A removeFromManagedFields( io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items); - public A removeAllFromManagedFields( - java.util.Collection items); + public A removeAllFromManagedFields(Collection items); - public A removeMatchingFromManagedFields( - java.util.function.Predicate predicate); + public A removeMatchingFromManagedFields(Predicate predicate); /** * This method has been deprecated, please use method buildManagedFields instead. @@ -142,163 +131,132 @@ public A removeMatchingFromManagedFields( * @return The buildable object. */ @Deprecated - public java.util.List - getManagedFields(); + public List getManagedFields(); - public java.util.List - buildManagedFields(); + public List buildManagedFields(); - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildManagedField( - java.lang.Integer index); + public V1ManagedFieldsEntry buildManagedField(Integer index); - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildFirstManagedField(); + public V1ManagedFieldsEntry buildFirstManagedField(); - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildLastManagedField(); + public V1ManagedFieldsEntry buildLastManagedField(); - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildMatchingManagedField( - java.util.function.Predicate - predicate); + public V1ManagedFieldsEntry buildMatchingManagedField( + Predicate predicate); - public java.lang.Boolean hasMatchingManagedField( - java.util.function.Predicate - predicate); + public Boolean hasMatchingManagedField(Predicate predicate); - public A withManagedFields( - java.util.List managedFields); + public A withManagedFields(List managedFields); public A withManagedFields( io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields); - public java.lang.Boolean hasManagedFields(); + public Boolean hasManagedFields(); public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedField(); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - addNewManagedFieldLike(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item); + public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedFieldLike( + V1ManagedFieldsEntry item); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - setNewManagedFieldLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item); + public V1ObjectMetaFluent.ManagedFieldsNested setNewManagedFieldLike( + Integer index, V1ManagedFieldsEntry item); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editManagedField(java.lang.Integer index); + public V1ObjectMetaFluent.ManagedFieldsNested editManagedField(Integer index); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editFirstManagedField(); + public V1ObjectMetaFluent.ManagedFieldsNested editFirstManagedField(); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editLastManagedField(); + public V1ObjectMetaFluent.ManagedFieldsNested editLastManagedField(); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editMatchingManagedField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder> - predicate); + public V1ObjectMetaFluent.ManagedFieldsNested editMatchingManagedField( + Predicate predicate); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public A addToOwnerReferences(java.lang.Integer index, V1OwnerReference item); + public A addToOwnerReferences(Integer index, V1OwnerReference item); - public A setToOwnerReferences( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1OwnerReference item); + public A setToOwnerReferences(Integer index, V1OwnerReference item); public A addToOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items); - public A addAllToOwnerReferences( - java.util.Collection items); + public A addAllToOwnerReferences(Collection items); public A removeFromOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items); - public A removeAllFromOwnerReferences( - java.util.Collection items); + public A removeAllFromOwnerReferences(Collection items); - public A removeMatchingFromOwnerReferences( - java.util.function.Predicate predicate); + public A removeMatchingFromOwnerReferences(Predicate predicate); /** * This method has been deprecated, please use method buildOwnerReferences instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getOwnerReferences(); + @Deprecated + public List getOwnerReferences(); - public java.util.List - buildOwnerReferences(); + public List buildOwnerReferences(); - public io.kubernetes.client.openapi.models.V1OwnerReference buildOwnerReference( - java.lang.Integer index); + public V1OwnerReference buildOwnerReference(Integer index); - public io.kubernetes.client.openapi.models.V1OwnerReference buildFirstOwnerReference(); + public V1OwnerReference buildFirstOwnerReference(); - public io.kubernetes.client.openapi.models.V1OwnerReference buildLastOwnerReference(); + public V1OwnerReference buildLastOwnerReference(); - public io.kubernetes.client.openapi.models.V1OwnerReference buildMatchingOwnerReference( - java.util.function.Predicate - predicate); + public V1OwnerReference buildMatchingOwnerReference(Predicate predicate); - public java.lang.Boolean hasMatchingOwnerReference( - java.util.function.Predicate - predicate); + public Boolean hasMatchingOwnerReference(Predicate predicate); - public A withOwnerReferences( - java.util.List ownerReferences); + public A withOwnerReferences(List ownerReferences); public A withOwnerReferences( io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences); - public java.lang.Boolean hasOwnerReferences(); + public Boolean hasOwnerReferences(); public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReference(); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - addNewOwnerReferenceLike(io.kubernetes.client.openapi.models.V1OwnerReference item); + public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReferenceLike( + V1OwnerReference item); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - setNewOwnerReferenceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1OwnerReference item); + public V1ObjectMetaFluent.OwnerReferencesNested setNewOwnerReferenceLike( + Integer index, V1OwnerReference item); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editOwnerReference(java.lang.Integer index); + public V1ObjectMetaFluent.OwnerReferencesNested editOwnerReference(Integer index); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editFirstOwnerReference(); + public V1ObjectMetaFluent.OwnerReferencesNested editFirstOwnerReference(); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editLastOwnerReference(); + public V1ObjectMetaFluent.OwnerReferencesNested editLastOwnerReference(); - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editMatchingOwnerReference( - java.util.function.Predicate - predicate); + public V1ObjectMetaFluent.OwnerReferencesNested editMatchingOwnerReference( + Predicate predicate); - public java.lang.String getResourceVersion(); + public String getResourceVersion(); - public A withResourceVersion(java.lang.String resourceVersion); + public A withResourceVersion(String resourceVersion); - public java.lang.Boolean hasResourceVersion(); + public Boolean hasResourceVersion(); - public java.lang.String getSelfLink(); + public String getSelfLink(); - public A withSelfLink(java.lang.String selfLink); + public A withSelfLink(String selfLink); - public java.lang.Boolean hasSelfLink(); + public Boolean hasSelfLink(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); public interface ManagedFieldsNested extends Nested, V1ManagedFieldsEntryFluent> { @@ -308,8 +266,7 @@ public interface ManagedFieldsNested } public interface OwnerReferencesNested - extends io.kubernetes.client.fluent.Nested, - V1OwnerReferenceFluent> { + extends Nested, V1OwnerReferenceFluent> { public N and(); public N endOwnerReference(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java index 7f8519dc59..3fa0cdb305 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluentImpl.java @@ -29,11 +29,9 @@ public class V1ObjectMetaFluentImpl> extends Bas implements V1ObjectMetaFluent { public V1ObjectMetaFluentImpl() {} - public V1ObjectMetaFluentImpl(io.kubernetes.client.openapi.models.V1ObjectMeta instance) { + public V1ObjectMetaFluentImpl(V1ObjectMeta instance) { this.withAnnotations(instance.getAnnotations()); - this.withClusterName(instance.getClusterName()); - this.withCreationTimestamp(instance.getCreationTimestamp()); this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); @@ -63,24 +61,23 @@ public V1ObjectMetaFluentImpl(io.kubernetes.client.openapi.models.V1ObjectMeta i this.withUid(instance.getUid()); } - private Map annotations; - private java.lang.String clusterName; + private Map annotations; private OffsetDateTime creationTimestamp; private Long deletionGracePeriodSeconds; - private java.time.OffsetDateTime deletionTimestamp; - private List finalizers; - private java.lang.String generateName; - private java.lang.Long generation; - private java.util.Map labels; + private OffsetDateTime deletionTimestamp; + private List finalizers; + private String generateName; + private Long generation; + private Map labels; private ArrayList managedFields; - private java.lang.String name; - private java.lang.String namespace; - private java.util.ArrayList ownerReferences; - private java.lang.String resourceVersion; - private java.lang.String selfLink; - private java.lang.String uid; - - public A addToAnnotations(java.lang.String key, java.lang.String value) { + private String name; + private String namespace; + private ArrayList ownerReferences; + private String resourceVersion; + private String selfLink; + private String uid; + + public A addToAnnotations(String key, String value) { if (this.annotations == null && key != null && value != null) { this.annotations = new LinkedHashMap(); } @@ -90,9 +87,9 @@ public A addToAnnotations(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToAnnotations(java.util.Map map) { + public A addToAnnotations(Map map) { if (this.annotations == null && map != null) { - this.annotations = new java.util.LinkedHashMap(); + this.annotations = new LinkedHashMap(); } if (map != null) { this.annotations.putAll(map); @@ -100,7 +97,7 @@ public A addToAnnotations(java.util.Map map) return (A) this; } - public A removeFromAnnotations(java.lang.String key) { + public A removeFromAnnotations(String key) { if (this.annotations == null) { return (A) this; } @@ -110,7 +107,7 @@ public A removeFromAnnotations(java.lang.String key) { return (A) this; } - public A removeFromAnnotations(java.util.Map map) { + public A removeFromAnnotations(Map map) { if (this.annotations == null) { return (A) this; } @@ -124,15 +121,15 @@ public A removeFromAnnotations(java.util.Map return (A) this; } - public java.util.Map getAnnotations() { + public Map getAnnotations() { return this.annotations; } - public A withAnnotations(java.util.Map annotations) { + public A withAnnotations(Map annotations) { if (annotations == null) { this.annotations = null; } else { - this.annotations = new java.util.LinkedHashMap(annotations); + this.annotations = new LinkedHashMap(annotations); } return (A) this; } @@ -141,69 +138,56 @@ public Boolean hasAnnotations() { return this.annotations != null; } - public java.lang.String getClusterName() { - return this.clusterName; - } - - public A withClusterName(java.lang.String clusterName) { - this.clusterName = clusterName; - return (A) this; - } - - public java.lang.Boolean hasClusterName() { - return this.clusterName != null; - } - - public java.time.OffsetDateTime getCreationTimestamp() { + public OffsetDateTime getCreationTimestamp() { return this.creationTimestamp; } - public A withCreationTimestamp(java.time.OffsetDateTime creationTimestamp) { + public A withCreationTimestamp(OffsetDateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; return (A) this; } - public java.lang.Boolean hasCreationTimestamp() { + public Boolean hasCreationTimestamp() { return this.creationTimestamp != null; } - public java.lang.Long getDeletionGracePeriodSeconds() { + public Long getDeletionGracePeriodSeconds() { return this.deletionGracePeriodSeconds; } - public A withDeletionGracePeriodSeconds(java.lang.Long deletionGracePeriodSeconds) { + public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; return (A) this; } - public java.lang.Boolean hasDeletionGracePeriodSeconds() { + public Boolean hasDeletionGracePeriodSeconds() { return this.deletionGracePeriodSeconds != null; } - public java.time.OffsetDateTime getDeletionTimestamp() { + public OffsetDateTime getDeletionTimestamp() { return this.deletionTimestamp; } - public A withDeletionTimestamp(java.time.OffsetDateTime deletionTimestamp) { + public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; return (A) this; } - public java.lang.Boolean hasDeletionTimestamp() { + public Boolean hasDeletionTimestamp() { return this.deletionTimestamp != null; } - public A addToFinalizers(Integer index, java.lang.String item) { + public A addToFinalizers(Integer index, String item) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } this.finalizers.add(index, item); return (A) this; } - public A setToFinalizers(java.lang.Integer index, java.lang.String item) { + public A setToFinalizers(Integer index, String item) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } this.finalizers.set(index, item); return (A) this; @@ -211,26 +195,26 @@ public A setToFinalizers(java.lang.Integer index, java.lang.String item) { public A addToFinalizers(java.lang.String... items) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.finalizers.add(item); } return (A) this; } - public A addAllToFinalizers(Collection items) { + public A addAllToFinalizers(Collection items) { if (this.finalizers == null) { - this.finalizers = new java.util.ArrayList(); + this.finalizers = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.finalizers.add(item); } return (A) this; } public A removeFromFinalizers(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.finalizers != null) { this.finalizers.remove(item); } @@ -238,8 +222,8 @@ public A removeFromFinalizers(java.lang.String... items) { return (A) this; } - public A removeAllFromFinalizers(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromFinalizers(Collection items) { + for (String item : items) { if (this.finalizers != null) { this.finalizers.remove(item); } @@ -247,24 +231,24 @@ public A removeAllFromFinalizers(java.util.Collection items) { return (A) this; } - public java.util.List getFinalizers() { + public List getFinalizers() { return this.finalizers; } - public java.lang.String getFinalizer(java.lang.Integer index) { + public String getFinalizer(Integer index) { return this.finalizers.get(index); } - public java.lang.String getFirstFinalizer() { + public String getFirstFinalizer() { return this.finalizers.get(0); } - public java.lang.String getLastFinalizer() { + public String getLastFinalizer() { return this.finalizers.get(finalizers.size() - 1); } - public java.lang.String getMatchingFinalizer(Predicate predicate) { - for (java.lang.String item : finalizers) { + public String getMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { if (predicate.test(item)) { return item; } @@ -272,9 +256,8 @@ public java.lang.String getMatchingFinalizer(Predicate predica return null; } - public java.lang.Boolean hasMatchingFinalizer( - java.util.function.Predicate predicate) { - for (java.lang.String item : finalizers) { + public Boolean hasMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { if (predicate.test(item)) { return true; } @@ -282,10 +265,10 @@ public java.lang.Boolean hasMatchingFinalizer( return false; } - public A withFinalizers(java.util.List finalizers) { + public A withFinalizers(List finalizers) { if (finalizers != null) { - this.finalizers = new java.util.ArrayList(); - for (java.lang.String item : finalizers) { + this.finalizers = new ArrayList(); + for (String item : finalizers) { this.addToFinalizers(item); } } else { @@ -299,46 +282,46 @@ public A withFinalizers(java.lang.String... finalizers) { this.finalizers.clear(); } if (finalizers != null) { - for (java.lang.String item : finalizers) { + for (String item : finalizers) { this.addToFinalizers(item); } } return (A) this; } - public java.lang.Boolean hasFinalizers() { + public Boolean hasFinalizers() { return finalizers != null && !finalizers.isEmpty(); } - public java.lang.String getGenerateName() { + public String getGenerateName() { return this.generateName; } - public A withGenerateName(java.lang.String generateName) { + public A withGenerateName(String generateName) { this.generateName = generateName; return (A) this; } - public java.lang.Boolean hasGenerateName() { + public Boolean hasGenerateName() { return this.generateName != null; } - public java.lang.Long getGeneration() { + public Long getGeneration() { return this.generation; } - public A withGeneration(java.lang.Long generation) { + public A withGeneration(Long generation) { this.generation = generation; return (A) this; } - public java.lang.Boolean hasGeneration() { + public Boolean hasGeneration() { return this.generation != null; } - public A addToLabels(java.lang.String key, java.lang.String value) { + public A addToLabels(String key, String value) { if (this.labels == null && key != null && value != null) { - this.labels = new java.util.LinkedHashMap(); + this.labels = new LinkedHashMap(); } if (key != null && value != null) { this.labels.put(key, value); @@ -346,9 +329,9 @@ public A addToLabels(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToLabels(java.util.Map map) { + public A addToLabels(Map map) { if (this.labels == null && map != null) { - this.labels = new java.util.LinkedHashMap(); + this.labels = new LinkedHashMap(); } if (map != null) { this.labels.putAll(map); @@ -356,7 +339,7 @@ public A addToLabels(java.util.Map map) { return (A) this; } - public A removeFromLabels(java.lang.String key) { + public A removeFromLabels(String key) { if (this.labels == null) { return (A) this; } @@ -366,7 +349,7 @@ public A removeFromLabels(java.lang.String key) { return (A) this; } - public A removeFromLabels(java.util.Map map) { + public A removeFromLabels(Map map) { if (this.labels == null) { return (A) this; } @@ -380,31 +363,28 @@ public A removeFromLabels(java.util.Map map) return (A) this; } - public java.util.Map getLabels() { + public Map getLabels() { return this.labels; } - public A withLabels(java.util.Map labels) { + public A withLabels(Map labels) { if (labels == null) { this.labels = null; } else { - this.labels = new java.util.LinkedHashMap(labels); + this.labels = new LinkedHashMap(labels); } return (A) this; } - public java.lang.Boolean hasLabels() { + public Boolean hasLabels() { return this.labels != null; } - public A addToManagedFields(java.lang.Integer index, V1ManagedFieldsEntry item) { + public A addToManagedFields(Integer index, V1ManagedFieldsEntry item) { if (this.managedFields == null) { - this.managedFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder>(); + this.managedFields = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = - new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(item); + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); _visitables .get("managedFields") .add(index >= 0 ? index : _visitables.get("managedFields").size(), builder); @@ -412,15 +392,11 @@ public A addToManagedFields(java.lang.Integer index, V1ManagedFieldsEntry item) return (A) this; } - public A setToManagedFields( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item) { + public A setToManagedFields(Integer index, V1ManagedFieldsEntry item) { if (this.managedFields == null) { - this.managedFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder>(); + this.managedFields = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = - new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(item); + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); if (index < 0 || index >= _visitables.get("managedFields").size()) { _visitables.get("managedFields").add(builder); } else { @@ -436,29 +412,22 @@ public A setToManagedFields( public A addToManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { if (this.managedFields == null) { - this.managedFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder>(); + this.managedFields = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item : items) { - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = - new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(item); + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); _visitables.get("managedFields").add(builder); this.managedFields.add(builder); } return (A) this; } - public A addAllToManagedFields( - java.util.Collection items) { + public A addAllToManagedFields(Collection items) { if (this.managedFields == null) { - this.managedFields = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder>(); + this.managedFields = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item : items) { - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = - new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(item); + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); _visitables.get("managedFields").add(builder); this.managedFields.add(builder); } @@ -467,9 +436,8 @@ public A addAllToManagedFields( public A removeFromManagedFields( io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item : items) { - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = - new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(item); + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); _visitables.get("managedFields").remove(builder); if (this.managedFields != null) { this.managedFields.remove(builder); @@ -478,11 +446,9 @@ public A removeFromManagedFields( return (A) this; } - public A removeAllFromManagedFields( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item : items) { - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = - new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(item); + public A removeAllFromManagedFields(Collection items) { + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); _visitables.get("managedFields").remove(builder); if (this.managedFields != null) { this.managedFields.remove(builder); @@ -491,15 +457,12 @@ public A removeAllFromManagedFields( return (A) this; } - public A removeMatchingFromManagedFields( - java.util.function.Predicate - predicate) { + public A removeMatchingFromManagedFields(Predicate predicate) { if (managedFields == null) return (A) this; - final Iterator each = - managedFields.iterator(); + final Iterator each = managedFields.iterator(); final List visitables = _visitables.get("managedFields"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder = each.next(); + V1ManagedFieldsEntryBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -514,33 +477,29 @@ public A removeMatchingFromManagedFields( * @return The buildable object. */ @Deprecated - public java.util.List - getManagedFields() { + public List getManagedFields() { return managedFields != null ? build(managedFields) : null; } - public java.util.List - buildManagedFields() { + public List buildManagedFields() { return managedFields != null ? build(managedFields) : null; } - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildManagedField( - java.lang.Integer index) { + public V1ManagedFieldsEntry buildManagedField(Integer index) { return this.managedFields.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildFirstManagedField() { + public V1ManagedFieldsEntry buildFirstManagedField() { return this.managedFields.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildLastManagedField() { + public V1ManagedFieldsEntry buildLastManagedField() { return this.managedFields.get(managedFields.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildMatchingManagedField( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder item : managedFields) { + public V1ManagedFieldsEntry buildMatchingManagedField( + Predicate predicate) { + for (V1ManagedFieldsEntryBuilder item : managedFields) { if (predicate.test(item)) { return item.build(); } @@ -548,10 +507,8 @@ public io.kubernetes.client.openapi.models.V1ManagedFieldsEntry buildMatchingMan return null; } - public java.lang.Boolean hasMatchingManagedField( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder item : managedFields) { + public Boolean hasMatchingManagedField(Predicate predicate) { + for (V1ManagedFieldsEntryBuilder item : managedFields) { if (predicate.test(item)) { return true; } @@ -559,14 +516,13 @@ public java.lang.Boolean hasMatchingManagedField( return false; } - public A withManagedFields( - java.util.List managedFields) { + public A withManagedFields(List managedFields) { if (this.managedFields != null) { _visitables.get("managedFields").removeAll(this.managedFields); } if (managedFields != null) { - this.managedFields = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item : managedFields) { + this.managedFields = new ArrayList(); + for (V1ManagedFieldsEntry item : managedFields) { this.addToManagedFields(item); } } else { @@ -581,14 +537,14 @@ public A withManagedFields( this.managedFields.clear(); } if (managedFields != null) { - for (io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item : managedFields) { + for (V1ManagedFieldsEntry item : managedFields) { this.addToManagedFields(item); } } return (A) this; } - public java.lang.Boolean hasManagedFields() { + public Boolean hasManagedFields() { return managedFields != null && !managedFields.isEmpty(); } @@ -596,44 +552,36 @@ public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedField() { return new V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - addNewManagedFieldLike(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item) { + public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedFieldLike( + V1ManagedFieldsEntry item) { return new V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - setNewManagedFieldLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item) { - return new io.kubernetes.client.openapi.models.V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl( - index, item); + public V1ObjectMetaFluent.ManagedFieldsNested setNewManagedFieldLike( + Integer index, V1ManagedFieldsEntry item) { + return new V1ObjectMetaFluentImpl.ManagedFieldsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editManagedField(java.lang.Integer index) { + public V1ObjectMetaFluent.ManagedFieldsNested editManagedField(Integer index) { if (managedFields.size() <= index) throw new RuntimeException("Can't edit managedFields. Index exceeds size."); return setNewManagedFieldLike(index, buildManagedField(index)); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editFirstManagedField() { + public V1ObjectMetaFluent.ManagedFieldsNested editFirstManagedField() { if (managedFields.size() == 0) throw new RuntimeException("Can't edit first managedFields. The list is empty."); return setNewManagedFieldLike(0, buildManagedField(0)); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editLastManagedField() { + public V1ObjectMetaFluent.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)); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested - editMatchingManagedField( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder> - predicate) { + public V1ObjectMetaFluent.ManagedFieldsNested editMatchingManagedField( + Predicate predicate) { int index = -1; for (int i = 0; i < managedFields.size(); i++) { if (predicate.test(managedFields.get(i))) { @@ -645,39 +593,37 @@ public V1ObjectMetaFluent.ManagedFieldsNested addNewManagedField() { return setNewManagedFieldLike(index, buildManagedField(index)); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public A addToOwnerReferences(java.lang.Integer index, V1OwnerReference item) { + public A addToOwnerReferences(Integer index, V1OwnerReference item) { if (this.ownerReferences == null) { - this.ownerReferences = - new java.util.ArrayList(); + this.ownerReferences = new ArrayList(); } - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(item); + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); _visitables .get("ownerReferences") .add(index >= 0 ? index : _visitables.get("ownerReferences").size(), builder); @@ -685,14 +631,11 @@ public A addToOwnerReferences(java.lang.Integer index, V1OwnerReference item) { return (A) this; } - public A setToOwnerReferences( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1OwnerReference item) { + public A setToOwnerReferences(Integer index, V1OwnerReference item) { if (this.ownerReferences == null) { - this.ownerReferences = - new java.util.ArrayList(); + this.ownerReferences = new ArrayList(); } - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(item); + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); if (index < 0 || index >= _visitables.get("ownerReferences").size()) { _visitables.get("ownerReferences").add(builder); } else { @@ -708,27 +651,22 @@ public A setToOwnerReferences( public A addToOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { if (this.ownerReferences == null) { - this.ownerReferences = - new java.util.ArrayList(); + this.ownerReferences = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1OwnerReference item : items) { - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(item); + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); _visitables.get("ownerReferences").add(builder); this.ownerReferences.add(builder); } return (A) this; } - public A addAllToOwnerReferences( - java.util.Collection items) { + public A addAllToOwnerReferences(Collection items) { if (this.ownerReferences == null) { - this.ownerReferences = - new java.util.ArrayList(); + this.ownerReferences = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1OwnerReference item : items) { - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(item); + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); _visitables.get("ownerReferences").add(builder); this.ownerReferences.add(builder); } @@ -737,9 +675,8 @@ public A addAllToOwnerReferences( public A removeFromOwnerReferences( io.kubernetes.client.openapi.models.V1OwnerReference... items) { - for (io.kubernetes.client.openapi.models.V1OwnerReference item : items) { - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(item); + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); _visitables.get("ownerReferences").remove(builder); if (this.ownerReferences != null) { this.ownerReferences.remove(builder); @@ -748,11 +685,9 @@ public A removeFromOwnerReferences( return (A) this; } - public A removeAllFromOwnerReferences( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1OwnerReference item : items) { - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(item); + public A removeAllFromOwnerReferences(Collection items) { + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); _visitables.get("ownerReferences").remove(builder); if (this.ownerReferences != null) { this.ownerReferences.remove(builder); @@ -761,15 +696,12 @@ public A removeAllFromOwnerReferences( return (A) this; } - public A removeMatchingFromOwnerReferences( - java.util.function.Predicate - predicate) { + public A removeMatchingFromOwnerReferences(Predicate predicate) { if (ownerReferences == null) return (A) this; - final Iterator each = - ownerReferences.iterator(); + final Iterator each = ownerReferences.iterator(); final List visitables = _visitables.get("ownerReferences"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder = each.next(); + V1OwnerReferenceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -783,33 +715,30 @@ public A removeMatchingFromOwnerReferences( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getOwnerReferences() { + @Deprecated + public List getOwnerReferences() { return ownerReferences != null ? build(ownerReferences) : null; } - public java.util.List - buildOwnerReferences() { + public List buildOwnerReferences() { return ownerReferences != null ? build(ownerReferences) : null; } - public io.kubernetes.client.openapi.models.V1OwnerReference buildOwnerReference( - java.lang.Integer index) { + public V1OwnerReference buildOwnerReference(Integer index) { return this.ownerReferences.get(index).build(); } - public io.kubernetes.client.openapi.models.V1OwnerReference buildFirstOwnerReference() { + public V1OwnerReference buildFirstOwnerReference() { return this.ownerReferences.get(0).build(); } - public io.kubernetes.client.openapi.models.V1OwnerReference buildLastOwnerReference() { + public V1OwnerReference buildLastOwnerReference() { return this.ownerReferences.get(ownerReferences.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1OwnerReference buildMatchingOwnerReference( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder item : ownerReferences) { + public V1OwnerReference buildMatchingOwnerReference( + Predicate predicate) { + for (V1OwnerReferenceBuilder item : ownerReferences) { if (predicate.test(item)) { return item.build(); } @@ -817,10 +746,8 @@ public io.kubernetes.client.openapi.models.V1OwnerReference buildMatchingOwnerRe return null; } - public java.lang.Boolean hasMatchingOwnerReference( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder item : ownerReferences) { + public Boolean hasMatchingOwnerReference(Predicate predicate) { + for (V1OwnerReferenceBuilder item : ownerReferences) { if (predicate.test(item)) { return true; } @@ -828,14 +755,13 @@ public java.lang.Boolean hasMatchingOwnerReference( return false; } - public A withOwnerReferences( - java.util.List ownerReferences) { + public A withOwnerReferences(List ownerReferences) { if (this.ownerReferences != null) { _visitables.get("ownerReferences").removeAll(this.ownerReferences); } if (ownerReferences != null) { - this.ownerReferences = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1OwnerReference item : ownerReferences) { + this.ownerReferences = new ArrayList(); + for (V1OwnerReference item : ownerReferences) { this.addToOwnerReferences(item); } } else { @@ -850,14 +776,14 @@ public A withOwnerReferences( this.ownerReferences.clear(); } if (ownerReferences != null) { - for (io.kubernetes.client.openapi.models.V1OwnerReference item : ownerReferences) { + for (V1OwnerReference item : ownerReferences) { this.addToOwnerReferences(item); } } return (A) this; } - public java.lang.Boolean hasOwnerReferences() { + public Boolean hasOwnerReferences() { return ownerReferences != null && !ownerReferences.isEmpty(); } @@ -865,45 +791,37 @@ public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReference() { return new V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - addNewOwnerReferenceLike(io.kubernetes.client.openapi.models.V1OwnerReference item) { - return new io.kubernetes.client.openapi.models.V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl( - -1, item); + public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReferenceLike( + V1OwnerReference item) { + return new V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - setNewOwnerReferenceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1OwnerReference item) { - return new io.kubernetes.client.openapi.models.V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl( - index, item); + public V1ObjectMetaFluent.OwnerReferencesNested setNewOwnerReferenceLike( + Integer index, V1OwnerReference item) { + return new V1ObjectMetaFluentImpl.OwnerReferencesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editOwnerReference(java.lang.Integer index) { + public V1ObjectMetaFluent.OwnerReferencesNested editOwnerReference(Integer index) { if (ownerReferences.size() <= index) throw new RuntimeException("Can't edit ownerReferences. Index exceeds size."); return setNewOwnerReferenceLike(index, buildOwnerReference(index)); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editFirstOwnerReference() { + public V1ObjectMetaFluent.OwnerReferencesNested editFirstOwnerReference() { if (ownerReferences.size() == 0) throw new RuntimeException("Can't edit first ownerReferences. The list is empty."); return setNewOwnerReferenceLike(0, buildOwnerReference(0)); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editLastOwnerReference() { + public V1ObjectMetaFluent.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)); } - public io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested - editMatchingOwnerReference( - java.util.function.Predicate - predicate) { + public V1ObjectMetaFluent.OwnerReferencesNested editMatchingOwnerReference( + Predicate predicate) { int index = -1; for (int i = 0; i < ownerReferences.size(); i++) { if (predicate.test(ownerReferences.get(i))) { @@ -916,42 +834,42 @@ public V1ObjectMetaFluent.OwnerReferencesNested addNewOwnerReference() { return setNewOwnerReferenceLike(index, buildOwnerReference(index)); } - public java.lang.String getResourceVersion() { + public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(java.lang.String resourceVersion) { + public A withResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return (A) this; } - public java.lang.Boolean hasResourceVersion() { + public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public java.lang.String getSelfLink() { + public String getSelfLink() { return this.selfLink; } - public A withSelfLink(java.lang.String selfLink) { + public A withSelfLink(String selfLink) { this.selfLink = selfLink; return (A) this; } - public java.lang.Boolean hasSelfLink() { + public Boolean hasSelfLink() { return this.selfLink != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -961,8 +879,6 @@ public boolean equals(Object o) { V1ObjectMetaFluentImpl that = (V1ObjectMetaFluentImpl) o; if (annotations != null ? !annotations.equals(that.annotations) : that.annotations != null) return false; - if (clusterName != null ? !clusterName.equals(that.clusterName) : that.clusterName != null) - return false; if (creationTimestamp != null ? !creationTimestamp.equals(that.creationTimestamp) : that.creationTimestamp != null) return false; @@ -999,7 +915,6 @@ public boolean equals(Object o) { public int hashCode() { return java.util.Objects.hash( annotations, - clusterName, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, @@ -1017,17 +932,13 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (annotations != null && !annotations.isEmpty()) { sb.append("annotations:"); sb.append(annotations + ","); } - if (clusterName != null) { - sb.append("clusterName:"); - sb.append(clusterName + ","); - } if (creationTimestamp != null) { sb.append("creationTimestamp:"); sb.append(creationTimestamp + ","); @@ -1090,21 +1001,19 @@ public java.lang.String toString() { class ManagedFieldsNestedImpl extends V1ManagedFieldsEntryFluentImpl> - implements io.kubernetes.client.openapi.models.V1ObjectMetaFluent.ManagedFieldsNested, - Nested { - ManagedFieldsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ManagedFieldsEntry item) { + implements V1ObjectMetaFluent.ManagedFieldsNested, Nested { + ManagedFieldsNestedImpl(Integer index, V1ManagedFieldsEntry item) { this.index = index; this.builder = new V1ManagedFieldsEntryBuilder(this, item); } ManagedFieldsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder(this); + this.builder = new V1ManagedFieldsEntryBuilder(this); } - io.kubernetes.client.openapi.models.V1ManagedFieldsEntryBuilder builder; - java.lang.Integer index; + V1ManagedFieldsEntryBuilder builder; + Integer index; public N and() { return (N) V1ObjectMetaFluentImpl.this.setToManagedFields(index, builder.build()); @@ -1117,21 +1026,19 @@ public N endManagedField() { class OwnerReferencesNestedImpl extends V1OwnerReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ObjectMetaFluent.OwnerReferencesNested, - io.kubernetes.client.fluent.Nested { - OwnerReferencesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1OwnerReference item) { + implements V1ObjectMetaFluent.OwnerReferencesNested, Nested { + OwnerReferencesNestedImpl(Integer index, V1OwnerReference item) { this.index = index; this.builder = new V1OwnerReferenceBuilder(this, item); } OwnerReferencesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder(this); + this.builder = new V1OwnerReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder builder; - java.lang.Integer index; + V1OwnerReferenceBuilder builder; + Integer index; public N and() { return (N) V1ObjectMetaFluentImpl.this.setToOwnerReferences(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java index da2e7dab2d..0577dfd25c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ObjectReferenceBuilder extends V1ObjectReferenceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ObjectReference, - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder> { + implements VisitableBuilder { public V1ObjectReferenceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent) { this(fluent, false); } - public V1ObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1ObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ObjectReference(), validationEnabled); } - public V1ObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1ObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1ObjectReference instance) { + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent, V1ObjectReference instance) { this(fluent, instance, false); } public V1ObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1ObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1ObjectReference instance, - java.lang.Boolean validationEnabled) { + V1ObjectReferenceFluent fluent, V1ObjectReference instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -64,13 +56,11 @@ public V1ObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1ObjectReferenceBuilder(io.kubernetes.client.openapi.models.V1ObjectReference instance) { + public V1ObjectReferenceBuilder(V1ObjectReference instance) { this(instance, false); } - public V1ObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1ObjectReference instance, - java.lang.Boolean validationEnabled) { + public V1ObjectReferenceBuilder(V1ObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -89,10 +79,10 @@ public V1ObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1ObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ObjectReference build() { + public V1ObjectReference build() { V1ObjectReference buildable = new V1ObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setFieldPath(fluent.getFieldPath()); 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 2d23ce533a..e7187bcfcf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java @@ -18,43 +18,43 @@ public interface V1ObjectReferenceFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getFieldPath(); + public String getFieldPath(); - public A withFieldPath(java.lang.String fieldPath); + public A withFieldPath(String fieldPath); - public java.lang.Boolean hasFieldPath(); + public Boolean hasFieldPath(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public java.lang.String getResourceVersion(); + public String getResourceVersion(); - public A withResourceVersion(java.lang.String resourceVersion); + public A withResourceVersion(String resourceVersion); - public java.lang.Boolean hasResourceVersion(); + public Boolean hasResourceVersion(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java index 7abede0548..c0333b8d15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluentImpl.java @@ -20,8 +20,7 @@ public class V1ObjectReferenceFluentImpl> e implements V1ObjectReferenceFluent { public V1ObjectReferenceFluentImpl() {} - public V1ObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1ObjectReference instance) { + public V1ObjectReferenceFluentImpl(V1ObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withFieldPath(instance.getFieldPath()); @@ -38,18 +37,18 @@ public V1ObjectReferenceFluentImpl( } private String apiVersion; - private java.lang.String fieldPath; - private java.lang.String kind; - private java.lang.String name; - private java.lang.String namespace; - private java.lang.String resourceVersion; - private java.lang.String uid; - - public java.lang.String getApiVersion() { + private String fieldPath; + private String kind; + private String name; + private String namespace; + private String resourceVersion; + private String uid; + + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -58,81 +57,81 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getFieldPath() { + public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(java.lang.String fieldPath) { + public A withFieldPath(String fieldPath) { this.fieldPath = fieldPath; return (A) this; } - public java.lang.Boolean hasFieldPath() { + public Boolean hasFieldPath() { return this.fieldPath != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.String getResourceVersion() { + public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(java.lang.String resourceVersion) { + public A withResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return (A) this; } - public java.lang.Boolean hasResourceVersion() { + public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -160,7 +159,7 @@ public int hashCode() { apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 66f4673419..cfb88b5b11 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1OverheadBuilder extends V1OverheadFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1OverheadBuilder() { this(false); } @@ -28,45 +28,37 @@ public V1OverheadBuilder(V1OverheadFluent fluent) { this(fluent, false); } - public V1OverheadBuilder( - io.kubernetes.client.openapi.models.V1OverheadFluent fluent, - java.lang.Boolean validationEnabled) { + public V1OverheadBuilder(V1OverheadFluent fluent, Boolean validationEnabled) { this(fluent, new V1Overhead(), validationEnabled); } - public V1OverheadBuilder( - io.kubernetes.client.openapi.models.V1OverheadFluent fluent, - io.kubernetes.client.openapi.models.V1Overhead instance) { + public V1OverheadBuilder(V1OverheadFluent fluent, V1Overhead instance) { this(fluent, instance, false); } public V1OverheadBuilder( - io.kubernetes.client.openapi.models.V1OverheadFluent fluent, - io.kubernetes.client.openapi.models.V1Overhead instance, - java.lang.Boolean validationEnabled) { + V1OverheadFluent fluent, V1Overhead instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPodFixed(instance.getPodFixed()); this.validationEnabled = validationEnabled; } - public V1OverheadBuilder(io.kubernetes.client.openapi.models.V1Overhead instance) { + public V1OverheadBuilder(V1Overhead instance) { this(instance, false); } - public V1OverheadBuilder( - io.kubernetes.client.openapi.models.V1Overhead instance, - java.lang.Boolean validationEnabled) { + public V1OverheadBuilder(V1Overhead instance, Boolean validationEnabled) { this.fluent = this; this.withPodFixed(instance.getPodFixed()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1OverheadFluent fluent; - java.lang.Boolean validationEnabled; + V1OverheadFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Overhead build() { + public V1Overhead build() { V1Overhead buildable = new V1Overhead(); buildable.setPodFixed(fluent.getPodFixed()); return buildable; 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 c9ee52a10b..6fd4a96948 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 @@ -20,17 +20,15 @@ public interface V1OverheadFluent> extends Fluent { public A addToPodFixed(String key, Quantity value); - public A addToPodFixed(Map map); + public A addToPodFixed(Map map); - public A removeFromPodFixed(java.lang.String key); + public A removeFromPodFixed(String key); - public A removeFromPodFixed( - java.util.Map map); + public A removeFromPodFixed(Map map); - public java.util.Map getPodFixed(); + public Map getPodFixed(); - public A withPodFixed( - java.util.Map podFixed); + public A withPodFixed(Map podFixed); public Boolean hasPodFixed(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java index 4a789b6191..7fb79ac74d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluentImpl.java @@ -23,13 +23,13 @@ public class V1OverheadFluentImpl> extends BaseFlu implements V1OverheadFluent { public V1OverheadFluentImpl() {} - public V1OverheadFluentImpl(io.kubernetes.client.openapi.models.V1Overhead instance) { + public V1OverheadFluentImpl(V1Overhead instance) { this.withPodFixed(instance.getPodFixed()); } private Map podFixed; - public A addToPodFixed(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToPodFixed(String key, Quantity value) { if (this.podFixed == null && key != null && value != null) { this.podFixed = new LinkedHashMap(); } @@ -39,10 +39,9 @@ public A addToPodFixed(java.lang.String key, io.kubernetes.client.custom.Quantit return (A) this; } - public A addToPodFixed( - java.util.Map map) { + public A addToPodFixed(Map map) { if (this.podFixed == null && map != null) { - this.podFixed = new java.util.LinkedHashMap(); + this.podFixed = new LinkedHashMap(); } if (map != null) { this.podFixed.putAll(map); @@ -50,7 +49,7 @@ public A addToPodFixed( return (A) this; } - public A removeFromPodFixed(java.lang.String key) { + public A removeFromPodFixed(String key) { if (this.podFixed == null) { return (A) this; } @@ -60,8 +59,7 @@ public A removeFromPodFixed(java.lang.String key) { return (A) this; } - public A removeFromPodFixed( - java.util.Map map) { + public A removeFromPodFixed(Map map) { if (this.podFixed == null) { return (A) this; } @@ -75,16 +73,15 @@ public A removeFromPodFixed( return (A) this; } - public java.util.Map getPodFixed() { + public Map getPodFixed() { return this.podFixed; } - public A withPodFixed( - java.util.Map podFixed) { + public A withPodFixed(Map podFixed) { if (podFixed == null) { this.podFixed = null; } else { - this.podFixed = new java.util.LinkedHashMap(podFixed); + this.podFixed = new LinkedHashMap(podFixed); } return (A) this; } @@ -105,7 +102,7 @@ public int hashCode() { return java.util.Objects.hash(podFixed, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (podFixed != null && !podFixed.isEmpty()) { 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 69b0477edb..799f5d7557 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1OwnerReference, - io.kubernetes.client.openapi.models.V1OwnerReferenceBuilder> { + implements VisitableBuilder { public V1OwnerReferenceBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent) { this(fluent, false); } - public V1OwnerReferenceBuilder( - io.kubernetes.client.openapi.models.V1OwnerReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1OwnerReference(), validationEnabled); } - public V1OwnerReferenceBuilder( - io.kubernetes.client.openapi.models.V1OwnerReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1OwnerReference instance) { + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent, V1OwnerReference instance) { this(fluent, instance, false); } public V1OwnerReferenceBuilder( - io.kubernetes.client.openapi.models.V1OwnerReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1OwnerReference instance, - java.lang.Boolean validationEnabled) { + V1OwnerReferenceFluent fluent, V1OwnerReference instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,13 +54,11 @@ public V1OwnerReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1OwnerReferenceBuilder(io.kubernetes.client.openapi.models.V1OwnerReference instance) { + public V1OwnerReferenceBuilder(V1OwnerReference instance) { this(instance, false); } - public V1OwnerReferenceBuilder( - io.kubernetes.client.openapi.models.V1OwnerReference instance, - java.lang.Boolean validationEnabled) { + public V1OwnerReferenceBuilder(V1OwnerReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -85,10 +75,10 @@ public V1OwnerReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1OwnerReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1OwnerReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1OwnerReference build() { + public V1OwnerReference build() { V1OwnerReference buildable = new V1OwnerReference(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setBlockOwnerDeletion(fluent.getBlockOwnerDeletion()); 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 c0a2983b05..596287f819 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 @@ -18,39 +18,39 @@ public interface V1OwnerReferenceFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.Boolean getBlockOwnerDeletion(); + public Boolean getBlockOwnerDeletion(); - public A withBlockOwnerDeletion(java.lang.Boolean blockOwnerDeletion); + public A withBlockOwnerDeletion(Boolean blockOwnerDeletion); - public java.lang.Boolean hasBlockOwnerDeletion(); + public Boolean hasBlockOwnerDeletion(); - public java.lang.Boolean getController(); + public Boolean getController(); - public A withController(java.lang.Boolean controller); + public A withController(Boolean controller); - public java.lang.Boolean hasController(); + public Boolean hasController(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); public A withBlockOwnerDeletion(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java index b476670774..76b3a5084d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluentImpl.java @@ -20,7 +20,7 @@ public class V1OwnerReferenceFluentImpl> ext implements V1OwnerReferenceFluent { public V1OwnerReferenceFluentImpl() {} - public V1OwnerReferenceFluentImpl(io.kubernetes.client.openapi.models.V1OwnerReference instance) { + public V1OwnerReferenceFluentImpl(V1OwnerReference instance) { this.withApiVersion(instance.getApiVersion()); this.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); @@ -36,86 +36,86 @@ public V1OwnerReferenceFluentImpl(io.kubernetes.client.openapi.models.V1OwnerRef private String apiVersion; private Boolean blockOwnerDeletion; - private java.lang.Boolean controller; - private java.lang.String kind; - private java.lang.String name; - private java.lang.String uid; + private Boolean controller; + private String kind; + private String name; + private String uid; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.Boolean getBlockOwnerDeletion() { + public Boolean getBlockOwnerDeletion() { return this.blockOwnerDeletion; } - public A withBlockOwnerDeletion(java.lang.Boolean blockOwnerDeletion) { + public A withBlockOwnerDeletion(Boolean blockOwnerDeletion) { this.blockOwnerDeletion = blockOwnerDeletion; return (A) this; } - public java.lang.Boolean hasBlockOwnerDeletion() { + public Boolean hasBlockOwnerDeletion() { return this.blockOwnerDeletion != null; } - public java.lang.Boolean getController() { + public Boolean getController() { return this.controller; } - public A withController(java.lang.Boolean controller) { + public A withController(Boolean controller) { this.controller = controller; return (A) this; } - public java.lang.Boolean hasController() { + public Boolean hasController() { return this.controller != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -141,7 +141,7 @@ public int hashCode() { apiVersion, blockOwnerDeletion, controller, kind, name, uid, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 4b367a5916..091aa5ef0c 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 @@ -16,9 +16,7 @@ public class V1PersistentVolumeBuilder extends V1PersistentVolumeFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolume, - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder> { + implements VisitableBuilder { public V1PersistentVolumeBuilder() { this(false); } @@ -31,22 +29,17 @@ public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent) { this(fluent, false); } - public V1PersistentVolumeBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolume(), validationEnabled); } public V1PersistentVolumeBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolume instance) { + V1PersistentVolumeFluent fluent, V1PersistentVolume instance) { this(fluent, instance, false); } public V1PersistentVolumeBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolume instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeFluent fluent, V1PersistentVolume instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +54,11 @@ public V1PersistentVolumeBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolume instance) { + public V1PersistentVolumeBuilder(V1PersistentVolume instance) { this(instance, false); } - public V1PersistentVolumeBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolume instance, - java.lang.Boolean validationEnabled) { + public V1PersistentVolumeBuilder(V1PersistentVolume instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +73,10 @@ public V1PersistentVolumeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolume build() { + public V1PersistentVolume build() { V1PersistentVolume buildable = new V1PersistentVolume(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 8b68e025fa..91a0369a1f 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 @@ -16,9 +16,7 @@ public class V1PersistentVolumeClaimBuilder extends V1PersistentVolumeClaimFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> { + implements VisitableBuilder { public V1PersistentVolumeClaimBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent) { } public V1PersistentVolumeClaimBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaim(), validationEnabled); } public V1PersistentVolumeClaimBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim instance) { + V1PersistentVolumeClaimFluent fluent, V1PersistentVolumeClaim instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimFluent fluent, + V1PersistentVolumeClaim instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V1PersistentVolumeClaimBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim instance) { + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaim instance) { this(instance, false); } public V1PersistentVolumeClaimBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaim instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V1PersistentVolumeClaimBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim build() { + public V1PersistentVolumeClaim build() { V1PersistentVolumeClaim buildable = new V1PersistentVolumeClaim(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 7da2880848..f3ca5388a3 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 @@ -17,8 +17,7 @@ public class V1PersistentVolumeClaimConditionBuilder extends V1PersistentVolumeClaimConditionFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> { + V1PersistentVolumeClaimCondition, V1PersistentVolumeClaimConditionBuilder> { public V1PersistentVolumeClaimConditionBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionF } public V1PersistentVolumeClaimConditionBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimCondition(), validationEnabled); } public V1PersistentVolumeClaimConditionBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition instance) { + V1PersistentVolumeClaimConditionFluent fluent, V1PersistentVolumeClaimCondition instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimConditionBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimConditionFluent fluent, + V1PersistentVolumeClaimCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastProbeTime(instance.getLastProbeTime()); @@ -63,14 +60,12 @@ public V1PersistentVolumeClaimConditionBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimConditionBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition instance) { + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimCondition instance) { this(instance, false); } public V1PersistentVolumeClaimConditionBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastProbeTime(instance.getLastProbeTime()); @@ -87,10 +82,10 @@ public V1PersistentVolumeClaimConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition build() { + public V1PersistentVolumeClaimCondition build() { V1PersistentVolumeClaimCondition buildable = new V1PersistentVolumeClaimCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); 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 c65a1a2667..3db1eb94e3 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 @@ -21,37 +21,37 @@ public interface V1PersistentVolumeClaimConditionFluent< extends Fluent { public OffsetDateTime getLastProbeTime(); - public A withLastProbeTime(java.time.OffsetDateTime lastProbeTime); + public A withLastProbeTime(OffsetDateTime lastProbeTime); public Boolean hasLastProbeTime(); - public java.time.OffsetDateTime getLastTransitionTime(); + public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public java.lang.Boolean hasLastTransitionTime(); + public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java index ad6c94e6ac..93ab59d23f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluentImpl.java @@ -22,8 +22,7 @@ public class V1PersistentVolumeClaimConditionFluentImpl< extends BaseFluent implements V1PersistentVolumeClaimConditionFluent { public V1PersistentVolumeClaimConditionFluentImpl() {} - public V1PersistentVolumeClaimConditionFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition instance) { + public V1PersistentVolumeClaimConditionFluentImpl(V1PersistentVolumeClaimCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -38,17 +37,17 @@ public V1PersistentVolumeClaimConditionFluentImpl( } private OffsetDateTime lastProbeTime; - private java.time.OffsetDateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(java.time.OffsetDateTime lastProbeTime) { + public A withLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return (A) this; } @@ -57,68 +56,68 @@ public Boolean hasLastProbeTime() { return this.lastProbeTime != null; } - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } - public java.lang.Boolean hasLastTransitionTime() { + public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -145,7 +144,7 @@ public int hashCode() { lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastProbeTime != null) { 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 844b477b83..74773527e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java @@ -20,15 +20,15 @@ public interface V1PersistentVolumeClaimFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,80 +38,73 @@ public interface V1PersistentVolumeClaimFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - editMetadata(); + public V1PersistentVolumeClaimFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - editOrNewMetadata(); + public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeClaimSpec getSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec buildSpec(); + public V1PersistentVolumeClaimSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec spec); + public A withSpec(V1PersistentVolumeClaimSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1PersistentVolumeClaimFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item); + public V1PersistentVolumeClaimFluent.SpecNested withNewSpecLike( + V1PersistentVolumeClaimSpec item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested editSpec(); + public V1PersistentVolumeClaimFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - editOrNewSpec(); + public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item); + public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpecLike( + V1PersistentVolumeClaimSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeClaimStatus getStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus buildStatus(); + public V1PersistentVolumeClaimStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus status); + public A withStatus(V1PersistentVolumeClaimStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1PersistentVolumeClaimFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus item); + public V1PersistentVolumeClaimFluent.StatusNested withNewStatusLike( + V1PersistentVolumeClaimStatus item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - editStatus(); + public V1PersistentVolumeClaimFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - editOrNewStatus(); + public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus item); + public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatusLike( + V1PersistentVolumeClaimStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -121,7 +114,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PersistentVolumeClaimSpecFluent> { public N and(); @@ -129,7 +122,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PersistentVolumeClaimStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java index 58a8f30cc3..bd550fd1ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluentImpl.java @@ -21,8 +21,7 @@ public class V1PersistentVolumeClaimFluentImpl implements V1PersistentVolumeClaimFluent { public V1PersistentVolumeClaimFluentImpl() {} - public V1PersistentVolumeClaimFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim instance) { + public V1PersistentVolumeClaimFluentImpl(V1PersistentVolumeClaim instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1PersistentVolumeClaimFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1PersistentVolumeClaimSpecBuilder spec; private V1PersistentVolumeClaimStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeClaimFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PersistentVolumeClaimFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - editMetadata() { + public V1PersistentVolumeClaimFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - editOrNewMetadata() { + public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PersistentVolumeClaimFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1PersistentVolumeClaimFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec getSpec() { + @Deprecated + public V1PersistentVolumeClaimSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec buildSpec() { + public V1PersistentVolumeClaimSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec spec) { + public A withSpec(V1PersistentVolumeClaimSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,27 +150,22 @@ public V1PersistentVolumeClaimFluent.SpecNested withNewSpec() { return new V1PersistentVolumeClaimFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluentImpl.SpecNestedImpl( - item); + public V1PersistentVolumeClaimFluent.SpecNested withNewSpecLike( + V1PersistentVolumeClaimSpec item) { + return new V1PersistentVolumeClaimFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - editSpec() { + public V1PersistentVolumeClaimFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - editOrNewSpec() { + public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1PersistentVolumeClaimSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item) { + public V1PersistentVolumeClaimFluent.SpecNested editOrNewSpecLike( + V1PersistentVolumeClaimSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -180,26 +174,28 @@ public V1PersistentVolumeClaimFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeClaimStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus buildStatus() { + public V1PersistentVolumeClaimStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus status) { + public A withStatus(V1PersistentVolumeClaimStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusBuilder(status); + this.status = new V1PersistentVolumeClaimStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -207,28 +203,22 @@ public V1PersistentVolumeClaimFluent.StatusNested withNewStatus() { return new V1PersistentVolumeClaimFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluentImpl - .StatusNestedImpl(item); + public V1PersistentVolumeClaimFluent.StatusNested withNewStatusLike( + V1PersistentVolumeClaimStatus item) { + return new V1PersistentVolumeClaimFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - editStatus() { + public V1PersistentVolumeClaimFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - editOrNewStatus() { + public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V1PersistentVolumeClaimStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus item) { + public V1PersistentVolumeClaimFluent.StatusNested editOrNewStatusLike( + V1PersistentVolumeClaimStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -249,7 +239,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -278,18 +268,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.MetadataNested< - N>, - Nested { + implements V1PersistentVolumeClaimFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PersistentVolumeClaimFluentImpl.this.withMetadata(builder.build()); @@ -302,18 +290,16 @@ public N endMetadata() { class SpecNestedImpl extends V1PersistentVolumeClaimSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeClaimFluent.SpecNested, Nested { SpecNestedImpl(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder(this); + this.builder = new V1PersistentVolumeClaimSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder builder; + V1PersistentVolumeClaimSpecBuilder builder; public N and() { return (N) V1PersistentVolumeClaimFluentImpl.this.withSpec(builder.build()); @@ -326,18 +312,16 @@ public N endSpec() { class StatusNestedImpl extends V1PersistentVolumeClaimStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeClaimFluent.StatusNested, Nested { StatusNestedImpl(V1PersistentVolumeClaimStatus item) { this.builder = new V1PersistentVolumeClaimStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusBuilder(this); + this.builder = new V1PersistentVolumeClaimStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusBuilder builder; + V1PersistentVolumeClaimStatusBuilder builder; public N and() { return (N) V1PersistentVolumeClaimFluentImpl.this.withStatus(builder.build()); 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 fbd81671ad..9ff48b3efa 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 @@ -16,9 +16,7 @@ public class V1PersistentVolumeClaimListBuilder extends V1PersistentVolumeClaimListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList, - V1PersistentVolumeClaimListBuilder> { + implements VisitableBuilder { public V1PersistentVolumeClaimListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent f } public V1PersistentVolumeClaimListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimListFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimList(), validationEnabled); } public V1PersistentVolumeClaimListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList instance) { + V1PersistentVolumeClaimListFluent fluent, V1PersistentVolumeClaimList instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimListFluent fluent, + V1PersistentVolumeClaimList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,12 @@ public V1PersistentVolumeClaimListBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList instance) { + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimList instance) { this(instance, false); } public V1PersistentVolumeClaimListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +73,10 @@ public V1PersistentVolumeClaimListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList build() { + public V1PersistentVolumeClaimList build() { V1PersistentVolumeClaimList buildable = new V1PersistentVolumeClaimList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 ef352c28ed..1e82c3fee0 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 @@ -23,25 +23,21 @@ public interface V1PersistentVolumeClaimListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + public A addToItems(Integer index, V1PersistentVolumeClaim item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + public A setToItems(Integer index, V1PersistentVolumeClaim item); public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,92 +47,73 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildItem( - java.lang.Integer index); + public V1PersistentVolumeClaim buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildFirstItem(); + public V1PersistentVolumeClaim buildFirstItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildLastItem(); + public V1PersistentVolumeClaim buildLastItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate); + public V1PersistentVolumeClaim buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1PersistentVolumeClaimListFluent.ItemsNested addNewItem(); public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + V1PersistentVolumeClaim item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + public V1PersistentVolumeClaimListFluent.ItemsNested setNewItemLike( + Integer index, V1PersistentVolumeClaim item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1PersistentVolumeClaimListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editFirstItem(); + public V1PersistentVolumeClaimListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editLastItem(); + public V1PersistentVolumeClaimListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate); + public V1PersistentVolumeClaimListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - editMetadata(); + public V1PersistentVolumeClaimListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - editOrNewMetadata(); + public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, @@ -147,8 +124,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java index eb7cf93538..10b5a24ae1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluentImpl.java @@ -26,8 +26,7 @@ public class V1PersistentVolumeClaimListFluentImpl implements V1PersistentVolumeClaimListFluent { public V1PersistentVolumeClaimListFluentImpl() {} - public V1PersistentVolumeClaimListFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList instance) { + public V1PersistentVolumeClaimListFluentImpl(V1PersistentVolumeClaimList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1PersistentVolumeClaimListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + public A addToItems(Integer index, V1PersistentVolumeClaim item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + public A setToItems(Integer index, V1PersistentVolumeClaim item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -93,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -123,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -134,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeC return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -147,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = each.next(); + V1PersistentVolumeClaimBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,32 +148,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildItem( - java.lang.Integer index) { + public V1PersistentVolumeClaim buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildFirstItem() { + public V1PersistentVolumeClaim buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildLastItem() { + public V1PersistentVolumeClaim buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder item : items) { + public V1PersistentVolumeClaim buildMatchingItem( + Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -202,11 +178,8 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildMatching return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : items) { if (predicate.test(item)) { return true; } @@ -214,14 +187,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { + this.items = new ArrayList(); + for (V1PersistentVolumeClaim item : items) { this.addToItems(item); } } else { @@ -235,14 +207,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim.. this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { + for (V1PersistentVolumeClaim item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -251,42 +223,33 @@ public V1PersistentVolumeClaimListFluent.ItemsNested addNewItem() { } public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + V1PersistentVolumeClaim item) { return new V1PersistentVolumeClaimListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluentImpl - .ItemsNestedImpl(index, item); + public V1PersistentVolumeClaimListFluent.ItemsNested setNewItemLike( + Integer index, V1PersistentVolumeClaim item) { + return new V1PersistentVolumeClaimListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1PersistentVolumeClaimListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editFirstItem() { + public V1PersistentVolumeClaimListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editLastItem() { + public V1PersistentVolumeClaimListFluent.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 io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate) { + public V1PersistentVolumeClaimListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -298,16 +261,16 @@ public V1PersistentVolumeClaimListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -316,25 +279,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -342,27 +308,21 @@ public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeClaimListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluentImpl - .MetadataNestedImpl(item); + public V1PersistentVolumeClaimListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1PersistentVolumeClaimListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - editMetadata() { + public V1PersistentVolumeClaimListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - editOrNewMetadata() { + public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1PersistentVolumeClaimListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -382,7 +342,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -407,22 +367,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1PersistentVolumeClaimFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent.ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + implements V1PersistentVolumeClaimListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(this); + this.builder = new V1PersistentVolumeClaimBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder; - java.lang.Integer index; + V1PersistentVolumeClaimBuilder builder; + Integer index; public N and() { return (N) V1PersistentVolumeClaimListFluentImpl.this.setToItems(index, builder.build()); @@ -435,19 +392,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeClaimListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1PersistentVolumeClaimListFluentImpl.this.withMetadata(builder.build()); 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 51619b8e84..9b8d7d5dd0 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 @@ -16,9 +16,7 @@ public class V1PersistentVolumeClaimSpecBuilder extends V1PersistentVolumeClaimSpecFluentImpl - implements VisitableBuilder< - V1PersistentVolumeClaimSpec, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder> { + implements VisitableBuilder { public V1PersistentVolumeClaimSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent f } public V1PersistentVolumeClaimSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimSpec(), validationEnabled); } public V1PersistentVolumeClaimSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec instance) { + V1PersistentVolumeClaimSpecFluent fluent, V1PersistentVolumeClaimSpec instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimSpecFluent fluent, + V1PersistentVolumeClaimSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAccessModes(instance.getAccessModes()); @@ -67,14 +63,12 @@ public V1PersistentVolumeClaimSpecBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec instance) { + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpec instance) { this(instance, false); } public V1PersistentVolumeClaimSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAccessModes(instance.getAccessModes()); @@ -95,10 +89,10 @@ public V1PersistentVolumeClaimSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec build() { + public V1PersistentVolumeClaimSpec build() { V1PersistentVolumeClaimSpec buildable = new V1PersistentVolumeClaimSpec(); buildable.setAccessModes(fluent.getAccessModes()); buildable.setDataSource(fluent.getDataSource()); 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 cc18cedc72..8a921299fd 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 @@ -23,33 +23,33 @@ public interface V1PersistentVolumeClaimSpecFluent { public A addToAccessModes(Integer index, String item); - public A setToAccessModes(java.lang.Integer index, java.lang.String item); + public A setToAccessModes(Integer index, String item); public A addToAccessModes(java.lang.String... items); - public A addAllToAccessModes(Collection items); + public A addAllToAccessModes(Collection items); public A removeFromAccessModes(java.lang.String... items); - public A removeAllFromAccessModes(java.util.Collection items); + public A removeAllFromAccessModes(Collection items); - public List getAccessModes(); + public List getAccessModes(); - public java.lang.String getAccessMode(java.lang.Integer index); + public String getAccessMode(Integer index); - public java.lang.String getFirstAccessMode(); + public String getFirstAccessMode(); - public java.lang.String getLastAccessMode(); + public String getLastAccessMode(); - public java.lang.String getMatchingAccessMode(Predicate predicate); + public String getMatchingAccessMode(Predicate predicate); - public Boolean hasMatchingAccessMode(java.util.function.Predicate predicate); + public Boolean hasMatchingAccessMode(Predicate predicate); - public A withAccessModes(java.util.List accessModes); + public A withAccessModes(List accessModes); public A withAccessModes(java.lang.String... accessModes); - public java.lang.Boolean hasAccessModes(); + public Boolean hasAccessModes(); /** * This method has been deprecated, please use method buildDataSource instead. @@ -59,135 +59,119 @@ public interface V1PersistentVolumeClaimSpecFluent withNewDataSource(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - withNewDataSourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item); + public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSourceLike( + V1TypedLocalObjectReference item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - editDataSource(); + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editDataSource(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - editOrNewDataSource(); + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSource(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - editOrNewDataSourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item); + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSourceLike( + V1TypedLocalObjectReference item); /** * This method has been deprecated, please use method buildDataSourceRef instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference getDataSourceRef(); + @Deprecated + public V1TypedLocalObjectReference getDataSourceRef(); - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference buildDataSourceRef(); + public V1TypedLocalObjectReference buildDataSourceRef(); - public A withDataSourceRef( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference dataSourceRef); + public A withDataSourceRef(V1TypedLocalObjectReference dataSourceRef); - public java.lang.Boolean hasDataSourceRef(); + public Boolean hasDataSourceRef(); public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRef(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - withNewDataSourceRefLike( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item); + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRefLike( + V1TypedLocalObjectReference item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - editDataSourceRef(); + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editDataSourceRef(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - editOrNewDataSourceRef(); + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRef(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - editOrNewDataSourceRefLike( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item); + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRefLike( + V1TypedLocalObjectReference item); /** * This method has been deprecated, please use method buildResources instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceRequirements getResources(); - public io.kubernetes.client.openapi.models.V1ResourceRequirements buildResources(); + public V1ResourceRequirements buildResources(); - public A withResources(io.kubernetes.client.openapi.models.V1ResourceRequirements resources); + public A withResources(V1ResourceRequirements resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResources(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - withNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item); + public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResourcesLike( + V1ResourceRequirements item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - editResources(); + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editResources(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - editOrNewResources(); + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResources(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - editOrNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item); + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResourcesLike( + V1ResourceRequirements item); /** * This method has been deprecated, please use method buildSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - editSelector(); + public V1PersistentVolumeClaimSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - editOrNewSelector(); + public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelectorLike( + V1LabelSelector item); - public java.lang.String getStorageClassName(); + public String getStorageClassName(); - public A withStorageClassName(java.lang.String storageClassName); + public A withStorageClassName(String storageClassName); - public java.lang.Boolean hasStorageClassName(); + public Boolean hasStorageClassName(); - public java.lang.String getVolumeMode(); + public String getVolumeMode(); - public A withVolumeMode(java.lang.String volumeMode); + public A withVolumeMode(String volumeMode); - public java.lang.Boolean hasVolumeMode(); + public Boolean hasVolumeMode(); - public java.lang.String getVolumeName(); + public String getVolumeName(); - public A withVolumeName(java.lang.String volumeName); + public A withVolumeName(String volumeName); - public java.lang.Boolean hasVolumeName(); + public Boolean hasVolumeName(); public interface DataSourceNested extends Nested, @@ -198,7 +182,7 @@ public interface DataSourceNested } public interface DataSourceRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1TypedLocalObjectReferenceFluent< V1PersistentVolumeClaimSpecFluent.DataSourceRefNested> { public N and(); @@ -207,7 +191,7 @@ public interface DataSourceRefNested } public interface ResourcesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceRequirementsFluent> { public N and(); @@ -215,7 +199,7 @@ public interface ResourcesNested } public interface SelectorNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1LabelSelectorFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java index 939394e8ae..0e2ba54f14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluentImpl.java @@ -25,8 +25,7 @@ public class V1PersistentVolumeClaimSpecFluentImpl implements V1PersistentVolumeClaimSpecFluent { public V1PersistentVolumeClaimSpecFluentImpl() {} - public V1PersistentVolumeClaimSpecFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec instance) { + public V1PersistentVolumeClaimSpecFluentImpl(V1PersistentVolumeClaimSpec instance) { this.withAccessModes(instance.getAccessModes()); this.withDataSource(instance.getDataSource()); @@ -49,21 +48,21 @@ public V1PersistentVolumeClaimSpecFluentImpl( private V1TypedLocalObjectReferenceBuilder dataSourceRef; private V1ResourceRequirementsBuilder resources; private V1LabelSelectorBuilder selector; - private java.lang.String storageClassName; - private java.lang.String volumeMode; - private java.lang.String volumeName; + private String storageClassName; + private String volumeMode; + private String volumeName; - public A addToAccessModes(Integer index, java.lang.String item) { + public A addToAccessModes(Integer index, String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList(); } this.accessModes.add(index, item); return (A) this; } - public A setToAccessModes(java.lang.Integer index, java.lang.String item) { + public A setToAccessModes(Integer index, String item) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } this.accessModes.set(index, item); return (A) this; @@ -71,26 +70,26 @@ public A setToAccessModes(java.lang.Integer index, java.lang.String item) { public A addToAccessModes(java.lang.String... items) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.accessModes.add(item); } return (A) this; } - public A addAllToAccessModes(Collection items) { + public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.accessModes.add(item); } return (A) this; } public A removeFromAccessModes(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.accessModes != null) { this.accessModes.remove(item); } @@ -98,8 +97,8 @@ public A removeFromAccessModes(java.lang.String... items) { return (A) this; } - public A removeAllFromAccessModes(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAccessModes(Collection items) { + for (String item : items) { if (this.accessModes != null) { this.accessModes.remove(item); } @@ -107,24 +106,24 @@ public A removeAllFromAccessModes(java.util.Collection items) return (A) this; } - public java.util.List getAccessModes() { + public List getAccessModes() { return this.accessModes; } - public java.lang.String getAccessMode(java.lang.Integer index) { + public String getAccessMode(Integer index) { return this.accessModes.get(index); } - public java.lang.String getFirstAccessMode() { + public String getFirstAccessMode() { return this.accessModes.get(0); } - public java.lang.String getLastAccessMode() { + public String getLastAccessMode() { return this.accessModes.get(accessModes.size() - 1); } - public java.lang.String getMatchingAccessMode(Predicate predicate) { - for (java.lang.String item : accessModes) { + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { return item; } @@ -132,8 +131,8 @@ public java.lang.String getMatchingAccessMode(Predicate predic return null; } - public Boolean hasMatchingAccessMode(java.util.function.Predicate predicate) { - for (java.lang.String item : accessModes) { + public Boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { return true; } @@ -141,10 +140,10 @@ public Boolean hasMatchingAccessMode(java.util.function.Predicate accessModes) { + public A withAccessModes(List accessModes) { if (accessModes != null) { - this.accessModes = new java.util.ArrayList(); - for (java.lang.String item : accessModes) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { this.addToAccessModes(item); } } else { @@ -158,14 +157,14 @@ public A withAccessModes(java.lang.String... accessModes) { this.accessModes.clear(); } if (accessModes != null) { - for (java.lang.String item : accessModes) { + for (String item : accessModes) { this.addToAccessModes(item); } } return (A) this; } - public java.lang.Boolean hasAccessModes() { + public Boolean hasAccessModes() { return accessModes != null && !accessModes.isEmpty(); } @@ -175,26 +174,27 @@ public java.lang.Boolean hasAccessModes() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference getDataSource() { + public V1TypedLocalObjectReference getDataSource() { return this.dataSource != null ? this.dataSource.build() : null; } - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference buildDataSource() { + public V1TypedLocalObjectReference buildDataSource() { return this.dataSource != null ? this.dataSource.build() : null; } - public A withDataSource( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference dataSource) { + public A withDataSource(V1TypedLocalObjectReference dataSource) { _visitables.get("dataSource").remove(this.dataSource); if (dataSource != null) { - this.dataSource = - new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder(dataSource); + this.dataSource = new V1TypedLocalObjectReferenceBuilder(dataSource); _visitables.get("dataSource").add(this.dataSource); + } else { + this.dataSource = null; + _visitables.get("dataSource").remove(this.dataSource); } return (A) this; } - public java.lang.Boolean hasDataSource() { + public Boolean hasDataSource() { return this.dataSource != null; } @@ -202,27 +202,24 @@ public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSource() return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - withNewDataSourceLike(io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item) { + public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSourceLike( + V1TypedLocalObjectReference item) { return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - editDataSource() { + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editDataSource() { return withNewDataSourceLike(getDataSource()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - editOrNewDataSource() { + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSource() { return withNewDataSourceLike( getDataSource() != null ? getDataSource() - : new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder().build()); + : new V1TypedLocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceNested - editOrNewDataSourceLike( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item) { + public V1PersistentVolumeClaimSpecFluent.DataSourceNested editOrNewDataSourceLike( + V1TypedLocalObjectReference item) { return withNewDataSourceLike(getDataSource() != null ? getDataSource() : item); } @@ -231,27 +228,28 @@ public V1PersistentVolumeClaimSpecFluent.DataSourceNested withNewDataSource() * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference getDataSourceRef() { + @Deprecated + public V1TypedLocalObjectReference getDataSourceRef() { return this.dataSourceRef != null ? this.dataSourceRef.build() : null; } - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference buildDataSourceRef() { + public V1TypedLocalObjectReference buildDataSourceRef() { return this.dataSourceRef != null ? this.dataSourceRef.build() : null; } - public A withDataSourceRef( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference dataSourceRef) { + public A withDataSourceRef(V1TypedLocalObjectReference dataSourceRef) { _visitables.get("dataSourceRef").remove(this.dataSourceRef); if (dataSourceRef != null) { - this.dataSourceRef = - new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder(dataSourceRef); + this.dataSourceRef = new V1TypedLocalObjectReferenceBuilder(dataSourceRef); _visitables.get("dataSourceRef").add(this.dataSourceRef); + } else { + this.dataSourceRef = null; + _visitables.get("dataSourceRef").remove(this.dataSourceRef); } return (A) this; } - public java.lang.Boolean hasDataSourceRef() { + public Boolean hasDataSourceRef() { return this.dataSourceRef != null; } @@ -259,33 +257,24 @@ public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourc return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - withNewDataSourceRefLike( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluentImpl - .DataSourceRefNestedImpl(item); + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourceRefLike( + V1TypedLocalObjectReference item) { + return new V1PersistentVolumeClaimSpecFluentImpl.DataSourceRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - editDataSourceRef() { + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editDataSourceRef() { return withNewDataSourceRefLike(getDataSourceRef()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - editOrNewDataSourceRef() { + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRef() { return withNewDataSourceRefLike( getDataSourceRef() != null ? getDataSourceRef() - : new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder().build()); + : new V1TypedLocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.DataSourceRefNested< - A> - editOrNewDataSourceRefLike( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference item) { + public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested editOrNewDataSourceRefLike( + V1TypedLocalObjectReference item) { return withNewDataSourceRefLike(getDataSourceRef() != null ? getDataSourceRef() : item); } @@ -294,26 +283,28 @@ public V1PersistentVolumeClaimSpecFluent.DataSourceRefNested withNewDataSourc * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceRequirements getResources() { return this.resources != null ? this.resources.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceRequirements buildResources() { + public V1ResourceRequirements buildResources() { return this.resources != null ? this.resources.build() : null; } - public A withResources(io.kubernetes.client.openapi.models.V1ResourceRequirements resources) { + public A withResources(V1ResourceRequirements resources) { _visitables.get("resources").remove(this.resources); if (resources != null) { - this.resources = - new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder(resources); + this.resources = new V1ResourceRequirementsBuilder(resources); _visitables.get("resources").add(this.resources); + } else { + this.resources = null; + _visitables.get("resources").remove(this.resources); } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return this.resources != null; } @@ -321,27 +312,22 @@ public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResources() { return new V1PersistentVolumeClaimSpecFluentImpl.ResourcesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - withNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluentImpl - .ResourcesNestedImpl(item); + public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResourcesLike( + V1ResourceRequirements item) { + return new V1PersistentVolumeClaimSpecFluentImpl.ResourcesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - editResources() { + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editResources() { return withNewResourcesLike(getResources()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - editOrNewResources() { + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResources() { return withNewResourcesLike( - getResources() != null - ? getResources() - : new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder().build()); + getResources() != null ? getResources() : new V1ResourceRequirementsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.ResourcesNested - editOrNewResourcesLike(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { + public V1PersistentVolumeClaimSpecFluent.ResourcesNested editOrNewResourcesLike( + V1ResourceRequirements item) { return withNewResourcesLike(getResources() != null ? getResources() : item); } @@ -350,25 +336,28 @@ public V1PersistentVolumeClaimSpecFluent.ResourcesNested withNewResources() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + @Deprecated + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -376,66 +365,61 @@ public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelector() { return new V1PersistentVolumeClaimSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluentImpl - .SelectorNestedImpl(item); + public V1PersistentVolumeClaimSpecFluent.SelectorNested withNewSelectorLike( + V1LabelSelector item) { + return new V1PersistentVolumeClaimSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - editSelector() { + public V1PersistentVolumeClaimSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - editOrNewSelector() { + public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1PersistentVolumeClaimSpecFluent.SelectorNested editOrNewSelectorLike( + V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } - public java.lang.String getStorageClassName() { + public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(java.lang.String storageClassName) { + public A withStorageClassName(String storageClassName) { this.storageClassName = storageClassName; return (A) this; } - public java.lang.Boolean hasStorageClassName() { + public Boolean hasStorageClassName() { return this.storageClassName != null; } - public java.lang.String getVolumeMode() { + public String getVolumeMode() { return this.volumeMode; } - public A withVolumeMode(java.lang.String volumeMode) { + public A withVolumeMode(String volumeMode) { this.volumeMode = volumeMode; return (A) this; } - public java.lang.Boolean hasVolumeMode() { + public Boolean hasVolumeMode() { return this.volumeMode != null; } - public java.lang.String getVolumeName() { + public String getVolumeName() { return this.volumeName; } - public A withVolumeName(java.lang.String volumeName) { + public A withVolumeName(String volumeName) { this.volumeName = volumeName; return (A) this; } - public java.lang.Boolean hasVolumeName() { + public Boolean hasVolumeName() { return this.volumeName != null; } @@ -476,7 +460,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (accessModes != null && !accessModes.isEmpty()) { @@ -518,20 +502,16 @@ public java.lang.String toString() { class DataSourceNestedImpl extends V1TypedLocalObjectReferenceFluentImpl< V1PersistentVolumeClaimSpecFluent.DataSourceNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent - .DataSourceNested< - N>, - Nested { + implements V1PersistentVolumeClaimSpecFluent.DataSourceNested, Nested { DataSourceNestedImpl(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } DataSourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder(this); + this.builder = new V1TypedLocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder builder; + V1TypedLocalObjectReferenceBuilder builder; public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withDataSource(builder.build()); @@ -545,20 +525,16 @@ public N endDataSource() { class DataSourceRefNestedImpl extends V1TypedLocalObjectReferenceFluentImpl< V1PersistentVolumeClaimSpecFluent.DataSourceRefNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent - .DataSourceRefNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeClaimSpecFluent.DataSourceRefNested, Nested { DataSourceRefNestedImpl(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } DataSourceRefNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder(this); + this.builder = new V1TypedLocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceBuilder builder; + V1TypedLocalObjectReferenceBuilder builder; public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withDataSourceRef(builder.build()); @@ -571,19 +547,16 @@ public N endDataSourceRef() { class ResourcesNestedImpl extends V1ResourceRequirementsFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent - .ResourcesNested< - N>, - io.kubernetes.client.fluent.Nested { - ResourcesNestedImpl(io.kubernetes.client.openapi.models.V1ResourceRequirements item) { + implements V1PersistentVolumeClaimSpecFluent.ResourcesNested, Nested { + ResourcesNestedImpl(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } ResourcesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder(this); + this.builder = new V1ResourceRequirementsBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder builder; + V1ResourceRequirementsBuilder builder; public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withResources(builder.build()); @@ -596,19 +569,16 @@ public N endResources() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecFluent - .SelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeClaimSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1PersistentVolumeClaimSpecFluentImpl.this.withSelector(builder.build()); 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 7cd5ed802f..84b7969b20 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 @@ -17,8 +17,7 @@ public class V1PersistentVolumeClaimStatusBuilder extends V1PersistentVolumeClaimStatusFluentImpl implements VisitableBuilder< - V1PersistentVolumeClaimStatus, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusBuilder> { + V1PersistentVolumeClaimStatus, V1PersistentVolumeClaimStatusBuilder> { public V1PersistentVolumeClaimStatusBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent< } public V1PersistentVolumeClaimStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimStatus(), validationEnabled); } public V1PersistentVolumeClaimStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus instance) { + V1PersistentVolumeClaimStatusFluent fluent, V1PersistentVolumeClaimStatus instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimStatusFluent fluent, + V1PersistentVolumeClaimStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAccessModes(instance.getAccessModes()); @@ -63,14 +60,12 @@ public V1PersistentVolumeClaimStatusBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus instance) { + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatus instance) { this(instance, false); } public V1PersistentVolumeClaimStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAccessModes(instance.getAccessModes()); @@ -87,10 +82,10 @@ public V1PersistentVolumeClaimStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus build() { + public V1PersistentVolumeClaimStatus build() { V1PersistentVolumeClaimStatus buildable = new V1PersistentVolumeClaimStatus(); buildable.setAccessModes(fluent.getAccessModes()); buildable.setAllocatedResources(fluent.getAllocatedResources()); 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 2145d8bb75..1f6b180418 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 @@ -26,89 +26,78 @@ public interface V1PersistentVolumeClaimStatusFluent< extends Fluent { public A addToAccessModes(Integer index, String item); - public A setToAccessModes(java.lang.Integer index, java.lang.String item); + public A setToAccessModes(Integer index, String item); public A addToAccessModes(java.lang.String... items); - public A addAllToAccessModes(Collection items); + public A addAllToAccessModes(Collection items); public A removeFromAccessModes(java.lang.String... items); - public A removeAllFromAccessModes(java.util.Collection items); + public A removeAllFromAccessModes(Collection items); - public List getAccessModes(); + public List getAccessModes(); - public java.lang.String getAccessMode(java.lang.Integer index); + public String getAccessMode(Integer index); - public java.lang.String getFirstAccessMode(); + public String getFirstAccessMode(); - public java.lang.String getLastAccessMode(); + public String getLastAccessMode(); - public java.lang.String getMatchingAccessMode(Predicate predicate); + public String getMatchingAccessMode(Predicate predicate); - public Boolean hasMatchingAccessMode(java.util.function.Predicate predicate); + public Boolean hasMatchingAccessMode(Predicate predicate); - public A withAccessModes(java.util.List accessModes); + public A withAccessModes(List accessModes); public A withAccessModes(java.lang.String... accessModes); - public java.lang.Boolean hasAccessModes(); + public Boolean hasAccessModes(); - public A addToAllocatedResources(java.lang.String key, Quantity value); + public A addToAllocatedResources(String key, Quantity value); - public A addToAllocatedResources(Map map); + public A addToAllocatedResources(Map map); - public A removeFromAllocatedResources(java.lang.String key); + public A removeFromAllocatedResources(String key); - public A removeFromAllocatedResources( - java.util.Map map); + public A removeFromAllocatedResources(Map map); - public java.util.Map - getAllocatedResources(); + public Map getAllocatedResources(); - public A withAllocatedResources( - java.util.Map allocatedResources); + public A withAllocatedResources(Map allocatedResources); - public java.lang.Boolean hasAllocatedResources(); + public Boolean hasAllocatedResources(); - public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToCapacity(String key, Quantity value); - public A addToCapacity(java.util.Map map); + public A addToCapacity(Map map); - public A removeFromCapacity(java.lang.String key); + public A removeFromCapacity(String key); - public A removeFromCapacity( - java.util.Map map); + public A removeFromCapacity(Map map); - public java.util.Map getCapacity(); + public Map getCapacity(); - public A withCapacity( - java.util.Map capacity); + public A withCapacity(Map capacity); - public java.lang.Boolean hasCapacity(); + public Boolean hasCapacity(); - public A addToConditions(java.lang.Integer index, V1PersistentVolumeClaimCondition item); + public A addToConditions(Integer index, V1PersistentVolumeClaimCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item); + public A setToConditions(Integer index, V1PersistentVolumeClaimCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items); - public A addAllToConditions( - java.util.Collection - items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items); - public A removeAllFromConditions( - java.util.Collection - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( - java.util.function.Predicate predicate); + Predicate predicate); /** * This method has been deprecated, please use method buildConditions instead. @@ -116,76 +105,56 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public java.util.List - getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition buildCondition( - java.lang.Integer index); + public V1PersistentVolumeClaimCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition buildFirstCondition(); + public V1PersistentVolumeClaimCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition buildLastCondition(); + public V1PersistentVolumeClaimCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate); + public V1PersistentVolumeClaimCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - addNewConditionLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewConditionLike( + V1PersistentVolumeClaimCondition item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1PersistentVolumeClaimCondition item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editFirstCondition(); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editLastCondition(); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.String getPhase(); + public String getPhase(); - public A withPhase(java.lang.String phase); + public A withPhase(String phase); - public java.lang.Boolean hasPhase(); + public Boolean hasPhase(); - public java.lang.String getResizeStatus(); + public String getResizeStatus(); - public A withResizeStatus(java.lang.String resizeStatus); + public A withResizeStatus(String resizeStatus); - public java.lang.Boolean hasResizeStatus(); + public Boolean hasResizeStatus(); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java index c8d90bfd1f..c32ed5ac36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluentImpl.java @@ -30,8 +30,7 @@ public class V1PersistentVolumeClaimStatusFluentImpl< extends BaseFluent implements V1PersistentVolumeClaimStatusFluent { public V1PersistentVolumeClaimStatusFluentImpl() {} - public V1PersistentVolumeClaimStatusFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatus instance) { + public V1PersistentVolumeClaimStatusFluentImpl(V1PersistentVolumeClaimStatus instance) { this.withAccessModes(instance.getAccessModes()); this.withAllocatedResources(instance.getAllocatedResources()); @@ -46,23 +45,23 @@ public V1PersistentVolumeClaimStatusFluentImpl( } private List accessModes; - private Map allocatedResources; - private java.util.Map capacity; + private Map allocatedResources; + private Map capacity; private ArrayList conditions; - private java.lang.String phase; - private java.lang.String resizeStatus; + private String phase; + private String resizeStatus; - public A addToAccessModes(Integer index, java.lang.String item) { + public A addToAccessModes(Integer index, String item) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } this.accessModes.add(index, item); return (A) this; } - public A setToAccessModes(java.lang.Integer index, java.lang.String item) { + public A setToAccessModes(Integer index, String item) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } this.accessModes.set(index, item); return (A) this; @@ -70,26 +69,26 @@ public A setToAccessModes(java.lang.Integer index, java.lang.String item) { public A addToAccessModes(java.lang.String... items) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.accessModes.add(item); } return (A) this; } - public A addAllToAccessModes(Collection items) { + public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.accessModes.add(item); } return (A) this; } public A removeFromAccessModes(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.accessModes != null) { this.accessModes.remove(item); } @@ -97,8 +96,8 @@ public A removeFromAccessModes(java.lang.String... items) { return (A) this; } - public A removeAllFromAccessModes(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAccessModes(Collection items) { + for (String item : items) { if (this.accessModes != null) { this.accessModes.remove(item); } @@ -106,24 +105,24 @@ public A removeAllFromAccessModes(java.util.Collection items) return (A) this; } - public java.util.List getAccessModes() { + public List getAccessModes() { return this.accessModes; } - public java.lang.String getAccessMode(java.lang.Integer index) { + public String getAccessMode(Integer index) { return this.accessModes.get(index); } - public java.lang.String getFirstAccessMode() { + public String getFirstAccessMode() { return this.accessModes.get(0); } - public java.lang.String getLastAccessMode() { + public String getLastAccessMode() { return this.accessModes.get(accessModes.size() - 1); } - public java.lang.String getMatchingAccessMode(Predicate predicate) { - for (java.lang.String item : accessModes) { + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { return item; } @@ -131,8 +130,8 @@ public java.lang.String getMatchingAccessMode(Predicate predic return null; } - public Boolean hasMatchingAccessMode(java.util.function.Predicate predicate) { - for (java.lang.String item : accessModes) { + public Boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { return true; } @@ -140,10 +139,10 @@ public Boolean hasMatchingAccessMode(java.util.function.Predicate accessModes) { + public A withAccessModes(List accessModes) { if (accessModes != null) { - this.accessModes = new java.util.ArrayList(); - for (java.lang.String item : accessModes) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { this.addToAccessModes(item); } } else { @@ -157,19 +156,18 @@ public A withAccessModes(java.lang.String... accessModes) { this.accessModes.clear(); } if (accessModes != null) { - for (java.lang.String item : accessModes) { + for (String item : accessModes) { this.addToAccessModes(item); } } return (A) this; } - public java.lang.Boolean hasAccessModes() { + public Boolean hasAccessModes() { return accessModes != null && !accessModes.isEmpty(); } - public A addToAllocatedResources( - java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToAllocatedResources(String key, Quantity value) { if (this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); } @@ -179,10 +177,9 @@ public A addToAllocatedResources( return (A) this; } - public A addToAllocatedResources( - java.util.Map map) { + public A addToAllocatedResources(Map map) { if (this.allocatedResources == null && map != null) { - this.allocatedResources = new java.util.LinkedHashMap(); + this.allocatedResources = new LinkedHashMap(); } if (map != null) { this.allocatedResources.putAll(map); @@ -190,7 +187,7 @@ public A addToAllocatedResources( return (A) this; } - public A removeFromAllocatedResources(java.lang.String key) { + public A removeFromAllocatedResources(String key) { if (this.allocatedResources == null) { return (A) this; } @@ -200,8 +197,7 @@ public A removeFromAllocatedResources(java.lang.String key) { return (A) this; } - public A removeFromAllocatedResources( - java.util.Map map) { + public A removeFromAllocatedResources(Map map) { if (this.allocatedResources == null) { return (A) this; } @@ -215,28 +211,26 @@ public A removeFromAllocatedResources( return (A) this; } - public java.util.Map - getAllocatedResources() { + public Map getAllocatedResources() { return this.allocatedResources; } - public A withAllocatedResources( - java.util.Map allocatedResources) { + public A withAllocatedResources(Map allocatedResources) { if (allocatedResources == null) { this.allocatedResources = null; } else { - this.allocatedResources = new java.util.LinkedHashMap(allocatedResources); + this.allocatedResources = new LinkedHashMap(allocatedResources); } return (A) this; } - public java.lang.Boolean hasAllocatedResources() { + public Boolean hasAllocatedResources() { return this.allocatedResources != null; } - public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToCapacity(String key, Quantity value) { if (this.capacity == null && key != null && value != null) { - this.capacity = new java.util.LinkedHashMap(); + this.capacity = new LinkedHashMap(); } if (key != null && value != null) { this.capacity.put(key, value); @@ -244,10 +238,9 @@ public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantit return (A) this; } - public A addToCapacity( - java.util.Map map) { + public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new java.util.LinkedHashMap(); + this.capacity = new LinkedHashMap(); } if (map != null) { this.capacity.putAll(map); @@ -255,7 +248,7 @@ public A addToCapacity( return (A) this; } - public A removeFromCapacity(java.lang.String key) { + public A removeFromCapacity(String key) { if (this.capacity == null) { return (A) this; } @@ -265,8 +258,7 @@ public A removeFromCapacity(java.lang.String key) { return (A) this; } - public A removeFromCapacity( - java.util.Map map) { + public A removeFromCapacity(Map map) { if (this.capacity == null) { return (A) this; } @@ -280,32 +272,29 @@ public A removeFromCapacity( return (A) this; } - public java.util.Map getCapacity() { + public Map getCapacity() { return this.capacity; } - public A withCapacity( - java.util.Map capacity) { + public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new java.util.LinkedHashMap(capacity); + this.capacity = new LinkedHashMap(capacity); } return (A) this; } - public java.lang.Boolean hasCapacity() { + public Boolean hasCapacity() { return this.capacity != null; } - public A addToConditions(java.lang.Integer index, V1PersistentVolumeClaimCondition item) { + public A addToConditions(Integer index, V1PersistentVolumeClaimCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(item); + V1PersistentVolumeClaimConditionBuilder builder = + new V1PersistentVolumeClaimConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -313,16 +302,12 @@ public A addToConditions(java.lang.Integer index, V1PersistentVolumeClaimConditi return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item) { + public A setToConditions(Integer index, V1PersistentVolumeClaimCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(item); + V1PersistentVolumeClaimConditionBuilder builder = + new V1PersistentVolumeClaimConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -339,30 +324,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(item); + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = + new V1PersistentVolumeClaimConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - java.util.Collection - items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(item); + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = + new V1PersistentVolumeClaimConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -371,9 +350,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(item); + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = + new V1PersistentVolumeClaimConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -382,12 +361,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = + new V1PersistentVolumeClaimConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -397,16 +374,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder = - each.next(); + V1PersistentVolumeClaimConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -421,37 +394,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public java.util.List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition buildCondition( - java.lang.Integer index) { + public V1PersistentVolumeClaimCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition - buildFirstCondition() { + public V1PersistentVolumeClaimCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition buildLastCondition() { + public V1PersistentVolumeClaimCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder item : - conditions) { + public V1PersistentVolumeClaimCondition buildMatchingCondition( + Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -459,12 +424,9 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition buil return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder item : - conditions) { + public Boolean hasMatchingCondition( + Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -472,15 +434,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1PersistentVolumeClaimCondition item : conditions) { this.addToConditions(item); } } else { @@ -495,14 +455,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item : conditions) { + for (V1PersistentVolumeClaimCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -510,46 +470,36 @@ public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewCondition() return new V1PersistentVolumeClaimStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - addNewConditionLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item) { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewConditionLike( + V1PersistentVolumeClaimCondition item) { return new V1PersistentVolumeClaimStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1PersistentVolumeClaimStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1PersistentVolumeClaimCondition item) { + return new V1PersistentVolumeClaimStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editFirstCondition() { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editLastCondition() { + public V1PersistentVolumeClaimStatusFluent.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 io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder> - predicate) { + public V1PersistentVolumeClaimStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -561,29 +511,29 @@ public V1PersistentVolumeClaimStatusFluent.ConditionsNested addNewCondition() return setNewConditionLike(index, buildCondition(index)); } - public java.lang.String getPhase() { + public String getPhase() { return this.phase; } - public A withPhase(java.lang.String phase) { + public A withPhase(String phase) { this.phase = phase; return (A) this; } - public java.lang.Boolean hasPhase() { + public Boolean hasPhase() { return this.phase != null; } - public java.lang.String getResizeStatus() { + public String getResizeStatus() { return this.resizeStatus; } - public A withResizeStatus(java.lang.String resizeStatus) { + public A withResizeStatus(String resizeStatus) { this.resizeStatus = resizeStatus; return (A) this; } - public java.lang.Boolean hasResizeStatus() { + public Boolean hasResizeStatus() { return this.resizeStatus != null; } @@ -616,7 +566,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (accessModes != null && !accessModes.isEmpty()) { @@ -650,25 +600,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1PersistentVolumeClaimConditionFluentImpl< V1PersistentVolumeClaimStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition item) { + implements V1PersistentVolumeClaimStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1PersistentVolumeClaimCondition item) { this.index = index; this.builder = new V1PersistentVolumeClaimConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder(this); + this.builder = new V1PersistentVolumeClaimConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimConditionBuilder builder; - java.lang.Integer index; + V1PersistentVolumeClaimConditionBuilder builder; + Integer index; public N and() { return (N) 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 a4bb359cbe..1da20633df 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 @@ -17,8 +17,7 @@ public class V1PersistentVolumeClaimTemplateBuilder extends V1PersistentVolumeClaimTemplateFluentImpl implements VisitableBuilder< - V1PersistentVolumeClaimTemplate, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateBuilder> { + V1PersistentVolumeClaimTemplate, V1PersistentVolumeClaimTemplateBuilder> { public V1PersistentVolumeClaimTemplateBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1PersistentVolumeClaimTemplateBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeClaimTemplate(), validationEnabled); } - public V1PersistentVolumeClaimTemplateBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent fluent) { + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent) { this(fluent, false); } public V1PersistentVolumeClaimTemplateBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimTemplateFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimTemplate(), validationEnabled); } public V1PersistentVolumeClaimTemplateBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate instance) { + V1PersistentVolumeClaimTemplateFluent fluent, V1PersistentVolumeClaimTemplate instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimTemplateBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimTemplateFluent fluent, + V1PersistentVolumeClaimTemplate instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMetadata(instance.getMetadata()); @@ -56,14 +52,12 @@ public V1PersistentVolumeClaimTemplateBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimTemplateBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate instance) { + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplate instance) { this(instance, false); } public V1PersistentVolumeClaimTemplateBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimTemplate instance, Boolean validationEnabled) { this.fluent = this; this.withMetadata(instance.getMetadata()); @@ -72,10 +66,10 @@ public V1PersistentVolumeClaimTemplateBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimTemplateFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate build() { + public V1PersistentVolumeClaimTemplate build() { V1PersistentVolumeClaimTemplate buildable = new V1PersistentVolumeClaimTemplate(); buildable.setMetadata(fluent.getMetadata()); buildable.setSpec(fluent.getSpec()); 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 ab54a6ca93..2e143931a5 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 @@ -28,53 +28,49 @@ public interface V1PersistentVolumeClaimTemplateFluent< @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); public Boolean hasMetadata(); public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - editMetadata(); + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - editOrNewMetadata(); + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeClaimSpec getSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec buildSpec(); + public V1PersistentVolumeClaimSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec spec); + public A withSpec(V1PersistentVolumeClaimSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item); + public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpecLike( + V1PersistentVolumeClaimSpec item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - editSpec(); + public V1PersistentVolumeClaimTemplateFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - editOrNewSpec(); + public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item); + public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpecLike( + V1PersistentVolumeClaimSpec item); public interface MetadataNested extends Nested, @@ -85,7 +81,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PersistentVolumeClaimSpecFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java index d4c05b8e81..1eaf309216 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluentImpl.java @@ -22,8 +22,7 @@ public class V1PersistentVolumeClaimTemplateFluentImpl< extends BaseFluent implements V1PersistentVolumeClaimTemplateFluent { public V1PersistentVolumeClaimTemplateFluentImpl() {} - public V1PersistentVolumeClaimTemplateFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplate instance) { + public V1PersistentVolumeClaimTemplateFluentImpl(V1PersistentVolumeClaimTemplate instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); @@ -38,19 +37,22 @@ public V1PersistentVolumeClaimTemplateFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } @@ -63,26 +65,22 @@ public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadata() return new V1PersistentVolumeClaimTemplateFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V1PersistentVolumeClaimTemplateFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - editMetadata() { + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - editOrNewMetadata() { + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PersistentVolumeClaimTemplateFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -91,25 +89,28 @@ public V1PersistentVolumeClaimTemplateFluent.MetadataNested withNewMetadata() * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec getSpec() { + @Deprecated + public V1PersistentVolumeClaimSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec buildSpec() { + public V1PersistentVolumeClaimSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec spec) { + public A withSpec(V1PersistentVolumeClaimSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1PersistentVolumeClaimSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -117,27 +118,22 @@ public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpec() { return new V1PersistentVolumeClaimTemplateFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluentImpl - .SpecNestedImpl(item); + public V1PersistentVolumeClaimTemplateFluent.SpecNested withNewSpecLike( + V1PersistentVolumeClaimSpec item) { + return new V1PersistentVolumeClaimTemplateFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - editSpec() { + public V1PersistentVolumeClaimTemplateFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - editOrNewSpec() { + public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1PersistentVolumeClaimSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpec item) { + public V1PersistentVolumeClaimTemplateFluent.SpecNested editOrNewSpecLike( + V1PersistentVolumeClaimSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -171,19 +167,16 @@ public String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent - .MetadataNested< - N>, - Nested { + implements V1PersistentVolumeClaimTemplateFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PersistentVolumeClaimTemplateFluentImpl.this.withMetadata(builder.build()); @@ -197,20 +190,16 @@ public N endMetadata() { class SpecNestedImpl extends V1PersistentVolumeClaimSpecFluentImpl< V1PersistentVolumeClaimTemplateFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeClaimTemplateFluent - .SpecNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeClaimTemplateFluent.SpecNested, Nested { SpecNestedImpl(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder(this); + this.builder = new V1PersistentVolumeClaimSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimSpecBuilder builder; + V1PersistentVolumeClaimSpecBuilder builder; public N and() { return (N) V1PersistentVolumeClaimTemplateFluentImpl.this.withSpec(builder.build()); 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 f5d83ee0df..b9dd355210 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 @@ -18,8 +18,7 @@ public class V1PersistentVolumeClaimVolumeSourceBuilder extends V1PersistentVolumeClaimVolumeSourceFluentImpl< V1PersistentVolumeClaimVolumeSourceBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceBuilder> { + V1PersistentVolumeClaimVolumeSource, V1PersistentVolumeClaimVolumeSourceBuilder> { public V1PersistentVolumeClaimVolumeSourceBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1PersistentVolumeClaimVolumeSourceBuilder( } public V1PersistentVolumeClaimVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeClaimVolumeSource(), validationEnabled); } public V1PersistentVolumeClaimVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource instance) { + V1PersistentVolumeClaimVolumeSourceFluent fluent, + V1PersistentVolumeClaimVolumeSource instance) { this(fluent, instance, false); } public V1PersistentVolumeClaimVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimVolumeSourceFluent fluent, + V1PersistentVolumeClaimVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withClaimName(instance.getClaimName()); @@ -57,14 +55,12 @@ public V1PersistentVolumeClaimVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeClaimVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource instance) { + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSource instance) { this(instance, false); } public V1PersistentVolumeClaimVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeClaimVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withClaimName(instance.getClaimName()); @@ -73,10 +69,10 @@ public V1PersistentVolumeClaimVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeClaimVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource build() { + public V1PersistentVolumeClaimVolumeSource build() { V1PersistentVolumeClaimVolumeSource buildable = new V1PersistentVolumeClaimVolumeSource(); buildable.setClaimName(fluent.getClaimName()); buildable.setReadOnly(fluent.getReadOnly()); 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 f5f60189e9..f1094591ad 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 @@ -20,15 +20,15 @@ public interface V1PersistentVolumeClaimVolumeSourceFluent< extends Fluent { public String getClaimName(); - public A withClaimName(java.lang.String claimName); + public A withClaimName(String claimName); public Boolean hasClaimName(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java index a69c16dd86..bca273b55f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluentImpl.java @@ -22,7 +22,7 @@ public class V1PersistentVolumeClaimVolumeSourceFluentImpl< public V1PersistentVolumeClaimVolumeSourceFluentImpl() {} public V1PersistentVolumeClaimVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource instance) { + V1PersistentVolumeClaimVolumeSource instance) { this.withClaimName(instance.getClaimName()); this.withReadOnly(instance.getReadOnly()); @@ -31,29 +31,29 @@ public V1PersistentVolumeClaimVolumeSourceFluentImpl( private String claimName; private Boolean readOnly; - public java.lang.String getClaimName() { + public String getClaimName() { return this.claimName; } - public A withClaimName(java.lang.String claimName) { + public A withClaimName(String claimName) { this.claimName = claimName; return (A) this; } - public java.lang.Boolean hasClaimName() { + public Boolean hasClaimName() { return this.claimName != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -72,7 +72,7 @@ public int hashCode() { return java.util.Objects.hash(claimName, readOnly, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (claimName != null) { 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 8642ffe6cd..abb242a128 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 @@ -19,15 +19,15 @@ public interface V1PersistentVolumeFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,78 +37,70 @@ public interface V1PersistentVolumeFluent> @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PersistentVolumeFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PersistentVolumeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - editMetadata(); + public V1PersistentVolumeFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - editOrNewMetadata(); + public V1PersistentVolumeFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PersistentVolumeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeSpec getSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpec buildSpec(); + public V1PersistentVolumeSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec spec); + public A withSpec(V1PersistentVolumeSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1PersistentVolumeFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item); + public V1PersistentVolumeFluent.SpecNested withNewSpecLike(V1PersistentVolumeSpec item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested editSpec(); + public V1PersistentVolumeFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested editOrNewSpec(); + public V1PersistentVolumeFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item); + public V1PersistentVolumeFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeStatus getStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeStatus buildStatus(); + public V1PersistentVolumeStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1PersistentVolumeStatus status); + public A withStatus(V1PersistentVolumeStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1PersistentVolumeFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeStatus item); + public V1PersistentVolumeFluent.StatusNested withNewStatusLike(V1PersistentVolumeStatus item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested editStatus(); + public V1PersistentVolumeFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested - editOrNewStatus(); + public V1PersistentVolumeFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeStatus item); + public V1PersistentVolumeFluent.StatusNested editOrNewStatusLike( + V1PersistentVolumeStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -118,16 +110,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1PersistentVolumeSpecFluent> { + extends Nested, V1PersistentVolumeSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1PersistentVolumeStatusFluent> { + extends Nested, V1PersistentVolumeStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java index e58b075aed..542a96507d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluentImpl.java @@ -21,8 +21,7 @@ public class V1PersistentVolumeFluentImpl> extends BaseFluent implements V1PersistentVolumeFluent { public V1PersistentVolumeFluentImpl() {} - public V1PersistentVolumeFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolume instance) { + public V1PersistentVolumeFluentImpl(V1PersistentVolume instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1PersistentVolumeFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1PersistentVolumeSpecBuilder spec; private V1PersistentVolumeStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1PersistentVolumeFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PersistentVolumeFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PersistentVolumeFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - editMetadata() { + public V1PersistentVolumeFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - editOrNewMetadata() { + public V1PersistentVolumeFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PersistentVolumeFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1PersistentVolumeFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpec buildSpec() { + public V1PersistentVolumeSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec spec) { + public A withSpec(V1PersistentVolumeSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder(spec); + this.spec = new V1PersistentVolumeSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,26 +150,20 @@ public V1PersistentVolumeFluent.SpecNested withNewSpec() { return new V1PersistentVolumeFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeFluentImpl.SpecNestedImpl( - item); + public V1PersistentVolumeFluent.SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { + return new V1PersistentVolumeFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested editSpec() { + public V1PersistentVolumeFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested - editOrNewSpec() { + public V1PersistentVolumeFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1PersistentVolumeSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item) { + public V1PersistentVolumeFluent.SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -179,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested withNewStatus() { return new V1PersistentVolumeFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeStatus item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeFluentImpl.StatusNestedImpl( - item); + public V1PersistentVolumeFluent.StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { + return new V1PersistentVolumeFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested editStatus() { + public V1PersistentVolumeFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested - editOrNewStatus() { + public V1PersistentVolumeFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1PersistentVolumeStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1PersistentVolumeStatus item) { + public V1PersistentVolumeFluent.StatusNested editOrNewStatusLike( + V1PersistentVolumeStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -245,7 +236,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -274,17 +265,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.MetadataNested, - Nested { + implements V1PersistentVolumeFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PersistentVolumeFluentImpl.this.withMetadata(builder.build()); @@ -297,17 +287,16 @@ public N endMetadata() { class SpecNestedImpl extends V1PersistentVolumeSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item) { + implements V1PersistentVolumeFluent.SpecNested, Nested { + SpecNestedImpl(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder(this); + this.builder = new V1PersistentVolumeSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder builder; + V1PersistentVolumeSpecBuilder builder; public N and() { return (N) V1PersistentVolumeFluentImpl.this.withSpec(builder.build()); @@ -320,17 +309,16 @@ public N endSpec() { class StatusNestedImpl extends V1PersistentVolumeStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1PersistentVolumeStatus item) { + implements V1PersistentVolumeFluent.StatusNested, Nested { + StatusNestedImpl(V1PersistentVolumeStatus item) { this.builder = new V1PersistentVolumeStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PersistentVolumeStatusBuilder(this); + this.builder = new V1PersistentVolumeStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeStatusBuilder builder; + V1PersistentVolumeStatusBuilder builder; public N and() { return (N) V1PersistentVolumeFluentImpl.this.withStatus(builder.build()); 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 badb2b6003..25e0e2996b 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 @@ -16,8 +16,7 @@ public class V1PersistentVolumeListBuilder extends V1PersistentVolumeListFluentImpl - implements VisitableBuilder< - V1PersistentVolumeList, io.kubernetes.client.openapi.models.V1PersistentVolumeListBuilder> { + implements VisitableBuilder { public V1PersistentVolumeListBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1PersistentVolumeListBuilder(Boolean validationEnabled) { this(new V1PersistentVolumeList(), validationEnabled); } - public V1PersistentVolumeListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent fluent) { + public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent) { this(fluent, false); } public V1PersistentVolumeListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeListFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeList(), validationEnabled); } public V1PersistentVolumeListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeList instance) { + V1PersistentVolumeListFluent fluent, V1PersistentVolumeList instance) { this(fluent, instance, false); } public V1PersistentVolumeListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeList instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeListFluent fluent, + V1PersistentVolumeList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1PersistentVolumeListBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeList instance) { + public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance) { this(instance, false); } - public V1PersistentVolumeListBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeList instance, - java.lang.Boolean validationEnabled) { + public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1PersistentVolumeListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeList build() { + public V1PersistentVolumeList build() { V1PersistentVolumeList buildable = new V1PersistentVolumeList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 53444b99da..a91b3f5b9c 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 @@ -23,23 +23,21 @@ public interface V1PersistentVolumeListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item); + public A addToItems(Integer index, V1PersistentVolume item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item); + public A setToItems(Integer index, V1PersistentVolume item); public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,87 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1PersistentVolume buildItem(java.lang.Integer index); + public V1PersistentVolume buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolume buildFirstItem(); + public V1PersistentVolume buildFirstItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolume buildLastItem(); + public V1PersistentVolume buildLastItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolume buildMatchingItem( - java.util.function.Predicate - predicate); + public V1PersistentVolume buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1PersistentVolumeListFluent.ItemsNested addNewItem(); - public V1PersistentVolumeListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PersistentVolume item); + public V1PersistentVolumeListFluent.ItemsNested addNewItemLike(V1PersistentVolume item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item); + public V1PersistentVolumeListFluent.ItemsNested setNewItemLike( + Integer index, V1PersistentVolume item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1PersistentVolumeListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - editFirstItem(); + public V1PersistentVolumeListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - editLastItem(); + public V1PersistentVolumeListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder> - predicate); + public V1PersistentVolumeListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PersistentVolumeListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PersistentVolumeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - editMetadata(); + public V1PersistentVolumeListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - editOrNewMetadata(); + public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1PersistentVolumeFluent> { @@ -139,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java index 551502f766..2fe97b3dcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluentImpl.java @@ -38,14 +38,14 @@ public V1PersistentVolumeListFluentImpl(V1PersistentVolumeList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item) { + public A addToItems(Integer index, V1PersistentVolume item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder(item); + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item) { + public A setToItems(Integer index, V1PersistentVolume item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder(item); + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolume item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolume item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder(item); + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolume item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder = each.next(); + V1PersistentVolumeBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolume buildItem(java.lang.Integer index) { + public V1PersistentVolume buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolume buildFirstItem() { + public V1PersistentVolume buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolume buildLastItem() { + public V1PersistentVolume buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolume buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder item : items) { + public V1PersistentVolume buildMatchingItem(Predicate predicate) { + for (V1PersistentVolumeBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1PersistentVolume buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1PersistentVolumeBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PersistentVolume item : items) { + this.items = new ArrayList(); + for (V1PersistentVolume item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... ite this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1PersistentVolume item : items) { + for (V1PersistentVolume item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,42 +221,33 @@ public V1PersistentVolumeListFluent.ItemsNested addNewItem() { return new V1PersistentVolumeListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1PersistentVolume item) { + public V1PersistentVolumeListFluent.ItemsNested addNewItemLike(V1PersistentVolume item) { return new V1PersistentVolumeListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeListFluentImpl.ItemsNestedImpl( - index, item); + public V1PersistentVolumeListFluent.ItemsNested setNewItemLike( + Integer index, V1PersistentVolume item) { + return new V1PersistentVolumeListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1PersistentVolumeListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - editFirstItem() { + public V1PersistentVolumeListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - editLastItem() { + public V1PersistentVolumeListFluent.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 io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder> - predicate) { + public V1PersistentVolumeListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -286,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNes return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -304,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -330,27 +306,20 @@ public V1PersistentVolumeListFluent.MetadataNested withNewMetadata() { return new V1PersistentVolumeListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeListFluentImpl - .MetadataNestedImpl(item); + public V1PersistentVolumeListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1PersistentVolumeListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - editMetadata() { + public V1PersistentVolumeListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - editOrNewMetadata() { + public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1PersistentVolumeListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -370,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -395,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1PersistentVolumeFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolume item) { + implements V1PersistentVolumeListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1PersistentVolume item) { this.index = index; this.builder = new V1PersistentVolumeBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder(this); + this.builder = new V1PersistentVolumeBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeBuilder builder; - java.lang.Integer index; + V1PersistentVolumeBuilder builder; + Integer index; public N and() { return (N) V1PersistentVolumeListFluentImpl.this.setToItems(index, builder.build()); @@ -422,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1PersistentVolumeListFluentImpl.this.withMetadata(builder.build()); 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 5920bff11c..8d65004c08 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 @@ -16,9 +16,7 @@ public class V1PersistentVolumeSpecBuilder extends V1PersistentVolumeSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec, - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder> { + implements VisitableBuilder { public V1PersistentVolumeSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent) { } public V1PersistentVolumeSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeSpec(), validationEnabled); } public V1PersistentVolumeSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec instance) { + V1PersistentVolumeSpecFluent fluent, V1PersistentVolumeSpec instance) { this(fluent, instance, false); } public V1PersistentVolumeSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeSpecFluent fluent, + V1PersistentVolumeSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAccessModes(instance.getAccessModes()); @@ -111,14 +107,11 @@ public V1PersistentVolumeSpecBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec instance) { + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance) { this(instance, false); } - public V1PersistentVolumeSpecBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec instance, - java.lang.Boolean validationEnabled) { + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAccessModes(instance.getAccessModes()); @@ -183,10 +176,10 @@ public V1PersistentVolumeSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpec build() { + public V1PersistentVolumeSpec build() { V1PersistentVolumeSpec buildable = new V1PersistentVolumeSpec(); buildable.setAccessModes(fluent.getAccessModes()); buildable.setAwsElasticBlockStore(fluent.getAwsElasticBlockStore()); 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 d92fa1a994..e37632c117 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 @@ -25,33 +25,33 @@ public interface V1PersistentVolumeSpecFluent { public A addToAccessModes(Integer index, String item); - public A setToAccessModes(java.lang.Integer index, java.lang.String item); + public A setToAccessModes(Integer index, String item); public A addToAccessModes(java.lang.String... items); - public A addAllToAccessModes(Collection items); + public A addAllToAccessModes(Collection items); public A removeFromAccessModes(java.lang.String... items); - public A removeAllFromAccessModes(java.util.Collection items); + public A removeAllFromAccessModes(Collection items); - public List getAccessModes(); + public List getAccessModes(); - public java.lang.String getAccessMode(java.lang.Integer index); + public String getAccessMode(Integer index); - public java.lang.String getFirstAccessMode(); + public String getFirstAccessMode(); - public java.lang.String getLastAccessMode(); + public String getLastAccessMode(); - public java.lang.String getMatchingAccessMode(Predicate predicate); + public String getMatchingAccessMode(Predicate predicate); - public Boolean hasMatchingAccessMode(java.util.function.Predicate predicate); + public Boolean hasMatchingAccessMode(Predicate predicate); - public A withAccessModes(java.util.List accessModes); + public A withAccessModes(List accessModes); public A withAccessModes(java.lang.String... accessModes); - public java.lang.Boolean hasAccessModes(); + public Boolean hasAccessModes(); /** * This method has been deprecated, please use method buildAwsElasticBlockStore instead. @@ -61,774 +61,674 @@ public interface V1PersistentVolumeSpecFluent withNewAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - withNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item); + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( + V1AWSElasticBlockStoreVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - editAwsElasticBlockStore(); + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - editOrNewAwsElasticBlockStore(); + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - editOrNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item); + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested + editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item); /** * This method has been deprecated, please use method buildAzureDisk instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1AzureDiskVolumeSource getAzureDisk(); - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource buildAzureDisk(); + public V1AzureDiskVolumeSource buildAzureDisk(); - public A withAzureDisk(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource azureDisk); + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk); - public java.lang.Boolean hasAzureDisk(); + public Boolean hasAzureDisk(); public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - withNewAzureDiskLike(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDiskLike( + V1AzureDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - editAzureDisk(); + public V1PersistentVolumeSpecFluent.AzureDiskNested editAzureDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - editOrNewAzureDisk(); + public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - editOrNewAzureDiskLike(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDiskLike( + V1AzureDiskVolumeSource item); /** * This method has been deprecated, please use method buildAzureFile instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1AzureFilePersistentVolumeSource getAzureFile(); - public io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource buildAzureFile(); + public V1AzureFilePersistentVolumeSource buildAzureFile(); - public A withAzureFile( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource azureFile); + public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile); - public java.lang.Boolean hasAzureFile(); + public Boolean hasAzureFile(); public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFile(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - withNewAzureFileLike( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFileLike( + V1AzureFilePersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - editAzureFile(); + public V1PersistentVolumeSpecFluent.AzureFileNested editAzureFile(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - editOrNewAzureFile(); + public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFile(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - editOrNewAzureFileLike( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFileLike( + V1AzureFilePersistentVolumeSource item); - public A addToCapacity(java.lang.String key, Quantity value); + public A addToCapacity(String key, Quantity value); - public A addToCapacity(Map map); + public A addToCapacity(Map map); - public A removeFromCapacity(java.lang.String key); + public A removeFromCapacity(String key); - public A removeFromCapacity( - java.util.Map map); + public A removeFromCapacity(Map map); - public java.util.Map getCapacity(); + public Map getCapacity(); - public A withCapacity( - java.util.Map capacity); + public A withCapacity(Map capacity); - public java.lang.Boolean hasCapacity(); + public Boolean hasCapacity(); /** * This method has been deprecated, please use method buildCephfs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CephFSPersistentVolumeSource getCephfs(); - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource buildCephfs(); + public V1CephFSPersistentVolumeSource buildCephfs(); - public A withCephfs(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource cephfs); + public A withCephfs(V1CephFSPersistentVolumeSource cephfs); - public java.lang.Boolean hasCephfs(); + public Boolean hasCephfs(); public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - withNewCephfsLike(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfsLike( + V1CephFSPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - editCephfs(); + public V1PersistentVolumeSpecFluent.CephfsNested editCephfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - editOrNewCephfs(); + public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - editOrNewCephfsLike(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfsLike( + V1CephFSPersistentVolumeSource item); /** * This method has been deprecated, please use method buildCinder instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CinderPersistentVolumeSource getCinder(); - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource buildCinder(); + public V1CinderPersistentVolumeSource buildCinder(); - public A withCinder(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource cinder); + public A withCinder(V1CinderPersistentVolumeSource cinder); - public java.lang.Boolean hasCinder(); + public Boolean hasCinder(); public V1PersistentVolumeSpecFluent.CinderNested withNewCinder(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - withNewCinderLike(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.CinderNested withNewCinderLike( + V1CinderPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - editCinder(); + public V1PersistentVolumeSpecFluent.CinderNested editCinder(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - editOrNewCinder(); + public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinder(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - editOrNewCinderLike(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinderLike( + V1CinderPersistentVolumeSource item); /** * This method has been deprecated, please use method buildClaimRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectReference getClaimRef(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildClaimRef(); + public V1ObjectReference buildClaimRef(); - public A withClaimRef(io.kubernetes.client.openapi.models.V1ObjectReference claimRef); + public A withClaimRef(V1ObjectReference claimRef); - public java.lang.Boolean hasClaimRef(); + public Boolean hasClaimRef(); public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRef(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - withNewClaimRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRefLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - editClaimRef(); + public V1PersistentVolumeSpecFluent.ClaimRefNested editClaimRef(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - editOrNewClaimRef(); + public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRef(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - editOrNewClaimRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRefLike( + V1ObjectReference item); /** * This method has been deprecated, please use method buildCsi instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CSIPersistentVolumeSource getCsi(); - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource buildCsi(); + public V1CSIPersistentVolumeSource buildCsi(); - public A withCsi(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource csi); + public A withCsi(V1CSIPersistentVolumeSource csi); - public java.lang.Boolean hasCsi(); + public Boolean hasCsi(); public V1PersistentVolumeSpecFluent.CsiNested withNewCsi(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested - withNewCsiLike(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested editCsi(); + public V1PersistentVolumeSpecFluent.CsiNested editCsi(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested - editOrNewCsi(); + public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsi(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested - editOrNewCsiLike(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsiLike( + V1CSIPersistentVolumeSource item); /** * This method has been deprecated, please use method buildFc instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FCVolumeSource getFc(); - public io.kubernetes.client.openapi.models.V1FCVolumeSource buildFc(); + public V1FCVolumeSource buildFc(); - public A withFc(io.kubernetes.client.openapi.models.V1FCVolumeSource fc); + public A withFc(V1FCVolumeSource fc); - public java.lang.Boolean hasFc(); + public Boolean hasFc(); public V1PersistentVolumeSpecFluent.FcNested withNewFc(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested withNewFcLike( - io.kubernetes.client.openapi.models.V1FCVolumeSource item); + public V1PersistentVolumeSpecFluent.FcNested withNewFcLike(V1FCVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested editFc(); + public V1PersistentVolumeSpecFluent.FcNested editFc(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested editOrNewFc(); + public V1PersistentVolumeSpecFluent.FcNested editOrNewFc(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested - editOrNewFcLike(io.kubernetes.client.openapi.models.V1FCVolumeSource item); + public V1PersistentVolumeSpecFluent.FcNested editOrNewFcLike(V1FCVolumeSource item); /** * This method has been deprecated, please use method buildFlexVolume instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlexPersistentVolumeSource getFlexVolume(); - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource buildFlexVolume(); + public V1FlexPersistentVolumeSource buildFlexVolume(); - public A withFlexVolume( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource flexVolume); + public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume); - public java.lang.Boolean hasFlexVolume(); + public Boolean hasFlexVolume(); public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - withNewFlexVolumeLike(io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolumeLike( + V1FlexPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - editFlexVolume(); + public V1PersistentVolumeSpecFluent.FlexVolumeNested editFlexVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - editOrNewFlexVolume(); + public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - editOrNewFlexVolumeLike( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolumeLike( + V1FlexPersistentVolumeSource item); /** * This method has been deprecated, please use method buildFlocker instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlockerVolumeSource getFlocker(); - public io.kubernetes.client.openapi.models.V1FlockerVolumeSource buildFlocker(); + public V1FlockerVolumeSource buildFlocker(); - public A withFlocker(io.kubernetes.client.openapi.models.V1FlockerVolumeSource flocker); + public A withFlocker(V1FlockerVolumeSource flocker); - public java.lang.Boolean hasFlocker(); + public Boolean hasFlocker(); public V1PersistentVolumeSpecFluent.FlockerNested withNewFlocker(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - withNewFlockerLike(io.kubernetes.client.openapi.models.V1FlockerVolumeSource item); + public V1PersistentVolumeSpecFluent.FlockerNested withNewFlockerLike( + V1FlockerVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - editFlocker(); + public V1PersistentVolumeSpecFluent.FlockerNested editFlocker(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - editOrNewFlocker(); + public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlocker(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - editOrNewFlockerLike(io.kubernetes.client.openapi.models.V1FlockerVolumeSource item); + public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlockerLike( + V1FlockerVolumeSource item); /** * This method has been deprecated, please use method buildGcePersistentDisk instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GCEPersistentDiskVolumeSource getGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource - buildGcePersistentDisk(); + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk(); - public A withGcePersistentDisk( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource gcePersistentDisk); + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk); - public java.lang.Boolean hasGcePersistentDisk(); + public Boolean hasGcePersistentDisk(); public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - withNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - editGcePersistentDisk(); + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - editOrNewGcePersistentDisk(); + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - editOrNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item); /** * This method has been deprecated, please use method buildGlusterfs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GlusterfsPersistentVolumeSource getGlusterfs(); - public io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource buildGlusterfs(); + public V1GlusterfsPersistentVolumeSource buildGlusterfs(); - public A withGlusterfs( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource glusterfs); + public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs); - public java.lang.Boolean hasGlusterfs(); + public Boolean hasGlusterfs(); public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - withNewGlusterfsLike( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfsLike( + V1GlusterfsPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - editGlusterfs(); + public V1PersistentVolumeSpecFluent.GlusterfsNested editGlusterfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - editOrNewGlusterfs(); + public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - editOrNewGlusterfsLike( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfsLike( + V1GlusterfsPersistentVolumeSource item); /** * This method has been deprecated, please use method buildHostPath instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HostPathVolumeSource getHostPath(); - public io.kubernetes.client.openapi.models.V1HostPathVolumeSource buildHostPath(); + public V1HostPathVolumeSource buildHostPath(); - public A withHostPath(io.kubernetes.client.openapi.models.V1HostPathVolumeSource hostPath); + public A withHostPath(V1HostPathVolumeSource hostPath); - public java.lang.Boolean hasHostPath(); + public Boolean hasHostPath(); public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPath(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - withNewHostPathLike(io.kubernetes.client.openapi.models.V1HostPathVolumeSource item); + public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPathLike( + V1HostPathVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - editHostPath(); + public V1PersistentVolumeSpecFluent.HostPathNested editHostPath(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - editOrNewHostPath(); + public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPath(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - editOrNewHostPathLike(io.kubernetes.client.openapi.models.V1HostPathVolumeSource item); + public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPathLike( + V1HostPathVolumeSource item); /** * This method has been deprecated, please use method buildIscsi instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ISCSIPersistentVolumeSource getIscsi(); - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource buildIscsi(); + public V1ISCSIPersistentVolumeSource buildIscsi(); - public A withIscsi(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource iscsi); + public A withIscsi(V1ISCSIPersistentVolumeSource iscsi); - public java.lang.Boolean hasIscsi(); + public Boolean hasIscsi(); public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsi(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - withNewIscsiLike(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsiLike( + V1ISCSIPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - editIscsi(); + public V1PersistentVolumeSpecFluent.IscsiNested editIscsi(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - editOrNewIscsi(); + public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsi(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - editOrNewIscsiLike(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsiLike( + V1ISCSIPersistentVolumeSource item); /** * This method has been deprecated, please use method buildLocal instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LocalVolumeSource getLocal(); - public io.kubernetes.client.openapi.models.V1LocalVolumeSource buildLocal(); + public V1LocalVolumeSource buildLocal(); - public A withLocal(io.kubernetes.client.openapi.models.V1LocalVolumeSource local); + public A withLocal(V1LocalVolumeSource local); - public java.lang.Boolean hasLocal(); + public Boolean hasLocal(); public V1PersistentVolumeSpecFluent.LocalNested withNewLocal(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - withNewLocalLike(io.kubernetes.client.openapi.models.V1LocalVolumeSource item); + public V1PersistentVolumeSpecFluent.LocalNested withNewLocalLike(V1LocalVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - editLocal(); + public V1PersistentVolumeSpecFluent.LocalNested editLocal(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - editOrNewLocal(); + public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocal(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - editOrNewLocalLike(io.kubernetes.client.openapi.models.V1LocalVolumeSource item); + public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocalLike(V1LocalVolumeSource item); - public A addToMountOptions(java.lang.Integer index, java.lang.String item); + public A addToMountOptions(Integer index, String item); - public A setToMountOptions(java.lang.Integer index, java.lang.String item); + public A setToMountOptions(Integer index, String item); public A addToMountOptions(java.lang.String... items); - public A addAllToMountOptions(java.util.Collection items); + public A addAllToMountOptions(Collection items); public A removeFromMountOptions(java.lang.String... items); - public A removeAllFromMountOptions(java.util.Collection items); + public A removeAllFromMountOptions(Collection items); - public java.util.List getMountOptions(); + public List getMountOptions(); - public java.lang.String getMountOption(java.lang.Integer index); + public String getMountOption(Integer index); - public java.lang.String getFirstMountOption(); + public String getFirstMountOption(); - public java.lang.String getLastMountOption(); + public String getLastMountOption(); - public java.lang.String getMatchingMountOption( - java.util.function.Predicate predicate); + public String getMatchingMountOption(Predicate predicate); - public java.lang.Boolean hasMatchingMountOption( - java.util.function.Predicate predicate); + public Boolean hasMatchingMountOption(Predicate predicate); - public A withMountOptions(java.util.List mountOptions); + public A withMountOptions(List mountOptions); public A withMountOptions(java.lang.String... mountOptions); - public java.lang.Boolean hasMountOptions(); + public Boolean hasMountOptions(); /** * This method has been deprecated, please use method buildNfs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NFSVolumeSource getNfs(); - public io.kubernetes.client.openapi.models.V1NFSVolumeSource buildNfs(); + public V1NFSVolumeSource buildNfs(); - public A withNfs(io.kubernetes.client.openapi.models.V1NFSVolumeSource nfs); + public A withNfs(V1NFSVolumeSource nfs); - public java.lang.Boolean hasNfs(); + public Boolean hasNfs(); public V1PersistentVolumeSpecFluent.NfsNested withNewNfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested - withNewNfsLike(io.kubernetes.client.openapi.models.V1NFSVolumeSource item); + public V1PersistentVolumeSpecFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested editNfs(); + public V1PersistentVolumeSpecFluent.NfsNested editNfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested - editOrNewNfs(); + public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfs(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested - editOrNewNfsLike(io.kubernetes.client.openapi.models.V1NFSVolumeSource item); + public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item); /** * This method has been deprecated, please use method buildNodeAffinity instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VolumeNodeAffinity getNodeAffinity(); - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinity buildNodeAffinity(); + public V1VolumeNodeAffinity buildNodeAffinity(); - public A withNodeAffinity(io.kubernetes.client.openapi.models.V1VolumeNodeAffinity nodeAffinity); + public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity); - public java.lang.Boolean hasNodeAffinity(); + public Boolean hasNodeAffinity(); public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinity(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - withNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1VolumeNodeAffinity item); + public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinityLike( + V1VolumeNodeAffinity item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - editNodeAffinity(); + public V1PersistentVolumeSpecFluent.NodeAffinityNested editNodeAffinity(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - editOrNewNodeAffinity(); + public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinity(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - editOrNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1VolumeNodeAffinity item); + public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinityLike( + V1VolumeNodeAffinity item); - public java.lang.String getPersistentVolumeReclaimPolicy(); + public String getPersistentVolumeReclaimPolicy(); - public A withPersistentVolumeReclaimPolicy(java.lang.String persistentVolumeReclaimPolicy); + public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy); - public java.lang.Boolean hasPersistentVolumeReclaimPolicy(); + public Boolean hasPersistentVolumeReclaimPolicy(); /** * This method has been deprecated, please use method buildPhotonPersistentDisk instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource - buildPhotonPersistentDisk(); + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk(); - public A withPhotonPersistentDisk( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource photonPersistentDisk); + public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk); - public java.lang.Boolean hasPhotonPersistentDisk(); + public Boolean hasPhotonPersistentDisk(); public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - withNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( + V1PhotonPersistentDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - editPhotonPersistentDisk(); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - editOrNewPhotonPersistentDisk(); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - editOrNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested + editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item); /** * This method has been deprecated, please use method buildPortworxVolume instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PortworxVolumeSource getPortworxVolume(); - public io.kubernetes.client.openapi.models.V1PortworxVolumeSource buildPortworxVolume(); + public V1PortworxVolumeSource buildPortworxVolume(); - public A withPortworxVolume( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource portworxVolume); + public A withPortworxVolume(V1PortworxVolumeSource portworxVolume); - public java.lang.Boolean hasPortworxVolume(); + public Boolean hasPortworxVolume(); public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - withNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item); + public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolumeLike( + V1PortworxVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - editPortworxVolume(); + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editPortworxVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - editOrNewPortworxVolume(); + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - editOrNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item); + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( + V1PortworxVolumeSource item); /** * This method has been deprecated, please use method buildQuobyte instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1QuobyteVolumeSource getQuobyte(); - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource buildQuobyte(); + public V1QuobyteVolumeSource buildQuobyte(); - public A withQuobyte(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource quobyte); + public A withQuobyte(V1QuobyteVolumeSource quobyte); - public java.lang.Boolean hasQuobyte(); + public Boolean hasQuobyte(); public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyte(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - withNewQuobyteLike(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item); + public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyteLike( + V1QuobyteVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - editQuobyte(); + public V1PersistentVolumeSpecFluent.QuobyteNested editQuobyte(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - editOrNewQuobyte(); + public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyte(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - editOrNewQuobyteLike(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item); + public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyteLike( + V1QuobyteVolumeSource item); /** * This method has been deprecated, please use method buildRbd instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1RBDPersistentVolumeSource getRbd(); - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource buildRbd(); + public V1RBDPersistentVolumeSource buildRbd(); - public A withRbd(io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource rbd); + public A withRbd(V1RBDPersistentVolumeSource rbd); - public java.lang.Boolean hasRbd(); + public Boolean hasRbd(); public V1PersistentVolumeSpecFluent.RbdNested withNewRbd(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested - withNewRbdLike(io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested editRbd(); + public V1PersistentVolumeSpecFluent.RbdNested editRbd(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested - editOrNewRbd(); + public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbd(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested - editOrNewRbdLike(io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbdLike( + V1RBDPersistentVolumeSource item); /** * This method has been deprecated, please use method buildScaleIO instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ScaleIOPersistentVolumeSource getScaleIO(); - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource buildScaleIO(); + public V1ScaleIOPersistentVolumeSource buildScaleIO(); - public A withScaleIO(io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource scaleIO); + public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO); - public java.lang.Boolean hasScaleIO(); + public Boolean hasScaleIO(); public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIO(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - withNewScaleIOLike(io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIOLike( + V1ScaleIOPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - editScaleIO(); + public V1PersistentVolumeSpecFluent.ScaleIONested editScaleIO(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - editOrNewScaleIO(); + public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIO(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - editOrNewScaleIOLike( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIOLike( + V1ScaleIOPersistentVolumeSource item); - public java.lang.String getStorageClassName(); + public String getStorageClassName(); - public A withStorageClassName(java.lang.String storageClassName); + public A withStorageClassName(String storageClassName); - public java.lang.Boolean hasStorageClassName(); + public Boolean hasStorageClassName(); /** * This method has been deprecated, please use method buildStorageos instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StorageOSPersistentVolumeSource getStorageos(); - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource buildStorageos(); + public V1StorageOSPersistentVolumeSource buildStorageos(); - public A withStorageos( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource storageos); + public A withStorageos(V1StorageOSPersistentVolumeSource storageos); - public java.lang.Boolean hasStorageos(); + public Boolean hasStorageos(); public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageos(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - withNewStorageosLike( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageosLike( + V1StorageOSPersistentVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - editStorageos(); + public V1PersistentVolumeSpecFluent.StorageosNested editStorageos(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - editOrNewStorageos(); + public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageos(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - editOrNewStorageosLike( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource item); + public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageosLike( + V1StorageOSPersistentVolumeSource item); - public java.lang.String getVolumeMode(); + public String getVolumeMode(); - public A withVolumeMode(java.lang.String volumeMode); + public A withVolumeMode(String volumeMode); - public java.lang.Boolean hasVolumeMode(); + public Boolean hasVolumeMode(); /** * This method has been deprecated, please use method buildVsphereVolume instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume(); - public io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource buildVsphereVolume(); + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume(); - public A withVsphereVolume( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource vsphereVolume); + public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume); - public java.lang.Boolean hasVsphereVolume(); + public Boolean hasVsphereVolume(); public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - withNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - editVsphereVolume(); + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editVsphereVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - editOrNewVsphereVolume(); + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolume(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - editOrNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item); + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item); public interface AwsElasticBlockStoreNested extends Nested, @@ -840,7 +740,7 @@ public interface AwsElasticBlockStoreNested } public interface AzureDiskNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1AzureDiskVolumeSourceFluent> { public N and(); @@ -848,7 +748,7 @@ public interface AzureDiskNested } public interface AzureFileNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1AzureFilePersistentVolumeSourceFluent> { public N and(); @@ -856,7 +756,7 @@ public interface AzureFileNested } public interface CephfsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CephFSPersistentVolumeSourceFluent> { public N and(); @@ -864,7 +764,7 @@ public interface CephfsNested } public interface CinderNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CinderPersistentVolumeSourceFluent> { public N and(); @@ -872,15 +772,14 @@ public interface CinderNested } public interface ClaimRefNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endClaimRef(); } public interface CsiNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1CSIPersistentVolumeSourceFluent> { public N and(); @@ -888,15 +787,14 @@ public interface CsiNested } public interface FcNested - extends io.kubernetes.client.fluent.Nested, - V1FCVolumeSourceFluent> { + extends Nested, V1FCVolumeSourceFluent> { public N and(); public N endFc(); } public interface FlexVolumeNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1FlexPersistentVolumeSourceFluent> { public N and(); @@ -904,7 +802,7 @@ public interface FlexVolumeNested } public interface FlockerNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1FlockerVolumeSourceFluent> { public N and(); @@ -912,7 +810,7 @@ public interface FlockerNested } public interface GcePersistentDiskNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1GCEPersistentDiskVolumeSourceFluent< V1PersistentVolumeSpecFluent.GcePersistentDiskNested> { public N and(); @@ -921,7 +819,7 @@ public interface GcePersistentDiskNested } public interface GlusterfsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1GlusterfsPersistentVolumeSourceFluent> { public N and(); @@ -929,7 +827,7 @@ public interface GlusterfsNested } public interface HostPathNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1HostPathVolumeSourceFluent> { public N and(); @@ -937,7 +835,7 @@ public interface HostPathNested } public interface IscsiNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ISCSIPersistentVolumeSourceFluent> { public N and(); @@ -945,23 +843,21 @@ public interface IscsiNested } public interface LocalNested - extends io.kubernetes.client.fluent.Nested, - V1LocalVolumeSourceFluent> { + extends Nested, V1LocalVolumeSourceFluent> { public N and(); public N endLocal(); } public interface NfsNested - extends io.kubernetes.client.fluent.Nested, - V1NFSVolumeSourceFluent> { + extends Nested, V1NFSVolumeSourceFluent> { public N and(); public N endNfs(); } public interface NodeAffinityNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1VolumeNodeAffinityFluent> { public N and(); @@ -969,7 +865,7 @@ public interface NodeAffinityNested } public interface PhotonPersistentDiskNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PhotonPersistentDiskVolumeSourceFluent< V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested> { public N and(); @@ -978,7 +874,7 @@ public interface PhotonPersistentDiskNested } public interface PortworxVolumeNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PortworxVolumeSourceFluent> { public N and(); @@ -986,7 +882,7 @@ public interface PortworxVolumeNested } public interface QuobyteNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1QuobyteVolumeSourceFluent> { public N and(); @@ -994,7 +890,7 @@ public interface QuobyteNested } public interface RbdNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1RBDPersistentVolumeSourceFluent> { public N and(); @@ -1002,7 +898,7 @@ public interface RbdNested } public interface ScaleIONested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ScaleIOPersistentVolumeSourceFluent> { public N and(); @@ -1010,7 +906,7 @@ public interface ScaleIONested } public interface StorageosNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1StorageOSPersistentVolumeSourceFluent> { public N and(); @@ -1018,7 +914,7 @@ public interface StorageosNested } public interface VsphereVolumeNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1VsphereVirtualDiskVolumeSourceFluent< V1PersistentVolumeSpecFluent.VsphereVolumeNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java index a086bd53df..e8d5c3f116 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluentImpl.java @@ -28,8 +28,7 @@ public class V1PersistentVolumeSpecFluentImpl implements V1PersistentVolumeSpecFluent { public V1PersistentVolumeSpecFluentImpl() {} - public V1PersistentVolumeSpecFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec instance) { + public V1PersistentVolumeSpecFluentImpl(V1PersistentVolumeSpec instance) { this.withAccessModes(instance.getAccessModes()); this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); @@ -95,7 +94,7 @@ public V1PersistentVolumeSpecFluentImpl( private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; private V1AzureFilePersistentVolumeSourceBuilder azureFile; - private Map capacity; + private Map capacity; private V1CephFSPersistentVolumeSourceBuilder cephfs; private V1CinderPersistentVolumeSourceBuilder cinder; private V1ObjectReferenceBuilder claimRef; @@ -108,31 +107,31 @@ public V1PersistentVolumeSpecFluentImpl( private V1HostPathVolumeSourceBuilder hostPath; private V1ISCSIPersistentVolumeSourceBuilder iscsi; private V1LocalVolumeSourceBuilder local; - private java.util.List mountOptions; + private List mountOptions; private V1NFSVolumeSourceBuilder nfs; private V1VolumeNodeAffinityBuilder nodeAffinity; - private java.lang.String persistentVolumeReclaimPolicy; + private String persistentVolumeReclaimPolicy; private V1PhotonPersistentDiskVolumeSourceBuilder photonPersistentDisk; private V1PortworxVolumeSourceBuilder portworxVolume; private V1QuobyteVolumeSourceBuilder quobyte; private V1RBDPersistentVolumeSourceBuilder rbd; private V1ScaleIOPersistentVolumeSourceBuilder scaleIO; - private java.lang.String storageClassName; + private String storageClassName; private V1StorageOSPersistentVolumeSourceBuilder storageos; - private java.lang.String volumeMode; + private String volumeMode; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; - public A addToAccessModes(Integer index, java.lang.String item) { + public A addToAccessModes(Integer index, String item) { if (this.accessModes == null) { - this.accessModes = new ArrayList(); + this.accessModes = new ArrayList(); } this.accessModes.add(index, item); return (A) this; } - public A setToAccessModes(java.lang.Integer index, java.lang.String item) { + public A setToAccessModes(Integer index, String item) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } this.accessModes.set(index, item); return (A) this; @@ -140,26 +139,26 @@ public A setToAccessModes(java.lang.Integer index, java.lang.String item) { public A addToAccessModes(java.lang.String... items) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.accessModes.add(item); } return (A) this; } - public A addAllToAccessModes(Collection items) { + public A addAllToAccessModes(Collection items) { if (this.accessModes == null) { - this.accessModes = new java.util.ArrayList(); + this.accessModes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.accessModes.add(item); } return (A) this; } public A removeFromAccessModes(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.accessModes != null) { this.accessModes.remove(item); } @@ -167,8 +166,8 @@ public A removeFromAccessModes(java.lang.String... items) { return (A) this; } - public A removeAllFromAccessModes(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAccessModes(Collection items) { + for (String item : items) { if (this.accessModes != null) { this.accessModes.remove(item); } @@ -176,24 +175,24 @@ public A removeAllFromAccessModes(java.util.Collection items) return (A) this; } - public java.util.List getAccessModes() { + public List getAccessModes() { return this.accessModes; } - public java.lang.String getAccessMode(java.lang.Integer index) { + public String getAccessMode(Integer index) { return this.accessModes.get(index); } - public java.lang.String getFirstAccessMode() { + public String getFirstAccessMode() { return this.accessModes.get(0); } - public java.lang.String getLastAccessMode() { + public String getLastAccessMode() { return this.accessModes.get(accessModes.size() - 1); } - public java.lang.String getMatchingAccessMode(Predicate predicate) { - for (java.lang.String item : accessModes) { + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { return item; } @@ -201,8 +200,8 @@ public java.lang.String getMatchingAccessMode(Predicate predic return null; } - public Boolean hasMatchingAccessMode(java.util.function.Predicate predicate) { - for (java.lang.String item : accessModes) { + public Boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { if (predicate.test(item)) { return true; } @@ -210,10 +209,10 @@ public Boolean hasMatchingAccessMode(java.util.function.Predicate accessModes) { + public A withAccessModes(List accessModes) { if (accessModes != null) { - this.accessModes = new java.util.ArrayList(); - for (java.lang.String item : accessModes) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { this.addToAccessModes(item); } } else { @@ -227,14 +226,14 @@ public A withAccessModes(java.lang.String... accessModes) { this.accessModes.clear(); } if (accessModes != null) { - for (java.lang.String item : accessModes) { + for (String item : accessModes) { this.addToAccessModes(item); } } return (A) this; } - public java.lang.Boolean hasAccessModes() { + public Boolean hasAccessModes() { return accessModes != null && !accessModes.isEmpty(); } @@ -248,24 +247,24 @@ public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource - buildAwsElasticBlockStore() { + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public A withAwsElasticBlockStore( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); if (awsElasticBlockStore != null) { this.awsElasticBlockStore = - new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder( - awsElasticBlockStore); + new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); + } else { + this.awsElasticBlockStore = null; + _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); } return (A) this; } - public java.lang.Boolean hasAwsElasticBlockStore() { + public Boolean hasAwsElasticBlockStore() { return this.awsElasticBlockStore != null; } @@ -273,37 +272,25 @@ public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElas return new V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - withNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item) { + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( + V1AWSElasticBlockStoreVolumeSource item) { return new V1PersistentVolumeSpecFluentImpl.AwsElasticBlockStoreNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - editAwsElasticBlockStore() { + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore() { return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { return withNewAwsElasticBlockStoreLike( getAwsElasticBlockStore() != null ? getAwsElasticBlockStore() - : new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder() - .build()); + : new V1AWSElasticBlockStoreVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - A> - editOrNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item) { + public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested + editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { return withNewAwsElasticBlockStoreLike( getAwsElasticBlockStore() != null ? getAwsElasticBlockStore() : item); } @@ -313,25 +300,28 @@ public V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested withNewAwsElas * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource getAzureDisk() { + @Deprecated + public V1AzureDiskVolumeSource getAzureDisk() { return this.azureDisk != null ? this.azureDisk.build() : null; } - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource buildAzureDisk() { + public V1AzureDiskVolumeSource buildAzureDisk() { return this.azureDisk != null ? this.azureDisk.build() : null; } - public A withAzureDisk(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource azureDisk) { + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { _visitables.get("azureDisk").remove(this.azureDisk); if (azureDisk != null) { this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); _visitables.get("azureDisk").add(this.azureDisk); + } else { + this.azureDisk = null; + _visitables.get("azureDisk").remove(this.azureDisk); } return (A) this; } - public java.lang.Boolean hasAzureDisk() { + public Boolean hasAzureDisk() { return this.azureDisk != null; } @@ -339,27 +329,22 @@ public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDisk() { return new V1PersistentVolumeSpecFluentImpl.AzureDiskNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - withNewAzureDiskLike(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .AzureDiskNestedImpl(item); + public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDiskLike( + V1AzureDiskVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.AzureDiskNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - editAzureDisk() { + public V1PersistentVolumeSpecFluent.AzureDiskNested editAzureDisk() { return withNewAzureDiskLike(getAzureDisk()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - editOrNewAzureDisk() { + public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDisk() { return withNewAzureDiskLike( - getAzureDisk() != null - ? getAzureDisk() - : new io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder().build()); + getAzureDisk() != null ? getAzureDisk() : new V1AzureDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested - editOrNewAzureDiskLike(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.AzureDiskNested editOrNewAzureDiskLike( + V1AzureDiskVolumeSource item) { return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk() : item); } @@ -368,26 +353,28 @@ public V1PersistentVolumeSpecFluent.AzureDiskNested withNewAzureDisk() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource getAzureFile() { + @Deprecated + public V1AzureFilePersistentVolumeSource getAzureFile() { return this.azureFile != null ? this.azureFile.build() : null; } - public io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource buildAzureFile() { + public V1AzureFilePersistentVolumeSource buildAzureFile() { return this.azureFile != null ? this.azureFile.build() : null; } - public A withAzureFile( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource azureFile) { + public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { _visitables.get("azureFile").remove(this.azureFile); if (azureFile != null) { this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); _visitables.get("azureFile").add(this.azureFile); + } else { + this.azureFile = null; + _visitables.get("azureFile").remove(this.azureFile); } return (A) this; } - public java.lang.Boolean hasAzureFile() { + public Boolean hasAzureFile() { return this.azureFile != null; } @@ -395,34 +382,28 @@ public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFile() { return new V1PersistentVolumeSpecFluentImpl.AzureFileNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - withNewAzureFileLike( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .AzureFileNestedImpl(item); + public V1PersistentVolumeSpecFluent.AzureFileNested withNewAzureFileLike( + V1AzureFilePersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.AzureFileNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - editAzureFile() { + public V1PersistentVolumeSpecFluent.AzureFileNested editAzureFile() { return withNewAzureFileLike(getAzureFile()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - editOrNewAzureFile() { + public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFile() { return withNewAzureFileLike( getAzureFile() != null ? getAzureFile() - : new io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceBuilder() - .build()); + : new V1AzureFilePersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested - editOrNewAzureFileLike( - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.AzureFileNested editOrNewAzureFileLike( + V1AzureFilePersistentVolumeSource item) { return withNewAzureFileLike(getAzureFile() != null ? getAzureFile() : item); } - public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToCapacity(String key, Quantity value) { if (this.capacity == null && key != null && value != null) { this.capacity = new LinkedHashMap(); } @@ -432,10 +413,9 @@ public A addToCapacity(java.lang.String key, io.kubernetes.client.custom.Quantit return (A) this; } - public A addToCapacity( - java.util.Map map) { + public A addToCapacity(Map map) { if (this.capacity == null && map != null) { - this.capacity = new java.util.LinkedHashMap(); + this.capacity = new LinkedHashMap(); } if (map != null) { this.capacity.putAll(map); @@ -443,7 +423,7 @@ public A addToCapacity( return (A) this; } - public A removeFromCapacity(java.lang.String key) { + public A removeFromCapacity(String key) { if (this.capacity == null) { return (A) this; } @@ -453,8 +433,7 @@ public A removeFromCapacity(java.lang.String key) { return (A) this; } - public A removeFromCapacity( - java.util.Map map) { + public A removeFromCapacity(Map map) { if (this.capacity == null) { return (A) this; } @@ -468,21 +447,20 @@ public A removeFromCapacity( return (A) this; } - public java.util.Map getCapacity() { + public Map getCapacity() { return this.capacity; } - public A withCapacity( - java.util.Map capacity) { + public A withCapacity(Map capacity) { if (capacity == null) { this.capacity = null; } else { - this.capacity = new java.util.LinkedHashMap(capacity); + this.capacity = new LinkedHashMap(capacity); } return (A) this; } - public java.lang.Boolean hasCapacity() { + public Boolean hasCapacity() { return this.capacity != null; } @@ -491,25 +469,28 @@ public java.lang.Boolean hasCapacity() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource getCephfs() { + @Deprecated + public V1CephFSPersistentVolumeSource getCephfs() { return this.cephfs != null ? this.cephfs.build() : null; } - public io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource buildCephfs() { + public V1CephFSPersistentVolumeSource buildCephfs() { return this.cephfs != null ? this.cephfs.build() : null; } - public A withCephfs(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource cephfs) { + public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { _visitables.get("cephfs").remove(this.cephfs); if (cephfs != null) { this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); _visitables.get("cephfs").add(this.cephfs); + } else { + this.cephfs = null; + _visitables.get("cephfs").remove(this.cephfs); } return (A) this; } - public java.lang.Boolean hasCephfs() { + public Boolean hasCephfs() { return this.cephfs != null; } @@ -517,28 +498,22 @@ public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfs() { return new V1PersistentVolumeSpecFluentImpl.CephfsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - withNewCephfsLike(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .CephfsNestedImpl(item); + public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfsLike( + V1CephFSPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.CephfsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - editCephfs() { + public V1PersistentVolumeSpecFluent.CephfsNested editCephfs() { return withNewCephfsLike(getCephfs()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - editOrNewCephfs() { + public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfs() { return withNewCephfsLike( - getCephfs() != null - ? getCephfs() - : new io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceBuilder() - .build()); + getCephfs() != null ? getCephfs() : new V1CephFSPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested - editOrNewCephfsLike(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.CephfsNested editOrNewCephfsLike( + V1CephFSPersistentVolumeSource item) { return withNewCephfsLike(getCephfs() != null ? getCephfs() : item); } @@ -547,26 +522,28 @@ public V1PersistentVolumeSpecFluent.CephfsNested withNewCephfs() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CinderPersistentVolumeSource getCinder() { return this.cinder != null ? this.cinder.build() : null; } - public io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource buildCinder() { + public V1CinderPersistentVolumeSource buildCinder() { return this.cinder != null ? this.cinder.build() : null; } - public A withCinder(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource cinder) { + public A withCinder(V1CinderPersistentVolumeSource cinder) { _visitables.get("cinder").remove(this.cinder); if (cinder != null) { - this.cinder = - new io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceBuilder(cinder); + this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); _visitables.get("cinder").add(this.cinder); + } else { + this.cinder = null; + _visitables.get("cinder").remove(this.cinder); } return (A) this; } - public java.lang.Boolean hasCinder() { + public Boolean hasCinder() { return this.cinder != null; } @@ -574,28 +551,22 @@ public V1PersistentVolumeSpecFluent.CinderNested withNewCinder() { return new V1PersistentVolumeSpecFluentImpl.CinderNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - withNewCinderLike(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .CinderNestedImpl(item); + public V1PersistentVolumeSpecFluent.CinderNested withNewCinderLike( + V1CinderPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.CinderNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - editCinder() { + public V1PersistentVolumeSpecFluent.CinderNested editCinder() { return withNewCinderLike(getCinder()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - editOrNewCinder() { + public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinder() { return withNewCinderLike( - getCinder() != null - ? getCinder() - : new io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceBuilder() - .build()); + getCinder() != null ? getCinder() : new V1CinderPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested - editOrNewCinderLike(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.CinderNested editOrNewCinderLike( + V1CinderPersistentVolumeSource item) { return withNewCinderLike(getCinder() != null ? getCinder() : item); } @@ -604,25 +575,28 @@ public V1PersistentVolumeSpecFluent.CinderNested withNewCinder() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getClaimRef() { + @Deprecated + public V1ObjectReference getClaimRef() { return this.claimRef != null ? this.claimRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildClaimRef() { + public V1ObjectReference buildClaimRef() { return this.claimRef != null ? this.claimRef.build() : null; } - public A withClaimRef(io.kubernetes.client.openapi.models.V1ObjectReference claimRef) { + public A withClaimRef(V1ObjectReference claimRef) { _visitables.get("claimRef").remove(this.claimRef); if (claimRef != null) { this.claimRef = new V1ObjectReferenceBuilder(claimRef); _visitables.get("claimRef").add(this.claimRef); + } else { + this.claimRef = null; + _visitables.get("claimRef").remove(this.claimRef); } return (A) this; } - public java.lang.Boolean hasClaimRef() { + public Boolean hasClaimRef() { return this.claimRef != null; } @@ -630,27 +604,22 @@ public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRef() { return new V1PersistentVolumeSpecFluentImpl.ClaimRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - withNewClaimRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .ClaimRefNestedImpl(item); + public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRefLike( + V1ObjectReference item) { + return new V1PersistentVolumeSpecFluentImpl.ClaimRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - editClaimRef() { + public V1PersistentVolumeSpecFluent.ClaimRefNested editClaimRef() { return withNewClaimRefLike(getClaimRef()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - editOrNewClaimRef() { + public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRef() { return withNewClaimRefLike( - getClaimRef() != null - ? getClaimRef() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getClaimRef() != null ? getClaimRef() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested - editOrNewClaimRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1PersistentVolumeSpecFluent.ClaimRefNested editOrNewClaimRefLike( + V1ObjectReference item) { return withNewClaimRefLike(getClaimRef() != null ? getClaimRef() : item); } @@ -659,25 +628,28 @@ public V1PersistentVolumeSpecFluent.ClaimRefNested withNewClaimRef() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource getCsi() { + @Deprecated + public V1CSIPersistentVolumeSource getCsi() { return this.csi != null ? this.csi.build() : null; } - public io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource buildCsi() { + public V1CSIPersistentVolumeSource buildCsi() { return this.csi != null ? this.csi.build() : null; } - public A withCsi(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource csi) { + public A withCsi(V1CSIPersistentVolumeSource csi) { _visitables.get("csi").remove(this.csi); if (csi != null) { this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); _visitables.get("csi").add(this.csi); + } else { + this.csi = null; + _visitables.get("csi").remove(this.csi); } return (A) this; } - public java.lang.Boolean hasCsi() { + public Boolean hasCsi() { return this.csi != null; } @@ -685,26 +657,22 @@ public V1PersistentVolumeSpecFluent.CsiNested withNewCsi() { return new V1PersistentVolumeSpecFluentImpl.CsiNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested - withNewCsiLike(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl.CsiNestedImpl( - item); + public V1PersistentVolumeSpecFluent.CsiNested withNewCsiLike( + V1CSIPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.CsiNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested editCsi() { + public V1PersistentVolumeSpecFluent.CsiNested editCsi() { return withNewCsiLike(getCsi()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested - editOrNewCsi() { + public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsi() { return withNewCsiLike( - getCsi() != null - ? getCsi() - : new io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceBuilder().build()); + getCsi() != null ? getCsi() : new V1CSIPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested - editOrNewCsiLike(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.CsiNested editOrNewCsiLike( + V1CSIPersistentVolumeSource item) { return withNewCsiLike(getCsi() != null ? getCsi() : item); } @@ -713,25 +681,28 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNeste * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1FCVolumeSource getFc() { + @Deprecated + public V1FCVolumeSource getFc() { return this.fc != null ? this.fc.build() : null; } - public io.kubernetes.client.openapi.models.V1FCVolumeSource buildFc() { + public V1FCVolumeSource buildFc() { return this.fc != null ? this.fc.build() : null; } - public A withFc(io.kubernetes.client.openapi.models.V1FCVolumeSource fc) { + public A withFc(V1FCVolumeSource fc) { _visitables.get("fc").remove(this.fc); if (fc != null) { this.fc = new V1FCVolumeSourceBuilder(fc); _visitables.get("fc").add(this.fc); + } else { + this.fc = null; + _visitables.get("fc").remove(this.fc); } return (A) this; } - public java.lang.Boolean hasFc() { + public Boolean hasFc() { return this.fc != null; } @@ -739,26 +710,19 @@ public V1PersistentVolumeSpecFluent.FcNested withNewFc() { return new V1PersistentVolumeSpecFluentImpl.FcNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested withNewFcLike( - io.kubernetes.client.openapi.models.V1FCVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl.FcNestedImpl( - item); + public V1PersistentVolumeSpecFluent.FcNested withNewFcLike(V1FCVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.FcNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested editFc() { + public V1PersistentVolumeSpecFluent.FcNested editFc() { return withNewFcLike(getFc()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested - editOrNewFc() { - return withNewFcLike( - getFc() != null - ? getFc() - : new io.kubernetes.client.openapi.models.V1FCVolumeSourceBuilder().build()); + public V1PersistentVolumeSpecFluent.FcNested editOrNewFc() { + return withNewFcLike(getFc() != null ? getFc() : new V1FCVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested - editOrNewFcLike(io.kubernetes.client.openapi.models.V1FCVolumeSource item) { + public V1PersistentVolumeSpecFluent.FcNested editOrNewFcLike(V1FCVolumeSource item) { return withNewFcLike(getFc() != null ? getFc() : item); } @@ -767,26 +731,28 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource getFlexVolume() { + @Deprecated + public V1FlexPersistentVolumeSource getFlexVolume() { return this.flexVolume != null ? this.flexVolume.build() : null; } - public io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource buildFlexVolume() { + public V1FlexPersistentVolumeSource buildFlexVolume() { return this.flexVolume != null ? this.flexVolume.build() : null; } - public A withFlexVolume( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource flexVolume) { + public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { _visitables.get("flexVolume").remove(this.flexVolume); if (flexVolume != null) { this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); _visitables.get("flexVolume").add(this.flexVolume); + } else { + this.flexVolume = null; + _visitables.get("flexVolume").remove(this.flexVolume); } return (A) this; } - public java.lang.Boolean hasFlexVolume() { + public Boolean hasFlexVolume() { return this.flexVolume != null; } @@ -794,29 +760,24 @@ public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolume() { return new V1PersistentVolumeSpecFluentImpl.FlexVolumeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - withNewFlexVolumeLike(io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .FlexVolumeNestedImpl(item); + public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolumeLike( + V1FlexPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.FlexVolumeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - editFlexVolume() { + public V1PersistentVolumeSpecFluent.FlexVolumeNested editFlexVolume() { return withNewFlexVolumeLike(getFlexVolume()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - editOrNewFlexVolume() { + public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolume() { return withNewFlexVolumeLike( getFlexVolume() != null ? getFlexVolume() - : new io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceBuilder() - .build()); + : new V1FlexPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested - editOrNewFlexVolumeLike( - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.FlexVolumeNested editOrNewFlexVolumeLike( + V1FlexPersistentVolumeSource item) { return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume() : item); } @@ -825,25 +786,28 @@ public V1PersistentVolumeSpecFluent.FlexVolumeNested withNewFlexVolume() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlockerVolumeSource getFlocker() { return this.flocker != null ? this.flocker.build() : null; } - public io.kubernetes.client.openapi.models.V1FlockerVolumeSource buildFlocker() { + public V1FlockerVolumeSource buildFlocker() { return this.flocker != null ? this.flocker.build() : null; } - public A withFlocker(io.kubernetes.client.openapi.models.V1FlockerVolumeSource flocker) { + public A withFlocker(V1FlockerVolumeSource flocker) { _visitables.get("flocker").remove(this.flocker); if (flocker != null) { - this.flocker = new io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder(flocker); + this.flocker = new V1FlockerVolumeSourceBuilder(flocker); _visitables.get("flocker").add(this.flocker); + } else { + this.flocker = null; + _visitables.get("flocker").remove(this.flocker); } return (A) this; } - public java.lang.Boolean hasFlocker() { + public Boolean hasFlocker() { return this.flocker != null; } @@ -851,27 +815,22 @@ public V1PersistentVolumeSpecFluent.FlockerNested withNewFlocker() { return new V1PersistentVolumeSpecFluentImpl.FlockerNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - withNewFlockerLike(io.kubernetes.client.openapi.models.V1FlockerVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .FlockerNestedImpl(item); + public V1PersistentVolumeSpecFluent.FlockerNested withNewFlockerLike( + V1FlockerVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.FlockerNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - editFlocker() { + public V1PersistentVolumeSpecFluent.FlockerNested editFlocker() { return withNewFlockerLike(getFlocker()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - editOrNewFlocker() { + public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlocker() { return withNewFlockerLike( - getFlocker() != null - ? getFlocker() - : new io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder().build()); + getFlocker() != null ? getFlocker() : new V1FlockerVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested - editOrNewFlockerLike(io.kubernetes.client.openapi.models.V1FlockerVolumeSource item) { + public V1PersistentVolumeSpecFluent.FlockerNested editOrNewFlockerLike( + V1FlockerVolumeSource item) { return withNewFlockerLike(getFlocker() != null ? getFlocker() : item); } @@ -880,28 +839,28 @@ public V1PersistentVolumeSpecFluent.FlockerNested withNewFlocker() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource - getGcePersistentDisk() { + @Deprecated + public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource - buildGcePersistentDisk() { + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public A withGcePersistentDisk( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); if (gcePersistentDisk != null) { this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); + } else { + this.gcePersistentDisk = null; + _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); } return (A) this; } - public java.lang.Boolean hasGcePersistentDisk() { + public Boolean hasGcePersistentDisk() { return this.gcePersistentDisk != null; } @@ -909,30 +868,24 @@ public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersist return new V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - withNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .GcePersistentDiskNestedImpl(item); + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.GcePersistentDiskNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - editGcePersistentDisk() { + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editGcePersistentDisk() { return withNewGcePersistentDiskLike(getGcePersistentDisk()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - editOrNewGcePersistentDisk() { + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDisk() { return withNewGcePersistentDiskLike( getGcePersistentDisk() != null ? getGcePersistentDisk() - : new io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder() - .build()); + : new V1GCEPersistentDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GcePersistentDiskNested - editOrNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item) { return withNewGcePersistentDiskLike( getGcePersistentDisk() != null ? getGcePersistentDisk() : item); } @@ -942,26 +895,28 @@ public V1PersistentVolumeSpecFluent.GcePersistentDiskNested withNewGcePersist * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource getGlusterfs() { + @Deprecated + public V1GlusterfsPersistentVolumeSource getGlusterfs() { return this.glusterfs != null ? this.glusterfs.build() : null; } - public io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource buildGlusterfs() { + public V1GlusterfsPersistentVolumeSource buildGlusterfs() { return this.glusterfs != null ? this.glusterfs.build() : null; } - public A withGlusterfs( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource glusterfs) { + public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { _visitables.get("glusterfs").remove(this.glusterfs); if (glusterfs != null) { this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); _visitables.get("glusterfs").add(this.glusterfs); + } else { + this.glusterfs = null; + _visitables.get("glusterfs").remove(this.glusterfs); } return (A) this; } - public java.lang.Boolean hasGlusterfs() { + public Boolean hasGlusterfs() { return this.glusterfs != null; } @@ -969,30 +924,24 @@ public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfs() { return new V1PersistentVolumeSpecFluentImpl.GlusterfsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - withNewGlusterfsLike( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .GlusterfsNestedImpl(item); + public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfsLike( + V1GlusterfsPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.GlusterfsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - editGlusterfs() { + public V1PersistentVolumeSpecFluent.GlusterfsNested editGlusterfs() { return withNewGlusterfsLike(getGlusterfs()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - editOrNewGlusterfs() { + public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfs() { return withNewGlusterfsLike( getGlusterfs() != null ? getGlusterfs() - : new io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceBuilder() - .build()); + : new V1GlusterfsPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested - editOrNewGlusterfsLike( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.GlusterfsNested editOrNewGlusterfsLike( + V1GlusterfsPersistentVolumeSource item) { return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs() : item); } @@ -1001,26 +950,28 @@ public V1PersistentVolumeSpecFluent.GlusterfsNested withNewGlusterfs() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HostPathVolumeSource getHostPath() { return this.hostPath != null ? this.hostPath.build() : null; } - public io.kubernetes.client.openapi.models.V1HostPathVolumeSource buildHostPath() { + public V1HostPathVolumeSource buildHostPath() { return this.hostPath != null ? this.hostPath.build() : null; } - public A withHostPath(io.kubernetes.client.openapi.models.V1HostPathVolumeSource hostPath) { + public A withHostPath(V1HostPathVolumeSource hostPath) { _visitables.get("hostPath").remove(this.hostPath); if (hostPath != null) { - this.hostPath = - new io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder(hostPath); + this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); _visitables.get("hostPath").add(this.hostPath); + } else { + this.hostPath = null; + _visitables.get("hostPath").remove(this.hostPath); } return (A) this; } - public java.lang.Boolean hasHostPath() { + public Boolean hasHostPath() { return this.hostPath != null; } @@ -1028,27 +979,22 @@ public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPath() { return new V1PersistentVolumeSpecFluentImpl.HostPathNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - withNewHostPathLike(io.kubernetes.client.openapi.models.V1HostPathVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .HostPathNestedImpl(item); + public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPathLike( + V1HostPathVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.HostPathNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - editHostPath() { + public V1PersistentVolumeSpecFluent.HostPathNested editHostPath() { return withNewHostPathLike(getHostPath()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - editOrNewHostPath() { + public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPath() { return withNewHostPathLike( - getHostPath() != null - ? getHostPath() - : new io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder().build()); + getHostPath() != null ? getHostPath() : new V1HostPathVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested - editOrNewHostPathLike(io.kubernetes.client.openapi.models.V1HostPathVolumeSource item) { + public V1PersistentVolumeSpecFluent.HostPathNested editOrNewHostPathLike( + V1HostPathVolumeSource item) { return withNewHostPathLike(getHostPath() != null ? getHostPath() : item); } @@ -1057,25 +1003,28 @@ public V1PersistentVolumeSpecFluent.HostPathNested withNewHostPath() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource getIscsi() { + @Deprecated + public V1ISCSIPersistentVolumeSource getIscsi() { return this.iscsi != null ? this.iscsi.build() : null; } - public io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource buildIscsi() { + public V1ISCSIPersistentVolumeSource buildIscsi() { return this.iscsi != null ? this.iscsi.build() : null; } - public A withIscsi(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource iscsi) { + public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { _visitables.get("iscsi").remove(this.iscsi); if (iscsi != null) { this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); _visitables.get("iscsi").add(this.iscsi); + } else { + this.iscsi = null; + _visitables.get("iscsi").remove(this.iscsi); } return (A) this; } - public java.lang.Boolean hasIscsi() { + public Boolean hasIscsi() { return this.iscsi != null; } @@ -1083,28 +1032,22 @@ public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsi() { return new V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - withNewIscsiLike(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl( - item); + public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsiLike( + V1ISCSIPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.IscsiNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - editIscsi() { + public V1PersistentVolumeSpecFluent.IscsiNested editIscsi() { return withNewIscsiLike(getIscsi()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - editOrNewIscsi() { + public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsi() { return withNewIscsiLike( - getIscsi() != null - ? getIscsi() - : new io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceBuilder() - .build()); + getIscsi() != null ? getIscsi() : new V1ISCSIPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested - editOrNewIscsiLike(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.IscsiNested editOrNewIscsiLike( + V1ISCSIPersistentVolumeSource item) { return withNewIscsiLike(getIscsi() != null ? getIscsi() : item); } @@ -1113,25 +1056,28 @@ public V1PersistentVolumeSpecFluent.IscsiNested withNewIscsi() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LocalVolumeSource getLocal() { + @Deprecated + public V1LocalVolumeSource getLocal() { return this.local != null ? this.local.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalVolumeSource buildLocal() { + public V1LocalVolumeSource buildLocal() { return this.local != null ? this.local.build() : null; } - public A withLocal(io.kubernetes.client.openapi.models.V1LocalVolumeSource local) { + public A withLocal(V1LocalVolumeSource local) { _visitables.get("local").remove(this.local); if (local != null) { this.local = new V1LocalVolumeSourceBuilder(local); _visitables.get("local").add(this.local); + } else { + this.local = null; + _visitables.get("local").remove(this.local); } return (A) this; } - public java.lang.Boolean hasLocal() { + public Boolean hasLocal() { return this.local != null; } @@ -1139,41 +1085,34 @@ public V1PersistentVolumeSpecFluent.LocalNested withNewLocal() { return new V1PersistentVolumeSpecFluentImpl.LocalNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - withNewLocalLike(io.kubernetes.client.openapi.models.V1LocalVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl.LocalNestedImpl( - item); + public V1PersistentVolumeSpecFluent.LocalNested withNewLocalLike(V1LocalVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.LocalNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - editLocal() { + public V1PersistentVolumeSpecFluent.LocalNested editLocal() { return withNewLocalLike(getLocal()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - editOrNewLocal() { + public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocal() { return withNewLocalLike( - getLocal() != null - ? getLocal() - : new io.kubernetes.client.openapi.models.V1LocalVolumeSourceBuilder().build()); + getLocal() != null ? getLocal() : new V1LocalVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested - editOrNewLocalLike(io.kubernetes.client.openapi.models.V1LocalVolumeSource item) { + public V1PersistentVolumeSpecFluent.LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { return withNewLocalLike(getLocal() != null ? getLocal() : item); } - public A addToMountOptions(java.lang.Integer index, java.lang.String item) { + public A addToMountOptions(Integer index, String item) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } this.mountOptions.add(index, item); return (A) this; } - public A setToMountOptions(java.lang.Integer index, java.lang.String item) { + public A setToMountOptions(Integer index, String item) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } this.mountOptions.set(index, item); return (A) this; @@ -1181,26 +1120,26 @@ public A setToMountOptions(java.lang.Integer index, java.lang.String item) { public A addToMountOptions(java.lang.String... items) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.mountOptions.add(item); } return (A) this; } - public A addAllToMountOptions(java.util.Collection items) { + public A addAllToMountOptions(Collection items) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.mountOptions.add(item); } return (A) this; } public A removeFromMountOptions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.mountOptions != null) { this.mountOptions.remove(item); } @@ -1208,8 +1147,8 @@ public A removeFromMountOptions(java.lang.String... items) { return (A) this; } - public A removeAllFromMountOptions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromMountOptions(Collection items) { + for (String item : items) { if (this.mountOptions != null) { this.mountOptions.remove(item); } @@ -1217,25 +1156,24 @@ public A removeAllFromMountOptions(java.util.Collection items) return (A) this; } - public java.util.List getMountOptions() { + public List getMountOptions() { return this.mountOptions; } - public java.lang.String getMountOption(java.lang.Integer index) { + public String getMountOption(Integer index) { return this.mountOptions.get(index); } - public java.lang.String getFirstMountOption() { + public String getFirstMountOption() { return this.mountOptions.get(0); } - public java.lang.String getLastMountOption() { + public String getLastMountOption() { return this.mountOptions.get(mountOptions.size() - 1); } - public java.lang.String getMatchingMountOption( - java.util.function.Predicate predicate) { - for (java.lang.String item : mountOptions) { + public String getMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { if (predicate.test(item)) { return item; } @@ -1243,9 +1181,8 @@ public java.lang.String getMatchingMountOption( return null; } - public java.lang.Boolean hasMatchingMountOption( - java.util.function.Predicate predicate) { - for (java.lang.String item : mountOptions) { + public Boolean hasMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { if (predicate.test(item)) { return true; } @@ -1253,10 +1190,10 @@ public java.lang.Boolean hasMatchingMountOption( return false; } - public A withMountOptions(java.util.List mountOptions) { + public A withMountOptions(List mountOptions) { if (mountOptions != null) { - this.mountOptions = new java.util.ArrayList(); - for (java.lang.String item : mountOptions) { + this.mountOptions = new ArrayList(); + for (String item : mountOptions) { this.addToMountOptions(item); } } else { @@ -1270,14 +1207,14 @@ public A withMountOptions(java.lang.String... mountOptions) { this.mountOptions.clear(); } if (mountOptions != null) { - for (java.lang.String item : mountOptions) { + for (String item : mountOptions) { this.addToMountOptions(item); } } return (A) this; } - public java.lang.Boolean hasMountOptions() { + public Boolean hasMountOptions() { return mountOptions != null && !mountOptions.isEmpty(); } @@ -1286,25 +1223,28 @@ public java.lang.Boolean hasMountOptions() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NFSVolumeSource getNfs() { return this.nfs != null ? this.nfs.build() : null; } - public io.kubernetes.client.openapi.models.V1NFSVolumeSource buildNfs() { + public V1NFSVolumeSource buildNfs() { return this.nfs != null ? this.nfs.build() : null; } - public A withNfs(io.kubernetes.client.openapi.models.V1NFSVolumeSource nfs) { + public A withNfs(V1NFSVolumeSource nfs) { _visitables.get("nfs").remove(this.nfs); if (nfs != null) { - this.nfs = new io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder(nfs); + this.nfs = new V1NFSVolumeSourceBuilder(nfs); _visitables.get("nfs").add(this.nfs); + } else { + this.nfs = null; + _visitables.get("nfs").remove(this.nfs); } return (A) this; } - public java.lang.Boolean hasNfs() { + public Boolean hasNfs() { return this.nfs != null; } @@ -1312,26 +1252,19 @@ public V1PersistentVolumeSpecFluent.NfsNested withNewNfs() { return new V1PersistentVolumeSpecFluentImpl.NfsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested - withNewNfsLike(io.kubernetes.client.openapi.models.V1NFSVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl.NfsNestedImpl( - item); + public V1PersistentVolumeSpecFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.NfsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested editNfs() { + public V1PersistentVolumeSpecFluent.NfsNested editNfs() { return withNewNfsLike(getNfs()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested - editOrNewNfs() { - return withNewNfsLike( - getNfs() != null - ? getNfs() - : new io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder().build()); + public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfs() { + return withNewNfsLike(getNfs() != null ? getNfs() : new V1NFSVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested - editOrNewNfsLike(io.kubernetes.client.openapi.models.V1NFSVolumeSource item) { + public V1PersistentVolumeSpecFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { return withNewNfsLike(getNfs() != null ? getNfs() : item); } @@ -1340,26 +1273,28 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNeste * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VolumeNodeAffinity getNodeAffinity() { return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinity buildNodeAffinity() { + public V1VolumeNodeAffinity buildNodeAffinity() { return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public A withNodeAffinity(io.kubernetes.client.openapi.models.V1VolumeNodeAffinity nodeAffinity) { + public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { _visitables.get("nodeAffinity").remove(this.nodeAffinity); if (nodeAffinity != null) { - this.nodeAffinity = - new io.kubernetes.client.openapi.models.V1VolumeNodeAffinityBuilder(nodeAffinity); + this.nodeAffinity = new V1VolumeNodeAffinityBuilder(nodeAffinity); _visitables.get("nodeAffinity").add(this.nodeAffinity); + } else { + this.nodeAffinity = null; + _visitables.get("nodeAffinity").remove(this.nodeAffinity); } return (A) this; } - public java.lang.Boolean hasNodeAffinity() { + public Boolean hasNodeAffinity() { return this.nodeAffinity != null; } @@ -1367,40 +1302,35 @@ public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinity() return new V1PersistentVolumeSpecFluentImpl.NodeAffinityNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - withNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1VolumeNodeAffinity item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .NodeAffinityNestedImpl(item); + public V1PersistentVolumeSpecFluent.NodeAffinityNested withNewNodeAffinityLike( + V1VolumeNodeAffinity item) { + return new V1PersistentVolumeSpecFluentImpl.NodeAffinityNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - editNodeAffinity() { + public V1PersistentVolumeSpecFluent.NodeAffinityNested editNodeAffinity() { return withNewNodeAffinityLike(getNodeAffinity()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - editOrNewNodeAffinity() { + public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinity() { return withNewNodeAffinityLike( - getNodeAffinity() != null - ? getNodeAffinity() - : new io.kubernetes.client.openapi.models.V1VolumeNodeAffinityBuilder().build()); + getNodeAffinity() != null ? getNodeAffinity() : new V1VolumeNodeAffinityBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NodeAffinityNested - editOrNewNodeAffinityLike(io.kubernetes.client.openapi.models.V1VolumeNodeAffinity item) { + public V1PersistentVolumeSpecFluent.NodeAffinityNested editOrNewNodeAffinityLike( + V1VolumeNodeAffinity item) { return withNewNodeAffinityLike(getNodeAffinity() != null ? getNodeAffinity() : item); } - public java.lang.String getPersistentVolumeReclaimPolicy() { + public String getPersistentVolumeReclaimPolicy() { return this.persistentVolumeReclaimPolicy; } - public A withPersistentVolumeReclaimPolicy(java.lang.String persistentVolumeReclaimPolicy) { + public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; return (A) this; } - public java.lang.Boolean hasPersistentVolumeReclaimPolicy() { + public Boolean hasPersistentVolumeReclaimPolicy() { return this.persistentVolumeReclaimPolicy != null; } @@ -1409,29 +1339,29 @@ public java.lang.Boolean hasPersistentVolumeReclaimPolicy() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource - buildPhotonPersistentDisk() { + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public A withPhotonPersistentDisk( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); if (photonPersistentDisk != null) { this.photonPersistentDisk = - new io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder( - photonPersistentDisk); + new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); + } else { + this.photonPersistentDisk = null; + _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); } return (A) this; } - public java.lang.Boolean hasPhotonPersistentDisk() { + public Boolean hasPhotonPersistentDisk() { return this.photonPersistentDisk != null; } @@ -1439,38 +1369,25 @@ public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonP return new V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - withNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .PhotonPersistentDiskNestedImpl(item); + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( + V1PhotonPersistentDiskVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.PhotonPersistentDiskNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - editPhotonPersistentDisk() { + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editPhotonPersistentDisk() { return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { return withNewPhotonPersistentDiskLike( getPhotonPersistentDisk() != null ? getPhotonPersistentDisk() - : new io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder() - .build()); + : new V1PhotonPersistentDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - A> - editOrNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested + editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { return withNewPhotonPersistentDiskLike( getPhotonPersistentDisk() != null ? getPhotonPersistentDisk() : item); } @@ -1480,27 +1397,28 @@ public V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested withNewPhotonP * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PortworxVolumeSource getPortworxVolume() { return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public io.kubernetes.client.openapi.models.V1PortworxVolumeSource buildPortworxVolume() { + public V1PortworxVolumeSource buildPortworxVolume() { return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public A withPortworxVolume( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource portworxVolume) { + public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { _visitables.get("portworxVolume").remove(this.portworxVolume); if (portworxVolume != null) { - this.portworxVolume = - new io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder(portworxVolume); + this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); _visitables.get("portworxVolume").add(this.portworxVolume); + } else { + this.portworxVolume = null; + _visitables.get("portworxVolume").remove(this.portworxVolume); } return (A) this; } - public java.lang.Boolean hasPortworxVolume() { + public Boolean hasPortworxVolume() { return this.portworxVolume != null; } @@ -1508,27 +1426,24 @@ public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolum return new V1PersistentVolumeSpecFluentImpl.PortworxVolumeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - withNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .PortworxVolumeNestedImpl(item); + public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolumeLike( + V1PortworxVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.PortworxVolumeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - editPortworxVolume() { + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editPortworxVolume() { return withNewPortworxVolumeLike(getPortworxVolume()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - editOrNewPortworxVolume() { + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolume() { return withNewPortworxVolumeLike( getPortworxVolume() != null ? getPortworxVolume() - : new io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder().build()); + : new V1PortworxVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.PortworxVolumeNested - editOrNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item) { + public V1PersistentVolumeSpecFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( + V1PortworxVolumeSource item) { return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume() : item); } @@ -1537,25 +1452,28 @@ public V1PersistentVolumeSpecFluent.PortworxVolumeNested withNewPortworxVolum * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource getQuobyte() { + @Deprecated + public V1QuobyteVolumeSource getQuobyte() { return this.quobyte != null ? this.quobyte.build() : null; } - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource buildQuobyte() { + public V1QuobyteVolumeSource buildQuobyte() { return this.quobyte != null ? this.quobyte.build() : null; } - public A withQuobyte(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource quobyte) { + public A withQuobyte(V1QuobyteVolumeSource quobyte) { _visitables.get("quobyte").remove(this.quobyte); if (quobyte != null) { this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); _visitables.get("quobyte").add(this.quobyte); + } else { + this.quobyte = null; + _visitables.get("quobyte").remove(this.quobyte); } return (A) this; } - public java.lang.Boolean hasQuobyte() { + public Boolean hasQuobyte() { return this.quobyte != null; } @@ -1563,27 +1481,22 @@ public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyte() { return new V1PersistentVolumeSpecFluentImpl.QuobyteNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - withNewQuobyteLike(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .QuobyteNestedImpl(item); + public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyteLike( + V1QuobyteVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.QuobyteNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - editQuobyte() { + public V1PersistentVolumeSpecFluent.QuobyteNested editQuobyte() { return withNewQuobyteLike(getQuobyte()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - editOrNewQuobyte() { + public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyte() { return withNewQuobyteLike( - getQuobyte() != null - ? getQuobyte() - : new io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder().build()); + getQuobyte() != null ? getQuobyte() : new V1QuobyteVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested - editOrNewQuobyteLike(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item) { + public V1PersistentVolumeSpecFluent.QuobyteNested editOrNewQuobyteLike( + V1QuobyteVolumeSource item) { return withNewQuobyteLike(getQuobyte() != null ? getQuobyte() : item); } @@ -1592,25 +1505,28 @@ public V1PersistentVolumeSpecFluent.QuobyteNested withNewQuobyte() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1RBDPersistentVolumeSource getRbd() { return this.rbd != null ? this.rbd.build() : null; } - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource buildRbd() { + public V1RBDPersistentVolumeSource buildRbd() { return this.rbd != null ? this.rbd.build() : null; } - public A withRbd(io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource rbd) { + public A withRbd(V1RBDPersistentVolumeSource rbd) { _visitables.get("rbd").remove(this.rbd); if (rbd != null) { - this.rbd = new io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceBuilder(rbd); + this.rbd = new V1RBDPersistentVolumeSourceBuilder(rbd); _visitables.get("rbd").add(this.rbd); + } else { + this.rbd = null; + _visitables.get("rbd").remove(this.rbd); } return (A) this; } - public java.lang.Boolean hasRbd() { + public Boolean hasRbd() { return this.rbd != null; } @@ -1618,26 +1534,22 @@ public V1PersistentVolumeSpecFluent.RbdNested withNewRbd() { return new V1PersistentVolumeSpecFluentImpl.RbdNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested - withNewRbdLike(io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl.RbdNestedImpl( - item); + public V1PersistentVolumeSpecFluent.RbdNested withNewRbdLike( + V1RBDPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.RbdNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested editRbd() { + public V1PersistentVolumeSpecFluent.RbdNested editRbd() { return withNewRbdLike(getRbd()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested - editOrNewRbd() { + public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbd() { return withNewRbdLike( - getRbd() != null - ? getRbd() - : new io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceBuilder().build()); + getRbd() != null ? getRbd() : new V1RBDPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested - editOrNewRbdLike(io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.RbdNested editOrNewRbdLike( + V1RBDPersistentVolumeSource item) { return withNewRbdLike(getRbd() != null ? getRbd() : item); } @@ -1646,26 +1558,28 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNeste * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource getScaleIO() { + @Deprecated + public V1ScaleIOPersistentVolumeSource getScaleIO() { return this.scaleIO != null ? this.scaleIO.build() : null; } - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource buildScaleIO() { + public V1ScaleIOPersistentVolumeSource buildScaleIO() { return this.scaleIO != null ? this.scaleIO.build() : null; } - public A withScaleIO( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource scaleIO) { + public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { _visitables.get("scaleIO").remove(this.scaleIO); if (scaleIO != null) { this.scaleIO = new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); _visitables.get("scaleIO").add(this.scaleIO); + } else { + this.scaleIO = null; + _visitables.get("scaleIO").remove(this.scaleIO); } return (A) this; } - public java.lang.Boolean hasScaleIO() { + public Boolean hasScaleIO() { return this.scaleIO != null; } @@ -1673,42 +1587,35 @@ public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIO() { return new V1PersistentVolumeSpecFluentImpl.ScaleIONestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - withNewScaleIOLike(io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .ScaleIONestedImpl(item); + public V1PersistentVolumeSpecFluent.ScaleIONested withNewScaleIOLike( + V1ScaleIOPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.ScaleIONestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - editScaleIO() { + public V1PersistentVolumeSpecFluent.ScaleIONested editScaleIO() { return withNewScaleIOLike(getScaleIO()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - editOrNewScaleIO() { + public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIO() { return withNewScaleIOLike( - getScaleIO() != null - ? getScaleIO() - : new io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceBuilder() - .build()); + getScaleIO() != null ? getScaleIO() : new V1ScaleIOPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested - editOrNewScaleIOLike( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.ScaleIONested editOrNewScaleIOLike( + V1ScaleIOPersistentVolumeSource item) { return withNewScaleIOLike(getScaleIO() != null ? getScaleIO() : item); } - public java.lang.String getStorageClassName() { + public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(java.lang.String storageClassName) { + public A withStorageClassName(String storageClassName) { this.storageClassName = storageClassName; return (A) this; } - public java.lang.Boolean hasStorageClassName() { + public Boolean hasStorageClassName() { return this.storageClassName != null; } @@ -1717,28 +1624,28 @@ public java.lang.Boolean hasStorageClassName() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StorageOSPersistentVolumeSource getStorageos() { return this.storageos != null ? this.storageos.build() : null; } - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource buildStorageos() { + public V1StorageOSPersistentVolumeSource buildStorageos() { return this.storageos != null ? this.storageos.build() : null; } - public A withStorageos( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource storageos) { + public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { _visitables.get("storageos").remove(this.storageos); if (storageos != null) { - this.storageos = - new io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceBuilder( - storageos); + this.storageos = new V1StorageOSPersistentVolumeSourceBuilder(storageos); _visitables.get("storageos").add(this.storageos); + } else { + this.storageos = null; + _visitables.get("storageos").remove(this.storageos); } return (A) this; } - public java.lang.Boolean hasStorageos() { + public Boolean hasStorageos() { return this.storageos != null; } @@ -1746,43 +1653,37 @@ public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageos() { return new V1PersistentVolumeSpecFluentImpl.StorageosNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - withNewStorageosLike( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .StorageosNestedImpl(item); + public V1PersistentVolumeSpecFluent.StorageosNested withNewStorageosLike( + V1StorageOSPersistentVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.StorageosNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - editStorageos() { + public V1PersistentVolumeSpecFluent.StorageosNested editStorageos() { return withNewStorageosLike(getStorageos()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - editOrNewStorageos() { + public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageos() { return withNewStorageosLike( getStorageos() != null ? getStorageos() - : new io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceBuilder() - .build()); + : new V1StorageOSPersistentVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested - editOrNewStorageosLike( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource item) { + public V1PersistentVolumeSpecFluent.StorageosNested editOrNewStorageosLike( + V1StorageOSPersistentVolumeSource item) { return withNewStorageosLike(getStorageos() != null ? getStorageos() : item); } - public java.lang.String getVolumeMode() { + public String getVolumeMode() { return this.volumeMode; } - public A withVolumeMode(java.lang.String volumeMode) { + public A withVolumeMode(String volumeMode) { this.volumeMode = volumeMode; return (A) this; } - public java.lang.Boolean hasVolumeMode() { + public Boolean hasVolumeMode() { return this.volumeMode != null; } @@ -1791,28 +1692,28 @@ public java.lang.Boolean hasVolumeMode() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public A withVsphereVolume( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource vsphereVolume) { + public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { _visitables.get("vsphereVolume").remove(this.vsphereVolume); if (vsphereVolume != null) { - this.vsphereVolume = - new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder( - vsphereVolume); + this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); _visitables.get("vsphereVolume").add(this.vsphereVolume); + } else { + this.vsphereVolume = null; + _visitables.get("vsphereVolume").remove(this.vsphereVolume); } return (A) this; } - public java.lang.Boolean hasVsphereVolume() { + public Boolean hasVsphereVolume() { return this.vsphereVolume != null; } @@ -1820,30 +1721,24 @@ public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolume( return new V1PersistentVolumeSpecFluentImpl.VsphereVolumeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - withNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluentImpl - .VsphereVolumeNestedImpl(item); + public V1PersistentVolumeSpecFluent.VsphereVolumeNested withNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item) { + return new V1PersistentVolumeSpecFluentImpl.VsphereVolumeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - editVsphereVolume() { + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editVsphereVolume() { return withNewVsphereVolumeLike(getVsphereVolume()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - editOrNewVsphereVolume() { + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolume() { return withNewVsphereVolumeLike( getVsphereVolume() != null ? getVsphereVolume() - : new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder() - .build()); + : new V1VsphereVirtualDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.VsphereVolumeNested - editOrNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item) { + public V1PersistentVolumeSpecFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item) { return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume() : item); } @@ -1942,7 +1837,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (accessModes != null && !accessModes.isEmpty()) { @@ -2072,20 +1967,16 @@ public java.lang.String toString() { class AwsElasticBlockStoreNestedImpl extends V1AWSElasticBlockStoreVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .AwsElasticBlockStoreNested< - N>, - Nested { + implements V1PersistentVolumeSpecFluent.AwsElasticBlockStoreNested, Nested { AwsElasticBlockStoreNestedImpl(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } AwsElasticBlockStoreNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder(this); + this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder builder; + V1AWSElasticBlockStoreVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withAwsElasticBlockStore(builder.build()); @@ -2098,18 +1989,16 @@ public N endAwsElasticBlockStore() { class AzureDiskNestedImpl extends V1AzureDiskVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureDiskNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.AzureDiskNested, Nested { AzureDiskNestedImpl(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } AzureDiskNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder(this); + this.builder = new V1AzureDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder builder; + V1AzureDiskVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withAzureDisk(builder.build()); @@ -2123,19 +2012,16 @@ public N endAzureDisk() { class AzureFileNestedImpl extends V1AzureFilePersistentVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.AzureFileNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.AzureFileNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.AzureFileNested, Nested { AzureFileNestedImpl(V1AzureFilePersistentVolumeSource item) { this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this, item); } AzureFileNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceBuilder(this); + this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1AzureFilePersistentVolumeSourceBuilder builder; + V1AzureFilePersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withAzureFile(builder.build()); @@ -2148,18 +2034,16 @@ public N endAzureFile() { class CephfsNestedImpl extends V1CephFSPersistentVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CephfsNested, - io.kubernetes.client.fluent.Nested { - CephfsNestedImpl(io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource item) { + implements V1PersistentVolumeSpecFluent.CephfsNested, Nested { + CephfsNestedImpl(V1CephFSPersistentVolumeSource item) { this.builder = new V1CephFSPersistentVolumeSourceBuilder(this, item); } CephfsNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceBuilder(this); + this.builder = new V1CephFSPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSourceBuilder builder; + V1CephFSPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withCephfs(builder.build()); @@ -2172,18 +2056,16 @@ public N endCephfs() { class CinderNestedImpl extends V1CinderPersistentVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CinderNested, - io.kubernetes.client.fluent.Nested { - CinderNestedImpl(io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource item) { + implements V1PersistentVolumeSpecFluent.CinderNested, Nested { + CinderNestedImpl(V1CinderPersistentVolumeSource item) { this.builder = new V1CinderPersistentVolumeSourceBuilder(this, item); } CinderNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceBuilder(this); + this.builder = new V1CinderPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSourceBuilder builder; + V1CinderPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withCinder(builder.build()); @@ -2196,17 +2078,16 @@ public N endCinder() { class ClaimRefNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ClaimRefNested, - io.kubernetes.client.fluent.Nested { - ClaimRefNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1PersistentVolumeSpecFluent.ClaimRefNested, Nested { + ClaimRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } ClaimRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withClaimRef(builder.build()); @@ -2219,18 +2100,16 @@ public N endClaimRef() { class CsiNestedImpl extends V1CSIPersistentVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.CsiNested, - io.kubernetes.client.fluent.Nested { - CsiNestedImpl(io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSource item) { + implements V1PersistentVolumeSpecFluent.CsiNested, Nested { + CsiNestedImpl(V1CSIPersistentVolumeSource item) { this.builder = new V1CSIPersistentVolumeSourceBuilder(this, item); } CsiNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceBuilder(this); + this.builder = new V1CSIPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1CSIPersistentVolumeSourceBuilder builder; + V1CSIPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withCsi(builder.build()); @@ -2242,17 +2121,16 @@ public N endCsi() { } class FcNestedImpl extends V1FCVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FcNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.FcNested, Nested { FcNestedImpl(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } FcNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1FCVolumeSourceBuilder(this); + this.builder = new V1FCVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1FCVolumeSourceBuilder builder; + V1FCVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withFc(builder.build()); @@ -2266,19 +2144,16 @@ public N endFc() { class FlexVolumeNestedImpl extends V1FlexPersistentVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.FlexVolumeNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlexVolumeNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.FlexVolumeNested, Nested { FlexVolumeNestedImpl(V1FlexPersistentVolumeSource item) { this.builder = new V1FlexPersistentVolumeSourceBuilder(this, item); } FlexVolumeNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceBuilder(this); + this.builder = new V1FlexPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSourceBuilder builder; + V1FlexPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withFlexVolume(builder.build()); @@ -2291,17 +2166,16 @@ public N endFlexVolume() { class FlockerNestedImpl extends V1FlockerVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.FlockerNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.FlockerNested, Nested { FlockerNestedImpl(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } FlockerNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder(this); + this.builder = new V1FlockerVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder builder; + V1FlockerVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withFlocker(builder.build()); @@ -2315,21 +2189,16 @@ public N endFlocker() { class GcePersistentDiskNestedImpl extends V1GCEPersistentDiskVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.GcePersistentDiskNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .GcePersistentDiskNested< - N>, - io.kubernetes.client.fluent.Nested { - GcePersistentDiskNestedImpl( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item) { + implements V1PersistentVolumeSpecFluent.GcePersistentDiskNested, Nested { + GcePersistentDiskNestedImpl(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } GcePersistentDiskNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder(this); + this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder builder; + V1GCEPersistentDiskVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withGcePersistentDisk(builder.build()); @@ -2343,20 +2212,16 @@ public N endGcePersistentDisk() { class GlusterfsNestedImpl extends V1GlusterfsPersistentVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.GlusterfsNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.GlusterfsNested< - N>, - io.kubernetes.client.fluent.Nested { - GlusterfsNestedImpl( - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource item) { + implements V1PersistentVolumeSpecFluent.GlusterfsNested, Nested { + GlusterfsNestedImpl(V1GlusterfsPersistentVolumeSource item) { this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this, item); } GlusterfsNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceBuilder(this); + this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSourceBuilder builder; + V1GlusterfsPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withGlusterfs(builder.build()); @@ -2369,17 +2234,16 @@ public N endGlusterfs() { class HostPathNestedImpl extends V1HostPathVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.HostPathNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.HostPathNested, Nested { HostPathNestedImpl(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } HostPathNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder(this); + this.builder = new V1HostPathVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder builder; + V1HostPathVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withHostPath(builder.build()); @@ -2392,18 +2256,16 @@ public N endHostPath() { class IscsiNestedImpl extends V1ISCSIPersistentVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.IscsiNested, - io.kubernetes.client.fluent.Nested { - IscsiNestedImpl(io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource item) { + implements V1PersistentVolumeSpecFluent.IscsiNested, Nested { + IscsiNestedImpl(V1ISCSIPersistentVolumeSource item) { this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this, item); } IscsiNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceBuilder(this); + this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSourceBuilder builder; + V1ISCSIPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withIscsi(builder.build()); @@ -2416,17 +2278,16 @@ public N endIscsi() { class LocalNestedImpl extends V1LocalVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.LocalNested, - io.kubernetes.client.fluent.Nested { - LocalNestedImpl(io.kubernetes.client.openapi.models.V1LocalVolumeSource item) { + implements V1PersistentVolumeSpecFluent.LocalNested, Nested { + LocalNestedImpl(V1LocalVolumeSource item) { this.builder = new V1LocalVolumeSourceBuilder(this, item); } LocalNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalVolumeSourceBuilder(this); + this.builder = new V1LocalVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalVolumeSourceBuilder builder; + V1LocalVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withLocal(builder.build()); @@ -2439,17 +2300,16 @@ public N endLocal() { class NfsNestedImpl extends V1NFSVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.NfsNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.NfsNested, Nested { NfsNestedImpl(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } NfsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder(this); + this.builder = new V1NFSVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder builder; + V1NFSVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withNfs(builder.build()); @@ -2462,19 +2322,16 @@ public N endNfs() { class NodeAffinityNestedImpl extends V1VolumeNodeAffinityFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .NodeAffinityNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.NodeAffinityNested, Nested { NodeAffinityNestedImpl(V1VolumeNodeAffinity item) { this.builder = new V1VolumeNodeAffinityBuilder(this, item); } NodeAffinityNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeNodeAffinityBuilder(this); + this.builder = new V1VolumeNodeAffinityBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeNodeAffinityBuilder builder; + V1VolumeNodeAffinityBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withNodeAffinity(builder.build()); @@ -2488,21 +2345,16 @@ public N endNodeAffinity() { class PhotonPersistentDiskNestedImpl extends V1PhotonPersistentDiskVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PhotonPersistentDiskNested< - N>, - io.kubernetes.client.fluent.Nested { - PhotonPersistentDiskNestedImpl( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item) { + implements V1PersistentVolumeSpecFluent.PhotonPersistentDiskNested, Nested { + PhotonPersistentDiskNestedImpl(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } PhotonPersistentDiskNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder(this); + this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder builder; + V1PhotonPersistentDiskVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withPhotonPersistentDisk(builder.build()); @@ -2515,19 +2367,16 @@ public N endPhotonPersistentDisk() { class PortworxVolumeNestedImpl extends V1PortworxVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .PortworxVolumeNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.PortworxVolumeNested, Nested { PortworxVolumeNestedImpl(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } PortworxVolumeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder(this); + this.builder = new V1PortworxVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder builder; + V1PortworxVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withPortworxVolume(builder.build()); @@ -2540,17 +2389,16 @@ public N endPortworxVolume() { class QuobyteNestedImpl extends V1QuobyteVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.QuobyteNested, - io.kubernetes.client.fluent.Nested { - QuobyteNestedImpl(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item) { + implements V1PersistentVolumeSpecFluent.QuobyteNested, Nested { + QuobyteNestedImpl(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } QuobyteNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder(this); + this.builder = new V1QuobyteVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder builder; + V1QuobyteVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withQuobyte(builder.build()); @@ -2563,18 +2411,16 @@ public N endQuobyte() { class RbdNestedImpl extends V1RBDPersistentVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.RbdNested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.RbdNested, Nested { RbdNestedImpl(V1RBDPersistentVolumeSource item) { this.builder = new V1RBDPersistentVolumeSourceBuilder(this, item); } RbdNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceBuilder(this); + this.builder = new V1RBDPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceBuilder builder; + V1RBDPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withRbd(builder.build()); @@ -2588,18 +2434,16 @@ public N endRbd() { class ScaleIONestedImpl extends V1ScaleIOPersistentVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.ScaleIONested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.ScaleIONested, - io.kubernetes.client.fluent.Nested { + implements V1PersistentVolumeSpecFluent.ScaleIONested, Nested { ScaleIONestedImpl(V1ScaleIOPersistentVolumeSource item) { this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this, item); } ScaleIONestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceBuilder(this); + this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceBuilder builder; + V1ScaleIOPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withScaleIO(builder.build()); @@ -2613,20 +2457,16 @@ public N endScaleIO() { class StorageosNestedImpl extends V1StorageOSPersistentVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.StorageosNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent.StorageosNested< - N>, - io.kubernetes.client.fluent.Nested { - StorageosNestedImpl( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource item) { + implements V1PersistentVolumeSpecFluent.StorageosNested, Nested { + StorageosNestedImpl(V1StorageOSPersistentVolumeSource item) { this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this, item); } StorageosNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceBuilder(this); + this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceBuilder builder; + V1StorageOSPersistentVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withStorageos(builder.build()); @@ -2640,21 +2480,16 @@ public N endStorageos() { class VsphereVolumeNestedImpl extends V1VsphereVirtualDiskVolumeSourceFluentImpl< V1PersistentVolumeSpecFluent.VsphereVolumeNested> - implements io.kubernetes.client.openapi.models.V1PersistentVolumeSpecFluent - .VsphereVolumeNested< - N>, - io.kubernetes.client.fluent.Nested { - VsphereVolumeNestedImpl( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item) { + implements V1PersistentVolumeSpecFluent.VsphereVolumeNested, Nested { + VsphereVolumeNestedImpl(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } VsphereVolumeNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder(this); + this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder builder; + V1VsphereVirtualDiskVolumeSourceBuilder builder; public N and() { return (N) V1PersistentVolumeSpecFluentImpl.this.withVsphereVolume(builder.build()); 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 605e142137..e332cb3a56 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 @@ -16,9 +16,7 @@ public class V1PersistentVolumeStatusBuilder extends V1PersistentVolumeStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PersistentVolumeStatus, - io.kubernetes.client.openapi.models.V1PersistentVolumeStatusBuilder> { + implements VisitableBuilder { public V1PersistentVolumeStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent) } public V1PersistentVolumeStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1PersistentVolumeStatus(), validationEnabled); } public V1PersistentVolumeStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeStatus instance) { + V1PersistentVolumeStatusFluent fluent, V1PersistentVolumeStatus instance) { this(fluent, instance, false); } public V1PersistentVolumeStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PersistentVolumeStatus instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeStatusFluent fluent, + V1PersistentVolumeStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMessage(instance.getMessage()); @@ -57,14 +53,12 @@ public V1PersistentVolumeStatusBuilder( this.validationEnabled = validationEnabled; } - public V1PersistentVolumeStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeStatus instance) { + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatus instance) { this(instance, false); } public V1PersistentVolumeStatusBuilder( - io.kubernetes.client.openapi.models.V1PersistentVolumeStatus instance, - java.lang.Boolean validationEnabled) { + V1PersistentVolumeStatus instance, Boolean validationEnabled) { this.fluent = this; this.withMessage(instance.getMessage()); @@ -75,10 +69,10 @@ public V1PersistentVolumeStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PersistentVolumeStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1PersistentVolumeStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PersistentVolumeStatus build() { + public V1PersistentVolumeStatus build() { V1PersistentVolumeStatus buildable = new V1PersistentVolumeStatus(); buildable.setMessage(fluent.getMessage()); buildable.setPhase(fluent.getPhase()); 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 f5108f1030..bf04512a5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java @@ -19,19 +19,19 @@ public interface V1PersistentVolumeStatusFluent { public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); public Boolean hasMessage(); - public java.lang.String getPhase(); + public String getPhase(); - public A withPhase(java.lang.String phase); + public A withPhase(String phase); - public java.lang.Boolean hasPhase(); + public Boolean hasPhase(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java index 1038ba8925..1884b3fb68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluentImpl.java @@ -20,8 +20,7 @@ public class V1PersistentVolumeStatusFluentImpl implements V1PersistentVolumeStatusFluent { public V1PersistentVolumeStatusFluentImpl() {} - public V1PersistentVolumeStatusFluentImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeStatus instance) { + public V1PersistentVolumeStatusFluentImpl(V1PersistentVolumeStatus instance) { this.withMessage(instance.getMessage()); this.withPhase(instance.getPhase()); @@ -30,14 +29,14 @@ public V1PersistentVolumeStatusFluentImpl( } private String message; - private java.lang.String phase; - private java.lang.String reason; + private String phase; + private String reason; - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasMessage() { return this.message != null; } - public java.lang.String getPhase() { + public String getPhase() { return this.phase; } - public A withPhase(java.lang.String phase) { + public A withPhase(String phase) { this.phase = phase; return (A) this; } - public java.lang.Boolean hasPhase() { + public Boolean hasPhase() { return this.phase != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } @@ -86,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(message, phase, reason, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (message != null) { 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 f3517f729c..ba560f6591 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 @@ -17,8 +17,7 @@ public class V1PhotonPersistentDiskVolumeSourceBuilder extends V1PhotonPersistentDiskVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource, - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder> { + V1PhotonPersistentDiskVolumeSource, V1PhotonPersistentDiskVolumeSourceBuilder> { public V1PhotonPersistentDiskVolumeSourceBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1PhotonPersistentDiskVolumeSourceBuilder( } public V1PhotonPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1PhotonPersistentDiskVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1PhotonPersistentDiskVolumeSource(), validationEnabled); } public V1PhotonPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource instance) { + V1PhotonPersistentDiskVolumeSourceFluent fluent, + V1PhotonPersistentDiskVolumeSource instance) { this(fluent, instance, false); } public V1PhotonPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1PhotonPersistentDiskVolumeSourceFluent fluent, + V1PhotonPersistentDiskVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -56,14 +54,12 @@ public V1PhotonPersistentDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1PhotonPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource instance) { + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSource instance) { this(instance, false); } public V1PhotonPersistentDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1PhotonPersistentDiskVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -72,10 +68,10 @@ public V1PhotonPersistentDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1PhotonPersistentDiskVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource build() { + public V1PhotonPersistentDiskVolumeSource build() { V1PhotonPersistentDiskVolumeSource buildable = new V1PhotonPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setPdID(fluent.getPdID()); 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 89163680ad..b79d802ad2 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 @@ -20,13 +20,13 @@ public interface V1PhotonPersistentDiskVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getPdID(); + public String getPdID(); - public A withPdID(java.lang.String pdID); + public A withPdID(String pdID); - public java.lang.Boolean hasPdID(); + public Boolean hasPdID(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java index 3c179920c5..24a12ff864 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluentImpl.java @@ -21,21 +21,20 @@ public class V1PhotonPersistentDiskVolumeSourceFluentImpl< extends BaseFluent implements V1PhotonPersistentDiskVolumeSourceFluent { public V1PhotonPersistentDiskVolumeSourceFluentImpl() {} - public V1PhotonPersistentDiskVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource instance) { + public V1PhotonPersistentDiskVolumeSourceFluentImpl(V1PhotonPersistentDiskVolumeSource instance) { this.withFsType(instance.getFsType()); this.withPdID(instance.getPdID()); } private String fsType; - private java.lang.String pdID; + private String pdID; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } @@ -44,16 +43,16 @@ public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getPdID() { + public String getPdID() { return this.pdID; } - public A withPdID(java.lang.String pdID) { + public A withPdID(String pdID) { this.pdID = pdID; return (A) this; } - public java.lang.Boolean hasPdID() { + public Boolean hasPdID() { return this.pdID != null; } @@ -71,7 +70,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, pdID, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 1e0ba06122..5eb69052c9 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodAffinityBuilder extends V1PodAffinityFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodAffinity, - io.kubernetes.client.openapi.models.V1PodAffinityBuilder> { + implements VisitableBuilder { public V1PodAffinityBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PodAffinityBuilder(V1PodAffinityFluent fluent) { this(fluent, false); } - public V1PodAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodAffinityBuilder(V1PodAffinityFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodAffinity(), validationEnabled); } - public V1PodAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1PodAffinity instance) { + public V1PodAffinityBuilder(V1PodAffinityFluent fluent, V1PodAffinity instance) { this(fluent, instance, false); } public V1PodAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1PodAffinity instance, - java.lang.Boolean validationEnabled) { + V1PodAffinityFluent fluent, V1PodAffinity instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -56,13 +48,11 @@ public V1PodAffinityBuilder( this.validationEnabled = validationEnabled; } - public V1PodAffinityBuilder(io.kubernetes.client.openapi.models.V1PodAffinity instance) { + public V1PodAffinityBuilder(V1PodAffinity instance) { this(instance, false); } - public V1PodAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAffinity instance, - java.lang.Boolean validationEnabled) { + public V1PodAffinityBuilder(V1PodAffinity instance, Boolean validationEnabled) { this.fluent = this; this.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -73,10 +63,10 @@ public V1PodAffinityBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodAffinityFluent fluent; - java.lang.Boolean validationEnabled; + V1PodAffinityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodAffinity build() { + public V1PodAffinity build() { V1PodAffinity buildable = new V1PodAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution( fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); 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 7529275451..ed5c670c9c 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 @@ -24,19 +24,19 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( Integer index, V1WeightedPodAffinityTerm item); public A setToPreferredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item); + Integer index, V1WeightedPodAffinityTerm item); public A addToPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); + Collection items); public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( Predicate predicate); @@ -48,101 +48,75 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( * @return The buildable object. */ @Deprecated - public List - getPreferredDuringSchedulingIgnoredDuringExecution(); + public List getPreferredDuringSchedulingIgnoredDuringExecution(); - public java.util.List - buildPreferredDuringSchedulingIgnoredDuringExecution(); + public List buildPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( + Integer index); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); + public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildLastPreferredDuringSchedulingIgnoredDuringExecution(); + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate); + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate); + Predicate predicate); public A withPreferredDuringSchedulingIgnoredDuringExecution( - java.util.List - preferredDuringSchedulingIgnoredDuringExecution); + List preferredDuringSchedulingIgnoredDuringExecution); public A withPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution); - public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); + public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item); + Integer index, V1WeightedPodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - editPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate); + Predicate predicate); public A addToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, V1PodAffinityTerm item); + Integer index, V1PodAffinityTerm item); public A setToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + Integer index, V1PodAffinityTerm item); public A addToRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate predicate); + Predicate predicate); /** * This method has been deprecated, please use method @@ -150,77 +124,54 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getRequiredDuringSchedulingIgnoredDuringExecution(); + @Deprecated + public List getRequiredDuringSchedulingIgnoredDuringExecution(); - public java.util.List - buildRequiredDuringSchedulingIgnoredDuringExecution(); + public List buildRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildFirstRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildLastRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate); + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); - public java.lang.Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); public A withRequiredDuringSchedulingIgnoredDuringExecution( - java.util.List - requiredDuringSchedulingIgnoredDuringExecution); + List requiredDuringSchedulingIgnoredDuringExecution); public A withRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... requiredDuringSchedulingIgnoredDuringExecution); - public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); + public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + Integer index, V1PodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - editRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + editRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate); + Predicate predicate); public interface PreferredDuringSchedulingIgnoredDuringExecutionNested extends Nested, @@ -232,7 +183,7 @@ public interface PreferredDuringSchedulingIgnoredDuringExecutionNested } public interface RequiredDuringSchedulingIgnoredDuringExecutionNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PodAffinityTermFluent< V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java index 0ab4abf7a3..1bae026712 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluentImpl.java @@ -26,7 +26,7 @@ public class V1PodAffinityFluentImpl> extends B implements V1PodAffinityFluent { public V1PodAffinityFluentImpl() {} - public V1PodAffinityFluentImpl(io.kubernetes.client.openapi.models.V1PodAffinity instance) { + public V1PodAffinityFluentImpl(V1PodAffinity instance) { this.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -36,18 +36,15 @@ public V1PodAffinityFluentImpl(io.kubernetes.client.openapi.models.V1PodAffinity private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private java.util.ArrayList - requiredDuringSchedulingIgnoredDuringExecution; + private ArrayList requiredDuringSchedulingIgnoredDuringExecution; public A addToPreferredDuringSchedulingIgnoredDuringExecution( Integer index, V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables .get("preferredDuringSchedulingIgnoredDuringExecution") .add( @@ -61,14 +58,12 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( } public A setToPreferredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item) { + Integer index, V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -87,12 +82,10 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -100,15 +93,13 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( } public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { + Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -117,9 +108,8 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -129,10 +119,9 @@ public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( } public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + Collection items) { + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -142,13 +131,13 @@ public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( } public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + Predicate predicate) { if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = + final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = each.next(); + V1WeightedPodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -164,44 +153,36 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( * @return The buildable object. */ @Deprecated - public List - getPreferredDuringSchedulingIgnoredDuringExecution() { + public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public java.util.List - buildPreferredDuringSchedulingIgnoredDuringExecution() { + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( + Integer index) { return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { + public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildLastPreferredDuringSchedulingIgnoredDuringExecution() { + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution .get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1) .build(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder item : - preferredDuringSchedulingIgnoredDuringExecution) { + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return item.build(); } @@ -210,11 +191,8 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( } public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder item : - preferredDuringSchedulingIgnoredDuringExecution) { + Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return true; } @@ -223,17 +201,15 @@ public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( } public A withPreferredDuringSchedulingIgnoredDuringExecution( - java.util.List - preferredDuringSchedulingIgnoredDuringExecution) { + List preferredDuringSchedulingIgnoredDuringExecution) { if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { _visitables .get("preferredDuringSchedulingIgnoredDuringExecution") .removeAll(this.preferredDuringSchedulingIgnoredDuringExecution); } if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : - preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } } else { @@ -249,15 +225,14 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution( this.preferredDuringSchedulingIgnoredDuringExecution.clear(); } if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : - preferredDuringSchedulingIgnoredDuringExecution) { + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } } return (A) this; } - public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); } @@ -267,29 +242,21 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item) { + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( -1, item); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item) { - return new io.kubernetes.client.openapi.models.V1PodAffinityFluentImpl - .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); + Integer index, V1WeightedPodAffinityTerm item) { + return new V1PodAffinityFluentImpl.PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( + index, item); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - editPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException( "Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); @@ -297,9 +264,7 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException( @@ -308,9 +273,7 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { 0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) @@ -320,13 +283,9 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution.size(); i++) { if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { @@ -342,13 +301,12 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { } public A addToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, V1PodAffinityTerm item) { + Integer index, V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables .get("requiredDuringSchedulingIgnoredDuringExecution") .add( @@ -362,13 +320,12 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution( } public A setToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + Integer index, V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -387,11 +344,10 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -399,14 +355,13 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution( } public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { + Collection items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -415,9 +370,8 @@ public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -427,10 +381,9 @@ public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( } public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + Collection items) { + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -440,14 +393,13 @@ public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( } public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { + Predicate predicate) { if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = + final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = each.next(); + V1PodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -462,44 +414,36 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getRequiredDuringSchedulingIgnoredDuringExecution() { + @Deprecated + public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public java.util.List - buildRequiredDuringSchedulingIgnoredDuringExecution() { + public List buildRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildLastRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution .get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1) .build(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder item : - requiredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return item.build(); } @@ -507,11 +451,9 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( return null; } - public java.lang.Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder item : - requiredDuringSchedulingIgnoredDuringExecution) { + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return true; } @@ -520,17 +462,15 @@ public java.lang.Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecuti } public A withRequiredDuringSchedulingIgnoredDuringExecution( - java.util.List - requiredDuringSchedulingIgnoredDuringExecution) { + List requiredDuringSchedulingIgnoredDuringExecution) { if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { _visitables .get("requiredDuringSchedulingIgnoredDuringExecution") .removeAll(this.requiredDuringSchedulingIgnoredDuringExecution); } if (requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : - requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); } } else { @@ -546,15 +486,14 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution( this.requiredDuringSchedulingIgnoredDuringExecution.clear(); } if (requiredDuringSchedulingIgnoredDuringExecution != null) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : - requiredDuringSchedulingIgnoredDuringExecution) { + for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); } } return (A) this; } - public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution != null && !requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); } @@ -564,28 +503,21 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { - return new io.kubernetes.client.openapi.models.V1PodAffinityFluentImpl - .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( + -1, item); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { - return new io.kubernetes.client.openapi.models.V1PodAffinityFluentImpl - .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); + Integer index, V1PodAffinityTerm item) { + return new V1PodAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( + index, item); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - editRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + editRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException( "Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); @@ -593,9 +525,7 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException( @@ -604,9 +534,7 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { 0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) @@ -616,12 +544,9 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < requiredDuringSchedulingIgnoredDuringExecution.size(); i++) { if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { @@ -678,23 +603,21 @@ public String toString() { class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1WeightedPodAffinityTermFluentImpl< V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> - implements io.kubernetes.client.openapi.models.V1PodAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - N>, + implements V1PodAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested, Nested { PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - java.lang.Integer index, V1WeightedPodAffinityTerm item) { + Integer index, V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(this); + this.builder = new V1WeightedPodAffinityTermBuilder(this); } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder; - java.lang.Integer index; + V1WeightedPodAffinityTermBuilder builder; + Integer index; public N and() { return (N) @@ -710,23 +633,21 @@ public N endPreferredDuringSchedulingIgnoredDuringExecution() { class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1PodAffinityTermFluentImpl< V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> - implements io.kubernetes.client.openapi.models.V1PodAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PodAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested, + Nested { RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + Integer index, V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(this); + this.builder = new V1PodAffinityTermBuilder(this); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder; - java.lang.Integer index; + V1PodAffinityTermBuilder builder; + Integer index; public N and() { return (N) 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 553c6914e0..5eb2f04aed 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluentImpl - implements VisitableBuilder< - V1PodAffinityTerm, io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder> { + implements VisitableBuilder { public V1PodAffinityTermBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1PodAffinityTermBuilder(Boolean validationEnabled) { this(new V1PodAffinityTerm(), validationEnabled); } - public V1PodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityTermFluent fluent) { + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent) { this(fluent, false); } - public V1PodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityTermFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodAffinityTerm(), validationEnabled); } - public V1PodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityTermFluent fluent, - io.kubernetes.client.openapi.models.V1PodAffinityTerm instance) { + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent, V1PodAffinityTerm instance) { this(fluent, instance, false); } public V1PodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityTermFluent fluent, - io.kubernetes.client.openapi.models.V1PodAffinityTerm instance, - java.lang.Boolean validationEnabled) { + V1PodAffinityTermFluent fluent, V1PodAffinityTerm instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLabelSelector(instance.getLabelSelector()); @@ -58,13 +50,11 @@ public V1PodAffinityTermBuilder( this.validationEnabled = validationEnabled; } - public V1PodAffinityTermBuilder(io.kubernetes.client.openapi.models.V1PodAffinityTerm instance) { + public V1PodAffinityTermBuilder(V1PodAffinityTerm instance) { this(instance, false); } - public V1PodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1PodAffinityTerm instance, - java.lang.Boolean validationEnabled) { + public V1PodAffinityTermBuilder(V1PodAffinityTerm instance, Boolean validationEnabled) { this.fluent = this; this.withLabelSelector(instance.getLabelSelector()); @@ -77,10 +67,10 @@ public V1PodAffinityTermBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodAffinityTermFluent fluent; - java.lang.Boolean validationEnabled; + V1PodAffinityTermFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodAffinityTerm build() { + public V1PodAffinityTerm build() { V1PodAffinityTerm buildable = new V1PodAffinityTerm(); buildable.setLabelSelector(fluent.getLabelSelector()); buildable.setNamespaceSelector(fluent.getNamespaceSelector()); 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 6c7244fd49..1055bb1915 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 @@ -29,91 +29,85 @@ public interface V1PodAffinityTermFluent> e @Deprecated public V1LabelSelector getLabelSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildLabelSelector(); + public V1LabelSelector buildLabelSelector(); - public A withLabelSelector(io.kubernetes.client.openapi.models.V1LabelSelector labelSelector); + public A withLabelSelector(V1LabelSelector labelSelector); public Boolean hasLabelSelector(); public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelector(); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - withNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - editLabelSelector(); + public V1PodAffinityTermFluent.LabelSelectorNested editLabelSelector(); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - editOrNewLabelSelector(); + public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelector(); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - editOrNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelectorLike( + V1LabelSelector item); /** * This method has been deprecated, please use method buildNamespaceSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNamespaceSelector(); + @Deprecated + public V1LabelSelector getNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector(); + public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector); + public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public java.lang.Boolean hasNamespaceSelector(); + public Boolean hasNamespaceSelector(); public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - editNamespaceSelector(); + public V1PodAffinityTermFluent.NamespaceSelectorNested editNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - editOrNewNamespaceSelector(); + public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item); public A addToNamespaces(Integer index, String item); - public A setToNamespaces(java.lang.Integer index, java.lang.String item); + public A setToNamespaces(Integer index, String item); public A addToNamespaces(java.lang.String... items); - public A addAllToNamespaces(Collection items); + public A addAllToNamespaces(Collection items); public A removeFromNamespaces(java.lang.String... items); - public A removeAllFromNamespaces(java.util.Collection items); + public A removeAllFromNamespaces(Collection items); - public List getNamespaces(); + public List getNamespaces(); - public java.lang.String getNamespace(java.lang.Integer index); + public String getNamespace(Integer index); - public java.lang.String getFirstNamespace(); + public String getFirstNamespace(); - public java.lang.String getLastNamespace(); + public String getLastNamespace(); - public java.lang.String getMatchingNamespace(Predicate predicate); + public String getMatchingNamespace(Predicate predicate); - public java.lang.Boolean hasMatchingNamespace( - java.util.function.Predicate predicate); + public Boolean hasMatchingNamespace(Predicate predicate); - public A withNamespaces(java.util.List namespaces); + public A withNamespaces(List namespaces); public A withNamespaces(java.lang.String... namespaces); - public java.lang.Boolean hasNamespaces(); + public Boolean hasNamespaces(); - public java.lang.String getTopologyKey(); + public String getTopologyKey(); - public A withTopologyKey(java.lang.String topologyKey); + public A withTopologyKey(String topologyKey); - public java.lang.Boolean hasTopologyKey(); + public Boolean hasTopologyKey(); public interface LabelSelectorNested extends Nested, V1LabelSelectorFluent> { @@ -123,8 +117,7 @@ public interface LabelSelectorNested } public interface NamespaceSelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endNamespaceSelector(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java index c47bfa8be7..d4f0fc3076 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluentImpl.java @@ -25,8 +25,7 @@ public class V1PodAffinityTermFluentImpl> e implements V1PodAffinityTermFluent { public V1PodAffinityTermFluentImpl() {} - public V1PodAffinityTermFluentImpl( - io.kubernetes.client.openapi.models.V1PodAffinityTerm instance) { + public V1PodAffinityTermFluentImpl(V1PodAffinityTerm instance) { this.withLabelSelector(instance.getLabelSelector()); this.withNamespaceSelector(instance.getNamespaceSelector()); @@ -39,7 +38,7 @@ public V1PodAffinityTermFluentImpl( private V1LabelSelectorBuilder labelSelector; private V1LabelSelectorBuilder namespaceSelector; private List namespaces; - private java.lang.String topologyKey; + private String topologyKey; /** * This method has been deprecated, please use method buildLabelSelector instead. @@ -47,20 +46,22 @@ public V1PodAffinityTermFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getLabelSelector() { + public V1LabelSelector getLabelSelector() { return this.labelSelector != null ? this.labelSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildLabelSelector() { + public V1LabelSelector buildLabelSelector() { return this.labelSelector != null ? this.labelSelector.build() : null; } - public A withLabelSelector(io.kubernetes.client.openapi.models.V1LabelSelector labelSelector) { + public A withLabelSelector(V1LabelSelector labelSelector) { _visitables.get("labelSelector").remove(this.labelSelector); if (labelSelector != null) { - this.labelSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(labelSelector); + this.labelSelector = new V1LabelSelectorBuilder(labelSelector); _visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + _visitables.get("labelSelector").remove(this.labelSelector); } return (A) this; } @@ -73,26 +74,22 @@ public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelector() { return new V1PodAffinityTermFluentImpl.LabelSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - withNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelectorLike( + V1LabelSelector item) { return new V1PodAffinityTermFluentImpl.LabelSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - editLabelSelector() { + public V1PodAffinityTermFluent.LabelSelectorNested editLabelSelector() { return withNewLabelSelectorLike(getLabelSelector()); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - editOrNewLabelSelector() { + public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelector() { return withNewLabelSelectorLike( - getLabelSelector() != null - ? getLabelSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getLabelSelector() != null ? getLabelSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested - editOrNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1PodAffinityTermFluent.LabelSelectorNested editOrNewLabelSelectorLike( + V1LabelSelector item) { return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector() : item); } @@ -101,27 +98,28 @@ public V1PodAffinityTermFluent.LabelSelectorNested withNewLabelSelector() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNamespaceSelector() { + @Deprecated + public V1LabelSelector getNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector() { + public V1LabelSelector buildNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector) { + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); if (namespaceSelector != null) { - this.namespaceSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(namespaceSelector); + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public java.lang.Boolean hasNamespaceSelector() { + public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } @@ -129,42 +127,39 @@ public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelect return new V1PodAffinityTermFluentImpl.NamespaceSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1PodAffinityTermFluentImpl - .NamespaceSelectorNestedImpl(item); + public V1PodAffinityTermFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item) { + return new V1PodAffinityTermFluentImpl.NamespaceSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - editNamespaceSelector() { + public V1PodAffinityTermFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - editOrNewNamespaceSelector() { + public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1PodAffinityTermFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item) { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() : item); } - public A addToNamespaces(Integer index, java.lang.String item) { + public A addToNamespaces(Integer index, String item) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList(); } this.namespaces.add(index, item); return (A) this; } - public A setToNamespaces(java.lang.Integer index, java.lang.String item) { + public A setToNamespaces(Integer index, String item) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } this.namespaces.set(index, item); return (A) this; @@ -172,26 +167,26 @@ public A setToNamespaces(java.lang.Integer index, java.lang.String item) { public A addToNamespaces(java.lang.String... items) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.namespaces.add(item); } return (A) this; } - public A addAllToNamespaces(Collection items) { + public A addAllToNamespaces(Collection items) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.namespaces.add(item); } return (A) this; } public A removeFromNamespaces(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.namespaces != null) { this.namespaces.remove(item); } @@ -199,8 +194,8 @@ public A removeFromNamespaces(java.lang.String... items) { return (A) this; } - public A removeAllFromNamespaces(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNamespaces(Collection items) { + for (String item : items) { if (this.namespaces != null) { this.namespaces.remove(item); } @@ -208,24 +203,24 @@ public A removeAllFromNamespaces(java.util.Collection items) { return (A) this; } - public java.util.List getNamespaces() { + public List getNamespaces() { return this.namespaces; } - public java.lang.String getNamespace(java.lang.Integer index) { + public String getNamespace(Integer index) { return this.namespaces.get(index); } - public java.lang.String getFirstNamespace() { + public String getFirstNamespace() { return this.namespaces.get(0); } - public java.lang.String getLastNamespace() { + public String getLastNamespace() { return this.namespaces.get(namespaces.size() - 1); } - public java.lang.String getMatchingNamespace(Predicate predicate) { - for (java.lang.String item : namespaces) { + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { return item; } @@ -233,9 +228,8 @@ public java.lang.String getMatchingNamespace(Predicate predica return null; } - public java.lang.Boolean hasMatchingNamespace( - java.util.function.Predicate predicate) { - for (java.lang.String item : namespaces) { + public Boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { return true; } @@ -243,10 +237,10 @@ public java.lang.Boolean hasMatchingNamespace( return false; } - public A withNamespaces(java.util.List namespaces) { + public A withNamespaces(List namespaces) { if (namespaces != null) { - this.namespaces = new java.util.ArrayList(); - for (java.lang.String item : namespaces) { + this.namespaces = new ArrayList(); + for (String item : namespaces) { this.addToNamespaces(item); } } else { @@ -260,27 +254,27 @@ public A withNamespaces(java.lang.String... namespaces) { this.namespaces.clear(); } if (namespaces != null) { - for (java.lang.String item : namespaces) { + for (String item : namespaces) { this.addToNamespaces(item); } } return (A) this; } - public java.lang.Boolean hasNamespaces() { + public Boolean hasNamespaces() { return namespaces != null && !namespaces.isEmpty(); } - public java.lang.String getTopologyKey() { + public String getTopologyKey() { return this.topologyKey; } - public A withTopologyKey(java.lang.String topologyKey) { + public A withTopologyKey(String topologyKey) { this.topologyKey = topologyKey; return (A) this; } - public java.lang.Boolean hasTopologyKey() { + public Boolean hasTopologyKey() { return this.topologyKey != null; } @@ -306,7 +300,7 @@ public int hashCode() { labelSelector, namespaceSelector, namespaces, topologyKey, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (labelSelector != null) { @@ -331,17 +325,16 @@ public java.lang.String toString() { class LabelSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodAffinityTermFluent.LabelSelectorNested, - Nested { + implements V1PodAffinityTermFluent.LabelSelectorNested, Nested { LabelSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } LabelSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1PodAffinityTermFluentImpl.this.withLabelSelector(builder.build()); @@ -354,19 +347,16 @@ public N endLabelSelector() { class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodAffinityTermFluent - .NamespaceSelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PodAffinityTermFluent.NamespaceSelectorNested, Nested { NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } NamespaceSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1PodAffinityTermFluentImpl.this.withNamespaceSelector(builder.build()); 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 1854a698a3..77f8adfb0b 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodAntiAffinity, V1PodAntiAffinityBuilder> { + implements VisitableBuilder { public V1PodAntiAffinityBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent) { this(fluent, false); } - public V1PodAntiAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodAntiAffinity(), validationEnabled); } - public V1PodAntiAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1PodAntiAffinity instance) { + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent, V1PodAntiAffinity instance) { this(fluent, instance, false); } public V1PodAntiAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1PodAntiAffinity instance, - java.lang.Boolean validationEnabled) { + V1PodAntiAffinityFluent fluent, V1PodAntiAffinity instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -55,13 +48,11 @@ public V1PodAntiAffinityBuilder( this.validationEnabled = validationEnabled; } - public V1PodAntiAffinityBuilder(io.kubernetes.client.openapi.models.V1PodAntiAffinity instance) { + public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance) { this(instance, false); } - public V1PodAntiAffinityBuilder( - io.kubernetes.client.openapi.models.V1PodAntiAffinity instance, - java.lang.Boolean validationEnabled) { + public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance, Boolean validationEnabled) { this.fluent = this; this.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -72,10 +63,10 @@ public V1PodAntiAffinityBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent fluent; - java.lang.Boolean validationEnabled; + V1PodAntiAffinityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodAntiAffinity build() { + public V1PodAntiAffinity build() { V1PodAntiAffinity buildable = new V1PodAntiAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution( fluent.getPreferredDuringSchedulingIgnoredDuringExecution()); 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 fe5d658ab4..0f5a45a0ee 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 @@ -24,19 +24,19 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( Integer index, V1WeightedPodAffinityTerm item); public A setToPreferredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item); + Integer index, V1WeightedPodAffinityTerm item); public A addToPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items); + Collection items); public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items); public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( Predicate predicate); @@ -48,101 +48,75 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( * @return The buildable object. */ @Deprecated - public List - getPreferredDuringSchedulingIgnoredDuringExecution(); + public List getPreferredDuringSchedulingIgnoredDuringExecution(); - public java.util.List - buildPreferredDuringSchedulingIgnoredDuringExecution(); + public List buildPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( + Integer index); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); + public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildLastPreferredDuringSchedulingIgnoredDuringExecution(); + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate); + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate); + Predicate predicate); public A withPreferredDuringSchedulingIgnoredDuringExecution( - java.util.List - preferredDuringSchedulingIgnoredDuringExecution); + List preferredDuringSchedulingIgnoredDuringExecution); public A withPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution); - public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); + public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution(); public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item); + Integer index, V1WeightedPodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - editPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + editPreferredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate); + Predicate predicate); public A addToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, V1PodAffinityTerm item); + Integer index, V1PodAffinityTerm item); public A setToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + Integer index, V1PodAffinityTerm item); public A addToRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items); public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items); + Collection items); public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate predicate); + Predicate predicate); /** * This method has been deprecated, please use method @@ -150,77 +124,54 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getRequiredDuringSchedulingIgnoredDuringExecution(); + @Deprecated + public List getRequiredDuringSchedulingIgnoredDuringExecution(); - public java.util.List - buildRequiredDuringSchedulingIgnoredDuringExecution(); + public List buildRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildFirstRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildLastRequiredDuringSchedulingIgnoredDuringExecution(); + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate); + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); - public java.lang.Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate); public A withRequiredDuringSchedulingIgnoredDuringExecution( - java.util.List - requiredDuringSchedulingIgnoredDuringExecution); + List requiredDuringSchedulingIgnoredDuringExecution); public A withRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... requiredDuringSchedulingIgnoredDuringExecution); - public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); + public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + Integer index, V1PodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - editRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + editRequiredDuringSchedulingIgnoredDuringExecution(Integer index); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution(); - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate); + Predicate predicate); public interface PreferredDuringSchedulingIgnoredDuringExecutionNested extends Nested, @@ -232,7 +183,7 @@ public interface PreferredDuringSchedulingIgnoredDuringExecutionNested } public interface RequiredDuringSchedulingIgnoredDuringExecutionNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PodAffinityTermFluent< V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java index 8b3097ff30..7587ebc4f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluentImpl.java @@ -26,8 +26,7 @@ public class V1PodAntiAffinityFluentImpl> e implements V1PodAntiAffinityFluent { public V1PodAntiAffinityFluentImpl() {} - public V1PodAntiAffinityFluentImpl( - io.kubernetes.client.openapi.models.V1PodAntiAffinity instance) { + public V1PodAntiAffinityFluentImpl(V1PodAntiAffinity instance) { this.withPreferredDuringSchedulingIgnoredDuringExecution( instance.getPreferredDuringSchedulingIgnoredDuringExecution()); @@ -37,18 +36,15 @@ public V1PodAntiAffinityFluentImpl( private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private java.util.ArrayList - requiredDuringSchedulingIgnoredDuringExecution; + private ArrayList requiredDuringSchedulingIgnoredDuringExecution; public A addToPreferredDuringSchedulingIgnoredDuringExecution( Integer index, V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables .get("preferredDuringSchedulingIgnoredDuringExecution") .add( @@ -62,14 +58,12 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( } public A setToPreferredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item) { + Integer index, V1WeightedPodAffinityTerm item) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); if (index < 0 || index >= _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -88,12 +82,10 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -101,15 +93,13 @@ public A addToPreferredDuringSchedulingIgnoredDuringExecution( } public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( - Collection items) { + Collection items) { if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { this.preferredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder>(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -118,9 +108,8 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution( public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -130,10 +119,9 @@ public A removeFromPreferredDuringSchedulingIgnoredDuringExecution( } public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(item); + Collection items) { + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -143,13 +131,13 @@ public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution( } public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( - Predicate predicate) { + Predicate predicate) { if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = + final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder = each.next(); + V1WeightedPodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -165,44 +153,36 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( * @return The buildable object. */ @Deprecated - public List - getPreferredDuringSchedulingIgnoredDuringExecution() { + public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public java.util.List - buildPreferredDuringSchedulingIgnoredDuringExecution() { + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution( + Integer index) { return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { + public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildLastPreferredDuringSchedulingIgnoredDuringExecution() { + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution .get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1) .build(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm - buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder item : - preferredDuringSchedulingIgnoredDuringExecution) { + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return item.build(); } @@ -211,11 +191,8 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution( } public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder item : - preferredDuringSchedulingIgnoredDuringExecution) { + Predicate predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return true; } @@ -224,17 +201,15 @@ public Boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution( } public A withPreferredDuringSchedulingIgnoredDuringExecution( - java.util.List - preferredDuringSchedulingIgnoredDuringExecution) { + List preferredDuringSchedulingIgnoredDuringExecution) { if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { _visitables .get("preferredDuringSchedulingIgnoredDuringExecution") .removeAll(this.preferredDuringSchedulingIgnoredDuringExecution); } if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : - preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } } else { @@ -250,15 +225,14 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution( this.preferredDuringSchedulingIgnoredDuringExecution.clear(); } if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item : - preferredDuringSchedulingIgnoredDuringExecution) { + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } } return (A) this; } - public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + public Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); } @@ -269,29 +243,21 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item) { + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { return new V1PodAntiAffinityFluentImpl .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm item) { - return new io.kubernetes.client.openapi.models.V1PodAntiAffinityFluentImpl + Integer index, V1WeightedPodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl .PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> - editPreferredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested + editPreferredDuringSchedulingIgnoredDuringExecution(Integer index) { if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException( "Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); @@ -299,9 +265,7 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException( @@ -310,9 +274,7 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { 0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) @@ -322,13 +284,9 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution.size(); i++) { if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { @@ -344,13 +302,12 @@ public java.lang.Boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { } public A addToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, V1PodAffinityTerm item) { + Integer index, V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables .get("requiredDuringSchedulingIgnoredDuringExecution") .add( @@ -364,13 +321,12 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution( } public A setToRequiredDuringSchedulingIgnoredDuringExecution( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + Integer index, V1PodAffinityTerm item) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); if (index < 0 || index >= _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").size()) { _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); @@ -389,11 +345,10 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -401,14 +356,13 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution( } public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { + Collection items) { if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { this.requiredDuringSchedulingIgnoredDuringExecution = - new java.util.ArrayList(); + new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } @@ -417,9 +371,8 @@ public A addAllToRequiredDuringSchedulingIgnoredDuringExecution( public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -429,10 +382,9 @@ public A removeFromRequiredDuringSchedulingIgnoredDuringExecution( } public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : items) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(item); + Collection items) { + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); @@ -442,14 +394,13 @@ public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution( } public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { + Predicate predicate) { if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = + final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder = each.next(); + V1PodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -464,44 +415,36 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getRequiredDuringSchedulingIgnoredDuringExecution() { + @Deprecated + public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public java.util.List - buildRequiredDuringSchedulingIgnoredDuringExecution() { + public List buildRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildLastRequiredDuringSchedulingIgnoredDuringExecution() { + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { return this.requiredDuringSchedulingIgnoredDuringExecution .get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1) .build(); } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm - buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder item : - requiredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return item.build(); } @@ -509,11 +452,9 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution( return null; } - public java.lang.Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder item : - requiredDuringSchedulingIgnoredDuringExecution) { + public Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution( + Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { return true; } @@ -522,17 +463,15 @@ public java.lang.Boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecuti } public A withRequiredDuringSchedulingIgnoredDuringExecution( - java.util.List - requiredDuringSchedulingIgnoredDuringExecution) { + List requiredDuringSchedulingIgnoredDuringExecution) { if (this.requiredDuringSchedulingIgnoredDuringExecution != null) { _visitables .get("requiredDuringSchedulingIgnoredDuringExecution") .removeAll(this.requiredDuringSchedulingIgnoredDuringExecution); } if (requiredDuringSchedulingIgnoredDuringExecution != null) { - this.requiredDuringSchedulingIgnoredDuringExecution = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : - requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); } } else { @@ -548,15 +487,14 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution( this.requiredDuringSchedulingIgnoredDuringExecution.clear(); } if (requiredDuringSchedulingIgnoredDuringExecution != null) { - for (io.kubernetes.client.openapi.models.V1PodAffinityTerm item : - requiredDuringSchedulingIgnoredDuringExecution) { + for (V1PodAffinityTerm item : requiredDuringSchedulingIgnoredDuringExecution) { this.addToRequiredDuringSchedulingIgnoredDuringExecution(item); } } return (A) this; } - public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + public Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution != null && !requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); } @@ -567,28 +505,21 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - addNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { - return new io.kubernetes.client.openapi.models.V1PodAntiAffinityFluentImpl - .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(-1, item); + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( + -1, item); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { - return new io.kubernetes.client.openapi.models.V1PodAntiAffinityFluentImpl - .RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl(index, item); + Integer index, V1PodAffinityTerm item) { + return new V1PodAntiAffinityFluentImpl.RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( + index, item); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> - editRequiredDuringSchedulingIgnoredDuringExecution(java.lang.Integer index) { + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested + editRequiredDuringSchedulingIgnoredDuringExecution(Integer index) { if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException( "Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); @@ -596,9 +527,7 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException( @@ -607,9 +536,7 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { 0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; if (index < 0) @@ -619,12 +546,9 @@ public java.lang.Boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - A> + public V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution( - java.util.function.Predicate - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < requiredDuringSchedulingIgnoredDuringExecution.size(); i++) { if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { @@ -681,23 +605,21 @@ public String toString() { class PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1WeightedPodAffinityTermFluentImpl< V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested> - implements io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .PreferredDuringSchedulingIgnoredDuringExecutionNested< - N>, + implements V1PodAntiAffinityFluent.PreferredDuringSchedulingIgnoredDuringExecutionNested, Nested { PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl( - java.lang.Integer index, V1WeightedPodAffinityTerm item) { + Integer index, V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } PreferredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder(this); + this.builder = new V1WeightedPodAffinityTermBuilder(this); } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder builder; - java.lang.Integer index; + V1WeightedPodAffinityTermBuilder builder; + Integer index; public N and() { return (N) @@ -713,23 +635,21 @@ public N endPreferredDuringSchedulingIgnoredDuringExecution() { class RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl extends V1PodAffinityTermFluentImpl< V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested> - implements io.kubernetes.client.openapi.models.V1PodAntiAffinityFluent - .RequiredDuringSchedulingIgnoredDuringExecutionNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PodAntiAffinityFluent.RequiredDuringSchedulingIgnoredDuringExecutionNested, + Nested { RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + Integer index, V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } RequiredDuringSchedulingIgnoredDuringExecutionNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(this); + this.builder = new V1PodAffinityTermBuilder(this); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder; - java.lang.Integer index; + V1PodAffinityTermBuilder builder; + Integer index; public N and() { return (N) 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 c42a2ea430..2db33bb50e 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodBuilder extends V1PodFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1PodBuilder() { this(false); } @@ -28,22 +28,15 @@ public V1PodBuilder(V1PodFluent fluent) { this(fluent, false); } - public V1PodBuilder( - io.kubernetes.client.openapi.models.V1PodFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodBuilder(V1PodFluent fluent, Boolean validationEnabled) { this(fluent, new V1Pod(), validationEnabled); } - public V1PodBuilder( - io.kubernetes.client.openapi.models.V1PodFluent fluent, - io.kubernetes.client.openapi.models.V1Pod instance) { + public V1PodBuilder(V1PodFluent fluent, V1Pod instance) { this(fluent, instance, false); } - public V1PodBuilder( - io.kubernetes.client.openapi.models.V1PodFluent fluent, - io.kubernetes.client.openapi.models.V1Pod instance, - java.lang.Boolean validationEnabled) { + public V1PodBuilder(V1PodFluent fluent, V1Pod instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +51,11 @@ public V1PodBuilder( this.validationEnabled = validationEnabled; } - public V1PodBuilder(io.kubernetes.client.openapi.models.V1Pod instance) { + public V1PodBuilder(V1Pod instance) { this(instance, false); } - public V1PodBuilder( - io.kubernetes.client.openapi.models.V1Pod instance, java.lang.Boolean validationEnabled) { + public V1PodBuilder(V1Pod instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +70,10 @@ public V1PodBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodFluent fluent; - java.lang.Boolean validationEnabled; + V1PodFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Pod build() { + public V1Pod build() { V1Pod buildable = new V1Pod(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 0a5bde3fdb..65126d771d 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodConditionBuilder extends V1PodConditionFluentImpl - implements VisitableBuilder< - V1PodCondition, io.kubernetes.client.openapi.models.V1PodConditionBuilder> { + implements VisitableBuilder { public V1PodConditionBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1PodConditionBuilder(Boolean validationEnabled) { this(new V1PodCondition(), validationEnabled); } - public V1PodConditionBuilder(io.kubernetes.client.openapi.models.V1PodConditionFluent fluent) { + public V1PodConditionBuilder(V1PodConditionFluent fluent) { this(fluent, false); } - public V1PodConditionBuilder( - io.kubernetes.client.openapi.models.V1PodConditionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodConditionBuilder(V1PodConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodCondition(), validationEnabled); } - public V1PodConditionBuilder( - io.kubernetes.client.openapi.models.V1PodConditionFluent fluent, - io.kubernetes.client.openapi.models.V1PodCondition instance) { + public V1PodConditionBuilder(V1PodConditionFluent fluent, V1PodCondition instance) { this(fluent, instance, false); } public V1PodConditionBuilder( - io.kubernetes.client.openapi.models.V1PodConditionFluent fluent, - io.kubernetes.client.openapi.models.V1PodCondition instance, - java.lang.Boolean validationEnabled) { + V1PodConditionFluent fluent, V1PodCondition instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLastProbeTime(instance.getLastProbeTime()); @@ -61,13 +54,11 @@ public V1PodConditionBuilder( this.validationEnabled = validationEnabled; } - public V1PodConditionBuilder(io.kubernetes.client.openapi.models.V1PodCondition instance) { + public V1PodConditionBuilder(V1PodCondition instance) { this(instance, false); } - public V1PodConditionBuilder( - io.kubernetes.client.openapi.models.V1PodCondition instance, - java.lang.Boolean validationEnabled) { + public V1PodConditionBuilder(V1PodCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastProbeTime(instance.getLastProbeTime()); @@ -84,10 +75,10 @@ public V1PodConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1PodConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodCondition build() { + public V1PodCondition build() { V1PodCondition buildable = new V1PodCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); 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 54a1979cfd..8058af1242 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 @@ -19,37 +19,37 @@ public interface V1PodConditionFluent> extends Fluent { public OffsetDateTime getLastProbeTime(); - public A withLastProbeTime(java.time.OffsetDateTime lastProbeTime); + public A withLastProbeTime(OffsetDateTime lastProbeTime); public Boolean hasLastProbeTime(); - public java.time.OffsetDateTime getLastTransitionTime(); + public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); - public java.lang.Boolean hasLastTransitionTime(); + public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java index 87d4c475c3..274edf7df4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluentImpl.java @@ -21,7 +21,7 @@ public class V1PodConditionFluentImpl> extends implements V1PodConditionFluent { public V1PodConditionFluentImpl() {} - public V1PodConditionFluentImpl(io.kubernetes.client.openapi.models.V1PodCondition instance) { + public V1PodConditionFluentImpl(V1PodCondition instance) { this.withLastProbeTime(instance.getLastProbeTime()); this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -36,17 +36,17 @@ public V1PodConditionFluentImpl(io.kubernetes.client.openapi.models.V1PodConditi } private OffsetDateTime lastProbeTime; - private java.time.OffsetDateTime lastTransitionTime; + private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastProbeTime() { + public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(java.time.OffsetDateTime lastProbeTime) { + public A withLastProbeTime(OffsetDateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; return (A) this; } @@ -55,68 +55,68 @@ public Boolean hasLastProbeTime() { return this.lastProbeTime != null; } - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } - public java.lang.Boolean hasLastTransitionTime() { + public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -142,7 +142,7 @@ public int hashCode() { lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastProbeTime != null) { 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 7bdbe9fe9e..cf1c070b19 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluentImpl - implements VisitableBuilder< - V1PodDNSConfig, io.kubernetes.client.openapi.models.V1PodDNSConfigBuilder> { + implements VisitableBuilder { public V1PodDNSConfigBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1PodDNSConfigBuilder(Boolean validationEnabled) { this(new V1PodDNSConfig(), validationEnabled); } - public V1PodDNSConfigBuilder(io.kubernetes.client.openapi.models.V1PodDNSConfigFluent fluent) { + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent) { this(fluent, false); } - public V1PodDNSConfigBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodDNSConfig(), validationEnabled); } - public V1PodDNSConfigBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigFluent fluent, - io.kubernetes.client.openapi.models.V1PodDNSConfig instance) { + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent, V1PodDNSConfig instance) { this(fluent, instance, false); } public V1PodDNSConfigBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigFluent fluent, - io.kubernetes.client.openapi.models.V1PodDNSConfig instance, - java.lang.Boolean validationEnabled) { + V1PodDNSConfigFluent fluent, V1PodDNSConfig instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withNameservers(instance.getNameservers()); @@ -55,13 +48,11 @@ public V1PodDNSConfigBuilder( this.validationEnabled = validationEnabled; } - public V1PodDNSConfigBuilder(io.kubernetes.client.openapi.models.V1PodDNSConfig instance) { + public V1PodDNSConfigBuilder(V1PodDNSConfig instance) { this(instance, false); } - public V1PodDNSConfigBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfig instance, - java.lang.Boolean validationEnabled) { + public V1PodDNSConfigBuilder(V1PodDNSConfig instance, Boolean validationEnabled) { this.fluent = this; this.withNameservers(instance.getNameservers()); @@ -72,10 +63,10 @@ public V1PodDNSConfigBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodDNSConfigFluent fluent; - java.lang.Boolean validationEnabled; + V1PodDNSConfigFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodDNSConfig build() { + public V1PodDNSConfig build() { V1PodDNSConfig buildable = new V1PodDNSConfig(); buildable.setNameservers(fluent.getNameservers()); buildable.setOptions(fluent.getOptions()); 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 0a8cf37a8c..cad3687e58 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 @@ -22,51 +22,47 @@ public interface V1PodDNSConfigFluent> extends Fluent { public A addToNameservers(Integer index, String item); - public A setToNameservers(java.lang.Integer index, java.lang.String item); + public A setToNameservers(Integer index, String item); public A addToNameservers(java.lang.String... items); - public A addAllToNameservers(Collection items); + public A addAllToNameservers(Collection items); public A removeFromNameservers(java.lang.String... items); - public A removeAllFromNameservers(java.util.Collection items); + public A removeAllFromNameservers(Collection items); - public List getNameservers(); + public List getNameservers(); - public java.lang.String getNameserver(java.lang.Integer index); + public String getNameserver(Integer index); - public java.lang.String getFirstNameserver(); + public String getFirstNameserver(); - public java.lang.String getLastNameserver(); + public String getLastNameserver(); - public java.lang.String getMatchingNameserver(Predicate predicate); + public String getMatchingNameserver(Predicate predicate); - public Boolean hasMatchingNameserver(java.util.function.Predicate predicate); + public Boolean hasMatchingNameserver(Predicate predicate); - public A withNameservers(java.util.List nameservers); + public A withNameservers(List nameservers); public A withNameservers(java.lang.String... nameservers); - public java.lang.Boolean hasNameservers(); + public Boolean hasNameservers(); - public A addToOptions(java.lang.Integer index, V1PodDNSConfigOption item); + public A addToOptions(Integer index, V1PodDNSConfigOption item); - public A setToOptions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDNSConfigOption item); + public A setToOptions(Integer index, V1PodDNSConfigOption item); public A addToOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items); - public A addAllToOptions( - java.util.Collection items); + public A addAllToOptions(Collection items); public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items); - public A removeAllFromOptions( - java.util.Collection items); + public A removeAllFromOptions(Collection items); - public A removeMatchingFromOptions( - java.util.function.Predicate predicate); + public A removeMatchingFromOptions(Predicate predicate); /** * This method has been deprecated, please use method buildOptions instead. @@ -74,85 +70,71 @@ public A removeMatchingFromOptions( * @return The buildable object. */ @Deprecated - public java.util.List getOptions(); + public List getOptions(); - public java.util.List buildOptions(); + public List buildOptions(); - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildOption( - java.lang.Integer index); + public V1PodDNSConfigOption buildOption(Integer index); - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildFirstOption(); + public V1PodDNSConfigOption buildFirstOption(); - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildLastOption(); + public V1PodDNSConfigOption buildLastOption(); - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildMatchingOption( - java.util.function.Predicate - predicate); + public V1PodDNSConfigOption buildMatchingOption(Predicate predicate); - public java.lang.Boolean hasMatchingOption( - java.util.function.Predicate - predicate); + public Boolean hasMatchingOption(Predicate predicate); - public A withOptions( - java.util.List options); + public A withOptions(List options); public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... options); - public java.lang.Boolean hasOptions(); + public Boolean hasOptions(); public V1PodDNSConfigFluent.OptionsNested addNewOption(); - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested addNewOptionLike( - io.kubernetes.client.openapi.models.V1PodDNSConfigOption item); + public V1PodDNSConfigFluent.OptionsNested addNewOptionLike(V1PodDNSConfigOption item); - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested setNewOptionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDNSConfigOption item); + public V1PodDNSConfigFluent.OptionsNested setNewOptionLike( + Integer index, V1PodDNSConfigOption item); - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested editOption( - java.lang.Integer index); + public V1PodDNSConfigFluent.OptionsNested editOption(Integer index); - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested - editFirstOption(); + public V1PodDNSConfigFluent.OptionsNested editFirstOption(); - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested editLastOption(); + public V1PodDNSConfigFluent.OptionsNested editLastOption(); - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested - editMatchingOption( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder> - predicate); + public V1PodDNSConfigFluent.OptionsNested editMatchingOption( + Predicate predicate); - public A addToSearches(java.lang.Integer index, java.lang.String item); + public A addToSearches(Integer index, String item); - public A setToSearches(java.lang.Integer index, java.lang.String item); + public A setToSearches(Integer index, String item); public A addToSearches(java.lang.String... items); - public A addAllToSearches(java.util.Collection items); + public A addAllToSearches(Collection items); public A removeFromSearches(java.lang.String... items); - public A removeAllFromSearches(java.util.Collection items); + public A removeAllFromSearches(Collection items); - public java.util.List getSearches(); + public List getSearches(); - public java.lang.String getSearch(java.lang.Integer index); + public String getSearch(Integer index); - public java.lang.String getFirstSearch(); + public String getFirstSearch(); - public java.lang.String getLastSearch(); + public String getLastSearch(); - public java.lang.String getMatchingSearch( - java.util.function.Predicate predicate); + public String getMatchingSearch(Predicate predicate); - public java.lang.Boolean hasMatchingSearch( - java.util.function.Predicate predicate); + public Boolean hasMatchingSearch(Predicate predicate); - public A withSearches(java.util.List searches); + public A withSearches(List searches); public A withSearches(java.lang.String... searches); - public java.lang.Boolean hasSearches(); + public Boolean hasSearches(); public interface OptionsNested extends Nested, V1PodDNSConfigOptionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java index eed602c919..1688469378 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluentImpl.java @@ -26,7 +26,7 @@ public class V1PodDNSConfigFluentImpl> extends implements V1PodDNSConfigFluent { public V1PodDNSConfigFluentImpl() {} - public V1PodDNSConfigFluentImpl(io.kubernetes.client.openapi.models.V1PodDNSConfig instance) { + public V1PodDNSConfigFluentImpl(V1PodDNSConfig instance) { this.withNameservers(instance.getNameservers()); this.withOptions(instance.getOptions()); @@ -36,19 +36,19 @@ public V1PodDNSConfigFluentImpl(io.kubernetes.client.openapi.models.V1PodDNSConf private List nameservers; private ArrayList options; - private java.util.List searches; + private List searches; - public A addToNameservers(Integer index, java.lang.String item) { + public A addToNameservers(Integer index, String item) { if (this.nameservers == null) { - this.nameservers = new java.util.ArrayList(); + this.nameservers = new ArrayList(); } this.nameservers.add(index, item); return (A) this; } - public A setToNameservers(java.lang.Integer index, java.lang.String item) { + public A setToNameservers(Integer index, String item) { if (this.nameservers == null) { - this.nameservers = new java.util.ArrayList(); + this.nameservers = new ArrayList(); } this.nameservers.set(index, item); return (A) this; @@ -56,26 +56,26 @@ public A setToNameservers(java.lang.Integer index, java.lang.String item) { public A addToNameservers(java.lang.String... items) { if (this.nameservers == null) { - this.nameservers = new java.util.ArrayList(); + this.nameservers = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nameservers.add(item); } return (A) this; } - public A addAllToNameservers(Collection items) { + public A addAllToNameservers(Collection items) { if (this.nameservers == null) { - this.nameservers = new java.util.ArrayList(); + this.nameservers = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nameservers.add(item); } return (A) this; } public A removeFromNameservers(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.nameservers != null) { this.nameservers.remove(item); } @@ -83,8 +83,8 @@ public A removeFromNameservers(java.lang.String... items) { return (A) this; } - public A removeAllFromNameservers(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNameservers(Collection items) { + for (String item : items) { if (this.nameservers != null) { this.nameservers.remove(item); } @@ -92,24 +92,24 @@ public A removeAllFromNameservers(java.util.Collection items) return (A) this; } - public java.util.List getNameservers() { + public List getNameservers() { return this.nameservers; } - public java.lang.String getNameserver(java.lang.Integer index) { + public String getNameserver(Integer index) { return this.nameservers.get(index); } - public java.lang.String getFirstNameserver() { + public String getFirstNameserver() { return this.nameservers.get(0); } - public java.lang.String getLastNameserver() { + public String getLastNameserver() { return this.nameservers.get(nameservers.size() - 1); } - public java.lang.String getMatchingNameserver(Predicate predicate) { - for (java.lang.String item : nameservers) { + public String getMatchingNameserver(Predicate predicate) { + for (String item : nameservers) { if (predicate.test(item)) { return item; } @@ -117,8 +117,8 @@ public java.lang.String getMatchingNameserver(Predicate predic return null; } - public Boolean hasMatchingNameserver(java.util.function.Predicate predicate) { - for (java.lang.String item : nameservers) { + public Boolean hasMatchingNameserver(Predicate predicate) { + for (String item : nameservers) { if (predicate.test(item)) { return true; } @@ -126,10 +126,10 @@ public Boolean hasMatchingNameserver(java.util.function.Predicate nameservers) { + public A withNameservers(List nameservers) { if (nameservers != null) { - this.nameservers = new java.util.ArrayList(); - for (java.lang.String item : nameservers) { + this.nameservers = new ArrayList(); + for (String item : nameservers) { this.addToNameservers(item); } } else { @@ -143,38 +143,32 @@ public A withNameservers(java.lang.String... nameservers) { this.nameservers.clear(); } if (nameservers != null) { - for (java.lang.String item : nameservers) { + for (String item : nameservers) { this.addToNameservers(item); } } return (A) this; } - public java.lang.Boolean hasNameservers() { + public Boolean hasNameservers() { return nameservers != null && !nameservers.isEmpty(); } - public A addToOptions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDNSConfigOption item) { + public A addToOptions(Integer index, V1PodDNSConfigOption item) { if (this.options == null) { - this.options = new java.util.ArrayList(); + this.options = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(item); + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); _visitables.get("options").add(index >= 0 ? index : _visitables.get("options").size(), builder); this.options.add(index >= 0 ? index : options.size(), builder); return (A) this; } - public A setToOptions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDNSConfigOption item) { + public A setToOptions(Integer index, V1PodDNSConfigOption item) { if (this.options == null) { - this.options = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder>(); + this.options = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(item); + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); if (index < 0 || index >= _visitables.get("options").size()) { _visitables.get("options").add(builder); } else { @@ -190,29 +184,22 @@ public A setToOptions( public A addToOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { if (this.options == null) { - this.options = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder>(); + this.options = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOption item : items) { - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(item); + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); _visitables.get("options").add(builder); this.options.add(builder); } return (A) this; } - public A addAllToOptions( - java.util.Collection items) { + public A addAllToOptions(Collection items) { if (this.options == null) { - this.options = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder>(); + this.options = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOption item : items) { - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(item); + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); _visitables.get("options").add(builder); this.options.add(builder); } @@ -220,9 +207,8 @@ public A addAllToOptions( } public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOption item : items) { - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(item); + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); _visitables.get("options").remove(builder); if (this.options != null) { this.options.remove(builder); @@ -231,11 +217,9 @@ public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOpt return (A) this; } - public A removeAllFromOptions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOption item : items) { - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(item); + public A removeAllFromOptions(Collection items) { + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); _visitables.get("options").remove(builder); if (this.options != null) { this.options.remove(builder); @@ -244,15 +228,12 @@ public A removeAllFromOptions( return (A) this; } - public A removeMatchingFromOptions( - java.util.function.Predicate - predicate) { + public A removeMatchingFromOptions(Predicate predicate) { if (options == null) return (A) this; - final Iterator each = - options.iterator(); + final Iterator each = options.iterator(); final List visitables = _visitables.get("options"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder = each.next(); + V1PodDNSConfigOptionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -267,31 +248,29 @@ public A removeMatchingFromOptions( * @return The buildable object. */ @Deprecated - public java.util.List getOptions() { + public List getOptions() { return options != null ? build(options) : null; } - public java.util.List buildOptions() { + public List buildOptions() { return options != null ? build(options) : null; } - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildOption( - java.lang.Integer index) { + public V1PodDNSConfigOption buildOption(Integer index) { return this.options.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildFirstOption() { + public V1PodDNSConfigOption buildFirstOption() { return this.options.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildLastOption() { + public V1PodDNSConfigOption buildLastOption() { return this.options.get(options.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildMatchingOption( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder item : options) { + public V1PodDNSConfigOption buildMatchingOption( + Predicate predicate) { + for (V1PodDNSConfigOptionBuilder item : options) { if (predicate.test(item)) { return item.build(); } @@ -299,10 +278,8 @@ public io.kubernetes.client.openapi.models.V1PodDNSConfigOption buildMatchingOpt return null; } - public java.lang.Boolean hasMatchingOption( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder item : options) { + public Boolean hasMatchingOption(Predicate predicate) { + for (V1PodDNSConfigOptionBuilder item : options) { if (predicate.test(item)) { return true; } @@ -310,14 +287,13 @@ public java.lang.Boolean hasMatchingOption( return false; } - public A withOptions( - java.util.List options) { + public A withOptions(List options) { if (this.options != null) { _visitables.get("options").removeAll(this.options); } if (options != null) { - this.options = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOption item : options) { + this.options = new ArrayList(); + for (V1PodDNSConfigOption item : options) { this.addToOptions(item); } } else { @@ -331,14 +307,14 @@ public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... this.options.clear(); } if (options != null) { - for (io.kubernetes.client.openapi.models.V1PodDNSConfigOption item : options) { + for (V1PodDNSConfigOption item : options) { this.addToOptions(item); } } return (A) this; } - public java.lang.Boolean hasOptions() { + public Boolean hasOptions() { return options != null && !options.isEmpty(); } @@ -346,43 +322,35 @@ public V1PodDNSConfigFluent.OptionsNested addNewOption() { return new V1PodDNSConfigFluentImpl.OptionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested addNewOptionLike( - io.kubernetes.client.openapi.models.V1PodDNSConfigOption item) { + public V1PodDNSConfigFluent.OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { return new V1PodDNSConfigFluentImpl.OptionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested setNewOptionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDNSConfigOption item) { - return new io.kubernetes.client.openapi.models.V1PodDNSConfigFluentImpl.OptionsNestedImpl( - index, item); + public V1PodDNSConfigFluent.OptionsNested setNewOptionLike( + Integer index, V1PodDNSConfigOption item) { + return new V1PodDNSConfigFluentImpl.OptionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested editOption( - java.lang.Integer index) { + public V1PodDNSConfigFluent.OptionsNested editOption(Integer index) { if (options.size() <= index) throw new RuntimeException("Can't edit options. Index exceeds size."); return setNewOptionLike(index, buildOption(index)); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested - editFirstOption() { + public V1PodDNSConfigFluent.OptionsNested editFirstOption() { if (options.size() == 0) throw new RuntimeException("Can't edit first options. The list is empty."); return setNewOptionLike(0, buildOption(0)); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested - editLastOption() { + public V1PodDNSConfigFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested - editMatchingOption( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder> - predicate) { + public V1PodDNSConfigFluent.OptionsNested editMatchingOption( + Predicate predicate) { int index = -1; for (int i = 0; i < options.size(); i++) { if (predicate.test(options.get(i))) { @@ -394,17 +362,17 @@ public io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested return setNewOptionLike(index, buildOption(index)); } - public A addToSearches(java.lang.Integer index, java.lang.String item) { + public A addToSearches(Integer index, String item) { if (this.searches == null) { - this.searches = new java.util.ArrayList(); + this.searches = new ArrayList(); } this.searches.add(index, item); return (A) this; } - public A setToSearches(java.lang.Integer index, java.lang.String item) { + public A setToSearches(Integer index, String item) { if (this.searches == null) { - this.searches = new java.util.ArrayList(); + this.searches = new ArrayList(); } this.searches.set(index, item); return (A) this; @@ -412,26 +380,26 @@ public A setToSearches(java.lang.Integer index, java.lang.String item) { public A addToSearches(java.lang.String... items) { if (this.searches == null) { - this.searches = new java.util.ArrayList(); + this.searches = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.searches.add(item); } return (A) this; } - public A addAllToSearches(java.util.Collection items) { + public A addAllToSearches(Collection items) { if (this.searches == null) { - this.searches = new java.util.ArrayList(); + this.searches = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.searches.add(item); } return (A) this; } public A removeFromSearches(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.searches != null) { this.searches.remove(item); } @@ -439,8 +407,8 @@ public A removeFromSearches(java.lang.String... items) { return (A) this; } - public A removeAllFromSearches(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromSearches(Collection items) { + for (String item : items) { if (this.searches != null) { this.searches.remove(item); } @@ -448,25 +416,24 @@ public A removeAllFromSearches(java.util.Collection items) { return (A) this; } - public java.util.List getSearches() { + public List getSearches() { return this.searches; } - public java.lang.String getSearch(java.lang.Integer index) { + public String getSearch(Integer index) { return this.searches.get(index); } - public java.lang.String getFirstSearch() { + public String getFirstSearch() { return this.searches.get(0); } - public java.lang.String getLastSearch() { + public String getLastSearch() { return this.searches.get(searches.size() - 1); } - public java.lang.String getMatchingSearch( - java.util.function.Predicate predicate) { - for (java.lang.String item : searches) { + public String getMatchingSearch(Predicate predicate) { + for (String item : searches) { if (predicate.test(item)) { return item; } @@ -474,9 +441,8 @@ public java.lang.String getMatchingSearch( return null; } - public java.lang.Boolean hasMatchingSearch( - java.util.function.Predicate predicate) { - for (java.lang.String item : searches) { + public Boolean hasMatchingSearch(Predicate predicate) { + for (String item : searches) { if (predicate.test(item)) { return true; } @@ -484,10 +450,10 @@ public java.lang.Boolean hasMatchingSearch( return false; } - public A withSearches(java.util.List searches) { + public A withSearches(List searches) { if (searches != null) { - this.searches = new java.util.ArrayList(); - for (java.lang.String item : searches) { + this.searches = new ArrayList(); + for (String item : searches) { this.addToSearches(item); } } else { @@ -501,14 +467,14 @@ public A withSearches(java.lang.String... searches) { this.searches.clear(); } if (searches != null) { - for (java.lang.String item : searches) { + for (String item : searches) { this.addToSearches(item); } } return (A) this; } - public java.lang.Boolean hasSearches() { + public Boolean hasSearches() { return searches != null && !searches.isEmpty(); } @@ -527,7 +493,7 @@ public int hashCode() { return java.util.Objects.hash(nameservers, options, searches, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (nameservers != null && !nameservers.isEmpty()) { @@ -548,20 +514,19 @@ public java.lang.String toString() { class OptionsNestedImpl extends V1PodDNSConfigOptionFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDNSConfigFluent.OptionsNested, - Nested { - OptionsNestedImpl(java.lang.Integer index, V1PodDNSConfigOption item) { + implements V1PodDNSConfigFluent.OptionsNested, Nested { + OptionsNestedImpl(Integer index, V1PodDNSConfigOption item) { this.index = index; this.builder = new V1PodDNSConfigOptionBuilder(this, item); } OptionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder(this); + this.builder = new V1PodDNSConfigOptionBuilder(this); } - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder builder; - java.lang.Integer index; + V1PodDNSConfigOptionBuilder builder; + Integer index; public N and() { return (N) V1PodDNSConfigFluentImpl.this.setToOptions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java index adab6a1f56..b75292ef8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java @@ -16,8 +16,7 @@ public class V1PodDNSConfigOptionBuilder extends V1PodDNSConfigOptionFluentImpl - implements VisitableBuilder< - V1PodDNSConfigOption, io.kubernetes.client.openapi.models.V1PodDNSConfigOptionBuilder> { + implements VisitableBuilder { public V1PodDNSConfigOptionBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent) { } public V1PodDNSConfigOptionBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionFluent fluent, - java.lang.Boolean validationEnabled) { + V1PodDNSConfigOptionFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodDNSConfigOption(), validationEnabled); } public V1PodDNSConfigOptionBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionFluent fluent, - io.kubernetes.client.openapi.models.V1PodDNSConfigOption instance) { + V1PodDNSConfigOptionFluent fluent, V1PodDNSConfigOption instance) { this(fluent, instance, false); } public V1PodDNSConfigOptionBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionFluent fluent, - io.kubernetes.client.openapi.models.V1PodDNSConfigOption instance, - java.lang.Boolean validationEnabled) { + V1PodDNSConfigOptionFluent fluent, + V1PodDNSConfigOption instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -54,14 +51,11 @@ public V1PodDNSConfigOptionBuilder( this.validationEnabled = validationEnabled; } - public V1PodDNSConfigOptionBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigOption instance) { + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance) { this(instance, false); } - public V1PodDNSConfigOptionBuilder( - io.kubernetes.client.openapi.models.V1PodDNSConfigOption instance, - java.lang.Boolean validationEnabled) { + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -70,10 +64,10 @@ public V1PodDNSConfigOptionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodDNSConfigOptionFluent fluent; - java.lang.Boolean validationEnabled; + V1PodDNSConfigOptionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodDNSConfigOption build() { + public V1PodDNSConfigOption build() { V1PodDNSConfigOption buildable = new V1PodDNSConfigOption(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); 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 b4d8f08cf7..9900f398fe 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 @@ -19,13 +19,13 @@ public interface V1PodDNSConfigOptionFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getValue(); + public String getValue(); - public A withValue(java.lang.String value); + public A withValue(String value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java index 1fab045397..f6283818de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluentImpl.java @@ -20,21 +20,20 @@ public class V1PodDNSConfigOptionFluentImpl implements V1PodDNSConfigOptionFluent { public V1PodDNSConfigOptionFluentImpl() {} - public V1PodDNSConfigOptionFluentImpl( - io.kubernetes.client.openapi.models.V1PodDNSConfigOption instance) { + public V1PodDNSConfigOptionFluentImpl(V1PodDNSConfigOption instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); } private String name; - private java.lang.String value; + private String value; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getValue() { + public String getValue() { return this.value; } - public A withValue(java.lang.String value) { + public A withValue(String value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(name, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 0250012421..ddf54a26eb 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 @@ -16,8 +16,7 @@ public class V1PodDisruptionBudgetBuilder extends V1PodDisruptionBudgetFluentImpl - implements VisitableBuilder< - V1PodDisruptionBudget, io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder> { + implements VisitableBuilder { public V1PodDisruptionBudgetBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1PodDisruptionBudgetBuilder(Boolean validationEnabled) { this(new V1PodDisruptionBudget(), validationEnabled); } - public V1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent fluent) { + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent) { this(fluent, false); } public V1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent fluent, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudget(), validationEnabled); } public V1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudget instance) { + V1PodDisruptionBudgetFluent fluent, V1PodDisruptionBudget instance) { this(fluent, instance, false); } public V1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudget instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetFluent fluent, + V1PodDisruptionBudget instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,11 @@ public V1PodDisruptionBudgetBuilder( this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudget instance) { + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance) { this(instance, false); } - public V1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudget instance, - java.lang.Boolean validationEnabled) { + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +76,10 @@ public V1PodDisruptionBudgetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent fluent; - java.lang.Boolean validationEnabled; + V1PodDisruptionBudgetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget build() { + public V1PodDisruptionBudget build() { V1PodDisruptionBudget buildable = new V1PodDisruptionBudget(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 5fb55ffe9b..9ad4fa78e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java @@ -20,15 +20,15 @@ public interface V1PodDisruptionBudgetFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,80 +38,72 @@ public interface V1PodDisruptionBudgetFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - editMetadata(); + public V1PodDisruptionBudgetFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadata(); + public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodDisruptionBudgetSpec getSpec(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec buildSpec(); + public V1PodDisruptionBudgetSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec spec); + public A withSpec(V1PodDisruptionBudgetSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1PodDisruptionBudgetFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec item); + public V1PodDisruptionBudgetFluent.SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested editSpec(); + public V1PodDisruptionBudgetFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested - editOrNewSpec(); + public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec item); + public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpecLike( + V1PodDisruptionBudgetSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodDisruptionBudgetStatus getStatus(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus buildStatus(); + public V1PodDisruptionBudgetStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus status); + public A withStatus(V1PodDisruptionBudgetStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1PodDisruptionBudgetFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus item); + public V1PodDisruptionBudgetFluent.StatusNested withNewStatusLike( + V1PodDisruptionBudgetStatus item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - editStatus(); + public V1PodDisruptionBudgetFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - editOrNewStatus(); + public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus item); + public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatusLike( + V1PodDisruptionBudgetStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -121,7 +113,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PodDisruptionBudgetSpecFluent> { public N and(); @@ -129,7 +121,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PodDisruptionBudgetStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java index 9d9890e5f9..d4da62f0d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluentImpl.java @@ -21,8 +21,7 @@ public class V1PodDisruptionBudgetFluentImpl implements V1PodDisruptionBudgetFluent { public V1PodDisruptionBudgetFluentImpl() {} - public V1PodDisruptionBudgetFluentImpl( - io.kubernetes.client.openapi.models.V1PodDisruptionBudget instance) { + public V1PodDisruptionBudgetFluentImpl(V1PodDisruptionBudget instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1PodDisruptionBudgetFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1PodDisruptionBudgetSpecBuilder spec; private V1PodDisruptionBudgetStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadata() { return new V1PodDisruptionBudgetFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodDisruptionBudgetFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - editMetadata() { + public V1PodDisruptionBudgetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadata() { + public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodDisruptionBudgetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1PodDisruptionBudgetFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodDisruptionBudgetSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec buildSpec() { + public V1PodDisruptionBudgetSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec spec) { + public A withSpec(V1PodDisruptionBudgetSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecBuilder(spec); + this.spec = new V1PodDisruptionBudgetSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,26 +150,21 @@ public V1PodDisruptionBudgetFluent.SpecNested withNewSpec() { return new V1PodDisruptionBudgetFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec item) { - return new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluentImpl.SpecNestedImpl( - item); + public V1PodDisruptionBudgetFluent.SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { + return new V1PodDisruptionBudgetFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested editSpec() { + public V1PodDisruptionBudgetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested - editOrNewSpec() { + public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1PodDisruptionBudgetSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec item) { + public V1PodDisruptionBudgetFluent.SpecNested editOrNewSpecLike( + V1PodDisruptionBudgetSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -179,25 +173,28 @@ public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNeste * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus getStatus() { + @Deprecated + public V1PodDisruptionBudgetStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus buildStatus() { + public V1PodDisruptionBudgetStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus status) { + public A withStatus(V1PodDisruptionBudgetStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1PodDisruptionBudgetStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -205,27 +202,22 @@ public V1PodDisruptionBudgetFluent.StatusNested withNewStatus() { return new V1PodDisruptionBudgetFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus item) { - return new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluentImpl.StatusNestedImpl( - item); + public V1PodDisruptionBudgetFluent.StatusNested withNewStatusLike( + V1PodDisruptionBudgetStatus item) { + return new V1PodDisruptionBudgetFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - editStatus() { + public V1PodDisruptionBudgetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - editOrNewStatus() { + public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1PodDisruptionBudgetStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus item) { + public V1PodDisruptionBudgetFluent.StatusNested editOrNewStatusLike( + V1PodDisruptionBudgetStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -246,7 +238,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -275,17 +267,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.MetadataNested, - Nested { + implements V1PodDisruptionBudgetFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PodDisruptionBudgetFluentImpl.this.withMetadata(builder.build()); @@ -298,17 +289,16 @@ public N endMetadata() { class SpecNestedImpl extends V1PodDisruptionBudgetSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec item) { + implements V1PodDisruptionBudgetFluent.SpecNested, Nested { + SpecNestedImpl(V1PodDisruptionBudgetSpec item) { this.builder = new V1PodDisruptionBudgetSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecBuilder(this); + this.builder = new V1PodDisruptionBudgetSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecBuilder builder; + V1PodDisruptionBudgetSpecBuilder builder; public N and() { return (N) V1PodDisruptionBudgetFluentImpl.this.withSpec(builder.build()); @@ -321,18 +311,16 @@ public N endSpec() { class StatusNestedImpl extends V1PodDisruptionBudgetStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDisruptionBudgetFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus item) { + implements V1PodDisruptionBudgetFluent.StatusNested, Nested { + StatusNestedImpl(V1PodDisruptionBudgetStatus item) { this.builder = new V1PodDisruptionBudgetStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusBuilder(this); + this.builder = new V1PodDisruptionBudgetStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusBuilder builder; + V1PodDisruptionBudgetStatusBuilder builder; public N and() { return (N) V1PodDisruptionBudgetFluentImpl.this.withStatus(builder.build()); 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 dc0fe61f63..72185b25d7 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 @@ -16,9 +16,7 @@ public class V1PodDisruptionBudgetListBuilder extends V1PodDisruptionBudgetListFluentImpl - implements VisitableBuilder< - V1PodDisruptionBudgetList, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListBuilder> { + implements VisitableBuilder { public V1PodDisruptionBudgetListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluen } public V1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent fluent, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetListFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudgetList(), validationEnabled); } public V1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList instance) { + V1PodDisruptionBudgetListFluent fluent, V1PodDisruptionBudgetList instance) { this(fluent, instance, false); } public V1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetListFluent fluent, + V1PodDisruptionBudgetList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,12 @@ public V1PodDisruptionBudgetListBuilder( this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList instance) { + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetList instance) { this(instance, false); } public V1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +73,10 @@ public V1PodDisruptionBudgetListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent fluent; - java.lang.Boolean validationEnabled; + V1PodDisruptionBudgetListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList build() { + public V1PodDisruptionBudgetList build() { V1PodDisruptionBudgetList buildable = new V1PodDisruptionBudgetList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 51578b4583..32572f238b 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 @@ -23,25 +23,21 @@ public interface V1PodDisruptionBudgetListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item); + public A addToItems(Integer index, V1PodDisruptionBudget item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item); + public A setToItems(Integer index, V1PodDisruptionBudget item); public A addToItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,89 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildItem( - java.lang.Integer index); + public V1PodDisruptionBudget buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildFirstItem(); + public V1PodDisruptionBudget buildFirstItem(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildLastItem(); + public V1PodDisruptionBudget buildLastItem(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildMatchingItem( - java.util.function.Predicate - predicate); + public V1PodDisruptionBudget buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1PodDisruptionBudgetListFluent.ItemsNested addNewItem(); - public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PodDisruptionBudget item); + public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike(V1PodDisruptionBudget item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item); + public V1PodDisruptionBudgetListFluent.ItemsNested setNewItemLike( + Integer index, V1PodDisruptionBudget item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1PodDisruptionBudgetListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editFirstItem(); + public V1PodDisruptionBudgetListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editLastItem(); + public V1PodDisruptionBudgetListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder> - predicate); + public V1PodDisruptionBudgetListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - editMetadata(); + public V1PodDisruptionBudgetListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadata(); + public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, @@ -144,8 +122,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java index 1a9121324d..0f765e00a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluentImpl.java @@ -26,8 +26,7 @@ public class V1PodDisruptionBudgetListFluentImpl implements V1PodDisruptionBudgetListFluent { public V1PodDisruptionBudgetListFluentImpl() {} - public V1PodDisruptionBudgetListFluentImpl( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList instance) { + public V1PodDisruptionBudgetListFluentImpl(V1PodDisruptionBudgetList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1PodDisruptionBudgetListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item) { + public A addToItems(Integer index, V1PodDisruptionBudget item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(item); + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item) { + public A setToItems(Integer index, V1PodDisruptionBudget item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(item); + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -93,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(item); + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -123,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(item); + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -134,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudg return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -147,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder = each.next(); + V1PodDisruptionBudgetBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,31 +148,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildItem( - java.lang.Integer index) { + public V1PodDisruptionBudget buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildFirstItem() { + public V1PodDisruptionBudget buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildLastItem() { + public V1PodDisruptionBudget buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder item : items) { + public V1PodDisruptionBudget buildMatchingItem( + Predicate predicate) { + for (V1PodDisruptionBudgetBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -201,10 +178,8 @@ public io.kubernetes.client.openapi.models.V1PodDisruptionBudget buildMatchingIt return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1PodDisruptionBudgetBuilder item : items) { if (predicate.test(item)) { return true; } @@ -212,14 +187,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudget item : items) { + this.items = new ArrayList(); + for (V1PodDisruptionBudget item : items) { this.addToItems(item); } } else { @@ -233,14 +207,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1PodDisruptionBudget item : items) { + for (V1PodDisruptionBudget item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -248,42 +222,33 @@ public V1PodDisruptionBudgetListFluent.ItemsNested addNewItem() { return new V1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(); } - public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PodDisruptionBudget item) { + public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike(V1PodDisruptionBudget item) { return new V1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item) { - return new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluentImpl - .ItemsNestedImpl(index, item); + public V1PodDisruptionBudgetListFluent.ItemsNested setNewItemLike( + Integer index, V1PodDisruptionBudget item) { + return new V1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1PodDisruptionBudgetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editFirstItem() { + public V1PodDisruptionBudgetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editLastItem() { + public V1PodDisruptionBudgetListFluent.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 io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder> - predicate) { + public V1PodDisruptionBudgetListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -295,16 +260,16 @@ public V1PodDisruptionBudgetListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -313,25 +278,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -339,27 +307,20 @@ public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadata() { return new V1PodDisruptionBudgetListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluentImpl - .MetadataNestedImpl(item); + public V1PodDisruptionBudgetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1PodDisruptionBudgetListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - editMetadata() { + public V1PodDisruptionBudgetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadata() { + public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1PodDisruptionBudgetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -379,7 +340,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -405,19 +366,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1PodDisruptionBudgetFluentImpl> implements V1PodDisruptionBudgetListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodDisruptionBudget item) { + ItemsNestedImpl(Integer index, V1PodDisruptionBudget item) { this.index = index; this.builder = new V1PodDisruptionBudgetBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder(this); + this.builder = new V1PodDisruptionBudgetBuilder(this); } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetBuilder builder; - java.lang.Integer index; + V1PodDisruptionBudgetBuilder builder; + Integer index; public N and() { return (N) V1PodDisruptionBudgetListFluentImpl.this.setToItems(index, builder.build()); @@ -430,18 +390,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDisruptionBudgetListFluent.MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PodDisruptionBudgetListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1PodDisruptionBudgetListFluentImpl.this.withMetadata(builder.build()); 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 96fd4cbc6e..df40696afe 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 @@ -16,9 +16,7 @@ public class V1PodDisruptionBudgetSpecBuilder extends V1PodDisruptionBudgetSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecBuilder> { + implements VisitableBuilder { public V1PodDisruptionBudgetSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluen } public V1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudgetSpec(), validationEnabled); } public V1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec instance) { + V1PodDisruptionBudgetSpecFluent fluent, V1PodDisruptionBudgetSpec instance) { this(fluent, instance, false); } public V1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetSpecFluent fluent, + V1PodDisruptionBudgetSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMaxUnavailable(instance.getMaxUnavailable()); @@ -57,14 +53,12 @@ public V1PodDisruptionBudgetSpecBuilder( this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec instance) { + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpec instance) { this(instance, false); } public V1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMaxUnavailable(instance.getMaxUnavailable()); @@ -75,10 +69,10 @@ public V1PodDisruptionBudgetSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1PodDisruptionBudgetSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec build() { + public V1PodDisruptionBudgetSpec build() { V1PodDisruptionBudgetSpec buildable = new V1PodDisruptionBudgetSpec(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); buildable.setMinAvailable(fluent.getMinAvailable()); 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 a3de7e905a..3efb5245c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java @@ -21,7 +21,7 @@ public interface V1PodDisruptionBudgetSpecFluent { public IntOrString getMaxUnavailable(); - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable); + public A withMaxUnavailable(IntOrString maxUnavailable); public Boolean hasMaxUnavailable(); @@ -29,15 +29,15 @@ public interface V1PodDisruptionBudgetSpecFluent withNewSelector(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - editSelector(); + public V1PodDisruptionBudgetSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelector(); + public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelectorLike( + V1LabelSelector item); public interface SelectorNested extends Nested, V1LabelSelectorFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java index bddb47066e..76c7b3bdc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluentImpl.java @@ -22,8 +22,7 @@ public class V1PodDisruptionBudgetSpecFluentImpl implements V1PodDisruptionBudgetSpecFluent { public V1PodDisruptionBudgetSpecFluentImpl() {} - public V1PodDisruptionBudgetSpecFluentImpl( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec instance) { + public V1PodDisruptionBudgetSpecFluentImpl(V1PodDisruptionBudgetSpec instance) { this.withMaxUnavailable(instance.getMaxUnavailable()); this.withMinAvailable(instance.getMinAvailable()); @@ -32,14 +31,14 @@ public V1PodDisruptionBudgetSpecFluentImpl( } private IntOrString maxUnavailable; - private io.kubernetes.client.custom.IntOrString minAvailable; + private IntOrString minAvailable; private V1LabelSelectorBuilder selector; - public io.kubernetes.client.custom.IntOrString getMaxUnavailable() { + public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable) { + public A withMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return (A) this; } @@ -56,16 +55,16 @@ public A withNewMaxUnavailable(String value) { return (A) withMaxUnavailable(new IntOrString(value)); } - public io.kubernetes.client.custom.IntOrString getMinAvailable() { + public IntOrString getMinAvailable() { return this.minAvailable; } - public A withMinAvailable(io.kubernetes.client.custom.IntOrString minAvailable) { + public A withMinAvailable(IntOrString minAvailable) { this.minAvailable = minAvailable; return (A) this; } - public java.lang.Boolean hasMinAvailable() { + public Boolean hasMinAvailable() { return this.minAvailable != null; } @@ -73,7 +72,7 @@ public A withNewMinAvailable(int value) { return (A) withMinAvailable(new IntOrString(value)); } - public A withNewMinAvailable(java.lang.String value) { + public A withNewMinAvailable(String value) { return (A) withMinAvailable(new IntOrString(value)); } @@ -83,24 +82,27 @@ public A withNewMinAvailable(java.lang.String value) { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -108,26 +110,22 @@ public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelector() { return new V1PodDisruptionBudgetSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelectorLike( + V1LabelSelector item) { return new V1PodDisruptionBudgetSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - editSelector() { + public V1PodDisruptionBudgetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelector() { + public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1PodDisruptionBudgetSpecFluent.SelectorNested editOrNewSelectorLike( + V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } @@ -148,7 +146,7 @@ public int hashCode() { return java.util.Objects.hash(maxUnavailable, minAvailable, selector, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (maxUnavailable != null) { @@ -169,18 +167,16 @@ public java.lang.String toString() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpecFluent.SelectorNested< - N>, - Nested { + implements V1PodDisruptionBudgetSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1PodDisruptionBudgetSpecFluentImpl.this.withSelector(builder.build()); 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 1108164e75..d5f8ff84a9 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 @@ -16,9 +16,7 @@ public class V1PodDisruptionBudgetStatusBuilder extends V1PodDisruptionBudgetStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus, - V1PodDisruptionBudgetStatusBuilder> { + implements VisitableBuilder { public V1PodDisruptionBudgetStatusBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1PodDisruptionBudgetStatusBuilder(Boolean validationEnabled) { this(new V1PodDisruptionBudgetStatus(), validationEnabled); } - public V1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent fluent) { + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent) { this(fluent, false); } public V1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodDisruptionBudgetStatus(), validationEnabled); } public V1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus instance) { + V1PodDisruptionBudgetStatusFluent fluent, V1PodDisruptionBudgetStatus instance) { this(fluent, instance, false); } public V1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetStatusFluent fluent, + V1PodDisruptionBudgetStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -66,14 +61,12 @@ public V1PodDisruptionBudgetStatusBuilder( this.validationEnabled = validationEnabled; } - public V1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus instance) { + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatus instance) { this(instance, false); } public V1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus instance, - java.lang.Boolean validationEnabled) { + V1PodDisruptionBudgetStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); @@ -92,10 +85,10 @@ public V1PodDisruptionBudgetStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1PodDisruptionBudgetStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus build() { + public V1PodDisruptionBudgetStatus build() { V1PodDisruptionBudgetStatus buildable = new V1PodDisruptionBudgetStatus(); buildable.setConditions(fluent.getConditions()); buildable.setCurrentHealthy(fluent.getCurrentHealthy()); 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 9c5cd979fd..ce36ac9714 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 @@ -25,17 +25,15 @@ public interface V1PodDisruptionBudgetStatusFluent { public A addToConditions(Integer index, V1Condition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); + public A setToConditions(Integer index, V1Condition item); public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A addAllToConditions(Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -45,98 +43,86 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index); + public V1Condition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition(); + public V1Condition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition(); + public V1Condition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1Condition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewConditionLike( + V1Condition item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1Condition item); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editFirstCondition(); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editLastCondition(); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.Integer getCurrentHealthy(); + public Integer getCurrentHealthy(); - public A withCurrentHealthy(java.lang.Integer currentHealthy); + public A withCurrentHealthy(Integer currentHealthy); - public java.lang.Boolean hasCurrentHealthy(); + public Boolean hasCurrentHealthy(); - public java.lang.Integer getDesiredHealthy(); + public Integer getDesiredHealthy(); - public A withDesiredHealthy(java.lang.Integer desiredHealthy); + public A withDesiredHealthy(Integer desiredHealthy); - public java.lang.Boolean hasDesiredHealthy(); + public Boolean hasDesiredHealthy(); public A addToDisruptedPods(String key, OffsetDateTime value); - public A addToDisruptedPods(Map map); + public A addToDisruptedPods(Map map); - public A removeFromDisruptedPods(java.lang.String key); + public A removeFromDisruptedPods(String key); - public A removeFromDisruptedPods(java.util.Map map); + public A removeFromDisruptedPods(Map map); - public java.util.Map getDisruptedPods(); + public Map getDisruptedPods(); - public A withDisruptedPods( - java.util.Map disruptedPods); + public A withDisruptedPods(Map disruptedPods); - public java.lang.Boolean hasDisruptedPods(); + public Boolean hasDisruptedPods(); - public java.lang.Integer getDisruptionsAllowed(); + public Integer getDisruptionsAllowed(); - public A withDisruptionsAllowed(java.lang.Integer disruptionsAllowed); + public A withDisruptionsAllowed(Integer disruptionsAllowed); - public java.lang.Boolean hasDisruptionsAllowed(); + public Boolean hasDisruptionsAllowed(); - public java.lang.Integer getExpectedPods(); + public Integer getExpectedPods(); - public A withExpectedPods(java.lang.Integer expectedPods); + public A withExpectedPods(Integer expectedPods); - public java.lang.Boolean hasExpectedPods(); + public Boolean hasExpectedPods(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); public interface ConditionsNested extends Nested, V1ConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java index a12d3e2c12..53e7fdfc12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluentImpl.java @@ -29,8 +29,7 @@ public class V1PodDisruptionBudgetStatusFluentImpl implements V1PodDisruptionBudgetStatusFluent { public V1PodDisruptionBudgetStatusFluentImpl() {} - public V1PodDisruptionBudgetStatusFluentImpl( - io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus instance) { + public V1PodDisruptionBudgetStatusFluentImpl(V1PodDisruptionBudgetStatus instance) { this.withConditions(instance.getConditions()); this.withCurrentHealthy(instance.getCurrentHealthy()); @@ -48,19 +47,17 @@ public V1PodDisruptionBudgetStatusFluentImpl( private ArrayList conditions; private Integer currentHealthy; - private java.lang.Integer desiredHealthy; + private Integer desiredHealthy; private Map disruptedPods; - private java.lang.Integer disruptionsAllowed; - private java.lang.Integer expectedPods; + private Integer disruptionsAllowed; + private Integer expectedPods; private Long observedGeneration; - public A addToConditions(java.lang.Integer index, V1Condition item) { + public A addToConditions(Integer index, V1Condition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -68,14 +65,11 @@ public A addToConditions(java.lang.Integer index, V1Condition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { + public A setToConditions(Integer index, V1Condition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -91,26 +85,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -118,9 +108,8 @@ public A addAllToConditions(Collection items) { - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -142,14 +129,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = each.next(); + V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -164,30 +149,28 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index) { + public V1Condition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition() { + public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition() { + public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -195,10 +178,8 @@ public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -206,14 +187,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { this.addToConditions(item); } } else { @@ -227,14 +207,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { + for (V1Condition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -242,43 +222,36 @@ public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition() { return new V1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item) { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewConditionLike( + V1Condition item) { return new V1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { - return new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1PodDisruptionBudgetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1Condition item) { + return new V1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editFirstCondition() { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editLastCondition() { + public V1PodDisruptionBudgetStatusFluent.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 io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate) { + public V1PodDisruptionBudgetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -290,33 +263,33 @@ public V1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Integer getCurrentHealthy() { + public Integer getCurrentHealthy() { return this.currentHealthy; } - public A withCurrentHealthy(java.lang.Integer currentHealthy) { + public A withCurrentHealthy(Integer currentHealthy) { this.currentHealthy = currentHealthy; return (A) this; } - public java.lang.Boolean hasCurrentHealthy() { + public Boolean hasCurrentHealthy() { return this.currentHealthy != null; } - public java.lang.Integer getDesiredHealthy() { + public Integer getDesiredHealthy() { return this.desiredHealthy; } - public A withDesiredHealthy(java.lang.Integer desiredHealthy) { + public A withDesiredHealthy(Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; return (A) this; } - public java.lang.Boolean hasDesiredHealthy() { + public Boolean hasDesiredHealthy() { return this.desiredHealthy != null; } - public A addToDisruptedPods(java.lang.String key, java.time.OffsetDateTime value) { + public A addToDisruptedPods(String key, OffsetDateTime value) { if (this.disruptedPods == null && key != null && value != null) { this.disruptedPods = new LinkedHashMap(); } @@ -326,9 +299,9 @@ public A addToDisruptedPods(java.lang.String key, java.time.OffsetDateTime value return (A) this; } - public A addToDisruptedPods(java.util.Map map) { + public A addToDisruptedPods(Map map) { if (this.disruptedPods == null && map != null) { - this.disruptedPods = new java.util.LinkedHashMap(); + this.disruptedPods = new LinkedHashMap(); } if (map != null) { this.disruptedPods.putAll(map); @@ -336,7 +309,7 @@ public A addToDisruptedPods(java.util.Map map) { + public A removeFromDisruptedPods(Map map) { if (this.disruptedPods == null) { return (A) this; } @@ -360,60 +333,59 @@ public A removeFromDisruptedPods(java.util.Map getDisruptedPods() { + public Map getDisruptedPods() { return this.disruptedPods; } - public A withDisruptedPods( - java.util.Map disruptedPods) { + public A withDisruptedPods(Map disruptedPods) { if (disruptedPods == null) { this.disruptedPods = null; } else { - this.disruptedPods = new java.util.LinkedHashMap(disruptedPods); + this.disruptedPods = new LinkedHashMap(disruptedPods); } return (A) this; } - public java.lang.Boolean hasDisruptedPods() { + public Boolean hasDisruptedPods() { return this.disruptedPods != null; } - public java.lang.Integer getDisruptionsAllowed() { + public Integer getDisruptionsAllowed() { return this.disruptionsAllowed; } - public A withDisruptionsAllowed(java.lang.Integer disruptionsAllowed) { + public A withDisruptionsAllowed(Integer disruptionsAllowed) { this.disruptionsAllowed = disruptionsAllowed; return (A) this; } - public java.lang.Boolean hasDisruptionsAllowed() { + public Boolean hasDisruptionsAllowed() { return this.disruptionsAllowed != null; } - public java.lang.Integer getExpectedPods() { + public Integer getExpectedPods() { return this.expectedPods; } - public A withExpectedPods(java.lang.Integer expectedPods) { + public A withExpectedPods(Integer expectedPods) { this.expectedPods = expectedPods; return (A) this; } - public java.lang.Boolean hasExpectedPods() { + public Boolean hasExpectedPods() { return this.expectedPods != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } @@ -455,7 +427,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (conditions != null && !conditions.isEmpty()) { @@ -492,22 +464,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1ConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1Condition item) { + implements V1PodDisruptionBudgetStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ConditionBuilder(this); + this.builder = new V1ConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder; - java.lang.Integer index; + V1ConditionBuilder builder; + Integer index; public N and() { return (N) V1PodDisruptionBudgetStatusFluentImpl.this.setToConditions(index, builder.build()); 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 new file mode 100644 index 0000000000..aeffaa3a3f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java @@ -0,0 +1,68 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1PodFailurePolicyBuilder + extends V1PodFailurePolicyFluentImpl + implements VisitableBuilder { + public V1PodFailurePolicyBuilder() { + this(false); + } + + public V1PodFailurePolicyBuilder(Boolean validationEnabled) { + this(new V1PodFailurePolicy(), validationEnabled); + } + + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent) { + this(fluent, false); + } + + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent, Boolean validationEnabled) { + this(fluent, new V1PodFailurePolicy(), validationEnabled); + } + + public V1PodFailurePolicyBuilder( + V1PodFailurePolicyFluent fluent, V1PodFailurePolicy instance) { + this(fluent, instance, false); + } + + public V1PodFailurePolicyBuilder( + V1PodFailurePolicyFluent fluent, V1PodFailurePolicy instance, Boolean validationEnabled) { + this.fluent = fluent; + fluent.withRules(instance.getRules()); + + this.validationEnabled = validationEnabled; + } + + public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance) { + this(instance, false); + } + + public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance, Boolean validationEnabled) { + this.fluent = this; + this.withRules(instance.getRules()); + + this.validationEnabled = validationEnabled; + } + + V1PodFailurePolicyFluent fluent; + Boolean validationEnabled; + + public V1PodFailurePolicy build() { + V1PodFailurePolicy buildable = new V1PodFailurePolicy(); + buildable.setRules(fluent.getRules()); + return buildable; + } +} 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 new file mode 100644 index 0000000000..712f420536 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java @@ -0,0 +1,86 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.fluent.Nested; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +public interface V1PodFailurePolicyFluent> extends Fluent { + public A addToRules(Integer index, V1PodFailurePolicyRule item); + + public A setToRules(Integer index, V1PodFailurePolicyRule item); + + public A addToRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items); + + public A addAllToRules(Collection items); + + public A removeFromRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items); + + public A removeAllFromRules(Collection items); + + public A removeMatchingFromRules(Predicate predicate); + + /** + * This method has been deprecated, please use method buildRules instead. + * + * @return The buildable object. + */ + @Deprecated + public List getRules(); + + public List buildRules(); + + public V1PodFailurePolicyRule buildRule(Integer index); + + public V1PodFailurePolicyRule buildFirstRule(); + + public V1PodFailurePolicyRule buildLastRule(); + + public V1PodFailurePolicyRule buildMatchingRule( + Predicate predicate); + + public Boolean hasMatchingRule(Predicate predicate); + + public A withRules(List rules); + + public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... rules); + + public Boolean hasRules(); + + public V1PodFailurePolicyFluent.RulesNested addNewRule(); + + public V1PodFailurePolicyFluent.RulesNested addNewRuleLike(V1PodFailurePolicyRule item); + + public V1PodFailurePolicyFluent.RulesNested setNewRuleLike( + Integer index, V1PodFailurePolicyRule item); + + public V1PodFailurePolicyFluent.RulesNested editRule(Integer index); + + public V1PodFailurePolicyFluent.RulesNested editFirstRule(); + + public V1PodFailurePolicyFluent.RulesNested editLastRule(); + + public V1PodFailurePolicyFluent.RulesNested editMatchingRule( + Predicate predicate); + + public interface RulesNested + extends Nested, V1PodFailurePolicyRuleFluent> { + public N and(); + + public N endRule(); + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java new file mode 100644 index 0000000000..5af3aea1be --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluentImpl.java @@ -0,0 +1,288 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1PodFailurePolicyFluentImpl> + extends BaseFluent implements V1PodFailurePolicyFluent { + public V1PodFailurePolicyFluentImpl() {} + + public V1PodFailurePolicyFluentImpl(V1PodFailurePolicy instance) { + this.withRules(instance.getRules()); + } + + private ArrayList rules; + + public A addToRules(Integer index, V1PodFailurePolicyRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); + this.rules.add(index >= 0 ? index : rules.size(), builder); + return (A) this; + } + + public A setToRules(Integer index, V1PodFailurePolicyRule item) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + if (index < 0 || index >= _visitables.get("rules").size()) { + _visitables.get("rules").add(builder); + } else { + _visitables.get("rules").set(index, builder); + } + if (index < 0 || index >= rules.size()) { + rules.add(builder); + } else { + rules.set(index, builder); + } + 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 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; + } + + public A removeFromRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + if (this.rules != null) { + this.rules.remove(builder); + } + } + return (A) this; + } + + public A removeAllFromRules(Collection items) { + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + if (this.rules != null) { + 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"); + while (each.hasNext()) { + V1PodFailurePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + /** + * This method has been deprecated, please use method buildRules instead. + * + * @return The buildable object. + */ + @Deprecated + public List getRules() { + return rules != null ? build(rules) : null; + } + + public List buildRules() { + return rules != null ? build(rules) : null; + } + + public V1PodFailurePolicyRule buildRule(Integer index) { + return this.rules.get(index).build(); + } + + public V1PodFailurePolicyRule buildFirstRule() { + return this.rules.get(0).build(); + } + + public V1PodFailurePolicyRule buildLastRule() { + return this.rules.get(rules.size() - 1).build(); + } + + public V1PodFailurePolicyRule buildMatchingRule( + Predicate predicate) { + for (V1PodFailurePolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public Boolean hasMatchingRule(Predicate predicate) { + for (V1PodFailurePolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withRules(List rules) { + if (this.rules != null) { + _visitables.get("rules").removeAll(this.rules); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PodFailurePolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + } + if (rules != null) { + for (V1PodFailurePolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } + + public Boolean hasRules() { + return rules != null && !rules.isEmpty(); + } + + public V1PodFailurePolicyFluent.RulesNested addNewRule() { + return new V1PodFailurePolicyFluentImpl.RulesNestedImpl(); + } + + public V1PodFailurePolicyFluent.RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { + return new V1PodFailurePolicyFluentImpl.RulesNestedImpl(-1, item); + } + + public V1PodFailurePolicyFluent.RulesNested setNewRuleLike( + Integer index, V1PodFailurePolicyRule item) { + return new V1PodFailurePolicyFluentImpl.RulesNestedImpl(index, item); + } + + public V1PodFailurePolicyFluent.RulesNested editRule(Integer index) { + if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); + return setNewRuleLike(index, buildRule(index)); + } + + public V1PodFailurePolicyFluent.RulesNested editFirstRule() { + if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); + return setNewRuleLike(0, buildRule(0)); + } + + public V1PodFailurePolicyFluent.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)); + } + + public V1PodFailurePolicyFluent.RulesNested editMatchingRule( + Predicate predicate) { + int index = -1; + for (int i = 0; i < rules.size(); i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) throw new RuntimeException("Can't edit matching rules. No match found."); + return setNewRuleLike(index, buildRule(index)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1PodFailurePolicyFluentImpl that = (V1PodFailurePolicyFluentImpl) o; + if (rules != null ? !rules.equals(that.rules) : that.rules != null) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(rules, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (rules != null && !rules.isEmpty()) { + sb.append("rules:"); + sb.append(rules); + } + sb.append("}"); + return sb.toString(); + } + + class RulesNestedImpl + extends V1PodFailurePolicyRuleFluentImpl> + implements V1PodFailurePolicyFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1PodFailurePolicyRule item) { + this.index = index; + this.builder = new V1PodFailurePolicyRuleBuilder(this, item); + } + + RulesNestedImpl() { + this.index = -1; + this.builder = new V1PodFailurePolicyRuleBuilder(this); + } + + V1PodFailurePolicyRuleBuilder builder; + Integer index; + + public N and() { + return (N) V1PodFailurePolicyFluentImpl.this.setToRules(index, builder.build()); + } + + public N endRule() { + return and(); + } + } +} 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 new file mode 100644 index 0000000000..49cb1be952 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java @@ -0,0 +1,88 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1PodFailurePolicyOnExitCodesRequirementBuilder + extends V1PodFailurePolicyOnExitCodesRequirementFluentImpl< + V1PodFailurePolicyOnExitCodesRequirementBuilder> + implements VisitableBuilder< + V1PodFailurePolicyOnExitCodesRequirement, V1PodFailurePolicyOnExitCodesRequirementBuilder> { + public V1PodFailurePolicyOnExitCodesRequirementBuilder() { + this(false); + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder(Boolean validationEnabled) { + this(new V1PodFailurePolicyOnExitCodesRequirement(), validationEnabled); + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder( + V1PodFailurePolicyOnExitCodesRequirementFluent fluent) { + this(fluent, false); + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder( + V1PodFailurePolicyOnExitCodesRequirementFluent fluent, Boolean validationEnabled) { + this(fluent, new V1PodFailurePolicyOnExitCodesRequirement(), validationEnabled); + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder( + V1PodFailurePolicyOnExitCodesRequirementFluent fluent, + V1PodFailurePolicyOnExitCodesRequirement instance) { + this(fluent, instance, false); + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder( + V1PodFailurePolicyOnExitCodesRequirementFluent fluent, + V1PodFailurePolicyOnExitCodesRequirement instance, + Boolean validationEnabled) { + this.fluent = fluent; + fluent.withContainerName(instance.getContainerName()); + + fluent.withOperator(instance.getOperator()); + + fluent.withValues(instance.getValues()); + + this.validationEnabled = validationEnabled; + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder( + V1PodFailurePolicyOnExitCodesRequirement instance) { + this(instance, false); + } + + public V1PodFailurePolicyOnExitCodesRequirementBuilder( + V1PodFailurePolicyOnExitCodesRequirement instance, Boolean validationEnabled) { + this.fluent = this; + this.withContainerName(instance.getContainerName()); + + this.withOperator(instance.getOperator()); + + this.withValues(instance.getValues()); + + this.validationEnabled = validationEnabled; + } + + V1PodFailurePolicyOnExitCodesRequirementFluent fluent; + Boolean validationEnabled; + + public V1PodFailurePolicyOnExitCodesRequirement build() { + V1PodFailurePolicyOnExitCodesRequirement buildable = + new V1PodFailurePolicyOnExitCodesRequirement(); + buildable.setContainerName(fluent.getContainerName()); + buildable.setOperator(fluent.getOperator()); + buildable.setValues(fluent.getValues()); + return buildable; + } +} 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 new file mode 100644 index 0000000000..ce6ffe7ea6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java @@ -0,0 +1,65 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.Fluent; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +public interface V1PodFailurePolicyOnExitCodesRequirementFluent< + A extends V1PodFailurePolicyOnExitCodesRequirementFluent> + extends Fluent { + public String getContainerName(); + + public A withContainerName(String containerName); + + public Boolean hasContainerName(); + + public String getOperator(); + + public A withOperator(String operator); + + public Boolean hasOperator(); + + public A addToValues(Integer index, Integer item); + + public A setToValues(Integer index, Integer item); + + public A addToValues(java.lang.Integer... items); + + public A addAllToValues(Collection items); + + public A removeFromValues(java.lang.Integer... items); + + public A removeAllFromValues(Collection items); + + public List getValues(); + + public Integer getValue(Integer index); + + public Integer getFirstValue(); + + public Integer getLastValue(); + + public Integer getMatchingValue(Predicate predicate); + + public Boolean hasMatchingValue(Predicate predicate); + + public A withValues(List values); + + public A withValues(java.lang.Integer... values); + + public Boolean hasValues(); +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java new file mode 100644 index 0000000000..a8d39449ef --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluentImpl.java @@ -0,0 +1,218 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1PodFailurePolicyOnExitCodesRequirementFluentImpl< + A extends V1PodFailurePolicyOnExitCodesRequirementFluent> + extends BaseFluent implements V1PodFailurePolicyOnExitCodesRequirementFluent { + public V1PodFailurePolicyOnExitCodesRequirementFluentImpl() {} + + public V1PodFailurePolicyOnExitCodesRequirementFluentImpl( + V1PodFailurePolicyOnExitCodesRequirement instance) { + this.withContainerName(instance.getContainerName()); + + this.withOperator(instance.getOperator()); + + this.withValues(instance.getValues()); + } + + private String containerName; + private String operator; + private List values; + + 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 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(Integer index, Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } + + public A setToValues(Integer index, Integer item) { + 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 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(java.lang.Integer... items) { + for (Integer item : items) { + if (this.values != null) { + this.values.remove(item); + } + } + return (A) this; + } + + public A removeAllFromValues(Collection items) { + for (Integer item : items) { + if (this.values != null) { + this.values.remove(item); + } + } + return (A) this; + } + + public List getValues() { + return this.values; + } + + public Integer getValue(Integer 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(java.lang.Integer... values) { + if (this.values != null) { + this.values.clear(); + } + if (values != null) { + for (Integer item : values) { + this.addToValues(item); + } + } + return (A) this; + } + + public Boolean hasValues() { + return values != null && !values.isEmpty(); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1PodFailurePolicyOnExitCodesRequirementFluentImpl that = + (V1PodFailurePolicyOnExitCodesRequirementFluentImpl) o; + if (containerName != null + ? !containerName.equals(that.containerName) + : that.containerName != null) return false; + if (operator != null ? !operator.equals(that.operator) : that.operator != null) return false; + if (values != null ? !values.equals(that.values) : that.values != null) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(containerName, operator, values, super.hashCode()); + } + + 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); + } + 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 new file mode 100644 index 0000000000..4aad2a2f6e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java @@ -0,0 +1,83 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1PodFailurePolicyOnPodConditionsPatternBuilder + extends V1PodFailurePolicyOnPodConditionsPatternFluentImpl< + V1PodFailurePolicyOnPodConditionsPatternBuilder> + implements VisitableBuilder< + V1PodFailurePolicyOnPodConditionsPattern, V1PodFailurePolicyOnPodConditionsPatternBuilder> { + public V1PodFailurePolicyOnPodConditionsPatternBuilder() { + this(false); + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder(Boolean validationEnabled) { + this(new V1PodFailurePolicyOnPodConditionsPattern(), validationEnabled); + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder( + V1PodFailurePolicyOnPodConditionsPatternFluent fluent) { + this(fluent, false); + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder( + V1PodFailurePolicyOnPodConditionsPatternFluent fluent, Boolean validationEnabled) { + this(fluent, new V1PodFailurePolicyOnPodConditionsPattern(), validationEnabled); + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder( + V1PodFailurePolicyOnPodConditionsPatternFluent fluent, + V1PodFailurePolicyOnPodConditionsPattern instance) { + this(fluent, instance, false); + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder( + V1PodFailurePolicyOnPodConditionsPatternFluent fluent, + V1PodFailurePolicyOnPodConditionsPattern instance, + Boolean validationEnabled) { + this.fluent = fluent; + fluent.withStatus(instance.getStatus()); + + fluent.withType(instance.getType()); + + this.validationEnabled = validationEnabled; + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder( + V1PodFailurePolicyOnPodConditionsPattern instance) { + this(instance, false); + } + + public V1PodFailurePolicyOnPodConditionsPatternBuilder( + V1PodFailurePolicyOnPodConditionsPattern instance, Boolean validationEnabled) { + this.fluent = this; + this.withStatus(instance.getStatus()); + + this.withType(instance.getType()); + + this.validationEnabled = validationEnabled; + } + + V1PodFailurePolicyOnPodConditionsPatternFluent fluent; + Boolean validationEnabled; + + public V1PodFailurePolicyOnPodConditionsPattern build() { + V1PodFailurePolicyOnPodConditionsPattern buildable = + new V1PodFailurePolicyOnPodConditionsPattern(); + buildable.setStatus(fluent.getStatus()); + buildable.setType(fluent.getType()); + return buildable; + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java similarity index 68% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java index 181f1bf5c6..0aae574939 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java @@ -15,17 +15,18 @@ import io.kubernetes.client.fluent.Fluent; /** Generated */ -public interface V1beta1HostPortRangeFluent> +public interface V1PodFailurePolicyOnPodConditionsPatternFluent< + A extends V1PodFailurePolicyOnPodConditionsPatternFluent> extends Fluent { - public Integer getMax(); + public String getStatus(); - public A withMax(java.lang.Integer max); + public A withStatus(String status); - public Boolean hasMax(); + public Boolean hasStatus(); - public java.lang.Integer getMin(); + public String getType(); - public A withMin(java.lang.Integer min); + public A withType(String type); - public java.lang.Boolean hasMin(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java new file mode 100644 index 0000000000..7fa2c90336 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluentImpl.java @@ -0,0 +1,88 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1PodFailurePolicyOnPodConditionsPatternFluentImpl< + A extends V1PodFailurePolicyOnPodConditionsPatternFluent> + extends BaseFluent implements V1PodFailurePolicyOnPodConditionsPatternFluent { + public V1PodFailurePolicyOnPodConditionsPatternFluentImpl() {} + + public V1PodFailurePolicyOnPodConditionsPatternFluentImpl( + V1PodFailurePolicyOnPodConditionsPattern instance) { + this.withStatus(instance.getStatus()); + + this.withType(instance.getType()); + } + + private String status; + private String type; + + public String getStatus() { + return this.status; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public Boolean hasStatus() { + return this.status != null; + } + + public String getType() { + return this.type; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public Boolean hasType() { + return this.type != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1PodFailurePolicyOnPodConditionsPatternFluentImpl that = + (V1PodFailurePolicyOnPodConditionsPatternFluentImpl) o; + if (status != null ? !status.equals(that.status) : that.status != null) return false; + if (type != null ? !type.equals(that.type) : that.type != null) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(status, type, super.hashCode()); + } + + 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); + } + 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 new file mode 100644 index 0000000000..7afb20ada8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java @@ -0,0 +1,81 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1PodFailurePolicyRuleBuilder + extends V1PodFailurePolicyRuleFluentImpl + implements VisitableBuilder { + public V1PodFailurePolicyRuleBuilder() { + this(false); + } + + public V1PodFailurePolicyRuleBuilder(Boolean validationEnabled) { + this(new V1PodFailurePolicyRule(), validationEnabled); + } + + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent) { + this(fluent, false); + } + + public V1PodFailurePolicyRuleBuilder( + V1PodFailurePolicyRuleFluent fluent, Boolean validationEnabled) { + this(fluent, new V1PodFailurePolicyRule(), validationEnabled); + } + + public V1PodFailurePolicyRuleBuilder( + V1PodFailurePolicyRuleFluent fluent, V1PodFailurePolicyRule instance) { + this(fluent, instance, false); + } + + public V1PodFailurePolicyRuleBuilder( + V1PodFailurePolicyRuleFluent fluent, + V1PodFailurePolicyRule instance, + Boolean validationEnabled) { + this.fluent = fluent; + fluent.withAction(instance.getAction()); + + fluent.withOnExitCodes(instance.getOnExitCodes()); + + fluent.withOnPodConditions(instance.getOnPodConditions()); + + this.validationEnabled = validationEnabled; + } + + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance) { + this(instance, false); + } + + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance, Boolean validationEnabled) { + this.fluent = this; + this.withAction(instance.getAction()); + + this.withOnExitCodes(instance.getOnExitCodes()); + + this.withOnPodConditions(instance.getOnPodConditions()); + + this.validationEnabled = validationEnabled; + } + + V1PodFailurePolicyRuleFluent fluent; + Boolean validationEnabled; + + public V1PodFailurePolicyRule build() { + V1PodFailurePolicyRule buildable = new V1PodFailurePolicyRule(); + buildable.setAction(fluent.getAction()); + buildable.setOnExitCodes(fluent.getOnExitCodes()); + buildable.setOnPodConditions(fluent.getOnPodConditions()); + return buildable; + } +} 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 new file mode 100644 index 0000000000..bb4c2cfbec --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java @@ -0,0 +1,137 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.fluent.Nested; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +public interface V1PodFailurePolicyRuleFluent> + extends Fluent { + public String getAction(); + + public A withAction(String action); + + public Boolean hasAction(); + + /** + * This method has been deprecated, please use method buildOnExitCodes instead. + * + * @return The buildable object. + */ + @Deprecated + public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes(); + + public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes(); + + public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes); + + public Boolean hasOnExitCodes(); + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodes(); + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodesLike( + V1PodFailurePolicyOnExitCodesRequirement item); + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOnExitCodes(); + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodes(); + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodesLike( + V1PodFailurePolicyOnExitCodesRequirement item); + + public A addToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item); + + public A setToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item); + + public A addToOnPodConditions( + io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items); + + public A addAllToOnPodConditions(Collection items); + + public A removeFromOnPodConditions( + io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items); + + public A removeAllFromOnPodConditions(Collection items); + + public A removeMatchingFromOnPodConditions( + Predicate predicate); + + /** + * This method has been deprecated, please use method buildOnPodConditions instead. + * + * @return The buildable object. + */ + @Deprecated + public List getOnPodConditions(); + + public List buildOnPodConditions(); + + public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(Integer index); + + public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition(); + + public V1PodFailurePolicyOnPodConditionsPattern buildLastOnPodCondition(); + + public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition( + Predicate predicate); + + public Boolean hasMatchingOnPodCondition( + Predicate predicate); + + public A withOnPodConditions(List onPodConditions); + + public A withOnPodConditions( + io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... + onPodConditions); + + public Boolean hasOnPodConditions(); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodCondition(); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodConditionLike( + V1PodFailurePolicyOnPodConditionsPattern item); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested setNewOnPodConditionLike( + Integer index, V1PodFailurePolicyOnPodConditionsPattern item); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editOnPodCondition(Integer index); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editFirstOnPodCondition(); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editLastOnPodCondition(); + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editMatchingOnPodCondition( + Predicate predicate); + + public interface OnExitCodesNested + extends Nested, + V1PodFailurePolicyOnExitCodesRequirementFluent< + V1PodFailurePolicyRuleFluent.OnExitCodesNested> { + public N and(); + + public N endOnExitCodes(); + } + + public interface OnPodConditionsNested + extends Nested, + V1PodFailurePolicyOnPodConditionsPatternFluent< + V1PodFailurePolicyRuleFluent.OnPodConditionsNested> { + public N and(); + + public N endOnPodCondition(); + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java new file mode 100644 index 0000000000..85f4bf960d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluentImpl.java @@ -0,0 +1,420 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1PodFailurePolicyRuleFluentImpl> + extends BaseFluent implements V1PodFailurePolicyRuleFluent { + public V1PodFailurePolicyRuleFluentImpl() {} + + public V1PodFailurePolicyRuleFluentImpl(V1PodFailurePolicyRule instance) { + this.withAction(instance.getAction()); + + this.withOnExitCodes(instance.getOnExitCodes()); + + this.withOnPodConditions(instance.getOnPodConditions()); + } + + private String action; + private V1PodFailurePolicyOnExitCodesRequirementBuilder onExitCodes; + private ArrayList onPodConditions; + + public String getAction() { + return this.action; + } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public Boolean hasAction() { + return this.action != null; + } + + /** + * This method has been deprecated, please use method buildOnExitCodes instead. + * + * @return The buildable object. + */ + @Deprecated + public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes() { + return this.onExitCodes != null ? this.onExitCodes.build() : null; + } + + public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes() { + return this.onExitCodes != null ? this.onExitCodes.build() : null; + } + + public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + _visitables.get("onExitCodes").remove(this.onExitCodes); + if (onExitCodes != null) { + this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); + _visitables.get("onExitCodes").add(this.onExitCodes); + } else { + this.onExitCodes = null; + _visitables.get("onExitCodes").remove(this.onExitCodes); + } + return (A) this; + } + + public Boolean hasOnExitCodes() { + return this.onExitCodes != null; + } + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodes() { + return new V1PodFailurePolicyRuleFluentImpl.OnExitCodesNestedImpl(); + } + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested withNewOnExitCodesLike( + V1PodFailurePolicyOnExitCodesRequirement item) { + return new V1PodFailurePolicyRuleFluentImpl.OnExitCodesNestedImpl(item); + } + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOnExitCodes() { + return withNewOnExitCodesLike(getOnExitCodes()); + } + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodes() { + return withNewOnExitCodesLike( + getOnExitCodes() != null + ? getOnExitCodes() + : new V1PodFailurePolicyOnExitCodesRequirementBuilder().build()); + } + + public V1PodFailurePolicyRuleFluent.OnExitCodesNested editOrNewOnExitCodesLike( + V1PodFailurePolicyOnExitCodesRequirement item) { + return withNewOnExitCodesLike(getOnExitCodes() != null ? getOnExitCodes() : item); + } + + public A addToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = + new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables + .get("onPodConditions") + .add(index >= 0 ? index : _visitables.get("onPodConditions").size(), builder); + this.onPodConditions.add(index >= 0 ? index : onPodConditions.size(), builder); + return (A) this; + } + + public A setToOnPodConditions(Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = + new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + if (index < 0 || index >= _visitables.get("onPodConditions").size()) { + _visitables.get("onPodConditions").add(builder); + } else { + _visitables.get("onPodConditions").set(index, builder); + } + if (index < 0 || index >= onPodConditions.size()) { + onPodConditions.add(builder); + } else { + onPodConditions.set(index, builder); + } + 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 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; + } + + public A removeFromOnPodConditions( + io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = + new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + if (this.onPodConditions != null) { + this.onPodConditions.remove(builder); + } + } + return (A) this; + } + + public A removeAllFromOnPodConditions( + Collection items) { + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = + new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + if (this.onPodConditions != null) { + 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"); + while (each.hasNext()) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + /** + * This method has been deprecated, please use method buildOnPodConditions instead. + * + * @return The buildable object. + */ + @Deprecated + public List getOnPodConditions() { + return onPodConditions != null ? build(onPodConditions) : null; + } + + public List buildOnPodConditions() { + return onPodConditions != null ? build(onPodConditions) : null; + } + + public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(Integer index) { + return this.onPodConditions.get(index).build(); + } + + public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition() { + return this.onPodConditions.get(0).build(); + } + + public V1PodFailurePolicyOnPodConditionsPattern buildLastOnPodCondition() { + return this.onPodConditions.get(onPodConditions.size() - 1).build(); + } + + public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition( + Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public Boolean hasMatchingOnPodCondition( + Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withOnPodConditions(List onPodConditions) { + if (this.onPodConditions != null) { + _visitables.get("onPodConditions").removeAll(this.onPodConditions); + } + if (onPodConditions != null) { + this.onPodConditions = new ArrayList(); + for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { + this.addToOnPodConditions(item); + } + } else { + this.onPodConditions = null; + } + return (A) this; + } + + public A withOnPodConditions( + io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... + onPodConditions) { + if (this.onPodConditions != null) { + this.onPodConditions.clear(); + } + if (onPodConditions != null) { + for (V1PodFailurePolicyOnPodConditionsPattern item : onPodConditions) { + this.addToOnPodConditions(item); + } + } + return (A) this; + } + + public Boolean hasOnPodConditions() { + return onPodConditions != null && !onPodConditions.isEmpty(); + } + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodCondition() { + return new V1PodFailurePolicyRuleFluentImpl.OnPodConditionsNestedImpl(); + } + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested addNewOnPodConditionLike( + V1PodFailurePolicyOnPodConditionsPattern item) { + return new V1PodFailurePolicyRuleFluentImpl.OnPodConditionsNestedImpl(-1, item); + } + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested setNewOnPodConditionLike( + Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { + return new V1PodFailurePolicyRuleFluentImpl.OnPodConditionsNestedImpl(index, item); + } + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editOnPodCondition(Integer index) { + if (onPodConditions.size() <= index) + throw new RuntimeException("Can't edit onPodConditions. Index exceeds size."); + return setNewOnPodConditionLike(index, buildOnPodCondition(index)); + } + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editFirstOnPodCondition() { + if (onPodConditions.size() == 0) + throw new RuntimeException("Can't edit first onPodConditions. The list is empty."); + return setNewOnPodConditionLike(0, buildOnPodCondition(0)); + } + + public V1PodFailurePolicyRuleFluent.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)); + } + + public V1PodFailurePolicyRuleFluent.OnPodConditionsNested editMatchingOnPodCondition( + Predicate predicate) { + int index = -1; + for (int i = 0; i < onPodConditions.size(); i++) { + if (predicate.test(onPodConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) + throw new RuntimeException("Can't edit matching onPodConditions. No match found."); + return setNewOnPodConditionLike(index, buildOnPodCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1PodFailurePolicyRuleFluentImpl that = (V1PodFailurePolicyRuleFluentImpl) o; + if (action != null ? !action.equals(that.action) : that.action != null) return false; + if (onExitCodes != null ? !onExitCodes.equals(that.onExitCodes) : that.onExitCodes != null) + return false; + if (onPodConditions != null + ? !onPodConditions.equals(that.onPodConditions) + : that.onPodConditions != null) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(action, onExitCodes, onPodConditions, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (action != null) { + sb.append("action:"); + sb.append(action + ","); + } + if (onExitCodes != null) { + sb.append("onExitCodes:"); + sb.append(onExitCodes + ","); + } + if (onPodConditions != null && !onPodConditions.isEmpty()) { + sb.append("onPodConditions:"); + sb.append(onPodConditions); + } + sb.append("}"); + return sb.toString(); + } + + class OnExitCodesNestedImpl + extends V1PodFailurePolicyOnExitCodesRequirementFluentImpl< + V1PodFailurePolicyRuleFluent.OnExitCodesNested> + implements V1PodFailurePolicyRuleFluent.OnExitCodesNested, Nested { + OnExitCodesNestedImpl(V1PodFailurePolicyOnExitCodesRequirement item) { + this.builder = new V1PodFailurePolicyOnExitCodesRequirementBuilder(this, item); + } + + OnExitCodesNestedImpl() { + this.builder = new V1PodFailurePolicyOnExitCodesRequirementBuilder(this); + } + + V1PodFailurePolicyOnExitCodesRequirementBuilder builder; + + public N and() { + return (N) V1PodFailurePolicyRuleFluentImpl.this.withOnExitCodes(builder.build()); + } + + public N endOnExitCodes() { + return and(); + } + } + + class OnPodConditionsNestedImpl + extends V1PodFailurePolicyOnPodConditionsPatternFluentImpl< + V1PodFailurePolicyRuleFluent.OnPodConditionsNested> + implements V1PodFailurePolicyRuleFluent.OnPodConditionsNested, Nested { + OnPodConditionsNestedImpl(Integer index, V1PodFailurePolicyOnPodConditionsPattern item) { + this.index = index; + this.builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(this, item); + } + + OnPodConditionsNestedImpl() { + this.index = -1; + this.builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(this); + } + + V1PodFailurePolicyOnPodConditionsPatternBuilder builder; + Integer index; + + public N and() { + return (N) V1PodFailurePolicyRuleFluentImpl.this.setToOnPodConditions(index, builder.build()); + } + + public N endOnPodCondition() { + return and(); + } + } +} 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 91999e082b..750cb63cfd 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 @@ -19,15 +19,15 @@ public interface V1PodFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1PodFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PodFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editMetadata(); + public V1PodFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editOrNewMetadata(); + public V1PodFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodSpec getSpec(); - public io.kubernetes.client.openapi.models.V1PodSpec buildSpec(); + public V1PodSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1PodSpec spec); + public A withSpec(V1PodSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1PodFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1PodSpec item); + public V1PodFluent.SpecNested withNewSpecLike(V1PodSpec item); - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editSpec(); + public V1PodFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editOrNewSpec(); + public V1PodFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1PodSpec item); + public V1PodFluent.SpecNested editOrNewSpecLike(V1PodSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodStatus getStatus(); - public io.kubernetes.client.openapi.models.V1PodStatus buildStatus(); + public V1PodStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1PodStatus status); + public A withStatus(V1PodStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1PodFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1PodStatus item); + public V1PodFluent.StatusNested withNewStatusLike(V1PodStatus item); - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested editStatus(); + public V1PodFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested editOrNewStatus(); + public V1PodFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1PodStatus item); + public V1PodFluent.StatusNested editOrNewStatusLike(V1PodStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -114,16 +108,14 @@ public interface MetadataNested public N endMetadata(); } - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, V1PodSpecFluent> { + public interface SpecNested extends Nested, V1PodSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1PodStatusFluent> { + extends Nested, V1PodStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java index 03f57c9b29..c244e73ab6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluentImpl.java @@ -21,7 +21,7 @@ public class V1PodFluentImpl> extends BaseFluent implements V1PodFluent { public V1PodFluentImpl() {} - public V1PodFluentImpl(io.kubernetes.client.openapi.models.V1Pod instance) { + public V1PodFluentImpl(V1Pod instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1PodFluentImpl(io.kubernetes.client.openapi.models.V1Pod instance) { } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1PodSpecBuilder spec; private V1PodStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1PodFluent.MetadataNested withNewMetadata() { return new V1PodFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editMetadata() { + public V1PodFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editOrNewMetadata() { + public V1PodFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested editOrN * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1PodSpec buildSpec() { + public V1PodSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1PodSpec spec) { + public A withSpec(V1PodSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1PodSpecBuilder(spec); + this.spec = new V1PodSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1PodFluent.SpecNested withNewSpec() { return new V1PodFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1PodSpec item) { - return new io.kubernetes.client.openapi.models.V1PodFluentImpl.SpecNestedImpl(item); + public V1PodFluent.SpecNested withNewSpecLike(V1PodSpec item) { + return new V1PodFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editSpec() { + public V1PodFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1PodSpecBuilder().build()); + public V1PodFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1PodSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1PodSpec item) { + public V1PodFluent.SpecNested editOrNewSpecLike(V1PodSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1PodFluent.SpecNested editOrNewSp * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1PodStatus buildStatus() { + public V1PodStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1PodStatus status) { + public A withStatus(V1PodStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1PodStatusBuilder(status); + this.status = new V1PodStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,19 @@ public V1PodFluent.StatusNested withNewStatus() { return new V1PodFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1PodStatus item) { - return new io.kubernetes.client.openapi.models.V1PodFluentImpl.StatusNestedImpl(item); + public V1PodFluent.StatusNested withNewStatusLike(V1PodStatus item) { + return new V1PodFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested editStatus() { + public V1PodFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1PodStatusBuilder().build()); + public V1PodFluent.StatusNested editOrNewStatus() { + return withNewStatusLike(getStatus() != null ? getStatus() : new V1PodStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1PodStatus item) { + public V1PodFluent.StatusNested editOrNewStatusLike(V1PodStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +233,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +261,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodFluent.MetadataNested, Nested { + implements V1PodFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PodFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +282,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1PodSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1PodFluent.SpecNested, Nested { SpecNestedImpl(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodSpecBuilder(this); + this.builder = new V1PodSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodSpecBuilder builder; + V1PodSpecBuilder builder; public N and() { return (N) V1PodFluentImpl.this.withSpec(builder.build()); @@ -309,17 +303,16 @@ public N endSpec() { } class StatusNestedImpl extends V1PodStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1PodStatus item) { + implements V1PodFluent.StatusNested, Nested { + StatusNestedImpl(V1PodStatus item) { this.builder = new V1PodStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodStatusBuilder(this); + this.builder = new V1PodStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1PodStatusBuilder builder; + V1PodStatusBuilder builder; public N and() { return (N) V1PodFluentImpl.this.withStatus(builder.build()); 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 2d6c23562e..6df6a67fe8 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodIPBuilder extends V1PodIPFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodIP, - io.kubernetes.client.openapi.models.V1PodIPBuilder> { + implements VisitableBuilder { public V1PodIPBuilder() { this(false); } @@ -30,44 +28,36 @@ public V1PodIPBuilder(V1PodIPFluent fluent) { this(fluent, false); } - public V1PodIPBuilder( - io.kubernetes.client.openapi.models.V1PodIPFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodIPBuilder(V1PodIPFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodIP(), validationEnabled); } - public V1PodIPBuilder( - io.kubernetes.client.openapi.models.V1PodIPFluent fluent, - io.kubernetes.client.openapi.models.V1PodIP instance) { + public V1PodIPBuilder(V1PodIPFluent fluent, V1PodIP instance) { this(fluent, instance, false); } - public V1PodIPBuilder( - io.kubernetes.client.openapi.models.V1PodIPFluent fluent, - io.kubernetes.client.openapi.models.V1PodIP instance, - java.lang.Boolean validationEnabled) { + public V1PodIPBuilder(V1PodIPFluent fluent, V1PodIP instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withIp(instance.getIp()); this.validationEnabled = validationEnabled; } - public V1PodIPBuilder(io.kubernetes.client.openapi.models.V1PodIP instance) { + public V1PodIPBuilder(V1PodIP instance) { this(instance, false); } - public V1PodIPBuilder( - io.kubernetes.client.openapi.models.V1PodIP instance, java.lang.Boolean validationEnabled) { + public V1PodIPBuilder(V1PodIP instance, Boolean validationEnabled) { this.fluent = this; this.withIp(instance.getIp()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodIPFluent fluent; - java.lang.Boolean validationEnabled; + V1PodIPFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodIP build() { + public V1PodIP build() { V1PodIP buildable = new V1PodIP(); buildable.setIp(fluent.getIp()); return buildable; 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 fb84610879..199262947a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java @@ -18,7 +18,7 @@ public interface V1PodIPFluent> extends Fluent { public String getIp(); - public A withIp(java.lang.String ip); + public A withIp(String ip); public Boolean hasIp(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java index d3f2950c29..04f8d64b54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluentImpl.java @@ -20,17 +20,17 @@ public class V1PodIPFluentImpl> extends BaseFluent implements V1PodIPFluent { public V1PodIPFluentImpl() {} - public V1PodIPFluentImpl(io.kubernetes.client.openapi.models.V1PodIP instance) { + public V1PodIPFluentImpl(V1PodIP instance) { this.withIp(instance.getIp()); } private String ip; - public java.lang.String getIp() { + public String getIp() { return this.ip; } - public A withIp(java.lang.String ip) { + public A withIp(String ip) { this.ip = ip; return (A) this; } @@ -51,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(ip, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (ip != null) { 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 b582176ae9..72926f67f4 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodListBuilder extends V1PodListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodList, - io.kubernetes.client.openapi.models.V1PodListBuilder> { + implements VisitableBuilder { public V1PodListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PodListBuilder(V1PodListFluent fluent) { this(fluent, false); } - public V1PodListBuilder( - io.kubernetes.client.openapi.models.V1PodListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodListBuilder(V1PodListFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodList(), validationEnabled); } - public V1PodListBuilder( - io.kubernetes.client.openapi.models.V1PodListFluent fluent, - io.kubernetes.client.openapi.models.V1PodList instance) { + public V1PodListBuilder(V1PodListFluent fluent, V1PodList instance) { this(fluent, instance, false); } public V1PodListBuilder( - io.kubernetes.client.openapi.models.V1PodListFluent fluent, - io.kubernetes.client.openapi.models.V1PodList instance, - java.lang.Boolean validationEnabled) { + V1PodListFluent fluent, V1PodList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +50,11 @@ public V1PodListBuilder( this.validationEnabled = validationEnabled; } - public V1PodListBuilder(io.kubernetes.client.openapi.models.V1PodList instance) { + public V1PodListBuilder(V1PodList instance) { this(instance, false); } - public V1PodListBuilder( - io.kubernetes.client.openapi.models.V1PodList instance, java.lang.Boolean validationEnabled) { + public V1PodListBuilder(V1PodList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1PodListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodListFluent fluent; - java.lang.Boolean validationEnabled; + V1PodListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodList build() { + public V1PodList build() { V1PodList buildable = new V1PodList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 5c78773b69..845a3233e0 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 @@ -22,22 +22,21 @@ public interface V1PodListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1Pod item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Pod item); + public A setToItems(Integer index, V1Pod item); public A addToItems(io.kubernetes.client.openapi.models.V1Pod... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,77 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Pod buildItem(java.lang.Integer index); + public V1Pod buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Pod buildFirstItem(); + public V1Pod buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Pod buildLastItem(); + public V1Pod buildLastItem(); - public io.kubernetes.client.openapi.models.V1Pod buildMatchingItem( - java.util.function.Predicate predicate); + public V1Pod buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Pod... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1PodListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Pod item); + public V1PodListFluent.ItemsNested addNewItemLike(V1Pod item); - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Pod item); + public V1PodListFluent.ItemsNested setNewItemLike(Integer index, V1Pod item); - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1PodListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editFirstItem(); + public V1PodListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editLastItem(); + public V1PodListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1PodListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PodListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PodListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested editMetadata(); + public V1PodListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested editOrNewMetadata(); + public V1PodListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PodListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1PodFluent> { public N and(); @@ -126,8 +117,7 @@ public interface ItemsNested extends Nested, V1PodFluent - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java index b3c53388c9..2cc56c4e2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluentImpl.java @@ -38,14 +38,14 @@ public V1PodListFluentImpl(V1PodList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Pod item) { + public A addToItems(Integer index, V1Pod item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodBuilder builder = - new io.kubernetes.client.openapi.models.V1PodBuilder(item); + V1PodBuilder builder = new V1PodBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Pod item) { + public A setToItems(Integer index, V1Pod item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodBuilder builder = - new io.kubernetes.client.openapi.models.V1PodBuilder(item); + V1PodBuilder builder = new V1PodBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Pod... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Pod item : items) { - io.kubernetes.client.openapi.models.V1PodBuilder builder = - new io.kubernetes.client.openapi.models.V1PodBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Pod item : items) { - io.kubernetes.client.openapi.models.V1PodBuilder builder = - new io.kubernetes.client.openapi.models.V1PodBuilder(item); + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection ite } public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items) { - for (io.kubernetes.client.openapi.models.V1Pod item : items) { - io.kubernetes.client.openapi.models.V1PodBuilder builder = - new io.kubernetes.client.openapi.models.V1PodBuilder(item); + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items) { return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Pod item : items) { - io.kubernetes.client.openapi.models.V1PodBuilder builder = - new io.kubernetes.client.openapi.models.V1PodBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodBuilder builder = each.next(); + V1PodBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,29 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Pod buildItem(java.lang.Integer index) { + public V1Pod buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Pod buildFirstItem() { + public V1Pod buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Pod buildLastItem() { + public V1Pod buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Pod buildMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1PodBuilder item : items) { + public V1Pod buildMatchingItem(Predicate predicate) { + for (V1PodBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -186,9 +177,8 @@ public io.kubernetes.client.openapi.models.V1Pod buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1PodBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1PodBuilder item : items) { if (predicate.test(item)) { return true; } @@ -196,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Pod item : items) { + this.items = new ArrayList(); + for (V1Pod item : items) { this.addToItems(item); } } else { @@ -216,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Pod... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Pod item : items) { + for (V1Pod item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -231,35 +221,31 @@ public V1PodListFluent.ItemsNested addNewItem() { return new V1PodListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Pod item) { + public V1PodListFluent.ItemsNested addNewItemLike(V1Pod item) { return new V1PodListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Pod item) { - return new io.kubernetes.client.openapi.models.V1PodListFluentImpl.ItemsNestedImpl(index, item); + public V1PodListFluent.ItemsNested setNewItemLike(Integer index, V1Pod item) { + return new V1PodListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1PodListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editFirstItem() { + public V1PodListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editLastItem() { + public V1PodListFluent.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 io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate) { + public V1PodListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -271,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1PodListFluent.ItemsNested editMa return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -289,25 +275,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -315,24 +304,20 @@ public V1PodListFluent.MetadataNested withNewMetadata() { return new V1PodListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1PodListFluentImpl.MetadataNestedImpl(item); + public V1PodListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1PodListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested editMetadata() { + public V1PodListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested editOrNewMetadata() { + public V1PodListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1PodListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -352,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -377,18 +362,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1PodFluentImpl> implements V1PodListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Pod item) { + ItemsNestedImpl(Integer index, V1Pod item) { this.index = index; this.builder = new V1PodBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodBuilder(this); + this.builder = new V1PodBuilder(this); } - io.kubernetes.client.openapi.models.V1PodBuilder builder; - java.lang.Integer index; + V1PodBuilder builder; + Integer index; public N and() { return (N) V1PodListFluentImpl.this.setToItems(index, builder.build()); @@ -400,17 +385,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1PodListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1PodListFluentImpl.this.withMetadata(builder.build()); 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 41f5e42cbb..ab558a1e79 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodOSBuilder extends V1PodOSFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1PodOSBuilder() { this(false); } @@ -28,44 +28,36 @@ public V1PodOSBuilder(V1PodOSFluent fluent) { this(fluent, false); } - public V1PodOSBuilder( - io.kubernetes.client.openapi.models.V1PodOSFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodOSBuilder(V1PodOSFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodOS(), validationEnabled); } - public V1PodOSBuilder( - io.kubernetes.client.openapi.models.V1PodOSFluent fluent, - io.kubernetes.client.openapi.models.V1PodOS instance) { + public V1PodOSBuilder(V1PodOSFluent fluent, V1PodOS instance) { this(fluent, instance, false); } - public V1PodOSBuilder( - io.kubernetes.client.openapi.models.V1PodOSFluent fluent, - io.kubernetes.client.openapi.models.V1PodOS instance, - java.lang.Boolean validationEnabled) { + public V1PodOSBuilder(V1PodOSFluent fluent, V1PodOS instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1PodOSBuilder(io.kubernetes.client.openapi.models.V1PodOS instance) { + public V1PodOSBuilder(V1PodOS instance) { this(instance, false); } - public V1PodOSBuilder( - io.kubernetes.client.openapi.models.V1PodOS instance, java.lang.Boolean validationEnabled) { + public V1PodOSBuilder(V1PodOS instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodOSFluent fluent; - java.lang.Boolean validationEnabled; + V1PodOSFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodOS build() { + public V1PodOS build() { V1PodOS buildable = new V1PodOS(); buildable.setName(fluent.getName()); return buildable; 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 01d88a87bd..ca3cad526f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java @@ -18,7 +18,7 @@ public interface V1PodOSFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java index 58dce972bf..6d5a71e991 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluentImpl.java @@ -20,17 +20,17 @@ public class V1PodOSFluentImpl> extends BaseFluent implements V1PodOSFluent { public V1PodOSFluentImpl() {} - public V1PodOSFluentImpl(io.kubernetes.client.openapi.models.V1PodOS instance) { + public V1PodOSFluentImpl(V1PodOS instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -51,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 5cc665a234..5a3e839037 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 @@ -16,8 +16,7 @@ public class V1PodReadinessGateBuilder extends V1PodReadinessGateFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodReadinessGate, V1PodReadinessGateBuilder> { + implements VisitableBuilder { public V1PodReadinessGateBuilder() { this(false); } @@ -30,46 +29,38 @@ public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent) { this(fluent, false); } - public V1PodReadinessGateBuilder( - io.kubernetes.client.openapi.models.V1PodReadinessGateFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodReadinessGate(), validationEnabled); } public V1PodReadinessGateBuilder( - io.kubernetes.client.openapi.models.V1PodReadinessGateFluent fluent, - io.kubernetes.client.openapi.models.V1PodReadinessGate instance) { + V1PodReadinessGateFluent fluent, V1PodReadinessGate instance) { this(fluent, instance, false); } public V1PodReadinessGateBuilder( - io.kubernetes.client.openapi.models.V1PodReadinessGateFluent fluent, - io.kubernetes.client.openapi.models.V1PodReadinessGate instance, - java.lang.Boolean validationEnabled) { + V1PodReadinessGateFluent fluent, V1PodReadinessGate instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConditionType(instance.getConditionType()); this.validationEnabled = validationEnabled; } - public V1PodReadinessGateBuilder( - io.kubernetes.client.openapi.models.V1PodReadinessGate instance) { + public V1PodReadinessGateBuilder(V1PodReadinessGate instance) { this(instance, false); } - public V1PodReadinessGateBuilder( - io.kubernetes.client.openapi.models.V1PodReadinessGate instance, - java.lang.Boolean validationEnabled) { + public V1PodReadinessGateBuilder(V1PodReadinessGate instance, Boolean validationEnabled) { this.fluent = this; this.withConditionType(instance.getConditionType()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodReadinessGateFluent fluent; - java.lang.Boolean validationEnabled; + V1PodReadinessGateFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodReadinessGate build() { + public V1PodReadinessGate build() { V1PodReadinessGate buildable = new V1PodReadinessGate(); buildable.setConditionType(fluent.getConditionType()); return buildable; 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 fbd7873c6b..9034472600 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java @@ -18,7 +18,7 @@ public interface V1PodReadinessGateFluent> extends Fluent { public String getConditionType(); - public A withConditionType(java.lang.String conditionType); + public A withConditionType(String conditionType); public Boolean hasConditionType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java index a7f0069474..01f01eff15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluentImpl.java @@ -20,18 +20,17 @@ public class V1PodReadinessGateFluentImpl> extends BaseFluent implements V1PodReadinessGateFluent { public V1PodReadinessGateFluentImpl() {} - public V1PodReadinessGateFluentImpl( - io.kubernetes.client.openapi.models.V1PodReadinessGate instance) { + public V1PodReadinessGateFluentImpl(V1PodReadinessGate instance) { this.withConditionType(instance.getConditionType()); } private String conditionType; - public java.lang.String getConditionType() { + public String getConditionType() { return this.conditionType; } - public A withConditionType(java.lang.String conditionType) { + public A withConditionType(String conditionType) { this.conditionType = conditionType; return (A) this; } @@ -54,7 +53,7 @@ public int hashCode() { return java.util.Objects.hash(conditionType, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (conditionType != null) { 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 a522a7749b..ddb783e115 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 @@ -16,8 +16,7 @@ public class V1PodSecurityContextBuilder extends V1PodSecurityContextFluentImpl - implements VisitableBuilder< - V1PodSecurityContext, io.kubernetes.client.openapi.models.V1PodSecurityContextBuilder> { + implements VisitableBuilder { public V1PodSecurityContextBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent) { } public V1PodSecurityContextBuilder( - io.kubernetes.client.openapi.models.V1PodSecurityContextFluent fluent, - java.lang.Boolean validationEnabled) { + V1PodSecurityContextFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodSecurityContext(), validationEnabled); } public V1PodSecurityContextBuilder( - io.kubernetes.client.openapi.models.V1PodSecurityContextFluent fluent, - io.kubernetes.client.openapi.models.V1PodSecurityContext instance) { + V1PodSecurityContextFluent fluent, V1PodSecurityContext instance) { this(fluent, instance, false); } public V1PodSecurityContextBuilder( - io.kubernetes.client.openapi.models.V1PodSecurityContextFluent fluent, - io.kubernetes.client.openapi.models.V1PodSecurityContext instance, - java.lang.Boolean validationEnabled) { + V1PodSecurityContextFluent fluent, + V1PodSecurityContext instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsGroup(instance.getFsGroup()); @@ -70,14 +67,11 @@ public V1PodSecurityContextBuilder( this.validationEnabled = validationEnabled; } - public V1PodSecurityContextBuilder( - io.kubernetes.client.openapi.models.V1PodSecurityContext instance) { + public V1PodSecurityContextBuilder(V1PodSecurityContext instance) { this(instance, false); } - public V1PodSecurityContextBuilder( - io.kubernetes.client.openapi.models.V1PodSecurityContext instance, - java.lang.Boolean validationEnabled) { + public V1PodSecurityContextBuilder(V1PodSecurityContext instance, Boolean validationEnabled) { this.fluent = this; this.withFsGroup(instance.getFsGroup()); @@ -102,10 +96,10 @@ public V1PodSecurityContextBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodSecurityContextFluent fluent; - java.lang.Boolean validationEnabled; + V1PodSecurityContextFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodSecurityContext build() { + public V1PodSecurityContext build() { V1PodSecurityContext buildable = new V1PodSecurityContext(); buildable.setFsGroup(fluent.getFsGroup()); buildable.setFsGroupChangePolicy(fluent.getFsGroupChangePolicy()); 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 75f5b978fb..cf671f88fd 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 @@ -23,33 +23,33 @@ public interface V1PodSecurityContextFluent { public Long getFsGroup(); - public A withFsGroup(java.lang.Long fsGroup); + public A withFsGroup(Long fsGroup); public Boolean hasFsGroup(); public String getFsGroupChangePolicy(); - public A withFsGroupChangePolicy(java.lang.String fsGroupChangePolicy); + public A withFsGroupChangePolicy(String fsGroupChangePolicy); - public java.lang.Boolean hasFsGroupChangePolicy(); + public Boolean hasFsGroupChangePolicy(); - public java.lang.Long getRunAsGroup(); + public Long getRunAsGroup(); - public A withRunAsGroup(java.lang.Long runAsGroup); + public A withRunAsGroup(Long runAsGroup); - public java.lang.Boolean hasRunAsGroup(); + public Boolean hasRunAsGroup(); - public java.lang.Boolean getRunAsNonRoot(); + public Boolean getRunAsNonRoot(); - public A withRunAsNonRoot(java.lang.Boolean runAsNonRoot); + public A withRunAsNonRoot(Boolean runAsNonRoot); - public java.lang.Boolean hasRunAsNonRoot(); + public Boolean hasRunAsNonRoot(); - public java.lang.Long getRunAsUser(); + public Long getRunAsUser(); - public A withRunAsUser(java.lang.Long runAsUser); + public A withRunAsUser(Long runAsUser); - public java.lang.Boolean hasRunAsUser(); + public Boolean hasRunAsUser(); /** * This method has been deprecated, please use method buildSeLinuxOptions instead. @@ -59,181 +59,160 @@ public interface V1PodSecurityContextFluent withNewSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - withNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item); + public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( + V1SELinuxOptions item); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - editSeLinuxOptions(); + public V1PodSecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptions(); + public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item); + public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( + V1SELinuxOptions item); /** * This method has been deprecated, please use method buildSeccompProfile instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SeccompProfile getSeccompProfile(); - public io.kubernetes.client.openapi.models.V1SeccompProfile buildSeccompProfile(); + public V1SeccompProfile buildSeccompProfile(); - public A withSeccompProfile(io.kubernetes.client.openapi.models.V1SeccompProfile seccompProfile); + public A withSeccompProfile(V1SeccompProfile seccompProfile); - public java.lang.Boolean hasSeccompProfile(); + public Boolean hasSeccompProfile(); public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfile(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - withNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item); + public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( + V1SeccompProfile item); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - editSeccompProfile(); + public V1PodSecurityContextFluent.SeccompProfileNested editSeccompProfile(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfile(); + public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item); + public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( + V1SeccompProfile item); - public A addToSupplementalGroups(Integer index, java.lang.Long item); + public A addToSupplementalGroups(Integer index, Long item); - public A setToSupplementalGroups(java.lang.Integer index, java.lang.Long item); + public A setToSupplementalGroups(Integer index, Long item); public A addToSupplementalGroups(java.lang.Long... items); - public A addAllToSupplementalGroups(Collection items); + public A addAllToSupplementalGroups(Collection items); public A removeFromSupplementalGroups(java.lang.Long... items); - public A removeAllFromSupplementalGroups(java.util.Collection items); + public A removeAllFromSupplementalGroups(Collection items); - public List getSupplementalGroups(); + public List getSupplementalGroups(); - public java.lang.Long getSupplementalGroup(java.lang.Integer index); + public Long getSupplementalGroup(Integer index); - public java.lang.Long getFirstSupplementalGroup(); + public Long getFirstSupplementalGroup(); - public java.lang.Long getLastSupplementalGroup(); + public Long getLastSupplementalGroup(); - public java.lang.Long getMatchingSupplementalGroup(Predicate predicate); + public Long getMatchingSupplementalGroup(Predicate predicate); - public java.lang.Boolean hasMatchingSupplementalGroup( - java.util.function.Predicate predicate); + public Boolean hasMatchingSupplementalGroup(Predicate predicate); - public A withSupplementalGroups(java.util.List supplementalGroups); + public A withSupplementalGroups(List supplementalGroups); public A withSupplementalGroups(java.lang.Long... supplementalGroups); - public java.lang.Boolean hasSupplementalGroups(); + public Boolean hasSupplementalGroups(); - public A addToSysctls(java.lang.Integer index, V1Sysctl item); + public A addToSysctls(Integer index, V1Sysctl item); - public A setToSysctls(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Sysctl item); + public A setToSysctls(Integer index, V1Sysctl item); public A addToSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items); - public A addAllToSysctls( - java.util.Collection items); + public A addAllToSysctls(Collection items); public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items); - public A removeAllFromSysctls( - java.util.Collection items); + public A removeAllFromSysctls(Collection items); - public A removeMatchingFromSysctls(java.util.function.Predicate predicate); + public A removeMatchingFromSysctls(Predicate predicate); /** * This method has been deprecated, please use method buildSysctls instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSysctls(); + @Deprecated + public List getSysctls(); - public java.util.List buildSysctls(); + public List buildSysctls(); - public io.kubernetes.client.openapi.models.V1Sysctl buildSysctl(java.lang.Integer index); + public V1Sysctl buildSysctl(Integer index); - public io.kubernetes.client.openapi.models.V1Sysctl buildFirstSysctl(); + public V1Sysctl buildFirstSysctl(); - public io.kubernetes.client.openapi.models.V1Sysctl buildLastSysctl(); + public V1Sysctl buildLastSysctl(); - public io.kubernetes.client.openapi.models.V1Sysctl buildMatchingSysctl( - java.util.function.Predicate predicate); + public V1Sysctl buildMatchingSysctl(Predicate predicate); - public java.lang.Boolean hasMatchingSysctl( - java.util.function.Predicate predicate); + public Boolean hasMatchingSysctl(Predicate predicate); - public A withSysctls(java.util.List sysctls); + public A withSysctls(List sysctls); public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls); - public java.lang.Boolean hasSysctls(); + public Boolean hasSysctls(); public V1PodSecurityContextFluent.SysctlsNested addNewSysctl(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - addNewSysctlLike(io.kubernetes.client.openapi.models.V1Sysctl item); + public V1PodSecurityContextFluent.SysctlsNested addNewSysctlLike(V1Sysctl item); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - setNewSysctlLike(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Sysctl item); + public V1PodSecurityContextFluent.SysctlsNested setNewSysctlLike(Integer index, V1Sysctl item); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested editSysctl( - java.lang.Integer index); + public V1PodSecurityContextFluent.SysctlsNested editSysctl(Integer index); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - editFirstSysctl(); + public V1PodSecurityContextFluent.SysctlsNested editFirstSysctl(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - editLastSysctl(); + public V1PodSecurityContextFluent.SysctlsNested editLastSysctl(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - editMatchingSysctl( - java.util.function.Predicate - predicate); + public V1PodSecurityContextFluent.SysctlsNested editMatchingSysctl( + Predicate predicate); /** * This method has been deprecated, please use method buildWindowsOptions instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions(); - public io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions buildWindowsOptions(); + public V1WindowsSecurityContextOptions buildWindowsOptions(); - public A withWindowsOptions( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions windowsOptions); + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions); - public java.lang.Boolean hasWindowsOptions(); + public Boolean hasWindowsOptions(); public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptions(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - withNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item); + public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - editWindowsOptions(); + public V1PodSecurityContextFluent.WindowsOptionsNested editWindowsOptions(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptions(); + public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions(); - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item); + public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item); public A withRunAsNonRoot(); @@ -246,7 +225,7 @@ public interface SeLinuxOptionsNested } public interface SeccompProfileNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SeccompProfileFluent> { public N and(); @@ -254,15 +233,14 @@ public interface SeccompProfileNested } public interface SysctlsNested - extends io.kubernetes.client.fluent.Nested, - V1SysctlFluent> { + extends Nested, V1SysctlFluent> { public N and(); public N endSysctl(); } public interface WindowsOptionsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1WindowsSecurityContextOptionsFluent< V1PodSecurityContextFluent.WindowsOptionsNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java index 7d90e3f52e..0c2b488e85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluentImpl.java @@ -26,8 +26,7 @@ public class V1PodSecurityContextFluentImpl implements V1PodSecurityContextFluent { public V1PodSecurityContextFluentImpl() {} - public V1PodSecurityContextFluentImpl( - io.kubernetes.client.openapi.models.V1PodSecurityContext instance) { + public V1PodSecurityContextFluentImpl(V1PodSecurityContext instance) { this.withFsGroup(instance.getFsGroup()); this.withFsGroupChangePolicy(instance.getFsGroupChangePolicy()); @@ -51,77 +50,77 @@ public V1PodSecurityContextFluentImpl( private Long fsGroup; private String fsGroupChangePolicy; - private java.lang.Long runAsGroup; + private Long runAsGroup; private Boolean runAsNonRoot; - private java.lang.Long runAsUser; + private Long runAsUser; private V1SELinuxOptionsBuilder seLinuxOptions; private V1SeccompProfileBuilder seccompProfile; - private List supplementalGroups; + private List supplementalGroups; private ArrayList sysctls; private V1WindowsSecurityContextOptionsBuilder windowsOptions; - public java.lang.Long getFsGroup() { + public Long getFsGroup() { return this.fsGroup; } - public A withFsGroup(java.lang.Long fsGroup) { + public A withFsGroup(Long fsGroup) { this.fsGroup = fsGroup; return (A) this; } - public java.lang.Boolean hasFsGroup() { + public Boolean hasFsGroup() { return this.fsGroup != null; } - public java.lang.String getFsGroupChangePolicy() { + public String getFsGroupChangePolicy() { return this.fsGroupChangePolicy; } - public A withFsGroupChangePolicy(java.lang.String fsGroupChangePolicy) { + public A withFsGroupChangePolicy(String fsGroupChangePolicy) { this.fsGroupChangePolicy = fsGroupChangePolicy; return (A) this; } - public java.lang.Boolean hasFsGroupChangePolicy() { + public Boolean hasFsGroupChangePolicy() { return this.fsGroupChangePolicy != null; } - public java.lang.Long getRunAsGroup() { + public Long getRunAsGroup() { return this.runAsGroup; } - public A withRunAsGroup(java.lang.Long runAsGroup) { + public A withRunAsGroup(Long runAsGroup) { this.runAsGroup = runAsGroup; return (A) this; } - public java.lang.Boolean hasRunAsGroup() { + public Boolean hasRunAsGroup() { return this.runAsGroup != null; } - public java.lang.Boolean getRunAsNonRoot() { + public Boolean getRunAsNonRoot() { return this.runAsNonRoot; } - public A withRunAsNonRoot(java.lang.Boolean runAsNonRoot) { + public A withRunAsNonRoot(Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; return (A) this; } - public java.lang.Boolean hasRunAsNonRoot() { + public Boolean hasRunAsNonRoot() { return this.runAsNonRoot != null; } - public java.lang.Long getRunAsUser() { + public Long getRunAsUser() { return this.runAsUser; } - public A withRunAsUser(java.lang.Long runAsUser) { + public A withRunAsUser(Long runAsUser) { this.runAsUser = runAsUser; return (A) this; } - public java.lang.Boolean hasRunAsUser() { + public Boolean hasRunAsUser() { return this.runAsUser != null; } @@ -135,21 +134,23 @@ public V1SELinuxOptions getSeLinuxOptions() { return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; } - public io.kubernetes.client.openapi.models.V1SELinuxOptions buildSeLinuxOptions() { + public V1SELinuxOptions buildSeLinuxOptions() { return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; } - public A withSeLinuxOptions(io.kubernetes.client.openapi.models.V1SELinuxOptions seLinuxOptions) { + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); if (seLinuxOptions != null) { - this.seLinuxOptions = - new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder(seLinuxOptions); + this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); _visitables.get("seLinuxOptions").add(this.seLinuxOptions); + } else { + this.seLinuxOptions = null; + _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); } return (A) this; } - public java.lang.Boolean hasSeLinuxOptions() { + public Boolean hasSeLinuxOptions() { return this.seLinuxOptions != null; } @@ -157,26 +158,22 @@ public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions( return new V1PodSecurityContextFluentImpl.SeLinuxOptionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - withNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { + public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( + V1SELinuxOptions item) { return new V1PodSecurityContextFluentImpl.SeLinuxOptionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - editSeLinuxOptions() { + public V1PodSecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions() { return withNewSeLinuxOptionsLike(getSeLinuxOptions()); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptions() { + public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions() { return withNewSeLinuxOptionsLike( - getSeLinuxOptions() != null - ? getSeLinuxOptions() - : new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder().build()); + getSeLinuxOptions() != null ? getSeLinuxOptions() : new V1SELinuxOptionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { + public V1PodSecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( + V1SELinuxOptions item) { return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions() : item); } @@ -185,25 +182,28 @@ public V1PodSecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions( * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SeccompProfile getSeccompProfile() { + @Deprecated + public V1SeccompProfile getSeccompProfile() { return this.seccompProfile != null ? this.seccompProfile.build() : null; } - public io.kubernetes.client.openapi.models.V1SeccompProfile buildSeccompProfile() { + public V1SeccompProfile buildSeccompProfile() { return this.seccompProfile != null ? this.seccompProfile.build() : null; } - public A withSeccompProfile(io.kubernetes.client.openapi.models.V1SeccompProfile seccompProfile) { + public A withSeccompProfile(V1SeccompProfile seccompProfile) { _visitables.get("seccompProfile").remove(this.seccompProfile); if (seccompProfile != null) { this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); _visitables.get("seccompProfile").add(this.seccompProfile); + } else { + this.seccompProfile = null; + _visitables.get("seccompProfile").remove(this.seccompProfile); } return (A) this; } - public java.lang.Boolean hasSeccompProfile() { + public Boolean hasSeccompProfile() { return this.seccompProfile != null; } @@ -211,41 +211,36 @@ public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfile( return new V1PodSecurityContextFluentImpl.SeccompProfileNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - withNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item) { - return new io.kubernetes.client.openapi.models.V1PodSecurityContextFluentImpl - .SeccompProfileNestedImpl(item); + public V1PodSecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( + V1SeccompProfile item) { + return new V1PodSecurityContextFluentImpl.SeccompProfileNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - editSeccompProfile() { + public V1PodSecurityContextFluent.SeccompProfileNested editSeccompProfile() { return withNewSeccompProfileLike(getSeccompProfile()); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfile() { + public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile() { return withNewSeccompProfileLike( - getSeccompProfile() != null - ? getSeccompProfile() - : new io.kubernetes.client.openapi.models.V1SeccompProfileBuilder().build()); + getSeccompProfile() != null ? getSeccompProfile() : new V1SeccompProfileBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item) { + public V1PodSecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( + V1SeccompProfile item) { return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile() : item); } - public A addToSupplementalGroups(Integer index, java.lang.Long item) { + public A addToSupplementalGroups(Integer index, Long item) { if (this.supplementalGroups == null) { - this.supplementalGroups = new java.util.ArrayList(); + this.supplementalGroups = new ArrayList(); } this.supplementalGroups.add(index, item); return (A) this; } - public A setToSupplementalGroups(java.lang.Integer index, java.lang.Long item) { + public A setToSupplementalGroups(Integer index, Long item) { if (this.supplementalGroups == null) { - this.supplementalGroups = new java.util.ArrayList(); + this.supplementalGroups = new ArrayList(); } this.supplementalGroups.set(index, item); return (A) this; @@ -253,26 +248,26 @@ public A setToSupplementalGroups(java.lang.Integer index, java.lang.Long item) { public A addToSupplementalGroups(java.lang.Long... items) { if (this.supplementalGroups == null) { - this.supplementalGroups = new java.util.ArrayList(); + this.supplementalGroups = new ArrayList(); } - for (java.lang.Long item : items) { + for (Long item : items) { this.supplementalGroups.add(item); } return (A) this; } - public A addAllToSupplementalGroups(Collection items) { + public A addAllToSupplementalGroups(Collection items) { if (this.supplementalGroups == null) { - this.supplementalGroups = new java.util.ArrayList(); + this.supplementalGroups = new ArrayList(); } - for (java.lang.Long item : items) { + for (Long item : items) { this.supplementalGroups.add(item); } return (A) this; } public A removeFromSupplementalGroups(java.lang.Long... items) { - for (java.lang.Long item : items) { + for (Long item : items) { if (this.supplementalGroups != null) { this.supplementalGroups.remove(item); } @@ -280,8 +275,8 @@ public A removeFromSupplementalGroups(java.lang.Long... items) { return (A) this; } - public A removeAllFromSupplementalGroups(java.util.Collection items) { - for (java.lang.Long item : items) { + public A removeAllFromSupplementalGroups(Collection items) { + for (Long item : items) { if (this.supplementalGroups != null) { this.supplementalGroups.remove(item); } @@ -289,24 +284,24 @@ public A removeAllFromSupplementalGroups(java.util.Collection it return (A) this; } - public java.util.List getSupplementalGroups() { + public List getSupplementalGroups() { return this.supplementalGroups; } - public java.lang.Long getSupplementalGroup(java.lang.Integer index) { + public Long getSupplementalGroup(Integer index) { return this.supplementalGroups.get(index); } - public java.lang.Long getFirstSupplementalGroup() { + public Long getFirstSupplementalGroup() { return this.supplementalGroups.get(0); } - public java.lang.Long getLastSupplementalGroup() { + public Long getLastSupplementalGroup() { return this.supplementalGroups.get(supplementalGroups.size() - 1); } - public java.lang.Long getMatchingSupplementalGroup(Predicate predicate) { - for (java.lang.Long item : supplementalGroups) { + public Long getMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { if (predicate.test(item)) { return item; } @@ -314,9 +309,8 @@ public java.lang.Long getMatchingSupplementalGroup(Predicate pre return null; } - public java.lang.Boolean hasMatchingSupplementalGroup( - java.util.function.Predicate predicate) { - for (java.lang.Long item : supplementalGroups) { + public Boolean hasMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { if (predicate.test(item)) { return true; } @@ -324,10 +318,10 @@ public java.lang.Boolean hasMatchingSupplementalGroup( return false; } - public A withSupplementalGroups(java.util.List supplementalGroups) { + public A withSupplementalGroups(List supplementalGroups) { if (supplementalGroups != null) { - this.supplementalGroups = new java.util.ArrayList(); - for (java.lang.Long item : supplementalGroups) { + this.supplementalGroups = new ArrayList(); + for (Long item : supplementalGroups) { this.addToSupplementalGroups(item); } } else { @@ -341,35 +335,32 @@ public A withSupplementalGroups(java.lang.Long... supplementalGroups) { this.supplementalGroups.clear(); } if (supplementalGroups != null) { - for (java.lang.Long item : supplementalGroups) { + for (Long item : supplementalGroups) { this.addToSupplementalGroups(item); } } return (A) this; } - public java.lang.Boolean hasSupplementalGroups() { + public Boolean hasSupplementalGroups() { return supplementalGroups != null && !supplementalGroups.isEmpty(); } - public A addToSysctls(java.lang.Integer index, V1Sysctl item) { + public A addToSysctls(Integer index, V1Sysctl item) { if (this.sysctls == null) { - this.sysctls = new java.util.ArrayList(); + this.sysctls = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = - new io.kubernetes.client.openapi.models.V1SysctlBuilder(item); + V1SysctlBuilder builder = new V1SysctlBuilder(item); _visitables.get("sysctls").add(index >= 0 ? index : _visitables.get("sysctls").size(), builder); this.sysctls.add(index >= 0 ? index : sysctls.size(), builder); return (A) this; } - public A setToSysctls( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Sysctl item) { + public A setToSysctls(Integer index, V1Sysctl item) { if (this.sysctls == null) { - this.sysctls = new java.util.ArrayList(); + this.sysctls = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = - new io.kubernetes.client.openapi.models.V1SysctlBuilder(item); + V1SysctlBuilder builder = new V1SysctlBuilder(item); if (index < 0 || index >= _visitables.get("sysctls").size()) { _visitables.get("sysctls").add(builder); } else { @@ -385,25 +376,22 @@ public A setToSysctls( public A addToSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { if (this.sysctls == null) { - this.sysctls = new java.util.ArrayList(); + this.sysctls = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Sysctl item : items) { - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = - new io.kubernetes.client.openapi.models.V1SysctlBuilder(item); + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); _visitables.get("sysctls").add(builder); this.sysctls.add(builder); } return (A) this; } - public A addAllToSysctls( - java.util.Collection items) { + public A addAllToSysctls(Collection items) { if (this.sysctls == null) { - this.sysctls = new java.util.ArrayList(); + this.sysctls = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Sysctl item : items) { - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = - new io.kubernetes.client.openapi.models.V1SysctlBuilder(item); + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); _visitables.get("sysctls").add(builder); this.sysctls.add(builder); } @@ -411,9 +399,8 @@ public A addAllToSysctls( } public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - for (io.kubernetes.client.openapi.models.V1Sysctl item : items) { - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = - new io.kubernetes.client.openapi.models.V1SysctlBuilder(item); + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); _visitables.get("sysctls").remove(builder); if (this.sysctls != null) { this.sysctls.remove(builder); @@ -422,11 +409,9 @@ public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items return (A) this; } - public A removeAllFromSysctls( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Sysctl item : items) { - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = - new io.kubernetes.client.openapi.models.V1SysctlBuilder(item); + public A removeAllFromSysctls(Collection items) { + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); _visitables.get("sysctls").remove(builder); if (this.sysctls != null) { this.sysctls.remove(builder); @@ -435,13 +420,12 @@ public A removeAllFromSysctls( return (A) this; } - public A removeMatchingFromSysctls( - java.util.function.Predicate predicate) { + public A removeMatchingFromSysctls(Predicate predicate) { if (sysctls == null) return (A) this; - final Iterator each = sysctls.iterator(); + final Iterator each = sysctls.iterator(); final List visitables = _visitables.get("sysctls"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1SysctlBuilder builder = each.next(); + V1SysctlBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -455,30 +439,29 @@ public A removeMatchingFromSysctls( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSysctls() { + @Deprecated + public List getSysctls() { return sysctls != null ? build(sysctls) : null; } - public java.util.List buildSysctls() { + public List buildSysctls() { return sysctls != null ? build(sysctls) : null; } - public io.kubernetes.client.openapi.models.V1Sysctl buildSysctl(java.lang.Integer index) { + public V1Sysctl buildSysctl(Integer index) { return this.sysctls.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Sysctl buildFirstSysctl() { + public V1Sysctl buildFirstSysctl() { return this.sysctls.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Sysctl buildLastSysctl() { + public V1Sysctl buildLastSysctl() { return this.sysctls.get(sysctls.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Sysctl buildMatchingSysctl( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1SysctlBuilder item : sysctls) { + public V1Sysctl buildMatchingSysctl(Predicate predicate) { + for (V1SysctlBuilder item : sysctls) { if (predicate.test(item)) { return item.build(); } @@ -486,9 +469,8 @@ public io.kubernetes.client.openapi.models.V1Sysctl buildMatchingSysctl( return null; } - public java.lang.Boolean hasMatchingSysctl( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1SysctlBuilder item : sysctls) { + public Boolean hasMatchingSysctl(Predicate predicate) { + for (V1SysctlBuilder item : sysctls) { if (predicate.test(item)) { return true; } @@ -496,13 +478,13 @@ public java.lang.Boolean hasMatchingSysctl( return false; } - public A withSysctls(java.util.List sysctls) { + public A withSysctls(List sysctls) { if (this.sysctls != null) { _visitables.get("sysctls").removeAll(this.sysctls); } if (sysctls != null) { - this.sysctls = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Sysctl item : sysctls) { + this.sysctls = new ArrayList(); + for (V1Sysctl item : sysctls) { this.addToSysctls(item); } } else { @@ -516,14 +498,14 @@ public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls) { this.sysctls.clear(); } if (sysctls != null) { - for (io.kubernetes.client.openapi.models.V1Sysctl item : sysctls) { + for (V1Sysctl item : sysctls) { this.addToSysctls(item); } } return (A) this; } - public java.lang.Boolean hasSysctls() { + public Boolean hasSysctls() { return sysctls != null && !sysctls.isEmpty(); } @@ -531,43 +513,35 @@ public V1PodSecurityContextFluent.SysctlsNested addNewSysctl() { return new V1PodSecurityContextFluentImpl.SysctlsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - addNewSysctlLike(io.kubernetes.client.openapi.models.V1Sysctl item) { - return new io.kubernetes.client.openapi.models.V1PodSecurityContextFluentImpl.SysctlsNestedImpl( - -1, item); + public V1PodSecurityContextFluent.SysctlsNested addNewSysctlLike(V1Sysctl item) { + return new V1PodSecurityContextFluentImpl.SysctlsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - setNewSysctlLike(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Sysctl item) { - return new io.kubernetes.client.openapi.models.V1PodSecurityContextFluentImpl.SysctlsNestedImpl( - index, item); + public V1PodSecurityContextFluent.SysctlsNested setNewSysctlLike( + Integer index, V1Sysctl item) { + return new V1PodSecurityContextFluentImpl.SysctlsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested editSysctl( - java.lang.Integer index) { + public V1PodSecurityContextFluent.SysctlsNested editSysctl(Integer index) { if (sysctls.size() <= index) throw new RuntimeException("Can't edit sysctls. Index exceeds size."); return setNewSysctlLike(index, buildSysctl(index)); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - editFirstSysctl() { + public V1PodSecurityContextFluent.SysctlsNested editFirstSysctl() { if (sysctls.size() == 0) throw new RuntimeException("Can't edit first sysctls. The list is empty."); return setNewSysctlLike(0, buildSysctl(0)); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - editLastSysctl() { + public V1PodSecurityContextFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested - editMatchingSysctl( - java.util.function.Predicate - predicate) { + public V1PodSecurityContextFluent.SysctlsNested editMatchingSysctl( + Predicate predicate) { int index = -1; for (int i = 0; i < sysctls.size(); i++) { if (predicate.test(sysctls.get(i))) { @@ -584,28 +558,28 @@ public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNes * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions() { return this.windowsOptions != null ? this.windowsOptions.build() : null; } - public io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions buildWindowsOptions() { + public V1WindowsSecurityContextOptions buildWindowsOptions() { return this.windowsOptions != null ? this.windowsOptions.build() : null; } - public A withWindowsOptions( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions windowsOptions) { + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { _visitables.get("windowsOptions").remove(this.windowsOptions); if (windowsOptions != null) { - this.windowsOptions = - new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder( - windowsOptions); + this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); _visitables.get("windowsOptions").add(this.windowsOptions); + } else { + this.windowsOptions = null; + _visitables.get("windowsOptions").remove(this.windowsOptions); } return (A) this; } - public java.lang.Boolean hasWindowsOptions() { + public Boolean hasWindowsOptions() { return this.windowsOptions != null; } @@ -613,30 +587,24 @@ public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptions( return new V1PodSecurityContextFluentImpl.WindowsOptionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - withNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item) { - return new io.kubernetes.client.openapi.models.V1PodSecurityContextFluentImpl - .WindowsOptionsNestedImpl(item); + public V1PodSecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item) { + return new V1PodSecurityContextFluentImpl.WindowsOptionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - editWindowsOptions() { + public V1PodSecurityContextFluent.WindowsOptionsNested editWindowsOptions() { return withNewWindowsOptionsLike(getWindowsOptions()); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptions() { + public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions() { return withNewWindowsOptionsLike( getWindowsOptions() != null ? getWindowsOptions() - : new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder() - .build()); + : new V1WindowsSecurityContextOptionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item) { + public V1PodSecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item) { return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions() : item); } @@ -685,7 +653,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsGroup != null) { @@ -738,19 +706,16 @@ public A withRunAsNonRoot() { class SeLinuxOptionsNestedImpl extends V1SELinuxOptionsFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSecurityContextFluent - .SeLinuxOptionsNested< - N>, - Nested { - SeLinuxOptionsNestedImpl(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { + implements V1PodSecurityContextFluent.SeLinuxOptionsNested, Nested { + SeLinuxOptionsNestedImpl(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } SeLinuxOptionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder(this); + this.builder = new V1SELinuxOptionsBuilder(this); } - io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder builder; + V1SELinuxOptionsBuilder builder; public N and() { return (N) V1PodSecurityContextFluentImpl.this.withSeLinuxOptions(builder.build()); @@ -763,19 +728,16 @@ public N endSeLinuxOptions() { class SeccompProfileNestedImpl extends V1SeccompProfileFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSecurityContextFluent - .SeccompProfileNested< - N>, - io.kubernetes.client.fluent.Nested { - SeccompProfileNestedImpl(io.kubernetes.client.openapi.models.V1SeccompProfile item) { + implements V1PodSecurityContextFluent.SeccompProfileNested, Nested { + SeccompProfileNestedImpl(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } SeccompProfileNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SeccompProfileBuilder(this); + this.builder = new V1SeccompProfileBuilder(this); } - io.kubernetes.client.openapi.models.V1SeccompProfileBuilder builder; + V1SeccompProfileBuilder builder; public N and() { return (N) V1PodSecurityContextFluentImpl.this.withSeccompProfile(builder.build()); @@ -787,20 +749,19 @@ public N endSeccompProfile() { } class SysctlsNestedImpl extends V1SysctlFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSecurityContextFluent.SysctlsNested, - io.kubernetes.client.fluent.Nested { - SysctlsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Sysctl item) { + implements V1PodSecurityContextFluent.SysctlsNested, Nested { + SysctlsNestedImpl(Integer index, V1Sysctl item) { this.index = index; this.builder = new V1SysctlBuilder(this, item); } SysctlsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1SysctlBuilder(this); + this.builder = new V1SysctlBuilder(this); } - io.kubernetes.client.openapi.models.V1SysctlBuilder builder; - java.lang.Integer index; + V1SysctlBuilder builder; + Integer index; public N and() { return (N) V1PodSecurityContextFluentImpl.this.setToSysctls(index, builder.build()); @@ -814,20 +775,16 @@ public N endSysctl() { class WindowsOptionsNestedImpl extends V1WindowsSecurityContextOptionsFluentImpl< V1PodSecurityContextFluent.WindowsOptionsNested> - implements io.kubernetes.client.openapi.models.V1PodSecurityContextFluent - .WindowsOptionsNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1PodSecurityContextFluent.WindowsOptionsNested, Nested { WindowsOptionsNestedImpl(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } WindowsOptionsNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder(this); + this.builder = new V1WindowsSecurityContextOptionsBuilder(this); } - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder builder; + V1WindowsSecurityContextOptionsBuilder builder; public N and() { return (N) V1PodSecurityContextFluentImpl.this.withWindowsOptions(builder.build()); 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 fc351c9334..a06a51f0fb 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodSpecBuilder extends V1PodSpecFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1PodSpecBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1PodSpecBuilder(Boolean validationEnabled) { this(new V1PodSpec(), validationEnabled); } - public V1PodSpecBuilder(io.kubernetes.client.openapi.models.V1PodSpecFluent fluent) { + public V1PodSpecBuilder(V1PodSpecFluent fluent) { this(fluent, false); } - public V1PodSpecBuilder( - io.kubernetes.client.openapi.models.V1PodSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodSpecBuilder(V1PodSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodSpec(), validationEnabled); } - public V1PodSpecBuilder( - io.kubernetes.client.openapi.models.V1PodSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PodSpec instance) { + public V1PodSpecBuilder(V1PodSpecFluent fluent, V1PodSpec instance) { this(fluent, instance, false); } public V1PodSpecBuilder( - io.kubernetes.client.openapi.models.V1PodSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PodSpec instance, - java.lang.Boolean validationEnabled) { + V1PodSpecFluent fluent, V1PodSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); @@ -69,6 +63,8 @@ public V1PodSpecBuilder( fluent.withHostPID(instance.getHostPID()); + fluent.withHostUsers(instance.getHostUsers()); + fluent.withHostname(instance.getHostname()); fluent.withImagePullSecrets(instance.getImagePullSecrets()); @@ -120,12 +116,11 @@ public V1PodSpecBuilder( this.validationEnabled = validationEnabled; } - public V1PodSpecBuilder(io.kubernetes.client.openapi.models.V1PodSpec instance) { + public V1PodSpecBuilder(V1PodSpec instance) { this(instance, false); } - public V1PodSpecBuilder( - io.kubernetes.client.openapi.models.V1PodSpec instance, java.lang.Boolean validationEnabled) { + public V1PodSpecBuilder(V1PodSpec instance, Boolean validationEnabled) { this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); @@ -151,6 +146,8 @@ public V1PodSpecBuilder( this.withHostPID(instance.getHostPID()); + this.withHostUsers(instance.getHostUsers()); + this.withHostname(instance.getHostname()); this.withImagePullSecrets(instance.getImagePullSecrets()); @@ -202,10 +199,10 @@ public V1PodSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1PodSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodSpec build() { + public V1PodSpec build() { V1PodSpec buildable = new V1PodSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); buildable.setAffinity(fluent.getAffinity()); @@ -219,6 +216,7 @@ public io.kubernetes.client.openapi.models.V1PodSpec build() { buildable.setHostIPC(fluent.getHostIPC()); buildable.setHostNetwork(fluent.getHostNetwork()); buildable.setHostPID(fluent.getHostPID()); + buildable.setHostUsers(fluent.getHostUsers()); buildable.setHostname(fluent.getHostname()); buildable.setImagePullSecrets(fluent.getImagePullSecrets()); buildable.setInitContainers(fluent.getInitContainers()); 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 ca710d07d2..51fa563737 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 @@ -24,7 +24,7 @@ public interface V1PodSpecFluent> extends Fluent { public Long getActiveDeadlineSeconds(); - public A withActiveDeadlineSeconds(java.lang.Long activeDeadlineSeconds); + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds); public Boolean hasActiveDeadlineSeconds(); @@ -36,43 +36,39 @@ public interface V1PodSpecFluent> extends Fluent @Deprecated public V1Affinity getAffinity(); - public io.kubernetes.client.openapi.models.V1Affinity buildAffinity(); + public V1Affinity buildAffinity(); - public A withAffinity(io.kubernetes.client.openapi.models.V1Affinity affinity); + public A withAffinity(V1Affinity affinity); - public java.lang.Boolean hasAffinity(); + public Boolean hasAffinity(); public V1PodSpecFluent.AffinityNested withNewAffinity(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested withNewAffinityLike( - io.kubernetes.client.openapi.models.V1Affinity item); + public V1PodSpecFluent.AffinityNested withNewAffinityLike(V1Affinity item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested editAffinity(); + public V1PodSpecFluent.AffinityNested editAffinity(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested editOrNewAffinity(); + public V1PodSpecFluent.AffinityNested editOrNewAffinity(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested - editOrNewAffinityLike(io.kubernetes.client.openapi.models.V1Affinity item); + public V1PodSpecFluent.AffinityNested editOrNewAffinityLike(V1Affinity item); - public java.lang.Boolean getAutomountServiceAccountToken(); + public Boolean getAutomountServiceAccountToken(); - public A withAutomountServiceAccountToken(java.lang.Boolean automountServiceAccountToken); + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken); - public java.lang.Boolean hasAutomountServiceAccountToken(); + public Boolean hasAutomountServiceAccountToken(); public A addToContainers(Integer index, V1Container item); - public A setToContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item); + public A setToContainers(Integer index, V1Container item); public A addToContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A addAllToContainers(Collection items); + public A addAllToContainers(Collection items); public A removeFromContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A removeAllFromContainers( - java.util.Collection items); + public A removeAllFromContainers(Collection items); public A removeMatchingFromContainers(Predicate predicate); @@ -81,885 +77,730 @@ public A removeAllFromContainers( * * @return The buildable object. */ - @java.lang.Deprecated - public List getContainers(); + @Deprecated + public List getContainers(); - public java.util.List buildContainers(); + public List buildContainers(); - public io.kubernetes.client.openapi.models.V1Container buildContainer(java.lang.Integer index); + public V1Container buildContainer(Integer index); - public io.kubernetes.client.openapi.models.V1Container buildFirstContainer(); + public V1Container buildFirstContainer(); - public io.kubernetes.client.openapi.models.V1Container buildLastContainer(); + public V1Container buildLastContainer(); - public io.kubernetes.client.openapi.models.V1Container buildMatchingContainer( - java.util.function.Predicate - predicate); + public V1Container buildMatchingContainer(Predicate predicate); - public java.lang.Boolean hasMatchingContainer( - java.util.function.Predicate - predicate); + public Boolean hasMatchingContainer(Predicate predicate); - public A withContainers( - java.util.List containers); + public A withContainers(List containers); public A withContainers(io.kubernetes.client.openapi.models.V1Container... containers); - public java.lang.Boolean hasContainers(); + public Boolean hasContainers(); public V1PodSpecFluent.ContainersNested addNewContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - addNewContainerLike(io.kubernetes.client.openapi.models.V1Container item); + public V1PodSpecFluent.ContainersNested addNewContainerLike(V1Container item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - setNewContainerLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item); + public V1PodSpecFluent.ContainersNested setNewContainerLike(Integer index, V1Container item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested editContainer( - java.lang.Integer index); + public V1PodSpecFluent.ContainersNested editContainer(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - editFirstContainer(); + public V1PodSpecFluent.ContainersNested editFirstContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - editLastContainer(); + public V1PodSpecFluent.ContainersNested editLastContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - editMatchingContainer( - java.util.function.Predicate - predicate); + public V1PodSpecFluent.ContainersNested editMatchingContainer( + Predicate predicate); /** * This method has been deprecated, please use method buildDnsConfig instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodDNSConfig getDnsConfig(); - public io.kubernetes.client.openapi.models.V1PodDNSConfig buildDnsConfig(); + public V1PodDNSConfig buildDnsConfig(); - public A withDnsConfig(io.kubernetes.client.openapi.models.V1PodDNSConfig dnsConfig); + public A withDnsConfig(V1PodDNSConfig dnsConfig); - public java.lang.Boolean hasDnsConfig(); + public Boolean hasDnsConfig(); public V1PodSpecFluent.DnsConfigNested withNewDnsConfig(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested - withNewDnsConfigLike(io.kubernetes.client.openapi.models.V1PodDNSConfig item); + public V1PodSpecFluent.DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested editDnsConfig(); + public V1PodSpecFluent.DnsConfigNested editDnsConfig(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested - editOrNewDnsConfig(); + public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfig(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested - editOrNewDnsConfigLike(io.kubernetes.client.openapi.models.V1PodDNSConfig item); + public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item); public String getDnsPolicy(); - public A withDnsPolicy(java.lang.String dnsPolicy); + public A withDnsPolicy(String dnsPolicy); - public java.lang.Boolean hasDnsPolicy(); + public Boolean hasDnsPolicy(); - public java.lang.Boolean getEnableServiceLinks(); + public Boolean getEnableServiceLinks(); - public A withEnableServiceLinks(java.lang.Boolean enableServiceLinks); + public A withEnableServiceLinks(Boolean enableServiceLinks); - public java.lang.Boolean hasEnableServiceLinks(); + public Boolean hasEnableServiceLinks(); - public A addToEphemeralContainers(java.lang.Integer index, V1EphemeralContainer item); + public A addToEphemeralContainers(Integer index, V1EphemeralContainer item); - public A setToEphemeralContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EphemeralContainer item); + public A setToEphemeralContainers(Integer index, V1EphemeralContainer item); public A addToEphemeralContainers( io.kubernetes.client.openapi.models.V1EphemeralContainer... items); - public A addAllToEphemeralContainers( - java.util.Collection items); + public A addAllToEphemeralContainers(Collection items); public A removeFromEphemeralContainers( io.kubernetes.client.openapi.models.V1EphemeralContainer... items); - public A removeAllFromEphemeralContainers( - java.util.Collection items); + public A removeAllFromEphemeralContainers(Collection items); - public A removeMatchingFromEphemeralContainers( - java.util.function.Predicate predicate); + public A removeMatchingFromEphemeralContainers(Predicate predicate); /** * This method has been deprecated, please use method buildEphemeralContainers instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getEphemeralContainers(); + @Deprecated + public List getEphemeralContainers(); - public java.util.List - buildEphemeralContainers(); + public List buildEphemeralContainers(); - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildEphemeralContainer( - java.lang.Integer index); + public V1EphemeralContainer buildEphemeralContainer(Integer index); - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildFirstEphemeralContainer(); + public V1EphemeralContainer buildFirstEphemeralContainer(); - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildLastEphemeralContainer(); + public V1EphemeralContainer buildLastEphemeralContainer(); - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildMatchingEphemeralContainer( - java.util.function.Predicate - predicate); + public V1EphemeralContainer buildMatchingEphemeralContainer( + Predicate predicate); - public java.lang.Boolean hasMatchingEphemeralContainer( - java.util.function.Predicate - predicate); + public Boolean hasMatchingEphemeralContainer(Predicate predicate); - public A withEphemeralContainers( - java.util.List ephemeralContainers); + public A withEphemeralContainers(List ephemeralContainers); public A withEphemeralContainers( io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers); - public java.lang.Boolean hasEphemeralContainers(); + public Boolean hasEphemeralContainers(); public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - addNewEphemeralContainerLike(io.kubernetes.client.openapi.models.V1EphemeralContainer item); + public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainerLike( + V1EphemeralContainer item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - setNewEphemeralContainerLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EphemeralContainer item); + public V1PodSpecFluent.EphemeralContainersNested setNewEphemeralContainerLike( + Integer index, V1EphemeralContainer item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editEphemeralContainer(java.lang.Integer index); + public V1PodSpecFluent.EphemeralContainersNested editEphemeralContainer(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editFirstEphemeralContainer(); + public V1PodSpecFluent.EphemeralContainersNested editFirstEphemeralContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editLastEphemeralContainer(); + public V1PodSpecFluent.EphemeralContainersNested editLastEphemeralContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editMatchingEphemeralContainer( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder> - predicate); + public V1PodSpecFluent.EphemeralContainersNested editMatchingEphemeralContainer( + Predicate predicate); - public A addToHostAliases(java.lang.Integer index, V1HostAlias item); + public A addToHostAliases(Integer index, V1HostAlias item); - public A setToHostAliases( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HostAlias item); + public A setToHostAliases(Integer index, V1HostAlias item); public A addToHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items); - public A addAllToHostAliases( - java.util.Collection items); + public A addAllToHostAliases(Collection items); public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items); - public A removeAllFromHostAliases( - java.util.Collection items); + public A removeAllFromHostAliases(Collection items); - public A removeMatchingFromHostAliases( - java.util.function.Predicate predicate); + public A removeMatchingFromHostAliases(Predicate predicate); /** * This method has been deprecated, please use method buildHostAliases instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getHostAliases(); + @Deprecated + public List getHostAliases(); - public java.util.List buildHostAliases(); + public List buildHostAliases(); - public io.kubernetes.client.openapi.models.V1HostAlias buildHostAlias(java.lang.Integer index); + public V1HostAlias buildHostAlias(Integer index); - public io.kubernetes.client.openapi.models.V1HostAlias buildFirstHostAlias(); + public V1HostAlias buildFirstHostAlias(); - public io.kubernetes.client.openapi.models.V1HostAlias buildLastHostAlias(); + public V1HostAlias buildLastHostAlias(); - public io.kubernetes.client.openapi.models.V1HostAlias buildMatchingHostAlias( - java.util.function.Predicate - predicate); + public V1HostAlias buildMatchingHostAlias(Predicate predicate); - public java.lang.Boolean hasMatchingHostAlias( - java.util.function.Predicate - predicate); + public Boolean hasMatchingHostAlias(Predicate predicate); - public A withHostAliases( - java.util.List hostAliases); + public A withHostAliases(List hostAliases); public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... hostAliases); - public java.lang.Boolean hasHostAliases(); + public Boolean hasHostAliases(); public V1PodSpecFluent.HostAliasesNested addNewHostAlias(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - addNewHostAliasLike(io.kubernetes.client.openapi.models.V1HostAlias item); + public V1PodSpecFluent.HostAliasesNested addNewHostAliasLike(V1HostAlias item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - setNewHostAliasLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HostAlias item); + public V1PodSpecFluent.HostAliasesNested setNewHostAliasLike(Integer index, V1HostAlias item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested editHostAlias( - java.lang.Integer index); + public V1PodSpecFluent.HostAliasesNested editHostAlias(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - editFirstHostAlias(); + public V1PodSpecFluent.HostAliasesNested editFirstHostAlias(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - editLastHostAlias(); + public V1PodSpecFluent.HostAliasesNested editLastHostAlias(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - editMatchingHostAlias( - java.util.function.Predicate - predicate); + public V1PodSpecFluent.HostAliasesNested editMatchingHostAlias( + Predicate predicate); - public java.lang.Boolean getHostIPC(); + public Boolean getHostIPC(); - public A withHostIPC(java.lang.Boolean hostIPC); + public A withHostIPC(Boolean hostIPC); - public java.lang.Boolean hasHostIPC(); + public Boolean hasHostIPC(); - public java.lang.Boolean getHostNetwork(); + public Boolean getHostNetwork(); - public A withHostNetwork(java.lang.Boolean hostNetwork); + public A withHostNetwork(Boolean hostNetwork); - public java.lang.Boolean hasHostNetwork(); + public Boolean hasHostNetwork(); - public java.lang.Boolean getHostPID(); + public Boolean getHostPID(); - public A withHostPID(java.lang.Boolean hostPID); + public A withHostPID(Boolean hostPID); - public java.lang.Boolean hasHostPID(); + public Boolean hasHostPID(); - public java.lang.String getHostname(); + public Boolean getHostUsers(); - public A withHostname(java.lang.String hostname); + public A withHostUsers(Boolean hostUsers); - public java.lang.Boolean hasHostname(); + public Boolean hasHostUsers(); - public A addToImagePullSecrets(java.lang.Integer index, V1LocalObjectReference item); + public String getHostname(); - public A setToImagePullSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public A withHostname(String hostname); + + public Boolean hasHostname(); + + public A addToImagePullSecrets(Integer index, V1LocalObjectReference item); + + public A setToImagePullSecrets(Integer index, V1LocalObjectReference item); public A addToImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - public A addAllToImagePullSecrets( - java.util.Collection items); + public A addAllToImagePullSecrets(Collection items); public A removeFromImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - public A removeAllFromImagePullSecrets( - java.util.Collection items); + public A removeAllFromImagePullSecrets(Collection items); - public A removeMatchingFromImagePullSecrets( - java.util.function.Predicate predicate); + public A removeMatchingFromImagePullSecrets(Predicate predicate); /** * This method has been deprecated, please use method buildImagePullSecrets instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getImagePullSecrets(); + @Deprecated + public List getImagePullSecrets(); - public java.util.List - buildImagePullSecrets(); + public List buildImagePullSecrets(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildImagePullSecret( - java.lang.Integer index); + public V1LocalObjectReference buildImagePullSecret(Integer index); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildFirstImagePullSecret(); + public V1LocalObjectReference buildFirstImagePullSecret(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildLastImagePullSecret(); + public V1LocalObjectReference buildLastImagePullSecret(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate); + public V1LocalObjectReference buildMatchingImagePullSecret( + Predicate predicate); - public java.lang.Boolean hasMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate); + public Boolean hasMatchingImagePullSecret(Predicate predicate); - public A withImagePullSecrets( - java.util.List imagePullSecrets); + public A withImagePullSecrets(List imagePullSecrets); public A withImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets); - public java.lang.Boolean hasImagePullSecrets(); + public Boolean hasImagePullSecrets(); public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecret(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - addNewImagePullSecretLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecretLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - setNewImagePullSecretLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1PodSpecFluent.ImagePullSecretsNested setNewImagePullSecretLike( + Integer index, V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editImagePullSecret(java.lang.Integer index); + public V1PodSpecFluent.ImagePullSecretsNested editImagePullSecret(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editFirstImagePullSecret(); + public V1PodSpecFluent.ImagePullSecretsNested editFirstImagePullSecret(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editLastImagePullSecret(); + public V1PodSpecFluent.ImagePullSecretsNested editLastImagePullSecret(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate); + public V1PodSpecFluent.ImagePullSecretsNested editMatchingImagePullSecret( + Predicate predicate); - public A addToInitContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item); + public A addToInitContainers(Integer index, V1Container item); - public A setToInitContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item); + public A setToInitContainers(Integer index, V1Container item); public A addToInitContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A addAllToInitContainers( - java.util.Collection items); + public A addAllToInitContainers(Collection items); public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Container... items); - public A removeAllFromInitContainers( - java.util.Collection items); + public A removeAllFromInitContainers(Collection items); - public A removeMatchingFromInitContainers( - java.util.function.Predicate - predicate); + public A removeMatchingFromInitContainers(Predicate predicate); /** * This method has been deprecated, please use method buildInitContainers instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getInitContainers(); + @Deprecated + public List getInitContainers(); - public java.util.List buildInitContainers(); + public List buildInitContainers(); - public io.kubernetes.client.openapi.models.V1Container buildInitContainer( - java.lang.Integer index); + public V1Container buildInitContainer(Integer index); - public io.kubernetes.client.openapi.models.V1Container buildFirstInitContainer(); + public V1Container buildFirstInitContainer(); - public io.kubernetes.client.openapi.models.V1Container buildLastInitContainer(); + public V1Container buildLastInitContainer(); - public io.kubernetes.client.openapi.models.V1Container buildMatchingInitContainer( - java.util.function.Predicate - predicate); + public V1Container buildMatchingInitContainer(Predicate predicate); - public java.lang.Boolean hasMatchingInitContainer( - java.util.function.Predicate - predicate); + public Boolean hasMatchingInitContainer(Predicate predicate); - public A withInitContainers( - java.util.List initContainers); + public A withInitContainers(List initContainers); public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... initContainers); - public java.lang.Boolean hasInitContainers(); + public Boolean hasInitContainers(); public V1PodSpecFluent.InitContainersNested addNewInitContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - addNewInitContainerLike(io.kubernetes.client.openapi.models.V1Container item); + public V1PodSpecFluent.InitContainersNested addNewInitContainerLike(V1Container item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - setNewInitContainerLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item); + public V1PodSpecFluent.InitContainersNested setNewInitContainerLike( + Integer index, V1Container item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editInitContainer(java.lang.Integer index); + public V1PodSpecFluent.InitContainersNested editInitContainer(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editFirstInitContainer(); + public V1PodSpecFluent.InitContainersNested editFirstInitContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editLastInitContainer(); + public V1PodSpecFluent.InitContainersNested editLastInitContainer(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editMatchingInitContainer( - java.util.function.Predicate - predicate); + public V1PodSpecFluent.InitContainersNested editMatchingInitContainer( + Predicate predicate); - public java.lang.String getNodeName(); + public String getNodeName(); - public A withNodeName(java.lang.String nodeName); + public A withNodeName(String nodeName); - public java.lang.Boolean hasNodeName(); + public Boolean hasNodeName(); - public A addToNodeSelector(java.lang.String key, java.lang.String value); + public A addToNodeSelector(String key, String value); - public A addToNodeSelector(Map map); + public A addToNodeSelector(Map map); - public A removeFromNodeSelector(java.lang.String key); + public A removeFromNodeSelector(String key); - public A removeFromNodeSelector(java.util.Map map); + public A removeFromNodeSelector(Map map); - public java.util.Map getNodeSelector(); + public Map getNodeSelector(); - public A withNodeSelector(java.util.Map nodeSelector); + public A withNodeSelector(Map nodeSelector); - public java.lang.Boolean hasNodeSelector(); + public Boolean hasNodeSelector(); /** * This method has been deprecated, please use method buildOs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodOS getOs(); - public io.kubernetes.client.openapi.models.V1PodOS buildOs(); + public V1PodOS buildOs(); - public A withOs(io.kubernetes.client.openapi.models.V1PodOS os); + public A withOs(V1PodOS os); - public java.lang.Boolean hasOs(); + public Boolean hasOs(); public V1PodSpecFluent.OsNested withNewOs(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested withNewOsLike( - io.kubernetes.client.openapi.models.V1PodOS item); + public V1PodSpecFluent.OsNested withNewOsLike(V1PodOS item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested editOs(); + public V1PodSpecFluent.OsNested editOs(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested editOrNewOs(); + public V1PodSpecFluent.OsNested editOrNewOs(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested editOrNewOsLike( - io.kubernetes.client.openapi.models.V1PodOS item); + public V1PodSpecFluent.OsNested editOrNewOsLike(V1PodOS item); - public A addToOverhead(java.lang.String key, Quantity value); + public A addToOverhead(String key, Quantity value); - public A addToOverhead(java.util.Map map); + public A addToOverhead(Map map); - public A removeFromOverhead(java.lang.String key); + public A removeFromOverhead(String key); - public A removeFromOverhead( - java.util.Map map); + public A removeFromOverhead(Map map); - public java.util.Map getOverhead(); + public Map getOverhead(); - public A withOverhead( - java.util.Map overhead); + public A withOverhead(Map overhead); - public java.lang.Boolean hasOverhead(); + public Boolean hasOverhead(); - public java.lang.String getPreemptionPolicy(); + public String getPreemptionPolicy(); - public A withPreemptionPolicy(java.lang.String preemptionPolicy); + public A withPreemptionPolicy(String preemptionPolicy); - public java.lang.Boolean hasPreemptionPolicy(); + public Boolean hasPreemptionPolicy(); - public java.lang.Integer getPriority(); + public Integer getPriority(); - public A withPriority(java.lang.Integer priority); + public A withPriority(Integer priority); - public java.lang.Boolean hasPriority(); + public Boolean hasPriority(); - public java.lang.String getPriorityClassName(); + public String getPriorityClassName(); - public A withPriorityClassName(java.lang.String priorityClassName); + public A withPriorityClassName(String priorityClassName); - public java.lang.Boolean hasPriorityClassName(); + public Boolean hasPriorityClassName(); - public A addToReadinessGates(java.lang.Integer index, V1PodReadinessGate item); + public A addToReadinessGates(Integer index, V1PodReadinessGate item); - public A setToReadinessGates( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodReadinessGate item); + public A setToReadinessGates(Integer index, V1PodReadinessGate item); public A addToReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items); - public A addAllToReadinessGates( - java.util.Collection items); + public A addAllToReadinessGates(Collection items); public A removeFromReadinessGates( io.kubernetes.client.openapi.models.V1PodReadinessGate... items); - public A removeAllFromReadinessGates( - java.util.Collection items); + public A removeAllFromReadinessGates(Collection items); - public A removeMatchingFromReadinessGates( - java.util.function.Predicate predicate); + public A removeMatchingFromReadinessGates(Predicate predicate); /** * This method has been deprecated, please use method buildReadinessGates instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getReadinessGates(); + @Deprecated + public List getReadinessGates(); - public java.util.List - buildReadinessGates(); + public List buildReadinessGates(); - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildReadinessGate( - java.lang.Integer index); + public V1PodReadinessGate buildReadinessGate(Integer index); - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildFirstReadinessGate(); + public V1PodReadinessGate buildFirstReadinessGate(); - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildLastReadinessGate(); + public V1PodReadinessGate buildLastReadinessGate(); - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildMatchingReadinessGate( - java.util.function.Predicate - predicate); + public V1PodReadinessGate buildMatchingReadinessGate( + Predicate predicate); - public java.lang.Boolean hasMatchingReadinessGate( - java.util.function.Predicate - predicate); + public Boolean hasMatchingReadinessGate(Predicate predicate); - public A withReadinessGates( - java.util.List readinessGates); + public A withReadinessGates(List readinessGates); public A withReadinessGates( io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates); - public java.lang.Boolean hasReadinessGates(); + public Boolean hasReadinessGates(); public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGate(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - addNewReadinessGateLike(io.kubernetes.client.openapi.models.V1PodReadinessGate item); + public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - setNewReadinessGateLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodReadinessGate item); + public V1PodSpecFluent.ReadinessGatesNested setNewReadinessGateLike( + Integer index, V1PodReadinessGate item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editReadinessGate(java.lang.Integer index); + public V1PodSpecFluent.ReadinessGatesNested editReadinessGate(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editFirstReadinessGate(); + public V1PodSpecFluent.ReadinessGatesNested editFirstReadinessGate(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editLastReadinessGate(); + public V1PodSpecFluent.ReadinessGatesNested editLastReadinessGate(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editMatchingReadinessGate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder> - predicate); + public V1PodSpecFluent.ReadinessGatesNested editMatchingReadinessGate( + Predicate predicate); - public java.lang.String getRestartPolicy(); + public String getRestartPolicy(); - public A withRestartPolicy(java.lang.String restartPolicy); + public A withRestartPolicy(String restartPolicy); - public java.lang.Boolean hasRestartPolicy(); + public Boolean hasRestartPolicy(); - public java.lang.String getRuntimeClassName(); + public String getRuntimeClassName(); - public A withRuntimeClassName(java.lang.String runtimeClassName); + public A withRuntimeClassName(String runtimeClassName); - public java.lang.Boolean hasRuntimeClassName(); + public Boolean hasRuntimeClassName(); - public java.lang.String getSchedulerName(); + public String getSchedulerName(); - public A withSchedulerName(java.lang.String schedulerName); + public A withSchedulerName(String schedulerName); - public java.lang.Boolean hasSchedulerName(); + public Boolean hasSchedulerName(); /** * This method has been deprecated, please use method buildSecurityContext instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodSecurityContext getSecurityContext(); - public io.kubernetes.client.openapi.models.V1PodSecurityContext buildSecurityContext(); + public V1PodSecurityContext buildSecurityContext(); - public A withSecurityContext( - io.kubernetes.client.openapi.models.V1PodSecurityContext securityContext); + public A withSecurityContext(V1PodSecurityContext securityContext); - public java.lang.Boolean hasSecurityContext(); + public Boolean hasSecurityContext(); public V1PodSpecFluent.SecurityContextNested withNewSecurityContext(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - withNewSecurityContextLike(io.kubernetes.client.openapi.models.V1PodSecurityContext item); + public V1PodSpecFluent.SecurityContextNested withNewSecurityContextLike( + V1PodSecurityContext item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - editSecurityContext(); + public V1PodSpecFluent.SecurityContextNested editSecurityContext(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - editOrNewSecurityContext(); + public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContext(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - editOrNewSecurityContextLike(io.kubernetes.client.openapi.models.V1PodSecurityContext item); + public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContextLike( + V1PodSecurityContext item); - public java.lang.String getServiceAccount(); + public String getServiceAccount(); - public A withServiceAccount(java.lang.String serviceAccount); + public A withServiceAccount(String serviceAccount); - public java.lang.Boolean hasServiceAccount(); + public Boolean hasServiceAccount(); - public java.lang.String getServiceAccountName(); + public String getServiceAccountName(); - public A withServiceAccountName(java.lang.String serviceAccountName); + public A withServiceAccountName(String serviceAccountName); - public java.lang.Boolean hasServiceAccountName(); + public Boolean hasServiceAccountName(); - public java.lang.Boolean getSetHostnameAsFQDN(); + public Boolean getSetHostnameAsFQDN(); - public A withSetHostnameAsFQDN(java.lang.Boolean setHostnameAsFQDN); + public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN); - public java.lang.Boolean hasSetHostnameAsFQDN(); + public Boolean hasSetHostnameAsFQDN(); - public java.lang.Boolean getShareProcessNamespace(); + public Boolean getShareProcessNamespace(); - public A withShareProcessNamespace(java.lang.Boolean shareProcessNamespace); + public A withShareProcessNamespace(Boolean shareProcessNamespace); - public java.lang.Boolean hasShareProcessNamespace(); + public Boolean hasShareProcessNamespace(); - public java.lang.String getSubdomain(); + public String getSubdomain(); - public A withSubdomain(java.lang.String subdomain); + public A withSubdomain(String subdomain); - public java.lang.Boolean hasSubdomain(); + public Boolean hasSubdomain(); - public java.lang.Long getTerminationGracePeriodSeconds(); + public Long getTerminationGracePeriodSeconds(); - public A withTerminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds); + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds); - public java.lang.Boolean hasTerminationGracePeriodSeconds(); + public Boolean hasTerminationGracePeriodSeconds(); - public A addToTolerations(java.lang.Integer index, V1Toleration item); + public A addToTolerations(Integer index, V1Toleration item); - public A setToTolerations( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item); + public A setToTolerations(Integer index, V1Toleration item); public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A addAllToTolerations( - java.util.Collection items); + public A addAllToTolerations(Collection items); public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A removeAllFromTolerations( - java.util.Collection items); + public A removeAllFromTolerations(Collection items); - public A removeMatchingFromTolerations( - java.util.function.Predicate predicate); + public A removeMatchingFromTolerations(Predicate predicate); /** * This method has been deprecated, please use method buildTolerations instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTolerations(); + @Deprecated + public List getTolerations(); - public java.util.List buildTolerations(); + public List buildTolerations(); - public io.kubernetes.client.openapi.models.V1Toleration buildToleration(java.lang.Integer index); + public V1Toleration buildToleration(Integer index); - public io.kubernetes.client.openapi.models.V1Toleration buildFirstToleration(); + public V1Toleration buildFirstToleration(); - public io.kubernetes.client.openapi.models.V1Toleration buildLastToleration(); + public V1Toleration buildLastToleration(); - public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( - java.util.function.Predicate - predicate); + public V1Toleration buildMatchingToleration(Predicate predicate); - public java.lang.Boolean hasMatchingToleration( - java.util.function.Predicate - predicate); + public Boolean hasMatchingToleration(Predicate predicate); - public A withTolerations( - java.util.List tolerations); + public A withTolerations(List tolerations); public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations); - public java.lang.Boolean hasTolerations(); + public Boolean hasTolerations(); public V1PodSpecFluent.TolerationsNested addNewToleration(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - addNewTolerationLike(io.kubernetes.client.openapi.models.V1Toleration item); + public V1PodSpecFluent.TolerationsNested addNewTolerationLike(V1Toleration item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - setNewTolerationLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item); + public V1PodSpecFluent.TolerationsNested setNewTolerationLike( + Integer index, V1Toleration item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested editToleration( - java.lang.Integer index); + public V1PodSpecFluent.TolerationsNested editToleration(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - editFirstToleration(); + public V1PodSpecFluent.TolerationsNested editFirstToleration(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - editLastToleration(); + public V1PodSpecFluent.TolerationsNested editLastToleration(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - editMatchingToleration( - java.util.function.Predicate - predicate); + public V1PodSpecFluent.TolerationsNested editMatchingToleration( + Predicate predicate); - public A addToTopologySpreadConstraints(java.lang.Integer index, V1TopologySpreadConstraint item); + public A addToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item); - public A setToTopologySpreadConstraints( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item); + public A setToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item); public A addToTopologySpreadConstraints( io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items); - public A addAllToTopologySpreadConstraints( - java.util.Collection items); + public A addAllToTopologySpreadConstraints(Collection items); public A removeFromTopologySpreadConstraints( io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items); - public A removeAllFromTopologySpreadConstraints( - java.util.Collection items); + public A removeAllFromTopologySpreadConstraints(Collection items); public A removeMatchingFromTopologySpreadConstraints( - java.util.function.Predicate predicate); + Predicate predicate); /** * This method has been deprecated, please use method buildTopologySpreadConstraints instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getTopologySpreadConstraints(); + @Deprecated + public List getTopologySpreadConstraints(); - public java.util.List - buildTopologySpreadConstraints(); + public List buildTopologySpreadConstraints(); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildTopologySpreadConstraint(java.lang.Integer index); + public V1TopologySpreadConstraint buildTopologySpreadConstraint(Integer index); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildFirstTopologySpreadConstraint(); + public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint(); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildLastTopologySpreadConstraint(); + public V1TopologySpreadConstraint buildLastTopologySpreadConstraint(); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildMatchingTopologySpreadConstraint( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate); + public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint( + Predicate predicate); - public java.lang.Boolean hasMatchingTopologySpreadConstraint( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate); + public Boolean hasMatchingTopologySpreadConstraint( + Predicate predicate); public A withTopologySpreadConstraints( - java.util.List - topologySpreadConstraints); + List topologySpreadConstraints); public A withTopologySpreadConstraints( io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints); - public java.lang.Boolean hasTopologySpreadConstraints(); + public Boolean hasTopologySpreadConstraints(); public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraint(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - addNewTopologySpreadConstraintLike( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item); + public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike( + V1TopologySpreadConstraint item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - setNewTopologySpreadConstraintLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item); + public V1PodSpecFluent.TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike( + Integer index, V1TopologySpreadConstraint item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editTopologySpreadConstraint(java.lang.Integer index); + public V1PodSpecFluent.TopologySpreadConstraintsNested editTopologySpreadConstraint( + Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editFirstTopologySpreadConstraint(); + public V1PodSpecFluent.TopologySpreadConstraintsNested editFirstTopologySpreadConstraint(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editLastTopologySpreadConstraint(); + public V1PodSpecFluent.TopologySpreadConstraintsNested editLastTopologySpreadConstraint(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editMatchingTopologySpreadConstraint( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate); + public V1PodSpecFluent.TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint( + Predicate predicate); - public A addToVolumes(java.lang.Integer index, V1Volume item); + public A addToVolumes(Integer index, V1Volume item); - public A setToVolumes(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Volume item); + public A setToVolumes(Integer index, V1Volume item); public A addToVolumes(io.kubernetes.client.openapi.models.V1Volume... items); - public A addAllToVolumes( - java.util.Collection items); + public A addAllToVolumes(Collection items); public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items); - public A removeAllFromVolumes( - java.util.Collection items); + public A removeAllFromVolumes(Collection items); - public A removeMatchingFromVolumes(java.util.function.Predicate predicate); + public A removeMatchingFromVolumes(Predicate predicate); /** * This method has been deprecated, please use method buildVolumes instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumes(); + @Deprecated + public List getVolumes(); - public java.util.List buildVolumes(); + public List buildVolumes(); - public io.kubernetes.client.openapi.models.V1Volume buildVolume(java.lang.Integer index); + public V1Volume buildVolume(Integer index); - public io.kubernetes.client.openapi.models.V1Volume buildFirstVolume(); + public V1Volume buildFirstVolume(); - public io.kubernetes.client.openapi.models.V1Volume buildLastVolume(); + public V1Volume buildLastVolume(); - public io.kubernetes.client.openapi.models.V1Volume buildMatchingVolume( - java.util.function.Predicate predicate); + public V1Volume buildMatchingVolume(Predicate predicate); - public java.lang.Boolean hasMatchingVolume( - java.util.function.Predicate predicate); + public Boolean hasMatchingVolume(Predicate predicate); - public A withVolumes(java.util.List volumes); + public A withVolumes(List volumes); public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes); - public java.lang.Boolean hasVolumes(); + public Boolean hasVolumes(); public V1PodSpecFluent.VolumesNested addNewVolume(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested addNewVolumeLike( - io.kubernetes.client.openapi.models.V1Volume item); + public V1PodSpecFluent.VolumesNested addNewVolumeLike(V1Volume item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested setNewVolumeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Volume item); + public V1PodSpecFluent.VolumesNested setNewVolumeLike(Integer index, V1Volume item); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editVolume( - java.lang.Integer index); + public V1PodSpecFluent.VolumesNested editVolume(Integer index); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editFirstVolume(); + public V1PodSpecFluent.VolumesNested editFirstVolume(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editLastVolume(); + public V1PodSpecFluent.VolumesNested editLastVolume(); - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editMatchingVolume( - java.util.function.Predicate predicate); + public V1PodSpecFluent.VolumesNested editMatchingVolume(Predicate predicate); public A withAutomountServiceAccountToken(); @@ -971,6 +812,8 @@ public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested edit public A withHostPID(); + public A withHostUsers(); + public A withSetHostnameAsFQDN(); public A withShareProcessNamespace(); @@ -983,86 +826,76 @@ public interface AffinityNested } public interface ContainersNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerFluent> { + extends Nested, V1ContainerFluent> { public N and(); public N endContainer(); } public interface DnsConfigNested - extends io.kubernetes.client.fluent.Nested, - V1PodDNSConfigFluent> { + extends Nested, V1PodDNSConfigFluent> { public N and(); public N endDnsConfig(); } public interface EphemeralContainersNested - extends io.kubernetes.client.fluent.Nested, - V1EphemeralContainerFluent> { + extends Nested, V1EphemeralContainerFluent> { public N and(); public N endEphemeralContainer(); } public interface HostAliasesNested - extends io.kubernetes.client.fluent.Nested, - V1HostAliasFluent> { + extends Nested, V1HostAliasFluent> { public N and(); public N endHostAlias(); } public interface ImagePullSecretsNested - extends io.kubernetes.client.fluent.Nested, - V1LocalObjectReferenceFluent> { + extends Nested, V1LocalObjectReferenceFluent> { public N and(); public N endImagePullSecret(); } public interface InitContainersNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerFluent> { + extends Nested, V1ContainerFluent> { public N and(); public N endInitContainer(); } - public interface OsNested - extends io.kubernetes.client.fluent.Nested, V1PodOSFluent> { + public interface OsNested extends Nested, V1PodOSFluent> { public N and(); public N endOs(); } public interface ReadinessGatesNested - extends io.kubernetes.client.fluent.Nested, - V1PodReadinessGateFluent> { + extends Nested, V1PodReadinessGateFluent> { public N and(); public N endReadinessGate(); } public interface SecurityContextNested - extends io.kubernetes.client.fluent.Nested, - V1PodSecurityContextFluent> { + extends Nested, V1PodSecurityContextFluent> { public N and(); public N endSecurityContext(); } public interface TolerationsNested - extends io.kubernetes.client.fluent.Nested, - V1TolerationFluent> { + extends Nested, V1TolerationFluent> { public N and(); public N endToleration(); } public interface TopologySpreadConstraintsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1TopologySpreadConstraintFluent> { public N and(); @@ -1070,8 +903,7 @@ public interface TopologySpreadConstraintsNested } public interface VolumesNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeFluent> { + extends Nested, V1VolumeFluent> { public N and(); public N endVolume(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java index a35c070091..506615190d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluentImpl.java @@ -29,7 +29,7 @@ public class V1PodSpecFluentImpl> extends BaseFluen implements V1PodSpecFluent { public V1PodSpecFluentImpl() {} - public V1PodSpecFluentImpl(io.kubernetes.client.openapi.models.V1PodSpec instance) { + public V1PodSpecFluentImpl(V1PodSpec instance) { this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withAffinity(instance.getAffinity()); @@ -54,6 +54,8 @@ public V1PodSpecFluentImpl(io.kubernetes.client.openapi.models.V1PodSpec instanc this.withHostPID(instance.getHostPID()); + this.withHostUsers(instance.getHostUsers()); + this.withHostname(instance.getHostname()); this.withImagePullSecrets(instance.getImagePullSecrets()); @@ -109,47 +111,48 @@ public V1PodSpecFluentImpl(io.kubernetes.client.openapi.models.V1PodSpec instanc private ArrayList containers; private V1PodDNSConfigBuilder dnsConfig; private String dnsPolicy; - private java.lang.Boolean enableServiceLinks; - private java.util.ArrayList ephemeralContainers; - private java.util.ArrayList hostAliases; - private java.lang.Boolean hostIPC; - private java.lang.Boolean hostNetwork; - private java.lang.Boolean hostPID; - private java.lang.String hostname; - private java.util.ArrayList imagePullSecrets; - private java.util.ArrayList initContainers; - private java.lang.String nodeName; - private Map nodeSelector; + private Boolean enableServiceLinks; + private ArrayList ephemeralContainers; + private ArrayList hostAliases; + private Boolean hostIPC; + private Boolean hostNetwork; + private Boolean hostPID; + private Boolean hostUsers; + private String hostname; + private ArrayList imagePullSecrets; + private ArrayList initContainers; + private String nodeName; + private Map nodeSelector; private V1PodOSBuilder os; - private java.util.Map overhead; - private java.lang.String preemptionPolicy; + private Map overhead; + private String preemptionPolicy; private Integer priority; - private java.lang.String priorityClassName; - private java.util.ArrayList readinessGates; - private java.lang.String restartPolicy; - private java.lang.String runtimeClassName; - private java.lang.String schedulerName; + private String priorityClassName; + private ArrayList readinessGates; + private String restartPolicy; + private String runtimeClassName; + private String schedulerName; private V1PodSecurityContextBuilder securityContext; - private java.lang.String serviceAccount; - private java.lang.String serviceAccountName; - private java.lang.Boolean setHostnameAsFQDN; - private java.lang.Boolean shareProcessNamespace; - private java.lang.String subdomain; - private java.lang.Long terminationGracePeriodSeconds; - private java.util.ArrayList tolerations; - private java.util.ArrayList topologySpreadConstraints; - private java.util.ArrayList volumes; - - public java.lang.Long getActiveDeadlineSeconds() { + private String serviceAccount; + private String serviceAccountName; + private Boolean setHostnameAsFQDN; + private Boolean shareProcessNamespace; + private String subdomain; + private Long terminationGracePeriodSeconds; + private ArrayList tolerations; + private ArrayList topologySpreadConstraints; + private ArrayList volumes; + + public Long getActiveDeadlineSeconds() { return this.activeDeadlineSeconds; } - public A withActiveDeadlineSeconds(java.lang.Long activeDeadlineSeconds) { + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; return (A) this; } - public java.lang.Boolean hasActiveDeadlineSeconds() { + public Boolean hasActiveDeadlineSeconds() { return this.activeDeadlineSeconds != null; } @@ -163,20 +166,23 @@ public V1Affinity getAffinity() { return this.affinity != null ? this.affinity.build() : null; } - public io.kubernetes.client.openapi.models.V1Affinity buildAffinity() { + public V1Affinity buildAffinity() { return this.affinity != null ? this.affinity.build() : null; } - public A withAffinity(io.kubernetes.client.openapi.models.V1Affinity affinity) { + public A withAffinity(V1Affinity affinity) { _visitables.get("affinity").remove(this.affinity); if (affinity != null) { - this.affinity = new io.kubernetes.client.openapi.models.V1AffinityBuilder(affinity); + this.affinity = new V1AffinityBuilder(affinity); _visitables.get("affinity").add(this.affinity); + } else { + this.affinity = null; + _visitables.get("affinity").remove(this.affinity); } return (A) this; } - public java.lang.Boolean hasAffinity() { + public Boolean hasAffinity() { return this.affinity != null; } @@ -184,48 +190,41 @@ public V1PodSpecFluent.AffinityNested withNewAffinity() { return new V1PodSpecFluentImpl.AffinityNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested withNewAffinityLike( - io.kubernetes.client.openapi.models.V1Affinity item) { + public V1PodSpecFluent.AffinityNested withNewAffinityLike(V1Affinity item) { return new V1PodSpecFluentImpl.AffinityNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested editAffinity() { + public V1PodSpecFluent.AffinityNested editAffinity() { return withNewAffinityLike(getAffinity()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested editOrNewAffinity() { + public V1PodSpecFluent.AffinityNested editOrNewAffinity() { return withNewAffinityLike( - getAffinity() != null - ? getAffinity() - : new io.kubernetes.client.openapi.models.V1AffinityBuilder().build()); + getAffinity() != null ? getAffinity() : new V1AffinityBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested - editOrNewAffinityLike(io.kubernetes.client.openapi.models.V1Affinity item) { + public V1PodSpecFluent.AffinityNested editOrNewAffinityLike(V1Affinity item) { return withNewAffinityLike(getAffinity() != null ? getAffinity() : item); } - public java.lang.Boolean getAutomountServiceAccountToken() { + public Boolean getAutomountServiceAccountToken() { return this.automountServiceAccountToken; } - public A withAutomountServiceAccountToken(java.lang.Boolean automountServiceAccountToken) { + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; return (A) this; } - public java.lang.Boolean hasAutomountServiceAccountToken() { + public Boolean hasAutomountServiceAccountToken() { return this.automountServiceAccountToken != null; } - public A addToContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { + public A addToContainers(Integer index, V1Container item) { if (this.containers == null) { - this.containers = - new java.util.ArrayList(); + this.containers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables .get("containers") .add(index >= 0 ? index : _visitables.get("containers").size(), builder); @@ -233,14 +232,11 @@ public A addToContainers( return (A) this; } - public A setToContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { + public A setToContainers(Integer index, V1Container item) { if (this.containers == null) { - this.containers = - new java.util.ArrayList(); + this.containers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= _visitables.get("containers").size()) { _visitables.get("containers").add(builder); } else { @@ -256,26 +252,22 @@ public A setToContainers( public A addToContainers(io.kubernetes.client.openapi.models.V1Container... items) { if (this.containers == null) { - this.containers = - new java.util.ArrayList(); + this.containers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + 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) { + public A addAllToContainers(Collection items) { if (this.containers == null) { - this.containers = - new java.util.ArrayList(); + this.containers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("containers").add(builder); this.containers.add(builder); } @@ -283,9 +275,8 @@ public A addAllToContainers(Collection items) { - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + public A removeAllFromContainers(Collection items) { + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("containers").remove(builder); if (this.containers != null) { this.containers.remove(builder); @@ -307,14 +296,12 @@ public A removeAllFromContainers( return (A) this; } - public A removeMatchingFromContainers( - Predicate predicate) { + public A removeMatchingFromContainers(Predicate predicate) { if (containers == null) return (A) this; - final Iterator each = - containers.iterator(); + final Iterator each = containers.iterator(); final List visitables = _visitables.get("containers"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = each.next(); + V1ContainerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -328,31 +315,29 @@ public A removeMatchingFromContainers( * * @return The buildable object. */ - @java.lang.Deprecated - public List getContainers() { + @Deprecated + public List getContainers() { return containers != null ? build(containers) : null; } - public java.util.List buildContainers() { + public List buildContainers() { return containers != null ? build(containers) : null; } - public io.kubernetes.client.openapi.models.V1Container buildContainer(java.lang.Integer index) { + public V1Container buildContainer(Integer index) { return this.containers.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Container buildFirstContainer() { + public V1Container buildFirstContainer() { return this.containers.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Container buildLastContainer() { + public V1Container buildLastContainer() { return this.containers.get(containers.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Container buildMatchingContainer( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerBuilder item : containers) { + public V1Container buildMatchingContainer(Predicate predicate) { + for (V1ContainerBuilder item : containers) { if (predicate.test(item)) { return item.build(); } @@ -360,10 +345,8 @@ public io.kubernetes.client.openapi.models.V1Container buildMatchingContainer( return null; } - public java.lang.Boolean hasMatchingContainer( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerBuilder item : containers) { + public Boolean hasMatchingContainer(Predicate predicate) { + for (V1ContainerBuilder item : containers) { if (predicate.test(item)) { return true; } @@ -371,14 +354,13 @@ public java.lang.Boolean hasMatchingContainer( return false; } - public A withContainers( - java.util.List containers) { + public A withContainers(List containers) { if (this.containers != null) { _visitables.get("containers").removeAll(this.containers); } if (containers != null) { - this.containers = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Container item : containers) { + this.containers = new ArrayList(); + for (V1Container item : containers) { this.addToContainers(item); } } else { @@ -392,14 +374,14 @@ public A withContainers(io.kubernetes.client.openapi.models.V1Container... conta this.containers.clear(); } if (containers != null) { - for (io.kubernetes.client.openapi.models.V1Container item : containers) { + for (V1Container item : containers) { this.addToContainers(item); } } return (A) this; } - public java.lang.Boolean hasContainers() { + public Boolean hasContainers() { return containers != null && !containers.isEmpty(); } @@ -407,44 +389,34 @@ public V1PodSpecFluent.ContainersNested addNewContainer() { return new V1PodSpecFluentImpl.ContainersNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - addNewContainerLike(io.kubernetes.client.openapi.models.V1Container item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.ContainersNestedImpl( - -1, item); + public V1PodSpecFluent.ContainersNested addNewContainerLike(V1Container item) { + return new V1PodSpecFluentImpl.ContainersNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - setNewContainerLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.ContainersNestedImpl( - index, item); + public V1PodSpecFluent.ContainersNested setNewContainerLike(Integer index, V1Container item) { + return new V1PodSpecFluentImpl.ContainersNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested editContainer( - java.lang.Integer index) { + public V1PodSpecFluent.ContainersNested editContainer(Integer index) { if (containers.size() <= index) throw new RuntimeException("Can't edit containers. Index exceeds size."); return setNewContainerLike(index, buildContainer(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - editFirstContainer() { + public V1PodSpecFluent.ContainersNested editFirstContainer() { if (containers.size() == 0) throw new RuntimeException("Can't edit first containers. The list is empty."); return setNewContainerLike(0, buildContainer(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - editLastContainer() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested - editMatchingContainer( - java.util.function.Predicate - predicate) { + public V1PodSpecFluent.ContainersNested editMatchingContainer( + Predicate predicate) { int index = -1; for (int i = 0; i < containers.size(); i++) { if (predicate.test(containers.get(i))) { @@ -461,25 +433,28 @@ public io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested e * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodDNSConfig getDnsConfig() { return this.dnsConfig != null ? this.dnsConfig.build() : null; } - public io.kubernetes.client.openapi.models.V1PodDNSConfig buildDnsConfig() { + public V1PodDNSConfig buildDnsConfig() { return this.dnsConfig != null ? this.dnsConfig.build() : null; } - public A withDnsConfig(io.kubernetes.client.openapi.models.V1PodDNSConfig dnsConfig) { + public A withDnsConfig(V1PodDNSConfig dnsConfig) { _visitables.get("dnsConfig").remove(this.dnsConfig); if (dnsConfig != null) { - this.dnsConfig = new io.kubernetes.client.openapi.models.V1PodDNSConfigBuilder(dnsConfig); + this.dnsConfig = new V1PodDNSConfigBuilder(dnsConfig); _visitables.get("dnsConfig").add(this.dnsConfig); + } else { + this.dnsConfig = null; + _visitables.get("dnsConfig").remove(this.dnsConfig); } return (A) this; } - public java.lang.Boolean hasDnsConfig() { + public Boolean hasDnsConfig() { return this.dnsConfig != null; } @@ -487,62 +462,54 @@ public V1PodSpecFluent.DnsConfigNested withNewDnsConfig() { return new V1PodSpecFluentImpl.DnsConfigNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested - withNewDnsConfigLike(io.kubernetes.client.openapi.models.V1PodDNSConfig item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.DnsConfigNestedImpl(item); + public V1PodSpecFluent.DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { + return new V1PodSpecFluentImpl.DnsConfigNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested editDnsConfig() { + public V1PodSpecFluent.DnsConfigNested editDnsConfig() { return withNewDnsConfigLike(getDnsConfig()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested - editOrNewDnsConfig() { + public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfig() { return withNewDnsConfigLike( - getDnsConfig() != null - ? getDnsConfig() - : new io.kubernetes.client.openapi.models.V1PodDNSConfigBuilder().build()); + getDnsConfig() != null ? getDnsConfig() : new V1PodDNSConfigBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested - editOrNewDnsConfigLike(io.kubernetes.client.openapi.models.V1PodDNSConfig item) { + public V1PodSpecFluent.DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { return withNewDnsConfigLike(getDnsConfig() != null ? getDnsConfig() : item); } - public java.lang.String getDnsPolicy() { + public String getDnsPolicy() { return this.dnsPolicy; } - public A withDnsPolicy(java.lang.String dnsPolicy) { + public A withDnsPolicy(String dnsPolicy) { this.dnsPolicy = dnsPolicy; return (A) this; } - public java.lang.Boolean hasDnsPolicy() { + public Boolean hasDnsPolicy() { return this.dnsPolicy != null; } - public java.lang.Boolean getEnableServiceLinks() { + public Boolean getEnableServiceLinks() { return this.enableServiceLinks; } - public A withEnableServiceLinks(java.lang.Boolean enableServiceLinks) { + public A withEnableServiceLinks(Boolean enableServiceLinks) { this.enableServiceLinks = enableServiceLinks; return (A) this; } - public java.lang.Boolean hasEnableServiceLinks() { + public Boolean hasEnableServiceLinks() { return this.enableServiceLinks != null; } - public A addToEphemeralContainers(java.lang.Integer index, V1EphemeralContainer item) { + public A addToEphemeralContainers(Integer index, V1EphemeralContainer item) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder>(); + this.ephemeralContainers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(item); + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); _visitables .get("ephemeralContainers") .add(index >= 0 ? index : _visitables.get("ephemeralContainers").size(), builder); @@ -550,15 +517,11 @@ public A addToEphemeralContainers(java.lang.Integer index, V1EphemeralContainer return (A) this; } - public A setToEphemeralContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EphemeralContainer item) { + public A setToEphemeralContainers(Integer index, V1EphemeralContainer item) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder>(); + this.ephemeralContainers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(item); + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); if (index < 0 || index >= _visitables.get("ephemeralContainers").size()) { _visitables.get("ephemeralContainers").add(builder); } else { @@ -575,29 +538,22 @@ public A setToEphemeralContainers( public A addToEphemeralContainers( io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder>(); + this.ephemeralContainers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EphemeralContainer item : items) { - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(item); + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); _visitables.get("ephemeralContainers").add(builder); this.ephemeralContainers.add(builder); } return (A) this; } - public A addAllToEphemeralContainers( - java.util.Collection items) { + public A addAllToEphemeralContainers(Collection items) { if (this.ephemeralContainers == null) { - this.ephemeralContainers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder>(); + this.ephemeralContainers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1EphemeralContainer item : items) { - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(item); + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); _visitables.get("ephemeralContainers").add(builder); this.ephemeralContainers.add(builder); } @@ -606,9 +562,8 @@ public A addAllToEphemeralContainers( public A removeFromEphemeralContainers( io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - for (io.kubernetes.client.openapi.models.V1EphemeralContainer item : items) { - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(item); + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); _visitables.get("ephemeralContainers").remove(builder); if (this.ephemeralContainers != null) { this.ephemeralContainers.remove(builder); @@ -617,11 +572,9 @@ public A removeFromEphemeralContainers( return (A) this; } - public A removeAllFromEphemeralContainers( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1EphemeralContainer item : items) { - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(item); + public A removeAllFromEphemeralContainers(Collection items) { + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); _visitables.get("ephemeralContainers").remove(builder); if (this.ephemeralContainers != null) { this.ephemeralContainers.remove(builder); @@ -630,15 +583,12 @@ public A removeAllFromEphemeralContainers( return (A) this; } - public A removeMatchingFromEphemeralContainers( - java.util.function.Predicate - predicate) { + public A removeMatchingFromEphemeralContainers(Predicate predicate) { if (ephemeralContainers == null) return (A) this; - final Iterator each = - ephemeralContainers.iterator(); + final Iterator each = ephemeralContainers.iterator(); final List visitables = _visitables.get("ephemeralContainers"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder = each.next(); + V1EphemeralContainerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -652,35 +602,30 @@ public A removeMatchingFromEphemeralContainers( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getEphemeralContainers() { + @Deprecated + public List getEphemeralContainers() { return ephemeralContainers != null ? build(ephemeralContainers) : null; } - public java.util.List - buildEphemeralContainers() { + public List buildEphemeralContainers() { return ephemeralContainers != null ? build(ephemeralContainers) : null; } - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildEphemeralContainer( - java.lang.Integer index) { + public V1EphemeralContainer buildEphemeralContainer(Integer index) { return this.ephemeralContainers.get(index).build(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildFirstEphemeralContainer() { + public V1EphemeralContainer buildFirstEphemeralContainer() { return this.ephemeralContainers.get(0).build(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildLastEphemeralContainer() { + public V1EphemeralContainer buildLastEphemeralContainer() { return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1EphemeralContainer buildMatchingEphemeralContainer( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder item : - ephemeralContainers) { + public V1EphemeralContainer buildMatchingEphemeralContainer( + Predicate predicate) { + for (V1EphemeralContainerBuilder item : ephemeralContainers) { if (predicate.test(item)) { return item.build(); } @@ -688,11 +633,8 @@ public io.kubernetes.client.openapi.models.V1EphemeralContainer buildMatchingEph return null; } - public java.lang.Boolean hasMatchingEphemeralContainer( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder item : - ephemeralContainers) { + public Boolean hasMatchingEphemeralContainer(Predicate predicate) { + for (V1EphemeralContainerBuilder item : ephemeralContainers) { if (predicate.test(item)) { return true; } @@ -700,15 +642,13 @@ public java.lang.Boolean hasMatchingEphemeralContainer( return false; } - public A withEphemeralContainers( - java.util.List - ephemeralContainers) { + public A withEphemeralContainers(List ephemeralContainers) { if (this.ephemeralContainers != null) { _visitables.get("ephemeralContainers").removeAll(this.ephemeralContainers); } if (ephemeralContainers != null) { - this.ephemeralContainers = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1EphemeralContainer item : ephemeralContainers) { + this.ephemeralContainers = new ArrayList(); + for (V1EphemeralContainer item : ephemeralContainers) { this.addToEphemeralContainers(item); } } else { @@ -723,14 +663,14 @@ public A withEphemeralContainers( this.ephemeralContainers.clear(); } if (ephemeralContainers != null) { - for (io.kubernetes.client.openapi.models.V1EphemeralContainer item : ephemeralContainers) { + for (V1EphemeralContainer item : ephemeralContainers) { this.addToEphemeralContainers(item); } } return (A) this; } - public java.lang.Boolean hasEphemeralContainers() { + public Boolean hasEphemeralContainers() { return ephemeralContainers != null && !ephemeralContainers.isEmpty(); } @@ -738,46 +678,37 @@ public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainer() { return new V1PodSpecFluentImpl.EphemeralContainersNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - addNewEphemeralContainerLike(io.kubernetes.client.openapi.models.V1EphemeralContainer item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl - .EphemeralContainersNestedImpl(-1, item); + public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainerLike( + V1EphemeralContainer item) { + return new V1PodSpecFluentImpl.EphemeralContainersNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - setNewEphemeralContainerLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1EphemeralContainer item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl - .EphemeralContainersNestedImpl(index, item); + public V1PodSpecFluent.EphemeralContainersNested setNewEphemeralContainerLike( + Integer index, V1EphemeralContainer item) { + return new V1PodSpecFluentImpl.EphemeralContainersNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editEphemeralContainer(java.lang.Integer index) { + public V1PodSpecFluent.EphemeralContainersNested editEphemeralContainer(Integer index) { if (ephemeralContainers.size() <= index) throw new RuntimeException("Can't edit ephemeralContainers. Index exceeds size."); return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editFirstEphemeralContainer() { + public V1PodSpecFluent.EphemeralContainersNested editFirstEphemeralContainer() { if (ephemeralContainers.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainers. The list is empty."); return setNewEphemeralContainerLike(0, buildEphemeralContainer(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editLastEphemeralContainer() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested - editMatchingEphemeralContainer( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder> - predicate) { + public V1PodSpecFluent.EphemeralContainersNested editMatchingEphemeralContainer( + Predicate predicate) { int index = -1; for (int i = 0; i < ephemeralContainers.size(); i++) { if (predicate.test(ephemeralContainers.get(i))) { @@ -790,13 +721,11 @@ public V1PodSpecFluent.EphemeralContainersNested addNewEphemeralContainer() { return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); } - public A addToHostAliases( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HostAlias item) { + public A addToHostAliases(Integer index, V1HostAlias item) { if (this.hostAliases == null) { - this.hostAliases = new java.util.ArrayList(); + this.hostAliases = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = - new io.kubernetes.client.openapi.models.V1HostAliasBuilder(item); + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); _visitables .get("hostAliases") .add(index >= 0 ? index : _visitables.get("hostAliases").size(), builder); @@ -804,14 +733,11 @@ public A addToHostAliases( return (A) this; } - public A setToHostAliases( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HostAlias item) { + public A setToHostAliases(Integer index, V1HostAlias item) { if (this.hostAliases == null) { - this.hostAliases = - new java.util.ArrayList(); + this.hostAliases = new ArrayList(); } - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = - new io.kubernetes.client.openapi.models.V1HostAliasBuilder(item); + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); if (index < 0 || index >= _visitables.get("hostAliases").size()) { _visitables.get("hostAliases").add(builder); } else { @@ -827,27 +753,22 @@ public A setToHostAliases( public A addToHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { if (this.hostAliases == null) { - this.hostAliases = - new java.util.ArrayList(); + this.hostAliases = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HostAlias item : items) { - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = - new io.kubernetes.client.openapi.models.V1HostAliasBuilder(item); + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); _visitables.get("hostAliases").add(builder); this.hostAliases.add(builder); } return (A) this; } - public A addAllToHostAliases( - java.util.Collection items) { + public A addAllToHostAliases(Collection items) { if (this.hostAliases == null) { - this.hostAliases = - new java.util.ArrayList(); + this.hostAliases = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1HostAlias item : items) { - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = - new io.kubernetes.client.openapi.models.V1HostAliasBuilder(item); + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); _visitables.get("hostAliases").add(builder); this.hostAliases.add(builder); } @@ -855,9 +776,8 @@ public A addAllToHostAliases( } public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - for (io.kubernetes.client.openapi.models.V1HostAlias item : items) { - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = - new io.kubernetes.client.openapi.models.V1HostAliasBuilder(item); + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); _visitables.get("hostAliases").remove(builder); if (this.hostAliases != null) { this.hostAliases.remove(builder); @@ -866,11 +786,9 @@ public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias.. return (A) this; } - public A removeAllFromHostAliases( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1HostAlias item : items) { - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = - new io.kubernetes.client.openapi.models.V1HostAliasBuilder(item); + public A removeAllFromHostAliases(Collection items) { + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); _visitables.get("hostAliases").remove(builder); if (this.hostAliases != null) { this.hostAliases.remove(builder); @@ -879,15 +797,12 @@ public A removeAllFromHostAliases( return (A) this; } - public A removeMatchingFromHostAliases( - java.util.function.Predicate - predicate) { + public A removeMatchingFromHostAliases(Predicate predicate) { if (hostAliases == null) return (A) this; - final Iterator each = - hostAliases.iterator(); + final Iterator each = hostAliases.iterator(); final List visitables = _visitables.get("hostAliases"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder = each.next(); + V1HostAliasBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -901,31 +816,29 @@ public A removeMatchingFromHostAliases( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getHostAliases() { + @Deprecated + public List getHostAliases() { return hostAliases != null ? build(hostAliases) : null; } - public java.util.List buildHostAliases() { + public List buildHostAliases() { return hostAliases != null ? build(hostAliases) : null; } - public io.kubernetes.client.openapi.models.V1HostAlias buildHostAlias(java.lang.Integer index) { + public V1HostAlias buildHostAlias(Integer index) { return this.hostAliases.get(index).build(); } - public io.kubernetes.client.openapi.models.V1HostAlias buildFirstHostAlias() { + public V1HostAlias buildFirstHostAlias() { return this.hostAliases.get(0).build(); } - public io.kubernetes.client.openapi.models.V1HostAlias buildLastHostAlias() { + public V1HostAlias buildLastHostAlias() { return this.hostAliases.get(hostAliases.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1HostAlias buildMatchingHostAlias( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1HostAliasBuilder item : hostAliases) { + public V1HostAlias buildMatchingHostAlias(Predicate predicate) { + for (V1HostAliasBuilder item : hostAliases) { if (predicate.test(item)) { return item.build(); } @@ -933,10 +846,8 @@ public io.kubernetes.client.openapi.models.V1HostAlias buildMatchingHostAlias( return null; } - public java.lang.Boolean hasMatchingHostAlias( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1HostAliasBuilder item : hostAliases) { + public Boolean hasMatchingHostAlias(Predicate predicate) { + for (V1HostAliasBuilder item : hostAliases) { if (predicate.test(item)) { return true; } @@ -944,14 +855,13 @@ public java.lang.Boolean hasMatchingHostAlias( return false; } - public A withHostAliases( - java.util.List hostAliases) { + public A withHostAliases(List hostAliases) { if (this.hostAliases != null) { _visitables.get("hostAliases").removeAll(this.hostAliases); } if (hostAliases != null) { - this.hostAliases = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1HostAlias item : hostAliases) { + this.hostAliases = new ArrayList(); + for (V1HostAlias item : hostAliases) { this.addToHostAliases(item); } } else { @@ -965,14 +875,14 @@ public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... host this.hostAliases.clear(); } if (hostAliases != null) { - for (io.kubernetes.client.openapi.models.V1HostAlias item : hostAliases) { + for (V1HostAlias item : hostAliases) { this.addToHostAliases(item); } } return (A) this; } - public java.lang.Boolean hasHostAliases() { + public Boolean hasHostAliases() { return hostAliases != null && !hostAliases.isEmpty(); } @@ -980,44 +890,34 @@ public V1PodSpecFluent.HostAliasesNested addNewHostAlias() { return new V1PodSpecFluentImpl.HostAliasesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - addNewHostAliasLike(io.kubernetes.client.openapi.models.V1HostAlias item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.HostAliasesNestedImpl( - -1, item); + public V1PodSpecFluent.HostAliasesNested addNewHostAliasLike(V1HostAlias item) { + return new V1PodSpecFluentImpl.HostAliasesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - setNewHostAliasLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HostAlias item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.HostAliasesNestedImpl( - index, item); + public V1PodSpecFluent.HostAliasesNested setNewHostAliasLike(Integer index, V1HostAlias item) { + return new V1PodSpecFluentImpl.HostAliasesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested editHostAlias( - java.lang.Integer index) { + public V1PodSpecFluent.HostAliasesNested editHostAlias(Integer index) { if (hostAliases.size() <= index) throw new RuntimeException("Can't edit hostAliases. Index exceeds size."); return setNewHostAliasLike(index, buildHostAlias(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - editFirstHostAlias() { + public V1PodSpecFluent.HostAliasesNested editFirstHostAlias() { if (hostAliases.size() == 0) throw new RuntimeException("Can't edit first hostAliases. The list is empty."); return setNewHostAliasLike(0, buildHostAlias(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - editLastHostAlias() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested - editMatchingHostAlias( - java.util.function.Predicate - predicate) { + public V1PodSpecFluent.HostAliasesNested editMatchingHostAlias( + Predicate predicate) { int index = -1; for (int i = 0; i < hostAliases.size(); i++) { if (predicate.test(hostAliases.get(i))) { @@ -1029,66 +929,76 @@ public io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested return setNewHostAliasLike(index, buildHostAlias(index)); } - public java.lang.Boolean getHostIPC() { + public Boolean getHostIPC() { return this.hostIPC; } - public A withHostIPC(java.lang.Boolean hostIPC) { + public A withHostIPC(Boolean hostIPC) { this.hostIPC = hostIPC; return (A) this; } - public java.lang.Boolean hasHostIPC() { + public Boolean hasHostIPC() { return this.hostIPC != null; } - public java.lang.Boolean getHostNetwork() { + public Boolean getHostNetwork() { return this.hostNetwork; } - public A withHostNetwork(java.lang.Boolean hostNetwork) { + public A withHostNetwork(Boolean hostNetwork) { this.hostNetwork = hostNetwork; return (A) this; } - public java.lang.Boolean hasHostNetwork() { + public Boolean hasHostNetwork() { return this.hostNetwork != null; } - public java.lang.Boolean getHostPID() { + public Boolean getHostPID() { return this.hostPID; } - public A withHostPID(java.lang.Boolean hostPID) { + public A withHostPID(Boolean hostPID) { this.hostPID = hostPID; return (A) this; } - public java.lang.Boolean hasHostPID() { + public Boolean hasHostPID() { return this.hostPID != null; } - public java.lang.String getHostname() { + public Boolean getHostUsers() { + return this.hostUsers; + } + + public A withHostUsers(Boolean hostUsers) { + this.hostUsers = hostUsers; + return (A) this; + } + + public Boolean hasHostUsers() { + return this.hostUsers != null; + } + + public String getHostname() { return this.hostname; } - public A withHostname(java.lang.String hostname) { + public A withHostname(String hostname) { this.hostname = hostname; return (A) this; } - public java.lang.Boolean hasHostname() { + public Boolean hasHostname() { return this.hostname != null; } - public A addToImagePullSecrets(java.lang.Integer index, V1LocalObjectReference item) { + public A addToImagePullSecrets(Integer index, V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables .get("imagePullSecrets") .add(index >= 0 ? index : _visitables.get("imagePullSecrets").size(), builder); @@ -1096,15 +1006,11 @@ public A addToImagePullSecrets(java.lang.Integer index, V1LocalObjectReference i return (A) this; } - public A setToImagePullSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public A setToImagePullSecrets(Integer index, V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= _visitables.get("imagePullSecrets").size()) { _visitables.get("imagePullSecrets").add(builder); } else { @@ -1121,29 +1027,22 @@ public A setToImagePullSecrets( public A addToImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } return (A) this; } - public A addAllToImagePullSecrets( - java.util.Collection items) { + public A addAllToImagePullSecrets(Collection items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } @@ -1152,9 +1051,8 @@ public A addAllToImagePullSecrets( public A removeFromImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").remove(builder); if (this.imagePullSecrets != null) { this.imagePullSecrets.remove(builder); @@ -1163,11 +1061,9 @@ public A removeFromImagePullSecrets( return (A) this; } - public A removeAllFromImagePullSecrets( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + public A removeAllFromImagePullSecrets(Collection items) { + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").remove(builder); if (this.imagePullSecrets != null) { this.imagePullSecrets.remove(builder); @@ -1176,16 +1072,12 @@ public A removeAllFromImagePullSecrets( return (A) this; } - public A removeMatchingFromImagePullSecrets( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { + public A removeMatchingFromImagePullSecrets(Predicate predicate) { if (imagePullSecrets == null) return (A) this; - final Iterator each = - imagePullSecrets.iterator(); + final Iterator each = imagePullSecrets.iterator(); final List visitables = _visitables.get("imagePullSecrets"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = each.next(); + V1LocalObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1199,36 +1091,30 @@ public A removeMatchingFromImagePullSecrets( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getImagePullSecrets() { + @Deprecated + public List getImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public java.util.List - buildImagePullSecrets() { + public List buildImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildImagePullSecret( - java.lang.Integer index) { + public V1LocalObjectReference buildImagePullSecret(Integer index) { return this.imagePullSecrets.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildFirstImagePullSecret() { + public V1LocalObjectReference buildFirstImagePullSecret() { return this.imagePullSecrets.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildLastImagePullSecret() { + public V1LocalObjectReference buildLastImagePullSecret() { return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder item : - imagePullSecrets) { + public V1LocalObjectReference buildMatchingImagePullSecret( + Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { return item.build(); } @@ -1236,12 +1122,8 @@ public io.kubernetes.client.openapi.models.V1LocalObjectReference buildMatchingI return null; } - public java.lang.Boolean hasMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder item : - imagePullSecrets) { + public Boolean hasMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { return true; } @@ -1249,14 +1131,13 @@ public java.lang.Boolean hasMatchingImagePullSecret( return false; } - public A withImagePullSecrets( - java.util.List imagePullSecrets) { + public A withImagePullSecrets(List imagePullSecrets) { if (this.imagePullSecrets != null) { _visitables.get("imagePullSecrets").removeAll(this.imagePullSecrets); } if (imagePullSecrets != null) { - this.imagePullSecrets = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : imagePullSecrets) { + this.imagePullSecrets = new ArrayList(); + for (V1LocalObjectReference item : imagePullSecrets) { this.addToImagePullSecrets(item); } } else { @@ -1271,14 +1152,14 @@ public A withImagePullSecrets( this.imagePullSecrets.clear(); } if (imagePullSecrets != null) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : imagePullSecrets) { + for (V1LocalObjectReference item : imagePullSecrets) { this.addToImagePullSecrets(item); } } return (A) this; } - public java.lang.Boolean hasImagePullSecrets() { + public Boolean hasImagePullSecrets() { return imagePullSecrets != null && !imagePullSecrets.isEmpty(); } @@ -1286,47 +1167,37 @@ public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecret() { return new V1PodSpecFluentImpl.ImagePullSecretsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - addNewImagePullSecretLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.ImagePullSecretsNestedImpl( - -1, item); + public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecretLike( + V1LocalObjectReference item) { + return new V1PodSpecFluentImpl.ImagePullSecretsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - setNewImagePullSecretLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1LocalObjectReference item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.ImagePullSecretsNestedImpl( - index, item); + public V1PodSpecFluent.ImagePullSecretsNested setNewImagePullSecretLike( + Integer index, V1LocalObjectReference item) { + return new V1PodSpecFluentImpl.ImagePullSecretsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editImagePullSecret(java.lang.Integer index) { + public V1PodSpecFluent.ImagePullSecretsNested editImagePullSecret(Integer index) { if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editFirstImagePullSecret() { + public V1PodSpecFluent.ImagePullSecretsNested editFirstImagePullSecret() { if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); return setNewImagePullSecretLike(0, buildImagePullSecret(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editLastImagePullSecret() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested - editMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { + public V1PodSpecFluent.ImagePullSecretsNested editMatchingImagePullSecret( + Predicate predicate) { int index = -1; for (int i = 0; i < imagePullSecrets.size(); i++) { if (predicate.test(imagePullSecrets.get(i))) { @@ -1339,14 +1210,11 @@ public V1PodSpecFluent.ImagePullSecretsNested addNewImagePullSecret() { return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - public A addToInitContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { + public A addToInitContainers(Integer index, V1Container item) { if (this.initContainers == null) { - this.initContainers = - new java.util.ArrayList(); + this.initContainers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables .get("initContainers") .add(index >= 0 ? index : _visitables.get("initContainers").size(), builder); @@ -1354,14 +1222,11 @@ public A addToInitContainers( return (A) this; } - public A setToInitContainers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { + public A setToInitContainers(Integer index, V1Container item) { if (this.initContainers == null) { - this.initContainers = - new java.util.ArrayList(); + this.initContainers = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + V1ContainerBuilder builder = new V1ContainerBuilder(item); if (index < 0 || index >= _visitables.get("initContainers").size()) { _visitables.get("initContainers").add(builder); } else { @@ -1377,27 +1242,22 @@ public A setToInitContainers( public A addToInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { if (this.initContainers == null) { - this.initContainers = - new java.util.ArrayList(); + this.initContainers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("initContainers").add(builder); this.initContainers.add(builder); } return (A) this; } - public A addAllToInitContainers( - java.util.Collection items) { + public A addAllToInitContainers(Collection items) { if (this.initContainers == null) { - this.initContainers = - new java.util.ArrayList(); + this.initContainers = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("initContainers").add(builder); this.initContainers.add(builder); } @@ -1405,9 +1265,8 @@ public A addAllToInitContainers( } public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("initContainers").remove(builder); if (this.initContainers != null) { this.initContainers.remove(builder); @@ -1416,11 +1275,9 @@ public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Containe return (A) this; } - public A removeAllFromInitContainers( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Container item : items) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerBuilder(item); + public A removeAllFromInitContainers(Collection items) { + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); _visitables.get("initContainers").remove(builder); if (this.initContainers != null) { this.initContainers.remove(builder); @@ -1429,15 +1286,12 @@ public A removeAllFromInitContainers( return (A) this; } - public A removeMatchingFromInitContainers( - java.util.function.Predicate - predicate) { + public A removeMatchingFromInitContainers(Predicate predicate) { if (initContainers == null) return (A) this; - final Iterator each = - initContainers.iterator(); + final Iterator each = initContainers.iterator(); final List visitables = _visitables.get("initContainers"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerBuilder builder = each.next(); + V1ContainerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1451,32 +1305,29 @@ public A removeMatchingFromInitContainers( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getInitContainers() { + @Deprecated + public List getInitContainers() { return initContainers != null ? build(initContainers) : null; } - public java.util.List buildInitContainers() { + public List buildInitContainers() { return initContainers != null ? build(initContainers) : null; } - public io.kubernetes.client.openapi.models.V1Container buildInitContainer( - java.lang.Integer index) { + public V1Container buildInitContainer(Integer index) { return this.initContainers.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Container buildFirstInitContainer() { + public V1Container buildFirstInitContainer() { return this.initContainers.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Container buildLastInitContainer() { + public V1Container buildLastInitContainer() { return this.initContainers.get(initContainers.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Container buildMatchingInitContainer( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerBuilder item : initContainers) { + public V1Container buildMatchingInitContainer(Predicate predicate) { + for (V1ContainerBuilder item : initContainers) { if (predicate.test(item)) { return item.build(); } @@ -1484,10 +1335,8 @@ public io.kubernetes.client.openapi.models.V1Container buildMatchingInitContaine return null; } - public java.lang.Boolean hasMatchingInitContainer( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerBuilder item : initContainers) { + public Boolean hasMatchingInitContainer(Predicate predicate) { + for (V1ContainerBuilder item : initContainers) { if (predicate.test(item)) { return true; } @@ -1495,14 +1344,13 @@ public java.lang.Boolean hasMatchingInitContainer( return false; } - public A withInitContainers( - java.util.List initContainers) { + public A withInitContainers(List initContainers) { if (this.initContainers != null) { _visitables.get("initContainers").removeAll(this.initContainers); } if (initContainers != null) { - this.initContainers = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Container item : initContainers) { + this.initContainers = new ArrayList(); + for (V1Container item : initContainers) { this.addToInitContainers(item); } } else { @@ -1516,14 +1364,14 @@ public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... i this.initContainers.clear(); } if (initContainers != null) { - for (io.kubernetes.client.openapi.models.V1Container item : initContainers) { + for (V1Container item : initContainers) { this.addToInitContainers(item); } } return (A) this; } - public java.lang.Boolean hasInitContainers() { + public Boolean hasInitContainers() { return initContainers != null && !initContainers.isEmpty(); } @@ -1531,44 +1379,35 @@ public V1PodSpecFluent.InitContainersNested addNewInitContainer() { return new V1PodSpecFluentImpl.InitContainersNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - addNewInitContainerLike(io.kubernetes.client.openapi.models.V1Container item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.InitContainersNestedImpl( - -1, item); + public V1PodSpecFluent.InitContainersNested addNewInitContainerLike(V1Container item) { + return new V1PodSpecFluentImpl.InitContainersNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - setNewInitContainerLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.InitContainersNestedImpl( - index, item); + public V1PodSpecFluent.InitContainersNested setNewInitContainerLike( + Integer index, V1Container item) { + return new V1PodSpecFluentImpl.InitContainersNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editInitContainer(java.lang.Integer index) { + public V1PodSpecFluent.InitContainersNested editInitContainer(Integer index) { if (initContainers.size() <= index) throw new RuntimeException("Can't edit initContainers. Index exceeds size."); return setNewInitContainerLike(index, buildInitContainer(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editFirstInitContainer() { + public V1PodSpecFluent.InitContainersNested editFirstInitContainer() { if (initContainers.size() == 0) throw new RuntimeException("Can't edit first initContainers. The list is empty."); return setNewInitContainerLike(0, buildInitContainer(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editLastInitContainer() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested - editMatchingInitContainer( - java.util.function.Predicate - predicate) { + public V1PodSpecFluent.InitContainersNested editMatchingInitContainer( + Predicate predicate) { int index = -1; for (int i = 0; i < initContainers.size(); i++) { if (predicate.test(initContainers.get(i))) { @@ -1581,20 +1420,20 @@ public V1PodSpecFluent.InitContainersNested addNewInitContainer() { return setNewInitContainerLike(index, buildInitContainer(index)); } - public java.lang.String getNodeName() { + public String getNodeName() { return this.nodeName; } - public A withNodeName(java.lang.String nodeName) { + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; } - public java.lang.Boolean hasNodeName() { + public Boolean hasNodeName() { return this.nodeName != null; } - public A addToNodeSelector(java.lang.String key, java.lang.String value) { + public A addToNodeSelector(String key, String value) { if (this.nodeSelector == null && key != null && value != null) { this.nodeSelector = new LinkedHashMap(); } @@ -1604,9 +1443,9 @@ public A addToNodeSelector(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToNodeSelector(java.util.Map map) { + public A addToNodeSelector(Map map) { if (this.nodeSelector == null && map != null) { - this.nodeSelector = new java.util.LinkedHashMap(); + this.nodeSelector = new LinkedHashMap(); } if (map != null) { this.nodeSelector.putAll(map); @@ -1614,7 +1453,7 @@ public A addToNodeSelector(java.util.Map map return (A) this; } - public A removeFromNodeSelector(java.lang.String key) { + public A removeFromNodeSelector(String key) { if (this.nodeSelector == null) { return (A) this; } @@ -1624,7 +1463,7 @@ public A removeFromNodeSelector(java.lang.String key) { return (A) this; } - public A removeFromNodeSelector(java.util.Map map) { + public A removeFromNodeSelector(Map map) { if (this.nodeSelector == null) { return (A) this; } @@ -1638,20 +1477,20 @@ public A removeFromNodeSelector(java.util.Map getNodeSelector() { + public Map getNodeSelector() { return this.nodeSelector; } - public A withNodeSelector(java.util.Map nodeSelector) { + public A withNodeSelector(Map nodeSelector) { if (nodeSelector == null) { this.nodeSelector = null; } else { - this.nodeSelector = new java.util.LinkedHashMap(nodeSelector); + this.nodeSelector = new LinkedHashMap(nodeSelector); } return (A) this; } - public java.lang.Boolean hasNodeSelector() { + public Boolean hasNodeSelector() { return this.nodeSelector != null; } @@ -1660,25 +1499,28 @@ public java.lang.Boolean hasNodeSelector() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PodOS getOs() { + @Deprecated + public V1PodOS getOs() { return this.os != null ? this.os.build() : null; } - public io.kubernetes.client.openapi.models.V1PodOS buildOs() { + public V1PodOS buildOs() { return this.os != null ? this.os.build() : null; } - public A withOs(io.kubernetes.client.openapi.models.V1PodOS os) { + public A withOs(V1PodOS os) { _visitables.get("os").remove(this.os); if (os != null) { this.os = new V1PodOSBuilder(os); _visitables.get("os").add(this.os); + } else { + this.os = null; + _visitables.get("os").remove(this.os); } return (A) this; } - public java.lang.Boolean hasOs() { + public Boolean hasOs() { return this.os != null; } @@ -1686,30 +1528,25 @@ public V1PodSpecFluent.OsNested withNewOs() { return new V1PodSpecFluentImpl.OsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested withNewOsLike( - io.kubernetes.client.openapi.models.V1PodOS item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.OsNestedImpl(item); + public V1PodSpecFluent.OsNested withNewOsLike(V1PodOS item) { + return new V1PodSpecFluentImpl.OsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested editOs() { + public V1PodSpecFluent.OsNested editOs() { return withNewOsLike(getOs()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested editOrNewOs() { - return withNewOsLike( - getOs() != null - ? getOs() - : new io.kubernetes.client.openapi.models.V1PodOSBuilder().build()); + public V1PodSpecFluent.OsNested editOrNewOs() { + return withNewOsLike(getOs() != null ? getOs() : new V1PodOSBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested editOrNewOsLike( - io.kubernetes.client.openapi.models.V1PodOS item) { + public V1PodSpecFluent.OsNested editOrNewOsLike(V1PodOS item) { return withNewOsLike(getOs() != null ? getOs() : item); } - public A addToOverhead(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToOverhead(String key, Quantity value) { if (this.overhead == null && key != null && value != null) { - this.overhead = new java.util.LinkedHashMap(); + this.overhead = new LinkedHashMap(); } if (key != null && value != null) { this.overhead.put(key, value); @@ -1717,10 +1554,9 @@ public A addToOverhead(java.lang.String key, io.kubernetes.client.custom.Quantit return (A) this; } - public A addToOverhead( - java.util.Map map) { + public A addToOverhead(Map map) { if (this.overhead == null && map != null) { - this.overhead = new java.util.LinkedHashMap(); + this.overhead = new LinkedHashMap(); } if (map != null) { this.overhead.putAll(map); @@ -1728,7 +1564,7 @@ public A addToOverhead( return (A) this; } - public A removeFromOverhead(java.lang.String key) { + public A removeFromOverhead(String key) { if (this.overhead == null) { return (A) this; } @@ -1738,8 +1574,7 @@ public A removeFromOverhead(java.lang.String key) { return (A) this; } - public A removeFromOverhead( - java.util.Map map) { + public A removeFromOverhead(Map map) { if (this.overhead == null) { return (A) this; } @@ -1753,70 +1588,67 @@ public A removeFromOverhead( return (A) this; } - public java.util.Map getOverhead() { + public Map getOverhead() { return this.overhead; } - public A withOverhead( - java.util.Map overhead) { + public A withOverhead(Map overhead) { if (overhead == null) { this.overhead = null; } else { - this.overhead = new java.util.LinkedHashMap(overhead); + this.overhead = new LinkedHashMap(overhead); } return (A) this; } - public java.lang.Boolean hasOverhead() { + public Boolean hasOverhead() { return this.overhead != null; } - public java.lang.String getPreemptionPolicy() { + public String getPreemptionPolicy() { return this.preemptionPolicy; } - public A withPreemptionPolicy(java.lang.String preemptionPolicy) { + public A withPreemptionPolicy(String preemptionPolicy) { this.preemptionPolicy = preemptionPolicy; return (A) this; } - public java.lang.Boolean hasPreemptionPolicy() { + public Boolean hasPreemptionPolicy() { return this.preemptionPolicy != null; } - public java.lang.Integer getPriority() { + public Integer getPriority() { return this.priority; } - public A withPriority(java.lang.Integer priority) { + public A withPriority(Integer priority) { this.priority = priority; return (A) this; } - public java.lang.Boolean hasPriority() { + public Boolean hasPriority() { return this.priority != null; } - public java.lang.String getPriorityClassName() { + public String getPriorityClassName() { return this.priorityClassName; } - public A withPriorityClassName(java.lang.String priorityClassName) { + public A withPriorityClassName(String priorityClassName) { this.priorityClassName = priorityClassName; return (A) this; } - public java.lang.Boolean hasPriorityClassName() { + public Boolean hasPriorityClassName() { return this.priorityClassName != null; } - public A addToReadinessGates(java.lang.Integer index, V1PodReadinessGate item) { + public A addToReadinessGates(Integer index, V1PodReadinessGate item) { if (this.readinessGates == null) { - this.readinessGates = - new java.util.ArrayList(); + this.readinessGates = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(item); + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); _visitables .get("readinessGates") .add(index >= 0 ? index : _visitables.get("readinessGates").size(), builder); @@ -1824,14 +1656,11 @@ public A addToReadinessGates(java.lang.Integer index, V1PodReadinessGate item) { return (A) this; } - public A setToReadinessGates( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodReadinessGate item) { + public A setToReadinessGates(Integer index, V1PodReadinessGate item) { if (this.readinessGates == null) { - this.readinessGates = - new java.util.ArrayList(); + this.readinessGates = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(item); + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); if (index < 0 || index >= _visitables.get("readinessGates").size()) { _visitables.get("readinessGates").add(builder); } else { @@ -1847,27 +1676,22 @@ public A setToReadinessGates( public A addToReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { if (this.readinessGates == null) { - this.readinessGates = - new java.util.ArrayList(); + this.readinessGates = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodReadinessGate item : items) { - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(item); + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); _visitables.get("readinessGates").add(builder); this.readinessGates.add(builder); } return (A) this; } - public A addAllToReadinessGates( - java.util.Collection items) { + public A addAllToReadinessGates(Collection items) { if (this.readinessGates == null) { - this.readinessGates = - new java.util.ArrayList(); + this.readinessGates = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodReadinessGate item : items) { - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(item); + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); _visitables.get("readinessGates").add(builder); this.readinessGates.add(builder); } @@ -1876,9 +1700,8 @@ public A addAllToReadinessGates( public A removeFromReadinessGates( io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - for (io.kubernetes.client.openapi.models.V1PodReadinessGate item : items) { - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(item); + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); _visitables.get("readinessGates").remove(builder); if (this.readinessGates != null) { this.readinessGates.remove(builder); @@ -1887,11 +1710,9 @@ public A removeFromReadinessGates( return (A) this; } - public A removeAllFromReadinessGates( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodReadinessGate item : items) { - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(item); + public A removeAllFromReadinessGates(Collection items) { + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); _visitables.get("readinessGates").remove(builder); if (this.readinessGates != null) { this.readinessGates.remove(builder); @@ -1900,15 +1721,12 @@ public A removeAllFromReadinessGates( return (A) this; } - public A removeMatchingFromReadinessGates( - java.util.function.Predicate - predicate) { + public A removeMatchingFromReadinessGates(Predicate predicate) { if (readinessGates == null) return (A) this; - final Iterator each = - readinessGates.iterator(); + final Iterator each = readinessGates.iterator(); final List visitables = _visitables.get("readinessGates"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder = each.next(); + V1PodReadinessGateBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1922,34 +1740,30 @@ public A removeMatchingFromReadinessGates( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getReadinessGates() { + @Deprecated + public List getReadinessGates() { return readinessGates != null ? build(readinessGates) : null; } - public java.util.List - buildReadinessGates() { + public List buildReadinessGates() { return readinessGates != null ? build(readinessGates) : null; } - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildReadinessGate( - java.lang.Integer index) { + public V1PodReadinessGate buildReadinessGate(Integer index) { return this.readinessGates.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildFirstReadinessGate() { + public V1PodReadinessGate buildFirstReadinessGate() { return this.readinessGates.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildLastReadinessGate() { + public V1PodReadinessGate buildLastReadinessGate() { return this.readinessGates.get(readinessGates.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PodReadinessGate buildMatchingReadinessGate( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder item : readinessGates) { + public V1PodReadinessGate buildMatchingReadinessGate( + Predicate predicate) { + for (V1PodReadinessGateBuilder item : readinessGates) { if (predicate.test(item)) { return item.build(); } @@ -1957,10 +1771,8 @@ public io.kubernetes.client.openapi.models.V1PodReadinessGate buildMatchingReadi return null; } - public java.lang.Boolean hasMatchingReadinessGate( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder item : readinessGates) { + public Boolean hasMatchingReadinessGate(Predicate predicate) { + for (V1PodReadinessGateBuilder item : readinessGates) { if (predicate.test(item)) { return true; } @@ -1968,14 +1780,13 @@ public java.lang.Boolean hasMatchingReadinessGate( return false; } - public A withReadinessGates( - java.util.List readinessGates) { + public A withReadinessGates(List readinessGates) { if (this.readinessGates != null) { _visitables.get("readinessGates").removeAll(this.readinessGates); } if (readinessGates != null) { - this.readinessGates = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodReadinessGate item : readinessGates) { + this.readinessGates = new ArrayList(); + for (V1PodReadinessGate item : readinessGates) { this.addToReadinessGates(item); } } else { @@ -1990,14 +1801,14 @@ public A withReadinessGates( this.readinessGates.clear(); } if (readinessGates != null) { - for (io.kubernetes.client.openapi.models.V1PodReadinessGate item : readinessGates) { + for (V1PodReadinessGate item : readinessGates) { this.addToReadinessGates(item); } } return (A) this; } - public java.lang.Boolean hasReadinessGates() { + public Boolean hasReadinessGates() { return readinessGates != null && !readinessGates.isEmpty(); } @@ -2005,45 +1816,35 @@ public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGate() { return new V1PodSpecFluentImpl.ReadinessGatesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - addNewReadinessGateLike(io.kubernetes.client.openapi.models.V1PodReadinessGate item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.ReadinessGatesNestedImpl( - -1, item); + public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { + return new V1PodSpecFluentImpl.ReadinessGatesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - setNewReadinessGateLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodReadinessGate item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.ReadinessGatesNestedImpl( - index, item); + public V1PodSpecFluent.ReadinessGatesNested setNewReadinessGateLike( + Integer index, V1PodReadinessGate item) { + return new V1PodSpecFluentImpl.ReadinessGatesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editReadinessGate(java.lang.Integer index) { + public V1PodSpecFluent.ReadinessGatesNested editReadinessGate(Integer index) { if (readinessGates.size() <= index) throw new RuntimeException("Can't edit readinessGates. Index exceeds size."); return setNewReadinessGateLike(index, buildReadinessGate(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editFirstReadinessGate() { + public V1PodSpecFluent.ReadinessGatesNested editFirstReadinessGate() { if (readinessGates.size() == 0) throw new RuntimeException("Can't edit first readinessGates. The list is empty."); return setNewReadinessGateLike(0, buildReadinessGate(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editLastReadinessGate() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested - editMatchingReadinessGate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder> - predicate) { + public V1PodSpecFluent.ReadinessGatesNested editMatchingReadinessGate( + Predicate predicate) { int index = -1; for (int i = 0; i < readinessGates.size(); i++) { if (predicate.test(readinessGates.get(i))) { @@ -2056,42 +1857,42 @@ public V1PodSpecFluent.ReadinessGatesNested addNewReadinessGate() { return setNewReadinessGateLike(index, buildReadinessGate(index)); } - public java.lang.String getRestartPolicy() { + public String getRestartPolicy() { return this.restartPolicy; } - public A withRestartPolicy(java.lang.String restartPolicy) { + public A withRestartPolicy(String restartPolicy) { this.restartPolicy = restartPolicy; return (A) this; } - public java.lang.Boolean hasRestartPolicy() { + public Boolean hasRestartPolicy() { return this.restartPolicy != null; } - public java.lang.String getRuntimeClassName() { + public String getRuntimeClassName() { return this.runtimeClassName; } - public A withRuntimeClassName(java.lang.String runtimeClassName) { + public A withRuntimeClassName(String runtimeClassName) { this.runtimeClassName = runtimeClassName; return (A) this; } - public java.lang.Boolean hasRuntimeClassName() { + public Boolean hasRuntimeClassName() { return this.runtimeClassName != null; } - public java.lang.String getSchedulerName() { + public String getSchedulerName() { return this.schedulerName; } - public A withSchedulerName(java.lang.String schedulerName) { + public A withSchedulerName(String schedulerName) { this.schedulerName = schedulerName; return (A) this; } - public java.lang.Boolean hasSchedulerName() { + public Boolean hasSchedulerName() { return this.schedulerName != null; } @@ -2100,26 +1901,28 @@ public java.lang.Boolean hasSchedulerName() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PodSecurityContext getSecurityContext() { + @Deprecated + public V1PodSecurityContext getSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } - public io.kubernetes.client.openapi.models.V1PodSecurityContext buildSecurityContext() { + public V1PodSecurityContext buildSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } - public A withSecurityContext( - io.kubernetes.client.openapi.models.V1PodSecurityContext securityContext) { + public A withSecurityContext(V1PodSecurityContext securityContext) { _visitables.get("securityContext").remove(this.securityContext); if (securityContext != null) { this.securityContext = new V1PodSecurityContextBuilder(securityContext); _visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + _visitables.get("securityContext").remove(this.securityContext); } return (A) this; } - public java.lang.Boolean hasSecurityContext() { + public Boolean hasSecurityContext() { return this.securityContext != null; } @@ -2127,115 +1930,110 @@ public V1PodSpecFluent.SecurityContextNested withNewSecurityContext() { return new V1PodSpecFluentImpl.SecurityContextNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - withNewSecurityContextLike(io.kubernetes.client.openapi.models.V1PodSecurityContext item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.SecurityContextNestedImpl( - item); + public V1PodSpecFluent.SecurityContextNested withNewSecurityContextLike( + V1PodSecurityContext item) { + return new V1PodSpecFluentImpl.SecurityContextNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - editSecurityContext() { + public V1PodSpecFluent.SecurityContextNested editSecurityContext() { return withNewSecurityContextLike(getSecurityContext()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - editOrNewSecurityContext() { + public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContext() { return withNewSecurityContextLike( getSecurityContext() != null ? getSecurityContext() - : new io.kubernetes.client.openapi.models.V1PodSecurityContextBuilder().build()); + : new V1PodSecurityContextBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested - editOrNewSecurityContextLike(io.kubernetes.client.openapi.models.V1PodSecurityContext item) { + public V1PodSpecFluent.SecurityContextNested editOrNewSecurityContextLike( + V1PodSecurityContext item) { return withNewSecurityContextLike(getSecurityContext() != null ? getSecurityContext() : item); } - public java.lang.String getServiceAccount() { + public String getServiceAccount() { return this.serviceAccount; } - public A withServiceAccount(java.lang.String serviceAccount) { + public A withServiceAccount(String serviceAccount) { this.serviceAccount = serviceAccount; return (A) this; } - public java.lang.Boolean hasServiceAccount() { + public Boolean hasServiceAccount() { return this.serviceAccount != null; } - public java.lang.String getServiceAccountName() { + public String getServiceAccountName() { return this.serviceAccountName; } - public A withServiceAccountName(java.lang.String serviceAccountName) { + public A withServiceAccountName(String serviceAccountName) { this.serviceAccountName = serviceAccountName; return (A) this; } - public java.lang.Boolean hasServiceAccountName() { + public Boolean hasServiceAccountName() { return this.serviceAccountName != null; } - public java.lang.Boolean getSetHostnameAsFQDN() { + public Boolean getSetHostnameAsFQDN() { return this.setHostnameAsFQDN; } - public A withSetHostnameAsFQDN(java.lang.Boolean setHostnameAsFQDN) { + public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { this.setHostnameAsFQDN = setHostnameAsFQDN; return (A) this; } - public java.lang.Boolean hasSetHostnameAsFQDN() { + public Boolean hasSetHostnameAsFQDN() { return this.setHostnameAsFQDN != null; } - public java.lang.Boolean getShareProcessNamespace() { + public Boolean getShareProcessNamespace() { return this.shareProcessNamespace; } - public A withShareProcessNamespace(java.lang.Boolean shareProcessNamespace) { + public A withShareProcessNamespace(Boolean shareProcessNamespace) { this.shareProcessNamespace = shareProcessNamespace; return (A) this; } - public java.lang.Boolean hasShareProcessNamespace() { + public Boolean hasShareProcessNamespace() { return this.shareProcessNamespace != null; } - public java.lang.String getSubdomain() { + public String getSubdomain() { return this.subdomain; } - public A withSubdomain(java.lang.String subdomain) { + public A withSubdomain(String subdomain) { this.subdomain = subdomain; return (A) this; } - public java.lang.Boolean hasSubdomain() { + public Boolean hasSubdomain() { return this.subdomain != null; } - public java.lang.Long getTerminationGracePeriodSeconds() { + public Long getTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds; } - public A withTerminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds) { + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return (A) this; } - public java.lang.Boolean hasTerminationGracePeriodSeconds() { + public Boolean hasTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds != null; } - public A addToTolerations(java.lang.Integer index, V1Toleration item) { + public A addToTolerations(Integer index, V1Toleration item) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables .get("tolerations") .add(index >= 0 ? index : _visitables.get("tolerations").size(), builder); @@ -2243,14 +2041,11 @@ public A addToTolerations(java.lang.Integer index, V1Toleration item) { return (A) this; } - public A setToTolerations( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { + public A setToTolerations(Integer index, V1Toleration item) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= _visitables.get("tolerations").size()) { _visitables.get("tolerations").add(builder); } else { @@ -2266,27 +2061,22 @@ public A setToTolerations( public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; } - public A addAllToTolerations( - java.util.Collection items) { + public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").add(builder); this.tolerations.add(builder); } @@ -2294,9 +2084,8 @@ public A addAllToTolerations( } public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").remove(builder); if (this.tolerations != null) { this.tolerations.remove(builder); @@ -2305,11 +2094,9 @@ public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration. return (A) this; } - public A removeAllFromTolerations( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + public A removeAllFromTolerations(Collection items) { + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").remove(builder); if (this.tolerations != null) { this.tolerations.remove(builder); @@ -2318,15 +2105,12 @@ public A removeAllFromTolerations( return (A) this; } - public A removeMatchingFromTolerations( - java.util.function.Predicate - predicate) { + public A removeMatchingFromTolerations(Predicate predicate) { if (tolerations == null) return (A) this; - final Iterator each = - tolerations.iterator(); + final Iterator each = tolerations.iterator(); final List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = each.next(); + V1TolerationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -2340,31 +2124,29 @@ public A removeMatchingFromTolerations( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getTolerations() { + @Deprecated + public List getTolerations() { return tolerations != null ? build(tolerations) : null; } - public java.util.List buildTolerations() { + public List buildTolerations() { return tolerations != null ? build(tolerations) : null; } - public io.kubernetes.client.openapi.models.V1Toleration buildToleration(java.lang.Integer index) { + public V1Toleration buildToleration(Integer index) { return this.tolerations.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Toleration buildFirstToleration() { + public V1Toleration buildFirstToleration() { return this.tolerations.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Toleration buildLastToleration() { + public V1Toleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1TolerationBuilder item : tolerations) { + public V1Toleration buildMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { if (predicate.test(item)) { return item.build(); } @@ -2372,10 +2154,8 @@ public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( return null; } - public java.lang.Boolean hasMatchingToleration( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1TolerationBuilder item : tolerations) { + public Boolean hasMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { if (predicate.test(item)) { return true; } @@ -2383,14 +2163,13 @@ public java.lang.Boolean hasMatchingToleration( return false; } - public A withTolerations( - java.util.List tolerations) { + public A withTolerations(List tolerations) { if (this.tolerations != null) { _visitables.get("tolerations").removeAll(this.tolerations); } if (tolerations != null) { - this.tolerations = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Toleration item : tolerations) { + this.tolerations = new ArrayList(); + for (V1Toleration item : tolerations) { this.addToTolerations(item); } } else { @@ -2404,14 +2183,14 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tol this.tolerations.clear(); } if (tolerations != null) { - for (io.kubernetes.client.openapi.models.V1Toleration item : tolerations) { + for (V1Toleration item : tolerations) { this.addToTolerations(item); } } return (A) this; } - public java.lang.Boolean hasTolerations() { + public Boolean hasTolerations() { return tolerations != null && !tolerations.isEmpty(); } @@ -2419,44 +2198,35 @@ public V1PodSpecFluent.TolerationsNested addNewToleration() { return new V1PodSpecFluentImpl.TolerationsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - addNewTolerationLike(io.kubernetes.client.openapi.models.V1Toleration item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.TolerationsNestedImpl( - -1, item); + public V1PodSpecFluent.TolerationsNested addNewTolerationLike(V1Toleration item) { + return new V1PodSpecFluentImpl.TolerationsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - setNewTolerationLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.TolerationsNestedImpl( - index, item); + public V1PodSpecFluent.TolerationsNested setNewTolerationLike( + Integer index, V1Toleration item) { + return new V1PodSpecFluentImpl.TolerationsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested editToleration( - java.lang.Integer index) { + public V1PodSpecFluent.TolerationsNested editToleration(Integer index) { if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); return setNewTolerationLike(index, buildToleration(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - editFirstToleration() { + public V1PodSpecFluent.TolerationsNested editFirstToleration() { if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); return setNewTolerationLike(0, buildToleration(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - editLastToleration() { + public V1PodSpecFluent.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 io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested - editMatchingToleration( - java.util.function.Predicate - predicate) { + public V1PodSpecFluent.TolerationsNested editMatchingToleration( + Predicate predicate) { int index = -1; for (int i = 0; i < tolerations.size(); i++) { if (predicate.test(tolerations.get(i))) { @@ -2468,15 +2238,11 @@ public io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested return setNewTolerationLike(index, buildToleration(index)); } - public A addToTopologySpreadConstraints( - java.lang.Integer index, V1TopologySpreadConstraint item) { + public A addToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder>(); + this.topologySpreadConstraints = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(item); + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); _visitables .get("topologySpreadConstraints") .add(index >= 0 ? index : _visitables.get("topologySpreadConstraints").size(), builder); @@ -2485,16 +2251,11 @@ public A addToTopologySpreadConstraints( return (A) this; } - public A setToTopologySpreadConstraints( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item) { + public A setToTopologySpreadConstraints(Integer index, V1TopologySpreadConstraint item) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder>(); + this.topologySpreadConstraints = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(item); + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); if (index < 0 || index >= _visitables.get("topologySpreadConstraints").size()) { _visitables.get("topologySpreadConstraints").add(builder); } else { @@ -2511,29 +2272,22 @@ public A setToTopologySpreadConstraints( public A addToTopologySpreadConstraints( io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder>(); + this.topologySpreadConstraints = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item : items) { - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(item); + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); _visitables.get("topologySpreadConstraints").add(builder); this.topologySpreadConstraints.add(builder); } return (A) this; } - public A addAllToTopologySpreadConstraints( - java.util.Collection items) { + public A addAllToTopologySpreadConstraints(Collection items) { if (this.topologySpreadConstraints == null) { - this.topologySpreadConstraints = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder>(); + this.topologySpreadConstraints = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item : items) { - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(item); + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); _visitables.get("topologySpreadConstraints").add(builder); this.topologySpreadConstraints.add(builder); } @@ -2542,9 +2296,8 @@ public A addAllToTopologySpreadConstraints( public A removeFromTopologySpreadConstraints( io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item : items) { - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(item); + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); _visitables.get("topologySpreadConstraints").remove(builder); if (this.topologySpreadConstraints != null) { this.topologySpreadConstraints.remove(builder); @@ -2553,11 +2306,9 @@ public A removeFromTopologySpreadConstraints( return (A) this; } - public A removeAllFromTopologySpreadConstraints( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item : items) { - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(item); + public A removeAllFromTopologySpreadConstraints(Collection items) { + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); _visitables.get("topologySpreadConstraints").remove(builder); if (this.topologySpreadConstraints != null) { this.topologySpreadConstraints.remove(builder); @@ -2567,15 +2318,12 @@ public A removeAllFromTopologySpreadConstraints( } public A removeMatchingFromTopologySpreadConstraints( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate) { + Predicate predicate) { if (topologySpreadConstraints == null) return (A) this; - final Iterator each = - topologySpreadConstraints.iterator(); + final Iterator each = topologySpreadConstraints.iterator(); final List visitables = _visitables.get("topologySpreadConstraints"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder = each.next(); + V1TopologySpreadConstraintBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -2589,39 +2337,30 @@ public A removeMatchingFromTopologySpreadConstraints( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getTopologySpreadConstraints() { + @Deprecated + public List getTopologySpreadConstraints() { return topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; } - public java.util.List - buildTopologySpreadConstraints() { + public List buildTopologySpreadConstraints() { return topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildTopologySpreadConstraint(java.lang.Integer index) { + public V1TopologySpreadConstraint buildTopologySpreadConstraint(Integer index) { return this.topologySpreadConstraints.get(index).build(); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildFirstTopologySpreadConstraint() { + public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint() { return this.topologySpreadConstraints.get(0).build(); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildLastTopologySpreadConstraint() { + public V1TopologySpreadConstraint buildLastTopologySpreadConstraint() { return this.topologySpreadConstraints.get(topologySpreadConstraints.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint - buildMatchingTopologySpreadConstraint( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder item : - topologySpreadConstraints) { + public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint( + Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { if (predicate.test(item)) { return item.build(); } @@ -2629,12 +2368,9 @@ public A removeMatchingFromTopologySpreadConstraints( return null; } - public java.lang.Boolean hasMatchingTopologySpreadConstraint( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder item : - topologySpreadConstraints) { + public Boolean hasMatchingTopologySpreadConstraint( + Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { if (predicate.test(item)) { return true; } @@ -2643,15 +2379,13 @@ public java.lang.Boolean hasMatchingTopologySpreadConstraint( } public A withTopologySpreadConstraints( - java.util.List - topologySpreadConstraints) { + List topologySpreadConstraints) { if (this.topologySpreadConstraints != null) { _visitables.get("topologySpreadConstraints").removeAll(this.topologySpreadConstraints); } if (topologySpreadConstraints != null) { - this.topologySpreadConstraints = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item : - topologySpreadConstraints) { + this.topologySpreadConstraints = new ArrayList(); + for (V1TopologySpreadConstraint item : topologySpreadConstraints) { this.addToTopologySpreadConstraints(item); } } else { @@ -2666,15 +2400,14 @@ public A withTopologySpreadConstraints( this.topologySpreadConstraints.clear(); } if (topologySpreadConstraints != null) { - for (io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item : - topologySpreadConstraints) { + for (V1TopologySpreadConstraint item : topologySpreadConstraints) { this.addToTopologySpreadConstraints(item); } } return (A) this; } - public java.lang.Boolean hasTopologySpreadConstraints() { + public Boolean hasTopologySpreadConstraints() { return topologySpreadConstraints != null && !topologySpreadConstraints.isEmpty(); } @@ -2682,48 +2415,38 @@ public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadCo return new V1PodSpecFluentImpl.TopologySpreadConstraintsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - addNewTopologySpreadConstraintLike( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl - .TopologySpreadConstraintsNestedImpl(-1, item); + public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike( + V1TopologySpreadConstraint item) { + return new V1PodSpecFluentImpl.TopologySpreadConstraintsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - setNewTopologySpreadConstraintLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl - .TopologySpreadConstraintsNestedImpl(index, item); + public V1PodSpecFluent.TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike( + Integer index, V1TopologySpreadConstraint item) { + return new V1PodSpecFluentImpl.TopologySpreadConstraintsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editTopologySpreadConstraint(java.lang.Integer index) { + public V1PodSpecFluent.TopologySpreadConstraintsNested editTopologySpreadConstraint( + Integer index) { if (topologySpreadConstraints.size() <= index) throw new RuntimeException("Can't edit topologySpreadConstraints. Index exceeds size."); return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editFirstTopologySpreadConstraint() { + public V1PodSpecFluent.TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { if (topologySpreadConstraints.size() == 0) throw new RuntimeException("Can't edit first topologySpreadConstraints. The list is empty."); return setNewTopologySpreadConstraintLike(0, buildTopologySpreadConstraint(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editLastTopologySpreadConstraint() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.TopologySpreadConstraintsNested - editMatchingTopologySpreadConstraint( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> - predicate) { + public V1PodSpecFluent.TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint( + Predicate predicate) { int index = -1; for (int i = 0; i < topologySpreadConstraints.size(); i++) { if (predicate.test(topologySpreadConstraints.get(i))) { @@ -2736,25 +2459,21 @@ public V1PodSpecFluent.TopologySpreadConstraintsNested addNewTopologySpreadCo return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); } - public A addToVolumes( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Volume item) { + public A addToVolumes(Integer index, V1Volume item) { if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); + this.volumes = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeBuilder(item); + V1VolumeBuilder builder = new V1VolumeBuilder(item); _visitables.get("volumes").add(index >= 0 ? index : _visitables.get("volumes").size(), builder); this.volumes.add(index >= 0 ? index : volumes.size(), builder); return (A) this; } - public A setToVolumes( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Volume item) { + public A setToVolumes(Integer index, V1Volume item) { if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); + this.volumes = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeBuilder(item); + V1VolumeBuilder builder = new V1VolumeBuilder(item); if (index < 0 || index >= _visitables.get("volumes").size()) { _visitables.get("volumes").add(builder); } else { @@ -2770,25 +2489,22 @@ public A setToVolumes( public A addToVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); + this.volumes = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Volume item : items) { - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeBuilder(item); + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); _visitables.get("volumes").add(builder); this.volumes.add(builder); } return (A) this; } - public A addAllToVolumes( - java.util.Collection items) { + public A addAllToVolumes(Collection items) { if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); + this.volumes = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Volume item : items) { - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeBuilder(item); + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); _visitables.get("volumes").add(builder); this.volumes.add(builder); } @@ -2796,9 +2512,8 @@ public A addAllToVolumes( } public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - for (io.kubernetes.client.openapi.models.V1Volume item : items) { - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeBuilder(item); + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); _visitables.get("volumes").remove(builder); if (this.volumes != null) { this.volumes.remove(builder); @@ -2807,11 +2522,9 @@ public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items return (A) this; } - public A removeAllFromVolumes( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Volume item : items) { - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeBuilder(item); + public A removeAllFromVolumes(Collection items) { + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); _visitables.get("volumes").remove(builder); if (this.volumes != null) { this.volumes.remove(builder); @@ -2820,13 +2533,12 @@ public A removeAllFromVolumes( return (A) this; } - public A removeMatchingFromVolumes( - java.util.function.Predicate predicate) { + public A removeMatchingFromVolumes(Predicate predicate) { if (volumes == null) return (A) this; - final Iterator each = volumes.iterator(); + final Iterator each = volumes.iterator(); final List visitables = _visitables.get("volumes"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeBuilder builder = each.next(); + V1VolumeBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -2840,30 +2552,29 @@ public A removeMatchingFromVolumes( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getVolumes() { + @Deprecated + public List getVolumes() { return volumes != null ? build(volumes) : null; } - public java.util.List buildVolumes() { + public List buildVolumes() { return volumes != null ? build(volumes) : null; } - public io.kubernetes.client.openapi.models.V1Volume buildVolume(java.lang.Integer index) { + public V1Volume buildVolume(Integer index) { return this.volumes.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Volume buildFirstVolume() { + public V1Volume buildFirstVolume() { return this.volumes.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Volume buildLastVolume() { + public V1Volume buildLastVolume() { return this.volumes.get(volumes.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Volume buildMatchingVolume( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeBuilder item : volumes) { + public V1Volume buildMatchingVolume(Predicate predicate) { + for (V1VolumeBuilder item : volumes) { if (predicate.test(item)) { return item.build(); } @@ -2871,9 +2582,8 @@ public io.kubernetes.client.openapi.models.V1Volume buildMatchingVolume( return null; } - public java.lang.Boolean hasMatchingVolume( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeBuilder item : volumes) { + public Boolean hasMatchingVolume(Predicate predicate) { + for (V1VolumeBuilder item : volumes) { if (predicate.test(item)) { return true; } @@ -2881,13 +2591,13 @@ public java.lang.Boolean hasMatchingVolume( return false; } - public A withVolumes(java.util.List volumes) { + public A withVolumes(List volumes) { if (this.volumes != null) { _visitables.get("volumes").removeAll(this.volumes); } if (volumes != null) { - this.volumes = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Volume item : volumes) { + this.volumes = new ArrayList(); + for (V1Volume item : volumes) { this.addToVolumes(item); } } else { @@ -2901,14 +2611,14 @@ public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes) { this.volumes.clear(); } if (volumes != null) { - for (io.kubernetes.client.openapi.models.V1Volume item : volumes) { + for (V1Volume item : volumes) { this.addToVolumes(item); } } return (A) this; } - public java.lang.Boolean hasVolumes() { + public Boolean hasVolumes() { return volumes != null && !volumes.isEmpty(); } @@ -2916,38 +2626,33 @@ public V1PodSpecFluent.VolumesNested addNewVolume() { return new V1PodSpecFluentImpl.VolumesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested addNewVolumeLike( - io.kubernetes.client.openapi.models.V1Volume item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.VolumesNestedImpl(-1, item); + public V1PodSpecFluent.VolumesNested addNewVolumeLike(V1Volume item) { + return new V1PodSpecFluentImpl.VolumesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested setNewVolumeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Volume item) { - return new io.kubernetes.client.openapi.models.V1PodSpecFluentImpl.VolumesNestedImpl( - index, item); + public V1PodSpecFluent.VolumesNested setNewVolumeLike(Integer index, V1Volume item) { + return new V1PodSpecFluentImpl.VolumesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editVolume( - java.lang.Integer index) { + public V1PodSpecFluent.VolumesNested editVolume(Integer index) { if (volumes.size() <= index) throw new RuntimeException("Can't edit volumes. Index exceeds size."); return setNewVolumeLike(index, buildVolume(index)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editFirstVolume() { + public V1PodSpecFluent.VolumesNested editFirstVolume() { if (volumes.size() == 0) throw new RuntimeException("Can't edit first volumes. The list is empty."); return setNewVolumeLike(0, buildVolume(0)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editLastVolume() { + public V1PodSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested editMatchingVolume( - java.util.function.Predicate predicate) { + public V1PodSpecFluent.VolumesNested editMatchingVolume(Predicate predicate) { int index = -1; for (int i = 0; i < volumes.size(); i++) { if (predicate.test(volumes.get(i))) { @@ -2988,6 +2693,8 @@ public boolean equals(Object o) { if (hostNetwork != null ? !hostNetwork.equals(that.hostNetwork) : that.hostNetwork != null) return false; if (hostPID != null ? !hostPID.equals(that.hostPID) : that.hostPID != null) return false; + if (hostUsers != null ? !hostUsers.equals(that.hostUsers) : that.hostUsers != null) + return false; if (hostname != null ? !hostname.equals(that.hostname) : that.hostname != null) return false; if (imagePullSecrets != null ? !imagePullSecrets.equals(that.imagePullSecrets) @@ -3062,6 +2769,7 @@ public int hashCode() { hostIPC, hostNetwork, hostPID, + hostUsers, hostname, imagePullSecrets, initContainers, @@ -3089,7 +2797,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (activeDeadlineSeconds != null) { @@ -3140,6 +2848,10 @@ public java.lang.String toString() { sb.append("hostPID:"); sb.append(hostPID + ","); } + if (hostUsers != null) { + sb.append("hostUsers:"); + sb.append(hostUsers + ","); + } if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); @@ -3260,6 +2972,10 @@ public A withHostPID() { return withHostPID(true); } + public A withHostUsers() { + return withHostUsers(true); + } + public A withSetHostnameAsFQDN() { return withSetHostnameAsFQDN(true); } @@ -3269,16 +2985,16 @@ public A withShareProcessNamespace() { } class AffinityNestedImpl extends V1AffinityFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.AffinityNested, Nested { + implements V1PodSpecFluent.AffinityNested, Nested { AffinityNestedImpl(V1Affinity item) { this.builder = new V1AffinityBuilder(this, item); } AffinityNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1AffinityBuilder(this); + this.builder = new V1AffinityBuilder(this); } - io.kubernetes.client.openapi.models.V1AffinityBuilder builder; + V1AffinityBuilder builder; public N and() { return (N) V1PodSpecFluentImpl.this.withAffinity(builder.build()); @@ -3290,21 +3006,19 @@ public N endAffinity() { } class ContainersNestedImpl extends V1ContainerFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.ContainersNested, - io.kubernetes.client.fluent.Nested { - ContainersNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { + implements V1PodSpecFluent.ContainersNested, Nested { + ContainersNestedImpl(Integer index, V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } ContainersNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerBuilder(this); + this.builder = new V1ContainerBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerBuilder builder; - java.lang.Integer index; + V1ContainerBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToContainers(index, builder.build()); @@ -3316,17 +3030,16 @@ public N endContainer() { } class DnsConfigNestedImpl extends V1PodDNSConfigFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.DnsConfigNested, - io.kubernetes.client.fluent.Nested { - DnsConfigNestedImpl(io.kubernetes.client.openapi.models.V1PodDNSConfig item) { + implements V1PodSpecFluent.DnsConfigNested, Nested { + DnsConfigNestedImpl(V1PodDNSConfig item) { this.builder = new V1PodDNSConfigBuilder(this, item); } DnsConfigNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodDNSConfigBuilder(this); + this.builder = new V1PodDNSConfigBuilder(this); } - io.kubernetes.client.openapi.models.V1PodDNSConfigBuilder builder; + V1PodDNSConfigBuilder builder; public N and() { return (N) V1PodSpecFluentImpl.this.withDnsConfig(builder.build()); @@ -3339,20 +3052,19 @@ public N endDnsConfig() { class EphemeralContainersNestedImpl extends V1EphemeralContainerFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.EphemeralContainersNested, - io.kubernetes.client.fluent.Nested { - EphemeralContainersNestedImpl(java.lang.Integer index, V1EphemeralContainer item) { + implements V1PodSpecFluent.EphemeralContainersNested, Nested { + EphemeralContainersNestedImpl(Integer index, V1EphemeralContainer item) { this.index = index; this.builder = new V1EphemeralContainerBuilder(this, item); } EphemeralContainersNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder(this); + this.builder = new V1EphemeralContainerBuilder(this); } - io.kubernetes.client.openapi.models.V1EphemeralContainerBuilder builder; - java.lang.Integer index; + V1EphemeralContainerBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToEphemeralContainers(index, builder.build()); @@ -3364,21 +3076,19 @@ public N endEphemeralContainer() { } class HostAliasesNestedImpl extends V1HostAliasFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.HostAliasesNested, - io.kubernetes.client.fluent.Nested { - HostAliasesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1HostAlias item) { + implements V1PodSpecFluent.HostAliasesNested, Nested { + HostAliasesNestedImpl(Integer index, V1HostAlias item) { this.index = index; this.builder = new V1HostAliasBuilder(this, item); } HostAliasesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1HostAliasBuilder(this); + this.builder = new V1HostAliasBuilder(this); } - io.kubernetes.client.openapi.models.V1HostAliasBuilder builder; - java.lang.Integer index; + V1HostAliasBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToHostAliases(index, builder.build()); @@ -3391,20 +3101,19 @@ public N endHostAlias() { class ImagePullSecretsNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.ImagePullSecretsNested, - io.kubernetes.client.fluent.Nested { - ImagePullSecretsNestedImpl(java.lang.Integer index, V1LocalObjectReference item) { + implements V1PodSpecFluent.ImagePullSecretsNested, Nested { + ImagePullSecretsNestedImpl(Integer index, V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } ImagePullSecretsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; - java.lang.Integer index; + V1LocalObjectReferenceBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToImagePullSecrets(index, builder.build()); @@ -3417,21 +3126,19 @@ public N endImagePullSecret() { class InitContainersNestedImpl extends V1ContainerFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.InitContainersNested, - io.kubernetes.client.fluent.Nested { - InitContainersNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Container item) { + implements V1PodSpecFluent.InitContainersNested, Nested { + InitContainersNestedImpl(Integer index, V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } InitContainersNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerBuilder(this); + this.builder = new V1ContainerBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerBuilder builder; - java.lang.Integer index; + V1ContainerBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToInitContainers(index, builder.build()); @@ -3443,17 +3150,16 @@ public N endInitContainer() { } class OsNestedImpl extends V1PodOSFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.OsNested, - io.kubernetes.client.fluent.Nested { + implements V1PodSpecFluent.OsNested, Nested { OsNestedImpl(V1PodOS item) { this.builder = new V1PodOSBuilder(this, item); } OsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodOSBuilder(this); + this.builder = new V1PodOSBuilder(this); } - io.kubernetes.client.openapi.models.V1PodOSBuilder builder; + V1PodOSBuilder builder; public N and() { return (N) V1PodSpecFluentImpl.this.withOs(builder.build()); @@ -3466,20 +3172,19 @@ public N endOs() { class ReadinessGatesNestedImpl extends V1PodReadinessGateFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.ReadinessGatesNested, - io.kubernetes.client.fluent.Nested { - ReadinessGatesNestedImpl(java.lang.Integer index, V1PodReadinessGate item) { + implements V1PodSpecFluent.ReadinessGatesNested, Nested { + ReadinessGatesNestedImpl(Integer index, V1PodReadinessGate item) { this.index = index; this.builder = new V1PodReadinessGateBuilder(this, item); } ReadinessGatesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder(this); + this.builder = new V1PodReadinessGateBuilder(this); } - io.kubernetes.client.openapi.models.V1PodReadinessGateBuilder builder; - java.lang.Integer index; + V1PodReadinessGateBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToReadinessGates(index, builder.build()); @@ -3492,17 +3197,16 @@ public N endReadinessGate() { class SecurityContextNestedImpl extends V1PodSecurityContextFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.SecurityContextNested, - io.kubernetes.client.fluent.Nested { + implements V1PodSpecFluent.SecurityContextNested, Nested { SecurityContextNestedImpl(V1PodSecurityContext item) { this.builder = new V1PodSecurityContextBuilder(this, item); } SecurityContextNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodSecurityContextBuilder(this); + this.builder = new V1PodSecurityContextBuilder(this); } - io.kubernetes.client.openapi.models.V1PodSecurityContextBuilder builder; + V1PodSecurityContextBuilder builder; public N and() { return (N) V1PodSpecFluentImpl.this.withSecurityContext(builder.build()); @@ -3515,21 +3219,19 @@ public N endSecurityContext() { class TolerationsNestedImpl extends V1TolerationFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.TolerationsNested, - io.kubernetes.client.fluent.Nested { - TolerationsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { + implements V1PodSpecFluent.TolerationsNested, Nested { + TolerationsNestedImpl(Integer index, V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } TolerationsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1TolerationBuilder(this); + this.builder = new V1TolerationBuilder(this); } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder; - java.lang.Integer index; + V1TolerationBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToTolerations(index, builder.build()); @@ -3543,25 +3245,19 @@ public N endToleration() { class TopologySpreadConstraintsNestedImpl extends V1TopologySpreadConstraintFluentImpl< V1PodSpecFluent.TopologySpreadConstraintsNested> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent - .TopologySpreadConstraintsNested< - N>, - io.kubernetes.client.fluent.Nested { - TopologySpreadConstraintsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint item) { + implements V1PodSpecFluent.TopologySpreadConstraintsNested, Nested { + TopologySpreadConstraintsNestedImpl(Integer index, V1TopologySpreadConstraint item) { this.index = index; this.builder = new V1TopologySpreadConstraintBuilder(this, item); } TopologySpreadConstraintsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder(this); + this.builder = new V1TopologySpreadConstraintBuilder(this); } - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder builder; - java.lang.Integer index; + V1TopologySpreadConstraintBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToTopologySpreadConstraints(index, builder.build()); @@ -3573,20 +3269,19 @@ public N endTopologySpreadConstraint() { } class VolumesNestedImpl extends V1VolumeFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodSpecFluent.VolumesNested, - io.kubernetes.client.fluent.Nested { - VolumesNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Volume item) { + implements V1PodSpecFluent.VolumesNested, Nested { + VolumesNestedImpl(Integer index, V1Volume item) { this.index = index; this.builder = new V1VolumeBuilder(this, item); } VolumesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeBuilder(this); + this.builder = new V1VolumeBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeBuilder builder; - java.lang.Integer index; + V1VolumeBuilder builder; + Integer index; public N and() { return (N) V1PodSpecFluentImpl.this.setToVolumes(index, builder.build()); 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 313dfbcc01..8e3b34d12d 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodStatusBuilder extends V1PodStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodStatus, - io.kubernetes.client.openapi.models.V1PodStatusBuilder> { + implements VisitableBuilder { public V1PodStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PodStatusBuilder(V1PodStatusFluent fluent) { this(fluent, false); } - public V1PodStatusBuilder( - io.kubernetes.client.openapi.models.V1PodStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodStatusBuilder(V1PodStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodStatus(), validationEnabled); } - public V1PodStatusBuilder( - io.kubernetes.client.openapi.models.V1PodStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PodStatus instance) { + public V1PodStatusBuilder(V1PodStatusFluent fluent, V1PodStatus instance) { this(fluent, instance, false); } public V1PodStatusBuilder( - io.kubernetes.client.openapi.models.V1PodStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PodStatus instance, - java.lang.Boolean validationEnabled) { + V1PodStatusFluent fluent, V1PodStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -76,13 +68,11 @@ public V1PodStatusBuilder( this.validationEnabled = validationEnabled; } - public V1PodStatusBuilder(io.kubernetes.client.openapi.models.V1PodStatus instance) { + public V1PodStatusBuilder(V1PodStatus instance) { this(instance, false); } - public V1PodStatusBuilder( - io.kubernetes.client.openapi.models.V1PodStatus instance, - java.lang.Boolean validationEnabled) { + public V1PodStatusBuilder(V1PodStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); @@ -113,10 +103,10 @@ public V1PodStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1PodStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodStatus build() { + public V1PodStatus build() { V1PodStatus buildable = new V1PodStatus(); buildable.setConditions(fluent.getConditions()); buildable.setContainerStatuses(fluent.getContainerStatuses()); 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 d7baec70e9..b818a22bcb 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 @@ -23,17 +23,15 @@ public interface V1PodStatusFluent> extends Fluent { public A addToConditions(Integer index, V1PodCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodCondition item); + public A setToConditions(Integer index, V1PodCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1PodCondition... items); - public A addAllToConditions(Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -43,402 +41,327 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1PodCondition buildCondition(java.lang.Integer index); + public V1PodCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1PodCondition buildFirstCondition(); + public V1PodCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1PodCondition buildLastCondition(); + public V1PodCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1PodCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1PodCondition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1PodStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1PodCondition item); + public V1PodStatusFluent.ConditionsNested addNewConditionLike(V1PodCondition item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodCondition item); + public V1PodStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1PodCondition item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested editCondition( - java.lang.Integer index); + public V1PodStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - editFirstCondition(); + public V1PodStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - editLastCondition(); + public V1PodStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate); + public V1PodStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public A addToContainerStatuses(java.lang.Integer index, V1ContainerStatus item); + public A addToContainerStatuses(Integer index, V1ContainerStatus item); - public A setToContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public A setToContainerStatuses(Integer index, V1ContainerStatus item); public A addToContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A addAllToContainerStatuses( - java.util.Collection items); + public A addAllToContainerStatuses(Collection items); public A removeFromContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A removeAllFromContainerStatuses( - java.util.Collection items); + public A removeAllFromContainerStatuses(Collection items); - public A removeMatchingFromContainerStatuses( - java.util.function.Predicate predicate); + public A removeMatchingFromContainerStatuses(Predicate predicate); /** * This method has been deprecated, please use method buildContainerStatuses instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getContainerStatuses(); + @Deprecated + public List getContainerStatuses(); - public java.util.List - buildContainerStatuses(); + public List buildContainerStatuses(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildContainerStatus( - java.lang.Integer index); + public V1ContainerStatus buildContainerStatus(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstContainerStatus(); + public V1ContainerStatus buildFirstContainerStatus(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastContainerStatus(); + public V1ContainerStatus buildLastContainerStatus(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingContainerStatus( - java.util.function.Predicate - predicate); + public V1ContainerStatus buildMatchingContainerStatus( + Predicate predicate); - public java.lang.Boolean hasMatchingContainerStatus( - java.util.function.Predicate - predicate); + public Boolean hasMatchingContainerStatus(Predicate predicate); - public A withContainerStatuses( - java.util.List containerStatuses); + public A withContainerStatuses(List containerStatuses); public A withContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses); - public java.lang.Boolean hasContainerStatuses(); + public Boolean hasContainerStatuses(); public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - addNewContainerStatusLike(io.kubernetes.client.openapi.models.V1ContainerStatus item); + public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatusLike( + V1ContainerStatus item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - setNewContainerStatusLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public V1PodStatusFluent.ContainerStatusesNested setNewContainerStatusLike( + Integer index, V1ContainerStatus item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editContainerStatus(java.lang.Integer index); + public V1PodStatusFluent.ContainerStatusesNested editContainerStatus(Integer index); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editFirstContainerStatus(); + public V1PodStatusFluent.ContainerStatusesNested editFirstContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editLastContainerStatus(); + public V1PodStatusFluent.ContainerStatusesNested editLastContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editMatchingContainerStatus( - java.util.function.Predicate - predicate); + public V1PodStatusFluent.ContainerStatusesNested editMatchingContainerStatus( + Predicate predicate); - public A addToEphemeralContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public A addToEphemeralContainerStatuses(Integer index, V1ContainerStatus item); - public A setToEphemeralContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public A setToEphemeralContainerStatuses(Integer index, V1ContainerStatus item); public A addToEphemeralContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A addAllToEphemeralContainerStatuses( - java.util.Collection items); + public A addAllToEphemeralContainerStatuses(Collection items); public A removeFromEphemeralContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A removeAllFromEphemeralContainerStatuses( - java.util.Collection items); + public A removeAllFromEphemeralContainerStatuses(Collection items); public A removeMatchingFromEphemeralContainerStatuses( - java.util.function.Predicate - predicate); + Predicate predicate); /** * This method has been deprecated, please use method buildEphemeralContainerStatuses instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getEphemeralContainerStatuses(); + @Deprecated + public List getEphemeralContainerStatuses(); - public java.util.List - buildEphemeralContainerStatuses(); + public List buildEphemeralContainerStatuses(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildEphemeralContainerStatus( - java.lang.Integer index); + public V1ContainerStatus buildEphemeralContainerStatus(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstEphemeralContainerStatus(); + public V1ContainerStatus buildFirstEphemeralContainerStatus(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastEphemeralContainerStatus(); + public V1ContainerStatus buildLastEphemeralContainerStatus(); - public io.kubernetes.client.openapi.models.V1ContainerStatus - buildMatchingEphemeralContainerStatus( - java.util.function.Predicate - predicate); + public V1ContainerStatus buildMatchingEphemeralContainerStatus( + Predicate predicate); - public java.lang.Boolean hasMatchingEphemeralContainerStatus( - java.util.function.Predicate - predicate); + public Boolean hasMatchingEphemeralContainerStatus(Predicate predicate); - public A withEphemeralContainerStatuses( - java.util.List - ephemeralContainerStatuses); + public A withEphemeralContainerStatuses(List ephemeralContainerStatuses); public A withEphemeralContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses); - public java.lang.Boolean hasEphemeralContainerStatuses(); + public Boolean hasEphemeralContainerStatuses(); public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - addNewEphemeralContainerStatusLike( - io.kubernetes.client.openapi.models.V1ContainerStatus item); + public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike( + V1ContainerStatus item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - setNewEphemeralContainerStatusLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public V1PodStatusFluent.EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike( + Integer index, V1ContainerStatus item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editEphemeralContainerStatus(java.lang.Integer index); + public V1PodStatusFluent.EphemeralContainerStatusesNested editEphemeralContainerStatus( + Integer index); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editFirstEphemeralContainerStatus(); + public V1PodStatusFluent.EphemeralContainerStatusesNested editFirstEphemeralContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editLastEphemeralContainerStatus(); + public V1PodStatusFluent.EphemeralContainerStatusesNested editLastEphemeralContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editMatchingEphemeralContainerStatus( - java.util.function.Predicate - predicate); + public V1PodStatusFluent.EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus( + Predicate predicate); public String getHostIP(); - public A withHostIP(java.lang.String hostIP); + public A withHostIP(String hostIP); - public java.lang.Boolean hasHostIP(); + public Boolean hasHostIP(); - public A addToInitContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public A addToInitContainerStatuses(Integer index, V1ContainerStatus item); - public A setToInitContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public A setToInitContainerStatuses(Integer index, V1ContainerStatus item); public A addToInitContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A addAllToInitContainerStatuses( - java.util.Collection items); + public A addAllToInitContainerStatuses(Collection items); public A removeFromInitContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items); - public A removeAllFromInitContainerStatuses( - java.util.Collection items); + public A removeAllFromInitContainerStatuses(Collection items); - public A removeMatchingFromInitContainerStatuses( - java.util.function.Predicate - predicate); + public A removeMatchingFromInitContainerStatuses(Predicate predicate); /** * This method has been deprecated, please use method buildInitContainerStatuses instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getInitContainerStatuses(); + @Deprecated + public List getInitContainerStatuses(); - public java.util.List - buildInitContainerStatuses(); + public List buildInitContainerStatuses(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildInitContainerStatus( - java.lang.Integer index); + public V1ContainerStatus buildInitContainerStatus(Integer index); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstInitContainerStatus(); + public V1ContainerStatus buildFirstInitContainerStatus(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastInitContainerStatus(); + public V1ContainerStatus buildLastInitContainerStatus(); - public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingInitContainerStatus( - java.util.function.Predicate - predicate); + public V1ContainerStatus buildMatchingInitContainerStatus( + Predicate predicate); - public java.lang.Boolean hasMatchingInitContainerStatus( - java.util.function.Predicate - predicate); + public Boolean hasMatchingInitContainerStatus(Predicate predicate); - public A withInitContainerStatuses( - java.util.List initContainerStatuses); + public A withInitContainerStatuses(List initContainerStatuses); public A withInitContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses); - public java.lang.Boolean hasInitContainerStatuses(); + public Boolean hasInitContainerStatuses(); public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - addNewInitContainerStatusLike(io.kubernetes.client.openapi.models.V1ContainerStatus item); + public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatusLike( + V1ContainerStatus item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - setNewInitContainerStatusLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item); + public V1PodStatusFluent.InitContainerStatusesNested setNewInitContainerStatusLike( + Integer index, V1ContainerStatus item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editInitContainerStatus(java.lang.Integer index); + public V1PodStatusFluent.InitContainerStatusesNested editInitContainerStatus(Integer index); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editFirstInitContainerStatus(); + public V1PodStatusFluent.InitContainerStatusesNested editFirstInitContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editLastInitContainerStatus(); + public V1PodStatusFluent.InitContainerStatusesNested editLastInitContainerStatus(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editMatchingInitContainerStatus( - java.util.function.Predicate - predicate); + public V1PodStatusFluent.InitContainerStatusesNested editMatchingInitContainerStatus( + Predicate predicate); - public java.lang.String getMessage(); + public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getNominatedNodeName(); + public String getNominatedNodeName(); - public A withNominatedNodeName(java.lang.String nominatedNodeName); + public A withNominatedNodeName(String nominatedNodeName); - public java.lang.Boolean hasNominatedNodeName(); + public Boolean hasNominatedNodeName(); - public java.lang.String getPhase(); + public String getPhase(); - public A withPhase(java.lang.String phase); + public A withPhase(String phase); - public java.lang.Boolean hasPhase(); + public Boolean hasPhase(); - public java.lang.String getPodIP(); + public String getPodIP(); - public A withPodIP(java.lang.String podIP); + public A withPodIP(String podIP); - public java.lang.Boolean hasPodIP(); + public Boolean hasPodIP(); - public A addToPodIPs(java.lang.Integer index, V1PodIP item); + public A addToPodIPs(Integer index, V1PodIP item); - public A setToPodIPs(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item); + public A setToPodIPs(Integer index, V1PodIP item); public A addToPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items); - public A addAllToPodIPs(java.util.Collection items); + public A addAllToPodIPs(Collection items); public A removeFromPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items); - public A removeAllFromPodIPs( - java.util.Collection items); + public A removeAllFromPodIPs(Collection items); - public A removeMatchingFromPodIPs(java.util.function.Predicate predicate); + public A removeMatchingFromPodIPs(Predicate predicate); /** * This method has been deprecated, please use method buildPodIPs instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPodIPs(); + @Deprecated + public List getPodIPs(); - public java.util.List buildPodIPs(); + public List buildPodIPs(); - public io.kubernetes.client.openapi.models.V1PodIP buildPodIP(java.lang.Integer index); + public V1PodIP buildPodIP(Integer index); - public io.kubernetes.client.openapi.models.V1PodIP buildFirstPodIP(); + public V1PodIP buildFirstPodIP(); - public io.kubernetes.client.openapi.models.V1PodIP buildLastPodIP(); + public V1PodIP buildLastPodIP(); - public io.kubernetes.client.openapi.models.V1PodIP buildMatchingPodIP( - java.util.function.Predicate predicate); + public V1PodIP buildMatchingPodIP(Predicate predicate); - public java.lang.Boolean hasMatchingPodIP( - java.util.function.Predicate predicate); + public Boolean hasMatchingPodIP(Predicate predicate); - public A withPodIPs(java.util.List podIPs); + public A withPodIPs(List podIPs); public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs); - public java.lang.Boolean hasPodIPs(); + public Boolean hasPodIPs(); public V1PodStatusFluent.PodIPsNested addNewPodIP(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested addNewPodIPLike( - io.kubernetes.client.openapi.models.V1PodIP item); + public V1PodStatusFluent.PodIPsNested addNewPodIPLike(V1PodIP item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested setNewPodIPLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item); + public V1PodStatusFluent.PodIPsNested setNewPodIPLike(Integer index, V1PodIP item); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editPodIP( - java.lang.Integer index); + public V1PodStatusFluent.PodIPsNested editPodIP(Integer index); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editFirstPodIP(); + public V1PodStatusFluent.PodIPsNested editFirstPodIP(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editLastPodIP(); + public V1PodStatusFluent.PodIPsNested editLastPodIP(); - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editMatchingPodIP( - java.util.function.Predicate predicate); + public V1PodStatusFluent.PodIPsNested editMatchingPodIP(Predicate predicate); - public java.lang.String getQosClass(); + public String getQosClass(); - public A withQosClass(java.lang.String qosClass); + public A withQosClass(String qosClass); - public java.lang.Boolean hasQosClass(); + public Boolean hasQosClass(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); public OffsetDateTime getStartTime(); - public A withStartTime(java.time.OffsetDateTime startTime); + public A withStartTime(OffsetDateTime startTime); - public java.lang.Boolean hasStartTime(); + public Boolean hasStartTime(); public interface ConditionsNested extends Nested, V1PodConditionFluent> { @@ -448,15 +371,14 @@ public interface ConditionsNested } public interface ContainerStatusesNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerStatusFluent> { + extends Nested, V1ContainerStatusFluent> { public N and(); public N endContainerStatus(); } public interface EphemeralContainerStatusesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ContainerStatusFluent> { public N and(); @@ -464,16 +386,14 @@ public interface EphemeralContainerStatusesNested } public interface InitContainerStatusesNested - extends io.kubernetes.client.fluent.Nested, - V1ContainerStatusFluent> { + extends Nested, V1ContainerStatusFluent> { public N and(); public N endInitContainerStatus(); } public interface PodIPsNested - extends io.kubernetes.client.fluent.Nested, - V1PodIPFluent> { + extends Nested, V1PodIPFluent> { public N and(); public N endPodIP(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java index 87b07d5093..0fd37d6c82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluentImpl.java @@ -27,7 +27,7 @@ public class V1PodStatusFluentImpl> extends BaseF implements V1PodStatusFluent { public V1PodStatusFluentImpl() {} - public V1PodStatusFluentImpl(io.kubernetes.client.openapi.models.V1PodStatus instance) { + public V1PodStatusFluentImpl(V1PodStatus instance) { this.withConditions(instance.getConditions()); this.withContainerStatuses(instance.getContainerStatuses()); @@ -56,27 +56,24 @@ public V1PodStatusFluentImpl(io.kubernetes.client.openapi.models.V1PodStatus ins } private ArrayList conditions; - private java.util.ArrayList containerStatuses; - private java.util.ArrayList ephemeralContainerStatuses; + private ArrayList containerStatuses; + private ArrayList ephemeralContainerStatuses; private String hostIP; - private java.util.ArrayList - initContainerStatuses; - private java.lang.String message; - private java.lang.String nominatedNodeName; - private java.lang.String phase; - private java.lang.String podIP; - private java.util.ArrayList podIPs; - private java.lang.String qosClass; - private java.lang.String reason; + private ArrayList initContainerStatuses; + private String message; + private String nominatedNodeName; + private String phase; + private String podIP; + private ArrayList podIPs; + private String qosClass; + private String reason; private OffsetDateTime startTime; public A addToConditions(Integer index, V1PodCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item); + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -84,14 +81,11 @@ public A addToConditions(Integer index, V1PodCondition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodCondition item) { + public A setToConditions(Integer index, V1PodCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item); + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -107,27 +101,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodCondition item : items) { - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodCondition item : items) { - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item); + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -135,9 +124,8 @@ public A addAllToConditions( } public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) { - for (io.kubernetes.client.openapi.models.V1PodCondition item : items) { - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item); + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -146,11 +134,9 @@ public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodCondition item : items) { - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1PodConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -159,14 +145,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder = each.next(); + V1PodConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -181,31 +165,28 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1PodCondition buildCondition( - java.lang.Integer index) { + public V1PodCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodCondition buildFirstCondition() { + public V1PodCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodCondition buildLastCondition() { + public V1PodCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PodCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodConditionBuilder item : conditions) { + public V1PodCondition buildMatchingCondition(Predicate predicate) { + for (V1PodConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -213,10 +194,8 @@ public io.kubernetes.client.openapi.models.V1PodCondition buildMatchingCondition return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1PodConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -224,14 +203,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1PodCondition item : conditions) { this.addToConditions(item); } } else { @@ -245,14 +223,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... co this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1PodCondition item : conditions) { + for (V1PodCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -260,43 +238,35 @@ public V1PodStatusFluent.ConditionsNested addNewCondition() { return new V1PodStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1PodCondition item) { + public V1PodStatusFluent.ConditionsNested addNewConditionLike(V1PodCondition item) { return new V1PodStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodCondition item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1PodStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1PodCondition item) { + return new V1PodStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested editCondition( - java.lang.Integer index) { + public V1PodStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - editFirstCondition() { + public V1PodStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - editLastCondition() { + public V1PodStatusFluent.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 io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate) { + public V1PodStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -308,14 +278,11 @@ public io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested return setNewConditionLike(index, buildCondition(index)); } - public A addToContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { + public A addToContainerStatuses(Integer index, V1ContainerStatus item) { if (this.containerStatuses == null) { - this.containerStatuses = - new java.util.ArrayList(); + this.containerStatuses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables .get("containerStatuses") .add(index >= 0 ? index : _visitables.get("containerStatuses").size(), builder); @@ -323,14 +290,11 @@ public A addToContainerStatuses( return (A) this; } - public A setToContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { + public A setToContainerStatuses(Integer index, V1ContainerStatus item) { if (this.containerStatuses == null) { - this.containerStatuses = - new java.util.ArrayList(); + this.containerStatuses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= _visitables.get("containerStatuses").size()) { _visitables.get("containerStatuses").add(builder); } else { @@ -346,27 +310,22 @@ public A setToContainerStatuses( public A addToContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { if (this.containerStatuses == null) { - this.containerStatuses = - new java.util.ArrayList(); + this.containerStatuses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("containerStatuses").add(builder); this.containerStatuses.add(builder); } return (A) this; } - public A addAllToContainerStatuses( - java.util.Collection items) { + public A addAllToContainerStatuses(Collection items) { if (this.containerStatuses == null) { - this.containerStatuses = - new java.util.ArrayList(); + this.containerStatuses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("containerStatuses").add(builder); this.containerStatuses.add(builder); } @@ -375,9 +334,8 @@ public A addAllToContainerStatuses( public A removeFromContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("containerStatuses").remove(builder); if (this.containerStatuses != null) { this.containerStatuses.remove(builder); @@ -386,11 +344,9 @@ public A removeFromContainerStatuses( return (A) this; } - public A removeAllFromContainerStatuses( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + public A removeAllFromContainerStatuses(Collection items) { + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("containerStatuses").remove(builder); if (this.containerStatuses != null) { this.containerStatuses.remove(builder); @@ -399,15 +355,12 @@ public A removeAllFromContainerStatuses( return (A) this; } - public A removeMatchingFromContainerStatuses( - java.util.function.Predicate - predicate) { + public A removeMatchingFromContainerStatuses(Predicate predicate) { if (containerStatuses == null) return (A) this; - final Iterator each = - containerStatuses.iterator(); + final Iterator each = containerStatuses.iterator(); final List visitables = _visitables.get("containerStatuses"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = each.next(); + V1ContainerStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -421,34 +374,30 @@ public A removeMatchingFromContainerStatuses( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getContainerStatuses() { + @Deprecated + public List getContainerStatuses() { return containerStatuses != null ? build(containerStatuses) : null; } - public java.util.List - buildContainerStatuses() { + public List buildContainerStatuses() { return containerStatuses != null ? build(containerStatuses) : null; } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildContainerStatus( - java.lang.Integer index) { + public V1ContainerStatus buildContainerStatus(Integer index) { return this.containerStatuses.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstContainerStatus() { + public V1ContainerStatus buildFirstContainerStatus() { return this.containerStatuses.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastContainerStatus() { + public V1ContainerStatus buildLastContainerStatus() { return this.containerStatuses.get(containerStatuses.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingContainerStatus( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : containerStatuses) { + public V1ContainerStatus buildMatchingContainerStatus( + Predicate predicate) { + for (V1ContainerStatusBuilder item : containerStatuses) { if (predicate.test(item)) { return item.build(); } @@ -456,10 +405,8 @@ public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingContai return null; } - public java.lang.Boolean hasMatchingContainerStatus( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : containerStatuses) { + public Boolean hasMatchingContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : containerStatuses) { if (predicate.test(item)) { return true; } @@ -467,14 +414,13 @@ public java.lang.Boolean hasMatchingContainerStatus( return false; } - public A withContainerStatuses( - java.util.List containerStatuses) { + public A withContainerStatuses(List containerStatuses) { if (this.containerStatuses != null) { _visitables.get("containerStatuses").removeAll(this.containerStatuses); } if (containerStatuses != null) { - this.containerStatuses = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : containerStatuses) { + this.containerStatuses = new ArrayList(); + for (V1ContainerStatus item : containerStatuses) { this.addToContainerStatuses(item); } } else { @@ -489,14 +435,14 @@ public A withContainerStatuses( this.containerStatuses.clear(); } if (containerStatuses != null) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : containerStatuses) { + for (V1ContainerStatus item : containerStatuses) { this.addToContainerStatuses(item); } } return (A) this; } - public java.lang.Boolean hasContainerStatuses() { + public Boolean hasContainerStatuses() { return containerStatuses != null && !containerStatuses.isEmpty(); } @@ -504,45 +450,37 @@ public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatus() { return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - addNewContainerStatusLike(io.kubernetes.client.openapi.models.V1ContainerStatus item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl - .ContainerStatusesNestedImpl(-1, item); + public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatusLike( + V1ContainerStatus item) { + return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - setNewContainerStatusLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl - .ContainerStatusesNestedImpl(index, item); + public V1PodStatusFluent.ContainerStatusesNested setNewContainerStatusLike( + Integer index, V1ContainerStatus item) { + return new V1PodStatusFluentImpl.ContainerStatusesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editContainerStatus(java.lang.Integer index) { + public V1PodStatusFluent.ContainerStatusesNested editContainerStatus(Integer index) { if (containerStatuses.size() <= index) throw new RuntimeException("Can't edit containerStatuses. Index exceeds size."); return setNewContainerStatusLike(index, buildContainerStatus(index)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editFirstContainerStatus() { + public V1PodStatusFluent.ContainerStatusesNested editFirstContainerStatus() { if (containerStatuses.size() == 0) throw new RuntimeException("Can't edit first containerStatuses. The list is empty."); return setNewContainerStatusLike(0, buildContainerStatus(0)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editLastContainerStatus() { + public V1PodStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested - editMatchingContainerStatus( - java.util.function.Predicate - predicate) { + public V1PodStatusFluent.ContainerStatusesNested editMatchingContainerStatus( + Predicate predicate) { int index = -1; for (int i = 0; i < containerStatuses.size(); i++) { if (predicate.test(containerStatuses.get(i))) { @@ -555,14 +493,11 @@ public V1PodStatusFluent.ContainerStatusesNested addNewContainerStatus() { return setNewContainerStatusLike(index, buildContainerStatus(index)); } - public A addToEphemeralContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { + public A addToEphemeralContainerStatuses(Integer index, V1ContainerStatus item) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = - new java.util.ArrayList(); + this.ephemeralContainerStatuses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables .get("ephemeralContainerStatuses") .add(index >= 0 ? index : _visitables.get("ephemeralContainerStatuses").size(), builder); @@ -571,14 +506,11 @@ public A addToEphemeralContainerStatuses( return (A) this; } - public A setToEphemeralContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { + public A setToEphemeralContainerStatuses(Integer index, V1ContainerStatus item) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = - new java.util.ArrayList(); + this.ephemeralContainerStatuses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= _visitables.get("ephemeralContainerStatuses").size()) { _visitables.get("ephemeralContainerStatuses").add(builder); } else { @@ -595,27 +527,22 @@ public A setToEphemeralContainerStatuses( public A addToEphemeralContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = - new java.util.ArrayList(); + this.ephemeralContainerStatuses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("ephemeralContainerStatuses").add(builder); this.ephemeralContainerStatuses.add(builder); } return (A) this; } - public A addAllToEphemeralContainerStatuses( - java.util.Collection items) { + public A addAllToEphemeralContainerStatuses(Collection items) { if (this.ephemeralContainerStatuses == null) { - this.ephemeralContainerStatuses = - new java.util.ArrayList(); + this.ephemeralContainerStatuses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("ephemeralContainerStatuses").add(builder); this.ephemeralContainerStatuses.add(builder); } @@ -624,9 +551,8 @@ public A addAllToEphemeralContainerStatuses( public A removeFromEphemeralContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("ephemeralContainerStatuses").remove(builder); if (this.ephemeralContainerStatuses != null) { this.ephemeralContainerStatuses.remove(builder); @@ -635,11 +561,9 @@ public A removeFromEphemeralContainerStatuses( return (A) this; } - public A removeAllFromEphemeralContainerStatuses( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + public A removeAllFromEphemeralContainerStatuses(Collection items) { + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("ephemeralContainerStatuses").remove(builder); if (this.ephemeralContainerStatuses != null) { this.ephemeralContainerStatuses.remove(builder); @@ -649,14 +573,12 @@ public A removeAllFromEphemeralContainerStatuses( } public A removeMatchingFromEphemeralContainerStatuses( - java.util.function.Predicate - predicate) { + Predicate predicate) { if (ephemeralContainerStatuses == null) return (A) this; - final Iterator each = - ephemeralContainerStatuses.iterator(); + final Iterator each = ephemeralContainerStatuses.iterator(); final List visitables = _visitables.get("ephemeralContainerStatuses"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = each.next(); + V1ContainerStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -670,37 +592,30 @@ public A removeMatchingFromEphemeralContainerStatuses( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getEphemeralContainerStatuses() { + @Deprecated + public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; } - public java.util.List - buildEphemeralContainerStatuses() { + public List buildEphemeralContainerStatuses() { return ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildEphemeralContainerStatus( - java.lang.Integer index) { + public V1ContainerStatus buildEphemeralContainerStatus(Integer index) { return this.ephemeralContainerStatuses.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus - buildFirstEphemeralContainerStatus() { + public V1ContainerStatus buildFirstEphemeralContainerStatus() { return this.ephemeralContainerStatuses.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastEphemeralContainerStatus() { + public V1ContainerStatus buildLastEphemeralContainerStatus() { return this.ephemeralContainerStatuses.get(ephemeralContainerStatuses.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus - buildMatchingEphemeralContainerStatus( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : - ephemeralContainerStatuses) { + public V1ContainerStatus buildMatchingEphemeralContainerStatus( + Predicate predicate) { + for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { if (predicate.test(item)) { return item.build(); } @@ -708,11 +623,9 @@ public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastEphemeralC return null; } - public java.lang.Boolean hasMatchingEphemeralContainerStatus( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : - ephemeralContainerStatuses) { + public Boolean hasMatchingEphemeralContainerStatus( + Predicate predicate) { + for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { if (predicate.test(item)) { return true; } @@ -720,16 +633,13 @@ public java.lang.Boolean hasMatchingEphemeralContainerStatus( return false; } - public A withEphemeralContainerStatuses( - java.util.List - ephemeralContainerStatuses) { + public A withEphemeralContainerStatuses(List ephemeralContainerStatuses) { if (this.ephemeralContainerStatuses != null) { _visitables.get("ephemeralContainerStatuses").removeAll(this.ephemeralContainerStatuses); } if (ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : - ephemeralContainerStatuses) { + this.ephemeralContainerStatuses = new ArrayList(); + for (V1ContainerStatus item : ephemeralContainerStatuses) { this.addToEphemeralContainerStatuses(item); } } else { @@ -744,15 +654,14 @@ public A withEphemeralContainerStatuses( this.ephemeralContainerStatuses.clear(); } if (ephemeralContainerStatuses != null) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : - ephemeralContainerStatuses) { + for (V1ContainerStatus item : ephemeralContainerStatuses) { this.addToEphemeralContainerStatuses(item); } } return (A) this; } - public java.lang.Boolean hasEphemeralContainerStatuses() { + public Boolean hasEphemeralContainerStatuses() { return ephemeralContainerStatuses != null && !ephemeralContainerStatuses.isEmpty(); } @@ -760,46 +669,38 @@ public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralCont return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - addNewEphemeralContainerStatusLike( - io.kubernetes.client.openapi.models.V1ContainerStatus item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl - .EphemeralContainerStatusesNestedImpl(-1, item); + public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike( + V1ContainerStatus item) { + return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - setNewEphemeralContainerStatusLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl - .EphemeralContainerStatusesNestedImpl(index, item); + public V1PodStatusFluent.EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike( + Integer index, V1ContainerStatus item) { + return new V1PodStatusFluentImpl.EphemeralContainerStatusesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editEphemeralContainerStatus(java.lang.Integer index) { + public V1PodStatusFluent.EphemeralContainerStatusesNested editEphemeralContainerStatus( + Integer index) { if (ephemeralContainerStatuses.size() <= index) throw new RuntimeException("Can't edit ephemeralContainerStatuses. Index exceeds size."); return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editFirstEphemeralContainerStatus() { + public V1PodStatusFluent.EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { if (ephemeralContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainerStatuses. The list is empty."); return setNewEphemeralContainerStatusLike(0, buildEphemeralContainerStatus(0)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editLastEphemeralContainerStatus() { + public V1PodStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.EphemeralContainerStatusesNested - editMatchingEphemeralContainerStatus( - java.util.function.Predicate - predicate) { + public V1PodStatusFluent.EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus( + Predicate predicate) { int index = -1; for (int i = 0; i < ephemeralContainerStatuses.size(); i++) { if (predicate.test(ephemeralContainerStatuses.get(i))) { @@ -812,27 +713,24 @@ public V1PodStatusFluent.EphemeralContainerStatusesNested addNewEphemeralCont return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); } - public java.lang.String getHostIP() { + public String getHostIP() { return this.hostIP; } - public A withHostIP(java.lang.String hostIP) { + public A withHostIP(String hostIP) { this.hostIP = hostIP; return (A) this; } - public java.lang.Boolean hasHostIP() { + public Boolean hasHostIP() { return this.hostIP != null; } - public A addToInitContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { + public A addToInitContainerStatuses(Integer index, V1ContainerStatus item) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = - new java.util.ArrayList(); + this.initContainerStatuses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables .get("initContainerStatuses") .add(index >= 0 ? index : _visitables.get("initContainerStatuses").size(), builder); @@ -840,14 +738,11 @@ public A addToInitContainerStatuses( return (A) this; } - public A setToInitContainerStatuses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { + public A setToInitContainerStatuses(Integer index, V1ContainerStatus item) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = - new java.util.ArrayList(); + this.initContainerStatuses = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); if (index < 0 || index >= _visitables.get("initContainerStatuses").size()) { _visitables.get("initContainerStatuses").add(builder); } else { @@ -864,27 +759,22 @@ public A setToInitContainerStatuses( public A addToInitContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = - new java.util.ArrayList(); + this.initContainerStatuses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("initContainerStatuses").add(builder); this.initContainerStatuses.add(builder); } return (A) this; } - public A addAllToInitContainerStatuses( - java.util.Collection items) { + public A addAllToInitContainerStatuses(Collection items) { if (this.initContainerStatuses == null) { - this.initContainerStatuses = - new java.util.ArrayList(); + this.initContainerStatuses = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("initContainerStatuses").add(builder); this.initContainerStatuses.add(builder); } @@ -893,9 +783,8 @@ public A addAllToInitContainerStatuses( public A removeFromInitContainerStatuses( io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("initContainerStatuses").remove(builder); if (this.initContainerStatuses != null) { this.initContainerStatuses.remove(builder); @@ -904,11 +793,9 @@ public A removeFromInitContainerStatuses( return (A) this; } - public A removeAllFromInitContainerStatuses( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : items) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = - new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(item); + public A removeAllFromInitContainerStatuses(Collection items) { + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); _visitables.get("initContainerStatuses").remove(builder); if (this.initContainerStatuses != null) { this.initContainerStatuses.remove(builder); @@ -917,15 +804,12 @@ public A removeAllFromInitContainerStatuses( return (A) this; } - public A removeMatchingFromInitContainerStatuses( - java.util.function.Predicate - predicate) { + public A removeMatchingFromInitContainerStatuses(Predicate predicate) { if (initContainerStatuses == null) return (A) this; - final Iterator each = - initContainerStatuses.iterator(); + final Iterator each = initContainerStatuses.iterator(); final List visitables = _visitables.get("initContainerStatuses"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder = each.next(); + V1ContainerStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -939,35 +823,30 @@ public A removeMatchingFromInitContainerStatuses( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getInitContainerStatuses() { + @Deprecated + public List getInitContainerStatuses() { return initContainerStatuses != null ? build(initContainerStatuses) : null; } - public java.util.List - buildInitContainerStatuses() { + public List buildInitContainerStatuses() { return initContainerStatuses != null ? build(initContainerStatuses) : null; } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildInitContainerStatus( - java.lang.Integer index) { + public V1ContainerStatus buildInitContainerStatus(Integer index) { return this.initContainerStatuses.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildFirstInitContainerStatus() { + public V1ContainerStatus buildFirstInitContainerStatus() { return this.initContainerStatuses.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildLastInitContainerStatus() { + public V1ContainerStatus buildLastInitContainerStatus() { return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingInitContainerStatus( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : - initContainerStatuses) { + public V1ContainerStatus buildMatchingInitContainerStatus( + Predicate predicate) { + for (V1ContainerStatusBuilder item : initContainerStatuses) { if (predicate.test(item)) { return item.build(); } @@ -975,11 +854,8 @@ public io.kubernetes.client.openapi.models.V1ContainerStatus buildMatchingInitCo return null; } - public java.lang.Boolean hasMatchingInitContainerStatus( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ContainerStatusBuilder item : - initContainerStatuses) { + public Boolean hasMatchingInitContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : initContainerStatuses) { if (predicate.test(item)) { return true; } @@ -987,14 +863,13 @@ public java.lang.Boolean hasMatchingInitContainerStatus( return false; } - public A withInitContainerStatuses( - java.util.List initContainerStatuses) { + public A withInitContainerStatuses(List initContainerStatuses) { if (this.initContainerStatuses != null) { _visitables.get("initContainerStatuses").removeAll(this.initContainerStatuses); } if (initContainerStatuses != null) { - this.initContainerStatuses = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : initContainerStatuses) { + this.initContainerStatuses = new ArrayList(); + for (V1ContainerStatus item : initContainerStatuses) { this.addToInitContainerStatuses(item); } } else { @@ -1009,14 +884,14 @@ public A withInitContainerStatuses( this.initContainerStatuses.clear(); } if (initContainerStatuses != null) { - for (io.kubernetes.client.openapi.models.V1ContainerStatus item : initContainerStatuses) { + for (V1ContainerStatus item : initContainerStatuses) { this.addToInitContainerStatuses(item); } } return (A) this; } - public java.lang.Boolean hasInitContainerStatuses() { + public Boolean hasInitContainerStatuses() { return initContainerStatuses != null && !initContainerStatuses.isEmpty(); } @@ -1024,45 +899,37 @@ public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatu return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - addNewInitContainerStatusLike(io.kubernetes.client.openapi.models.V1ContainerStatus item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl - .InitContainerStatusesNestedImpl(-1, item); + public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatusLike( + V1ContainerStatus item) { + return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - setNewInitContainerStatusLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ContainerStatus item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl - .InitContainerStatusesNestedImpl(index, item); + public V1PodStatusFluent.InitContainerStatusesNested setNewInitContainerStatusLike( + Integer index, V1ContainerStatus item) { + return new V1PodStatusFluentImpl.InitContainerStatusesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editInitContainerStatus(java.lang.Integer index) { + public V1PodStatusFluent.InitContainerStatusesNested editInitContainerStatus(Integer index) { if (initContainerStatuses.size() <= index) throw new RuntimeException("Can't edit initContainerStatuses. Index exceeds size."); return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editFirstInitContainerStatus() { + public V1PodStatusFluent.InitContainerStatusesNested editFirstInitContainerStatus() { if (initContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first initContainerStatuses. The list is empty."); return setNewInitContainerStatusLike(0, buildInitContainerStatus(0)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editLastInitContainerStatus() { + public V1PodStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested - editMatchingInitContainerStatus( - java.util.function.Predicate - predicate) { + public V1PodStatusFluent.InitContainerStatusesNested editMatchingInitContainerStatus( + Predicate predicate) { int index = -1; for (int i = 0; i < initContainerStatuses.size(); i++) { if (predicate.test(initContainerStatuses.get(i))) { @@ -1075,75 +942,73 @@ public V1PodStatusFluent.InitContainerStatusesNested addNewInitContainerStatu return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getNominatedNodeName() { + public String getNominatedNodeName() { return this.nominatedNodeName; } - public A withNominatedNodeName(java.lang.String nominatedNodeName) { + public A withNominatedNodeName(String nominatedNodeName) { this.nominatedNodeName = nominatedNodeName; return (A) this; } - public java.lang.Boolean hasNominatedNodeName() { + public Boolean hasNominatedNodeName() { return this.nominatedNodeName != null; } - public java.lang.String getPhase() { + public String getPhase() { return this.phase; } - public A withPhase(java.lang.String phase) { + public A withPhase(String phase) { this.phase = phase; return (A) this; } - public java.lang.Boolean hasPhase() { + public Boolean hasPhase() { return this.phase != null; } - public java.lang.String getPodIP() { + public String getPodIP() { return this.podIP; } - public A withPodIP(java.lang.String podIP) { + public A withPodIP(String podIP) { this.podIP = podIP; return (A) this; } - public java.lang.Boolean hasPodIP() { + public Boolean hasPodIP() { return this.podIP != null; } - public A addToPodIPs(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) { + public A addToPodIPs(Integer index, V1PodIP item) { if (this.podIPs == null) { - this.podIPs = new java.util.ArrayList(); + this.podIPs = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodIPBuilder builder = - new io.kubernetes.client.openapi.models.V1PodIPBuilder(item); + V1PodIPBuilder builder = new V1PodIPBuilder(item); _visitables.get("podIPs").add(index >= 0 ? index : _visitables.get("podIPs").size(), builder); this.podIPs.add(index >= 0 ? index : podIPs.size(), builder); return (A) this; } - public A setToPodIPs(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) { + public A setToPodIPs(Integer index, V1PodIP item) { if (this.podIPs == null) { - this.podIPs = new java.util.ArrayList(); + this.podIPs = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodIPBuilder builder = - new io.kubernetes.client.openapi.models.V1PodIPBuilder(item); + V1PodIPBuilder builder = new V1PodIPBuilder(item); if (index < 0 || index >= _visitables.get("podIPs").size()) { _visitables.get("podIPs").add(builder); } else { @@ -1159,24 +1024,22 @@ public A setToPodIPs(java.lang.Integer index, io.kubernetes.client.openapi.model public A addToPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) { if (this.podIPs == null) { - this.podIPs = new java.util.ArrayList(); + this.podIPs = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodIP item : items) { - io.kubernetes.client.openapi.models.V1PodIPBuilder builder = - new io.kubernetes.client.openapi.models.V1PodIPBuilder(item); + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); _visitables.get("podIPs").add(builder); this.podIPs.add(builder); } return (A) this; } - public A addAllToPodIPs(java.util.Collection items) { + public A addAllToPodIPs(Collection items) { if (this.podIPs == null) { - this.podIPs = new java.util.ArrayList(); + this.podIPs = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodIP item : items) { - io.kubernetes.client.openapi.models.V1PodIPBuilder builder = - new io.kubernetes.client.openapi.models.V1PodIPBuilder(item); + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); _visitables.get("podIPs").add(builder); this.podIPs.add(builder); } @@ -1184,9 +1047,8 @@ public A addAllToPodIPs(java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PodIP item : items) { - io.kubernetes.client.openapi.models.V1PodIPBuilder builder = - new io.kubernetes.client.openapi.models.V1PodIPBuilder(item); + public A removeAllFromPodIPs(Collection items) { + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); _visitables.get("podIPs").remove(builder); if (this.podIPs != null) { this.podIPs.remove(builder); @@ -1208,13 +1068,12 @@ public A removeAllFromPodIPs( return (A) this; } - public A removeMatchingFromPodIPs( - java.util.function.Predicate predicate) { + public A removeMatchingFromPodIPs(Predicate predicate) { if (podIPs == null) return (A) this; - final Iterator each = podIPs.iterator(); + final Iterator each = podIPs.iterator(); final List visitables = _visitables.get("podIPs"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodIPBuilder builder = each.next(); + V1PodIPBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -1228,30 +1087,29 @@ public A removeMatchingFromPodIPs( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getPodIPs() { + @Deprecated + public List getPodIPs() { return podIPs != null ? build(podIPs) : null; } - public java.util.List buildPodIPs() { + public List buildPodIPs() { return podIPs != null ? build(podIPs) : null; } - public io.kubernetes.client.openapi.models.V1PodIP buildPodIP(java.lang.Integer index) { + public V1PodIP buildPodIP(Integer index) { return this.podIPs.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodIP buildFirstPodIP() { + public V1PodIP buildFirstPodIP() { return this.podIPs.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodIP buildLastPodIP() { + public V1PodIP buildLastPodIP() { return this.podIPs.get(podIPs.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PodIP buildMatchingPodIP( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1PodIPBuilder item : podIPs) { + public V1PodIP buildMatchingPodIP(Predicate predicate) { + for (V1PodIPBuilder item : podIPs) { if (predicate.test(item)) { return item.build(); } @@ -1259,9 +1117,8 @@ public io.kubernetes.client.openapi.models.V1PodIP buildMatchingPodIP( return null; } - public java.lang.Boolean hasMatchingPodIP( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1PodIPBuilder item : podIPs) { + public Boolean hasMatchingPodIP(Predicate predicate) { + for (V1PodIPBuilder item : podIPs) { if (predicate.test(item)) { return true; } @@ -1269,13 +1126,13 @@ public java.lang.Boolean hasMatchingPodIP( return false; } - public A withPodIPs(java.util.List podIPs) { + public A withPodIPs(List podIPs) { if (this.podIPs != null) { _visitables.get("podIPs").removeAll(this.podIPs); } if (podIPs != null) { - this.podIPs = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodIP item : podIPs) { + this.podIPs = new ArrayList(); + for (V1PodIP item : podIPs) { this.addToPodIPs(item); } } else { @@ -1289,14 +1146,14 @@ public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs) { this.podIPs.clear(); } if (podIPs != null) { - for (io.kubernetes.client.openapi.models.V1PodIP item : podIPs) { + for (V1PodIP item : podIPs) { this.addToPodIPs(item); } } return (A) this; } - public java.lang.Boolean hasPodIPs() { + public Boolean hasPodIPs() { return podIPs != null && !podIPs.isEmpty(); } @@ -1304,38 +1161,33 @@ public V1PodStatusFluent.PodIPsNested addNewPodIP() { return new V1PodStatusFluentImpl.PodIPsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested addNewPodIPLike( - io.kubernetes.client.openapi.models.V1PodIP item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl.PodIPsNestedImpl(-1, item); + public V1PodStatusFluent.PodIPsNested addNewPodIPLike(V1PodIP item) { + return new V1PodStatusFluentImpl.PodIPsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested setNewPodIPLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) { - return new io.kubernetes.client.openapi.models.V1PodStatusFluentImpl.PodIPsNestedImpl( - index, item); + public V1PodStatusFluent.PodIPsNested setNewPodIPLike(Integer index, V1PodIP item) { + return new V1PodStatusFluentImpl.PodIPsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editPodIP( - java.lang.Integer index) { + public V1PodStatusFluent.PodIPsNested editPodIP(Integer index) { if (podIPs.size() <= index) throw new RuntimeException("Can't edit podIPs. Index exceeds size."); return setNewPodIPLike(index, buildPodIP(index)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editFirstPodIP() { + public V1PodStatusFluent.PodIPsNested editFirstPodIP() { if (podIPs.size() == 0) throw new RuntimeException("Can't edit first podIPs. The list is empty."); return setNewPodIPLike(0, buildPodIP(0)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editLastPodIP() { + public V1PodStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested editMatchingPodIP( - java.util.function.Predicate predicate) { + public V1PodStatusFluent.PodIPsNested editMatchingPodIP(Predicate predicate) { int index = -1; for (int i = 0; i < podIPs.size(); i++) { if (predicate.test(podIPs.get(i))) { @@ -1347,42 +1199,42 @@ public io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested edi return setNewPodIPLike(index, buildPodIP(index)); } - public java.lang.String getQosClass() { + public String getQosClass() { return this.qosClass; } - public A withQosClass(java.lang.String qosClass) { + public A withQosClass(String qosClass) { this.qosClass = qosClass; return (A) this; } - public java.lang.Boolean hasQosClass() { + public Boolean hasQosClass() { return this.qosClass != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.time.OffsetDateTime getStartTime() { + public OffsetDateTime getStartTime() { return this.startTime; } - public A withStartTime(java.time.OffsetDateTime startTime) { + public A withStartTime(OffsetDateTime startTime) { this.startTime = startTime; return (A) this; } - public java.lang.Boolean hasStartTime() { + public Boolean hasStartTime() { return this.startTime != null; } @@ -1434,7 +1286,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (conditions != null && !conditions.isEmpty()) { @@ -1495,20 +1347,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1PodConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1PodCondition item) { + implements V1PodStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1PodCondition item) { this.index = index; this.builder = new V1PodConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodConditionBuilder(this); + this.builder = new V1PodConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1PodConditionBuilder builder; - java.lang.Integer index; + V1PodConditionBuilder builder; + Integer index; public N and() { return (N) V1PodStatusFluentImpl.this.setToConditions(index, builder.build()); @@ -1521,20 +1372,19 @@ public N endCondition() { class ContainerStatusesNestedImpl extends V1ContainerStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodStatusFluent.ContainerStatusesNested, - io.kubernetes.client.fluent.Nested { - ContainerStatusesNestedImpl(java.lang.Integer index, V1ContainerStatus item) { + implements V1PodStatusFluent.ContainerStatusesNested, Nested { + ContainerStatusesNestedImpl(Integer index, V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } ContainerStatusesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(this); + this.builder = new V1ContainerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder; - java.lang.Integer index; + V1ContainerStatusBuilder builder; + Integer index; public N and() { return (N) V1PodStatusFluentImpl.this.setToContainerStatuses(index, builder.build()); @@ -1547,22 +1397,19 @@ public N endContainerStatus() { class EphemeralContainerStatusesNestedImpl extends V1ContainerStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodStatusFluent - .EphemeralContainerStatusesNested< - N>, - io.kubernetes.client.fluent.Nested { - EphemeralContainerStatusesNestedImpl(java.lang.Integer index, V1ContainerStatus item) { + implements V1PodStatusFluent.EphemeralContainerStatusesNested, Nested { + EphemeralContainerStatusesNestedImpl(Integer index, V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } EphemeralContainerStatusesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(this); + this.builder = new V1ContainerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder; - java.lang.Integer index; + V1ContainerStatusBuilder builder; + Integer index; public N and() { return (N) V1PodStatusFluentImpl.this.setToEphemeralContainerStatuses(index, builder.build()); @@ -1575,21 +1422,19 @@ public N endEphemeralContainerStatus() { class InitContainerStatusesNestedImpl extends V1ContainerStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodStatusFluent.InitContainerStatusesNested< - N>, - io.kubernetes.client.fluent.Nested { - InitContainerStatusesNestedImpl(java.lang.Integer index, V1ContainerStatus item) { + implements V1PodStatusFluent.InitContainerStatusesNested, Nested { + InitContainerStatusesNestedImpl(Integer index, V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } InitContainerStatusesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ContainerStatusBuilder(this); + this.builder = new V1ContainerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ContainerStatusBuilder builder; - java.lang.Integer index; + V1ContainerStatusBuilder builder; + Integer index; public N and() { return (N) V1PodStatusFluentImpl.this.setToInitContainerStatuses(index, builder.build()); @@ -1601,20 +1446,19 @@ public N endInitContainerStatus() { } class PodIPsNestedImpl extends V1PodIPFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodStatusFluent.PodIPsNested, - io.kubernetes.client.fluent.Nested { - PodIPsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodIP item) { + implements V1PodStatusFluent.PodIPsNested, Nested { + PodIPsNestedImpl(Integer index, V1PodIP item) { this.index = index; this.builder = new V1PodIPBuilder(this, item); } PodIPsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodIPBuilder(this); + this.builder = new V1PodIPBuilder(this); } - io.kubernetes.client.openapi.models.V1PodIPBuilder builder; - java.lang.Integer index; + V1PodIPBuilder builder; + Integer index; public N and() { return (N) V1PodStatusFluentImpl.this.setToPodIPs(index, builder.build()); 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 4333c4401a..6cbee0da18 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodTemplateBuilder extends V1PodTemplateFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodTemplate, - io.kubernetes.client.openapi.models.V1PodTemplateBuilder> { + implements VisitableBuilder { public V1PodTemplateBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PodTemplateBuilder(V1PodTemplateFluent fluent) { this(fluent, false); } - public V1PodTemplateBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodTemplateBuilder(V1PodTemplateFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodTemplate(), validationEnabled); } - public V1PodTemplateBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateFluent fluent, - io.kubernetes.client.openapi.models.V1PodTemplate instance) { + public V1PodTemplateBuilder(V1PodTemplateFluent fluent, V1PodTemplate instance) { this(fluent, instance, false); } public V1PodTemplateBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateFluent fluent, - io.kubernetes.client.openapi.models.V1PodTemplate instance, - java.lang.Boolean validationEnabled) { + V1PodTemplateFluent fluent, V1PodTemplate instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1PodTemplateBuilder( this.validationEnabled = validationEnabled; } - public V1PodTemplateBuilder(io.kubernetes.client.openapi.models.V1PodTemplate instance) { + public V1PodTemplateBuilder(V1PodTemplate instance) { this(instance, false); } - public V1PodTemplateBuilder( - io.kubernetes.client.openapi.models.V1PodTemplate instance, - java.lang.Boolean validationEnabled) { + public V1PodTemplateBuilder(V1PodTemplate instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1PodTemplateBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodTemplateFluent fluent; - java.lang.Boolean validationEnabled; + V1PodTemplateFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodTemplate build() { + public V1PodTemplate build() { V1PodTemplate buildable = new V1PodTemplate(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 bf13813c67..ee06c63195 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 @@ -19,15 +19,15 @@ public interface V1PodTemplateFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,51 +37,45 @@ public interface V1PodTemplateFluent> extends F @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PodTemplateFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodTemplateFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested editMetadata(); + public V1PodTemplateFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested - editOrNewMetadata(); + public V1PodTemplateFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodTemplateFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildTemplate instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate(); + public V1PodTemplateSpec buildTemplate(); - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template); + public A withTemplate(V1PodTemplateSpec template); - public java.lang.Boolean hasTemplate(); + public Boolean hasTemplate(); public V1PodTemplateFluent.TemplateNested withNewTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1PodTemplateFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested editTemplate(); + public V1PodTemplateFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested - editOrNewTemplate(); + public V1PodTemplateFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1PodTemplateFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -91,8 +85,7 @@ public interface MetadataNested } public interface TemplateNested - extends io.kubernetes.client.fluent.Nested, - V1PodTemplateSpecFluent> { + extends Nested, V1PodTemplateSpecFluent> { public N and(); public N endTemplate(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java index 13b4969344..37542e714e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluentImpl.java @@ -21,7 +21,7 @@ public class V1PodTemplateFluentImpl> extends B implements V1PodTemplateFluent { public V1PodTemplateFluentImpl() {} - public V1PodTemplateFluentImpl(io.kubernetes.client.openapi.models.V1PodTemplate instance) { + public V1PodTemplateFluentImpl(V1PodTemplate instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -32,15 +32,15 @@ public V1PodTemplateFluentImpl(io.kubernetes.client.openapi.models.V1PodTemplate } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1PodTemplateSpecBuilder template; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -93,25 +96,20 @@ public V1PodTemplateFluent.MetadataNested withNewMetadata() { return new V1PodTemplateFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodTemplateFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodTemplateFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested editMetadata() { + public V1PodTemplateFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested - editOrNewMetadata() { + public V1PodTemplateFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodTemplateFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -120,25 +118,28 @@ public io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { - this.template = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(template); + this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -146,25 +147,20 @@ public V1PodTemplateFluent.TemplateNested withNewTemplate() { return new V1PodTemplateFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { - return new io.kubernetes.client.openapi.models.V1PodTemplateFluentImpl.TemplateNestedImpl(item); + public V1PodTemplateFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new V1PodTemplateFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested editTemplate() { + public V1PodTemplateFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested - editOrNewTemplate() { + public V1PodTemplateFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1PodTemplateFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } @@ -184,7 +180,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, template, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -208,17 +204,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodTemplateFluent.MetadataNested, - Nested { + implements V1PodTemplateFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PodTemplateFluentImpl.this.withMetadata(builder.build()); @@ -231,17 +226,16 @@ public N endMetadata() { class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodTemplateFluent.TemplateNested, - io.kubernetes.client.fluent.Nested { + implements V1PodTemplateFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1PodTemplateFluentImpl.this.withTemplate(builder.build()); 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 0d6e0a59a0..e94d1a6a6d 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodTemplateListBuilder extends V1PodTemplateListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PodTemplateList, - io.kubernetes.client.openapi.models.V1PodTemplateListBuilder> { + implements VisitableBuilder { public V1PodTemplateListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent) { this(fluent, false); } - public V1PodTemplateListBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodTemplateList(), validationEnabled); } - public V1PodTemplateListBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateListFluent fluent, - io.kubernetes.client.openapi.models.V1PodTemplateList instance) { + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent, V1PodTemplateList instance) { this(fluent, instance, false); } public V1PodTemplateListBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateListFluent fluent, - io.kubernetes.client.openapi.models.V1PodTemplateList instance, - java.lang.Boolean validationEnabled) { + V1PodTemplateListFluent fluent, V1PodTemplateList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1PodTemplateListBuilder( this.validationEnabled = validationEnabled; } - public V1PodTemplateListBuilder(io.kubernetes.client.openapi.models.V1PodTemplateList instance) { + public V1PodTemplateListBuilder(V1PodTemplateList instance) { this(instance, false); } - public V1PodTemplateListBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateList instance, - java.lang.Boolean validationEnabled) { + public V1PodTemplateListBuilder(V1PodTemplateList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1PodTemplateListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodTemplateListFluent fluent; - java.lang.Boolean validationEnabled; + V1PodTemplateListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodTemplateList build() { + public V1PodTemplateList build() { V1PodTemplateList buildable = new V1PodTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 63f35c4dfe..a095ab6469 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 @@ -22,23 +22,21 @@ public interface V1PodTemplateListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item); + public A addToItems(Integer index, V1PodTemplate item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item); + public A setToItems(Integer index, V1PodTemplate item); public A addToItems(io.kubernetes.client.openapi.models.V1PodTemplate... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1PodTemplate... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,83 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1PodTemplate buildItem(java.lang.Integer index); + public V1PodTemplate buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1PodTemplate buildFirstItem(); + public V1PodTemplate buildFirstItem(); - public io.kubernetes.client.openapi.models.V1PodTemplate buildLastItem(); + public V1PodTemplate buildLastItem(); - public io.kubernetes.client.openapi.models.V1PodTemplate buildMatchingItem( - java.util.function.Predicate - predicate); + public V1PodTemplate buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1PodTemplateListFluent.ItemsNested addNewItem(); - public V1PodTemplateListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PodTemplate item); + public V1PodTemplateListFluent.ItemsNested addNewItemLike(V1PodTemplate item); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item); + public V1PodTemplateListFluent.ItemsNested setNewItemLike(Integer index, V1PodTemplate item); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1PodTemplateListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested editFirstItem(); + public V1PodTemplateListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested editLastItem(); + public V1PodTemplateListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1PodTemplateListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PodTemplateListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PodTemplateListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - editMetadata(); + public V1PodTemplateListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - editOrNewMetadata(); + public V1PodTemplateListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PodTemplateListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1PodTemplateFluent> { @@ -134,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java index 555739d4fe..3e45778a2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluentImpl.java @@ -38,14 +38,14 @@ public V1PodTemplateListFluentImpl(V1PodTemplateList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item) { + public A addToItems(Integer index, V1PodTemplate item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodTemplateBuilder(item); + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item) { + public A setToItems(Integer index, V1PodTemplate item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodTemplateBuilder(item); + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodTemplate item : items) { - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodTemplateBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PodTemplate item : items) { - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodTemplateBuilder(item); + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1PodTemplate item : items) { - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder = - new io.kubernetes.client.openapi.models.V1PodTemplateBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder = each.next(); + V1PodTemplateBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1PodTemplate buildItem(java.lang.Integer index) { + public V1PodTemplate buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PodTemplate buildFirstItem() { + public V1PodTemplate buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PodTemplate buildLastItem() { + public V1PodTemplate buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PodTemplate buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodTemplateBuilder item : items) { + public V1PodTemplate buildMatchingItem(Predicate predicate) { + for (V1PodTemplateBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1PodTemplate buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PodTemplateBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1PodTemplateBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PodTemplate item : items) { + this.items = new ArrayList(); + for (V1PodTemplate item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1PodTemplate item : items) { + for (V1PodTemplate item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,39 +221,32 @@ public V1PodTemplateListFluent.ItemsNested addNewItem() { return new V1PodTemplateListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1PodTemplate item) { + public V1PodTemplateListFluent.ItemsNested addNewItemLike(V1PodTemplate item) { return new V1PodTemplateListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item) { - return new io.kubernetes.client.openapi.models.V1PodTemplateListFluentImpl.ItemsNestedImpl( - index, item); + public V1PodTemplateListFluent.ItemsNested setNewItemLike(Integer index, V1PodTemplate item) { + return new V1PodTemplateListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1PodTemplateListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested - editFirstItem() { + public V1PodTemplateListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested editLastItem() { + public V1PodTemplateListFluent.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 io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1PodTemplateListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -283,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested withNewMetadata() { return new V1PodTemplateListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1PodTemplateListFluentImpl.MetadataNestedImpl( - item); + public V1PodTemplateListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1PodTemplateListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - editMetadata() { + public V1PodTemplateListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - editOrNewMetadata() { + public V1PodTemplateListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1PodTemplateListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -367,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -391,21 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1PodTemplateFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodTemplateListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PodTemplate item) { + implements V1PodTemplateListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1PodTemplate item) { this.index = index; this.builder = new V1PodTemplateBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateBuilder(this); + this.builder = new V1PodTemplateBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateBuilder builder; - java.lang.Integer index; + V1PodTemplateBuilder builder; + Integer index; public N and() { return (N) V1PodTemplateListFluentImpl.this.setToItems(index, builder.build()); @@ -418,17 +387,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodTemplateListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1PodTemplateListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1PodTemplateListFluentImpl.this.withMetadata(builder.build()); 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 ca1a44790c..50a268bb25 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluentImpl - implements VisitableBuilder< - V1PodTemplateSpec, io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder> { + implements VisitableBuilder { public V1PodTemplateSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent) { this(fluent, false); } - public V1PodTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1PodTemplateSpec(), validationEnabled); } - public V1PodTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PodTemplateSpec instance) { + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent, V1PodTemplateSpec instance) { this(fluent, instance, false); } public V1PodTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent fluent, - io.kubernetes.client.openapi.models.V1PodTemplateSpec instance, - java.lang.Boolean validationEnabled) { + V1PodTemplateSpecFluent fluent, V1PodTemplateSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMetadata(instance.getMetadata()); @@ -53,13 +46,11 @@ public V1PodTemplateSpecBuilder( this.validationEnabled = validationEnabled; } - public V1PodTemplateSpecBuilder(io.kubernetes.client.openapi.models.V1PodTemplateSpec instance) { + public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance) { this(instance, false); } - public V1PodTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1PodTemplateSpec instance, - java.lang.Boolean validationEnabled) { + public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMetadata(instance.getMetadata()); @@ -68,10 +59,10 @@ public V1PodTemplateSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1PodTemplateSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PodTemplateSpec build() { + public V1PodTemplateSpec build() { V1PodTemplateSpec buildable = new V1PodTemplateSpec(); buildable.setMetadata(fluent.getMetadata()); buildable.setSpec(fluent.getSpec()); 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 30962ac69f..bb7bfb9837 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 @@ -26,51 +26,45 @@ public interface V1PodTemplateSpecFluent> e @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); public Boolean hasMetadata(); public V1PodTemplateSpecFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - editMetadata(); + public V1PodTemplateSpecFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - editOrNewMetadata(); + public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodSpec getSpec(); - public io.kubernetes.client.openapi.models.V1PodSpec buildSpec(); + public V1PodSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1PodSpec spec); + public A withSpec(V1PodSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1PodTemplateSpecFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1PodSpec item); + public V1PodTemplateSpecFluent.SpecNested withNewSpecLike(V1PodSpec item); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested editSpec(); + public V1PodTemplateSpecFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested editOrNewSpec(); + public V1PodTemplateSpecFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PodSpec item); + public V1PodTemplateSpecFluent.SpecNested editOrNewSpecLike(V1PodSpec item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -80,8 +74,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1PodSpecFluent> { + extends Nested, V1PodSpecFluent> { public N and(); public N endSpec(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java index f89afd25c5..4ef11fa486 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluentImpl.java @@ -21,8 +21,7 @@ public class V1PodTemplateSpecFluentImpl> e implements V1PodTemplateSpecFluent { public V1PodTemplateSpecFluentImpl() {} - public V1PodTemplateSpecFluentImpl( - io.kubernetes.client.openapi.models.V1PodTemplateSpec instance) { + public V1PodTemplateSpecFluentImpl(V1PodTemplateSpec instance) { this.withMetadata(instance.getMetadata()); this.withSpec(instance.getSpec()); @@ -37,19 +36,22 @@ public V1PodTemplateSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } @@ -62,26 +64,20 @@ public V1PodTemplateSpecFluent.MetadataNested withNewMetadata() { return new V1PodTemplateSpecFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodTemplateSpecFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PodTemplateSpecFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - editMetadata() { + public V1PodTemplateSpecFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - editOrNewMetadata() { + public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PodTemplateSpecFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -90,25 +86,28 @@ public V1PodTemplateSpecFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1PodSpec buildSpec() { + public V1PodSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1PodSpec spec) { + public A withSpec(V1PodSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1PodSpecBuilder(spec); + this.spec = new V1PodSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -116,24 +115,19 @@ public V1PodTemplateSpecFluent.SpecNested withNewSpec() { return new V1PodTemplateSpecFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1PodSpec item) { - return new io.kubernetes.client.openapi.models.V1PodTemplateSpecFluentImpl.SpecNestedImpl(item); + public V1PodTemplateSpecFluent.SpecNested withNewSpecLike(V1PodSpec item) { + return new V1PodTemplateSpecFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested editSpec() { + public V1PodTemplateSpecFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1PodSpecBuilder().build()); + public V1PodTemplateSpecFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1PodSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1PodSpec item) { + public V1PodTemplateSpecFluent.SpecNested editOrNewSpecLike(V1PodSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -167,17 +161,16 @@ public String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.MetadataNested, - Nested { + implements V1PodTemplateSpecFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PodTemplateSpecFluentImpl.this.withMetadata(builder.build()); @@ -189,17 +182,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1PodSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1PodTemplateSpecFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1PodTemplateSpecFluent.SpecNested, Nested { SpecNestedImpl(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodSpecBuilder(this); + this.builder = new V1PodSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodSpecBuilder builder; + V1PodSpecBuilder builder; public N and() { return (N) V1PodTemplateSpecFluentImpl.this.withSpec(builder.build()); 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 bf6e1ee7d4..2799430009 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PolicyRuleBuilder extends V1PolicyRuleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PolicyRule, V1PolicyRuleBuilder> { + implements VisitableBuilder { public V1PolicyRuleBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1PolicyRuleBuilder(Boolean validationEnabled) { this(new V1PolicyRule(), validationEnabled); } - public V1PolicyRuleBuilder(io.kubernetes.client.openapi.models.V1PolicyRuleFluent fluent) { + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent) { this(fluent, false); } - public V1PolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1PolicyRuleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1PolicyRule(), validationEnabled); } - public V1PolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1PolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1PolicyRule instance) { + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent, V1PolicyRule instance) { this(fluent, instance, false); } public V1PolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1PolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1PolicyRule instance, - java.lang.Boolean validationEnabled) { + V1PolicyRuleFluent fluent, V1PolicyRule instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); @@ -59,13 +52,11 @@ public V1PolicyRuleBuilder( this.validationEnabled = validationEnabled; } - public V1PolicyRuleBuilder(io.kubernetes.client.openapi.models.V1PolicyRule instance) { + public V1PolicyRuleBuilder(V1PolicyRule instance) { this(instance, false); } - public V1PolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1PolicyRule instance, - java.lang.Boolean validationEnabled) { + public V1PolicyRuleBuilder(V1PolicyRule instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroups(instance.getApiGroups()); @@ -80,10 +71,10 @@ public V1PolicyRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PolicyRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1PolicyRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PolicyRule build() { + public V1PolicyRule build() { V1PolicyRule buildable = new V1PolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); 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 09481e64c5..9361aff965 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 @@ -21,158 +21,151 @@ public interface V1PolicyRuleFluent> extends Fluent { public A addToApiGroups(Integer index, String item); - public A setToApiGroups(java.lang.Integer index, java.lang.String item); + public A setToApiGroups(Integer index, String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); + public A addAllToApiGroups(Collection items); public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(java.util.Collection items); + public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); + public List getApiGroups(); - public java.lang.String getApiGroup(java.lang.Integer index); + public String getApiGroup(Integer index); - public java.lang.String getFirstApiGroup(); + public String getFirstApiGroup(); - public java.lang.String getLastApiGroup(); + public String getLastApiGroup(); - public java.lang.String getMatchingApiGroup(Predicate predicate); + public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate); + public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(java.util.List apiGroups); + public A withApiGroups(List apiGroups); public A withApiGroups(java.lang.String... apiGroups); - public java.lang.Boolean hasApiGroups(); + public Boolean hasApiGroups(); - public A addToNonResourceURLs(java.lang.Integer index, java.lang.String item); + public A addToNonResourceURLs(Integer index, String item); - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item); + public A setToNonResourceURLs(Integer index, String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(java.util.Collection items); + public A addAllToNonResourceURLs(Collection items); public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(java.util.Collection items); + public A removeAllFromNonResourceURLs(Collection items); - public java.util.List getNonResourceURLs(); + public List getNonResourceURLs(); - public java.lang.String getNonResourceURL(java.lang.Integer index); + public String getNonResourceURL(Integer index); - public java.lang.String getFirstNonResourceURL(); + public String getFirstNonResourceURL(); - public java.lang.String getLastNonResourceURL(); + public String getLastNonResourceURL(); - public java.lang.String getMatchingNonResourceURL( - java.util.function.Predicate predicate); + public String getMatchingNonResourceURL(Predicate predicate); - public java.lang.Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate); + public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(java.util.List nonResourceURLs); + public A withNonResourceURLs(List nonResourceURLs); public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public java.lang.Boolean hasNonResourceURLs(); + public Boolean hasNonResourceURLs(); - public A addToResourceNames(java.lang.Integer index, java.lang.String item); + public A addToResourceNames(Integer index, String item); - public A setToResourceNames(java.lang.Integer index, java.lang.String item); + public A setToResourceNames(Integer index, String item); public A addToResourceNames(java.lang.String... items); - public A addAllToResourceNames(java.util.Collection items); + public A addAllToResourceNames(Collection items); public A removeFromResourceNames(java.lang.String... items); - public A removeAllFromResourceNames(java.util.Collection items); + public A removeAllFromResourceNames(Collection items); - public java.util.List getResourceNames(); + public List getResourceNames(); - public java.lang.String getResourceName(java.lang.Integer index); + public String getResourceName(Integer index); - public java.lang.String getFirstResourceName(); + public String getFirstResourceName(); - public java.lang.String getLastResourceName(); + public String getLastResourceName(); - public java.lang.String getMatchingResourceName( - java.util.function.Predicate predicate); + public String getMatchingResourceName(Predicate predicate); - public java.lang.Boolean hasMatchingResourceName( - java.util.function.Predicate predicate); + public Boolean hasMatchingResourceName(Predicate predicate); - public A withResourceNames(java.util.List resourceNames); + public A withResourceNames(List resourceNames); public A withResourceNames(java.lang.String... resourceNames); - public java.lang.Boolean hasResourceNames(); + public Boolean hasResourceNames(); - public A addToResources(java.lang.Integer index, java.lang.String item); + public A addToResources(Integer index, String item); - public A setToResources(java.lang.Integer index, java.lang.String item); + public A setToResources(Integer index, String item); public A addToResources(java.lang.String... items); - public A addAllToResources(java.util.Collection items); + public A addAllToResources(Collection items); public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(java.util.Collection items); + public A removeAllFromResources(Collection items); - public java.util.List getResources(); + public List getResources(); - public java.lang.String getResource(java.lang.Integer index); + public String getResource(Integer index); - public java.lang.String getFirstResource(); + public String getFirstResource(); - public java.lang.String getLastResource(); + public String getLastResource(); - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate); + public String getMatchingResource(Predicate predicate); - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate); + public Boolean hasMatchingResource(Predicate predicate); - public A withResources(java.util.List resources); + public A withResources(List resources); public A withResources(java.lang.String... resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java index cbe7740bd7..b1cd0dff27 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluentImpl.java @@ -24,7 +24,7 @@ public class V1PolicyRuleFluentImpl> extends Bas implements V1PolicyRuleFluent { public V1PolicyRuleFluentImpl() {} - public V1PolicyRuleFluentImpl(io.kubernetes.client.openapi.models.V1PolicyRule instance) { + public V1PolicyRuleFluentImpl(V1PolicyRule instance) { this.withApiGroups(instance.getApiGroups()); this.withNonResourceURLs(instance.getNonResourceURLs()); @@ -37,22 +37,22 @@ public V1PolicyRuleFluentImpl(io.kubernetes.client.openapi.models.V1PolicyRule i } private List apiGroups; - private java.util.List nonResourceURLs; - private java.util.List resourceNames; - private java.util.List resources; - private java.util.List verbs; + private List nonResourceURLs; + private List resourceNames; + private List resources; + private List verbs; - public A addToApiGroups(Integer index, java.lang.String item) { + public A addToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.add(index, item); return (A) this; } - public A setToApiGroups(java.lang.Integer index, java.lang.String item) { + public A setToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.set(index, item); return (A) this; @@ -60,26 +60,26 @@ public A setToApiGroups(java.lang.Integer index, java.lang.String item) { public A addToApiGroups(java.lang.String... items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } public A removeFromApiGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -87,8 +87,8 @@ public A removeFromApiGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromApiGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromApiGroups(Collection items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -96,24 +96,24 @@ public A removeAllFromApiGroups(java.util.Collection items) { return (A) this; } - public java.util.List getApiGroups() { + public List getApiGroups() { return this.apiGroups; } - public java.lang.String getApiGroup(java.lang.Integer index) { + public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public java.lang.String getFirstApiGroup() { + public String getFirstApiGroup() { return this.apiGroups.get(0); } - public java.lang.String getLastApiGroup() { + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public java.lang.String getMatchingApiGroup(Predicate predicate) { - for (java.lang.String item : apiGroups) { + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -121,8 +121,8 @@ public java.lang.String getMatchingApiGroup(Predicate predicat return null; } - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate) { - for (java.lang.String item : apiGroups) { + public Boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return true; } @@ -130,10 +130,10 @@ public Boolean hasMatchingApiGroup(java.util.function.Predicate apiGroups) { + public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new java.util.ArrayList(); - for (java.lang.String item : apiGroups) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { this.addToApiGroups(item); } } else { @@ -147,28 +147,28 @@ public A withApiGroups(java.lang.String... apiGroups) { this.apiGroups.clear(); } if (apiGroups != null) { - for (java.lang.String item : apiGroups) { + for (String item : apiGroups) { this.addToApiGroups(item); } } return (A) this; } - public java.lang.Boolean hasApiGroups() { + public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public A addToNonResourceURLs(java.lang.Integer index, java.lang.String item) { + public A addToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.add(index, item); return (A) this; } - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { + public A setToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -176,26 +176,26 @@ public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { public A addToNonResourceURLs(java.lang.String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } - public A addAllToNonResourceURLs(java.util.Collection items) { + public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } public A removeFromNonResourceURLs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -203,8 +203,8 @@ public A removeFromNonResourceURLs(java.lang.String... items) { return (A) this; } - public A removeAllFromNonResourceURLs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNonResourceURLs(Collection items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -212,25 +212,24 @@ public A removeAllFromNonResourceURLs(java.util.Collection ite return (A) this; } - public java.util.List getNonResourceURLs() { + public List getNonResourceURLs() { return this.nonResourceURLs; } - public java.lang.String getNonResourceURL(java.lang.Integer index) { + public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public java.lang.String getFirstNonResourceURL() { + public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public java.lang.String getLastNonResourceURL() { + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public java.lang.String getMatchingNonResourceURL( - java.util.function.Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public String getMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return item; } @@ -238,9 +237,8 @@ public java.lang.String getMatchingNonResourceURL( return null; } - public java.lang.Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public Boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return true; } @@ -248,10 +246,10 @@ public java.lang.Boolean hasMatchingNonResourceURL( return false; } - public A withNonResourceURLs(java.util.List nonResourceURLs) { + public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new java.util.ArrayList(); - for (java.lang.String item : nonResourceURLs) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } else { @@ -265,28 +263,28 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { this.nonResourceURLs.clear(); } if (nonResourceURLs != null) { - for (java.lang.String item : nonResourceURLs) { + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceURLs() { + public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - public A addToResourceNames(java.lang.Integer index, java.lang.String item) { + public A addToResourceNames(Integer index, String item) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } this.resourceNames.add(index, item); return (A) this; } - public A setToResourceNames(java.lang.Integer index, java.lang.String item) { + public A setToResourceNames(Integer index, String item) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } this.resourceNames.set(index, item); return (A) this; @@ -294,26 +292,26 @@ public A setToResourceNames(java.lang.Integer index, java.lang.String item) { public A addToResourceNames(java.lang.String... items) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resourceNames.add(item); } return (A) this; } - public A addAllToResourceNames(java.util.Collection items) { + public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resourceNames.add(item); } return (A) this; } public A removeFromResourceNames(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resourceNames != null) { this.resourceNames.remove(item); } @@ -321,8 +319,8 @@ public A removeFromResourceNames(java.lang.String... items) { return (A) this; } - public A removeAllFromResourceNames(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResourceNames(Collection items) { + for (String item : items) { if (this.resourceNames != null) { this.resourceNames.remove(item); } @@ -330,25 +328,24 @@ public A removeAllFromResourceNames(java.util.Collection items return (A) this; } - public java.util.List getResourceNames() { + public List getResourceNames() { return this.resourceNames; } - public java.lang.String getResourceName(java.lang.Integer index) { + public String getResourceName(Integer index) { return this.resourceNames.get(index); } - public java.lang.String getFirstResourceName() { + public String getFirstResourceName() { return this.resourceNames.get(0); } - public java.lang.String getLastResourceName() { + public String getLastResourceName() { return this.resourceNames.get(resourceNames.size() - 1); } - public java.lang.String getMatchingResourceName( - java.util.function.Predicate predicate) { - for (java.lang.String item : resourceNames) { + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { if (predicate.test(item)) { return item; } @@ -356,9 +353,8 @@ public java.lang.String getMatchingResourceName( return null; } - public java.lang.Boolean hasMatchingResourceName( - java.util.function.Predicate predicate) { - for (java.lang.String item : resourceNames) { + public Boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { if (predicate.test(item)) { return true; } @@ -366,10 +362,10 @@ public java.lang.Boolean hasMatchingResourceName( return false; } - public A withResourceNames(java.util.List resourceNames) { + public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new java.util.ArrayList(); - for (java.lang.String item : resourceNames) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { this.addToResourceNames(item); } } else { @@ -383,28 +379,28 @@ public A withResourceNames(java.lang.String... resourceNames) { this.resourceNames.clear(); } if (resourceNames != null) { - for (java.lang.String item : resourceNames) { + for (String item : resourceNames) { this.addToResourceNames(item); } } return (A) this; } - public java.lang.Boolean hasResourceNames() { + public Boolean hasResourceNames() { return resourceNames != null && !resourceNames.isEmpty(); } - public A addToResources(java.lang.Integer index, java.lang.String item) { + public A addToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.add(index, item); return (A) this; } - public A setToResources(java.lang.Integer index, java.lang.String item) { + public A setToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.set(index, item); return (A) this; @@ -412,26 +408,26 @@ public A setToResources(java.lang.Integer index, java.lang.String item) { public A addToResources(java.lang.String... items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } - public A addAllToResources(java.util.Collection items) { + public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } public A removeFromResources(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -439,8 +435,8 @@ public A removeFromResources(java.lang.String... items) { return (A) this; } - public A removeAllFromResources(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResources(Collection items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -448,25 +444,24 @@ public A removeAllFromResources(java.util.Collection items) { return (A) this; } - public java.util.List getResources() { + public List getResources() { return this.resources; } - public java.lang.String getResource(java.lang.Integer index) { + public String getResource(Integer index) { return this.resources.get(index); } - public java.lang.String getFirstResource() { + public String getFirstResource() { return this.resources.get(0); } - public java.lang.String getLastResource() { + public String getLastResource() { return this.resources.get(resources.size() - 1); } - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return item; } @@ -474,9 +469,8 @@ public java.lang.String getMatchingResource( return null; } - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public Boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return true; } @@ -484,10 +478,10 @@ public java.lang.Boolean hasMatchingResource( return false; } - public A withResources(java.util.List resources) { + public A withResources(List resources) { if (resources != null) { - this.resources = new java.util.ArrayList(); - for (java.lang.String item : resources) { + this.resources = new ArrayList(); + for (String item : resources) { this.addToResources(item); } } else { @@ -501,28 +495,28 @@ public A withResources(java.lang.String... resources) { this.resources.clear(); } if (resources != null) { - for (java.lang.String item : resources) { + for (String item : resources) { this.addToResources(item); } } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -530,26 +524,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -557,8 +551,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -566,25 +560,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -592,9 +585,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -602,10 +594,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -619,14 +611,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -653,7 +645,7 @@ public int hashCode() { apiGroups, nonResourceURLs, resourceNames, resources, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroups != null && !apiGroups.isEmpty()) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java index 9a184a7049..d162efacd2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PortStatusBuilder extends V1PortStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PortStatus, - io.kubernetes.client.openapi.models.V1PortStatusBuilder> { + implements VisitableBuilder { public V1PortStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PortStatusBuilder(V1PortStatusFluent fluent) { this(fluent, false); } - public V1PortStatusBuilder( - io.kubernetes.client.openapi.models.V1PortStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PortStatusBuilder(V1PortStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1PortStatus(), validationEnabled); } - public V1PortStatusBuilder( - io.kubernetes.client.openapi.models.V1PortStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PortStatus instance) { + public V1PortStatusBuilder(V1PortStatusFluent fluent, V1PortStatus instance) { this(fluent, instance, false); } public V1PortStatusBuilder( - io.kubernetes.client.openapi.models.V1PortStatusFluent fluent, - io.kubernetes.client.openapi.models.V1PortStatus instance, - java.lang.Boolean validationEnabled) { + V1PortStatusFluent fluent, V1PortStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withError(instance.getError()); @@ -56,13 +48,11 @@ public V1PortStatusBuilder( this.validationEnabled = validationEnabled; } - public V1PortStatusBuilder(io.kubernetes.client.openapi.models.V1PortStatus instance) { + public V1PortStatusBuilder(V1PortStatus instance) { this(instance, false); } - public V1PortStatusBuilder( - io.kubernetes.client.openapi.models.V1PortStatus instance, - java.lang.Boolean validationEnabled) { + public V1PortStatusBuilder(V1PortStatus instance, Boolean validationEnabled) { this.fluent = this; this.withError(instance.getError()); @@ -73,10 +63,10 @@ public V1PortStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PortStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1PortStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PortStatus build() { + public V1PortStatus build() { V1PortStatus buildable = new V1PortStatus(); buildable.setError(fluent.getError()); buildable.setPort(fluent.getPort()); 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 ba4fdb9bdd..36d5dffe73 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 @@ -18,19 +18,19 @@ public interface V1PortStatusFluent> extends Fluent { public String getError(); - public A withError(java.lang.String error); + public A withError(String error); public Boolean hasError(); public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); - public java.lang.String getProtocol(); + public String getProtocol(); - public A withProtocol(java.lang.String protocol); + public A withProtocol(String protocol); - public java.lang.Boolean hasProtocol(); + public Boolean hasProtocol(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java index d1f4f1f577..4cb3adca79 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluentImpl.java @@ -20,7 +20,7 @@ public class V1PortStatusFluentImpl> extends Bas implements V1PortStatusFluent { public V1PortStatusFluentImpl() {} - public V1PortStatusFluentImpl(io.kubernetes.client.openapi.models.V1PortStatus instance) { + public V1PortStatusFluentImpl(V1PortStatus instance) { this.withError(instance.getError()); this.withPort(instance.getPort()); @@ -30,13 +30,13 @@ public V1PortStatusFluentImpl(io.kubernetes.client.openapi.models.V1PortStatus i private String error; private Integer port; - private java.lang.String protocol; + private String protocol; - public java.lang.String getError() { + public String getError() { return this.error; } - public A withError(java.lang.String error) { + public A withError(String error) { this.error = error; return (A) this; } @@ -45,29 +45,29 @@ public Boolean hasError() { return this.error != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } - public java.lang.String getProtocol() { + public String getProtocol() { return this.protocol; } - public A withProtocol(java.lang.String protocol) { + public A withProtocol(String protocol) { this.protocol = protocol; return (A) this; } - public java.lang.Boolean hasProtocol() { + public Boolean hasProtocol() { return this.protocol != null; } @@ -85,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(error, port, protocol, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (error != null) { 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 99b309c53d..34417236ea 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 @@ -16,8 +16,7 @@ public class V1PortworxVolumeSourceBuilder extends V1PortworxVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PortworxVolumeSource, V1PortworxVolumeSourceBuilder> { + implements VisitableBuilder { public V1PortworxVolumeSourceBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1PortworxVolumeSourceBuilder(Boolean validationEnabled) { this(new V1PortworxVolumeSource(), validationEnabled); } - public V1PortworxVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceFluent fluent) { + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent) { this(fluent, false); } public V1PortworxVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1PortworxVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1PortworxVolumeSource(), validationEnabled); } public V1PortworxVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1PortworxVolumeSource instance) { + V1PortworxVolumeSourceFluent fluent, V1PortworxVolumeSource instance) { this(fluent, instance, false); } public V1PortworxVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1PortworxVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1PortworxVolumeSourceFluent fluent, + V1PortworxVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -57,14 +53,11 @@ public V1PortworxVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1PortworxVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource instance) { + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance) { this(instance, false); } - public V1PortworxVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -75,10 +68,10 @@ public V1PortworxVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1PortworxVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PortworxVolumeSource build() { + public V1PortworxVolumeSource build() { V1PortworxVolumeSource buildable = new V1PortworxVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setReadOnly(fluent.getReadOnly()); 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 7c0458210e..6e0b4c8490 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java @@ -19,21 +19,21 @@ public interface V1PortworxVolumeSourceFluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getVolumeID(); + public String getVolumeID(); - public A withVolumeID(java.lang.String volumeID); + public A withVolumeID(String volumeID); - public java.lang.Boolean hasVolumeID(); + public Boolean hasVolumeID(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java index ede7dc618c..f9b6df91bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1PortworxVolumeSourceFluentImpl implements V1PortworxVolumeSourceFluent { public V1PortworxVolumeSourceFluentImpl() {} - public V1PortworxVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource instance) { + public V1PortworxVolumeSourceFluentImpl(V1PortworxVolumeSource instance) { this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -31,44 +30,44 @@ public V1PortworxVolumeSourceFluentImpl( private String fsType; private Boolean readOnly; - private java.lang.String volumeID; + private String volumeID; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getVolumeID() { + public String getVolumeID() { return this.volumeID; } - public A withVolumeID(java.lang.String volumeID) { + public A withVolumeID(String volumeID) { this.volumeID = volumeID; return (A) this; } - public java.lang.Boolean hasVolumeID() { + public Boolean hasVolumeID() { return this.volumeID != null; } @@ -86,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(fsType, readOnly, volumeID, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 1fe3cc1434..bd3c0304ee 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PreconditionsBuilder extends V1PreconditionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Preconditions, - io.kubernetes.client.openapi.models.V1PreconditionsBuilder> { + implements VisitableBuilder { public V1PreconditionsBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1PreconditionsBuilder(V1PreconditionsFluent fluent) { this(fluent, false); } - public V1PreconditionsBuilder( - io.kubernetes.client.openapi.models.V1PreconditionsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PreconditionsBuilder(V1PreconditionsFluent fluent, Boolean validationEnabled) { this(fluent, new V1Preconditions(), validationEnabled); } - public V1PreconditionsBuilder( - io.kubernetes.client.openapi.models.V1PreconditionsFluent fluent, - io.kubernetes.client.openapi.models.V1Preconditions instance) { + public V1PreconditionsBuilder(V1PreconditionsFluent fluent, V1Preconditions instance) { this(fluent, instance, false); } public V1PreconditionsBuilder( - io.kubernetes.client.openapi.models.V1PreconditionsFluent fluent, - io.kubernetes.client.openapi.models.V1Preconditions instance, - java.lang.Boolean validationEnabled) { + V1PreconditionsFluent fluent, V1Preconditions instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withResourceVersion(instance.getResourceVersion()); @@ -54,13 +46,11 @@ public V1PreconditionsBuilder( this.validationEnabled = validationEnabled; } - public V1PreconditionsBuilder(io.kubernetes.client.openapi.models.V1Preconditions instance) { + public V1PreconditionsBuilder(V1Preconditions instance) { this(instance, false); } - public V1PreconditionsBuilder( - io.kubernetes.client.openapi.models.V1Preconditions instance, - java.lang.Boolean validationEnabled) { + public V1PreconditionsBuilder(V1Preconditions instance, Boolean validationEnabled) { this.fluent = this; this.withResourceVersion(instance.getResourceVersion()); @@ -69,10 +59,10 @@ public V1PreconditionsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PreconditionsFluent fluent; - java.lang.Boolean validationEnabled; + V1PreconditionsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Preconditions build() { + public V1Preconditions build() { V1Preconditions buildable = new V1Preconditions(); buildable.setResourceVersion(fluent.getResourceVersion()); buildable.setUid(fluent.getUid()); 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 56d69393dd..0140d339bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java @@ -18,13 +18,13 @@ public interface V1PreconditionsFluent> extends Fluent { public String getResourceVersion(); - public A withResourceVersion(java.lang.String resourceVersion); + public A withResourceVersion(String resourceVersion); public Boolean hasResourceVersion(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java index 7bb280fec5..86fbf8b148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluentImpl.java @@ -20,20 +20,20 @@ public class V1PreconditionsFluentImpl> exten implements V1PreconditionsFluent { public V1PreconditionsFluentImpl() {} - public V1PreconditionsFluentImpl(io.kubernetes.client.openapi.models.V1Preconditions instance) { + public V1PreconditionsFluentImpl(V1Preconditions instance) { this.withResourceVersion(instance.getResourceVersion()); this.withUid(instance.getUid()); } private String resourceVersion; - private java.lang.String uid; + private String uid; - public java.lang.String getResourceVersion() { + public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(java.lang.String resourceVersion) { + public A withResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasResourceVersion() { return this.resourceVersion != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -70,7 +70,7 @@ public int hashCode() { return java.util.Objects.hash(resourceVersion, uid, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (resourceVersion != null) { 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 388280102d..7074a00db0 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 @@ -16,9 +16,7 @@ public class V1PreferredSchedulingTermBuilder extends V1PreferredSchedulingTermFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm, - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermBuilder> { + implements VisitableBuilder { public V1PreferredSchedulingTermBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluen } public V1PreferredSchedulingTermBuilder( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent fluent, - java.lang.Boolean validationEnabled) { + V1PreferredSchedulingTermFluent fluent, Boolean validationEnabled) { this(fluent, new V1PreferredSchedulingTerm(), validationEnabled); } public V1PreferredSchedulingTermBuilder( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent fluent, - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm instance) { + V1PreferredSchedulingTermFluent fluent, V1PreferredSchedulingTerm instance) { this(fluent, instance, false); } public V1PreferredSchedulingTermBuilder( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent fluent, - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm instance, - java.lang.Boolean validationEnabled) { + V1PreferredSchedulingTermFluent fluent, + V1PreferredSchedulingTerm instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPreference(instance.getPreference()); @@ -55,14 +51,12 @@ public V1PreferredSchedulingTermBuilder( this.validationEnabled = validationEnabled; } - public V1PreferredSchedulingTermBuilder( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm instance) { + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTerm instance) { this(instance, false); } public V1PreferredSchedulingTermBuilder( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm instance, - java.lang.Boolean validationEnabled) { + V1PreferredSchedulingTerm instance, Boolean validationEnabled) { this.fluent = this; this.withPreference(instance.getPreference()); @@ -71,10 +65,10 @@ public V1PreferredSchedulingTermBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent fluent; - java.lang.Boolean validationEnabled; + V1PreferredSchedulingTermFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm build() { + public V1PreferredSchedulingTerm build() { V1PreferredSchedulingTerm buildable = new V1PreferredSchedulingTerm(); buildable.setPreference(fluent.getPreference()); buildable.setWeight(fluent.getWeight()); 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 a56e321d20..cd3732979a 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 @@ -27,31 +27,29 @@ public interface V1PreferredSchedulingTermFluent withNewPreference(); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - withNewPreferenceLike(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item); + public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreferenceLike( + V1NodeSelectorTerm item); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - editPreference(); + public V1PreferredSchedulingTermFluent.PreferenceNested editPreference(); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - editOrNewPreference(); + public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreference(); - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - editOrNewPreferenceLike(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item); + public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreferenceLike( + V1NodeSelectorTerm item); public Integer getWeight(); - public A withWeight(java.lang.Integer weight); + public A withWeight(Integer weight); - public java.lang.Boolean hasWeight(); + public Boolean hasWeight(); public interface PreferenceNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java index 041fc297ef..27c270c367 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluentImpl.java @@ -21,8 +21,7 @@ public class V1PreferredSchedulingTermFluentImpl implements V1PreferredSchedulingTermFluent { public V1PreferredSchedulingTermFluentImpl() {} - public V1PreferredSchedulingTermFluentImpl( - io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm instance) { + public V1PreferredSchedulingTermFluentImpl(V1PreferredSchedulingTerm instance) { this.withPreference(instance.getPreference()); this.withWeight(instance.getWeight()); @@ -41,16 +40,18 @@ public V1NodeSelectorTerm getPreference() { return this.preference != null ? this.preference.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeSelectorTerm buildPreference() { + public V1NodeSelectorTerm buildPreference() { return this.preference != null ? this.preference.build() : null; } - public A withPreference(io.kubernetes.client.openapi.models.V1NodeSelectorTerm preference) { + public A withPreference(V1NodeSelectorTerm preference) { _visitables.get("preference").remove(this.preference); if (preference != null) { - this.preference = - new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(preference); + this.preference = new V1NodeSelectorTermBuilder(preference); _visitables.get("preference").add(this.preference); + } else { + this.preference = null; + _visitables.get("preference").remove(this.preference); } return (A) this; } @@ -63,39 +64,35 @@ public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreference() { return new V1PreferredSchedulingTermFluentImpl.PreferenceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - withNewPreferenceLike(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { + public V1PreferredSchedulingTermFluent.PreferenceNested withNewPreferenceLike( + V1NodeSelectorTerm item) { return new V1PreferredSchedulingTermFluentImpl.PreferenceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - editPreference() { + public V1PreferredSchedulingTermFluent.PreferenceNested editPreference() { return withNewPreferenceLike(getPreference()); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - editOrNewPreference() { + public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreference() { return withNewPreferenceLike( - getPreference() != null - ? getPreference() - : new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder().build()); + getPreference() != null ? getPreference() : new V1NodeSelectorTermBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent.PreferenceNested - editOrNewPreferenceLike(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { + public V1PreferredSchedulingTermFluent.PreferenceNested editOrNewPreferenceLike( + V1NodeSelectorTerm item) { return withNewPreferenceLike(getPreference() != null ? getPreference() : item); } - public java.lang.Integer getWeight() { + public Integer getWeight() { return this.weight; } - public A withWeight(java.lang.Integer weight) { + public A withWeight(Integer weight) { this.weight = weight; return (A) this; } - public java.lang.Boolean hasWeight() { + public Boolean hasWeight() { return this.weight != null; } @@ -130,19 +127,16 @@ public String toString() { class PreferenceNestedImpl extends V1NodeSelectorTermFluentImpl> - implements io.kubernetes.client.openapi.models.V1PreferredSchedulingTermFluent - .PreferenceNested< - N>, - Nested { - PreferenceNestedImpl(io.kubernetes.client.openapi.models.V1NodeSelectorTerm item) { + implements V1PreferredSchedulingTermFluent.PreferenceNested, Nested { + PreferenceNestedImpl(V1NodeSelectorTerm item) { this.builder = new V1NodeSelectorTermBuilder(this, item); } PreferenceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder(this); + this.builder = new V1NodeSelectorTermBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSelectorTermBuilder builder; + V1NodeSelectorTermBuilder builder; public N and() { return (N) V1PreferredSchedulingTermFluentImpl.this.withPreference(builder.build()); 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 821b7a923a..5f5bdccbf5 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1PriorityClassBuilder extends V1PriorityClassFluentImpl - implements VisitableBuilder< - V1PriorityClass, io.kubernetes.client.openapi.models.V1PriorityClassBuilder> { + implements VisitableBuilder { public V1PriorityClassBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1PriorityClassBuilder(V1PriorityClassFluent fluent) { this(fluent, false); } - public V1PriorityClassBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassFluent fluent, - java.lang.Boolean validationEnabled) { + public V1PriorityClassBuilder(V1PriorityClassFluent fluent, Boolean validationEnabled) { this(fluent, new V1PriorityClass(), validationEnabled); } - public V1PriorityClassBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassFluent fluent, - io.kubernetes.client.openapi.models.V1PriorityClass instance) { + public V1PriorityClassBuilder(V1PriorityClassFluent fluent, V1PriorityClass instance) { this(fluent, instance, false); } public V1PriorityClassBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassFluent fluent, - io.kubernetes.client.openapi.models.V1PriorityClass instance, - java.lang.Boolean validationEnabled) { + V1PriorityClassFluent fluent, V1PriorityClass instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -63,13 +56,11 @@ public V1PriorityClassBuilder( this.validationEnabled = validationEnabled; } - public V1PriorityClassBuilder(io.kubernetes.client.openapi.models.V1PriorityClass instance) { + public V1PriorityClassBuilder(V1PriorityClass instance) { this(instance, false); } - public V1PriorityClassBuilder( - io.kubernetes.client.openapi.models.V1PriorityClass instance, - java.lang.Boolean validationEnabled) { + public V1PriorityClassBuilder(V1PriorityClass instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -88,10 +79,10 @@ public V1PriorityClassBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PriorityClassFluent fluent; - java.lang.Boolean validationEnabled; + V1PriorityClassFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PriorityClass build() { + public V1PriorityClass build() { V1PriorityClass buildable = new V1PriorityClass(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setDescription(fluent.getDescription()); 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 397033c257..71ec33af7d 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 @@ -19,27 +19,27 @@ public interface V1PriorityClassFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getDescription(); + public String getDescription(); - public A withDescription(java.lang.String description); + public A withDescription(String description); - public java.lang.Boolean hasDescription(); + public Boolean hasDescription(); - public java.lang.Boolean getGlobalDefault(); + public Boolean getGlobalDefault(); - public A withGlobalDefault(java.lang.Boolean globalDefault); + public A withGlobalDefault(Boolean globalDefault); - public java.lang.Boolean hasGlobalDefault(); + public Boolean hasGlobalDefault(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -49,36 +49,33 @@ public interface V1PriorityClassFluent> exten @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PriorityClassFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PriorityClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested editMetadata(); + public V1PriorityClassFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - editOrNewMetadata(); + public V1PriorityClassFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1PriorityClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public java.lang.String getPreemptionPolicy(); + public String getPreemptionPolicy(); - public A withPreemptionPolicy(java.lang.String preemptionPolicy); + public A withPreemptionPolicy(String preemptionPolicy); - public java.lang.Boolean hasPreemptionPolicy(); + public Boolean hasPreemptionPolicy(); public Integer getValue(); - public A withValue(java.lang.Integer value); + public A withValue(Integer value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); public A withGlobalDefault(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java index b368deb646..d12078105f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluentImpl.java @@ -21,7 +21,7 @@ public class V1PriorityClassFluentImpl> exten implements V1PriorityClassFluent { public V1PriorityClassFluentImpl() {} - public V1PriorityClassFluentImpl(io.kubernetes.client.openapi.models.V1PriorityClass instance) { + public V1PriorityClassFluentImpl(V1PriorityClass instance) { this.withApiVersion(instance.getApiVersion()); this.withDescription(instance.getDescription()); @@ -38,62 +38,62 @@ public V1PriorityClassFluentImpl(io.kubernetes.client.openapi.models.V1PriorityC } private String apiVersion; - private java.lang.String description; + private String description; private Boolean globalDefault; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - private java.lang.String preemptionPolicy; + private String preemptionPolicy; private Integer value; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getDescription() { + public String getDescription() { return this.description; } - public A withDescription(java.lang.String description) { + public A withDescription(String description) { this.description = description; return (A) this; } - public java.lang.Boolean hasDescription() { + public Boolean hasDescription() { return this.description != null; } - public java.lang.Boolean getGlobalDefault() { + public Boolean getGlobalDefault() { return this.globalDefault; } - public A withGlobalDefault(java.lang.Boolean globalDefault) { + public A withGlobalDefault(Boolean globalDefault) { this.globalDefault = globalDefault; return (A) this; } - public java.lang.Boolean hasGlobalDefault() { + public Boolean hasGlobalDefault() { return this.globalDefault != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -103,24 +103,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -128,52 +131,46 @@ public V1PriorityClassFluent.MetadataNested withNewMetadata() { return new V1PriorityClassFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PriorityClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1PriorityClassFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - editMetadata() { + public V1PriorityClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - editOrNewMetadata() { + public V1PriorityClassFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1PriorityClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public java.lang.String getPreemptionPolicy() { + public String getPreemptionPolicy() { return this.preemptionPolicy; } - public A withPreemptionPolicy(java.lang.String preemptionPolicy) { + public A withPreemptionPolicy(String preemptionPolicy) { this.preemptionPolicy = preemptionPolicy; return (A) this; } - public java.lang.Boolean hasPreemptionPolicy() { + public Boolean hasPreemptionPolicy() { return this.preemptionPolicy != null; } - public java.lang.Integer getValue() { + public Integer getValue() { return this.value; } - public A withValue(java.lang.Integer value) { + public A withValue(Integer value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -209,7 +206,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -250,17 +247,16 @@ public A withGlobalDefault() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PriorityClassFluent.MetadataNested, - Nested { + implements V1PriorityClassFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1PriorityClassFluentImpl.this.withMetadata(builder.build()); 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 3aaf5212dc..2ccbc7d5a7 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 @@ -16,9 +16,7 @@ public class V1PriorityClassListBuilder extends V1PriorityClassListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1PriorityClassList, - io.kubernetes.client.openapi.models.V1PriorityClassListBuilder> { + implements VisitableBuilder { public V1PriorityClassListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent) { } public V1PriorityClassListBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassListFluent fluent, - java.lang.Boolean validationEnabled) { + V1PriorityClassListFluent fluent, Boolean validationEnabled) { this(fluent, new V1PriorityClassList(), validationEnabled); } public V1PriorityClassListBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassListFluent fluent, - io.kubernetes.client.openapi.models.V1PriorityClassList instance) { + V1PriorityClassListFluent fluent, V1PriorityClassList instance) { this(fluent, instance, false); } public V1PriorityClassListBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassListFluent fluent, - io.kubernetes.client.openapi.models.V1PriorityClassList instance, - java.lang.Boolean validationEnabled) { + V1PriorityClassListFluent fluent, + V1PriorityClassList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1PriorityClassListBuilder( this.validationEnabled = validationEnabled; } - public V1PriorityClassListBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassList instance) { + public V1PriorityClassListBuilder(V1PriorityClassList instance) { this(instance, false); } - public V1PriorityClassListBuilder( - io.kubernetes.client.openapi.models.V1PriorityClassList instance, - java.lang.Boolean validationEnabled) { + public V1PriorityClassListBuilder(V1PriorityClassList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1PriorityClassListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1PriorityClassListFluent fluent; - java.lang.Boolean validationEnabled; + V1PriorityClassListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1PriorityClassList build() { + public V1PriorityClassList build() { V1PriorityClassList buildable = new V1PriorityClassList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 ba32df24a9..8598c18d62 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 @@ -23,23 +23,21 @@ public interface V1PriorityClassListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1PriorityClass item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PriorityClass item); + public A setToItems(Integer index, V1PriorityClass item); public A addToItems(io.kubernetes.client.openapi.models.V1PriorityClass... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityClass... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1PriorityClass buildItem(java.lang.Integer index); + public V1PriorityClass buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1PriorityClass buildFirstItem(); + public V1PriorityClass buildFirstItem(); - public io.kubernetes.client.openapi.models.V1PriorityClass buildLastItem(); + public V1PriorityClass buildLastItem(); - public io.kubernetes.client.openapi.models.V1PriorityClass buildMatchingItem( - java.util.function.Predicate - predicate); + public V1PriorityClass buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1PriorityClassListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1PriorityClass item); + public V1PriorityClassListFluent.ItemsNested addNewItemLike(V1PriorityClass item); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PriorityClass item); + public V1PriorityClassListFluent.ItemsNested setNewItemLike( + Integer index, V1PriorityClass item); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1PriorityClassListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - editFirstItem(); + public V1PriorityClassListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - editLastItem(); + public V1PriorityClassListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1PriorityClassListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1PriorityClassListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PriorityClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - editMetadata(); + public V1PriorityClassListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - editOrNewMetadata(); + public V1PriorityClassListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1PriorityClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1PriorityClassFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java index b45324e305..9368917485 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluentImpl.java @@ -38,14 +38,14 @@ public V1PriorityClassListFluentImpl(V1PriorityClassList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1PriorityClass item) { + public A addToItems(Integer index, V1PriorityClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder = - new io.kubernetes.client.openapi.models.V1PriorityClassBuilder(item); + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PriorityClass item) { + public A setToItems(Integer index, V1PriorityClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder = - new io.kubernetes.client.openapi.models.V1PriorityClassBuilder(item); + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PriorityClass item : items) { - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder = - new io.kubernetes.client.openapi.models.V1PriorityClassBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PriorityClass item : items) { - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder = - new io.kubernetes.client.openapi.models.V1PriorityClassBuilder(item); + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1PriorityClass item : items) { - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder = - new io.kubernetes.client.openapi.models.V1PriorityClassBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder = each.next(); + V1PriorityClassBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1PriorityClass buildItem(java.lang.Integer index) { + public V1PriorityClass buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PriorityClass buildFirstItem() { + public V1PriorityClass buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PriorityClass buildLastItem() { + public V1PriorityClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PriorityClass buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PriorityClassBuilder item : items) { + public V1PriorityClass buildMatchingItem(Predicate predicate) { + for (V1PriorityClassBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1PriorityClass buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PriorityClassBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1PriorityClassBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PriorityClass item : items) { + this.items = new ArrayList(); + for (V1PriorityClass item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1PriorityClass item : items) { + for (V1PriorityClass item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,41 +221,33 @@ public V1PriorityClassListFluent.ItemsNested addNewItem() { return new V1PriorityClassListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1PriorityClass item) { + public V1PriorityClassListFluent.ItemsNested addNewItemLike(V1PriorityClass item) { return new V1PriorityClassListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PriorityClass item) { - return new io.kubernetes.client.openapi.models.V1PriorityClassListFluentImpl.ItemsNestedImpl( - index, item); + public V1PriorityClassListFluent.ItemsNested setNewItemLike( + Integer index, V1PriorityClass item) { + return new V1PriorityClassListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1PriorityClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - editFirstItem() { + public V1PriorityClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - editLastItem() { + public V1PriorityClassListFluent.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 io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1PriorityClassListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -303,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -329,27 +306,20 @@ public V1PriorityClassListFluent.MetadataNested withNewMetadata() { return new V1PriorityClassListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1PriorityClassListFluentImpl.MetadataNestedImpl( - item); + public V1PriorityClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1PriorityClassListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - editMetadata() { + public V1PriorityClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - editOrNewMetadata() { + public V1PriorityClassListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1PriorityClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -369,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -395,19 +365,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1PriorityClassFluentImpl> implements V1PriorityClassListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PriorityClass item) { + ItemsNestedImpl(Integer index, V1PriorityClass item) { this.index = index; this.builder = new V1PriorityClassBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PriorityClassBuilder(this); + this.builder = new V1PriorityClassBuilder(this); } - io.kubernetes.client.openapi.models.V1PriorityClassBuilder builder; - java.lang.Integer index; + V1PriorityClassBuilder builder; + Integer index; public N and() { return (N) V1PriorityClassListFluentImpl.this.setToItems(index, builder.build()); @@ -420,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1PriorityClassListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1PriorityClassListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1PriorityClassListFluentImpl.this.withMetadata(builder.build()); 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 4359b13500..568a91dd26 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ProbeBuilder extends V1ProbeFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1ProbeBuilder() { this(false); } @@ -24,26 +24,19 @@ public V1ProbeBuilder(Boolean validationEnabled) { this(new V1Probe(), validationEnabled); } - public V1ProbeBuilder(io.kubernetes.client.openapi.models.V1ProbeFluent fluent) { + public V1ProbeBuilder(V1ProbeFluent fluent) { this(fluent, false); } - public V1ProbeBuilder( - io.kubernetes.client.openapi.models.V1ProbeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ProbeBuilder(V1ProbeFluent fluent, Boolean validationEnabled) { this(fluent, new V1Probe(), validationEnabled); } - public V1ProbeBuilder( - io.kubernetes.client.openapi.models.V1ProbeFluent fluent, - io.kubernetes.client.openapi.models.V1Probe instance) { + public V1ProbeBuilder(V1ProbeFluent fluent, V1Probe instance) { this(fluent, instance, false); } - public V1ProbeBuilder( - io.kubernetes.client.openapi.models.V1ProbeFluent fluent, - io.kubernetes.client.openapi.models.V1Probe instance, - java.lang.Boolean validationEnabled) { + public V1ProbeBuilder(V1ProbeFluent fluent, V1Probe instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withExec(instance.getExec()); @@ -68,12 +61,11 @@ public V1ProbeBuilder( this.validationEnabled = validationEnabled; } - public V1ProbeBuilder(io.kubernetes.client.openapi.models.V1Probe instance) { + public V1ProbeBuilder(V1Probe instance) { this(instance, false); } - public V1ProbeBuilder( - io.kubernetes.client.openapi.models.V1Probe instance, java.lang.Boolean validationEnabled) { + public V1ProbeBuilder(V1Probe instance, Boolean validationEnabled) { this.fluent = this; this.withExec(instance.getExec()); @@ -98,10 +90,10 @@ public V1ProbeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ProbeFluent fluent; - java.lang.Boolean validationEnabled; + V1ProbeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Probe build() { + public V1Probe build() { V1Probe buildable = new V1Probe(); buildable.setExec(fluent.getExec()); buildable.setFailureThreshold(fluent.getFailureThreshold()); 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 22b56ea905..1339428ada 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 @@ -26,137 +26,129 @@ public interface V1ProbeFluent> extends Fluent { @Deprecated public V1ExecAction getExec(); - public io.kubernetes.client.openapi.models.V1ExecAction buildExec(); + public V1ExecAction buildExec(); - public A withExec(io.kubernetes.client.openapi.models.V1ExecAction exec); + public A withExec(V1ExecAction exec); public Boolean hasExec(); public V1ProbeFluent.ExecNested withNewExec(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested withNewExecLike( - io.kubernetes.client.openapi.models.V1ExecAction item); + public V1ProbeFluent.ExecNested withNewExecLike(V1ExecAction item); - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested editExec(); + public V1ProbeFluent.ExecNested editExec(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested editOrNewExec(); + public V1ProbeFluent.ExecNested editOrNewExec(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested editOrNewExecLike( - io.kubernetes.client.openapi.models.V1ExecAction item); + public V1ProbeFluent.ExecNested editOrNewExecLike(V1ExecAction item); public Integer getFailureThreshold(); - public A withFailureThreshold(java.lang.Integer failureThreshold); + public A withFailureThreshold(Integer failureThreshold); - public java.lang.Boolean hasFailureThreshold(); + public Boolean hasFailureThreshold(); /** * This method has been deprecated, please use method buildGrpc instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GRPCAction getGrpc(); - public io.kubernetes.client.openapi.models.V1GRPCAction buildGrpc(); + public V1GRPCAction buildGrpc(); - public A withGrpc(io.kubernetes.client.openapi.models.V1GRPCAction grpc); + public A withGrpc(V1GRPCAction grpc); - public java.lang.Boolean hasGrpc(); + public Boolean hasGrpc(); public V1ProbeFluent.GrpcNested withNewGrpc(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested withNewGrpcLike( - io.kubernetes.client.openapi.models.V1GRPCAction item); + public V1ProbeFluent.GrpcNested withNewGrpcLike(V1GRPCAction item); - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editGrpc(); + public V1ProbeFluent.GrpcNested editGrpc(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editOrNewGrpc(); + public V1ProbeFluent.GrpcNested editOrNewGrpc(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editOrNewGrpcLike( - io.kubernetes.client.openapi.models.V1GRPCAction item); + public V1ProbeFluent.GrpcNested editOrNewGrpcLike(V1GRPCAction item); /** * This method has been deprecated, please use method buildHttpGet instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HTTPGetAction getHttpGet(); - public io.kubernetes.client.openapi.models.V1HTTPGetAction buildHttpGet(); + public V1HTTPGetAction buildHttpGet(); - public A withHttpGet(io.kubernetes.client.openapi.models.V1HTTPGetAction httpGet); + public A withHttpGet(V1HTTPGetAction httpGet); - public java.lang.Boolean hasHttpGet(); + public Boolean hasHttpGet(); public V1ProbeFluent.HttpGetNested withNewHttpGet(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested withNewHttpGetLike( - io.kubernetes.client.openapi.models.V1HTTPGetAction item); + public V1ProbeFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item); - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested editHttpGet(); + public V1ProbeFluent.HttpGetNested editHttpGet(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested editOrNewHttpGet(); + public V1ProbeFluent.HttpGetNested editOrNewHttpGet(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested editOrNewHttpGetLike( - io.kubernetes.client.openapi.models.V1HTTPGetAction item); + public V1ProbeFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item); - public java.lang.Integer getInitialDelaySeconds(); + public Integer getInitialDelaySeconds(); - public A withInitialDelaySeconds(java.lang.Integer initialDelaySeconds); + public A withInitialDelaySeconds(Integer initialDelaySeconds); - public java.lang.Boolean hasInitialDelaySeconds(); + public Boolean hasInitialDelaySeconds(); - public java.lang.Integer getPeriodSeconds(); + public Integer getPeriodSeconds(); - public A withPeriodSeconds(java.lang.Integer periodSeconds); + public A withPeriodSeconds(Integer periodSeconds); - public java.lang.Boolean hasPeriodSeconds(); + public Boolean hasPeriodSeconds(); - public java.lang.Integer getSuccessThreshold(); + public Integer getSuccessThreshold(); - public A withSuccessThreshold(java.lang.Integer successThreshold); + public A withSuccessThreshold(Integer successThreshold); - public java.lang.Boolean hasSuccessThreshold(); + public Boolean hasSuccessThreshold(); /** * This method has been deprecated, please use method buildTcpSocket instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TCPSocketAction getTcpSocket(); - public io.kubernetes.client.openapi.models.V1TCPSocketAction buildTcpSocket(); + public V1TCPSocketAction buildTcpSocket(); - public A withTcpSocket(io.kubernetes.client.openapi.models.V1TCPSocketAction tcpSocket); + public A withTcpSocket(V1TCPSocketAction tcpSocket); - public java.lang.Boolean hasTcpSocket(); + public Boolean hasTcpSocket(); public V1ProbeFluent.TcpSocketNested withNewTcpSocket(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested withNewTcpSocketLike( - io.kubernetes.client.openapi.models.V1TCPSocketAction item); + public V1ProbeFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item); - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested editTcpSocket(); + public V1ProbeFluent.TcpSocketNested editTcpSocket(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested editOrNewTcpSocket(); + public V1ProbeFluent.TcpSocketNested editOrNewTcpSocket(); - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested - editOrNewTcpSocketLike(io.kubernetes.client.openapi.models.V1TCPSocketAction item); + public V1ProbeFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item); public Long getTerminationGracePeriodSeconds(); - public A withTerminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds); + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds); - public java.lang.Boolean hasTerminationGracePeriodSeconds(); + public Boolean hasTerminationGracePeriodSeconds(); - public java.lang.Integer getTimeoutSeconds(); + public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds); + public A withTimeoutSeconds(Integer timeoutSeconds); - public java.lang.Boolean hasTimeoutSeconds(); + public Boolean hasTimeoutSeconds(); public interface ExecNested extends Nested, V1ExecActionFluent> { @@ -166,24 +158,21 @@ public interface ExecNested } public interface GrpcNested - extends io.kubernetes.client.fluent.Nested, - V1GRPCActionFluent> { + extends Nested, V1GRPCActionFluent> { public N and(); public N endGrpc(); } public interface HttpGetNested - extends io.kubernetes.client.fluent.Nested, - V1HTTPGetActionFluent> { + extends Nested, V1HTTPGetActionFluent> { public N and(); public N endHttpGet(); } public interface TcpSocketNested - extends io.kubernetes.client.fluent.Nested, - V1TCPSocketActionFluent> { + extends Nested, V1TCPSocketActionFluent> { public N and(); public N endTcpSocket(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java index 8ff8e483d5..fd80d104b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluentImpl.java @@ -21,7 +21,7 @@ public class V1ProbeFluentImpl> extends BaseFluent implements V1ProbeFluent { public V1ProbeFluentImpl() {} - public V1ProbeFluentImpl(io.kubernetes.client.openapi.models.V1Probe instance) { + public V1ProbeFluentImpl(V1Probe instance) { this.withExec(instance.getExec()); this.withFailureThreshold(instance.getFailureThreshold()); @@ -47,12 +47,12 @@ public V1ProbeFluentImpl(io.kubernetes.client.openapi.models.V1Probe instance) { private Integer failureThreshold; private V1GRPCActionBuilder grpc; private V1HTTPGetActionBuilder httpGet; - private java.lang.Integer initialDelaySeconds; - private java.lang.Integer periodSeconds; - private java.lang.Integer successThreshold; + private Integer initialDelaySeconds; + private Integer periodSeconds; + private Integer successThreshold; private V1TCPSocketActionBuilder tcpSocket; private Long terminationGracePeriodSeconds; - private java.lang.Integer timeoutSeconds; + private Integer timeoutSeconds; /** * This method has been deprecated, please use method buildExec instead. @@ -64,15 +64,18 @@ public V1ExecAction getExec() { return this.exec != null ? this.exec.build() : null; } - public io.kubernetes.client.openapi.models.V1ExecAction buildExec() { + public V1ExecAction buildExec() { return this.exec != null ? this.exec.build() : null; } - public A withExec(io.kubernetes.client.openapi.models.V1ExecAction exec) { + public A withExec(V1ExecAction exec) { _visitables.get("exec").remove(this.exec); if (exec != null) { - this.exec = new io.kubernetes.client.openapi.models.V1ExecActionBuilder(exec); + this.exec = new V1ExecActionBuilder(exec); _visitables.get("exec").add(this.exec); + } else { + this.exec = null; + _visitables.get("exec").remove(this.exec); } return (A) this; } @@ -85,37 +88,32 @@ public V1ProbeFluent.ExecNested withNewExec() { return new V1ProbeFluentImpl.ExecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested withNewExecLike( - io.kubernetes.client.openapi.models.V1ExecAction item) { + public V1ProbeFluent.ExecNested withNewExecLike(V1ExecAction item) { return new V1ProbeFluentImpl.ExecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested editExec() { + public V1ProbeFluent.ExecNested editExec() { return withNewExecLike(getExec()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested editOrNewExec() { - return withNewExecLike( - getExec() != null - ? getExec() - : new io.kubernetes.client.openapi.models.V1ExecActionBuilder().build()); + public V1ProbeFluent.ExecNested editOrNewExec() { + return withNewExecLike(getExec() != null ? getExec() : new V1ExecActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested editOrNewExecLike( - io.kubernetes.client.openapi.models.V1ExecAction item) { + public V1ProbeFluent.ExecNested editOrNewExecLike(V1ExecAction item) { return withNewExecLike(getExec() != null ? getExec() : item); } - public java.lang.Integer getFailureThreshold() { + public Integer getFailureThreshold() { return this.failureThreshold; } - public A withFailureThreshold(java.lang.Integer failureThreshold) { + public A withFailureThreshold(Integer failureThreshold) { this.failureThreshold = failureThreshold; return (A) this; } - public java.lang.Boolean hasFailureThreshold() { + public Boolean hasFailureThreshold() { return this.failureThreshold != null; } @@ -124,25 +122,28 @@ public java.lang.Boolean hasFailureThreshold() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GRPCAction getGrpc() { return this.grpc != null ? this.grpc.build() : null; } - public io.kubernetes.client.openapi.models.V1GRPCAction buildGrpc() { + public V1GRPCAction buildGrpc() { return this.grpc != null ? this.grpc.build() : null; } - public A withGrpc(io.kubernetes.client.openapi.models.V1GRPCAction grpc) { + public A withGrpc(V1GRPCAction grpc) { _visitables.get("grpc").remove(this.grpc); if (grpc != null) { - this.grpc = new io.kubernetes.client.openapi.models.V1GRPCActionBuilder(grpc); + this.grpc = new V1GRPCActionBuilder(grpc); _visitables.get("grpc").add(this.grpc); + } else { + this.grpc = null; + _visitables.get("grpc").remove(this.grpc); } return (A) this; } - public java.lang.Boolean hasGrpc() { + public Boolean hasGrpc() { return this.grpc != null; } @@ -150,24 +151,19 @@ public V1ProbeFluent.GrpcNested withNewGrpc() { return new V1ProbeFluentImpl.GrpcNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested withNewGrpcLike( - io.kubernetes.client.openapi.models.V1GRPCAction item) { - return new io.kubernetes.client.openapi.models.V1ProbeFluentImpl.GrpcNestedImpl(item); + public V1ProbeFluent.GrpcNested withNewGrpcLike(V1GRPCAction item) { + return new V1ProbeFluentImpl.GrpcNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editGrpc() { + public V1ProbeFluent.GrpcNested editGrpc() { return withNewGrpcLike(getGrpc()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editOrNewGrpc() { - return withNewGrpcLike( - getGrpc() != null - ? getGrpc() - : new io.kubernetes.client.openapi.models.V1GRPCActionBuilder().build()); + public V1ProbeFluent.GrpcNested editOrNewGrpc() { + return withNewGrpcLike(getGrpc() != null ? getGrpc() : new V1GRPCActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editOrNewGrpcLike( - io.kubernetes.client.openapi.models.V1GRPCAction item) { + public V1ProbeFluent.GrpcNested editOrNewGrpcLike(V1GRPCAction item) { return withNewGrpcLike(getGrpc() != null ? getGrpc() : item); } @@ -176,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested editOrNew * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1HTTPGetAction getHttpGet() { + @Deprecated + public V1HTTPGetAction getHttpGet() { return this.httpGet != null ? this.httpGet.build() : null; } - public io.kubernetes.client.openapi.models.V1HTTPGetAction buildHttpGet() { + public V1HTTPGetAction buildHttpGet() { return this.httpGet != null ? this.httpGet.build() : null; } - public A withHttpGet(io.kubernetes.client.openapi.models.V1HTTPGetAction httpGet) { + public A withHttpGet(V1HTTPGetAction httpGet) { _visitables.get("httpGet").remove(this.httpGet); if (httpGet != null) { this.httpGet = new V1HTTPGetActionBuilder(httpGet); _visitables.get("httpGet").add(this.httpGet); + } else { + this.httpGet = null; + _visitables.get("httpGet").remove(this.httpGet); } return (A) this; } - public java.lang.Boolean hasHttpGet() { + public Boolean hasHttpGet() { return this.httpGet != null; } @@ -202,63 +201,59 @@ public V1ProbeFluent.HttpGetNested withNewHttpGet() { return new V1ProbeFluentImpl.HttpGetNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested withNewHttpGetLike( - io.kubernetes.client.openapi.models.V1HTTPGetAction item) { - return new io.kubernetes.client.openapi.models.V1ProbeFluentImpl.HttpGetNestedImpl(item); + public V1ProbeFluent.HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { + return new V1ProbeFluentImpl.HttpGetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested editHttpGet() { + public V1ProbeFluent.HttpGetNested editHttpGet() { return withNewHttpGetLike(getHttpGet()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested editOrNewHttpGet() { + public V1ProbeFluent.HttpGetNested editOrNewHttpGet() { return withNewHttpGetLike( - getHttpGet() != null - ? getHttpGet() - : new io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder().build()); + getHttpGet() != null ? getHttpGet() : new V1HTTPGetActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested editOrNewHttpGetLike( - io.kubernetes.client.openapi.models.V1HTTPGetAction item) { + public V1ProbeFluent.HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { return withNewHttpGetLike(getHttpGet() != null ? getHttpGet() : item); } - public java.lang.Integer getInitialDelaySeconds() { + public Integer getInitialDelaySeconds() { return this.initialDelaySeconds; } - public A withInitialDelaySeconds(java.lang.Integer initialDelaySeconds) { + public A withInitialDelaySeconds(Integer initialDelaySeconds) { this.initialDelaySeconds = initialDelaySeconds; return (A) this; } - public java.lang.Boolean hasInitialDelaySeconds() { + public Boolean hasInitialDelaySeconds() { return this.initialDelaySeconds != null; } - public java.lang.Integer getPeriodSeconds() { + public Integer getPeriodSeconds() { return this.periodSeconds; } - public A withPeriodSeconds(java.lang.Integer periodSeconds) { + public A withPeriodSeconds(Integer periodSeconds) { this.periodSeconds = periodSeconds; return (A) this; } - public java.lang.Boolean hasPeriodSeconds() { + public Boolean hasPeriodSeconds() { return this.periodSeconds != null; } - public java.lang.Integer getSuccessThreshold() { + public Integer getSuccessThreshold() { return this.successThreshold; } - public A withSuccessThreshold(java.lang.Integer successThreshold) { + public A withSuccessThreshold(Integer successThreshold) { this.successThreshold = successThreshold; return (A) this; } - public java.lang.Boolean hasSuccessThreshold() { + public Boolean hasSuccessThreshold() { return this.successThreshold != null; } @@ -267,25 +262,28 @@ public java.lang.Boolean hasSuccessThreshold() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1TCPSocketAction getTcpSocket() { + @Deprecated + public V1TCPSocketAction getTcpSocket() { return this.tcpSocket != null ? this.tcpSocket.build() : null; } - public io.kubernetes.client.openapi.models.V1TCPSocketAction buildTcpSocket() { + public V1TCPSocketAction buildTcpSocket() { return this.tcpSocket != null ? this.tcpSocket.build() : null; } - public A withTcpSocket(io.kubernetes.client.openapi.models.V1TCPSocketAction tcpSocket) { + public A withTcpSocket(V1TCPSocketAction tcpSocket) { _visitables.get("tcpSocket").remove(this.tcpSocket); if (tcpSocket != null) { this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); _visitables.get("tcpSocket").add(this.tcpSocket); + } else { + this.tcpSocket = null; + _visitables.get("tcpSocket").remove(this.tcpSocket); } return (A) this; } - public java.lang.Boolean hasTcpSocket() { + public Boolean hasTcpSocket() { return this.tcpSocket != null; } @@ -293,50 +291,46 @@ public V1ProbeFluent.TcpSocketNested withNewTcpSocket() { return new V1ProbeFluentImpl.TcpSocketNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested withNewTcpSocketLike( - io.kubernetes.client.openapi.models.V1TCPSocketAction item) { - return new io.kubernetes.client.openapi.models.V1ProbeFluentImpl.TcpSocketNestedImpl(item); + public V1ProbeFluent.TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { + return new V1ProbeFluentImpl.TcpSocketNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested editTcpSocket() { + public V1ProbeFluent.TcpSocketNested editTcpSocket() { return withNewTcpSocketLike(getTcpSocket()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested editOrNewTcpSocket() { + public V1ProbeFluent.TcpSocketNested editOrNewTcpSocket() { return withNewTcpSocketLike( - getTcpSocket() != null - ? getTcpSocket() - : new io.kubernetes.client.openapi.models.V1TCPSocketActionBuilder().build()); + getTcpSocket() != null ? getTcpSocket() : new V1TCPSocketActionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested - editOrNewTcpSocketLike(io.kubernetes.client.openapi.models.V1TCPSocketAction item) { + public V1ProbeFluent.TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { return withNewTcpSocketLike(getTcpSocket() != null ? getTcpSocket() : item); } - public java.lang.Long getTerminationGracePeriodSeconds() { + public Long getTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds; } - public A withTerminationGracePeriodSeconds(java.lang.Long terminationGracePeriodSeconds) { + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return (A) this; } - public java.lang.Boolean hasTerminationGracePeriodSeconds() { + public Boolean hasTerminationGracePeriodSeconds() { return this.terminationGracePeriodSeconds != null; } - public java.lang.Integer getTimeoutSeconds() { + public Integer getTimeoutSeconds() { return this.timeoutSeconds; } - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds) { + public A withTimeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return (A) this; } - public java.lang.Boolean hasTimeoutSeconds() { + public Boolean hasTimeoutSeconds() { return this.timeoutSeconds != null; } @@ -433,16 +427,16 @@ public String toString() { } class ExecNestedImpl extends V1ExecActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ProbeFluent.ExecNested, Nested { - ExecNestedImpl(io.kubernetes.client.openapi.models.V1ExecAction item) { + implements V1ProbeFluent.ExecNested, Nested { + ExecNestedImpl(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } ExecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ExecActionBuilder(this); + this.builder = new V1ExecActionBuilder(this); } - io.kubernetes.client.openapi.models.V1ExecActionBuilder builder; + V1ExecActionBuilder builder; public N and() { return (N) V1ProbeFluentImpl.this.withExec(builder.build()); @@ -454,17 +448,16 @@ public N endExec() { } class GrpcNestedImpl extends V1GRPCActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ProbeFluent.GrpcNested, - io.kubernetes.client.fluent.Nested { + implements V1ProbeFluent.GrpcNested, Nested { GrpcNestedImpl(V1GRPCAction item) { this.builder = new V1GRPCActionBuilder(this, item); } GrpcNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1GRPCActionBuilder(this); + this.builder = new V1GRPCActionBuilder(this); } - io.kubernetes.client.openapi.models.V1GRPCActionBuilder builder; + V1GRPCActionBuilder builder; public N and() { return (N) V1ProbeFluentImpl.this.withGrpc(builder.build()); @@ -476,17 +469,16 @@ public N endGrpc() { } class HttpGetNestedImpl extends V1HTTPGetActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ProbeFluent.HttpGetNested, - io.kubernetes.client.fluent.Nested { + implements V1ProbeFluent.HttpGetNested, Nested { HttpGetNestedImpl(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } HttpGetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder(this); + this.builder = new V1HTTPGetActionBuilder(this); } - io.kubernetes.client.openapi.models.V1HTTPGetActionBuilder builder; + V1HTTPGetActionBuilder builder; public N and() { return (N) V1ProbeFluentImpl.this.withHttpGet(builder.build()); @@ -498,17 +490,16 @@ public N endHttpGet() { } class TcpSocketNestedImpl extends V1TCPSocketActionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ProbeFluent.TcpSocketNested, - io.kubernetes.client.fluent.Nested { - TcpSocketNestedImpl(io.kubernetes.client.openapi.models.V1TCPSocketAction item) { + implements V1ProbeFluent.TcpSocketNested, Nested { + TcpSocketNestedImpl(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } TcpSocketNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1TCPSocketActionBuilder(this); + this.builder = new V1TCPSocketActionBuilder(this); } - io.kubernetes.client.openapi.models.V1TCPSocketActionBuilder builder; + V1TCPSocketActionBuilder builder; public N and() { return (N) V1ProbeFluentImpl.this.withTcpSocket(builder.build()); 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 e06cddd65e..48212006a9 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 @@ -16,9 +16,7 @@ public class V1ProjectedVolumeSourceBuilder extends V1ProjectedVolumeSourceFluentImpl - implements VisitableBuilder< - V1ProjectedVolumeSource, - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceBuilder> { + implements VisitableBuilder { public V1ProjectedVolumeSourceBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1ProjectedVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ProjectedVolumeSource(), validationEnabled); } - public V1ProjectedVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent fluent) { + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent) { this(fluent, false); } public V1ProjectedVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ProjectedVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ProjectedVolumeSource(), validationEnabled); } public V1ProjectedVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource instance) { + V1ProjectedVolumeSourceFluent fluent, V1ProjectedVolumeSource instance) { this(fluent, instance, false); } public V1ProjectedVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ProjectedVolumeSourceFluent fluent, + V1ProjectedVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); @@ -56,14 +51,12 @@ public V1ProjectedVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ProjectedVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource instance) { + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSource instance) { this(instance, false); } public V1ProjectedVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ProjectedVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); @@ -72,10 +65,10 @@ public V1ProjectedVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ProjectedVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSource build() { + public V1ProjectedVolumeSource build() { V1ProjectedVolumeSource buildable = new V1ProjectedVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); buildable.setSources(fluent.getSources()); 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 8b0af6bfc5..033ad580d5 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 @@ -23,24 +23,21 @@ public interface V1ProjectedVolumeSourceFluent { public Integer getDefaultMode(); - public A withDefaultMode(java.lang.Integer defaultMode); + public A withDefaultMode(Integer defaultMode); public Boolean hasDefaultMode(); - public A addToSources(java.lang.Integer index, V1VolumeProjection item); + public A addToSources(Integer index, V1VolumeProjection item); - public A setToSources( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeProjection item); + public A setToSources(Integer index, V1VolumeProjection item); public A addToSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items); - public A addAllToSources( - Collection items); + public A addAllToSources(Collection items); public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items); - public A removeAllFromSources( - java.util.Collection items); + public A removeAllFromSources(Collection items); public A removeMatchingFromSources(Predicate predicate); @@ -50,55 +47,41 @@ public A removeAllFromSources( * @return The buildable object. */ @Deprecated - public List getSources(); + public List getSources(); - public java.util.List buildSources(); + public List buildSources(); - public io.kubernetes.client.openapi.models.V1VolumeProjection buildSource( - java.lang.Integer index); + public V1VolumeProjection buildSource(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeProjection buildFirstSource(); + public V1VolumeProjection buildFirstSource(); - public io.kubernetes.client.openapi.models.V1VolumeProjection buildLastSource(); + public V1VolumeProjection buildLastSource(); - public io.kubernetes.client.openapi.models.V1VolumeProjection buildMatchingSource( - java.util.function.Predicate - predicate); + public V1VolumeProjection buildMatchingSource(Predicate predicate); - public java.lang.Boolean hasMatchingSource( - java.util.function.Predicate - predicate); + public Boolean hasMatchingSource(Predicate predicate); - public A withSources( - java.util.List sources); + public A withSources(List sources); public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... sources); - public java.lang.Boolean hasSources(); + public Boolean hasSources(); public V1ProjectedVolumeSourceFluent.SourcesNested addNewSource(); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - addNewSourceLike(io.kubernetes.client.openapi.models.V1VolumeProjection item); + public V1ProjectedVolumeSourceFluent.SourcesNested addNewSourceLike(V1VolumeProjection item); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - setNewSourceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeProjection item); + public V1ProjectedVolumeSourceFluent.SourcesNested setNewSourceLike( + Integer index, V1VolumeProjection item); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editSource(java.lang.Integer index); + public V1ProjectedVolumeSourceFluent.SourcesNested editSource(Integer index); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editFirstSource(); + public V1ProjectedVolumeSourceFluent.SourcesNested editFirstSource(); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editLastSource(); + public V1ProjectedVolumeSourceFluent.SourcesNested editLastSource(); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editMatchingSource( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder> - predicate); + public V1ProjectedVolumeSourceFluent.SourcesNested editMatchingSource( + Predicate predicate); public interface SourcesNested extends Nested, V1VolumeProjectionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java index 4c5d0a501b..70bb4afb4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluentImpl.java @@ -26,8 +26,7 @@ public class V1ProjectedVolumeSourceFluentImpl implements V1ProjectedVolumeSourceFluent { public V1ProjectedVolumeSourceFluentImpl() {} - public V1ProjectedVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource instance) { + public V1ProjectedVolumeSourceFluentImpl(V1ProjectedVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); this.withSources(instance.getSources()); @@ -36,11 +35,11 @@ public V1ProjectedVolumeSourceFluentImpl( private Integer defaultMode; private ArrayList sources; - public java.lang.Integer getDefaultMode() { + public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(java.lang.Integer defaultMode) { + public A withDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; return (A) this; } @@ -49,26 +48,21 @@ public Boolean hasDefaultMode() { return this.defaultMode != null; } - public A addToSources(java.lang.Integer index, V1VolumeProjection item) { + public A addToSources(Integer index, V1VolumeProjection item) { if (this.sources == null) { - this.sources = - new java.util.ArrayList(); + this.sources = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(item); + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); _visitables.get("sources").add(index >= 0 ? index : _visitables.get("sources").size(), builder); this.sources.add(index >= 0 ? index : sources.size(), builder); return (A) this; } - public A setToSources( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeProjection item) { + public A setToSources(Integer index, V1VolumeProjection item) { if (this.sources == null) { - this.sources = - new java.util.ArrayList(); + this.sources = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(item); + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); if (index < 0 || index >= _visitables.get("sources").size()) { _visitables.get("sources").add(builder); } else { @@ -84,27 +78,22 @@ public A setToSources( public A addToSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { if (this.sources == null) { - this.sources = - new java.util.ArrayList(); + this.sources = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeProjection item : items) { - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(item); + 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) { + public A addAllToSources(Collection items) { if (this.sources == null) { - this.sources = - new java.util.ArrayList(); + this.sources = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeProjection item : items) { - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(item); + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); _visitables.get("sources").add(builder); this.sources.add(builder); } @@ -112,9 +101,8 @@ public A addAllToSources( } public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - for (io.kubernetes.client.openapi.models.V1VolumeProjection item : items) { - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(item); + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); _visitables.get("sources").remove(builder); if (this.sources != null) { this.sources.remove(builder); @@ -123,11 +111,9 @@ public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjectio return (A) this; } - public A removeAllFromSources( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1VolumeProjection item : items) { - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(item); + public A removeAllFromSources(Collection items) { + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); _visitables.get("sources").remove(builder); if (this.sources != null) { this.sources.remove(builder); @@ -136,14 +122,12 @@ public A removeAllFromSources( return (A) this; } - public A removeMatchingFromSources( - Predicate predicate) { + public A removeMatchingFromSources(Predicate predicate) { if (sources == null) return (A) this; - final Iterator each = - sources.iterator(); + final Iterator each = sources.iterator(); final List visitables = _visitables.get("sources"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder = each.next(); + V1VolumeProjectionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -158,31 +142,28 @@ public A removeMatchingFromSources( * @return The buildable object. */ @Deprecated - public List getSources() { + public List getSources() { return sources != null ? build(sources) : null; } - public java.util.List buildSources() { + public List buildSources() { return sources != null ? build(sources) : null; } - public io.kubernetes.client.openapi.models.V1VolumeProjection buildSource( - java.lang.Integer index) { + public V1VolumeProjection buildSource(Integer index) { return this.sources.get(index).build(); } - public io.kubernetes.client.openapi.models.V1VolumeProjection buildFirstSource() { + public V1VolumeProjection buildFirstSource() { return this.sources.get(0).build(); } - public io.kubernetes.client.openapi.models.V1VolumeProjection buildLastSource() { + public V1VolumeProjection buildLastSource() { return this.sources.get(sources.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1VolumeProjection buildMatchingSource( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder item : sources) { + public V1VolumeProjection buildMatchingSource(Predicate predicate) { + for (V1VolumeProjectionBuilder item : sources) { if (predicate.test(item)) { return item.build(); } @@ -190,10 +171,8 @@ public io.kubernetes.client.openapi.models.V1VolumeProjection buildMatchingSourc return null; } - public java.lang.Boolean hasMatchingSource( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder item : sources) { + public Boolean hasMatchingSource(Predicate predicate) { + for (V1VolumeProjectionBuilder item : sources) { if (predicate.test(item)) { return true; } @@ -201,14 +180,13 @@ public java.lang.Boolean hasMatchingSource( return false; } - public A withSources( - java.util.List sources) { + public A withSources(List sources) { if (this.sources != null) { _visitables.get("sources").removeAll(this.sources); } if (sources != null) { - this.sources = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1VolumeProjection item : sources) { + this.sources = new ArrayList(); + for (V1VolumeProjection item : sources) { this.addToSources(item); } } else { @@ -222,14 +200,14 @@ public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... s this.sources.clear(); } if (sources != null) { - for (io.kubernetes.client.openapi.models.V1VolumeProjection item : sources) { + for (V1VolumeProjection item : sources) { this.addToSources(item); } } return (A) this; } - public java.lang.Boolean hasSources() { + public Boolean hasSources() { return sources != null && !sources.isEmpty(); } @@ -237,44 +215,35 @@ public V1ProjectedVolumeSourceFluent.SourcesNested addNewSource() { return new V1ProjectedVolumeSourceFluentImpl.SourcesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - addNewSourceLike(io.kubernetes.client.openapi.models.V1VolumeProjection item) { + public V1ProjectedVolumeSourceFluent.SourcesNested addNewSourceLike(V1VolumeProjection item) { return new V1ProjectedVolumeSourceFluentImpl.SourcesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - setNewSourceLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeProjection item) { - return new io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluentImpl - .SourcesNestedImpl(index, item); + public V1ProjectedVolumeSourceFluent.SourcesNested setNewSourceLike( + Integer index, V1VolumeProjection item) { + return new V1ProjectedVolumeSourceFluentImpl.SourcesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editSource(java.lang.Integer index) { + public V1ProjectedVolumeSourceFluent.SourcesNested editSource(Integer index) { if (sources.size() <= index) throw new RuntimeException("Can't edit sources. Index exceeds size."); return setNewSourceLike(index, buildSource(index)); } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editFirstSource() { + public V1ProjectedVolumeSourceFluent.SourcesNested editFirstSource() { if (sources.size() == 0) throw new RuntimeException("Can't edit first sources. The list is empty."); return setNewSourceLike(0, buildSource(0)); } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editLastSource() { + public V1ProjectedVolumeSourceFluent.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)); } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested - editMatchingSource( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder> - predicate) { + public V1ProjectedVolumeSourceFluent.SourcesNested editMatchingSource( + Predicate predicate) { int index = -1; for (int i = 0; i < sources.size(); i++) { if (predicate.test(sources.get(i))) { @@ -317,20 +286,19 @@ public String toString() { class SourcesNestedImpl extends V1VolumeProjectionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceFluent.SourcesNested, - Nested { - SourcesNestedImpl(java.lang.Integer index, V1VolumeProjection item) { + implements V1ProjectedVolumeSourceFluent.SourcesNested, Nested { + SourcesNestedImpl(Integer index, V1VolumeProjection item) { this.index = index; this.builder = new V1VolumeProjectionBuilder(this, item); } SourcesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder(this); + this.builder = new V1VolumeProjectionBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder builder; - java.lang.Integer index; + V1VolumeProjectionBuilder builder; + Integer index; public N and() { return (N) V1ProjectedVolumeSourceFluentImpl.this.setToSources(index, builder.build()); 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 fd84be6994..121fc3a7b8 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 @@ -16,8 +16,7 @@ public class V1QuobyteVolumeSourceBuilder extends V1QuobyteVolumeSourceFluentImpl - implements VisitableBuilder< - V1QuobyteVolumeSource, io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder> { + implements VisitableBuilder { public V1QuobyteVolumeSourceBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1QuobyteVolumeSourceBuilder(Boolean validationEnabled) { this(new V1QuobyteVolumeSource(), validationEnabled); } - public V1QuobyteVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceFluent fluent) { + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent) { this(fluent, false); } public V1QuobyteVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1QuobyteVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1QuobyteVolumeSource(), validationEnabled); } public V1QuobyteVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource instance) { + V1QuobyteVolumeSourceFluent fluent, V1QuobyteVolumeSource instance) { this(fluent, instance, false); } public V1QuobyteVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1QuobyteVolumeSourceFluent fluent, + V1QuobyteVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withGroup(instance.getGroup()); @@ -63,14 +59,11 @@ public V1QuobyteVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1QuobyteVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource instance) { + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance) { this(instance, false); } - public V1QuobyteVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withGroup(instance.getGroup()); @@ -87,10 +80,10 @@ public V1QuobyteVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1QuobyteVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource build() { + public V1QuobyteVolumeSource build() { V1QuobyteVolumeSource buildable = new V1QuobyteVolumeSource(); buildable.setGroup(fluent.getGroup()); buildable.setReadOnly(fluent.getReadOnly()); 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 6da60c589e..db0acb42b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java @@ -19,39 +19,39 @@ public interface V1QuobyteVolumeSourceFluent { public String getGroup(); - public A withGroup(java.lang.String group); + public A withGroup(String group); public Boolean hasGroup(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getRegistry(); + public String getRegistry(); - public A withRegistry(java.lang.String registry); + public A withRegistry(String registry); - public java.lang.Boolean hasRegistry(); + public Boolean hasRegistry(); - public java.lang.String getTenant(); + public String getTenant(); - public A withTenant(java.lang.String tenant); + public A withTenant(String tenant); - public java.lang.Boolean hasTenant(); + public Boolean hasTenant(); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); - public java.lang.String getVolume(); + public String getVolume(); - public A withVolume(java.lang.String volume); + public A withVolume(String volume); - public java.lang.Boolean hasVolume(); + public Boolean hasVolume(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java index 9bd9e2b601..bf9d5bf8f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1QuobyteVolumeSourceFluentImpl implements V1QuobyteVolumeSourceFluent { public V1QuobyteVolumeSourceFluentImpl() {} - public V1QuobyteVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource instance) { + public V1QuobyteVolumeSourceFluentImpl(V1QuobyteVolumeSource instance) { this.withGroup(instance.getGroup()); this.withReadOnly(instance.getReadOnly()); @@ -37,86 +36,86 @@ public V1QuobyteVolumeSourceFluentImpl( private String group; private Boolean readOnly; - private java.lang.String registry; - private java.lang.String tenant; - private java.lang.String user; - private java.lang.String volume; + private String registry; + private String tenant; + private String user; + private String volume; - public java.lang.String getGroup() { + public String getGroup() { return this.group; } - public A withGroup(java.lang.String group) { + public A withGroup(String group) { this.group = group; return (A) this; } - public java.lang.Boolean hasGroup() { + public Boolean hasGroup() { return this.group != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getRegistry() { + public String getRegistry() { return this.registry; } - public A withRegistry(java.lang.String registry) { + public A withRegistry(String registry) { this.registry = registry; return (A) this; } - public java.lang.Boolean hasRegistry() { + public Boolean hasRegistry() { return this.registry != null; } - public java.lang.String getTenant() { + public String getTenant() { return this.tenant; } - public A withTenant(java.lang.String tenant) { + public A withTenant(String tenant) { this.tenant = tenant; return (A) this; } - public java.lang.Boolean hasTenant() { + public Boolean hasTenant() { return this.tenant != null; } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } - public java.lang.String getVolume() { + public String getVolume() { return this.volume; } - public A withVolume(java.lang.String volume) { + public A withVolume(String volume) { this.volume = volume; return (A) this; } - public java.lang.Boolean hasVolume() { + public Boolean hasVolume() { return this.volume != null; } @@ -138,7 +137,7 @@ public int hashCode() { group, readOnly, registry, tenant, user, volume, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (group != null) { 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 10c7895ab4..2f800eaba3 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 @@ -16,9 +16,7 @@ public class V1RBDPersistentVolumeSourceBuilder extends V1RBDPersistentVolumeSourceFluentImpl - implements VisitableBuilder< - V1RBDPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceBuilder> { + implements VisitableBuilder { public V1RBDPersistentVolumeSourceBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1RBDPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1RBDPersistentVolumeSource(), validationEnabled); } - public V1RBDPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent fluent) { + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent) { this(fluent, false); } public V1RBDPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1RBDPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1RBDPersistentVolumeSource(), validationEnabled); } public V1RBDPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource instance) { + V1RBDPersistentVolumeSourceFluent fluent, V1RBDPersistentVolumeSource instance) { this(fluent, instance, false); } public V1RBDPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1RBDPersistentVolumeSourceFluent fluent, + V1RBDPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -68,14 +63,12 @@ public V1RBDPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1RBDPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource instance) { + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSource instance) { this(instance, false); } public V1RBDPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1RBDPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -96,10 +89,10 @@ public V1RBDPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1RBDPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource build() { + public V1RBDPersistentVolumeSource build() { V1RBDPersistentVolumeSource buildable = new V1RBDPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setImage(fluent.getImage()); 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 7e4da3453e..d0d030c4b0 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 @@ -23,64 +23,63 @@ public interface V1RBDPersistentVolumeSourceFluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getImage(); + public String getImage(); - public A withImage(java.lang.String image); + public A withImage(String image); - public java.lang.Boolean hasImage(); + public Boolean hasImage(); - public java.lang.String getKeyring(); + public String getKeyring(); - public A withKeyring(java.lang.String keyring); + public A withKeyring(String keyring); - public java.lang.Boolean hasKeyring(); + public Boolean hasKeyring(); - public A addToMonitors(Integer index, java.lang.String item); + public A addToMonitors(Integer index, String item); - public A setToMonitors(java.lang.Integer index, java.lang.String item); + public A setToMonitors(Integer index, String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); + public A addAllToMonitors(Collection items); public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(java.util.Collection items); + public A removeAllFromMonitors(Collection items); - public List getMonitors(); + public List getMonitors(); - public java.lang.String getMonitor(java.lang.Integer index); + public String getMonitor(Integer index); - public java.lang.String getFirstMonitor(); + public String getFirstMonitor(); - public java.lang.String getLastMonitor(); + public String getLastMonitor(); - public java.lang.String getMatchingMonitor(Predicate predicate); + public String getMatchingMonitor(Predicate predicate); - public java.lang.Boolean hasMatchingMonitor( - java.util.function.Predicate predicate); + public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(java.util.List monitors); + public A withMonitors(List monitors); public A withMonitors(java.lang.String... monitors); - public java.lang.Boolean hasMonitors(); + public Boolean hasMonitors(); - public java.lang.String getPool(); + public String getPool(); - public A withPool(java.lang.String pool); + public A withPool(String pool); - public java.lang.Boolean hasPool(); + public Boolean hasPool(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -90,31 +89,29 @@ public java.lang.Boolean hasMatchingMonitor( @Deprecated public V1SecretReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef(); + public V1SecretReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef); + public A withSecretRef(V1SecretReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item); - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java index ef94d0ea1e..982db29b32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluentImpl.java @@ -25,8 +25,7 @@ public class V1RBDPersistentVolumeSourceFluentImpl implements V1RBDPersistentVolumeSourceFluent { public V1RBDPersistentVolumeSourceFluentImpl() {} - public V1RBDPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSource instance) { + public V1RBDPersistentVolumeSourceFluentImpl(V1RBDPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); this.withImage(instance.getImage()); @@ -45,64 +44,64 @@ public V1RBDPersistentVolumeSourceFluentImpl( } private String fsType; - private java.lang.String image; - private java.lang.String keyring; - private List monitors; - private java.lang.String pool; + private String image; + private String keyring; + private List monitors; + private String pool; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - private java.lang.String user; + private String user; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getImage() { + public String getImage() { return this.image; } - public A withImage(java.lang.String image) { + public A withImage(String image) { this.image = image; return (A) this; } - public java.lang.Boolean hasImage() { + public Boolean hasImage() { return this.image != null; } - public java.lang.String getKeyring() { + public String getKeyring() { return this.keyring; } - public A withKeyring(java.lang.String keyring) { + public A withKeyring(String keyring) { this.keyring = keyring; return (A) this; } - public java.lang.Boolean hasKeyring() { + public Boolean hasKeyring() { return this.keyring != null; } - public A addToMonitors(Integer index, java.lang.String item) { + public A addToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList(); } this.monitors.add(index, item); return (A) this; } - public A setToMonitors(java.lang.Integer index, java.lang.String item) { + public A setToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } this.monitors.set(index, item); return (A) this; @@ -110,26 +109,26 @@ public A setToMonitors(java.lang.Integer index, java.lang.String item) { public A addToMonitors(java.lang.String... items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } - public A addAllToMonitors(Collection items) { + public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } public A removeFromMonitors(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -137,8 +136,8 @@ public A removeFromMonitors(java.lang.String... items) { return (A) this; } - public A removeAllFromMonitors(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromMonitors(Collection items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -146,24 +145,24 @@ public A removeAllFromMonitors(java.util.Collection items) { return (A) this; } - public java.util.List getMonitors() { + public List getMonitors() { return this.monitors; } - public java.lang.String getMonitor(java.lang.Integer index) { + public String getMonitor(Integer index) { return this.monitors.get(index); } - public java.lang.String getFirstMonitor() { + public String getFirstMonitor() { return this.monitors.get(0); } - public java.lang.String getLastMonitor() { + public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public java.lang.String getMatchingMonitor(Predicate predicate) { - for (java.lang.String item : monitors) { + public String getMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return item; } @@ -171,9 +170,8 @@ public java.lang.String getMatchingMonitor(Predicate predicate return null; } - public java.lang.Boolean hasMatchingMonitor( - java.util.function.Predicate predicate) { - for (java.lang.String item : monitors) { + public Boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return true; } @@ -181,10 +179,10 @@ public java.lang.Boolean hasMatchingMonitor( return false; } - public A withMonitors(java.util.List monitors) { + public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new java.util.ArrayList(); - for (java.lang.String item : monitors) { + this.monitors = new ArrayList(); + for (String item : monitors) { this.addToMonitors(item); } } else { @@ -198,40 +196,40 @@ public A withMonitors(java.lang.String... monitors) { this.monitors.clear(); } if (monitors != null) { - for (java.lang.String item : monitors) { + for (String item : monitors) { this.addToMonitors(item); } } return (A) this; } - public java.lang.Boolean hasMonitors() { + public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public java.lang.String getPool() { + public String getPool() { return this.pool; } - public A withPool(java.lang.String pool) { + public A withPool(String pool) { this.pool = pool; return (A) this; } - public java.lang.Boolean hasPool() { + public Boolean hasPool() { return this.pool != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -245,20 +243,23 @@ public V1SecretReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef() { + public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef) { + public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(secretRef); + this.secretRef = new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -266,39 +267,35 @@ public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1RBDPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1RBDPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item) { return new V1RBDPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1RBDPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -323,7 +320,7 @@ public int hashCode() { fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -368,19 +365,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1RBDPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { + implements V1RBDPersistentVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1RBDPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 11a4dbd3e9..a6bbf20ab2 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluentImpl - implements VisitableBuilder< - V1RBDVolumeSource, io.kubernetes.client.openapi.models.V1RBDVolumeSourceBuilder> { + implements VisitableBuilder { public V1RBDVolumeSourceBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1RBDVolumeSourceBuilder(Boolean validationEnabled) { this(new V1RBDVolumeSource(), validationEnabled); } - public V1RBDVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent fluent) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent) { this(fluent, false); } - public V1RBDVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1RBDVolumeSource(), validationEnabled); } - public V1RBDVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1RBDVolumeSource instance) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent, V1RBDVolumeSource instance) { this(fluent, instance, false); } public V1RBDVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1RBDVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1RBDVolumeSourceFluent fluent, V1RBDVolumeSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -66,13 +58,11 @@ public V1RBDVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1RBDVolumeSourceBuilder(io.kubernetes.client.openapi.models.V1RBDVolumeSource instance) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance) { this(instance, false); } - public V1RBDVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1RBDVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -93,10 +83,10 @@ public V1RBDVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1RBDVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RBDVolumeSource build() { + public V1RBDVolumeSource build() { V1RBDVolumeSource buildable = new V1RBDVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setImage(fluent.getImage()); 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 f177ca79fe..0df76a6965 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 @@ -22,64 +22,63 @@ public interface V1RBDVolumeSourceFluent> extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getImage(); + public String getImage(); - public A withImage(java.lang.String image); + public A withImage(String image); - public java.lang.Boolean hasImage(); + public Boolean hasImage(); - public java.lang.String getKeyring(); + public String getKeyring(); - public A withKeyring(java.lang.String keyring); + public A withKeyring(String keyring); - public java.lang.Boolean hasKeyring(); + public Boolean hasKeyring(); - public A addToMonitors(Integer index, java.lang.String item); + public A addToMonitors(Integer index, String item); - public A setToMonitors(java.lang.Integer index, java.lang.String item); + public A setToMonitors(Integer index, String item); public A addToMonitors(java.lang.String... items); - public A addAllToMonitors(Collection items); + public A addAllToMonitors(Collection items); public A removeFromMonitors(java.lang.String... items); - public A removeAllFromMonitors(java.util.Collection items); + public A removeAllFromMonitors(Collection items); - public List getMonitors(); + public List getMonitors(); - public java.lang.String getMonitor(java.lang.Integer index); + public String getMonitor(Integer index); - public java.lang.String getFirstMonitor(); + public String getFirstMonitor(); - public java.lang.String getLastMonitor(); + public String getLastMonitor(); - public java.lang.String getMatchingMonitor(Predicate predicate); + public String getMatchingMonitor(Predicate predicate); - public java.lang.Boolean hasMatchingMonitor( - java.util.function.Predicate predicate); + public Boolean hasMatchingMonitor(Predicate predicate); - public A withMonitors(java.util.List monitors); + public A withMonitors(List monitors); public A withMonitors(java.lang.String... monitors); - public java.lang.Boolean hasMonitors(); + public Boolean hasMonitors(); - public java.lang.String getPool(); + public String getPool(); - public A withPool(java.lang.String pool); + public A withPool(String pool); - public java.lang.Boolean hasPool(); + public Boolean hasPool(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -89,31 +88,29 @@ public java.lang.Boolean hasMatchingMonitor( @Deprecated public V1LocalObjectReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef(); + public V1LocalObjectReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef); + public A withSecretRef(V1LocalObjectReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1RBDVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java index 708fcef17d..1de3fde629 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluentImpl.java @@ -25,8 +25,7 @@ public class V1RBDVolumeSourceFluentImpl> e implements V1RBDVolumeSourceFluent { public V1RBDVolumeSourceFluentImpl() {} - public V1RBDVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1RBDVolumeSource instance) { + public V1RBDVolumeSourceFluentImpl(V1RBDVolumeSource instance) { this.withFsType(instance.getFsType()); this.withImage(instance.getImage()); @@ -45,64 +44,64 @@ public V1RBDVolumeSourceFluentImpl( } private String fsType; - private java.lang.String image; - private java.lang.String keyring; - private List monitors; - private java.lang.String pool; + private String image; + private String keyring; + private List monitors; + private String pool; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - private java.lang.String user; + private String user; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getImage() { + public String getImage() { return this.image; } - public A withImage(java.lang.String image) { + public A withImage(String image) { this.image = image; return (A) this; } - public java.lang.Boolean hasImage() { + public Boolean hasImage() { return this.image != null; } - public java.lang.String getKeyring() { + public String getKeyring() { return this.keyring; } - public A withKeyring(java.lang.String keyring) { + public A withKeyring(String keyring) { this.keyring = keyring; return (A) this; } - public java.lang.Boolean hasKeyring() { + public Boolean hasKeyring() { return this.keyring != null; } - public A addToMonitors(Integer index, java.lang.String item) { + public A addToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new ArrayList(); + this.monitors = new ArrayList(); } this.monitors.add(index, item); return (A) this; } - public A setToMonitors(java.lang.Integer index, java.lang.String item) { + public A setToMonitors(Integer index, String item) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } this.monitors.set(index, item); return (A) this; @@ -110,26 +109,26 @@ public A setToMonitors(java.lang.Integer index, java.lang.String item) { public A addToMonitors(java.lang.String... items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } - public A addAllToMonitors(Collection items) { + public A addAllToMonitors(Collection items) { if (this.monitors == null) { - this.monitors = new java.util.ArrayList(); + this.monitors = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.monitors.add(item); } return (A) this; } public A removeFromMonitors(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -137,8 +136,8 @@ public A removeFromMonitors(java.lang.String... items) { return (A) this; } - public A removeAllFromMonitors(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromMonitors(Collection items) { + for (String item : items) { if (this.monitors != null) { this.monitors.remove(item); } @@ -146,24 +145,24 @@ public A removeAllFromMonitors(java.util.Collection items) { return (A) this; } - public java.util.List getMonitors() { + public List getMonitors() { return this.monitors; } - public java.lang.String getMonitor(java.lang.Integer index) { + public String getMonitor(Integer index) { return this.monitors.get(index); } - public java.lang.String getFirstMonitor() { + public String getFirstMonitor() { return this.monitors.get(0); } - public java.lang.String getLastMonitor() { + public String getLastMonitor() { return this.monitors.get(monitors.size() - 1); } - public java.lang.String getMatchingMonitor(Predicate predicate) { - for (java.lang.String item : monitors) { + public String getMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return item; } @@ -171,9 +170,8 @@ public java.lang.String getMatchingMonitor(Predicate predicate return null; } - public java.lang.Boolean hasMatchingMonitor( - java.util.function.Predicate predicate) { - for (java.lang.String item : monitors) { + public Boolean hasMatchingMonitor(Predicate predicate) { + for (String item : monitors) { if (predicate.test(item)) { return true; } @@ -181,10 +179,10 @@ public java.lang.Boolean hasMatchingMonitor( return false; } - public A withMonitors(java.util.List monitors) { + public A withMonitors(List monitors) { if (monitors != null) { - this.monitors = new java.util.ArrayList(); - for (java.lang.String item : monitors) { + this.monitors = new ArrayList(); + for (String item : monitors) { this.addToMonitors(item); } } else { @@ -198,40 +196,40 @@ public A withMonitors(java.lang.String... monitors) { this.monitors.clear(); } if (monitors != null) { - for (java.lang.String item : monitors) { + for (String item : monitors) { this.addToMonitors(item); } } return (A) this; } - public java.lang.Boolean hasMonitors() { + public Boolean hasMonitors() { return monitors != null && !monitors.isEmpty(); } - public java.lang.String getPool() { + public String getPool() { return this.pool; } - public A withPool(java.lang.String pool) { + public A withPool(String pool) { this.pool = pool; return (A) this; } - public java.lang.Boolean hasPool() { + public Boolean hasPool() { return this.pool != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -245,21 +243,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -267,39 +267,35 @@ public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1RBDVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1RBDVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1RBDVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1RBDVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1RBDVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -324,7 +320,7 @@ public int hashCode() { fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -369,17 +365,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1RBDVolumeSourceFluent.SecretRefNested, - Nested { + implements V1RBDVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1RBDVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 2343d75ca4..465f37440d 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ReplicaSetBuilder extends V1ReplicaSetFluentImpl - implements VisitableBuilder< - V1ReplicaSet, io.kubernetes.client.openapi.models.V1ReplicaSetBuilder> { + implements VisitableBuilder { public V1ReplicaSetBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1ReplicaSetBuilder(Boolean validationEnabled) { this(new V1ReplicaSet(), validationEnabled); } - public V1ReplicaSetBuilder(io.kubernetes.client.openapi.models.V1ReplicaSetFluent fluent) { + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent) { this(fluent, false); } - public V1ReplicaSetBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicaSet(), validationEnabled); } - public V1ReplicaSetBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSet instance) { + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent, V1ReplicaSet instance) { this(fluent, instance, false); } public V1ReplicaSetBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSet instance, - java.lang.Boolean validationEnabled) { + V1ReplicaSetFluent fluent, V1ReplicaSet instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,13 +52,11 @@ public V1ReplicaSetBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicaSetBuilder(io.kubernetes.client.openapi.models.V1ReplicaSet instance) { + public V1ReplicaSetBuilder(V1ReplicaSet instance) { this(instance, false); } - public V1ReplicaSetBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSet instance, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetBuilder(V1ReplicaSet instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +71,10 @@ public V1ReplicaSetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicaSetFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicaSetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicaSet build() { + public V1ReplicaSet build() { V1ReplicaSet buildable = new V1ReplicaSet(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 45dcf9fdf1..bdc47d95da 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 @@ -16,9 +16,7 @@ public class V1ReplicaSetConditionBuilder extends V1ReplicaSetConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicaSetCondition, - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder> { + implements VisitableBuilder { public V1ReplicaSetConditionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent) { } public V1ReplicaSetConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1ReplicaSetConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicaSetCondition(), validationEnabled); } public V1ReplicaSetConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetConditionFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetCondition instance) { + V1ReplicaSetConditionFluent fluent, V1ReplicaSetCondition instance) { this(fluent, instance, false); } public V1ReplicaSetConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetConditionFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetCondition instance, - java.lang.Boolean validationEnabled) { + V1ReplicaSetConditionFluent fluent, + V1ReplicaSetCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +57,11 @@ public V1ReplicaSetConditionBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicaSetConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetCondition instance) { + public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance) { this(instance, false); } - public V1ReplicaSetConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetCondition instance, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +76,10 @@ public V1ReplicaSetConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicaSetConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicaSetConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition build() { + public V1ReplicaSetCondition build() { V1ReplicaSetCondition buildable = new V1ReplicaSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 b480f3f8c9..ffda47b0ee 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 @@ -20,31 +20,31 @@ public interface V1ReplicaSetConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java index c282877a98..11265fedf2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1ReplicaSetConditionFluentImpl implements V1ReplicaSetConditionFluent { public V1ReplicaSetConditionFluentImpl() {} - public V1ReplicaSetConditionFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicaSetCondition instance) { + public V1ReplicaSetConditionFluentImpl(V1ReplicaSetCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1ReplicaSetConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 2b694897ab..634544f268 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 @@ -19,15 +19,15 @@ public interface V1ReplicaSetFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1ReplicaSetFluent> extends Flu @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ReplicaSetFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ReplicaSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested editMetadata(); + public V1ReplicaSetFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested - editOrNewMetadata(); + public V1ReplicaSetFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ReplicaSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ReplicaSetSpec getSpec(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpec buildSpec(); + public V1ReplicaSetSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1ReplicaSetSpec spec); + public A withSpec(V1ReplicaSetSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1ReplicaSetFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ReplicaSetSpec item); + public V1ReplicaSetFluent.SpecNested withNewSpecLike(V1ReplicaSetSpec item); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested editSpec(); + public V1ReplicaSetFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested editOrNewSpec(); + public V1ReplicaSetFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ReplicaSetSpec item); + public V1ReplicaSetFluent.SpecNested editOrNewSpecLike(V1ReplicaSetSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ReplicaSetStatus getStatus(); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatus buildStatus(); + public V1ReplicaSetStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1ReplicaSetStatus status); + public A withStatus(V1ReplicaSetStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1ReplicaSetFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus item); + public V1ReplicaSetFluent.StatusNested withNewStatusLike(V1ReplicaSetStatus item); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested editStatus(); + public V1ReplicaSetFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested editOrNewStatus(); + public V1ReplicaSetFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus item); + public V1ReplicaSetFluent.StatusNested editOrNewStatusLike(V1ReplicaSetStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1ReplicaSetSpecFluent> { + extends Nested, V1ReplicaSetSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1ReplicaSetStatusFluent> { + extends Nested, V1ReplicaSetStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java index 77b5cc9570..0f1ab46e2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluentImpl.java @@ -21,7 +21,7 @@ public class V1ReplicaSetFluentImpl> extends Bas implements V1ReplicaSetFluent { public V1ReplicaSetFluentImpl() {} - public V1ReplicaSetFluentImpl(io.kubernetes.client.openapi.models.V1ReplicaSet instance) { + public V1ReplicaSetFluentImpl(V1ReplicaSet instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1ReplicaSetFluentImpl(io.kubernetes.client.openapi.models.V1ReplicaSet i } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1ReplicaSetSpecBuilder spec; private V1ReplicaSetStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1ReplicaSetFluent.MetadataNested withNewMetadata() { return new V1ReplicaSetFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ReplicaSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ReplicaSetFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested editMetadata() { + public V1ReplicaSetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested - editOrNewMetadata() { + public V1ReplicaSetFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ReplicaSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ReplicaSetSpec getSpec() { + @Deprecated + public V1ReplicaSetSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpec buildSpec() { + public V1ReplicaSetSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1ReplicaSetSpec spec) { + public A withSpec(V1ReplicaSetSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1ReplicaSetSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1ReplicaSetFluent.SpecNested withNewSpec() { return new V1ReplicaSetFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ReplicaSetSpec item) { - return new io.kubernetes.client.openapi.models.V1ReplicaSetFluentImpl.SpecNestedImpl(item); + public V1ReplicaSetFluent.SpecNested withNewSpecLike(V1ReplicaSetSpec item) { + return new V1ReplicaSetFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested editSpec() { + public V1ReplicaSetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1ReplicaSetSpecBuilder().build()); + public V1ReplicaSetFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1ReplicaSetSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ReplicaSetSpec item) { + public V1ReplicaSetFluent.SpecNested editOrNewSpecLike(V1ReplicaSetSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested edit * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ReplicaSetStatus getStatus() { + @Deprecated + public V1ReplicaSetStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1ReplicaSetStatus buildStatus() { + public V1ReplicaSetStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1ReplicaSetStatus status) { + public A withStatus(V1ReplicaSetStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1ReplicaSetStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1ReplicaSetFluent.StatusNested withNewStatus() { return new V1ReplicaSetFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus item) { - return new io.kubernetes.client.openapi.models.V1ReplicaSetFluentImpl.StatusNestedImpl(item); + public V1ReplicaSetFluent.StatusNested withNewStatusLike(V1ReplicaSetStatus item) { + return new V1ReplicaSetFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested editStatus() { + public V1ReplicaSetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested editOrNewStatus() { + public V1ReplicaSetFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1ReplicaSetStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1ReplicaSetStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus item) { + public V1ReplicaSetFluent.StatusNested editOrNewStatusLike(V1ReplicaSetStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetFluent.MetadataNested, - Nested { + implements V1ReplicaSetFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ReplicaSetFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1ReplicaSetSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1ReplicaSetSpec item) { + implements V1ReplicaSetFluent.SpecNested, Nested { + SpecNestedImpl(V1ReplicaSetSpec item) { this.builder = new V1ReplicaSetSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ReplicaSetSpecBuilder(this); + this.builder = new V1ReplicaSetSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicaSetSpecBuilder builder; + V1ReplicaSetSpecBuilder builder; public N and() { return (N) V1ReplicaSetFluentImpl.this.withSpec(builder.build()); @@ -311,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1ReplicaSetStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1ReplicaSetFluent.StatusNested, Nested { StatusNestedImpl(V1ReplicaSetStatus item) { this.builder = new V1ReplicaSetStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ReplicaSetStatusBuilder(this); + this.builder = new V1ReplicaSetStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicaSetStatusBuilder builder; + V1ReplicaSetStatusBuilder builder; public N and() { return (N) V1ReplicaSetFluentImpl.this.withStatus(builder.build()); 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 fe33d90507..310909ecd4 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluentImpl - implements VisitableBuilder< - V1ReplicaSetList, io.kubernetes.client.openapi.models.V1ReplicaSetListBuilder> { + implements VisitableBuilder { public V1ReplicaSetListBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1ReplicaSetListBuilder(Boolean validationEnabled) { this(new V1ReplicaSetList(), validationEnabled); } - public V1ReplicaSetListBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetListFluent fluent) { + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent) { this(fluent, false); } - public V1ReplicaSetListBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicaSetList(), validationEnabled); } - public V1ReplicaSetListBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetListFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetList instance) { + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent, V1ReplicaSetList instance) { this(fluent, instance, false); } public V1ReplicaSetListBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetListFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetList instance, - java.lang.Boolean validationEnabled) { + V1ReplicaSetListFluent fluent, V1ReplicaSetList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1ReplicaSetListBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicaSetListBuilder(io.kubernetes.client.openapi.models.V1ReplicaSetList instance) { + public V1ReplicaSetListBuilder(V1ReplicaSetList instance) { this(instance, false); } - public V1ReplicaSetListBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetList instance, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetListBuilder(V1ReplicaSetList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1ReplicaSetListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicaSetListFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicaSetListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicaSetList build() { + public V1ReplicaSetList build() { V1ReplicaSetList buildable = new V1ReplicaSetList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 d2293464f1..ae8cd5c738 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 @@ -22,23 +22,21 @@ public interface V1ReplicaSetListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1ReplicaSet item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSet item); + public A setToItems(Integer index, V1ReplicaSet item); public A addToItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,82 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ReplicaSet buildItem(java.lang.Integer index); + public V1ReplicaSet buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicaSet buildFirstItem(); + public V1ReplicaSet buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ReplicaSet buildLastItem(); + public V1ReplicaSet buildLastItem(); - public io.kubernetes.client.openapi.models.V1ReplicaSet buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ReplicaSet buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ReplicaSetListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ReplicaSet item); + public V1ReplicaSetListFluent.ItemsNested addNewItemLike(V1ReplicaSet item); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSet item); + public V1ReplicaSetListFluent.ItemsNested setNewItemLike(Integer index, V1ReplicaSet item); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ReplicaSetListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editFirstItem(); + public V1ReplicaSetListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editLastItem(); + public V1ReplicaSetListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); + public V1ReplicaSetListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ReplicaSetListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ReplicaSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - editMetadata(); + public V1ReplicaSetListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - editOrNewMetadata(); + public V1ReplicaSetListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ReplicaSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ReplicaSetFluent> { @@ -133,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java index 7e71934b6b..9ae1440124 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluentImpl.java @@ -38,14 +38,14 @@ public V1ReplicaSetListFluentImpl(V1ReplicaSetList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ReplicaSet item) { + public A addToItems(Integer index, V1ReplicaSet item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetBuilder(item); + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSet item) { + public A setToItems(Integer index, V1ReplicaSet item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetBuilder(item); + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicaSet item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicaSet item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetBuilder(item); + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1ReplicaSet item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder = each.next(); + V1ReplicaSetBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -161,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ReplicaSet buildItem(java.lang.Integer index) { + public V1ReplicaSet buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ReplicaSet buildFirstItem() { + public V1ReplicaSet buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ReplicaSet buildLastItem() { + public V1ReplicaSet buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ReplicaSet buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetBuilder item : items) { + public V1ReplicaSet buildMatchingItem(Predicate predicate) { + for (V1ReplicaSetBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -192,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ReplicaSet buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ReplicaSetBuilder item : items) { if (predicate.test(item)) { return true; } @@ -203,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ReplicaSet item : items) { + this.items = new ArrayList(); + for (V1ReplicaSet item : items) { this.addToItems(item); } } else { @@ -223,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ReplicaSet item : items) { + for (V1ReplicaSet item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -238,37 +221,32 @@ public V1ReplicaSetListFluent.ItemsNested addNewItem() { return new V1ReplicaSetListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ReplicaSet item) { + public V1ReplicaSetListFluent.ItemsNested addNewItemLike(V1ReplicaSet item) { return new V1ReplicaSetListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSet item) { - return new io.kubernetes.client.openapi.models.V1ReplicaSetListFluentImpl.ItemsNestedImpl( - index, item); + public V1ReplicaSetListFluent.ItemsNested setNewItemLike(Integer index, V1ReplicaSet item) { + return new V1ReplicaSetListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ReplicaSetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editFirstItem() { + public V1ReplicaSetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editLastItem() { + public V1ReplicaSetListFluent.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 io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ReplicaSetListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -280,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -298,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -324,27 +305,20 @@ public V1ReplicaSetListFluent.MetadataNested withNewMetadata() { return new V1ReplicaSetListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ReplicaSetListFluentImpl.MetadataNestedImpl( - item); + public V1ReplicaSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ReplicaSetListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - editMetadata() { + public V1ReplicaSetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - editOrNewMetadata() { + public V1ReplicaSetListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ReplicaSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -364,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -389,19 +363,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ReplicaSetFluentImpl> implements V1ReplicaSetListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSet item) { + ItemsNestedImpl(Integer index, V1ReplicaSet item) { this.index = index; this.builder = new V1ReplicaSetBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ReplicaSetBuilder(this); + this.builder = new V1ReplicaSetBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicaSetBuilder builder; - java.lang.Integer index; + V1ReplicaSetBuilder builder; + Integer index; public N and() { return (N) V1ReplicaSetListFluentImpl.this.setToItems(index, builder.build()); @@ -413,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ReplicaSetListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ReplicaSetListFluentImpl.this.withMetadata(builder.build()); 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 be0e5f1167..4ebbde84c8 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicaSetSpec, - io.kubernetes.client.openapi.models.V1ReplicaSetSpecBuilder> { + implements VisitableBuilder { public V1ReplicaSetSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent) { this(fluent, false); } - public V1ReplicaSetSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicaSetSpec(), validationEnabled); } - public V1ReplicaSetSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetSpec instance) { + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent, V1ReplicaSetSpec instance) { this(fluent, instance, false); } public V1ReplicaSetSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetSpec instance, - java.lang.Boolean validationEnabled) { + V1ReplicaSetSpecFluent fluent, V1ReplicaSetSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); @@ -58,13 +50,11 @@ public V1ReplicaSetSpecBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicaSetSpecBuilder(io.kubernetes.client.openapi.models.V1ReplicaSetSpec instance) { + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance) { this(instance, false); } - public V1ReplicaSetSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetSpec instance, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -77,10 +67,10 @@ public V1ReplicaSetSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicaSetSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicaSetSpec build() { + public V1ReplicaSetSpec build() { V1ReplicaSetSpec buildable = new V1ReplicaSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); buildable.setReplicas(fluent.getReplicas()); 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 aa1b0d9299..c28f9dfc9b 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 @@ -19,15 +19,15 @@ public interface V1ReplicaSetSpecFluent> extends Fluent { public Integer getMinReadySeconds(); - public A withMinReadySeconds(java.lang.Integer minReadySeconds); + public A withMinReadySeconds(Integer minReadySeconds); public Boolean hasMinReadySeconds(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); /** * This method has been deprecated, please use method buildSelector instead. @@ -37,53 +37,45 @@ public interface V1ReplicaSetSpecFluent> ext @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V1ReplicaSetSpecFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1ReplicaSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - editSelector(); + public V1ReplicaSetSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - editOrNewSelector(); + public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); /** * This method has been deprecated, please use method buildTemplate instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate(); + public V1PodTemplateSpec buildTemplate(); - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template); + public A withTemplate(V1PodTemplateSpec template); - public java.lang.Boolean hasTemplate(); + public Boolean hasTemplate(); public V1ReplicaSetSpecFluent.TemplateNested withNewTemplate(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1ReplicaSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - editTemplate(); + public V1ReplicaSetSpecFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - editOrNewTemplate(); + public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); public interface SelectorNested extends Nested, V1LabelSelectorFluent> { @@ -93,8 +85,7 @@ public interface SelectorNested } public interface TemplateNested - extends io.kubernetes.client.fluent.Nested, - V1PodTemplateSpecFluent> { + extends Nested, V1PodTemplateSpecFluent> { public N and(); public N endTemplate(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java index 032f345a08..05acbd92fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V1ReplicaSetSpecFluentImpl> ext implements V1ReplicaSetSpecFluent { public V1ReplicaSetSpecFluentImpl() {} - public V1ReplicaSetSpecFluentImpl(io.kubernetes.client.openapi.models.V1ReplicaSetSpec instance) { + public V1ReplicaSetSpecFluentImpl(V1ReplicaSetSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); this.withReplicas(instance.getReplicas()); @@ -32,15 +32,15 @@ public V1ReplicaSetSpecFluentImpl(io.kubernetes.client.openapi.models.V1ReplicaS } private Integer minReadySeconds; - private java.lang.Integer replicas; + private Integer replicas; private V1LabelSelectorBuilder selector; private V1PodTemplateSpecBuilder template; - public java.lang.Integer getMinReadySeconds() { + public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(java.lang.Integer minReadySeconds) { + public A withMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return (A) this; } @@ -49,16 +49,16 @@ public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } @@ -68,24 +68,27 @@ public java.lang.Boolean hasReplicas() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -93,26 +96,20 @@ public V1ReplicaSetSpecFluent.SelectorNested withNewSelector() { return new V1ReplicaSetSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1ReplicaSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V1ReplicaSetSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - editSelector() { + public V1ReplicaSetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - editOrNewSelector() { + public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1ReplicaSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } @@ -121,25 +118,28 @@ public V1ReplicaSetSpecFluent.SelectorNested withNewSelector() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { - this.template = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(template); + this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -147,27 +147,20 @@ public V1ReplicaSetSpecFluent.TemplateNested withNewTemplate() { return new V1ReplicaSetSpecFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { - return new io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluentImpl.TemplateNestedImpl( - item); + public V1ReplicaSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new V1ReplicaSetSpecFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - editTemplate() { + public V1ReplicaSetSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - editOrNewTemplate() { + public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1ReplicaSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } @@ -213,17 +206,16 @@ public String toString() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.SelectorNested, - Nested { + implements V1ReplicaSetSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1ReplicaSetSpecFluentImpl.this.withSelector(builder.build()); @@ -236,17 +228,16 @@ public N endSelector() { class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetSpecFluent.TemplateNested, - io.kubernetes.client.fluent.Nested { + implements V1ReplicaSetSpecFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1ReplicaSetSpecFluentImpl.this.withTemplate(builder.build()); 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 fbed73561e..e1474480cd 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 @@ -16,8 +16,7 @@ public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluentImpl - implements VisitableBuilder< - V1ReplicaSetStatus, io.kubernetes.client.openapi.models.V1ReplicaSetStatusBuilder> { + implements VisitableBuilder { public V1ReplicaSetStatusBuilder() { this(false); } @@ -30,22 +29,17 @@ public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent) { this(fluent, false); } - public V1ReplicaSetStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicaSetStatus(), validationEnabled); } public V1ReplicaSetStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetStatus instance) { + V1ReplicaSetStatusFluent fluent, V1ReplicaSetStatus instance) { this(fluent, instance, false); } public V1ReplicaSetStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicaSetStatus instance, - java.lang.Boolean validationEnabled) { + V1ReplicaSetStatusFluent fluent, V1ReplicaSetStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); @@ -62,14 +56,11 @@ public V1ReplicaSetStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicaSetStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus instance) { + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance) { this(instance, false); } - public V1ReplicaSetStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus instance, - java.lang.Boolean validationEnabled) { + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -86,10 +77,10 @@ public V1ReplicaSetStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicaSetStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicaSetStatus build() { + public V1ReplicaSetStatus build() { V1ReplicaSetStatus buildable = new V1ReplicaSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); buildable.setConditions(fluent.getConditions()); 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 399d3d0270..45b41aafaa 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 @@ -22,24 +22,21 @@ public interface V1ReplicaSetStatusFluent> extends Fluent { public Integer getAvailableReplicas(); - public A withAvailableReplicas(java.lang.Integer availableReplicas); + public A withAvailableReplicas(Integer availableReplicas); public Boolean hasAvailableReplicas(); - public A addToConditions(java.lang.Integer index, V1ReplicaSetCondition item); + public A addToConditions(Integer index, V1ReplicaSetCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSetCondition item); + public A setToConditions(Integer index, V1ReplicaSetCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -49,80 +46,67 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildCondition( - java.lang.Integer index); + public V1ReplicaSetCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildFirstCondition(); + public V1ReplicaSetCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildLastCondition(); + public V1ReplicaSetCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1ReplicaSetCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1ReplicaSetStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1ReplicaSetCondition item); + public V1ReplicaSetStatusFluent.ConditionsNested addNewConditionLike( + V1ReplicaSetCondition item); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSetCondition item); + public V1ReplicaSetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1ReplicaSetCondition item); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1ReplicaSetStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editFirstCondition(); + public V1ReplicaSetStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editLastCondition(); + public V1ReplicaSetStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder> - predicate); + public V1ReplicaSetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.Integer getFullyLabeledReplicas(); + public Integer getFullyLabeledReplicas(); - public A withFullyLabeledReplicas(java.lang.Integer fullyLabeledReplicas); + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas); - public java.lang.Boolean hasFullyLabeledReplicas(); + public Boolean hasFullyLabeledReplicas(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.Integer getReadyReplicas(); + public Integer getReadyReplicas(); - public A withReadyReplicas(java.lang.Integer readyReplicas); + public A withReadyReplicas(Integer readyReplicas); - public java.lang.Boolean hasReadyReplicas(); + public Boolean hasReadyReplicas(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); public interface ConditionsNested extends Nested, V1ReplicaSetConditionFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java index 3af3c157d0..ea36f9a325 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1ReplicaSetStatusFluentImpl> extends BaseFluent implements V1ReplicaSetStatusFluent { public V1ReplicaSetStatusFluentImpl() {} - public V1ReplicaSetStatusFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicaSetStatus instance) { + public V1ReplicaSetStatusFluentImpl(V1ReplicaSetStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); this.withConditions(instance.getConditions()); @@ -43,16 +42,16 @@ public V1ReplicaSetStatusFluentImpl( private Integer availableReplicas; private ArrayList conditions; - private java.lang.Integer fullyLabeledReplicas; + private Integer fullyLabeledReplicas; private Long observedGeneration; - private java.lang.Integer readyReplicas; - private java.lang.Integer replicas; + private Integer readyReplicas; + private Integer replicas; - public java.lang.Integer getAvailableReplicas() { + public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(java.lang.Integer availableReplicas) { + public A withAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; return (A) this; } @@ -61,13 +60,11 @@ public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - public A addToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSetCondition item) { + public A addToConditions(Integer index, V1ReplicaSetCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(item); + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -75,15 +72,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSetCondition item) { + public A setToConditions(Integer index, V1ReplicaSetCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(item); + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -99,29 +92,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicaSetCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicaSetCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(item); + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -130,9 +116,8 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(item); + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -141,11 +126,9 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -154,14 +137,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder = each.next(); + V1ReplicaSetConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -176,32 +157,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildCondition( - java.lang.Integer index) { + public V1ReplicaSetCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildFirstCondition() { + public V1ReplicaSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildLastCondition() { + public V1ReplicaSetCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder item : conditions) { + public V1ReplicaSetCondition buildMatchingCondition( + Predicate predicate) { + for (V1ReplicaSetConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -209,10 +187,8 @@ public io.kubernetes.client.openapi.models.V1ReplicaSetCondition buildMatchingCo return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1ReplicaSetConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -220,14 +196,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ReplicaSetCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1ReplicaSetCondition item : conditions) { this.addToConditions(item); } } else { @@ -241,14 +216,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetConditio this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1ReplicaSetCondition item : conditions) { + for (V1ReplicaSetCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -256,44 +231,36 @@ public V1ReplicaSetStatusFluent.ConditionsNested addNewCondition() { return new V1ReplicaSetStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1ReplicaSetCondition item) { + public V1ReplicaSetStatusFluent.ConditionsNested addNewConditionLike( + V1ReplicaSetCondition item) { return new V1ReplicaSetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSetCondition item) { - return new io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1ReplicaSetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1ReplicaSetCondition item) { + return new V1ReplicaSetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1ReplicaSetStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editFirstCondition() { + public V1ReplicaSetStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editLastCondition() { + public V1ReplicaSetStatusFluent.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 io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder> - predicate) { + public V1ReplicaSetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -305,55 +272,55 @@ public V1ReplicaSetStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Integer getFullyLabeledReplicas() { + public Integer getFullyLabeledReplicas() { return this.fullyLabeledReplicas; } - public A withFullyLabeledReplicas(java.lang.Integer fullyLabeledReplicas) { + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; return (A) this; } - public java.lang.Boolean hasFullyLabeledReplicas() { + public Boolean hasFullyLabeledReplicas() { return this.fullyLabeledReplicas != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.Integer getReadyReplicas() { + public Integer getReadyReplicas() { return this.readyReplicas; } - public A withReadyReplicas(java.lang.Integer readyReplicas) { + public A withReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; return (A) this; } - public java.lang.Boolean hasReadyReplicas() { + public Boolean hasReadyReplicas() { return this.readyReplicas != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } @@ -423,21 +390,19 @@ public String toString() { class ConditionsNestedImpl extends V1ReplicaSetConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicaSetStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicaSetCondition item) { + implements V1ReplicaSetStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1ReplicaSetCondition item) { this.index = index; this.builder = new V1ReplicaSetConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder(this); + this.builder = new V1ReplicaSetConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicaSetConditionBuilder builder; - java.lang.Integer index; + V1ReplicaSetConditionBuilder builder; + Integer index; public N and() { return (N) V1ReplicaSetStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java index 7b4cbb96ae..138eb2bf4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java @@ -16,9 +16,7 @@ public class V1ReplicationControllerBuilder extends V1ReplicationControllerFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicationController, - V1ReplicationControllerBuilder> { + implements VisitableBuilder { public V1ReplicationControllerBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent) { } public V1ReplicationControllerBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerFluent fluent, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicationController(), validationEnabled); } public V1ReplicationControllerBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationController instance) { + V1ReplicationControllerFluent fluent, V1ReplicationController instance) { this(fluent, instance, false); } public V1ReplicationControllerBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationController instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerFluent fluent, + V1ReplicationController instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V1ReplicationControllerBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicationControllerBuilder( - io.kubernetes.client.openapi.models.V1ReplicationController instance) { + public V1ReplicationControllerBuilder(V1ReplicationController instance) { this(instance, false); } public V1ReplicationControllerBuilder( - io.kubernetes.client.openapi.models.V1ReplicationController instance, - java.lang.Boolean validationEnabled) { + V1ReplicationController instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V1ReplicationControllerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicationControllerFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicationControllerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicationController build() { + public V1ReplicationController build() { V1ReplicationController buildable = new V1ReplicationController(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 2aac0d2b88..f082b36dee 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 @@ -17,8 +17,7 @@ public class V1ReplicationControllerConditionBuilder extends V1ReplicationControllerConditionFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition, - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> { + V1ReplicationControllerCondition, V1ReplicationControllerConditionBuilder> { public V1ReplicationControllerConditionBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionF } public V1ReplicationControllerConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicationControllerCondition(), validationEnabled); } public V1ReplicationControllerConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition instance) { + V1ReplicationControllerConditionFluent fluent, V1ReplicationControllerCondition instance) { this(fluent, instance, false); } public V1ReplicationControllerConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerConditionFluent fluent, + V1ReplicationControllerCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +58,12 @@ public V1ReplicationControllerConditionBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicationControllerConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition instance) { + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerCondition instance) { this(instance, false); } public V1ReplicationControllerConditionBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +78,10 @@ public V1ReplicationControllerConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicationControllerConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition build() { + public V1ReplicationControllerCondition build() { V1ReplicationControllerCondition buildable = new V1ReplicationControllerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 535b11623f..8fb27e9be1 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 @@ -21,31 +21,31 @@ public interface V1ReplicationControllerConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java index aef7c98c54..628afa03f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluentImpl.java @@ -22,8 +22,7 @@ public class V1ReplicationControllerConditionFluentImpl< extends BaseFluent implements V1ReplicationControllerConditionFluent { public V1ReplicationControllerConditionFluentImpl() {} - public V1ReplicationControllerConditionFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition instance) { + public V1ReplicationControllerConditionFluentImpl(V1ReplicationControllerCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -37,15 +36,15 @@ public V1ReplicationControllerConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -54,55 +53,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -126,7 +125,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 4d841d3f59..8c9aa391cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java @@ -20,15 +20,15 @@ public interface V1ReplicationControllerFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,80 +38,73 @@ public interface V1ReplicationControllerFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ReplicationControllerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - editMetadata(); + public V1ReplicationControllerFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - editOrNewMetadata(); + public V1ReplicationControllerFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ReplicationControllerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ReplicationControllerSpec getSpec(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpec buildSpec(); + public V1ReplicationControllerSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec spec); + public A withSpec(V1ReplicationControllerSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1ReplicationControllerFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec item); + public V1ReplicationControllerFluent.SpecNested withNewSpecLike( + V1ReplicationControllerSpec item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested editSpec(); + public V1ReplicationControllerFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - editOrNewSpec(); + public V1ReplicationControllerFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec item); + public V1ReplicationControllerFluent.SpecNested editOrNewSpecLike( + V1ReplicationControllerSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ReplicationControllerStatus getStatus(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatus buildStatus(); + public V1ReplicationControllerStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus status); + public A withStatus(V1ReplicationControllerStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1ReplicationControllerFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus item); + public V1ReplicationControllerFluent.StatusNested withNewStatusLike( + V1ReplicationControllerStatus item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - editStatus(); + public V1ReplicationControllerFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - editOrNewStatus(); + public V1ReplicationControllerFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus item); + public V1ReplicationControllerFluent.StatusNested editOrNewStatusLike( + V1ReplicationControllerStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -121,7 +114,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ReplicationControllerSpecFluent> { public N and(); @@ -129,7 +122,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ReplicationControllerStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java index 0874b72648..3f6ea1b2b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluentImpl.java @@ -21,8 +21,7 @@ public class V1ReplicationControllerFluentImpl implements V1ReplicationControllerFluent { public V1ReplicationControllerFluentImpl() {} - public V1ReplicationControllerFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicationController instance) { + public V1ReplicationControllerFluentImpl(V1ReplicationController instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1ReplicationControllerFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1ReplicationControllerSpecBuilder spec; private V1ReplicationControllerStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1ReplicationControllerFluent.MetadataNested withNewMetadata() { return new V1ReplicationControllerFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ReplicationControllerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ReplicationControllerFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - editMetadata() { + public V1ReplicationControllerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - editOrNewMetadata() { + public V1ReplicationControllerFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ReplicationControllerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1ReplicationControllerFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpec getSpec() { + @Deprecated + public V1ReplicationControllerSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpec buildSpec() { + public V1ReplicationControllerSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec spec) { + public A withSpec(V1ReplicationControllerSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1ReplicationControllerSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,27 +150,22 @@ public V1ReplicationControllerFluent.SpecNested withNewSpec() { return new V1ReplicationControllerFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec item) { - return new io.kubernetes.client.openapi.models.V1ReplicationControllerFluentImpl.SpecNestedImpl( - item); + public V1ReplicationControllerFluent.SpecNested withNewSpecLike( + V1ReplicationControllerSpec item) { + return new V1ReplicationControllerFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - editSpec() { + public V1ReplicationControllerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - editOrNewSpec() { + public V1ReplicationControllerFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1ReplicationControllerSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1ReplicationControllerSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec item) { + public V1ReplicationControllerFluent.SpecNested editOrNewSpecLike( + V1ReplicationControllerSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -180,25 +174,28 @@ public V1ReplicationControllerFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatus getStatus() { + @Deprecated + public V1ReplicationControllerStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatus buildStatus() { + public V1ReplicationControllerStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus status) { + public A withStatus(V1ReplicationControllerStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1ReplicationControllerStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -206,28 +203,22 @@ public V1ReplicationControllerFluent.StatusNested withNewStatus() { return new V1ReplicationControllerFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus item) { - return new io.kubernetes.client.openapi.models.V1ReplicationControllerFluentImpl - .StatusNestedImpl(item); + public V1ReplicationControllerFluent.StatusNested withNewStatusLike( + V1ReplicationControllerStatus item) { + return new V1ReplicationControllerFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - editStatus() { + public V1ReplicationControllerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - editOrNewStatus() { + public V1ReplicationControllerFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1ReplicationControllerStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V1ReplicationControllerStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus item) { + public V1ReplicationControllerFluent.StatusNested editOrNewStatusLike( + V1ReplicationControllerStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -248,7 +239,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -277,18 +268,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.MetadataNested< - N>, - Nested { + implements V1ReplicationControllerFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ReplicationControllerFluentImpl.this.withMetadata(builder.build()); @@ -301,18 +290,16 @@ public N endMetadata() { class SpecNestedImpl extends V1ReplicationControllerSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1ReplicationControllerSpec item) { + implements V1ReplicationControllerFluent.SpecNested, Nested { + SpecNestedImpl(V1ReplicationControllerSpec item) { this.builder = new V1ReplicationControllerSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerSpecBuilder(this); + this.builder = new V1ReplicationControllerSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicationControllerSpecBuilder builder; + V1ReplicationControllerSpecBuilder builder; public N and() { return (N) V1ReplicationControllerFluentImpl.this.withSpec(builder.build()); @@ -325,18 +312,16 @@ public N endSpec() { class StatusNestedImpl extends V1ReplicationControllerStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicationControllerFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1ReplicationControllerStatus item) { + implements V1ReplicationControllerFluent.StatusNested, Nested { + StatusNestedImpl(V1ReplicationControllerStatus item) { this.builder = new V1ReplicationControllerStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerStatusBuilder(this); + this.builder = new V1ReplicationControllerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicationControllerStatusBuilder builder; + V1ReplicationControllerStatusBuilder builder; public N and() { return (N) V1ReplicationControllerFluentImpl.this.withStatus(builder.build()); 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 b0a9be9804..f0699eeeb2 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 @@ -16,9 +16,7 @@ public class V1ReplicationControllerListBuilder extends V1ReplicationControllerListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicationControllerList, - io.kubernetes.client.openapi.models.V1ReplicationControllerListBuilder> { + implements VisitableBuilder { public V1ReplicationControllerListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent f } public V1ReplicationControllerListBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicationControllerList(), validationEnabled); } public V1ReplicationControllerListBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerList instance) { + V1ReplicationControllerListFluent fluent, V1ReplicationControllerList instance) { this(fluent, instance, false); } public V1ReplicationControllerListBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerList instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerListFluent fluent, + V1ReplicationControllerList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,12 @@ public V1ReplicationControllerListBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicationControllerListBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerList instance) { + public V1ReplicationControllerListBuilder(V1ReplicationControllerList instance) { this(instance, false); } public V1ReplicationControllerListBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerList instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +73,10 @@ public V1ReplicationControllerListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicationControllerListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicationControllerList build() { + public V1ReplicationControllerList build() { V1ReplicationControllerList buildable = new V1ReplicationControllerList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 068516001c..798dd10ebd 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 @@ -23,25 +23,21 @@ public interface V1ReplicationControllerListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1ReplicationController item); + public A addToItems(Integer index, V1ReplicationController item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicationController item); + public A setToItems(Integer index, V1ReplicationController item); public A addToItems(io.kubernetes.client.openapi.models.V1ReplicationController... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationController... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,92 +47,73 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ReplicationController buildItem( - java.lang.Integer index); + public V1ReplicationController buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicationController buildFirstItem(); + public V1ReplicationController buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ReplicationController buildLastItem(); + public V1ReplicationController buildLastItem(); - public io.kubernetes.client.openapi.models.V1ReplicationController buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder> - predicate); + public V1ReplicationController buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ReplicationControllerListFluent.ItemsNested addNewItem(); public V1ReplicationControllerListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ReplicationController item); + V1ReplicationController item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationController item); + public V1ReplicationControllerListFluent.ItemsNested setNewItemLike( + Integer index, V1ReplicationController item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1ReplicationControllerListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editFirstItem(); + public V1ReplicationControllerListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editLastItem(); + public V1ReplicationControllerListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder> - predicate); + public V1ReplicationControllerListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ReplicationControllerListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ReplicationControllerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - editMetadata(); + public V1ReplicationControllerListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - editOrNewMetadata(); + public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, @@ -147,8 +124,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java index a1ab60672d..d2346415fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluentImpl.java @@ -26,8 +26,7 @@ public class V1ReplicationControllerListFluentImpl implements V1ReplicationControllerListFluent { public V1ReplicationControllerListFluentImpl() {} - public V1ReplicationControllerListFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicationControllerList instance) { + public V1ReplicationControllerListFluentImpl(V1ReplicationControllerList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1ReplicationControllerListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1ReplicationController item) { + public A addToItems(Integer index, V1ReplicationController item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(item); + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicationController item) { + public A setToItems(Integer index, V1ReplicationController item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(item); + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -93,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicationController item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicationController item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(item); + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -123,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - for (io.kubernetes.client.openapi.models.V1ReplicationController item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(item); + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -134,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationContro return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ReplicationController item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -147,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder = each.next(); + V1ReplicationControllerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,32 +148,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ReplicationController buildItem( - java.lang.Integer index) { + public V1ReplicationController buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ReplicationController buildFirstItem() { + public V1ReplicationController buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ReplicationController buildLastItem() { + public V1ReplicationController buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ReplicationController buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder item : items) { + public V1ReplicationController buildMatchingItem( + Predicate predicate) { + for (V1ReplicationControllerBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -202,11 +178,8 @@ public io.kubernetes.client.openapi.models.V1ReplicationController buildMatching return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ReplicationControllerBuilder item : items) { if (predicate.test(item)) { return true; } @@ -214,14 +187,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ReplicationController item : items) { + this.items = new ArrayList(); + for (V1ReplicationController item : items) { this.addToItems(item); } } else { @@ -235,14 +207,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController.. this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ReplicationController item : items) { + for (V1ReplicationController item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -251,42 +223,33 @@ public V1ReplicationControllerListFluent.ItemsNested addNewItem() { } public V1ReplicationControllerListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ReplicationController item) { + V1ReplicationController item) { return new V1ReplicationControllerListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationController item) { - return new io.kubernetes.client.openapi.models.V1ReplicationControllerListFluentImpl - .ItemsNestedImpl(index, item); + public V1ReplicationControllerListFluent.ItemsNested setNewItemLike( + Integer index, V1ReplicationController item) { + return new V1ReplicationControllerListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1ReplicationControllerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editFirstItem() { + public V1ReplicationControllerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editLastItem() { + public V1ReplicationControllerListFluent.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 io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder> - predicate) { + public V1ReplicationControllerListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -298,16 +261,16 @@ public V1ReplicationControllerListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -316,25 +279,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -342,27 +308,21 @@ public V1ReplicationControllerListFluent.MetadataNested withNewMetadata() { return new V1ReplicationControllerListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ReplicationControllerListFluentImpl - .MetadataNestedImpl(item); + public V1ReplicationControllerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ReplicationControllerListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - editMetadata() { + public V1ReplicationControllerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - editOrNewMetadata() { + public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ReplicationControllerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -382,7 +342,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -408,19 +368,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ReplicationControllerFluentImpl> implements V1ReplicationControllerListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ReplicationController item) { + ItemsNestedImpl(Integer index, V1ReplicationController item) { this.index = index; this.builder = new V1ReplicationControllerBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder(this); + this.builder = new V1ReplicationControllerBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicationControllerBuilder builder; - java.lang.Integer index; + V1ReplicationControllerBuilder builder; + Integer index; public N and() { return (N) V1ReplicationControllerListFluentImpl.this.setToItems(index, builder.build()); @@ -433,19 +392,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicationControllerListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ReplicationControllerListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ReplicationControllerListFluentImpl.this.withMetadata(builder.build()); 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 398942b367..7831585664 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 @@ -16,9 +16,7 @@ public class V1ReplicationControllerSpecBuilder extends V1ReplicationControllerSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicationControllerSpec, - io.kubernetes.client.openapi.models.V1ReplicationControllerSpecBuilder> { + implements VisitableBuilder { public V1ReplicationControllerSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent f } public V1ReplicationControllerSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicationControllerSpec(), validationEnabled); } public V1ReplicationControllerSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerSpec instance) { + V1ReplicationControllerSpecFluent fluent, V1ReplicationControllerSpec instance) { this(fluent, instance, false); } public V1ReplicationControllerSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerSpec instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerSpecFluent fluent, + V1ReplicationControllerSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); @@ -59,14 +55,12 @@ public V1ReplicationControllerSpecBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicationControllerSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerSpec instance) { + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpec instance) { this(instance, false); } public V1ReplicationControllerSpecBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerSpec instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -79,10 +73,10 @@ public V1ReplicationControllerSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicationControllerSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpec build() { + public V1ReplicationControllerSpec build() { V1ReplicationControllerSpec buildable = new V1ReplicationControllerSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); buildable.setReplicas(fluent.getReplicas()); 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 98246c45a5..b4422d3411 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 @@ -21,29 +21,29 @@ public interface V1ReplicationControllerSpecFluent { public Integer getMinReadySeconds(); - public A withMinReadySeconds(java.lang.Integer minReadySeconds); + public A withMinReadySeconds(Integer minReadySeconds); public Boolean hasMinReadySeconds(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); - public A addToSelector(String key, java.lang.String value); + public A addToSelector(String key, String value); - public A addToSelector(Map map); + public A addToSelector(Map map); - public A removeFromSelector(java.lang.String key); + public A removeFromSelector(String key); - public A removeFromSelector(java.util.Map map); + public A removeFromSelector(Map map); - public java.util.Map getSelector(); + public Map getSelector(); - public A withSelector(java.util.Map selector); + public A withSelector(Map selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); /** * This method has been deprecated, please use method buildTemplate instead. @@ -53,25 +53,23 @@ public interface V1ReplicationControllerSpecFluent withNewTemplate(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplateLike( + V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - editTemplate(); + public V1ReplicationControllerSpecFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - editOrNewTemplate(); + public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplateLike( + V1PodTemplateSpec item); public interface TemplateNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java index efe3527064..175ece8d78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluentImpl.java @@ -23,8 +23,7 @@ public class V1ReplicationControllerSpecFluentImpl implements V1ReplicationControllerSpecFluent { public V1ReplicationControllerSpecFluentImpl() {} - public V1ReplicationControllerSpecFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicationControllerSpec instance) { + public V1ReplicationControllerSpecFluentImpl(V1ReplicationControllerSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); this.withReplicas(instance.getReplicas()); @@ -35,15 +34,15 @@ public V1ReplicationControllerSpecFluentImpl( } private Integer minReadySeconds; - private java.lang.Integer replicas; - private Map selector; + private Integer replicas; + private Map selector; private V1PodTemplateSpecBuilder template; - public java.lang.Integer getMinReadySeconds() { + public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(java.lang.Integer minReadySeconds) { + public A withMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return (A) this; } @@ -52,20 +51,20 @@ public Boolean hasMinReadySeconds() { return this.minReadySeconds != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } - public A addToSelector(java.lang.String key, java.lang.String value) { + public A addToSelector(String key, String value) { if (this.selector == null && key != null && value != null) { this.selector = new LinkedHashMap(); } @@ -75,9 +74,9 @@ public A addToSelector(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToSelector(java.util.Map map) { + public A addToSelector(Map map) { if (this.selector == null && map != null) { - this.selector = new java.util.LinkedHashMap(); + this.selector = new LinkedHashMap(); } if (map != null) { this.selector.putAll(map); @@ -85,7 +84,7 @@ public A addToSelector(java.util.Map map) { return (A) this; } - public A removeFromSelector(java.lang.String key) { + public A removeFromSelector(String key) { if (this.selector == null) { return (A) this; } @@ -95,7 +94,7 @@ public A removeFromSelector(java.lang.String key) { return (A) this; } - public A removeFromSelector(java.util.Map map) { + public A removeFromSelector(Map map) { if (this.selector == null) { return (A) this; } @@ -109,20 +108,20 @@ public A removeFromSelector(java.util.Map ma return (A) this; } - public java.util.Map getSelector() { + public Map getSelector() { return this.selector; } - public A withSelector(java.util.Map selector) { + public A withSelector(Map selector) { if (selector == null) { this.selector = null; } else { - this.selector = new java.util.LinkedHashMap(selector); + this.selector = new LinkedHashMap(selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -136,20 +135,23 @@ public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { - this.template = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(template); + this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -157,26 +159,22 @@ public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplate() { return new V1ReplicationControllerSpecFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1ReplicationControllerSpecFluent.TemplateNested withNewTemplateLike( + V1PodTemplateSpec item) { return new V1ReplicationControllerSpecFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - editTemplate() { + public V1ReplicationControllerSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - editOrNewTemplate() { + public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1ReplicationControllerSpecFluent.TemplateNested editOrNewTemplateLike( + V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } @@ -197,7 +195,7 @@ public int hashCode() { return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (minReadySeconds != null) { @@ -222,19 +220,16 @@ public java.lang.String toString() { class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ReplicationControllerSpecFluent - .TemplateNested< - N>, - Nested { + implements V1ReplicationControllerSpecFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1ReplicationControllerSpecFluentImpl.this.withTemplate(builder.build()); 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 8bb73e1943..6194813413 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 @@ -17,8 +17,7 @@ public class V1ReplicationControllerStatusBuilder extends V1ReplicationControllerStatusFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ReplicationControllerStatus, - io.kubernetes.client.openapi.models.V1ReplicationControllerStatusBuilder> { + V1ReplicationControllerStatus, V1ReplicationControllerStatusBuilder> { public V1ReplicationControllerStatusBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent< } public V1ReplicationControllerStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ReplicationControllerStatus(), validationEnabled); } public V1ReplicationControllerStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerStatus instance) { + V1ReplicationControllerStatusFluent fluent, V1ReplicationControllerStatus instance) { this(fluent, instance, false); } public V1ReplicationControllerStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ReplicationControllerStatus instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerStatusFluent fluent, + V1ReplicationControllerStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); @@ -63,14 +60,12 @@ public V1ReplicationControllerStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ReplicationControllerStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerStatus instance) { + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatus instance) { this(instance, false); } public V1ReplicationControllerStatusBuilder( - io.kubernetes.client.openapi.models.V1ReplicationControllerStatus instance, - java.lang.Boolean validationEnabled) { + V1ReplicationControllerStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -87,10 +82,10 @@ public V1ReplicationControllerStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ReplicationControllerStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatus build() { + public V1ReplicationControllerStatus build() { V1ReplicationControllerStatus buildable = new V1ReplicationControllerStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); buildable.setConditions(fluent.getConditions()); 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 b9019fe995..e328195701 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 @@ -24,28 +24,23 @@ public interface V1ReplicationControllerStatusFluent< extends Fluent { public Integer getAvailableReplicas(); - public A withAvailableReplicas(java.lang.Integer availableReplicas); + public A withAvailableReplicas(Integer availableReplicas); public Boolean hasAvailableReplicas(); - public A addToConditions(java.lang.Integer index, V1ReplicationControllerCondition item); + public A addToConditions(Integer index, V1ReplicationControllerCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item); + public A setToConditions(Integer index, V1ReplicationControllerCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items); - public A removeAllFromConditions( - java.util.Collection - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -56,87 +51,68 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition buildCondition( - java.lang.Integer index); + public V1ReplicationControllerCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition buildFirstCondition(); + public V1ReplicationControllerCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition buildLastCondition(); + public V1ReplicationControllerCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> - predicate); + public V1ReplicationControllerCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1ReplicationControllerStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - addNewConditionLike( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item); + public V1ReplicationControllerStatusFluent.ConditionsNested addNewConditionLike( + V1ReplicationControllerCondition item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item); + public V1ReplicationControllerStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1ReplicationControllerCondition item); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1ReplicationControllerStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editFirstCondition(); + public V1ReplicationControllerStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editLastCondition(); + public V1ReplicationControllerStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> - predicate); + public V1ReplicationControllerStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.Integer getFullyLabeledReplicas(); + public Integer getFullyLabeledReplicas(); - public A withFullyLabeledReplicas(java.lang.Integer fullyLabeledReplicas); + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas); - public java.lang.Boolean hasFullyLabeledReplicas(); + public Boolean hasFullyLabeledReplicas(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.Integer getReadyReplicas(); + public Integer getReadyReplicas(); - public A withReadyReplicas(java.lang.Integer readyReplicas); + public A withReadyReplicas(Integer readyReplicas); - public java.lang.Boolean hasReadyReplicas(); + public Boolean hasReadyReplicas(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java index 29f4496761..d47b1b7c29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluentImpl.java @@ -27,8 +27,7 @@ public class V1ReplicationControllerStatusFluentImpl< extends BaseFluent implements V1ReplicationControllerStatusFluent { public V1ReplicationControllerStatusFluentImpl() {} - public V1ReplicationControllerStatusFluentImpl( - io.kubernetes.client.openapi.models.V1ReplicationControllerStatus instance) { + public V1ReplicationControllerStatusFluentImpl(V1ReplicationControllerStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); this.withConditions(instance.getConditions()); @@ -44,16 +43,16 @@ public V1ReplicationControllerStatusFluentImpl( private Integer availableReplicas; private ArrayList conditions; - private java.lang.Integer fullyLabeledReplicas; + private Integer fullyLabeledReplicas; private Long observedGeneration; - private java.lang.Integer readyReplicas; - private java.lang.Integer replicas; + private Integer readyReplicas; + private Integer replicas; - public java.lang.Integer getAvailableReplicas() { + public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(java.lang.Integer availableReplicas) { + public A withAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; return (A) this; } @@ -62,14 +61,12 @@ public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - public A addToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item) { + public A addToConditions(Integer index, V1ReplicationControllerCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(item); + V1ReplicationControllerConditionBuilder builder = + new V1ReplicationControllerConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -77,16 +74,12 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item) { + public A setToConditions(Integer index, V1ReplicationControllerCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(item); + V1ReplicationControllerConditionBuilder builder = + new V1ReplicationControllerConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -103,29 +96,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(item); + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = + new V1ReplicationControllerConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -134,9 +122,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(item); + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = + new V1ReplicationControllerConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -145,12 +133,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item : items) { - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = + new V1ReplicationControllerConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -160,15 +146,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder = - each.next(); + V1ReplicationControllerConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -183,37 +166,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition buildCondition( - java.lang.Integer index) { + public V1ReplicationControllerCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition - buildFirstCondition() { + public V1ReplicationControllerCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition buildLastCondition() { + public V1ReplicationControllerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder item : - conditions) { + public V1ReplicationControllerCondition buildMatchingCondition( + Predicate predicate) { + for (V1ReplicationControllerConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -221,12 +196,9 @@ public io.kubernetes.client.openapi.models.V1ReplicationControllerCondition buil return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder item : - conditions) { + public Boolean hasMatchingCondition( + Predicate predicate) { + for (V1ReplicationControllerConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -234,15 +206,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1ReplicationControllerCondition item : conditions) { this.addToConditions(item); } } else { @@ -257,14 +227,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item : conditions) { + for (V1ReplicationControllerCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -272,46 +242,36 @@ public V1ReplicationControllerStatusFluent.ConditionsNested addNewCondition() return new V1ReplicationControllerStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - addNewConditionLike( - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item) { + public V1ReplicationControllerStatusFluent.ConditionsNested addNewConditionLike( + V1ReplicationControllerCondition item) { return new V1ReplicationControllerStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item) { - return new io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1ReplicationControllerStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1ReplicationControllerCondition item) { + return new V1ReplicationControllerStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1ReplicationControllerStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editFirstCondition() { + public V1ReplicationControllerStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editLastCondition() { + public V1ReplicationControllerStatusFluent.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 io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder> - predicate) { + public V1ReplicationControllerStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -323,55 +283,55 @@ public V1ReplicationControllerStatusFluent.ConditionsNested addNewCondition() return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Integer getFullyLabeledReplicas() { + public Integer getFullyLabeledReplicas() { return this.fullyLabeledReplicas; } - public A withFullyLabeledReplicas(java.lang.Integer fullyLabeledReplicas) { + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; return (A) this; } - public java.lang.Boolean hasFullyLabeledReplicas() { + public Boolean hasFullyLabeledReplicas() { return this.fullyLabeledReplicas != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.Integer getReadyReplicas() { + public Integer getReadyReplicas() { return this.readyReplicas; } - public A withReadyReplicas(java.lang.Integer readyReplicas) { + public A withReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; return (A) this; } - public java.lang.Boolean hasReadyReplicas() { + public Boolean hasReadyReplicas() { return this.readyReplicas != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } @@ -442,25 +402,19 @@ public String toString() { class ConditionsNestedImpl extends V1ReplicationControllerConditionFluentImpl< V1ReplicationControllerStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1ReplicationControllerStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ReplicationControllerCondition item) { + implements V1ReplicationControllerStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1ReplicationControllerCondition item) { this.index = index; this.builder = new V1ReplicationControllerConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder(this); + this.builder = new V1ReplicationControllerConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1ReplicationControllerConditionBuilder builder; - java.lang.Integer index; + V1ReplicationControllerConditionBuilder builder; + Integer index; public N and() { return (N) 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 d600a7434c..17cfcf990f 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 @@ -16,9 +16,7 @@ public class V1ResourceAttributesBuilder extends V1ResourceAttributesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ResourceAttributes, - io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder> { + implements VisitableBuilder { public V1ResourceAttributesBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent) { } public V1ResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1ResourceAttributesFluent fluent, - java.lang.Boolean validationEnabled) { + V1ResourceAttributesFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceAttributes(), validationEnabled); } public V1ResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1ResourceAttributesFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceAttributes instance) { + V1ResourceAttributesFluent fluent, V1ResourceAttributes instance) { this(fluent, instance, false); } public V1ResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1ResourceAttributesFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceAttributes instance, - java.lang.Boolean validationEnabled) { + V1ResourceAttributesFluent fluent, + V1ResourceAttributes instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withGroup(instance.getGroup()); @@ -65,14 +61,11 @@ public V1ResourceAttributesBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1ResourceAttributes instance) { + public V1ResourceAttributesBuilder(V1ResourceAttributes instance) { this(instance, false); } - public V1ResourceAttributesBuilder( - io.kubernetes.client.openapi.models.V1ResourceAttributes instance, - java.lang.Boolean validationEnabled) { + public V1ResourceAttributesBuilder(V1ResourceAttributes instance, Boolean validationEnabled) { this.fluent = this; this.withGroup(instance.getGroup()); @@ -91,10 +84,10 @@ public V1ResourceAttributesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceAttributesFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceAttributesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceAttributes build() { + public V1ResourceAttributes build() { V1ResourceAttributes buildable = new V1ResourceAttributes(); buildable.setGroup(fluent.getGroup()); buildable.setName(fluent.getName()); 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 22ceae55a7..7bb2b65613 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 @@ -19,43 +19,43 @@ public interface V1ResourceAttributesFluent { public String getGroup(); - public A withGroup(java.lang.String group); + public A withGroup(String group); public Boolean hasGroup(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); - public java.lang.String getResource(); + public String getResource(); - public A withResource(java.lang.String resource); + public A withResource(String resource); - public java.lang.Boolean hasResource(); + public Boolean hasResource(); - public java.lang.String getSubresource(); + public String getSubresource(); - public A withSubresource(java.lang.String subresource); + public A withSubresource(String subresource); - public java.lang.Boolean hasSubresource(); + public Boolean hasSubresource(); - public java.lang.String getVerb(); + public String getVerb(); - public A withVerb(java.lang.String verb); + public A withVerb(String verb); - public java.lang.Boolean hasVerb(); + public Boolean hasVerb(); - public java.lang.String getVersion(); + public String getVersion(); - public A withVersion(java.lang.String version); + public A withVersion(String version); - public java.lang.Boolean hasVersion(); + public Boolean hasVersion(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java index 7c80e5581b..a8d2492ef0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluentImpl.java @@ -20,8 +20,7 @@ public class V1ResourceAttributesFluentImpl implements V1ResourceAttributesFluent { public V1ResourceAttributesFluentImpl() {} - public V1ResourceAttributesFluentImpl( - io.kubernetes.client.openapi.models.V1ResourceAttributes instance) { + public V1ResourceAttributesFluentImpl(V1ResourceAttributes instance) { this.withGroup(instance.getGroup()); this.withName(instance.getName()); @@ -38,18 +37,18 @@ public V1ResourceAttributesFluentImpl( } private String group; - private java.lang.String name; - private java.lang.String namespace; - private java.lang.String resource; - private java.lang.String subresource; - private java.lang.String verb; - private java.lang.String version; - - public java.lang.String getGroup() { + private String name; + private String namespace; + private String resource; + private String subresource; + private String verb; + private String version; + + public String getGroup() { return this.group; } - public A withGroup(java.lang.String group) { + public A withGroup(String group) { this.group = group; return (A) this; } @@ -58,81 +57,81 @@ public Boolean hasGroup() { return this.group != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } - public java.lang.String getResource() { + public String getResource() { return this.resource; } - public A withResource(java.lang.String resource) { + public A withResource(String resource) { this.resource = resource; return (A) this; } - public java.lang.Boolean hasResource() { + public Boolean hasResource() { return this.resource != null; } - public java.lang.String getSubresource() { + public String getSubresource() { return this.subresource; } - public A withSubresource(java.lang.String subresource) { + public A withSubresource(String subresource) { this.subresource = subresource; return (A) this; } - public java.lang.Boolean hasSubresource() { + public Boolean hasSubresource() { return this.subresource != null; } - public java.lang.String getVerb() { + public String getVerb() { return this.verb; } - public A withVerb(java.lang.String verb) { + public A withVerb(String verb) { this.verb = verb; return (A) this; } - public java.lang.Boolean hasVerb() { + public Boolean hasVerb() { return this.verb != null; } - public java.lang.String getVersion() { + public String getVersion() { return this.version; } - public A withVersion(java.lang.String version) { + public A withVersion(String version) { this.version = version; return (A) this; } - public java.lang.Boolean hasVersion() { + public Boolean hasVersion() { return this.version != null; } @@ -157,7 +156,7 @@ public int hashCode() { group, name, namespace, resource, subresource, verb, version, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (group != null) { 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 3023c64cdb..3932eda6d9 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 @@ -16,9 +16,7 @@ public class V1ResourceFieldSelectorBuilder extends V1ResourceFieldSelectorFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ResourceFieldSelector, - V1ResourceFieldSelectorBuilder> { + implements VisitableBuilder { public V1ResourceFieldSelectorBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1ResourceFieldSelectorBuilder(Boolean validationEnabled) { this(new V1ResourceFieldSelector(), validationEnabled); } - public V1ResourceFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent fluent) { + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent) { this(fluent, false); } public V1ResourceFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent fluent, - java.lang.Boolean validationEnabled) { + V1ResourceFieldSelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceFieldSelector(), validationEnabled); } public V1ResourceFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance) { + V1ResourceFieldSelectorFluent fluent, V1ResourceFieldSelector instance) { this(fluent, instance, false); } public V1ResourceFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance, - java.lang.Boolean validationEnabled) { + V1ResourceFieldSelectorFluent fluent, + V1ResourceFieldSelector instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerName(instance.getContainerName()); @@ -58,14 +53,12 @@ public V1ResourceFieldSelectorBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance) { + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelector instance) { this(instance, false); } public V1ResourceFieldSelectorBuilder( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance, - java.lang.Boolean validationEnabled) { + V1ResourceFieldSelector instance, Boolean validationEnabled) { this.fluent = this; this.withContainerName(instance.getContainerName()); @@ -76,10 +69,10 @@ public V1ResourceFieldSelectorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceFieldSelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceFieldSelector build() { + public V1ResourceFieldSelector build() { V1ResourceFieldSelector buildable = new V1ResourceFieldSelector(); buildable.setContainerName(fluent.getContainerName()); buildable.setDivisor(fluent.getDivisor()); 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 a9bd0d00d8..ab02ae1954 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 @@ -20,21 +20,21 @@ public interface V1ResourceFieldSelectorFluent { public String getContainerName(); - public A withContainerName(java.lang.String containerName); + public A withContainerName(String containerName); public Boolean hasContainerName(); public Quantity getDivisor(); - public A withDivisor(io.kubernetes.client.custom.Quantity divisor); + public A withDivisor(Quantity divisor); - public java.lang.Boolean hasDivisor(); + public Boolean hasDivisor(); - public A withNewDivisor(java.lang.String value); + public A withNewDivisor(String value); - public java.lang.String getResource(); + public String getResource(); - public A withResource(java.lang.String resource); + public A withResource(String resource); - public java.lang.Boolean hasResource(); + public Boolean hasResource(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java index 4891127417..e54a614c9a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluentImpl.java @@ -21,8 +21,7 @@ public class V1ResourceFieldSelectorFluentImpl implements V1ResourceFieldSelectorFluent { public V1ResourceFieldSelectorFluentImpl() {} - public V1ResourceFieldSelectorFluentImpl( - io.kubernetes.client.openapi.models.V1ResourceFieldSelector instance) { + public V1ResourceFieldSelectorFluentImpl(V1ResourceFieldSelector instance) { this.withContainerName(instance.getContainerName()); this.withDivisor(instance.getDivisor()); @@ -32,13 +31,13 @@ public V1ResourceFieldSelectorFluentImpl( private String containerName; private Quantity divisor; - private java.lang.String resource; + private String resource; - public java.lang.String getContainerName() { + public String getContainerName() { return this.containerName; } - public A withContainerName(java.lang.String containerName) { + public A withContainerName(String containerName) { this.containerName = containerName; return (A) this; } @@ -47,33 +46,33 @@ public Boolean hasContainerName() { return this.containerName != null; } - public io.kubernetes.client.custom.Quantity getDivisor() { + public Quantity getDivisor() { return this.divisor; } - public A withDivisor(io.kubernetes.client.custom.Quantity divisor) { + public A withDivisor(Quantity divisor) { this.divisor = divisor; return (A) this; } - public java.lang.Boolean hasDivisor() { + public Boolean hasDivisor() { return this.divisor != null; } - public A withNewDivisor(java.lang.String value) { + public A withNewDivisor(String value) { return (A) withDivisor(new Quantity(value)); } - public java.lang.String getResource() { + public String getResource() { return this.resource; } - public A withResource(java.lang.String resource) { + public A withResource(String resource) { this.resource = resource; return (A) this; } - public java.lang.Boolean hasResource() { + public Boolean hasResource() { return this.resource != null; } @@ -93,7 +92,7 @@ public int hashCode() { return java.util.Objects.hash(containerName, divisor, resource, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerName != null) { 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 3e5548f3ac..7a69e91a9e 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluentImpl - implements VisitableBuilder< - V1ResourceQuota, io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder> { + implements VisitableBuilder { public V1ResourceQuotaBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent) { this(fluent, false); } - public V1ResourceQuotaBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceQuota(), validationEnabled); } - public V1ResourceQuotaBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuota instance) { + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent, V1ResourceQuota instance) { this(fluent, instance, false); } public V1ResourceQuotaBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuota instance, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaFluent fluent, V1ResourceQuota instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,13 +52,11 @@ public V1ResourceQuotaBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceQuotaBuilder(io.kubernetes.client.openapi.models.V1ResourceQuota instance) { + public V1ResourceQuotaBuilder(V1ResourceQuota instance) { this(instance, false); } - public V1ResourceQuotaBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuota instance, - java.lang.Boolean validationEnabled) { + public V1ResourceQuotaBuilder(V1ResourceQuota instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +71,10 @@ public V1ResourceQuotaBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceQuotaFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceQuotaFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceQuota build() { + public V1ResourceQuota build() { V1ResourceQuota buildable = new V1ResourceQuota(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 8d52754140..a801710e8c 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 @@ -19,15 +19,15 @@ public interface V1ResourceQuotaFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,77 +37,69 @@ public interface V1ResourceQuotaFluent> exten @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ResourceQuotaFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ResourceQuotaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested editMetadata(); + public V1ResourceQuotaFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - editOrNewMetadata(); + public V1ResourceQuotaFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ResourceQuotaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceQuotaSpec getSpec(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpec buildSpec(); + public V1ResourceQuotaSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1ResourceQuotaSpec spec); + public A withSpec(V1ResourceQuotaSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1ResourceQuotaFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec item); + public V1ResourceQuotaFluent.SpecNested withNewSpecLike(V1ResourceQuotaSpec item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested editSpec(); + public V1ResourceQuotaFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested editOrNewSpec(); + public V1ResourceQuotaFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec item); + public V1ResourceQuotaFluent.SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceQuotaStatus getStatus(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaStatus buildStatus(); + public V1ResourceQuotaStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1ResourceQuotaStatus status); + public A withStatus(V1ResourceQuotaStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1ResourceQuotaFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1ResourceQuotaStatus item); + public V1ResourceQuotaFluent.StatusNested withNewStatusLike(V1ResourceQuotaStatus item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested editStatus(); + public V1ResourceQuotaFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested - editOrNewStatus(); + public V1ResourceQuotaFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1ResourceQuotaStatus item); + public V1ResourceQuotaFluent.StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -117,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1ResourceQuotaSpecFluent> { + extends Nested, V1ResourceQuotaSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1ResourceQuotaStatusFluent> { + extends Nested, V1ResourceQuotaStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java index 596bd231c5..1b84684555 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluentImpl.java @@ -21,7 +21,7 @@ public class V1ResourceQuotaFluentImpl> exten implements V1ResourceQuotaFluent { public V1ResourceQuotaFluentImpl() {} - public V1ResourceQuotaFluentImpl(io.kubernetes.client.openapi.models.V1ResourceQuota instance) { + public V1ResourceQuotaFluentImpl(V1ResourceQuota instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1ResourceQuotaFluentImpl(io.kubernetes.client.openapi.models.V1ResourceQ } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1ResourceQuotaSpecBuilder spec; private V1ResourceQuotaStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,26 +99,20 @@ public V1ResourceQuotaFluent.MetadataNested withNewMetadata() { return new V1ResourceQuotaFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ResourceQuotaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ResourceQuotaFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - editMetadata() { + public V1ResourceQuotaFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - editOrNewMetadata() { + public V1ResourceQuotaFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ResourceQuotaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -124,25 +121,28 @@ public V1ResourceQuotaFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpec getSpec() { + @Deprecated + public V1ResourceQuotaSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpec buildSpec() { + public V1ResourceQuotaSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1ResourceQuotaSpec spec) { + public A withSpec(V1ResourceQuotaSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1ResourceQuotaSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -150,24 +150,20 @@ public V1ResourceQuotaFluent.SpecNested withNewSpec() { return new V1ResourceQuotaFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec item) { - return new io.kubernetes.client.openapi.models.V1ResourceQuotaFluentImpl.SpecNestedImpl(item); + public V1ResourceQuotaFluent.SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { + return new V1ResourceQuotaFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested editSpec() { + public V1ResourceQuotaFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested editOrNewSpec() { + public V1ResourceQuotaFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1ResourceQuotaSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1ResourceQuotaSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec item) { + public V1ResourceQuotaFluent.SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -176,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested e * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceQuotaStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceQuotaStatus buildStatus() { + public V1ResourceQuotaStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1ResourceQuotaStatus status) { + public A withStatus(V1ResourceQuotaStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1ResourceQuotaStatusBuilder(status); + this.status = new V1ResourceQuotaStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -202,25 +201,20 @@ public V1ResourceQuotaFluent.StatusNested withNewStatus() { return new V1ResourceQuotaFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1ResourceQuotaStatus item) { - return new io.kubernetes.client.openapi.models.V1ResourceQuotaFluentImpl.StatusNestedImpl(item); + public V1ResourceQuotaFluent.StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { + return new V1ResourceQuotaFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested editStatus() { + public V1ResourceQuotaFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested - editOrNewStatus() { + public V1ResourceQuotaFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1ResourceQuotaStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1ResourceQuotaStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1ResourceQuotaStatus item) { + public V1ResourceQuotaFluent.StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -241,7 +235,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -270,17 +264,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.MetadataNested, - Nested { + implements V1ResourceQuotaFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ResourceQuotaFluentImpl.this.withMetadata(builder.build()); @@ -292,17 +285,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1ResourceQuotaSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1ResourceQuotaFluent.SpecNested, Nested { SpecNestedImpl(V1ResourceQuotaSpec item) { this.builder = new V1ResourceQuotaSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceQuotaSpecBuilder(this); + this.builder = new V1ResourceQuotaSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceQuotaSpecBuilder builder; + V1ResourceQuotaSpecBuilder builder; public N and() { return (N) V1ResourceQuotaFluentImpl.this.withSpec(builder.build()); @@ -315,17 +307,16 @@ public N endSpec() { class StatusNestedImpl extends V1ResourceQuotaStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ResourceQuotaFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1ResourceQuotaFluent.StatusNested, Nested { StatusNestedImpl(V1ResourceQuotaStatus item) { this.builder = new V1ResourceQuotaStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceQuotaStatusBuilder(this); + this.builder = new V1ResourceQuotaStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceQuotaStatusBuilder builder; + V1ResourceQuotaStatusBuilder builder; public N and() { return (N) V1ResourceQuotaFluentImpl.this.withStatus(builder.build()); 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 555ce53c4e..d8c3222adc 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 @@ -16,8 +16,7 @@ public class V1ResourceQuotaListBuilder extends V1ResourceQuotaListFluentImpl - implements VisitableBuilder< - V1ResourceQuotaList, io.kubernetes.client.openapi.models.V1ResourceQuotaListBuilder> { + implements VisitableBuilder { public V1ResourceQuotaListBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent) { } public V1ResourceQuotaListBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceQuotaList(), validationEnabled); } public V1ResourceQuotaListBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuotaList instance) { + V1ResourceQuotaListFluent fluent, V1ResourceQuotaList instance) { this(fluent, instance, false); } public V1ResourceQuotaListBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuotaList instance, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaListFluent fluent, + V1ResourceQuotaList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,14 +55,11 @@ public V1ResourceQuotaListBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceQuotaListBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaList instance) { + public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance) { this(instance, false); } - public V1ResourceQuotaListBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaList instance, - java.lang.Boolean validationEnabled) { + public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +72,10 @@ public V1ResourceQuotaListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceQuotaListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceQuotaList build() { + public V1ResourceQuotaList build() { V1ResourceQuotaList buildable = new V1ResourceQuotaList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 f2c38bb4ab..2e162875cd 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 @@ -23,23 +23,21 @@ public interface V1ResourceQuotaListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item); + public A addToItems(Integer index, V1ResourceQuota item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item); + public A setToItems(Integer index, V1ResourceQuota item); public A addToItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ResourceQuota buildItem(java.lang.Integer index); + public V1ResourceQuota buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ResourceQuota buildFirstItem(); + public V1ResourceQuota buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ResourceQuota buildLastItem(); + public V1ResourceQuota buildLastItem(); - public io.kubernetes.client.openapi.models.V1ResourceQuota buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ResourceQuota buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ResourceQuotaListFluent.ItemsNested addNewItem(); - public V1ResourceQuotaListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ResourceQuota item); + public V1ResourceQuotaListFluent.ItemsNested addNewItemLike(V1ResourceQuota item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item); + public V1ResourceQuotaListFluent.ItemsNested setNewItemLike( + Integer index, V1ResourceQuota item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ResourceQuotaListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - editFirstItem(); + public V1ResourceQuotaListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - editLastItem(); + public V1ResourceQuotaListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1ResourceQuotaListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ResourceQuotaListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ResourceQuotaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - editMetadata(); + public V1ResourceQuotaListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - editOrNewMetadata(); + public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ResourceQuotaFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java index b43e8f2eb0..575f245f17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluentImpl.java @@ -26,8 +26,7 @@ public class V1ResourceQuotaListFluentImpl implements V1ResourceQuotaListFluent { public V1ResourceQuotaListFluentImpl() {} - public V1ResourceQuotaListFluentImpl( - io.kubernetes.client.openapi.models.V1ResourceQuotaList instance) { + public V1ResourceQuotaListFluentImpl(V1ResourceQuotaList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1ResourceQuotaListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item) { + public A addToItems(Integer index, V1ResourceQuota item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder(item); + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item) { + public A setToItems(Integer index, V1ResourceQuota item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder(item); + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ResourceQuota item : items) { - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ResourceQuota item : items) { - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder(item); + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1ResourceQuota item : items) { - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder = each.next(); + V1ResourceQuotaBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ResourceQuota buildItem(java.lang.Integer index) { + public V1ResourceQuota buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ResourceQuota buildFirstItem() { + public V1ResourceQuota buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ResourceQuota buildLastItem() { + public V1ResourceQuota buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ResourceQuota buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder item : items) { + public V1ResourceQuota buildMatchingItem(Predicate predicate) { + for (V1ResourceQuotaBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ResourceQuota buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceQuotaBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ResourceQuota item : items) { + this.items = new ArrayList(); + for (V1ResourceQuota item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ResourceQuota item : items) { + for (V1ResourceQuota item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,41 +221,33 @@ public V1ResourceQuotaListFluent.ItemsNested addNewItem() { return new V1ResourceQuotaListFluentImpl.ItemsNestedImpl(); } - public V1ResourceQuotaListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ResourceQuota item) { + public V1ResourceQuotaListFluent.ItemsNested addNewItemLike(V1ResourceQuota item) { return new V1ResourceQuotaListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item) { - return new io.kubernetes.client.openapi.models.V1ResourceQuotaListFluentImpl.ItemsNestedImpl( - index, item); + public V1ResourceQuotaListFluent.ItemsNested setNewItemLike( + Integer index, V1ResourceQuota item) { + return new V1ResourceQuotaListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ResourceQuotaListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - editFirstItem() { + public V1ResourceQuotaListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - editLastItem() { + public V1ResourceQuotaListFluent.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 io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ResourceQuotaListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -286,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.ItemsNested return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -304,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -330,27 +306,20 @@ public V1ResourceQuotaListFluent.MetadataNested withNewMetadata() { return new V1ResourceQuotaListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ResourceQuotaListFluentImpl.MetadataNestedImpl( - item); + public V1ResourceQuotaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ResourceQuotaListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - editMetadata() { + public V1ResourceQuotaListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - editOrNewMetadata() { + public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ResourceQuotaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -370,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -396,19 +365,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ResourceQuotaFluentImpl> implements V1ResourceQuotaListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceQuota item) { + ItemsNestedImpl(Integer index, V1ResourceQuota item) { this.index = index; this.builder = new V1ResourceQuotaBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder(this); + this.builder = new V1ResourceQuotaBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceQuotaBuilder builder; - java.lang.Integer index; + V1ResourceQuotaBuilder builder; + Integer index; public N and() { return (N) V1ResourceQuotaListFluentImpl.this.setToItems(index, builder.build()); @@ -421,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ResourceQuotaListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ResourceQuotaListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ResourceQuotaListFluentImpl.this.withMetadata(builder.build()); 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 0d90c594fc..cca668d4f4 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 @@ -16,8 +16,7 @@ public class V1ResourceQuotaSpecBuilder extends V1ResourceQuotaSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec, V1ResourceQuotaSpecBuilder> { + implements VisitableBuilder { public V1ResourceQuotaSpecBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent) { } public V1ResourceQuotaSpecBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceQuotaSpec(), validationEnabled); } public V1ResourceQuotaSpecBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec instance) { + V1ResourceQuotaSpecFluent fluent, V1ResourceQuotaSpec instance) { this(fluent, instance, false); } public V1ResourceQuotaSpecBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec instance, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaSpecFluent fluent, + V1ResourceQuotaSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withHard(instance.getHard()); @@ -56,14 +53,11 @@ public V1ResourceQuotaSpecBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceQuotaSpecBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec instance) { + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance) { this(instance, false); } - public V1ResourceQuotaSpecBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec instance, - java.lang.Boolean validationEnabled) { + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance, Boolean validationEnabled) { this.fluent = this; this.withHard(instance.getHard()); @@ -74,10 +68,10 @@ public V1ResourceQuotaSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceQuotaSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpec build() { + public V1ResourceQuotaSpec build() { V1ResourceQuotaSpec buildable = new V1ResourceQuotaSpec(); buildable.setHard(fluent.getHard()); buildable.setScopeSelector(fluent.getScopeSelector()); 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 5dc7723e55..3b5fc30037 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 @@ -25,17 +25,15 @@ public interface V1ResourceQuotaSpecFluent { public A addToHard(String key, Quantity value); - public A addToHard(Map map); + public A addToHard(Map map); - public A removeFromHard(java.lang.String key); + public A removeFromHard(String key); - public A removeFromHard( - java.util.Map map); + public A removeFromHard(Map map); - public java.util.Map getHard(); + public Map getHard(); - public A withHard( - java.util.Map hard); + public A withHard(Map hard); public Boolean hasHard(); @@ -47,56 +45,53 @@ public A withHard( @Deprecated public V1ScopeSelector getScopeSelector(); - public io.kubernetes.client.openapi.models.V1ScopeSelector buildScopeSelector(); + public V1ScopeSelector buildScopeSelector(); - public A withScopeSelector(io.kubernetes.client.openapi.models.V1ScopeSelector scopeSelector); + public A withScopeSelector(V1ScopeSelector scopeSelector); - public java.lang.Boolean hasScopeSelector(); + public Boolean hasScopeSelector(); public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelector(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - withNewScopeSelectorLike(io.kubernetes.client.openapi.models.V1ScopeSelector item); + public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelectorLike( + V1ScopeSelector item); - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - editScopeSelector(); + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editScopeSelector(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - editOrNewScopeSelector(); + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelector(); - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - editOrNewScopeSelectorLike(io.kubernetes.client.openapi.models.V1ScopeSelector item); + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelectorLike( + V1ScopeSelector item); - public A addToScopes(Integer index, java.lang.String item); + public A addToScopes(Integer index, String item); - public A setToScopes(java.lang.Integer index, java.lang.String item); + public A setToScopes(Integer index, String item); public A addToScopes(java.lang.String... items); - public A addAllToScopes(Collection items); + public A addAllToScopes(Collection items); public A removeFromScopes(java.lang.String... items); - public A removeAllFromScopes(java.util.Collection items); + public A removeAllFromScopes(Collection items); - public List getScopes(); + public List getScopes(); - public java.lang.String getScope(java.lang.Integer index); + public String getScope(Integer index); - public java.lang.String getFirstScope(); + public String getFirstScope(); - public java.lang.String getLastScope(); + public String getLastScope(); - public java.lang.String getMatchingScope(Predicate predicate); + public String getMatchingScope(Predicate predicate); - public java.lang.Boolean hasMatchingScope( - java.util.function.Predicate predicate); + public Boolean hasMatchingScope(Predicate predicate); - public A withScopes(java.util.List scopes); + public A withScopes(List scopes); public A withScopes(java.lang.String... scopes); - public java.lang.Boolean hasScopes(); + public Boolean hasScopes(); public interface ScopeSelectorNested extends Nested, V1ScopeSelectorFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java index 3c93744a97..00b947414c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluentImpl.java @@ -28,8 +28,7 @@ public class V1ResourceQuotaSpecFluentImpl implements V1ResourceQuotaSpecFluent { public V1ResourceQuotaSpecFluentImpl() {} - public V1ResourceQuotaSpecFluentImpl( - io.kubernetes.client.openapi.models.V1ResourceQuotaSpec instance) { + public V1ResourceQuotaSpecFluentImpl(V1ResourceQuotaSpec instance) { this.withHard(instance.getHard()); this.withScopeSelector(instance.getScopeSelector()); @@ -39,9 +38,9 @@ public V1ResourceQuotaSpecFluentImpl( private Map hard; private V1ScopeSelectorBuilder scopeSelector; - private List scopes; + private List scopes; - public A addToHard(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToHard(String key, Quantity value) { if (this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } @@ -51,9 +50,9 @@ public A addToHard(java.lang.String key, io.kubernetes.client.custom.Quantity va return (A) this; } - public A addToHard(java.util.Map map) { + public A addToHard(Map map) { if (this.hard == null && map != null) { - this.hard = new java.util.LinkedHashMap(); + this.hard = new LinkedHashMap(); } if (map != null) { this.hard.putAll(map); @@ -61,7 +60,7 @@ public A addToHard(java.util.Map map) { + public A removeFromHard(Map map) { if (this.hard == null) { return (A) this; } @@ -86,16 +84,15 @@ public A removeFromHard( return (A) this; } - public java.util.Map getHard() { + public Map getHard() { return this.hard; } - public A withHard( - java.util.Map hard) { + public A withHard(Map hard) { if (hard == null) { this.hard = null; } else { - this.hard = new java.util.LinkedHashMap(hard); + this.hard = new LinkedHashMap(hard); } return (A) this; } @@ -114,21 +111,23 @@ public V1ScopeSelector getScopeSelector() { return this.scopeSelector != null ? this.scopeSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1ScopeSelector buildScopeSelector() { + public V1ScopeSelector buildScopeSelector() { return this.scopeSelector != null ? this.scopeSelector.build() : null; } - public A withScopeSelector(io.kubernetes.client.openapi.models.V1ScopeSelector scopeSelector) { + public A withScopeSelector(V1ScopeSelector scopeSelector) { _visitables.get("scopeSelector").remove(this.scopeSelector); if (scopeSelector != null) { - this.scopeSelector = - new io.kubernetes.client.openapi.models.V1ScopeSelectorBuilder(scopeSelector); + this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); _visitables.get("scopeSelector").add(this.scopeSelector); + } else { + this.scopeSelector = null; + _visitables.get("scopeSelector").remove(this.scopeSelector); } return (A) this; } - public java.lang.Boolean hasScopeSelector() { + public Boolean hasScopeSelector() { return this.scopeSelector != null; } @@ -136,40 +135,36 @@ public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelector() { return new V1ResourceQuotaSpecFluentImpl.ScopeSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - withNewScopeSelectorLike(io.kubernetes.client.openapi.models.V1ScopeSelector item) { + public V1ResourceQuotaSpecFluent.ScopeSelectorNested withNewScopeSelectorLike( + V1ScopeSelector item) { return new V1ResourceQuotaSpecFluentImpl.ScopeSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - editScopeSelector() { + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editScopeSelector() { return withNewScopeSelectorLike(getScopeSelector()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - editOrNewScopeSelector() { + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelector() { return withNewScopeSelectorLike( - getScopeSelector() != null - ? getScopeSelector() - : new io.kubernetes.client.openapi.models.V1ScopeSelectorBuilder().build()); + getScopeSelector() != null ? getScopeSelector() : new V1ScopeSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested - editOrNewScopeSelectorLike(io.kubernetes.client.openapi.models.V1ScopeSelector item) { + public V1ResourceQuotaSpecFluent.ScopeSelectorNested editOrNewScopeSelectorLike( + V1ScopeSelector item) { return withNewScopeSelectorLike(getScopeSelector() != null ? getScopeSelector() : item); } - public A addToScopes(Integer index, java.lang.String item) { + public A addToScopes(Integer index, String item) { if (this.scopes == null) { - this.scopes = new ArrayList(); + this.scopes = new ArrayList(); } this.scopes.add(index, item); return (A) this; } - public A setToScopes(java.lang.Integer index, java.lang.String item) { + public A setToScopes(Integer index, String item) { if (this.scopes == null) { - this.scopes = new java.util.ArrayList(); + this.scopes = new ArrayList(); } this.scopes.set(index, item); return (A) this; @@ -177,26 +172,26 @@ public A setToScopes(java.lang.Integer index, java.lang.String item) { public A addToScopes(java.lang.String... items) { if (this.scopes == null) { - this.scopes = new java.util.ArrayList(); + this.scopes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.scopes.add(item); } return (A) this; } - public A addAllToScopes(Collection items) { + public A addAllToScopes(Collection items) { if (this.scopes == null) { - this.scopes = new java.util.ArrayList(); + this.scopes = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.scopes.add(item); } return (A) this; } public A removeFromScopes(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.scopes != null) { this.scopes.remove(item); } @@ -204,8 +199,8 @@ public A removeFromScopes(java.lang.String... items) { return (A) this; } - public A removeAllFromScopes(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromScopes(Collection items) { + for (String item : items) { if (this.scopes != null) { this.scopes.remove(item); } @@ -213,24 +208,24 @@ public A removeAllFromScopes(java.util.Collection items) { return (A) this; } - public java.util.List getScopes() { + public List getScopes() { return this.scopes; } - public java.lang.String getScope(java.lang.Integer index) { + public String getScope(Integer index) { return this.scopes.get(index); } - public java.lang.String getFirstScope() { + public String getFirstScope() { return this.scopes.get(0); } - public java.lang.String getLastScope() { + public String getLastScope() { return this.scopes.get(scopes.size() - 1); } - public java.lang.String getMatchingScope(Predicate predicate) { - for (java.lang.String item : scopes) { + public String getMatchingScope(Predicate predicate) { + for (String item : scopes) { if (predicate.test(item)) { return item; } @@ -238,9 +233,8 @@ public java.lang.String getMatchingScope(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingScope( - java.util.function.Predicate predicate) { - for (java.lang.String item : scopes) { + public Boolean hasMatchingScope(Predicate predicate) { + for (String item : scopes) { if (predicate.test(item)) { return true; } @@ -248,10 +242,10 @@ public java.lang.Boolean hasMatchingScope( return false; } - public A withScopes(java.util.List scopes) { + public A withScopes(List scopes) { if (scopes != null) { - this.scopes = new java.util.ArrayList(); - for (java.lang.String item : scopes) { + this.scopes = new ArrayList(); + for (String item : scopes) { this.addToScopes(item); } } else { @@ -265,14 +259,14 @@ public A withScopes(java.lang.String... scopes) { this.scopes.clear(); } if (scopes != null) { - for (java.lang.String item : scopes) { + for (String item : scopes) { this.addToScopes(item); } } return (A) this; } - public java.lang.Boolean hasScopes() { + public Boolean hasScopes() { return scopes != null && !scopes.isEmpty(); } @@ -292,7 +286,7 @@ public int hashCode() { return java.util.Objects.hash(hard, scopeSelector, scopes, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (hard != null && !hard.isEmpty()) { @@ -313,18 +307,16 @@ public java.lang.String toString() { class ScopeSelectorNestedImpl extends V1ScopeSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1ResourceQuotaSpecFluent.ScopeSelectorNested< - N>, - Nested { + implements V1ResourceQuotaSpecFluent.ScopeSelectorNested, Nested { ScopeSelectorNestedImpl(V1ScopeSelector item) { this.builder = new V1ScopeSelectorBuilder(this, item); } ScopeSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ScopeSelectorBuilder(this); + this.builder = new V1ScopeSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1ScopeSelectorBuilder builder; + V1ScopeSelectorBuilder builder; public N and() { return (N) V1ResourceQuotaSpecFluentImpl.this.withScopeSelector(builder.build()); 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 5d844b45a4..0a8dba1242 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 @@ -16,8 +16,7 @@ public class V1ResourceQuotaStatusBuilder extends V1ResourceQuotaStatusFluentImpl - implements VisitableBuilder< - V1ResourceQuotaStatus, io.kubernetes.client.openapi.models.V1ResourceQuotaStatusBuilder> { + implements VisitableBuilder { public V1ResourceQuotaStatusBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1ResourceQuotaStatusBuilder(Boolean validationEnabled) { this(new V1ResourceQuotaStatus(), validationEnabled); } - public V1ResourceQuotaStatusBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatusFluent fluent) { + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent) { this(fluent, false); } public V1ResourceQuotaStatusBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceQuotaStatus(), validationEnabled); } public V1ResourceQuotaStatusBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuotaStatus instance) { + V1ResourceQuotaStatusFluent fluent, V1ResourceQuotaStatus instance) { this(fluent, instance, false); } public V1ResourceQuotaStatusBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceQuotaStatus instance, - java.lang.Boolean validationEnabled) { + V1ResourceQuotaStatusFluent fluent, + V1ResourceQuotaStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withHard(instance.getHard()); @@ -55,14 +51,11 @@ public V1ResourceQuotaStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceQuotaStatusBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatus instance) { + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance) { this(instance, false); } - public V1ResourceQuotaStatusBuilder( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatus instance, - java.lang.Boolean validationEnabled) { + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance, Boolean validationEnabled) { this.fluent = this; this.withHard(instance.getHard()); @@ -71,10 +64,10 @@ public V1ResourceQuotaStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceQuotaStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceQuotaStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceQuotaStatus build() { + public V1ResourceQuotaStatus build() { V1ResourceQuotaStatus buildable = new V1ResourceQuotaStatus(); buildable.setHard(fluent.getHard()); buildable.setUsed(fluent.getUsed()); 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 120f2badd5..940b185760 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java @@ -21,33 +21,29 @@ public interface V1ResourceQuotaStatusFluent { public A addToHard(String key, Quantity value); - public A addToHard(Map map); + public A addToHard(Map map); - public A removeFromHard(java.lang.String key); + public A removeFromHard(String key); - public A removeFromHard( - java.util.Map map); + public A removeFromHard(Map map); - public java.util.Map getHard(); + public Map getHard(); - public A withHard( - java.util.Map hard); + public A withHard(Map hard); public Boolean hasHard(); - public A addToUsed(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToUsed(String key, Quantity value); - public A addToUsed(java.util.Map map); + public A addToUsed(Map map); - public A removeFromUsed(java.lang.String key); + public A removeFromUsed(String key); - public A removeFromUsed( - java.util.Map map); + public A removeFromUsed(Map map); - public java.util.Map getUsed(); + public Map getUsed(); - public A withUsed( - java.util.Map used); + public A withUsed(Map used); - public java.lang.Boolean hasUsed(); + public Boolean hasUsed(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java index be7d59e090..8d241dccaf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluentImpl.java @@ -23,17 +23,16 @@ public class V1ResourceQuotaStatusFluentImpl implements V1ResourceQuotaStatusFluent { public V1ResourceQuotaStatusFluentImpl() {} - public V1ResourceQuotaStatusFluentImpl( - io.kubernetes.client.openapi.models.V1ResourceQuotaStatus instance) { + public V1ResourceQuotaStatusFluentImpl(V1ResourceQuotaStatus instance) { this.withHard(instance.getHard()); this.withUsed(instance.getUsed()); } private Map hard; - private java.util.Map used; + private Map used; - public A addToHard(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToHard(String key, Quantity value) { if (this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } @@ -43,9 +42,9 @@ public A addToHard(java.lang.String key, io.kubernetes.client.custom.Quantity va return (A) this; } - public A addToHard(java.util.Map map) { + public A addToHard(Map map) { if (this.hard == null && map != null) { - this.hard = new java.util.LinkedHashMap(); + this.hard = new LinkedHashMap(); } if (map != null) { this.hard.putAll(map); @@ -53,7 +52,7 @@ public A addToHard(java.util.Map map) { + public A removeFromHard(Map map) { if (this.hard == null) { return (A) this; } @@ -78,16 +76,15 @@ public A removeFromHard( return (A) this; } - public java.util.Map getHard() { + public Map getHard() { return this.hard; } - public A withHard( - java.util.Map hard) { + public A withHard(Map hard) { if (hard == null) { this.hard = null; } else { - this.hard = new java.util.LinkedHashMap(hard); + this.hard = new LinkedHashMap(hard); } return (A) this; } @@ -96,9 +93,9 @@ public Boolean hasHard() { return this.hard != null; } - public A addToUsed(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToUsed(String key, Quantity value) { if (this.used == null && key != null && value != null) { - this.used = new java.util.LinkedHashMap(); + this.used = new LinkedHashMap(); } if (key != null && value != null) { this.used.put(key, value); @@ -106,9 +103,9 @@ public A addToUsed(java.lang.String key, io.kubernetes.client.custom.Quantity va return (A) this; } - public A addToUsed(java.util.Map map) { + public A addToUsed(Map map) { if (this.used == null && map != null) { - this.used = new java.util.LinkedHashMap(); + this.used = new LinkedHashMap(); } if (map != null) { this.used.putAll(map); @@ -116,7 +113,7 @@ public A addToUsed(java.util.Map map) { + public A removeFromUsed(Map map) { if (this.used == null) { return (A) this; } @@ -141,21 +137,20 @@ public A removeFromUsed( return (A) this; } - public java.util.Map getUsed() { + public Map getUsed() { return this.used; } - public A withUsed( - java.util.Map used) { + public A withUsed(Map used) { if (used == null) { this.used = null; } else { - this.used = new java.util.LinkedHashMap(used); + this.used = new LinkedHashMap(used); } return (A) this; } - public java.lang.Boolean hasUsed() { + public Boolean hasUsed() { return this.used != null; } @@ -172,7 +167,7 @@ public int hashCode() { return java.util.Objects.hash(hard, used, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (hard != null && !hard.isEmpty()) { 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 0e60bf324d..995f1498ec 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 @@ -16,8 +16,7 @@ public class V1ResourceRequirementsBuilder extends V1ResourceRequirementsFluentImpl - implements VisitableBuilder< - V1ResourceRequirements, io.kubernetes.client.openapi.models.V1ResourceRequirementsBuilder> { + implements VisitableBuilder { public V1ResourceRequirementsBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1ResourceRequirementsBuilder(Boolean validationEnabled) { this(new V1ResourceRequirements(), validationEnabled); } - public V1ResourceRequirementsBuilder( - io.kubernetes.client.openapi.models.V1ResourceRequirementsFluent fluent) { + public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent) { this(fluent, false); } public V1ResourceRequirementsBuilder( - io.kubernetes.client.openapi.models.V1ResourceRequirementsFluent fluent, - java.lang.Boolean validationEnabled) { + V1ResourceRequirementsFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceRequirements(), validationEnabled); } public V1ResourceRequirementsBuilder( - io.kubernetes.client.openapi.models.V1ResourceRequirementsFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceRequirements instance) { + V1ResourceRequirementsFluent fluent, V1ResourceRequirements instance) { this(fluent, instance, false); } public V1ResourceRequirementsBuilder( - io.kubernetes.client.openapi.models.V1ResourceRequirementsFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceRequirements instance, - java.lang.Boolean validationEnabled) { + V1ResourceRequirementsFluent fluent, + V1ResourceRequirements instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLimits(instance.getLimits()); @@ -55,14 +51,11 @@ public V1ResourceRequirementsBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceRequirementsBuilder( - io.kubernetes.client.openapi.models.V1ResourceRequirements instance) { + public V1ResourceRequirementsBuilder(V1ResourceRequirements instance) { this(instance, false); } - public V1ResourceRequirementsBuilder( - io.kubernetes.client.openapi.models.V1ResourceRequirements instance, - java.lang.Boolean validationEnabled) { + public V1ResourceRequirementsBuilder(V1ResourceRequirements instance, Boolean validationEnabled) { this.fluent = this; this.withLimits(instance.getLimits()); @@ -71,10 +64,10 @@ public V1ResourceRequirementsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceRequirementsFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceRequirementsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceRequirements build() { + public V1ResourceRequirements build() { V1ResourceRequirements buildable = new V1ResourceRequirements(); buildable.setLimits(fluent.getLimits()); buildable.setRequests(fluent.getRequests()); 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 7a36d4f0d5..a9aadcae6b 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 @@ -21,33 +21,29 @@ public interface V1ResourceRequirementsFluent { public A addToLimits(String key, Quantity value); - public A addToLimits(Map map); + public A addToLimits(Map map); - public A removeFromLimits(java.lang.String key); + public A removeFromLimits(String key); - public A removeFromLimits( - java.util.Map map); + public A removeFromLimits(Map map); - public java.util.Map getLimits(); + public Map getLimits(); - public A withLimits( - java.util.Map limits); + public A withLimits(Map limits); public Boolean hasLimits(); - public A addToRequests(java.lang.String key, io.kubernetes.client.custom.Quantity value); + public A addToRequests(String key, Quantity value); - public A addToRequests(java.util.Map map); + public A addToRequests(Map map); - public A removeFromRequests(java.lang.String key); + public A removeFromRequests(String key); - public A removeFromRequests( - java.util.Map map); + public A removeFromRequests(Map map); - public java.util.Map getRequests(); + public Map getRequests(); - public A withRequests( - java.util.Map requests); + public A withRequests(Map requests); - public java.lang.Boolean hasRequests(); + public Boolean hasRequests(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java index f796be99d1..44fec9f09a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluentImpl.java @@ -23,17 +23,16 @@ public class V1ResourceRequirementsFluentImpl implements V1ResourceRequirementsFluent { public V1ResourceRequirementsFluentImpl() {} - public V1ResourceRequirementsFluentImpl( - io.kubernetes.client.openapi.models.V1ResourceRequirements instance) { + public V1ResourceRequirementsFluentImpl(V1ResourceRequirements instance) { this.withLimits(instance.getLimits()); this.withRequests(instance.getRequests()); } private Map limits; - private java.util.Map requests; + private Map requests; - public A addToLimits(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToLimits(String key, Quantity value) { if (this.limits == null && key != null && value != null) { this.limits = new LinkedHashMap(); } @@ -43,9 +42,9 @@ public A addToLimits(java.lang.String key, io.kubernetes.client.custom.Quantity return (A) this; } - public A addToLimits(java.util.Map map) { + public A addToLimits(Map map) { if (this.limits == null && map != null) { - this.limits = new java.util.LinkedHashMap(); + this.limits = new LinkedHashMap(); } if (map != null) { this.limits.putAll(map); @@ -53,7 +52,7 @@ public A addToLimits(java.util.Map map) { + public A removeFromLimits(Map map) { if (this.limits == null) { return (A) this; } @@ -78,16 +76,15 @@ public A removeFromLimits( return (A) this; } - public java.util.Map getLimits() { + public Map getLimits() { return this.limits; } - public A withLimits( - java.util.Map limits) { + public A withLimits(Map limits) { if (limits == null) { this.limits = null; } else { - this.limits = new java.util.LinkedHashMap(limits); + this.limits = new LinkedHashMap(limits); } return (A) this; } @@ -96,9 +93,9 @@ public Boolean hasLimits() { return this.limits != null; } - public A addToRequests(java.lang.String key, io.kubernetes.client.custom.Quantity value) { + public A addToRequests(String key, Quantity value) { if (this.requests == null && key != null && value != null) { - this.requests = new java.util.LinkedHashMap(); + this.requests = new LinkedHashMap(); } if (key != null && value != null) { this.requests.put(key, value); @@ -106,10 +103,9 @@ public A addToRequests(java.lang.String key, io.kubernetes.client.custom.Quantit return (A) this; } - public A addToRequests( - java.util.Map map) { + public A addToRequests(Map map) { if (this.requests == null && map != null) { - this.requests = new java.util.LinkedHashMap(); + this.requests = new LinkedHashMap(); } if (map != null) { this.requests.putAll(map); @@ -117,7 +113,7 @@ public A addToRequests( return (A) this; } - public A removeFromRequests(java.lang.String key) { + public A removeFromRequests(String key) { if (this.requests == null) { return (A) this; } @@ -127,8 +123,7 @@ public A removeFromRequests(java.lang.String key) { return (A) this; } - public A removeFromRequests( - java.util.Map map) { + public A removeFromRequests(Map map) { if (this.requests == null) { return (A) this; } @@ -142,21 +137,20 @@ public A removeFromRequests( return (A) this; } - public java.util.Map getRequests() { + public Map getRequests() { return this.requests; } - public A withRequests( - java.util.Map requests) { + public A withRequests(Map requests) { if (requests == null) { this.requests = null; } else { - this.requests = new java.util.LinkedHashMap(requests); + this.requests = new LinkedHashMap(requests); } return (A) this; } - public java.lang.Boolean hasRequests() { + public Boolean hasRequests() { return this.requests != null; } @@ -173,7 +167,7 @@ public int hashCode() { return java.util.Objects.hash(limits, requests, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (limits != null && !limits.isEmpty()) { 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 e29af1e067..edca04eb3c 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ResourceRuleBuilder extends V1ResourceRuleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ResourceRule, - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder> { + implements VisitableBuilder { public V1ResourceRuleBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent) { this(fluent, false); } - public V1ResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1ResourceRuleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1ResourceRule(), validationEnabled); } - public V1ResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1ResourceRuleFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceRule instance) { + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent, V1ResourceRule instance) { this(fluent, instance, false); } public V1ResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1ResourceRuleFluent fluent, - io.kubernetes.client.openapi.models.V1ResourceRule instance, - java.lang.Boolean validationEnabled) { + V1ResourceRuleFluent fluent, V1ResourceRule instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); @@ -58,13 +50,11 @@ public V1ResourceRuleBuilder( this.validationEnabled = validationEnabled; } - public V1ResourceRuleBuilder(io.kubernetes.client.openapi.models.V1ResourceRule instance) { + public V1ResourceRuleBuilder(V1ResourceRule instance) { this(instance, false); } - public V1ResourceRuleBuilder( - io.kubernetes.client.openapi.models.V1ResourceRule instance, - java.lang.Boolean validationEnabled) { + public V1ResourceRuleBuilder(V1ResourceRule instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroups(instance.getApiGroups()); @@ -77,10 +67,10 @@ public V1ResourceRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ResourceRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1ResourceRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ResourceRule build() { + public V1ResourceRule build() { V1ResourceRule buildable = new V1ResourceRule(); buildable.setApiGroups(fluent.getApiGroups()); buildable.setResourceNames(fluent.getResourceNames()); 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 34fd85c712..f31c70964e 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 @@ -21,126 +21,121 @@ public interface V1ResourceRuleFluent> extends Fluent { public A addToApiGroups(Integer index, String item); - public A setToApiGroups(java.lang.Integer index, java.lang.String item); + public A setToApiGroups(Integer index, String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); + public A addAllToApiGroups(Collection items); public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(java.util.Collection items); + public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); + public List getApiGroups(); - public java.lang.String getApiGroup(java.lang.Integer index); + public String getApiGroup(Integer index); - public java.lang.String getFirstApiGroup(); + public String getFirstApiGroup(); - public java.lang.String getLastApiGroup(); + public String getLastApiGroup(); - public java.lang.String getMatchingApiGroup(Predicate predicate); + public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate); + public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(java.util.List apiGroups); + public A withApiGroups(List apiGroups); public A withApiGroups(java.lang.String... apiGroups); - public java.lang.Boolean hasApiGroups(); + public Boolean hasApiGroups(); - public A addToResourceNames(java.lang.Integer index, java.lang.String item); + public A addToResourceNames(Integer index, String item); - public A setToResourceNames(java.lang.Integer index, java.lang.String item); + public A setToResourceNames(Integer index, String item); public A addToResourceNames(java.lang.String... items); - public A addAllToResourceNames(java.util.Collection items); + public A addAllToResourceNames(Collection items); public A removeFromResourceNames(java.lang.String... items); - public A removeAllFromResourceNames(java.util.Collection items); + public A removeAllFromResourceNames(Collection items); - public java.util.List getResourceNames(); + public List getResourceNames(); - public java.lang.String getResourceName(java.lang.Integer index); + public String getResourceName(Integer index); - public java.lang.String getFirstResourceName(); + public String getFirstResourceName(); - public java.lang.String getLastResourceName(); + public String getLastResourceName(); - public java.lang.String getMatchingResourceName( - java.util.function.Predicate predicate); + public String getMatchingResourceName(Predicate predicate); - public java.lang.Boolean hasMatchingResourceName( - java.util.function.Predicate predicate); + public Boolean hasMatchingResourceName(Predicate predicate); - public A withResourceNames(java.util.List resourceNames); + public A withResourceNames(List resourceNames); public A withResourceNames(java.lang.String... resourceNames); - public java.lang.Boolean hasResourceNames(); + public Boolean hasResourceNames(); - public A addToResources(java.lang.Integer index, java.lang.String item); + public A addToResources(Integer index, String item); - public A setToResources(java.lang.Integer index, java.lang.String item); + public A setToResources(Integer index, String item); public A addToResources(java.lang.String... items); - public A addAllToResources(java.util.Collection items); + public A addAllToResources(Collection items); public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(java.util.Collection items); + public A removeAllFromResources(Collection items); - public java.util.List getResources(); + public List getResources(); - public java.lang.String getResource(java.lang.Integer index); + public String getResource(Integer index); - public java.lang.String getFirstResource(); + public String getFirstResource(); - public java.lang.String getLastResource(); + public String getLastResource(); - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate); + public String getMatchingResource(Predicate predicate); - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate); + public Boolean hasMatchingResource(Predicate predicate); - public A withResources(java.util.List resources); + public A withResources(List resources); public A withResources(java.lang.String... resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java index c2f6ff5868..a6169ac4ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluentImpl.java @@ -24,7 +24,7 @@ public class V1ResourceRuleFluentImpl> extends implements V1ResourceRuleFluent { public V1ResourceRuleFluentImpl() {} - public V1ResourceRuleFluentImpl(io.kubernetes.client.openapi.models.V1ResourceRule instance) { + public V1ResourceRuleFluentImpl(V1ResourceRule instance) { this.withApiGroups(instance.getApiGroups()); this.withResourceNames(instance.getResourceNames()); @@ -35,21 +35,21 @@ public V1ResourceRuleFluentImpl(io.kubernetes.client.openapi.models.V1ResourceRu } private List apiGroups; - private java.util.List resourceNames; - private java.util.List resources; - private java.util.List verbs; + private List resourceNames; + private List resources; + private List verbs; - public A addToApiGroups(Integer index, java.lang.String item) { + public A addToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.add(index, item); return (A) this; } - public A setToApiGroups(java.lang.Integer index, java.lang.String item) { + public A setToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.set(index, item); return (A) this; @@ -57,26 +57,26 @@ public A setToApiGroups(java.lang.Integer index, java.lang.String item) { public A addToApiGroups(java.lang.String... items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } public A removeFromApiGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -84,8 +84,8 @@ public A removeFromApiGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromApiGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromApiGroups(Collection items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -93,24 +93,24 @@ public A removeAllFromApiGroups(java.util.Collection items) { return (A) this; } - public java.util.List getApiGroups() { + public List getApiGroups() { return this.apiGroups; } - public java.lang.String getApiGroup(java.lang.Integer index) { + public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public java.lang.String getFirstApiGroup() { + public String getFirstApiGroup() { return this.apiGroups.get(0); } - public java.lang.String getLastApiGroup() { + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public java.lang.String getMatchingApiGroup(Predicate predicate) { - for (java.lang.String item : apiGroups) { + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -118,8 +118,8 @@ public java.lang.String getMatchingApiGroup(Predicate predicat return null; } - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate) { - for (java.lang.String item : apiGroups) { + public Boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return true; } @@ -127,10 +127,10 @@ public Boolean hasMatchingApiGroup(java.util.function.Predicate apiGroups) { + public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new java.util.ArrayList(); - for (java.lang.String item : apiGroups) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { this.addToApiGroups(item); } } else { @@ -144,28 +144,28 @@ public A withApiGroups(java.lang.String... apiGroups) { this.apiGroups.clear(); } if (apiGroups != null) { - for (java.lang.String item : apiGroups) { + for (String item : apiGroups) { this.addToApiGroups(item); } } return (A) this; } - public java.lang.Boolean hasApiGroups() { + public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public A addToResourceNames(java.lang.Integer index, java.lang.String item) { + public A addToResourceNames(Integer index, String item) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } this.resourceNames.add(index, item); return (A) this; } - public A setToResourceNames(java.lang.Integer index, java.lang.String item) { + public A setToResourceNames(Integer index, String item) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } this.resourceNames.set(index, item); return (A) this; @@ -173,26 +173,26 @@ public A setToResourceNames(java.lang.Integer index, java.lang.String item) { public A addToResourceNames(java.lang.String... items) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resourceNames.add(item); } return (A) this; } - public A addAllToResourceNames(java.util.Collection items) { + public A addAllToResourceNames(Collection items) { if (this.resourceNames == null) { - this.resourceNames = new java.util.ArrayList(); + this.resourceNames = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resourceNames.add(item); } return (A) this; } public A removeFromResourceNames(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resourceNames != null) { this.resourceNames.remove(item); } @@ -200,8 +200,8 @@ public A removeFromResourceNames(java.lang.String... items) { return (A) this; } - public A removeAllFromResourceNames(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResourceNames(Collection items) { + for (String item : items) { if (this.resourceNames != null) { this.resourceNames.remove(item); } @@ -209,25 +209,24 @@ public A removeAllFromResourceNames(java.util.Collection items return (A) this; } - public java.util.List getResourceNames() { + public List getResourceNames() { return this.resourceNames; } - public java.lang.String getResourceName(java.lang.Integer index) { + public String getResourceName(Integer index) { return this.resourceNames.get(index); } - public java.lang.String getFirstResourceName() { + public String getFirstResourceName() { return this.resourceNames.get(0); } - public java.lang.String getLastResourceName() { + public String getLastResourceName() { return this.resourceNames.get(resourceNames.size() - 1); } - public java.lang.String getMatchingResourceName( - java.util.function.Predicate predicate) { - for (java.lang.String item : resourceNames) { + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { if (predicate.test(item)) { return item; } @@ -235,9 +234,8 @@ public java.lang.String getMatchingResourceName( return null; } - public java.lang.Boolean hasMatchingResourceName( - java.util.function.Predicate predicate) { - for (java.lang.String item : resourceNames) { + public Boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { if (predicate.test(item)) { return true; } @@ -245,10 +243,10 @@ public java.lang.Boolean hasMatchingResourceName( return false; } - public A withResourceNames(java.util.List resourceNames) { + public A withResourceNames(List resourceNames) { if (resourceNames != null) { - this.resourceNames = new java.util.ArrayList(); - for (java.lang.String item : resourceNames) { + this.resourceNames = new ArrayList(); + for (String item : resourceNames) { this.addToResourceNames(item); } } else { @@ -262,28 +260,28 @@ public A withResourceNames(java.lang.String... resourceNames) { this.resourceNames.clear(); } if (resourceNames != null) { - for (java.lang.String item : resourceNames) { + for (String item : resourceNames) { this.addToResourceNames(item); } } return (A) this; } - public java.lang.Boolean hasResourceNames() { + public Boolean hasResourceNames() { return resourceNames != null && !resourceNames.isEmpty(); } - public A addToResources(java.lang.Integer index, java.lang.String item) { + public A addToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.add(index, item); return (A) this; } - public A setToResources(java.lang.Integer index, java.lang.String item) { + public A setToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.set(index, item); return (A) this; @@ -291,26 +289,26 @@ public A setToResources(java.lang.Integer index, java.lang.String item) { public A addToResources(java.lang.String... items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } - public A addAllToResources(java.util.Collection items) { + public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } public A removeFromResources(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -318,8 +316,8 @@ public A removeFromResources(java.lang.String... items) { return (A) this; } - public A removeAllFromResources(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResources(Collection items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -327,25 +325,24 @@ public A removeAllFromResources(java.util.Collection items) { return (A) this; } - public java.util.List getResources() { + public List getResources() { return this.resources; } - public java.lang.String getResource(java.lang.Integer index) { + public String getResource(Integer index) { return this.resources.get(index); } - public java.lang.String getFirstResource() { + public String getFirstResource() { return this.resources.get(0); } - public java.lang.String getLastResource() { + public String getLastResource() { return this.resources.get(resources.size() - 1); } - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return item; } @@ -353,9 +350,8 @@ public java.lang.String getMatchingResource( return null; } - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public Boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return true; } @@ -363,10 +359,10 @@ public java.lang.Boolean hasMatchingResource( return false; } - public A withResources(java.util.List resources) { + public A withResources(List resources) { if (resources != null) { - this.resources = new java.util.ArrayList(); - for (java.lang.String item : resources) { + this.resources = new ArrayList(); + for (String item : resources) { this.addToResources(item); } } else { @@ -380,28 +376,28 @@ public A withResources(java.lang.String... resources) { this.resources.clear(); } if (resources != null) { - for (java.lang.String item : resources) { + for (String item : resources) { this.addToResources(item); } } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -409,26 +405,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -436,8 +432,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -445,25 +441,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -471,9 +466,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -481,10 +475,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -498,14 +492,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -528,7 +522,7 @@ public int hashCode() { return java.util.Objects.hash(apiGroups, resourceNames, resources, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroups != null && !apiGroups.isEmpty()) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java index 38ff919166..6e76aa0a69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RoleBindingBuilder extends V1RoleBindingFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1RoleBinding, V1RoleBindingBuilder> { + implements VisitableBuilder { public V1RoleBindingBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1RoleBindingBuilder(V1RoleBindingFluent fluent) { this(fluent, false); } - public V1RoleBindingBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RoleBindingBuilder(V1RoleBindingFluent fluent, Boolean validationEnabled) { this(fluent, new V1RoleBinding(), validationEnabled); } - public V1RoleBindingBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingFluent fluent, - io.kubernetes.client.openapi.models.V1RoleBinding instance) { + public V1RoleBindingBuilder(V1RoleBindingFluent fluent, V1RoleBinding instance) { this(fluent, instance, false); } public V1RoleBindingBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingFluent fluent, - io.kubernetes.client.openapi.models.V1RoleBinding instance, - java.lang.Boolean validationEnabled) { + V1RoleBindingFluent fluent, V1RoleBinding instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,13 +52,11 @@ public V1RoleBindingBuilder( this.validationEnabled = validationEnabled; } - public V1RoleBindingBuilder(io.kubernetes.client.openapi.models.V1RoleBinding instance) { + public V1RoleBindingBuilder(V1RoleBinding instance) { this(instance, false); } - public V1RoleBindingBuilder( - io.kubernetes.client.openapi.models.V1RoleBinding instance, - java.lang.Boolean validationEnabled) { + public V1RoleBindingBuilder(V1RoleBinding instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +71,10 @@ public V1RoleBindingBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RoleBindingFluent fluent; - java.lang.Boolean validationEnabled; + V1RoleBindingFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RoleBinding build() { + public V1RoleBinding build() { V1RoleBinding buildable = new V1RoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 dee702e184..e2b904bc51 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 @@ -22,15 +22,15 @@ public interface V1RoleBindingFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -40,65 +40,57 @@ public interface V1RoleBindingFluent> extends F @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1RoleBindingFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1RoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested editMetadata(); + public V1RoleBindingFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested - editOrNewMetadata(); + public V1RoleBindingFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1RoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildRoleRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1RoleRef getRoleRef(); - public io.kubernetes.client.openapi.models.V1RoleRef buildRoleRef(); + public V1RoleRef buildRoleRef(); - public A withRoleRef(io.kubernetes.client.openapi.models.V1RoleRef roleRef); + public A withRoleRef(V1RoleRef roleRef); - public java.lang.Boolean hasRoleRef(); + public Boolean hasRoleRef(); public V1RoleBindingFluent.RoleRefNested withNewRoleRef(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested - withNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item); + public V1RoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested editRoleRef(); + public V1RoleBindingFluent.RoleRefNested editRoleRef(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested - editOrNewRoleRef(); + public V1RoleBindingFluent.RoleRefNested editOrNewRoleRef(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested - editOrNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item); + public V1RoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item); public A addToSubjects(Integer index, V1Subject item); - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item); + public A setToSubjects(Integer index, V1Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A addAllToSubjects(Collection items); + public A addAllToSubjects(Collection items); public A removeFromSubjects(io.kubernetes.client.openapi.models.V1Subject... items); - public A removeAllFromSubjects( - java.util.Collection items); + public A removeAllFromSubjects(Collection items); public A removeMatchingFromSubjects(Predicate predicate); @@ -107,51 +99,41 @@ public A removeAllFromSubjects( * * @return The buildable object. */ - @java.lang.Deprecated - public List getSubjects(); + @Deprecated + public List getSubjects(); - public java.util.List buildSubjects(); + public List buildSubjects(); - public io.kubernetes.client.openapi.models.V1Subject buildSubject(java.lang.Integer index); + public V1Subject buildSubject(Integer index); - public io.kubernetes.client.openapi.models.V1Subject buildFirstSubject(); + public V1Subject buildFirstSubject(); - public io.kubernetes.client.openapi.models.V1Subject buildLastSubject(); + public V1Subject buildLastSubject(); - public io.kubernetes.client.openapi.models.V1Subject buildMatchingSubject( - java.util.function.Predicate predicate); + public V1Subject buildMatchingSubject(Predicate predicate); - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate predicate); + public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects(java.util.List subjects); + public A withSubjects(List subjects); public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects); - public java.lang.Boolean hasSubjects(); + public Boolean hasSubjects(); public V1RoleBindingFluent.SubjectsNested addNewSubject(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1Subject item); + public V1RoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item); + public V1RoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index, V1Subject item); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested editSubject( - java.lang.Integer index); + public V1RoleBindingFluent.SubjectsNested editSubject(Integer index); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - editFirstSubject(); + public V1RoleBindingFluent.SubjectsNested editFirstSubject(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - editLastSubject(); + public V1RoleBindingFluent.SubjectsNested editLastSubject(); - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate); + public V1RoleBindingFluent.SubjectsNested editMatchingSubject( + Predicate predicate); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -161,16 +143,14 @@ public interface MetadataNested } public interface RoleRefNested - extends io.kubernetes.client.fluent.Nested, - V1RoleRefFluent> { + extends Nested, V1RoleRefFluent> { public N and(); public N endRoleRef(); } public interface SubjectsNested - extends io.kubernetes.client.fluent.Nested, - V1SubjectFluent> { + extends Nested, V1SubjectFluent> { public N and(); public N endSubject(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java index 335749d9d9..27e9d99525 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluentImpl.java @@ -26,7 +26,7 @@ public class V1RoleBindingFluentImpl> extends B implements V1RoleBindingFluent { public V1RoleBindingFluentImpl() {} - public V1RoleBindingFluentImpl(io.kubernetes.client.openapi.models.V1RoleBinding instance) { + public V1RoleBindingFluentImpl(V1RoleBinding instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -39,16 +39,16 @@ public V1RoleBindingFluentImpl(io.kubernetes.client.openapi.models.V1RoleBinding } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1RoleRefBuilder roleRef; private ArrayList subjects; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -57,16 +57,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -76,24 +76,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -101,25 +104,20 @@ public V1RoleBindingFluent.MetadataNested withNewMetadata() { return new V1RoleBindingFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1RoleBindingFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1RoleBindingFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested editMetadata() { + public V1RoleBindingFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested - editOrNewMetadata() { + public V1RoleBindingFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1RoleBindingFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -128,25 +126,28 @@ public io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1RoleRef getRoleRef() { + @Deprecated + public V1RoleRef getRoleRef() { return this.roleRef != null ? this.roleRef.build() : null; } - public io.kubernetes.client.openapi.models.V1RoleRef buildRoleRef() { + public V1RoleRef buildRoleRef() { return this.roleRef != null ? this.roleRef.build() : null; } - public A withRoleRef(io.kubernetes.client.openapi.models.V1RoleRef roleRef) { + public A withRoleRef(V1RoleRef roleRef) { _visitables.get("roleRef").remove(this.roleRef); if (roleRef != null) { this.roleRef = new V1RoleRefBuilder(roleRef); _visitables.get("roleRef").add(this.roleRef); + } else { + this.roleRef = null; + _visitables.get("roleRef").remove(this.roleRef); } return (A) this; } - public java.lang.Boolean hasRoleRef() { + public Boolean hasRoleRef() { return this.roleRef != null; } @@ -154,34 +155,27 @@ public V1RoleBindingFluent.RoleRefNested withNewRoleRef() { return new V1RoleBindingFluentImpl.RoleRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested - withNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item) { - return new io.kubernetes.client.openapi.models.V1RoleBindingFluentImpl.RoleRefNestedImpl(item); + public V1RoleBindingFluent.RoleRefNested withNewRoleRefLike(V1RoleRef item) { + return new V1RoleBindingFluentImpl.RoleRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested editRoleRef() { + public V1RoleBindingFluent.RoleRefNested editRoleRef() { return withNewRoleRefLike(getRoleRef()); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested - editOrNewRoleRef() { - return withNewRoleRefLike( - getRoleRef() != null - ? getRoleRef() - : new io.kubernetes.client.openapi.models.V1RoleRefBuilder().build()); + public V1RoleBindingFluent.RoleRefNested editOrNewRoleRef() { + return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : new V1RoleRefBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested - editOrNewRoleRefLike(io.kubernetes.client.openapi.models.V1RoleRef item) { + public V1RoleBindingFluent.RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { return withNewRoleRefLike(getRoleRef() != null ? getRoleRef() : item); } - public A addToSubjects(Integer index, io.kubernetes.client.openapi.models.V1Subject item) { + public A addToSubjects(Integer index, V1Subject item) { if (this.subjects == null) { - this.subjects = new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables .get("subjects") .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); @@ -189,14 +183,11 @@ public A addToSubjects(Integer index, io.kubernetes.client.openapi.models.V1Subj return (A) this; } - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item) { + public A setToSubjects(Integer index, V1Subject item) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + V1SubjectBuilder builder = new V1SubjectBuilder(item); if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { @@ -212,26 +203,22 @@ public A setToSubjects( public A addToSubjects(io.kubernetes.client.openapi.models.V1Subject... items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Subject item : items) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + for (V1Subject item : items) { + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; } - public A addAllToSubjects(Collection items) { + public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Subject item : items) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + for (V1Subject item : items) { + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } @@ -239,9 +226,8 @@ public A addAllToSubjects(Collection items) { - for (io.kubernetes.client.openapi.models.V1Subject item : items) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1SubjectBuilder(item); + public A removeAllFromSubjects(Collection items) { + for (V1Subject item : items) { + V1SubjectBuilder builder = new V1SubjectBuilder(item); _visitables.get("subjects").remove(builder); if (this.subjects != null) { this.subjects.remove(builder); @@ -263,13 +247,12 @@ public A removeAllFromSubjects( return (A) this; } - public A removeMatchingFromSubjects( - Predicate predicate) { + public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); + final Iterator each = subjects.iterator(); final List visitables = _visitables.get("subjects"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1SubjectBuilder builder = each.next(); + V1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -283,31 +266,29 @@ public A removeMatchingFromSubjects( * * @return The buildable object. */ - @java.lang.Deprecated - public List getSubjects() { + @Deprecated + public List getSubjects() { return subjects != null ? build(subjects) : null; } - public java.util.List buildSubjects() { + public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public io.kubernetes.client.openapi.models.V1Subject buildSubject(java.lang.Integer index) { + public V1Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Subject buildFirstSubject() { + public V1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Subject buildLastSubject() { + public V1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Subject buildMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1SubjectBuilder item : subjects) { + public V1Subject buildMatchingSubject(Predicate predicate) { + for (V1SubjectBuilder item : subjects) { if (predicate.test(item)) { return item.build(); } @@ -315,10 +296,8 @@ public io.kubernetes.client.openapi.models.V1Subject buildMatchingSubject( return null; } - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1SubjectBuilder item : subjects) { + public Boolean hasMatchingSubject(Predicate predicate) { + for (V1SubjectBuilder item : subjects) { if (predicate.test(item)) { return true; } @@ -326,13 +305,13 @@ public java.lang.Boolean hasMatchingSubject( return false; } - public A withSubjects(java.util.List subjects) { + public A withSubjects(List subjects) { if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects); } if (subjects != null) { - this.subjects = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Subject item : subjects) { + this.subjects = new ArrayList(); + for (V1Subject item : subjects) { this.addToSubjects(item); } } else { @@ -346,14 +325,14 @@ public A withSubjects(io.kubernetes.client.openapi.models.V1Subject... subjects) this.subjects.clear(); } if (subjects != null) { - for (io.kubernetes.client.openapi.models.V1Subject item : subjects) { + for (V1Subject item : subjects) { this.addToSubjects(item); } } return (A) this; } - public java.lang.Boolean hasSubjects() { + public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } @@ -361,44 +340,34 @@ public V1RoleBindingFluent.SubjectsNested addNewSubject() { return new V1RoleBindingFluentImpl.SubjectsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1Subject item) { - return new io.kubernetes.client.openapi.models.V1RoleBindingFluentImpl.SubjectsNestedImpl( - -1, item); + public V1RoleBindingFluent.SubjectsNested addNewSubjectLike(V1Subject item) { + return new V1RoleBindingFluentImpl.SubjectsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Subject item) { - return new io.kubernetes.client.openapi.models.V1RoleBindingFluentImpl.SubjectsNestedImpl( - index, item); + public V1RoleBindingFluent.SubjectsNested setNewSubjectLike(Integer index, V1Subject item) { + return new V1RoleBindingFluentImpl.SubjectsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested editSubject( - java.lang.Integer index) { + public V1RoleBindingFluent.SubjectsNested editSubject(Integer index) { if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - editFirstSubject() { + public V1RoleBindingFluent.SubjectsNested editFirstSubject() { if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - editLastSubject() { + public V1RoleBindingFluent.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)); } - public io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate) { + public V1RoleBindingFluent.SubjectsNested editMatchingSubject( + Predicate predicate) { int index = -1; for (int i = 0; i < subjects.size(); i++) { if (predicate.test(subjects.get(i))) { @@ -427,7 +396,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, roleRef, subjects, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -455,17 +424,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleBindingFluent.MetadataNested, - Nested { + implements V1RoleBindingFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1RoleBindingFluentImpl.this.withMetadata(builder.build()); @@ -477,17 +445,16 @@ public N endMetadata() { } class RoleRefNestedImpl extends V1RoleRefFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleBindingFluent.RoleRefNested, - io.kubernetes.client.fluent.Nested { - RoleRefNestedImpl(io.kubernetes.client.openapi.models.V1RoleRef item) { + implements V1RoleBindingFluent.RoleRefNested, Nested { + RoleRefNestedImpl(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } RoleRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1RoleRefBuilder(this); + this.builder = new V1RoleRefBuilder(this); } - io.kubernetes.client.openapi.models.V1RoleRefBuilder builder; + V1RoleRefBuilder builder; public N and() { return (N) V1RoleBindingFluentImpl.this.withRoleRef(builder.build()); @@ -499,20 +466,19 @@ public N endRoleRef() { } class SubjectsNestedImpl extends V1SubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleBindingFluent.SubjectsNested, - io.kubernetes.client.fluent.Nested { - SubjectsNestedImpl(java.lang.Integer index, V1Subject item) { + implements V1RoleBindingFluent.SubjectsNested, Nested { + SubjectsNestedImpl(Integer index, V1Subject item) { this.index = index; this.builder = new V1SubjectBuilder(this, item); } SubjectsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1SubjectBuilder(this); + this.builder = new V1SubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectBuilder builder; - java.lang.Integer index; + V1SubjectBuilder builder; + Integer index; public N and() { return (N) V1RoleBindingFluentImpl.this.setToSubjects(index, builder.build()); 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 509467e011..0d3a56f184 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RoleBindingListBuilder extends V1RoleBindingListFluentImpl - implements VisitableBuilder< - V1RoleBindingList, io.kubernetes.client.openapi.models.V1RoleBindingListBuilder> { + implements VisitableBuilder { public V1RoleBindingListBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent) { this(fluent, false); } - public V1RoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent, Boolean validationEnabled) { this(fluent, new V1RoleBindingList(), validationEnabled); } - public V1RoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingListFluent fluent, - io.kubernetes.client.openapi.models.V1RoleBindingList instance) { + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent, V1RoleBindingList instance) { this(fluent, instance, false); } public V1RoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingListFluent fluent, - io.kubernetes.client.openapi.models.V1RoleBindingList instance, - java.lang.Boolean validationEnabled) { + V1RoleBindingListFluent fluent, V1RoleBindingList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,13 +50,11 @@ public V1RoleBindingListBuilder( this.validationEnabled = validationEnabled; } - public V1RoleBindingListBuilder(io.kubernetes.client.openapi.models.V1RoleBindingList instance) { + public V1RoleBindingListBuilder(V1RoleBindingList instance) { this(instance, false); } - public V1RoleBindingListBuilder( - io.kubernetes.client.openapi.models.V1RoleBindingList instance, - java.lang.Boolean validationEnabled) { + public V1RoleBindingListBuilder(V1RoleBindingList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +67,10 @@ public V1RoleBindingListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RoleBindingListFluent fluent; - java.lang.Boolean validationEnabled; + V1RoleBindingListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RoleBindingList build() { + public V1RoleBindingList build() { V1RoleBindingList buildable = new V1RoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 2a7699d213..a52799fdda 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 @@ -22,23 +22,21 @@ public interface V1RoleBindingListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item); + public A addToItems(Integer index, V1RoleBinding item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item); + public A setToItems(Integer index, V1RoleBinding item); public A addToItems(io.kubernetes.client.openapi.models.V1RoleBinding... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1RoleBinding... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,83 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1RoleBinding buildItem(java.lang.Integer index); + public V1RoleBinding buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1RoleBinding buildFirstItem(); + public V1RoleBinding buildFirstItem(); - public io.kubernetes.client.openapi.models.V1RoleBinding buildLastItem(); + public V1RoleBinding buildLastItem(); - public io.kubernetes.client.openapi.models.V1RoleBinding buildMatchingItem( - java.util.function.Predicate - predicate); + public V1RoleBinding buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1RoleBindingListFluent.ItemsNested addNewItem(); - public V1RoleBindingListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1RoleBinding item); + public V1RoleBindingListFluent.ItemsNested addNewItemLike(V1RoleBinding item); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item); + public V1RoleBindingListFluent.ItemsNested setNewItemLike(Integer index, V1RoleBinding item); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1RoleBindingListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested editFirstItem(); + public V1RoleBindingListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested editLastItem(); + public V1RoleBindingListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1RoleBindingListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1RoleBindingListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1RoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - editMetadata(); + public V1RoleBindingListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - editOrNewMetadata(); + public V1RoleBindingListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1RoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1RoleBindingFluent> { @@ -134,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java index ab26000dce..a2efedfa88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluentImpl.java @@ -26,8 +26,7 @@ public class V1RoleBindingListFluentImpl> e implements V1RoleBindingListFluent { public V1RoleBindingListFluentImpl() {} - public V1RoleBindingListFluentImpl( - io.kubernetes.client.openapi.models.V1RoleBindingList instance) { + public V1RoleBindingListFluentImpl(V1RoleBindingList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1RoleBindingListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item) { + public A addToItems(Integer index, V1RoleBinding item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBindingBuilder(item); + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item) { + public A setToItems(Integer index, V1RoleBinding item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBindingBuilder(item); + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RoleBinding item : items) { - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBindingBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RoleBinding item : items) { - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBindingBuilder(item); + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1RoleBinding item : items) { - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBindingBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder = each.next(); + V1RoleBindingBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1RoleBinding buildItem(java.lang.Integer index) { + public V1RoleBinding buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1RoleBinding buildFirstItem() { + public V1RoleBinding buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1RoleBinding buildLastItem() { + public V1RoleBinding buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1RoleBinding buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RoleBindingBuilder item : items) { + public V1RoleBinding buildMatchingItem(Predicate predicate) { + for (V1RoleBindingBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1RoleBinding buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RoleBindingBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1RoleBindingBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1RoleBinding item : items) { + this.items = new ArrayList(); + for (V1RoleBinding item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1RoleBinding item : items) { + for (V1RoleBinding item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,39 +221,32 @@ public V1RoleBindingListFluent.ItemsNested addNewItem() { return new V1RoleBindingListFluentImpl.ItemsNestedImpl(); } - public V1RoleBindingListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1RoleBinding item) { + public V1RoleBindingListFluent.ItemsNested addNewItemLike(V1RoleBinding item) { return new V1RoleBindingListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item) { - return new io.kubernetes.client.openapi.models.V1RoleBindingListFluentImpl.ItemsNestedImpl( - index, item); + public V1RoleBindingListFluent.ItemsNested setNewItemLike(Integer index, V1RoleBinding item) { + return new V1RoleBindingListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1RoleBindingListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested - editFirstItem() { + public V1RoleBindingListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested editLastItem() { + public V1RoleBindingListFluent.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 io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1RoleBindingListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -284,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.ItemsNested withNewMetadata() { return new V1RoleBindingListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1RoleBindingListFluentImpl.MetadataNestedImpl( - item); + public V1RoleBindingListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1RoleBindingListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - editMetadata() { + public V1RoleBindingListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - editOrNewMetadata() { + public V1RoleBindingListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1RoleBindingListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -368,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -393,19 +363,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1RoleBindingFluentImpl> implements V1RoleBindingListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RoleBinding item) { + ItemsNestedImpl(Integer index, V1RoleBinding item) { this.index = index; this.builder = new V1RoleBindingBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1RoleBindingBuilder(this); + this.builder = new V1RoleBindingBuilder(this); } - io.kubernetes.client.openapi.models.V1RoleBindingBuilder builder; - java.lang.Integer index; + V1RoleBindingBuilder builder; + Integer index; public N and() { return (N) V1RoleBindingListFluentImpl.this.setToItems(index, builder.build()); @@ -418,17 +387,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleBindingListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1RoleBindingListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1RoleBindingListFluentImpl.this.withMetadata(builder.build()); 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 b85ba9cb2e..5257d28558 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RoleBuilder extends V1RoleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Role, - io.kubernetes.client.openapi.models.V1RoleBuilder> { + implements VisitableBuilder { public V1RoleBuilder() { this(false); } @@ -30,22 +28,15 @@ public V1RoleBuilder(V1RoleFluent fluent) { this(fluent, false); } - public V1RoleBuilder( - io.kubernetes.client.openapi.models.V1RoleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RoleBuilder(V1RoleFluent fluent, Boolean validationEnabled) { this(fluent, new V1Role(), validationEnabled); } - public V1RoleBuilder( - io.kubernetes.client.openapi.models.V1RoleFluent fluent, - io.kubernetes.client.openapi.models.V1Role instance) { + public V1RoleBuilder(V1RoleFluent fluent, V1Role instance) { this(fluent, instance, false); } - public V1RoleBuilder( - io.kubernetes.client.openapi.models.V1RoleFluent fluent, - io.kubernetes.client.openapi.models.V1Role instance, - java.lang.Boolean validationEnabled) { + public V1RoleBuilder(V1RoleFluent fluent, V1Role instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +49,11 @@ public V1RoleBuilder( this.validationEnabled = validationEnabled; } - public V1RoleBuilder(io.kubernetes.client.openapi.models.V1Role instance) { + public V1RoleBuilder(V1Role instance) { this(instance, false); } - public V1RoleBuilder( - io.kubernetes.client.openapi.models.V1Role instance, java.lang.Boolean validationEnabled) { + public V1RoleBuilder(V1Role instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +66,10 @@ public V1RoleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RoleFluent fluent; - java.lang.Boolean validationEnabled; + V1RoleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Role build() { + public V1Role build() { V1Role buildable = new V1Role(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 db9ed54d36..77b35554f7 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 @@ -22,15 +22,15 @@ public interface V1RoleFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -40,37 +40,33 @@ public interface V1RoleFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1RoleFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1RoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested editMetadata(); + public V1RoleFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested editOrNewMetadata(); + public V1RoleFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1RoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public A addToRules(Integer index, V1PolicyRule item); - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item); + public A setToRules(Integer index, V1PolicyRule item); public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A addAllToRules(Collection items); + public A addAllToRules(Collection items); public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items); - public A removeAllFromRules( - java.util.Collection items); + public A removeAllFromRules(Collection items); public A removeMatchingFromRules(Predicate predicate); @@ -79,49 +75,40 @@ public A removeAllFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules(); + @Deprecated + public List getRules(); - public java.util.List buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1PolicyRule buildRule(java.lang.Integer index); + public V1PolicyRule buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1PolicyRule buildFirstRule(); + public V1PolicyRule buildFirstRule(); - public io.kubernetes.client.openapi.models.V1PolicyRule buildLastRule(); + public V1PolicyRule buildLastRule(); - public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule( - java.util.function.Predicate - predicate); + public V1PolicyRule buildMatchingRule(Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules(java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1RoleFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1PolicyRule item); + public V1RoleFluent.RulesNested addNewRuleLike(V1PolicyRule item); - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item); + public V1RoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item); - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editRule( - java.lang.Integer index); + public V1RoleFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editFirstRule(); + public V1RoleFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editLastRule(); + public V1RoleFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editMatchingRule( - java.util.function.Predicate - predicate); + public V1RoleFluent.RulesNested editMatchingRule(Predicate predicate); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -131,8 +118,7 @@ public interface MetadataNested } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, - V1PolicyRuleFluent> { + extends Nested, V1PolicyRuleFluent> { public N and(); public N endRule(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java index 2806b16ba2..b3b35fc3e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluentImpl.java @@ -26,7 +26,7 @@ public class V1RoleFluentImpl> extends BaseFluent implements V1RoleFluent { public V1RoleFluentImpl() {} - public V1RoleFluentImpl(io.kubernetes.client.openapi.models.V1Role instance) { + public V1RoleFluentImpl(V1Role instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -37,15 +37,15 @@ public V1RoleFluentImpl(io.kubernetes.client.openapi.models.V1Role instance) { } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private ArrayList rules; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,16 +54,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -73,24 +73,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -98,46 +101,38 @@ public V1RoleFluent.MetadataNested withNewMetadata() { return new V1RoleFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1RoleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1RoleFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested editMetadata() { + public V1RoleFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested editOrNewMetadata() { + public V1RoleFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1RoleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToRules(Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item) { + public A addToRules(Integer index, V1PolicyRule item) { if (this.rules == null) { - this.rules = new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item) { + public A setToRules(Integer index, V1PolicyRule item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -153,26 +148,22 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PolicyRule item : items) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + 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) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PolicyRule item : items) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -180,9 +171,8 @@ public A addAllToRules(Collection items) { - for (io.kubernetes.client.openapi.models.V1PolicyRule item : items) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -204,13 +192,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - Predicate predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder = each.next(); + V1PolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -224,31 +211,29 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1PolicyRule buildRule(java.lang.Integer index) { + public V1PolicyRule buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PolicyRule buildFirstRule() { + public V1PolicyRule buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PolicyRule buildLastRule() { + public V1PolicyRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PolicyRuleBuilder item : rules) { + public V1PolicyRule buildMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -256,10 +241,8 @@ public io.kubernetes.client.openapi.models.V1PolicyRule buildMatchingRule( return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1PolicyRuleBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -267,13 +250,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules(java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PolicyRule item : rules) { + this.rules = new ArrayList(); + for (V1PolicyRule item : rules) { this.addToRules(item); } } else { @@ -287,14 +270,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1PolicyRule item : rules) { + for (V1PolicyRule item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -302,36 +285,31 @@ public V1RoleFluent.RulesNested addNewRule() { return new V1RoleFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested addNewRuleLike( - io.kubernetes.client.openapi.models.V1PolicyRule item) { - return new io.kubernetes.client.openapi.models.V1RoleFluentImpl.RulesNestedImpl(-1, item); + public V1RoleFluent.RulesNested addNewRuleLike(V1PolicyRule item) { + return new V1RoleFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PolicyRule item) { - return new io.kubernetes.client.openapi.models.V1RoleFluentImpl.RulesNestedImpl(index, item); + public V1RoleFluent.RulesNested setNewRuleLike(Integer index, V1PolicyRule item) { + return new V1RoleFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editRule( - java.lang.Integer index) { + public V1RoleFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editFirstRule() { + public V1RoleFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editLastRule() { + public V1RoleFluent.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)); } - public io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested editMatchingRule( - java.util.function.Predicate - predicate) { + public V1RoleFluent.RulesNested editMatchingRule(Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -359,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, rules, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -383,16 +361,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleFluent.MetadataNested, Nested { + implements V1RoleFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1RoleFluentImpl.this.withMetadata(builder.build()); @@ -404,20 +382,19 @@ public N endMetadata() { } class RulesNestedImpl extends V1PolicyRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl(java.lang.Integer index, V1PolicyRule item) { + implements V1RoleFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PolicyRuleBuilder(this); + this.builder = new V1PolicyRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1PolicyRuleBuilder builder; - java.lang.Integer index; + V1PolicyRuleBuilder builder; + Integer index; public N and() { return (N) V1RoleFluentImpl.this.setToRules(index, builder.build()); 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 b68ab28c37..51847b0f11 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RoleListBuilder extends V1RoleListFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1RoleListBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1RoleListBuilder(Boolean validationEnabled) { this(new V1RoleList(), validationEnabled); } - public V1RoleListBuilder(io.kubernetes.client.openapi.models.V1RoleListFluent fluent) { + public V1RoleListBuilder(V1RoleListFluent fluent) { this(fluent, false); } - public V1RoleListBuilder( - io.kubernetes.client.openapi.models.V1RoleListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RoleListBuilder(V1RoleListFluent fluent, Boolean validationEnabled) { this(fluent, new V1RoleList(), validationEnabled); } - public V1RoleListBuilder( - io.kubernetes.client.openapi.models.V1RoleListFluent fluent, - io.kubernetes.client.openapi.models.V1RoleList instance) { + public V1RoleListBuilder(V1RoleListFluent fluent, V1RoleList instance) { this(fluent, instance, false); } public V1RoleListBuilder( - io.kubernetes.client.openapi.models.V1RoleListFluent fluent, - io.kubernetes.client.openapi.models.V1RoleList instance, - java.lang.Boolean validationEnabled) { + V1RoleListFluent fluent, V1RoleList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -56,13 +50,11 @@ public V1RoleListBuilder( this.validationEnabled = validationEnabled; } - public V1RoleListBuilder(io.kubernetes.client.openapi.models.V1RoleList instance) { + public V1RoleListBuilder(V1RoleList instance) { this(instance, false); } - public V1RoleListBuilder( - io.kubernetes.client.openapi.models.V1RoleList instance, - java.lang.Boolean validationEnabled) { + public V1RoleListBuilder(V1RoleList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -75,10 +67,10 @@ public V1RoleListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RoleListFluent fluent; - java.lang.Boolean validationEnabled; + V1RoleListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RoleList build() { + public V1RoleList build() { V1RoleList buildable = new V1RoleList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 2de3fc50aa..fbe6e0c3e7 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 @@ -22,22 +22,21 @@ public interface V1RoleListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Role item); + public A addToItems(Integer index, V1Role item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Role item); + public A setToItems(Integer index, V1Role item); public A addToItems(io.kubernetes.client.openapi.models.V1Role... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,77 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Role buildItem(java.lang.Integer index); + public V1Role buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Role buildFirstItem(); + public V1Role buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Role buildLastItem(); + public V1Role buildLastItem(); - public io.kubernetes.client.openapi.models.V1Role buildMatchingItem( - java.util.function.Predicate predicate); + public V1Role buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Role... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1RoleListFluent.ItemsNested addNewItem(); - public V1RoleListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Role item); + public V1RoleListFluent.ItemsNested addNewItemLike(V1Role item); - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Role item); + public V1RoleListFluent.ItemsNested setNewItemLike(Integer index, V1Role item); - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1RoleListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editFirstItem(); + public V1RoleListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editLastItem(); + public V1RoleListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1RoleListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1RoleListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item); + public V1RoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested editMetadata(); + public V1RoleListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested editOrNewMetadata(); + public V1RoleListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1RoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1RoleFluent> { public N and(); @@ -126,8 +117,7 @@ public interface ItemsNested extends Nested, V1RoleFluent - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java index c3824a3ff1..10429b5c91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluentImpl.java @@ -38,14 +38,14 @@ public V1RoleListFluentImpl(V1RoleList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Role item) { + public A addToItems(Integer index, V1Role item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RoleBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBuilder(item); + V1RoleBuilder builder = new V1RoleBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Role item) { + public A setToItems(Integer index, V1Role item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RoleBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBuilder(item); + V1RoleBuilder builder = new V1RoleBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Role... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Role item : items) { - io.kubernetes.client.openapi.models.V1RoleBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Role item : items) { - io.kubernetes.client.openapi.models.V1RoleBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBuilder(item); + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection it } public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items) { - for (io.kubernetes.client.openapi.models.V1Role item : items) { - io.kubernetes.client.openapi.models.V1RoleBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBuilder(item); + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items) { return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Role item : items) { - io.kubernetes.client.openapi.models.V1RoleBuilder builder = - new io.kubernetes.client.openapi.models.V1RoleBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1RoleBuilder builder = each.next(); + V1RoleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,29 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Role buildItem(java.lang.Integer index) { + public V1Role buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Role buildFirstItem() { + public V1Role buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Role buildLastItem() { + public V1Role buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Role buildMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1RoleBuilder item : items) { + public V1Role buildMatchingItem(Predicate predicate) { + for (V1RoleBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -186,9 +177,8 @@ public io.kubernetes.client.openapi.models.V1Role buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1RoleBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1RoleBuilder item : items) { if (predicate.test(item)) { return true; } @@ -196,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Role item : items) { + this.items = new ArrayList(); + for (V1Role item : items) { this.addToItems(item); } } else { @@ -216,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Role... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Role item : items) { + for (V1Role item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -231,36 +221,31 @@ public V1RoleListFluent.ItemsNested addNewItem() { return new V1RoleListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Role item) { + public V1RoleListFluent.ItemsNested addNewItemLike(V1Role item) { return new V1RoleListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Role item) { - return new io.kubernetes.client.openapi.models.V1RoleListFluentImpl.ItemsNestedImpl( - index, item); + public V1RoleListFluent.ItemsNested setNewItemLike(Integer index, V1Role item) { + return new V1RoleListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1RoleListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editFirstItem() { + public V1RoleListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editLastItem() { + public V1RoleListFluent.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 io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate) { + public V1RoleListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -272,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested editM return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -290,25 +275,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -316,25 +304,20 @@ public V1RoleListFluent.MetadataNested withNewMetadata() { return new V1RoleListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1RoleListFluentImpl.MetadataNestedImpl(item); + public V1RoleListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1RoleListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested editMetadata() { + public V1RoleListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested - editOrNewMetadata() { + public V1RoleListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1RoleListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -354,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -378,19 +361,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1RoleFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Role item) { + implements V1RoleListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1Role item) { this.index = index; this.builder = new V1RoleBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1RoleBuilder(this); + this.builder = new V1RoleBuilder(this); } - io.kubernetes.client.openapi.models.V1RoleBuilder builder; - java.lang.Integer index; + V1RoleBuilder builder; + Integer index; public N and() { return (N) V1RoleListFluentImpl.this.setToItems(index, builder.build()); @@ -402,17 +385,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1RoleListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1RoleListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1RoleListFluentImpl.this.withMetadata(builder.build()); 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 04d0e42ed3..c384d629b7 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RoleRefBuilder extends V1RoleRefFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1RoleRef, - io.kubernetes.client.openapi.models.V1RoleRefBuilder> { + implements VisitableBuilder { public V1RoleRefBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1RoleRefBuilder(V1RoleRefFluent fluent) { this(fluent, false); } - public V1RoleRefBuilder( - io.kubernetes.client.openapi.models.V1RoleRefFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RoleRefBuilder(V1RoleRefFluent fluent, Boolean validationEnabled) { this(fluent, new V1RoleRef(), validationEnabled); } - public V1RoleRefBuilder( - io.kubernetes.client.openapi.models.V1RoleRefFluent fluent, - io.kubernetes.client.openapi.models.V1RoleRef instance) { + public V1RoleRefBuilder(V1RoleRefFluent fluent, V1RoleRef instance) { this(fluent, instance, false); } public V1RoleRefBuilder( - io.kubernetes.client.openapi.models.V1RoleRefFluent fluent, - io.kubernetes.client.openapi.models.V1RoleRef instance, - java.lang.Boolean validationEnabled) { + V1RoleRefFluent fluent, V1RoleRef instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); @@ -56,12 +48,11 @@ public V1RoleRefBuilder( this.validationEnabled = validationEnabled; } - public V1RoleRefBuilder(io.kubernetes.client.openapi.models.V1RoleRef instance) { + public V1RoleRefBuilder(V1RoleRef instance) { this(instance, false); } - public V1RoleRefBuilder( - io.kubernetes.client.openapi.models.V1RoleRef instance, java.lang.Boolean validationEnabled) { + public V1RoleRefBuilder(V1RoleRef instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroup(instance.getApiGroup()); @@ -72,10 +63,10 @@ public V1RoleRefBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RoleRefFluent fluent; - java.lang.Boolean validationEnabled; + V1RoleRefFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RoleRef build() { + public V1RoleRef build() { V1RoleRef buildable = new V1RoleRef(); buildable.setApiGroup(fluent.getApiGroup()); buildable.setKind(fluent.getKind()); 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 7c426803a1..a18f842be8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java @@ -18,19 +18,19 @@ public interface V1RoleRefFluent> extends Fluent { public String getApiGroup(); - public A withApiGroup(java.lang.String apiGroup); + public A withApiGroup(String apiGroup); public Boolean hasApiGroup(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java index c1879ce071..f2d2eafa82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluentImpl.java @@ -20,7 +20,7 @@ public class V1RoleRefFluentImpl> extends BaseFluen implements V1RoleRefFluent { public V1RoleRefFluentImpl() {} - public V1RoleRefFluentImpl(io.kubernetes.client.openapi.models.V1RoleRef instance) { + public V1RoleRefFluentImpl(V1RoleRef instance) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -29,14 +29,14 @@ public V1RoleRefFluentImpl(io.kubernetes.client.openapi.models.V1RoleRef instanc } private String apiGroup; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; - public java.lang.String getApiGroup() { + public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(java.lang.String apiGroup) { + public A withApiGroup(String apiGroup) { this.apiGroup = apiGroup; return (A) this; } @@ -45,29 +45,29 @@ public Boolean hasApiGroup() { return this.apiGroup != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -85,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroup != null) { 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 4be3b5f4be..0caa0387c5 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 @@ -16,9 +16,7 @@ public class V1RollingUpdateDaemonSetBuilder extends V1RollingUpdateDaemonSetFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet, - V1RollingUpdateDaemonSetBuilder> { + implements VisitableBuilder { public V1RollingUpdateDaemonSetBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1RollingUpdateDaemonSetBuilder(Boolean validationEnabled) { this(new V1RollingUpdateDaemonSet(), validationEnabled); } - public V1RollingUpdateDaemonSetBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetFluent fluent) { + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent) { this(fluent, false); } public V1RollingUpdateDaemonSetBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetFluent fluent, - java.lang.Boolean validationEnabled) { + V1RollingUpdateDaemonSetFluent fluent, Boolean validationEnabled) { this(fluent, new V1RollingUpdateDaemonSet(), validationEnabled); } public V1RollingUpdateDaemonSetBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetFluent fluent, - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet instance) { + V1RollingUpdateDaemonSetFluent fluent, V1RollingUpdateDaemonSet instance) { this(fluent, instance, false); } public V1RollingUpdateDaemonSetBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetFluent fluent, - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet instance, - java.lang.Boolean validationEnabled) { + V1RollingUpdateDaemonSetFluent fluent, + V1RollingUpdateDaemonSet instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMaxSurge(instance.getMaxSurge()); @@ -56,14 +51,12 @@ public V1RollingUpdateDaemonSetBuilder( this.validationEnabled = validationEnabled; } - public V1RollingUpdateDaemonSetBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet instance) { + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSet instance) { this(instance, false); } public V1RollingUpdateDaemonSetBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet instance, - java.lang.Boolean validationEnabled) { + V1RollingUpdateDaemonSet instance, Boolean validationEnabled) { this.fluent = this; this.withMaxSurge(instance.getMaxSurge()); @@ -72,10 +65,10 @@ public V1RollingUpdateDaemonSetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSetFluent fluent; - java.lang.Boolean validationEnabled; + V1RollingUpdateDaemonSetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet build() { + public V1RollingUpdateDaemonSet build() { V1RollingUpdateDaemonSet buildable = new V1RollingUpdateDaemonSet(); buildable.setMaxSurge(fluent.getMaxSurge()); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); 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 84a308724f..44b02dd259 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 @@ -20,7 +20,7 @@ public interface V1RollingUpdateDaemonSetFluent { public IntOrString getMaxSurge(); - public A withMaxSurge(io.kubernetes.client.custom.IntOrString maxSurge); + public A withMaxSurge(IntOrString maxSurge); public Boolean hasMaxSurge(); @@ -28,13 +28,13 @@ public interface V1RollingUpdateDaemonSetFluent implements V1RollingUpdateDaemonSetFluent { public V1RollingUpdateDaemonSetFluentImpl() {} - public V1RollingUpdateDaemonSetFluentImpl( - io.kubernetes.client.openapi.models.V1RollingUpdateDaemonSet instance) { + public V1RollingUpdateDaemonSetFluentImpl(V1RollingUpdateDaemonSet instance) { this.withMaxSurge(instance.getMaxSurge()); this.withMaxUnavailable(instance.getMaxUnavailable()); } private IntOrString maxSurge; - private io.kubernetes.client.custom.IntOrString maxUnavailable; + private IntOrString maxUnavailable; - public io.kubernetes.client.custom.IntOrString getMaxSurge() { + public IntOrString getMaxSurge() { return this.maxSurge; } - public A withMaxSurge(io.kubernetes.client.custom.IntOrString maxSurge) { + public A withMaxSurge(IntOrString maxSurge) { this.maxSurge = maxSurge; return (A) this; } @@ -52,16 +51,16 @@ public A withNewMaxSurge(String value) { return (A) withMaxSurge(new IntOrString(value)); } - public io.kubernetes.client.custom.IntOrString getMaxUnavailable() { + public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable) { + public A withMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return (A) this; } - public java.lang.Boolean hasMaxUnavailable() { + public Boolean hasMaxUnavailable() { return this.maxUnavailable != null; } @@ -69,7 +68,7 @@ public A withNewMaxUnavailable(int value) { return (A) withMaxUnavailable(new IntOrString(value)); } - public A withNewMaxUnavailable(java.lang.String value) { + public A withNewMaxUnavailable(String value) { return (A) withMaxUnavailable(new IntOrString(value)); } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (maxSurge != null) { 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 246600ed0e..126a852305 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 @@ -16,9 +16,7 @@ public class V1RollingUpdateDeploymentBuilder extends V1RollingUpdateDeploymentFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment, - io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentBuilder> { + implements VisitableBuilder { public V1RollingUpdateDeploymentBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluen } public V1RollingUpdateDeploymentBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentFluent fluent, - java.lang.Boolean validationEnabled) { + V1RollingUpdateDeploymentFluent fluent, Boolean validationEnabled) { this(fluent, new V1RollingUpdateDeployment(), validationEnabled); } public V1RollingUpdateDeploymentBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentFluent fluent, - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment instance) { + V1RollingUpdateDeploymentFluent fluent, V1RollingUpdateDeployment instance) { this(fluent, instance, false); } public V1RollingUpdateDeploymentBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentFluent fluent, - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment instance, - java.lang.Boolean validationEnabled) { + V1RollingUpdateDeploymentFluent fluent, + V1RollingUpdateDeployment instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMaxSurge(instance.getMaxSurge()); @@ -55,14 +51,12 @@ public V1RollingUpdateDeploymentBuilder( this.validationEnabled = validationEnabled; } - public V1RollingUpdateDeploymentBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment instance) { + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeployment instance) { this(instance, false); } public V1RollingUpdateDeploymentBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment instance, - java.lang.Boolean validationEnabled) { + V1RollingUpdateDeployment instance, Boolean validationEnabled) { this.fluent = this; this.withMaxSurge(instance.getMaxSurge()); @@ -71,10 +65,10 @@ public V1RollingUpdateDeploymentBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RollingUpdateDeploymentFluent fluent; - java.lang.Boolean validationEnabled; + V1RollingUpdateDeploymentFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RollingUpdateDeployment build() { + public V1RollingUpdateDeployment build() { V1RollingUpdateDeployment buildable = new V1RollingUpdateDeployment(); buildable.setMaxSurge(fluent.getMaxSurge()); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); 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 187a80def4..d1f9250c6e 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 @@ -20,7 +20,7 @@ public interface V1RollingUpdateDeploymentFluent { public IntOrString getMaxSurge(); - public A withMaxSurge(io.kubernetes.client.custom.IntOrString maxSurge); + public A withMaxSurge(IntOrString maxSurge); public Boolean hasMaxSurge(); @@ -28,13 +28,13 @@ public interface V1RollingUpdateDeploymentFluent implements V1RollingUpdateDeploymentFluent { public V1RollingUpdateDeploymentFluentImpl() {} - public V1RollingUpdateDeploymentFluentImpl( - io.kubernetes.client.openapi.models.V1RollingUpdateDeployment instance) { + public V1RollingUpdateDeploymentFluentImpl(V1RollingUpdateDeployment instance) { this.withMaxSurge(instance.getMaxSurge()); this.withMaxUnavailable(instance.getMaxUnavailable()); } private IntOrString maxSurge; - private io.kubernetes.client.custom.IntOrString maxUnavailable; + private IntOrString maxUnavailable; - public io.kubernetes.client.custom.IntOrString getMaxSurge() { + public IntOrString getMaxSurge() { return this.maxSurge; } - public A withMaxSurge(io.kubernetes.client.custom.IntOrString maxSurge) { + public A withMaxSurge(IntOrString maxSurge) { this.maxSurge = maxSurge; return (A) this; } @@ -52,16 +51,16 @@ public A withNewMaxSurge(String value) { return (A) withMaxSurge(new IntOrString(value)); } - public io.kubernetes.client.custom.IntOrString getMaxUnavailable() { + public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable) { + public A withMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return (A) this; } - public java.lang.Boolean hasMaxUnavailable() { + public Boolean hasMaxUnavailable() { return this.maxUnavailable != null; } @@ -69,7 +68,7 @@ public A withNewMaxUnavailable(int value) { return (A) withMaxUnavailable(new IntOrString(value)); } - public A withNewMaxUnavailable(java.lang.String value) { + public A withNewMaxUnavailable(String value) { return (A) withMaxUnavailable(new IntOrString(value)); } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (maxSurge != null) { 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 a86b45e4ad..540a141478 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 @@ -17,8 +17,7 @@ public class V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy, - V1RollingUpdateStatefulSetStrategyBuilder> { + V1RollingUpdateStatefulSetStrategy, V1RollingUpdateStatefulSetStrategyBuilder> { public V1RollingUpdateStatefulSetStrategyBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1RollingUpdateStatefulSetStrategyBuilder( } public V1RollingUpdateStatefulSetStrategyBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyFluent fluent, - java.lang.Boolean validationEnabled) { + V1RollingUpdateStatefulSetStrategyFluent fluent, Boolean validationEnabled) { this(fluent, new V1RollingUpdateStatefulSetStrategy(), validationEnabled); } public V1RollingUpdateStatefulSetStrategyBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy instance) { + V1RollingUpdateStatefulSetStrategyFluent fluent, + V1RollingUpdateStatefulSetStrategy instance) { this(fluent, instance, false); } public V1RollingUpdateStatefulSetStrategyBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy instance, - java.lang.Boolean validationEnabled) { + V1RollingUpdateStatefulSetStrategyFluent fluent, + V1RollingUpdateStatefulSetStrategy instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMaxUnavailable(instance.getMaxUnavailable()); @@ -56,14 +54,12 @@ public V1RollingUpdateStatefulSetStrategyBuilder( this.validationEnabled = validationEnabled; } - public V1RollingUpdateStatefulSetStrategyBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy instance) { + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance) { this(instance, false); } public V1RollingUpdateStatefulSetStrategyBuilder( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy instance, - java.lang.Boolean validationEnabled) { + V1RollingUpdateStatefulSetStrategy instance, Boolean validationEnabled) { this.fluent = this; this.withMaxUnavailable(instance.getMaxUnavailable()); @@ -72,10 +68,10 @@ public V1RollingUpdateStatefulSetStrategyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyFluent fluent; - java.lang.Boolean validationEnabled; + V1RollingUpdateStatefulSetStrategyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy build() { + public V1RollingUpdateStatefulSetStrategy build() { V1RollingUpdateStatefulSetStrategy buildable = new V1RollingUpdateStatefulSetStrategy(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); buildable.setPartition(fluent.getPartition()); 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 6e2edb07c0..35044ee0bf 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 @@ -21,7 +21,7 @@ public interface V1RollingUpdateStatefulSetStrategyFluent< extends Fluent { public IntOrString getMaxUnavailable(); - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable); + public A withMaxUnavailable(IntOrString maxUnavailable); public Boolean hasMaxUnavailable(); @@ -31,7 +31,7 @@ public interface V1RollingUpdateStatefulSetStrategyFluent< public Integer getPartition(); - public A withPartition(java.lang.Integer partition); + public A withPartition(Integer partition); - public java.lang.Boolean hasPartition(); + public Boolean hasPartition(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java index c3a27513ba..3e7982c215 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluentImpl.java @@ -22,8 +22,7 @@ public class V1RollingUpdateStatefulSetStrategyFluentImpl< extends BaseFluent implements V1RollingUpdateStatefulSetStrategyFluent { public V1RollingUpdateStatefulSetStrategyFluentImpl() {} - public V1RollingUpdateStatefulSetStrategyFluentImpl( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy instance) { + public V1RollingUpdateStatefulSetStrategyFluentImpl(V1RollingUpdateStatefulSetStrategy instance) { this.withMaxUnavailable(instance.getMaxUnavailable()); this.withPartition(instance.getPartition()); @@ -32,11 +31,11 @@ public V1RollingUpdateStatefulSetStrategyFluentImpl( private IntOrString maxUnavailable; private Integer partition; - public io.kubernetes.client.custom.IntOrString getMaxUnavailable() { + public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable) { + public A withMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; return (A) this; } @@ -53,16 +52,16 @@ public A withNewMaxUnavailable(String value) { return (A) withMaxUnavailable(new IntOrString(value)); } - public java.lang.Integer getPartition() { + public Integer getPartition() { return this.partition; } - public A withPartition(java.lang.Integer partition) { + public A withPartition(Integer partition) { this.partition = partition; return (A) this; } - public java.lang.Boolean hasPartition() { + public Boolean hasPartition() { return this.partition != null; } @@ -83,7 +82,7 @@ public int hashCode() { return java.util.Objects.hash(maxUnavailable, partition, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (maxUnavailable != null) { 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 6620cf912b..1f332f6191 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 @@ -16,9 +16,7 @@ public class V1RuleWithOperationsBuilder extends V1RuleWithOperationsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1RuleWithOperations, - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder> { + implements VisitableBuilder { public V1RuleWithOperationsBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent) { } public V1RuleWithOperationsBuilder( - io.kubernetes.client.openapi.models.V1RuleWithOperationsFluent fluent, - java.lang.Boolean validationEnabled) { + V1RuleWithOperationsFluent fluent, Boolean validationEnabled) { this(fluent, new V1RuleWithOperations(), validationEnabled); } public V1RuleWithOperationsBuilder( - io.kubernetes.client.openapi.models.V1RuleWithOperationsFluent fluent, - io.kubernetes.client.openapi.models.V1RuleWithOperations instance) { + V1RuleWithOperationsFluent fluent, V1RuleWithOperations instance) { this(fluent, instance, false); } public V1RuleWithOperationsBuilder( - io.kubernetes.client.openapi.models.V1RuleWithOperationsFluent fluent, - io.kubernetes.client.openapi.models.V1RuleWithOperations instance, - java.lang.Boolean validationEnabled) { + V1RuleWithOperationsFluent fluent, + V1RuleWithOperations instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); @@ -61,14 +57,11 @@ public V1RuleWithOperationsBuilder( this.validationEnabled = validationEnabled; } - public V1RuleWithOperationsBuilder( - io.kubernetes.client.openapi.models.V1RuleWithOperations instance) { + public V1RuleWithOperationsBuilder(V1RuleWithOperations instance) { this(instance, false); } - public V1RuleWithOperationsBuilder( - io.kubernetes.client.openapi.models.V1RuleWithOperations instance, - java.lang.Boolean validationEnabled) { + public V1RuleWithOperationsBuilder(V1RuleWithOperations instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroups(instance.getApiGroups()); @@ -83,10 +76,10 @@ public V1RuleWithOperationsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RuleWithOperationsFluent fluent; - java.lang.Boolean validationEnabled; + V1RuleWithOperationsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RuleWithOperations build() { + public V1RuleWithOperations build() { V1RuleWithOperations buildable = new V1RuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); buildable.setApiVersions(fluent.getApiVersions()); 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 8e0e575a63..138f7ceef3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java @@ -22,133 +22,127 @@ public interface V1RuleWithOperationsFluent { public A addToApiGroups(Integer index, String item); - public A setToApiGroups(java.lang.Integer index, java.lang.String item); + public A setToApiGroups(Integer index, String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); + public A addAllToApiGroups(Collection items); public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(java.util.Collection items); + public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); + public List getApiGroups(); - public java.lang.String getApiGroup(java.lang.Integer index); + public String getApiGroup(Integer index); - public java.lang.String getFirstApiGroup(); + public String getFirstApiGroup(); - public java.lang.String getLastApiGroup(); + public String getLastApiGroup(); - public java.lang.String getMatchingApiGroup(Predicate predicate); + public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate); + public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(java.util.List apiGroups); + public A withApiGroups(List apiGroups); public A withApiGroups(java.lang.String... apiGroups); - public java.lang.Boolean hasApiGroups(); + public Boolean hasApiGroups(); - public A addToApiVersions(java.lang.Integer index, java.lang.String item); + public A addToApiVersions(Integer index, String item); - public A setToApiVersions(java.lang.Integer index, java.lang.String item); + public A setToApiVersions(Integer index, String item); public A addToApiVersions(java.lang.String... items); - public A addAllToApiVersions(java.util.Collection items); + public A addAllToApiVersions(Collection items); public A removeFromApiVersions(java.lang.String... items); - public A removeAllFromApiVersions(java.util.Collection items); + public A removeAllFromApiVersions(Collection items); - public java.util.List getApiVersions(); + public List getApiVersions(); - public java.lang.String getApiVersion(java.lang.Integer index); + public String getApiVersion(Integer index); - public java.lang.String getFirstApiVersion(); + public String getFirstApiVersion(); - public java.lang.String getLastApiVersion(); + public String getLastApiVersion(); - public java.lang.String getMatchingApiVersion( - java.util.function.Predicate predicate); + public String getMatchingApiVersion(Predicate predicate); - public java.lang.Boolean hasMatchingApiVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingApiVersion(Predicate predicate); - public A withApiVersions(java.util.List apiVersions); + public A withApiVersions(List apiVersions); public A withApiVersions(java.lang.String... apiVersions); - public java.lang.Boolean hasApiVersions(); + public Boolean hasApiVersions(); - public A addToOperations(java.lang.Integer index, java.lang.String item); + public A addToOperations(Integer index, String item); - public A setToOperations(java.lang.Integer index, java.lang.String item); + public A setToOperations(Integer index, String item); public A addToOperations(java.lang.String... items); - public A addAllToOperations(java.util.Collection items); + public A addAllToOperations(Collection items); public A removeFromOperations(java.lang.String... items); - public A removeAllFromOperations(java.util.Collection items); + public A removeAllFromOperations(Collection items); - public java.util.List getOperations(); + public List getOperations(); - public java.lang.String getOperation(java.lang.Integer index); + public String getOperation(Integer index); - public java.lang.String getFirstOperation(); + public String getFirstOperation(); - public java.lang.String getLastOperation(); + public String getLastOperation(); - public java.lang.String getMatchingOperation( - java.util.function.Predicate predicate); + public String getMatchingOperation(Predicate predicate); - public java.lang.Boolean hasMatchingOperation( - java.util.function.Predicate predicate); + public Boolean hasMatchingOperation(Predicate predicate); - public A withOperations(java.util.List operations); + public A withOperations(List operations); public A withOperations(java.lang.String... operations); - public java.lang.Boolean hasOperations(); + public Boolean hasOperations(); - public A addToResources(java.lang.Integer index, java.lang.String item); + public A addToResources(Integer index, String item); - public A setToResources(java.lang.Integer index, java.lang.String item); + public A setToResources(Integer index, String item); public A addToResources(java.lang.String... items); - public A addAllToResources(java.util.Collection items); + public A addAllToResources(Collection items); public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(java.util.Collection items); + public A removeAllFromResources(Collection items); - public java.util.List getResources(); + public List getResources(); - public java.lang.String getResource(java.lang.Integer index); + public String getResource(Integer index); - public java.lang.String getFirstResource(); + public String getFirstResource(); - public java.lang.String getLastResource(); + public String getLastResource(); - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate); + public String getMatchingResource(Predicate predicate); - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate); + public Boolean hasMatchingResource(Predicate predicate); - public A withResources(java.util.List resources); + public A withResources(List resources); public A withResources(java.lang.String... resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); - public java.lang.String getScope(); + public String getScope(); - public A withScope(java.lang.String scope); + public A withScope(String scope); - public java.lang.Boolean hasScope(); + public Boolean hasScope(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java index 850ccad418..15d183ad0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluentImpl.java @@ -24,8 +24,7 @@ public class V1RuleWithOperationsFluentImpl implements V1RuleWithOperationsFluent { public V1RuleWithOperationsFluentImpl() {} - public V1RuleWithOperationsFluentImpl( - io.kubernetes.client.openapi.models.V1RuleWithOperations instance) { + public V1RuleWithOperationsFluentImpl(V1RuleWithOperations instance) { this.withApiGroups(instance.getApiGroups()); this.withApiVersions(instance.getApiVersions()); @@ -38,22 +37,22 @@ public V1RuleWithOperationsFluentImpl( } private List apiGroups; - private java.util.List apiVersions; - private java.util.List operations; - private java.util.List resources; - private java.lang.String scope; + private List apiVersions; + private List operations; + private List resources; + private String scope; - public A addToApiGroups(Integer index, java.lang.String item) { + public A addToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.add(index, item); return (A) this; } - public A setToApiGroups(java.lang.Integer index, java.lang.String item) { + public A setToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.set(index, item); return (A) this; @@ -61,26 +60,26 @@ public A setToApiGroups(java.lang.Integer index, java.lang.String item) { public A addToApiGroups(java.lang.String... items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } public A removeFromApiGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -88,8 +87,8 @@ public A removeFromApiGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromApiGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromApiGroups(Collection items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -97,24 +96,24 @@ public A removeAllFromApiGroups(java.util.Collection items) { return (A) this; } - public java.util.List getApiGroups() { + public List getApiGroups() { return this.apiGroups; } - public java.lang.String getApiGroup(java.lang.Integer index) { + public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public java.lang.String getFirstApiGroup() { + public String getFirstApiGroup() { return this.apiGroups.get(0); } - public java.lang.String getLastApiGroup() { + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public java.lang.String getMatchingApiGroup(Predicate predicate) { - for (java.lang.String item : apiGroups) { + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -122,8 +121,8 @@ public java.lang.String getMatchingApiGroup(Predicate predicat return null; } - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate) { - for (java.lang.String item : apiGroups) { + public Boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return true; } @@ -131,10 +130,10 @@ public Boolean hasMatchingApiGroup(java.util.function.Predicate apiGroups) { + public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new java.util.ArrayList(); - for (java.lang.String item : apiGroups) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { this.addToApiGroups(item); } } else { @@ -148,28 +147,28 @@ public A withApiGroups(java.lang.String... apiGroups) { this.apiGroups.clear(); } if (apiGroups != null) { - for (java.lang.String item : apiGroups) { + for (String item : apiGroups) { this.addToApiGroups(item); } } return (A) this; } - public java.lang.Boolean hasApiGroups() { + public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public A addToApiVersions(java.lang.Integer index, java.lang.String item) { + public A addToApiVersions(Integer index, String item) { if (this.apiVersions == null) { - this.apiVersions = new java.util.ArrayList(); + this.apiVersions = new ArrayList(); } this.apiVersions.add(index, item); return (A) this; } - public A setToApiVersions(java.lang.Integer index, java.lang.String item) { + public A setToApiVersions(Integer index, String item) { if (this.apiVersions == null) { - this.apiVersions = new java.util.ArrayList(); + this.apiVersions = new ArrayList(); } this.apiVersions.set(index, item); return (A) this; @@ -177,26 +176,26 @@ public A setToApiVersions(java.lang.Integer index, java.lang.String item) { public A addToApiVersions(java.lang.String... items) { if (this.apiVersions == null) { - this.apiVersions = new java.util.ArrayList(); + this.apiVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiVersions.add(item); } return (A) this; } - public A addAllToApiVersions(java.util.Collection items) { + public A addAllToApiVersions(Collection items) { if (this.apiVersions == null) { - this.apiVersions = new java.util.ArrayList(); + this.apiVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiVersions.add(item); } return (A) this; } public A removeFromApiVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.apiVersions != null) { this.apiVersions.remove(item); } @@ -204,8 +203,8 @@ public A removeFromApiVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromApiVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromApiVersions(Collection items) { + for (String item : items) { if (this.apiVersions != null) { this.apiVersions.remove(item); } @@ -213,25 +212,24 @@ public A removeAllFromApiVersions(java.util.Collection items) return (A) this; } - public java.util.List getApiVersions() { + public List getApiVersions() { return this.apiVersions; } - public java.lang.String getApiVersion(java.lang.Integer index) { + public String getApiVersion(Integer index) { return this.apiVersions.get(index); } - public java.lang.String getFirstApiVersion() { + public String getFirstApiVersion() { return this.apiVersions.get(0); } - public java.lang.String getLastApiVersion() { + public String getLastApiVersion() { return this.apiVersions.get(apiVersions.size() - 1); } - public java.lang.String getMatchingApiVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : apiVersions) { + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { if (predicate.test(item)) { return item; } @@ -239,9 +237,8 @@ public java.lang.String getMatchingApiVersion( return null; } - public java.lang.Boolean hasMatchingApiVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : apiVersions) { + public Boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { if (predicate.test(item)) { return true; } @@ -249,10 +246,10 @@ public java.lang.Boolean hasMatchingApiVersion( return false; } - public A withApiVersions(java.util.List apiVersions) { + public A withApiVersions(List apiVersions) { if (apiVersions != null) { - this.apiVersions = new java.util.ArrayList(); - for (java.lang.String item : apiVersions) { + this.apiVersions = new ArrayList(); + for (String item : apiVersions) { this.addToApiVersions(item); } } else { @@ -266,28 +263,28 @@ public A withApiVersions(java.lang.String... apiVersions) { this.apiVersions.clear(); } if (apiVersions != null) { - for (java.lang.String item : apiVersions) { + for (String item : apiVersions) { this.addToApiVersions(item); } } return (A) this; } - public java.lang.Boolean hasApiVersions() { + public Boolean hasApiVersions() { return apiVersions != null && !apiVersions.isEmpty(); } - public A addToOperations(java.lang.Integer index, java.lang.String item) { + public A addToOperations(Integer index, String item) { if (this.operations == null) { - this.operations = new java.util.ArrayList(); + this.operations = new ArrayList(); } this.operations.add(index, item); return (A) this; } - public A setToOperations(java.lang.Integer index, java.lang.String item) { + public A setToOperations(Integer index, String item) { if (this.operations == null) { - this.operations = new java.util.ArrayList(); + this.operations = new ArrayList(); } this.operations.set(index, item); return (A) this; @@ -295,26 +292,26 @@ public A setToOperations(java.lang.Integer index, java.lang.String item) { public A addToOperations(java.lang.String... items) { if (this.operations == null) { - this.operations = new java.util.ArrayList(); + this.operations = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.operations.add(item); } return (A) this; } - public A addAllToOperations(java.util.Collection items) { + public A addAllToOperations(Collection items) { if (this.operations == null) { - this.operations = new java.util.ArrayList(); + this.operations = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.operations.add(item); } return (A) this; } public A removeFromOperations(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.operations != null) { this.operations.remove(item); } @@ -322,8 +319,8 @@ public A removeFromOperations(java.lang.String... items) { return (A) this; } - public A removeAllFromOperations(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromOperations(Collection items) { + for (String item : items) { if (this.operations != null) { this.operations.remove(item); } @@ -331,25 +328,24 @@ public A removeAllFromOperations(java.util.Collection items) { return (A) this; } - public java.util.List getOperations() { + public List getOperations() { return this.operations; } - public java.lang.String getOperation(java.lang.Integer index) { + public String getOperation(Integer index) { return this.operations.get(index); } - public java.lang.String getFirstOperation() { + public String getFirstOperation() { return this.operations.get(0); } - public java.lang.String getLastOperation() { + public String getLastOperation() { return this.operations.get(operations.size() - 1); } - public java.lang.String getMatchingOperation( - java.util.function.Predicate predicate) { - for (java.lang.String item : operations) { + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { if (predicate.test(item)) { return item; } @@ -357,9 +353,8 @@ public java.lang.String getMatchingOperation( return null; } - public java.lang.Boolean hasMatchingOperation( - java.util.function.Predicate predicate) { - for (java.lang.String item : operations) { + public Boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { if (predicate.test(item)) { return true; } @@ -367,10 +362,10 @@ public java.lang.Boolean hasMatchingOperation( return false; } - public A withOperations(java.util.List operations) { + public A withOperations(List operations) { if (operations != null) { - this.operations = new java.util.ArrayList(); - for (java.lang.String item : operations) { + this.operations = new ArrayList(); + for (String item : operations) { this.addToOperations(item); } } else { @@ -384,28 +379,28 @@ public A withOperations(java.lang.String... operations) { this.operations.clear(); } if (operations != null) { - for (java.lang.String item : operations) { + for (String item : operations) { this.addToOperations(item); } } return (A) this; } - public java.lang.Boolean hasOperations() { + public Boolean hasOperations() { return operations != null && !operations.isEmpty(); } - public A addToResources(java.lang.Integer index, java.lang.String item) { + public A addToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.add(index, item); return (A) this; } - public A setToResources(java.lang.Integer index, java.lang.String item) { + public A setToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.set(index, item); return (A) this; @@ -413,26 +408,26 @@ public A setToResources(java.lang.Integer index, java.lang.String item) { public A addToResources(java.lang.String... items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } - public A addAllToResources(java.util.Collection items) { + public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } public A removeFromResources(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -440,8 +435,8 @@ public A removeFromResources(java.lang.String... items) { return (A) this; } - public A removeAllFromResources(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResources(Collection items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -449,25 +444,24 @@ public A removeAllFromResources(java.util.Collection items) { return (A) this; } - public java.util.List getResources() { + public List getResources() { return this.resources; } - public java.lang.String getResource(java.lang.Integer index) { + public String getResource(Integer index) { return this.resources.get(index); } - public java.lang.String getFirstResource() { + public String getFirstResource() { return this.resources.get(0); } - public java.lang.String getLastResource() { + public String getLastResource() { return this.resources.get(resources.size() - 1); } - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return item; } @@ -475,9 +469,8 @@ public java.lang.String getMatchingResource( return null; } - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public Boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return true; } @@ -485,10 +478,10 @@ public java.lang.Boolean hasMatchingResource( return false; } - public A withResources(java.util.List resources) { + public A withResources(List resources) { if (resources != null) { - this.resources = new java.util.ArrayList(); - for (java.lang.String item : resources) { + this.resources = new ArrayList(); + for (String item : resources) { this.addToResources(item); } } else { @@ -502,27 +495,27 @@ public A withResources(java.lang.String... resources) { this.resources.clear(); } if (resources != null) { - for (java.lang.String item : resources) { + for (String item : resources) { this.addToResources(item); } } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public java.lang.String getScope() { + public String getScope() { return this.scope; } - public A withScope(java.lang.String scope) { + public A withScope(String scope) { this.scope = scope; return (A) this; } - public java.lang.Boolean hasScope() { + public Boolean hasScope() { return this.scope != null; } @@ -547,7 +540,7 @@ public int hashCode() { apiGroups, apiVersions, operations, resources, scope, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroups != null && !apiGroups.isEmpty()) { 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 44b18dbfb6..c908875dac 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1RuntimeClassBuilder extends V1RuntimeClassFluentImpl - implements VisitableBuilder< - V1RuntimeClass, io.kubernetes.client.openapi.models.V1RuntimeClassBuilder> { + implements VisitableBuilder { public V1RuntimeClassBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent) { this(fluent, false); } - public V1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent, Boolean validationEnabled) { this(fluent, new V1RuntimeClass(), validationEnabled); } - public V1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassFluent fluent, - io.kubernetes.client.openapi.models.V1RuntimeClass instance) { + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent, V1RuntimeClass instance) { this(fluent, instance, false); } public V1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassFluent fluent, - io.kubernetes.client.openapi.models.V1RuntimeClass instance, - java.lang.Boolean validationEnabled) { + V1RuntimeClassFluent fluent, V1RuntimeClass instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,13 +54,11 @@ public V1RuntimeClassBuilder( this.validationEnabled = validationEnabled; } - public V1RuntimeClassBuilder(io.kubernetes.client.openapi.models.V1RuntimeClass instance) { + public V1RuntimeClassBuilder(V1RuntimeClass instance) { this(instance, false); } - public V1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClass instance, - java.lang.Boolean validationEnabled) { + public V1RuntimeClassBuilder(V1RuntimeClass instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -84,10 +75,10 @@ public V1RuntimeClassBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RuntimeClassFluent fluent; - java.lang.Boolean validationEnabled; + V1RuntimeClassFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RuntimeClass build() { + public V1RuntimeClass build() { V1RuntimeClass buildable = new V1RuntimeClass(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setHandler(fluent.getHandler()); 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 48ed4b3fbf..c8cb20da81 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 @@ -19,21 +19,21 @@ public interface V1RuntimeClassFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getHandler(); + public String getHandler(); - public A withHandler(java.lang.String handler); + public A withHandler(String handler); - public java.lang.Boolean hasHandler(); + public Boolean hasHandler(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -43,79 +43,69 @@ public interface V1RuntimeClassFluent> extends @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1RuntimeClassFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1RuntimeClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested editMetadata(); + public V1RuntimeClassFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested - editOrNewMetadata(); + public V1RuntimeClassFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1RuntimeClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildOverhead instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1Overhead getOverhead(); - public io.kubernetes.client.openapi.models.V1Overhead buildOverhead(); + public V1Overhead buildOverhead(); - public A withOverhead(io.kubernetes.client.openapi.models.V1Overhead overhead); + public A withOverhead(V1Overhead overhead); - public java.lang.Boolean hasOverhead(); + public Boolean hasOverhead(); public V1RuntimeClassFluent.OverheadNested withNewOverhead(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested - withNewOverheadLike(io.kubernetes.client.openapi.models.V1Overhead item); + public V1RuntimeClassFluent.OverheadNested withNewOverheadLike(V1Overhead item); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested editOverhead(); + public V1RuntimeClassFluent.OverheadNested editOverhead(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested - editOrNewOverhead(); + public V1RuntimeClassFluent.OverheadNested editOrNewOverhead(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested - editOrNewOverheadLike(io.kubernetes.client.openapi.models.V1Overhead item); + public V1RuntimeClassFluent.OverheadNested editOrNewOverheadLike(V1Overhead item); /** * This method has been deprecated, please use method buildScheduling instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1Scheduling getScheduling(); - public io.kubernetes.client.openapi.models.V1Scheduling buildScheduling(); + public V1Scheduling buildScheduling(); - public A withScheduling(io.kubernetes.client.openapi.models.V1Scheduling scheduling); + public A withScheduling(V1Scheduling scheduling); - public java.lang.Boolean hasScheduling(); + public Boolean hasScheduling(); public V1RuntimeClassFluent.SchedulingNested withNewScheduling(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - withNewSchedulingLike(io.kubernetes.client.openapi.models.V1Scheduling item); + public V1RuntimeClassFluent.SchedulingNested withNewSchedulingLike(V1Scheduling item); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - editScheduling(); + public V1RuntimeClassFluent.SchedulingNested editScheduling(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - editOrNewScheduling(); + public V1RuntimeClassFluent.SchedulingNested editOrNewScheduling(); - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - editOrNewSchedulingLike(io.kubernetes.client.openapi.models.V1Scheduling item); + public V1RuntimeClassFluent.SchedulingNested editOrNewSchedulingLike(V1Scheduling item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -125,16 +115,14 @@ public interface MetadataNested } public interface OverheadNested - extends io.kubernetes.client.fluent.Nested, - V1OverheadFluent> { + extends Nested, V1OverheadFluent> { public N and(); public N endOverhead(); } public interface SchedulingNested - extends io.kubernetes.client.fluent.Nested, - V1SchedulingFluent> { + extends Nested, V1SchedulingFluent> { public N and(); public N endScheduling(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java index c912d19e37..36818f8eed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluentImpl.java @@ -21,7 +21,7 @@ public class V1RuntimeClassFluentImpl> extends implements V1RuntimeClassFluent { public V1RuntimeClassFluentImpl() {} - public V1RuntimeClassFluentImpl(io.kubernetes.client.openapi.models.V1RuntimeClass instance) { + public V1RuntimeClassFluentImpl(V1RuntimeClass instance) { this.withApiVersion(instance.getApiVersion()); this.withHandler(instance.getHandler()); @@ -36,17 +36,17 @@ public V1RuntimeClassFluentImpl(io.kubernetes.client.openapi.models.V1RuntimeCla } private String apiVersion; - private java.lang.String handler; - private java.lang.String kind; + private String handler; + private String kind; private V1ObjectMetaBuilder metadata; private V1OverheadBuilder overhead; private V1SchedulingBuilder scheduling; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +55,29 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getHandler() { + public String getHandler() { return this.handler; } - public A withHandler(java.lang.String handler) { + public A withHandler(String handler) { this.handler = handler; return (A) this; } - public java.lang.Boolean hasHandler() { + public Boolean hasHandler() { return this.handler != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -87,24 +87,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -112,25 +115,20 @@ public V1RuntimeClassFluent.MetadataNested withNewMetadata() { return new V1RuntimeClassFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1RuntimeClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1RuntimeClassFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested editMetadata() { + public V1RuntimeClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested - editOrNewMetadata() { + public V1RuntimeClassFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1RuntimeClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -139,25 +137,28 @@ public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested withNewOverhead() { return new V1RuntimeClassFluentImpl.OverheadNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested - withNewOverheadLike(io.kubernetes.client.openapi.models.V1Overhead item) { - return new io.kubernetes.client.openapi.models.V1RuntimeClassFluentImpl.OverheadNestedImpl( - item); + public V1RuntimeClassFluent.OverheadNested withNewOverheadLike(V1Overhead item) { + return new V1RuntimeClassFluentImpl.OverheadNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested editOverhead() { + public V1RuntimeClassFluent.OverheadNested editOverhead() { return withNewOverheadLike(getOverhead()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested - editOrNewOverhead() { + public V1RuntimeClassFluent.OverheadNested editOrNewOverhead() { return withNewOverheadLike( - getOverhead() != null - ? getOverhead() - : new io.kubernetes.client.openapi.models.V1OverheadBuilder().build()); + getOverhead() != null ? getOverhead() : new V1OverheadBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested - editOrNewOverheadLike(io.kubernetes.client.openapi.models.V1Overhead item) { + public V1RuntimeClassFluent.OverheadNested editOrNewOverheadLike(V1Overhead item) { return withNewOverheadLike(getOverhead() != null ? getOverhead() : item); } @@ -193,25 +188,28 @@ public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested withNewScheduling() { return new V1RuntimeClassFluentImpl.SchedulingNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - withNewSchedulingLike(io.kubernetes.client.openapi.models.V1Scheduling item) { - return new io.kubernetes.client.openapi.models.V1RuntimeClassFluentImpl.SchedulingNestedImpl( - item); + public V1RuntimeClassFluent.SchedulingNested withNewSchedulingLike(V1Scheduling item) { + return new V1RuntimeClassFluentImpl.SchedulingNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - editScheduling() { + public V1RuntimeClassFluent.SchedulingNested editScheduling() { return withNewSchedulingLike(getScheduling()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - editOrNewScheduling() { + public V1RuntimeClassFluent.SchedulingNested editOrNewScheduling() { return withNewSchedulingLike( - getScheduling() != null - ? getScheduling() - : new io.kubernetes.client.openapi.models.V1SchedulingBuilder().build()); + getScheduling() != null ? getScheduling() : new V1SchedulingBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested - editOrNewSchedulingLike(io.kubernetes.client.openapi.models.V1Scheduling item) { + public V1RuntimeClassFluent.SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { return withNewSchedulingLike(getScheduling() != null ? getScheduling() : item); } @@ -263,7 +254,7 @@ public int hashCode() { apiVersion, handler, kind, metadata, overhead, scheduling, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -295,17 +286,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1RuntimeClassFluent.MetadataNested, - Nested { + implements V1RuntimeClassFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1RuntimeClassFluentImpl.this.withMetadata(builder.build()); @@ -317,17 +307,16 @@ public N endMetadata() { } class OverheadNestedImpl extends V1OverheadFluentImpl> - implements io.kubernetes.client.openapi.models.V1RuntimeClassFluent.OverheadNested, - io.kubernetes.client.fluent.Nested { + implements V1RuntimeClassFluent.OverheadNested, Nested { OverheadNestedImpl(V1Overhead item) { this.builder = new V1OverheadBuilder(this, item); } OverheadNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1OverheadBuilder(this); + this.builder = new V1OverheadBuilder(this); } - io.kubernetes.client.openapi.models.V1OverheadBuilder builder; + V1OverheadBuilder builder; public N and() { return (N) V1RuntimeClassFluentImpl.this.withOverhead(builder.build()); @@ -340,17 +329,16 @@ public N endOverhead() { class SchedulingNestedImpl extends V1SchedulingFluentImpl> - implements io.kubernetes.client.openapi.models.V1RuntimeClassFluent.SchedulingNested, - io.kubernetes.client.fluent.Nested { + implements V1RuntimeClassFluent.SchedulingNested, Nested { SchedulingNestedImpl(V1Scheduling item) { this.builder = new V1SchedulingBuilder(this, item); } SchedulingNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SchedulingBuilder(this); + this.builder = new V1SchedulingBuilder(this); } - io.kubernetes.client.openapi.models.V1SchedulingBuilder builder; + V1SchedulingBuilder builder; public N and() { return (N) V1RuntimeClassFluentImpl.this.withScheduling(builder.build()); 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 5b633940b2..6e4e37125b 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 @@ -16,8 +16,7 @@ public class V1RuntimeClassListBuilder extends V1RuntimeClassListFluentImpl - implements VisitableBuilder< - V1RuntimeClassList, io.kubernetes.client.openapi.models.V1RuntimeClassListBuilder> { + implements VisitableBuilder { public V1RuntimeClassListBuilder() { this(false); } @@ -30,22 +29,17 @@ public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent) { this(fluent, false); } - public V1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent, Boolean validationEnabled) { this(fluent, new V1RuntimeClassList(), validationEnabled); } public V1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassListFluent fluent, - io.kubernetes.client.openapi.models.V1RuntimeClassList instance) { + V1RuntimeClassListFluent fluent, V1RuntimeClassList instance) { this(fluent, instance, false); } public V1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassListFluent fluent, - io.kubernetes.client.openapi.models.V1RuntimeClassList instance, - java.lang.Boolean validationEnabled) { + V1RuntimeClassListFluent fluent, V1RuntimeClassList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,14 +52,11 @@ public V1RuntimeClassListBuilder( this.validationEnabled = validationEnabled; } - public V1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassList instance) { + public V1RuntimeClassListBuilder(V1RuntimeClassList instance) { this(instance, false); } - public V1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1RuntimeClassList instance, - java.lang.Boolean validationEnabled) { + public V1RuntimeClassListBuilder(V1RuntimeClassList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +69,10 @@ public V1RuntimeClassListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1RuntimeClassListFluent fluent; - java.lang.Boolean validationEnabled; + V1RuntimeClassListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1RuntimeClassList build() { + public V1RuntimeClassList build() { V1RuntimeClassList buildable = new V1RuntimeClassList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 dc633777f6..9baa7cfc07 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 @@ -22,23 +22,21 @@ public interface V1RuntimeClassListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item); + public A addToItems(Integer index, V1RuntimeClass item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item); + public A setToItems(Integer index, V1RuntimeClass item); public A addToItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,84 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1RuntimeClass buildItem(java.lang.Integer index); + public V1RuntimeClass buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1RuntimeClass buildFirstItem(); + public V1RuntimeClass buildFirstItem(); - public io.kubernetes.client.openapi.models.V1RuntimeClass buildLastItem(); + public V1RuntimeClass buildLastItem(); - public io.kubernetes.client.openapi.models.V1RuntimeClass buildMatchingItem( - java.util.function.Predicate - predicate); + public V1RuntimeClass buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1RuntimeClassListFluent.ItemsNested addNewItem(); - public V1RuntimeClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1RuntimeClass item); + public V1RuntimeClassListFluent.ItemsNested addNewItemLike(V1RuntimeClass item); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item); + public V1RuntimeClassListFluent.ItemsNested setNewItemLike(Integer index, V1RuntimeClass item); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1RuntimeClassListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested - editFirstItem(); + public V1RuntimeClassListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested editLastItem(); + public V1RuntimeClassListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1RuntimeClassListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1RuntimeClassListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1RuntimeClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - editMetadata(); + public V1RuntimeClassListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - editOrNewMetadata(); + public V1RuntimeClassListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1RuntimeClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1RuntimeClassFluent> { @@ -135,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java index 9f9341bb5f..58aba954d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluentImpl.java @@ -38,14 +38,14 @@ public V1RuntimeClassListFluentImpl(V1RuntimeClassList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item) { + public A addToItems(Integer index, V1RuntimeClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1RuntimeClassBuilder(item); + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item) { + public A setToItems(Integer index, V1RuntimeClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1RuntimeClassBuilder(item); + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1RuntimeClassBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1RuntimeClassBuilder(item); + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1RuntimeClassBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder = each.next(); + V1RuntimeClassBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1RuntimeClass buildItem(java.lang.Integer index) { + public V1RuntimeClass buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1RuntimeClass buildFirstItem() { + public V1RuntimeClass buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1RuntimeClass buildLastItem() { + public V1RuntimeClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1RuntimeClass buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RuntimeClassBuilder item : items) { + public V1RuntimeClass buildMatchingItem(Predicate predicate) { + for (V1RuntimeClassBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1RuntimeClass buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RuntimeClassBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1RuntimeClassBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1RuntimeClass item : items) { + this.items = new ArrayList(); + for (V1RuntimeClass item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1RuntimeClass item : items) { + for (V1RuntimeClass item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,40 +221,33 @@ public V1RuntimeClassListFluent.ItemsNested addNewItem() { return new V1RuntimeClassListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1RuntimeClass item) { + public V1RuntimeClassListFluent.ItemsNested addNewItemLike(V1RuntimeClass item) { return new V1RuntimeClassListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item) { - return new io.kubernetes.client.openapi.models.V1RuntimeClassListFluentImpl.ItemsNestedImpl( - index, item); + public V1RuntimeClassListFluent.ItemsNested setNewItemLike( + Integer index, V1RuntimeClass item) { + return new V1RuntimeClassListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1RuntimeClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested - editFirstItem() { + public V1RuntimeClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested - editLastItem() { + public V1RuntimeClassListFluent.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 io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1RuntimeClassListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -284,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.ItemsNested< return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -302,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -328,27 +306,20 @@ public V1RuntimeClassListFluent.MetadataNested withNewMetadata() { return new V1RuntimeClassListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1RuntimeClassListFluentImpl.MetadataNestedImpl( - item); + public V1RuntimeClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1RuntimeClassListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - editMetadata() { + public V1RuntimeClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - editOrNewMetadata() { + public V1RuntimeClassListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1RuntimeClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -368,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -393,19 +364,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1RuntimeClassFluentImpl> implements V1RuntimeClassListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuntimeClass item) { + ItemsNestedImpl(Integer index, V1RuntimeClass item) { this.index = index; this.builder = new V1RuntimeClassBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1RuntimeClassBuilder(this); + this.builder = new V1RuntimeClassBuilder(this); } - io.kubernetes.client.openapi.models.V1RuntimeClassBuilder builder; - java.lang.Integer index; + V1RuntimeClassBuilder builder; + Integer index; public N and() { return (N) V1RuntimeClassListFluentImpl.this.setToItems(index, builder.build()); @@ -418,17 +388,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1RuntimeClassListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1RuntimeClassListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1RuntimeClassListFluentImpl.this.withMetadata(builder.build()); 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 7a77701c77..7aabea8a22 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SELinuxOptions, - io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder> { + implements VisitableBuilder { public V1SELinuxOptionsBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent) { this(fluent, false); } - public V1SELinuxOptionsBuilder( - io.kubernetes.client.openapi.models.V1SELinuxOptionsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent, Boolean validationEnabled) { this(fluent, new V1SELinuxOptions(), validationEnabled); } - public V1SELinuxOptionsBuilder( - io.kubernetes.client.openapi.models.V1SELinuxOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1SELinuxOptions instance) { + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent, V1SELinuxOptions instance) { this(fluent, instance, false); } public V1SELinuxOptionsBuilder( - io.kubernetes.client.openapi.models.V1SELinuxOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1SELinuxOptions instance, - java.lang.Boolean validationEnabled) { + V1SELinuxOptionsFluent fluent, V1SELinuxOptions instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLevel(instance.getLevel()); @@ -58,13 +50,11 @@ public V1SELinuxOptionsBuilder( this.validationEnabled = validationEnabled; } - public V1SELinuxOptionsBuilder(io.kubernetes.client.openapi.models.V1SELinuxOptions instance) { + public V1SELinuxOptionsBuilder(V1SELinuxOptions instance) { this(instance, false); } - public V1SELinuxOptionsBuilder( - io.kubernetes.client.openapi.models.V1SELinuxOptions instance, - java.lang.Boolean validationEnabled) { + public V1SELinuxOptionsBuilder(V1SELinuxOptions instance, Boolean validationEnabled) { this.fluent = this; this.withLevel(instance.getLevel()); @@ -77,10 +67,10 @@ public V1SELinuxOptionsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SELinuxOptionsFluent fluent; - java.lang.Boolean validationEnabled; + V1SELinuxOptionsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SELinuxOptions build() { + public V1SELinuxOptions build() { V1SELinuxOptions buildable = new V1SELinuxOptions(); buildable.setLevel(fluent.getLevel()); buildable.setRole(fluent.getRole()); 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 1b83800310..92a7604bff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java @@ -18,25 +18,25 @@ public interface V1SELinuxOptionsFluent> extends Fluent { public String getLevel(); - public A withLevel(java.lang.String level); + public A withLevel(String level); public Boolean hasLevel(); - public java.lang.String getRole(); + public String getRole(); - public A withRole(java.lang.String role); + public A withRole(String role); - public java.lang.Boolean hasRole(); + public Boolean hasRole(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java index b9a9bdff48..f2044a6850 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluentImpl.java @@ -20,7 +20,7 @@ public class V1SELinuxOptionsFluentImpl> ext implements V1SELinuxOptionsFluent { public V1SELinuxOptionsFluentImpl() {} - public V1SELinuxOptionsFluentImpl(io.kubernetes.client.openapi.models.V1SELinuxOptions instance) { + public V1SELinuxOptionsFluentImpl(V1SELinuxOptions instance) { this.withLevel(instance.getLevel()); this.withRole(instance.getRole()); @@ -31,15 +31,15 @@ public V1SELinuxOptionsFluentImpl(io.kubernetes.client.openapi.models.V1SELinuxO } private String level; - private java.lang.String role; - private java.lang.String type; - private java.lang.String user; + private String role; + private String type; + private String user; - public java.lang.String getLevel() { + public String getLevel() { return this.level; } - public A withLevel(java.lang.String level) { + public A withLevel(String level) { this.level = level; return (A) this; } @@ -48,42 +48,42 @@ public Boolean hasLevel() { return this.level != null; } - public java.lang.String getRole() { + public String getRole() { return this.role; } - public A withRole(java.lang.String role) { + public A withRole(String role) { this.role = role; return (A) this; } - public java.lang.Boolean hasRole() { + public Boolean hasRole() { return this.role != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -102,7 +102,7 @@ public int hashCode() { return java.util.Objects.hash(level, role, type, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (level != null) { 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 7caff76e48..01ec02fcd7 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ScaleBuilder extends V1ScaleFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1ScaleBuilder() { this(false); } @@ -24,26 +24,19 @@ public V1ScaleBuilder(Boolean validationEnabled) { this(new V1Scale(), validationEnabled); } - public V1ScaleBuilder(io.kubernetes.client.openapi.models.V1ScaleFluent fluent) { + public V1ScaleBuilder(V1ScaleFluent fluent) { this(fluent, false); } - public V1ScaleBuilder( - io.kubernetes.client.openapi.models.V1ScaleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ScaleBuilder(V1ScaleFluent fluent, Boolean validationEnabled) { this(fluent, new V1Scale(), validationEnabled); } - public V1ScaleBuilder( - io.kubernetes.client.openapi.models.V1ScaleFluent fluent, - io.kubernetes.client.openapi.models.V1Scale instance) { + public V1ScaleBuilder(V1ScaleFluent fluent, V1Scale instance) { this(fluent, instance, false); } - public V1ScaleBuilder( - io.kubernetes.client.openapi.models.V1ScaleFluent fluent, - io.kubernetes.client.openapi.models.V1Scale instance, - java.lang.Boolean validationEnabled) { + public V1ScaleBuilder(V1ScaleFluent fluent, V1Scale instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +51,11 @@ public V1ScaleBuilder( this.validationEnabled = validationEnabled; } - public V1ScaleBuilder(io.kubernetes.client.openapi.models.V1Scale instance) { + public V1ScaleBuilder(V1Scale instance) { this(instance, false); } - public V1ScaleBuilder( - io.kubernetes.client.openapi.models.V1Scale instance, java.lang.Boolean validationEnabled) { + public V1ScaleBuilder(V1Scale instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +70,10 @@ public V1ScaleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScaleFluent fluent; - java.lang.Boolean validationEnabled; + V1ScaleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Scale build() { + public V1Scale build() { V1Scale buildable = new V1Scale(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 39a4e36c1c..96ed51fd29 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 @@ -19,15 +19,15 @@ public interface V1ScaleFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1ScaleFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ScaleFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ScaleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editMetadata(); + public V1ScaleFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editOrNewMetadata(); + public V1ScaleFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ScaleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ScaleSpec getSpec(); - public io.kubernetes.client.openapi.models.V1ScaleSpec buildSpec(); + public V1ScaleSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1ScaleSpec spec); + public A withSpec(V1ScaleSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1ScaleFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ScaleSpec item); + public V1ScaleFluent.SpecNested withNewSpecLike(V1ScaleSpec item); - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editSpec(); + public V1ScaleFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editOrNewSpec(); + public V1ScaleFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ScaleSpec item); + public V1ScaleFluent.SpecNested editOrNewSpecLike(V1ScaleSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ScaleStatus getStatus(); - public io.kubernetes.client.openapi.models.V1ScaleStatus buildStatus(); + public V1ScaleStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1ScaleStatus status); + public A withStatus(V1ScaleStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1ScaleFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1ScaleStatus item); + public V1ScaleFluent.StatusNested withNewStatusLike(V1ScaleStatus item); - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested editStatus(); + public V1ScaleFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested editOrNewStatus(); + public V1ScaleFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1ScaleStatus item); + public V1ScaleFluent.StatusNested editOrNewStatusLike(V1ScaleStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -114,17 +108,14 @@ public interface MetadataNested public N endMetadata(); } - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1ScaleSpecFluent> { + public interface SpecNested extends Nested, V1ScaleSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1ScaleStatusFluent> { + extends Nested, V1ScaleStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java index 22cfef335f..8f9dde13d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluentImpl.java @@ -21,7 +21,7 @@ public class V1ScaleFluentImpl> extends BaseFluent implements V1ScaleFluent { public V1ScaleFluentImpl() {} - public V1ScaleFluentImpl(io.kubernetes.client.openapi.models.V1Scale instance) { + public V1ScaleFluentImpl(V1Scale instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1ScaleFluentImpl(io.kubernetes.client.openapi.models.V1Scale instance) { } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1ScaleSpecBuilder spec; private V1ScaleStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1ScaleFluent.MetadataNested withNewMetadata() { return new V1ScaleFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ScaleFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ScaleFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editMetadata() { + public V1ScaleFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editOrNewMetadata() { + public V1ScaleFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ScaleFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested editO * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ScaleSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1ScaleSpec buildSpec() { + public V1ScaleSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1ScaleSpec spec) { + public A withSpec(V1ScaleSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1ScaleSpecBuilder(spec); + this.spec = new V1ScaleSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1ScaleFluent.SpecNested withNewSpec() { return new V1ScaleFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ScaleSpec item) { - return new io.kubernetes.client.openapi.models.V1ScaleFluentImpl.SpecNestedImpl(item); + public V1ScaleFluent.SpecNested withNewSpecLike(V1ScaleSpec item) { + return new V1ScaleFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editSpec() { + public V1ScaleFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1ScaleSpecBuilder().build()); + public V1ScaleFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1ScaleSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ScaleSpec item) { + public V1ScaleFluent.SpecNested editOrNewSpecLike(V1ScaleSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested editOrNew * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ScaleStatus getStatus() { + @Deprecated + public V1ScaleStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1ScaleStatus buildStatus() { + public V1ScaleStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1ScaleStatus status) { + public A withStatus(V1ScaleStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1ScaleStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,20 @@ public V1ScaleFluent.StatusNested withNewStatus() { return new V1ScaleFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1ScaleStatus item) { - return new io.kubernetes.client.openapi.models.V1ScaleFluentImpl.StatusNestedImpl(item); + public V1ScaleFluent.StatusNested withNewStatusLike(V1ScaleStatus item) { + return new V1ScaleFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested editStatus() { + public V1ScaleFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested editOrNewStatus() { + public V1ScaleFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1ScaleStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1ScaleStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1ScaleStatus item) { + public V1ScaleFluent.StatusNested editOrNewStatusLike(V1ScaleStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ScaleFluent.MetadataNested, Nested { + implements V1ScaleFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ScaleFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1ScaleSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ScaleFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1ScaleFluent.SpecNested, Nested { SpecNestedImpl(V1ScaleSpec item) { this.builder = new V1ScaleSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ScaleSpecBuilder(this); + this.builder = new V1ScaleSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1ScaleSpecBuilder builder; + V1ScaleSpecBuilder builder; public N and() { return (N) V1ScaleFluentImpl.this.withSpec(builder.build()); @@ -309,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1ScaleStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ScaleFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1ScaleFluent.StatusNested, Nested { StatusNestedImpl(V1ScaleStatus item) { this.builder = new V1ScaleStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ScaleStatusBuilder(this); + this.builder = new V1ScaleStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ScaleStatusBuilder builder; + V1ScaleStatusBuilder builder; public N and() { return (N) V1ScaleFluentImpl.this.withStatus(builder.build()); 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 c672c16160..04403938d2 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 @@ -17,8 +17,7 @@ public class V1ScaleIOPersistentVolumeSourceBuilder extends V1ScaleIOPersistentVolumeSourceFluentImpl implements VisitableBuilder< - V1ScaleIOPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceBuilder> { + V1ScaleIOPersistentVolumeSource, V1ScaleIOPersistentVolumeSourceBuilder> { public V1ScaleIOPersistentVolumeSourceBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1ScaleIOPersistentVolumeSourceBuilder(Boolean validationEnabled) { this(new V1ScaleIOPersistentVolumeSource(), validationEnabled); } - public V1ScaleIOPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent fluent) { + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent) { this(fluent, false); } public V1ScaleIOPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ScaleIOPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ScaleIOPersistentVolumeSource(), validationEnabled); } public V1ScaleIOPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource instance) { + V1ScaleIOPersistentVolumeSourceFluent fluent, V1ScaleIOPersistentVolumeSource instance) { this(fluent, instance, false); } public V1ScaleIOPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ScaleIOPersistentVolumeSourceFluent fluent, + V1ScaleIOPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -72,14 +68,12 @@ public V1ScaleIOPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ScaleIOPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource instance) { + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSource instance) { this(instance, false); } public V1ScaleIOPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ScaleIOPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -104,10 +98,10 @@ public V1ScaleIOPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ScaleIOPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource build() { + public V1ScaleIOPersistentVolumeSource build() { V1ScaleIOPersistentVolumeSource buildable = new V1ScaleIOPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setGateway(fluent.getGateway()); 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 bb2f00ba7d..3bf4181a4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java @@ -21,27 +21,27 @@ public interface V1ScaleIOPersistentVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getGateway(); + public String getGateway(); - public A withGateway(java.lang.String gateway); + public A withGateway(String gateway); - public java.lang.Boolean hasGateway(); + public Boolean hasGateway(); - public java.lang.String getProtectionDomain(); + public String getProtectionDomain(); - public A withProtectionDomain(java.lang.String protectionDomain); + public A withProtectionDomain(String protectionDomain); - public java.lang.Boolean hasProtectionDomain(); + public Boolean hasProtectionDomain(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -51,59 +51,53 @@ public interface V1ScaleIOPersistentVolumeSourceFluent< @Deprecated public V1SecretReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef(); + public V1SecretReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef); + public A withSecretRef(V1SecretReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item); - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - editSecretRef(); + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - editOrNewSecretRef(); + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item); + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item); - public java.lang.Boolean getSslEnabled(); + public Boolean getSslEnabled(); - public A withSslEnabled(java.lang.Boolean sslEnabled); + public A withSslEnabled(Boolean sslEnabled); - public java.lang.Boolean hasSslEnabled(); + public Boolean hasSslEnabled(); - public java.lang.String getStorageMode(); + public String getStorageMode(); - public A withStorageMode(java.lang.String storageMode); + public A withStorageMode(String storageMode); - public java.lang.Boolean hasStorageMode(); + public Boolean hasStorageMode(); - public java.lang.String getStoragePool(); + public String getStoragePool(); - public A withStoragePool(java.lang.String storagePool); + public A withStoragePool(String storagePool); - public java.lang.Boolean hasStoragePool(); + public Boolean hasStoragePool(); - public java.lang.String getSystem(); + public String getSystem(); - public A withSystem(java.lang.String system); + public A withSystem(String system); - public java.lang.Boolean hasSystem(); + public Boolean hasSystem(); - public java.lang.String getVolumeName(); + public String getVolumeName(); - public A withVolumeName(java.lang.String volumeName); + public A withVolumeName(String volumeName); - public java.lang.Boolean hasVolumeName(); + public Boolean hasVolumeName(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java index aa373149aa..f04b41ec6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluentImpl.java @@ -22,8 +22,7 @@ public class V1ScaleIOPersistentVolumeSourceFluentImpl< extends BaseFluent implements V1ScaleIOPersistentVolumeSourceFluent { public V1ScaleIOPersistentVolumeSourceFluentImpl() {} - public V1ScaleIOPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSource instance) { + public V1ScaleIOPersistentVolumeSourceFluentImpl(V1ScaleIOPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); this.withGateway(instance.getGateway()); @@ -46,65 +45,65 @@ public V1ScaleIOPersistentVolumeSourceFluentImpl( } private String fsType; - private java.lang.String gateway; - private java.lang.String protectionDomain; + private String gateway; + private String protectionDomain; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - private java.lang.Boolean sslEnabled; - private java.lang.String storageMode; - private java.lang.String storagePool; - private java.lang.String system; - private java.lang.String volumeName; + private Boolean sslEnabled; + private String storageMode; + private String storagePool; + private String system; + private String volumeName; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getGateway() { + public String getGateway() { return this.gateway; } - public A withGateway(java.lang.String gateway) { + public A withGateway(String gateway) { this.gateway = gateway; return (A) this; } - public java.lang.Boolean hasGateway() { + public Boolean hasGateway() { return this.gateway != null; } - public java.lang.String getProtectionDomain() { + public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(java.lang.String protectionDomain) { + public A withProtectionDomain(String protectionDomain) { this.protectionDomain = protectionDomain; return (A) this; } - public java.lang.Boolean hasProtectionDomain() { + public Boolean hasProtectionDomain() { return this.protectionDomain != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -118,20 +117,23 @@ public V1SecretReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretReference buildSecretRef() { + public V1SecretReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1SecretReference secretRef) { + public A withSecretRef(V1SecretReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(secretRef); + this.secretRef = new V1SecretReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -139,95 +141,87 @@ public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef return new V1ScaleIOPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1SecretReference item) { return new V1ScaleIOPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - editSecretRef() { + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - editOrNewSecretRef() { + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1SecretReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested< - A> - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1SecretReference item) { + public V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1SecretReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.Boolean getSslEnabled() { + public Boolean getSslEnabled() { return this.sslEnabled; } - public A withSslEnabled(java.lang.Boolean sslEnabled) { + public A withSslEnabled(Boolean sslEnabled) { this.sslEnabled = sslEnabled; return (A) this; } - public java.lang.Boolean hasSslEnabled() { + public Boolean hasSslEnabled() { return this.sslEnabled != null; } - public java.lang.String getStorageMode() { + public String getStorageMode() { return this.storageMode; } - public A withStorageMode(java.lang.String storageMode) { + public A withStorageMode(String storageMode) { this.storageMode = storageMode; return (A) this; } - public java.lang.Boolean hasStorageMode() { + public Boolean hasStorageMode() { return this.storageMode != null; } - public java.lang.String getStoragePool() { + public String getStoragePool() { return this.storagePool; } - public A withStoragePool(java.lang.String storagePool) { + public A withStoragePool(String storagePool) { this.storagePool = storagePool; return (A) this; } - public java.lang.Boolean hasStoragePool() { + public Boolean hasStoragePool() { return this.storagePool != null; } - public java.lang.String getSystem() { + public String getSystem() { return this.system; } - public A withSystem(java.lang.String system) { + public A withSystem(String system) { this.system = system; return (A) this; } - public java.lang.Boolean hasSystem() { + public Boolean hasSystem() { return this.system != null; } - public java.lang.String getVolumeName() { + public String getVolumeName() { return this.volumeName; } - public A withVolumeName(java.lang.String volumeName) { + public A withVolumeName(String volumeName) { this.volumeName = volumeName; return (A) this; } - public java.lang.Boolean hasVolumeName() { + public Boolean hasVolumeName() { return this.volumeName != null; } @@ -270,7 +264,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -327,19 +321,16 @@ public A withSslEnabled() { class SecretRefNestedImpl extends V1SecretReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ScaleIOPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { + implements V1ScaleIOPersistentVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretReferenceBuilder(this); + this.builder = new V1SecretReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretReferenceBuilder builder; + V1SecretReferenceBuilder builder; public N and() { return (N) V1ScaleIOPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 4be361e341..8f5f976715 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 @@ -16,8 +16,7 @@ public class V1ScaleIOVolumeSourceBuilder extends V1ScaleIOVolumeSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource, V1ScaleIOVolumeSourceBuilder> { + implements VisitableBuilder { public V1ScaleIOVolumeSourceBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent) { } public V1ScaleIOVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1ScaleIOVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1ScaleIOVolumeSource(), validationEnabled); } public V1ScaleIOVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource instance) { + V1ScaleIOVolumeSourceFluent fluent, V1ScaleIOVolumeSource instance) { this(fluent, instance, false); } public V1ScaleIOVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1ScaleIOVolumeSourceFluent fluent, + V1ScaleIOVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -70,14 +67,11 @@ public V1ScaleIOVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1ScaleIOVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource instance) { + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance) { this(instance, false); } - public V1ScaleIOVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -102,10 +96,10 @@ public V1ScaleIOVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1ScaleIOVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource build() { + public V1ScaleIOVolumeSource build() { V1ScaleIOVolumeSource buildable = new V1ScaleIOVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setGateway(fluent.getGateway()); 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 d202767bde..7e90589305 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 @@ -20,27 +20,27 @@ public interface V1ScaleIOVolumeSourceFluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getGateway(); + public String getGateway(); - public A withGateway(java.lang.String gateway); + public A withGateway(String gateway); - public java.lang.Boolean hasGateway(); + public Boolean hasGateway(); - public java.lang.String getProtectionDomain(); + public String getProtectionDomain(); - public A withProtectionDomain(java.lang.String protectionDomain); + public A withProtectionDomain(String protectionDomain); - public java.lang.Boolean hasProtectionDomain(); + public Boolean hasProtectionDomain(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -50,55 +50,53 @@ public interface V1ScaleIOVolumeSourceFluent withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1ScaleIOVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); - public java.lang.Boolean getSslEnabled(); + public Boolean getSslEnabled(); - public A withSslEnabled(java.lang.Boolean sslEnabled); + public A withSslEnabled(Boolean sslEnabled); - public java.lang.Boolean hasSslEnabled(); + public Boolean hasSslEnabled(); - public java.lang.String getStorageMode(); + public String getStorageMode(); - public A withStorageMode(java.lang.String storageMode); + public A withStorageMode(String storageMode); - public java.lang.Boolean hasStorageMode(); + public Boolean hasStorageMode(); - public java.lang.String getStoragePool(); + public String getStoragePool(); - public A withStoragePool(java.lang.String storagePool); + public A withStoragePool(String storagePool); - public java.lang.Boolean hasStoragePool(); + public Boolean hasStoragePool(); - public java.lang.String getSystem(); + public String getSystem(); - public A withSystem(java.lang.String system); + public A withSystem(String system); - public java.lang.Boolean hasSystem(); + public Boolean hasSystem(); - public java.lang.String getVolumeName(); + public String getVolumeName(); - public A withVolumeName(java.lang.String volumeName); + public A withVolumeName(String volumeName); - public java.lang.Boolean hasVolumeName(); + public Boolean hasVolumeName(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java index 3a123c902c..c978ed9c13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1ScaleIOVolumeSourceFluentImpl implements V1ScaleIOVolumeSourceFluent { public V1ScaleIOVolumeSourceFluentImpl() {} - public V1ScaleIOVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource instance) { + public V1ScaleIOVolumeSourceFluentImpl(V1ScaleIOVolumeSource instance) { this.withFsType(instance.getFsType()); this.withGateway(instance.getGateway()); @@ -45,65 +44,65 @@ public V1ScaleIOVolumeSourceFluentImpl( } private String fsType; - private java.lang.String gateway; - private java.lang.String protectionDomain; + private String gateway; + private String protectionDomain; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - private java.lang.Boolean sslEnabled; - private java.lang.String storageMode; - private java.lang.String storagePool; - private java.lang.String system; - private java.lang.String volumeName; + private Boolean sslEnabled; + private String storageMode; + private String storagePool; + private String system; + private String volumeName; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getGateway() { + public String getGateway() { return this.gateway; } - public A withGateway(java.lang.String gateway) { + public A withGateway(String gateway) { this.gateway = gateway; return (A) this; } - public java.lang.Boolean hasGateway() { + public Boolean hasGateway() { return this.gateway != null; } - public java.lang.String getProtectionDomain() { + public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(java.lang.String protectionDomain) { + public A withProtectionDomain(String protectionDomain) { this.protectionDomain = protectionDomain; return (A) this; } - public java.lang.Boolean hasProtectionDomain() { + public Boolean hasProtectionDomain() { return this.protectionDomain != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -117,21 +116,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -139,91 +140,87 @@ public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1ScaleIOVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1ScaleIOVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1ScaleIOVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1ScaleIOVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1ScaleIOVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.Boolean getSslEnabled() { + public Boolean getSslEnabled() { return this.sslEnabled; } - public A withSslEnabled(java.lang.Boolean sslEnabled) { + public A withSslEnabled(Boolean sslEnabled) { this.sslEnabled = sslEnabled; return (A) this; } - public java.lang.Boolean hasSslEnabled() { + public Boolean hasSslEnabled() { return this.sslEnabled != null; } - public java.lang.String getStorageMode() { + public String getStorageMode() { return this.storageMode; } - public A withStorageMode(java.lang.String storageMode) { + public A withStorageMode(String storageMode) { this.storageMode = storageMode; return (A) this; } - public java.lang.Boolean hasStorageMode() { + public Boolean hasStorageMode() { return this.storageMode != null; } - public java.lang.String getStoragePool() { + public String getStoragePool() { return this.storagePool; } - public A withStoragePool(java.lang.String storagePool) { + public A withStoragePool(String storagePool) { this.storagePool = storagePool; return (A) this; } - public java.lang.Boolean hasStoragePool() { + public Boolean hasStoragePool() { return this.storagePool != null; } - public java.lang.String getSystem() { + public String getSystem() { return this.system; } - public A withSystem(java.lang.String system) { + public A withSystem(String system) { this.system = system; return (A) this; } - public java.lang.Boolean hasSystem() { + public Boolean hasSystem() { return this.system != null; } - public java.lang.String getVolumeName() { + public String getVolumeName() { return this.volumeName; } - public A withVolumeName(java.lang.String volumeName) { + public A withVolumeName(String volumeName) { this.volumeName = volumeName; return (A) this; } - public java.lang.Boolean hasVolumeName() { + public Boolean hasVolumeName() { return this.volumeName != null; } @@ -266,7 +263,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -323,17 +320,16 @@ public A withSslEnabled() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceFluent.SecretRefNested, - Nested { + implements V1ScaleIOVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1ScaleIOVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 07d6ef8dd5..8415a0d041 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ScaleSpecBuilder extends V1ScaleSpecFluentImpl - implements VisitableBuilder< - V1ScaleSpec, io.kubernetes.client.openapi.models.V1ScaleSpecBuilder> { + implements VisitableBuilder { public V1ScaleSpecBuilder() { this(false); } @@ -25,49 +24,41 @@ public V1ScaleSpecBuilder(Boolean validationEnabled) { this(new V1ScaleSpec(), validationEnabled); } - public V1ScaleSpecBuilder(io.kubernetes.client.openapi.models.V1ScaleSpecFluent fluent) { + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent) { this(fluent, false); } - public V1ScaleSpecBuilder( - io.kubernetes.client.openapi.models.V1ScaleSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1ScaleSpec(), validationEnabled); } - public V1ScaleSpecBuilder( - io.kubernetes.client.openapi.models.V1ScaleSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleSpec instance) { + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent, V1ScaleSpec instance) { this(fluent, instance, false); } public V1ScaleSpecBuilder( - io.kubernetes.client.openapi.models.V1ScaleSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleSpec instance, - java.lang.Boolean validationEnabled) { + V1ScaleSpecFluent fluent, V1ScaleSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withReplicas(instance.getReplicas()); this.validationEnabled = validationEnabled; } - public V1ScaleSpecBuilder(io.kubernetes.client.openapi.models.V1ScaleSpec instance) { + public V1ScaleSpecBuilder(V1ScaleSpec instance) { this(instance, false); } - public V1ScaleSpecBuilder( - io.kubernetes.client.openapi.models.V1ScaleSpec instance, - java.lang.Boolean validationEnabled) { + public V1ScaleSpecBuilder(V1ScaleSpec instance, Boolean validationEnabled) { this.fluent = this; this.withReplicas(instance.getReplicas()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScaleSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1ScaleSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ScaleSpec build() { + public V1ScaleSpec build() { V1ScaleSpec buildable = new V1ScaleSpec(); buildable.setReplicas(fluent.getReplicas()); return buildable; 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 1f869cfea6..8cc460a2ce 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 @@ -18,7 +18,7 @@ public interface V1ScaleSpecFluent> extends Fluent { public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); public Boolean hasReplicas(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java index 8f28d2793a..a0b00d9be8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluentImpl.java @@ -20,17 +20,17 @@ public class V1ScaleSpecFluentImpl> extends BaseF implements V1ScaleSpecFluent { public V1ScaleSpecFluentImpl() {} - public V1ScaleSpecFluentImpl(io.kubernetes.client.openapi.models.V1ScaleSpec instance) { + public V1ScaleSpecFluentImpl(V1ScaleSpec instance) { this.withReplicas(instance.getReplicas()); } private Integer replicas; - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } 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 7b0596db59..5e5c160da6 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ScaleStatusBuilder extends V1ScaleStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ScaleStatus, V1ScaleStatusBuilder> { + implements VisitableBuilder { public V1ScaleStatusBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1ScaleStatusBuilder(Boolean validationEnabled) { this(new V1ScaleStatus(), validationEnabled); } - public V1ScaleStatusBuilder(io.kubernetes.client.openapi.models.V1ScaleStatusFluent fluent) { + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent) { this(fluent, false); } - public V1ScaleStatusBuilder( - io.kubernetes.client.openapi.models.V1ScaleStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ScaleStatus(), validationEnabled); } - public V1ScaleStatusBuilder( - io.kubernetes.client.openapi.models.V1ScaleStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleStatus instance) { + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent, V1ScaleStatus instance) { this(fluent, instance, false); } public V1ScaleStatusBuilder( - io.kubernetes.client.openapi.models.V1ScaleStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ScaleStatus instance, - java.lang.Boolean validationEnabled) { + V1ScaleStatusFluent fluent, V1ScaleStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withReplicas(instance.getReplicas()); @@ -53,13 +46,11 @@ public V1ScaleStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ScaleStatusBuilder(io.kubernetes.client.openapi.models.V1ScaleStatus instance) { + public V1ScaleStatusBuilder(V1ScaleStatus instance) { this(instance, false); } - public V1ScaleStatusBuilder( - io.kubernetes.client.openapi.models.V1ScaleStatus instance, - java.lang.Boolean validationEnabled) { + public V1ScaleStatusBuilder(V1ScaleStatus instance, Boolean validationEnabled) { this.fluent = this; this.withReplicas(instance.getReplicas()); @@ -68,10 +59,10 @@ public V1ScaleStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScaleStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ScaleStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ScaleStatus build() { + public V1ScaleStatus build() { V1ScaleStatus buildable = new V1ScaleStatus(); buildable.setReplicas(fluent.getReplicas()); buildable.setSelector(fluent.getSelector()); 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 8bb3063ff5..4da39dbcb1 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 @@ -18,13 +18,13 @@ public interface V1ScaleStatusFluent> extends Fluent { public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); public Boolean hasReplicas(); public String getSelector(); - public A withSelector(java.lang.String selector); + public A withSelector(String selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java index 7e70f8d284..791ce2e83b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluentImpl.java @@ -20,7 +20,7 @@ public class V1ScaleStatusFluentImpl> extends B implements V1ScaleStatusFluent { public V1ScaleStatusFluentImpl() {} - public V1ScaleStatusFluentImpl(io.kubernetes.client.openapi.models.V1ScaleStatus instance) { + public V1ScaleStatusFluentImpl(V1ScaleStatus instance) { this.withReplicas(instance.getReplicas()); this.withSelector(instance.getSelector()); @@ -29,11 +29,11 @@ public V1ScaleStatusFluentImpl(io.kubernetes.client.openapi.models.V1ScaleStatus private Integer replicas; private String selector; - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasReplicas() { return this.replicas != null; } - public java.lang.String getSelector() { + public String getSelector() { return this.selector; } - public A withSelector(java.lang.String selector) { + public A withSelector(String selector) { this.selector = selector; return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(replicas, selector, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (replicas != null) { 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 2d73bdc7d7..aa7ba8f96d 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SchedulingBuilder extends V1SchedulingFluentImpl - implements VisitableBuilder< - V1Scheduling, io.kubernetes.client.openapi.models.V1SchedulingBuilder> { + implements VisitableBuilder { public V1SchedulingBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1SchedulingBuilder(V1SchedulingFluent fluent) { this(fluent, false); } - public V1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1SchedulingFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SchedulingBuilder(V1SchedulingFluent fluent, Boolean validationEnabled) { this(fluent, new V1Scheduling(), validationEnabled); } - public V1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1SchedulingFluent fluent, - io.kubernetes.client.openapi.models.V1Scheduling instance) { + public V1SchedulingBuilder(V1SchedulingFluent fluent, V1Scheduling instance) { this(fluent, instance, false); } public V1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1SchedulingFluent fluent, - io.kubernetes.client.openapi.models.V1Scheduling instance, - java.lang.Boolean validationEnabled) { + V1SchedulingFluent fluent, V1Scheduling instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withNodeSelector(instance.getNodeSelector()); @@ -53,13 +46,11 @@ public V1SchedulingBuilder( this.validationEnabled = validationEnabled; } - public V1SchedulingBuilder(io.kubernetes.client.openapi.models.V1Scheduling instance) { + public V1SchedulingBuilder(V1Scheduling instance) { this(instance, false); } - public V1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1Scheduling instance, - java.lang.Boolean validationEnabled) { + public V1SchedulingBuilder(V1Scheduling instance, Boolean validationEnabled) { this.fluent = this; this.withNodeSelector(instance.getNodeSelector()); @@ -68,10 +59,10 @@ public V1SchedulingBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SchedulingFluent fluent; - java.lang.Boolean validationEnabled; + V1SchedulingFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Scheduling build() { + public V1Scheduling build() { V1Scheduling buildable = new V1Scheduling(); buildable.setNodeSelector(fluent.getNodeSelector()); buildable.setTolerations(fluent.getTolerations()); 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 9e3ef6b068..1d31ecf7cd 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 @@ -21,33 +21,31 @@ /** Generated */ public interface V1SchedulingFluent> extends Fluent { - public A addToNodeSelector(String key, java.lang.String value); + public A addToNodeSelector(String key, String value); - public A addToNodeSelector(Map map); + public A addToNodeSelector(Map map); - public A removeFromNodeSelector(java.lang.String key); + public A removeFromNodeSelector(String key); - public A removeFromNodeSelector(java.util.Map map); + public A removeFromNodeSelector(Map map); - public java.util.Map getNodeSelector(); + public Map getNodeSelector(); - public A withNodeSelector(java.util.Map nodeSelector); + public A withNodeSelector(Map nodeSelector); public Boolean hasNodeSelector(); public A addToTolerations(Integer index, V1Toleration item); - public A setToTolerations( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item); + public A setToTolerations(Integer index, V1Toleration item); public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A addAllToTolerations(Collection items); + public A addAllToTolerations(Collection items); public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - public A removeAllFromTolerations( - java.util.Collection items); + public A removeAllFromTolerations(Collection items); public A removeMatchingFromTolerations(Predicate predicate); @@ -57,53 +55,41 @@ public A removeAllFromTolerations( * @return The buildable object. */ @Deprecated - public List getTolerations(); + public List getTolerations(); - public java.util.List buildTolerations(); + public List buildTolerations(); - public io.kubernetes.client.openapi.models.V1Toleration buildToleration(java.lang.Integer index); + public V1Toleration buildToleration(Integer index); - public io.kubernetes.client.openapi.models.V1Toleration buildFirstToleration(); + public V1Toleration buildFirstToleration(); - public io.kubernetes.client.openapi.models.V1Toleration buildLastToleration(); + public V1Toleration buildLastToleration(); - public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( - java.util.function.Predicate - predicate); + public V1Toleration buildMatchingToleration(Predicate predicate); - public java.lang.Boolean hasMatchingToleration( - java.util.function.Predicate - predicate); + public Boolean hasMatchingToleration(Predicate predicate); - public A withTolerations( - java.util.List tolerations); + public A withTolerations(List tolerations); public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations); - public java.lang.Boolean hasTolerations(); + public Boolean hasTolerations(); public V1SchedulingFluent.TolerationsNested addNewToleration(); - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - addNewTolerationLike(io.kubernetes.client.openapi.models.V1Toleration item); + public V1SchedulingFluent.TolerationsNested addNewTolerationLike(V1Toleration item); - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - setNewTolerationLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item); + public V1SchedulingFluent.TolerationsNested setNewTolerationLike( + Integer index, V1Toleration item); - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested editToleration( - java.lang.Integer index); + public V1SchedulingFluent.TolerationsNested editToleration(Integer index); - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - editFirstToleration(); + public V1SchedulingFluent.TolerationsNested editFirstToleration(); - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - editLastToleration(); + public V1SchedulingFluent.TolerationsNested editLastToleration(); - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - editMatchingToleration( - java.util.function.Predicate - predicate); + public V1SchedulingFluent.TolerationsNested editMatchingToleration( + Predicate predicate); public interface TolerationsNested extends Nested, V1TolerationFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java index 4ff4bad5e3..f9a692eafc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluentImpl.java @@ -28,16 +28,16 @@ public class V1SchedulingFluentImpl> extends Bas implements V1SchedulingFluent { public V1SchedulingFluentImpl() {} - public V1SchedulingFluentImpl(io.kubernetes.client.openapi.models.V1Scheduling instance) { + public V1SchedulingFluentImpl(V1Scheduling instance) { this.withNodeSelector(instance.getNodeSelector()); this.withTolerations(instance.getTolerations()); } - private Map nodeSelector; + private Map nodeSelector; private ArrayList tolerations; - public A addToNodeSelector(java.lang.String key, java.lang.String value) { + public A addToNodeSelector(String key, String value) { if (this.nodeSelector == null && key != null && value != null) { this.nodeSelector = new LinkedHashMap(); } @@ -47,9 +47,9 @@ public A addToNodeSelector(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToNodeSelector(java.util.Map map) { + public A addToNodeSelector(Map map) { if (this.nodeSelector == null && map != null) { - this.nodeSelector = new java.util.LinkedHashMap(); + this.nodeSelector = new LinkedHashMap(); } if (map != null) { this.nodeSelector.putAll(map); @@ -57,7 +57,7 @@ public A addToNodeSelector(java.util.Map map return (A) this; } - public A removeFromNodeSelector(java.lang.String key) { + public A removeFromNodeSelector(String key) { if (this.nodeSelector == null) { return (A) this; } @@ -67,7 +67,7 @@ public A removeFromNodeSelector(java.lang.String key) { return (A) this; } - public A removeFromNodeSelector(java.util.Map map) { + public A removeFromNodeSelector(Map map) { if (this.nodeSelector == null) { return (A) this; } @@ -81,15 +81,15 @@ public A removeFromNodeSelector(java.util.Map getNodeSelector() { + public Map getNodeSelector() { return this.nodeSelector; } - public A withNodeSelector(java.util.Map nodeSelector) { + public A withNodeSelector(Map nodeSelector) { if (nodeSelector == null) { this.nodeSelector = null; } else { - this.nodeSelector = new java.util.LinkedHashMap(nodeSelector); + this.nodeSelector = new LinkedHashMap(nodeSelector); } return (A) this; } @@ -100,11 +100,9 @@ public Boolean hasNodeSelector() { public A addToTolerations(Integer index, V1Toleration item) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables .get("tolerations") .add(index >= 0 ? index : _visitables.get("tolerations").size(), builder); @@ -112,14 +110,11 @@ public A addToTolerations(Integer index, V1Toleration item) { return (A) this; } - public A setToTolerations( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { + public A setToTolerations(Integer index, V1Toleration item) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + V1TolerationBuilder builder = new V1TolerationBuilder(item); if (index < 0 || index >= _visitables.get("tolerations").size()) { _visitables.get("tolerations").add(builder); } else { @@ -135,26 +130,22 @@ public A setToTolerations( public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + 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) { + public A addAllToTolerations(Collection items) { if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); + this.tolerations = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").add(builder); this.tolerations.add(builder); } @@ -162,9 +153,8 @@ public A addAllToTolerations(Collection items) { - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); + public A removeAllFromTolerations(Collection items) { + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); _visitables.get("tolerations").remove(builder); if (this.tolerations != null) { this.tolerations.remove(builder); @@ -186,14 +174,12 @@ public A removeAllFromTolerations( return (A) this; } - public A removeMatchingFromTolerations( - Predicate predicate) { + public A removeMatchingFromTolerations(Predicate predicate) { if (tolerations == null) return (A) this; - final Iterator each = - tolerations.iterator(); + final Iterator each = tolerations.iterator(); final List visitables = _visitables.get("tolerations"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = each.next(); + V1TolerationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -208,30 +194,28 @@ public A removeMatchingFromTolerations( * @return The buildable object. */ @Deprecated - public List getTolerations() { + public List getTolerations() { return tolerations != null ? build(tolerations) : null; } - public java.util.List buildTolerations() { + public List buildTolerations() { return tolerations != null ? build(tolerations) : null; } - public io.kubernetes.client.openapi.models.V1Toleration buildToleration(java.lang.Integer index) { + public V1Toleration buildToleration(Integer index) { return this.tolerations.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Toleration buildFirstToleration() { + public V1Toleration buildFirstToleration() { return this.tolerations.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Toleration buildLastToleration() { + public V1Toleration buildLastToleration() { return this.tolerations.get(tolerations.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1TolerationBuilder item : tolerations) { + public V1Toleration buildMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { if (predicate.test(item)) { return item.build(); } @@ -239,10 +223,8 @@ public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( return null; } - public java.lang.Boolean hasMatchingToleration( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1TolerationBuilder item : tolerations) { + public Boolean hasMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { if (predicate.test(item)) { return true; } @@ -250,14 +232,13 @@ public java.lang.Boolean hasMatchingToleration( return false; } - public A withTolerations( - java.util.List tolerations) { + public A withTolerations(List tolerations) { if (this.tolerations != null) { _visitables.get("tolerations").removeAll(this.tolerations); } if (tolerations != null) { - this.tolerations = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Toleration item : tolerations) { + this.tolerations = new ArrayList(); + for (V1Toleration item : tolerations) { this.addToTolerations(item); } } else { @@ -271,14 +252,14 @@ public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tol this.tolerations.clear(); } if (tolerations != null) { - for (io.kubernetes.client.openapi.models.V1Toleration item : tolerations) { + for (V1Toleration item : tolerations) { this.addToTolerations(item); } } return (A) this; } - public java.lang.Boolean hasTolerations() { + public Boolean hasTolerations() { return tolerations != null && !tolerations.isEmpty(); } @@ -286,43 +267,35 @@ public V1SchedulingFluent.TolerationsNested addNewToleration() { return new V1SchedulingFluentImpl.TolerationsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - addNewTolerationLike(io.kubernetes.client.openapi.models.V1Toleration item) { + public V1SchedulingFluent.TolerationsNested addNewTolerationLike(V1Toleration item) { return new V1SchedulingFluentImpl.TolerationsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - setNewTolerationLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { - return new io.kubernetes.client.openapi.models.V1SchedulingFluentImpl.TolerationsNestedImpl( - index, item); + public V1SchedulingFluent.TolerationsNested setNewTolerationLike( + Integer index, V1Toleration item) { + return new V1SchedulingFluentImpl.TolerationsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested editToleration( - java.lang.Integer index) { + public V1SchedulingFluent.TolerationsNested editToleration(Integer index) { if (tolerations.size() <= index) throw new RuntimeException("Can't edit tolerations. Index exceeds size."); return setNewTolerationLike(index, buildToleration(index)); } - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - editFirstToleration() { + public V1SchedulingFluent.TolerationsNested editFirstToleration() { if (tolerations.size() == 0) throw new RuntimeException("Can't edit first tolerations. The list is empty."); return setNewTolerationLike(0, buildToleration(0)); } - public io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - editLastToleration() { + public V1SchedulingFluent.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 io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested - editMatchingToleration( - java.util.function.Predicate - predicate) { + public V1SchedulingFluent.TolerationsNested editMatchingToleration( + Predicate predicate) { int index = -1; for (int i = 0; i < tolerations.size(); i++) { if (predicate.test(tolerations.get(i))) { @@ -349,7 +322,7 @@ public int hashCode() { return java.util.Objects.hash(nodeSelector, tolerations, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (nodeSelector != null && !nodeSelector.isEmpty()) { @@ -366,21 +339,19 @@ public java.lang.String toString() { class TolerationsNestedImpl extends V1TolerationFluentImpl> - implements io.kubernetes.client.openapi.models.V1SchedulingFluent.TolerationsNested, - Nested { - TolerationsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { + implements V1SchedulingFluent.TolerationsNested, Nested { + TolerationsNestedImpl(Integer index, V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } TolerationsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1TolerationBuilder(this); + this.builder = new V1TolerationBuilder(this); } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder; - java.lang.Integer index; + V1TolerationBuilder builder; + Integer index; public N and() { return (N) V1SchedulingFluentImpl.this.setToTolerations(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java index 562010b8e2..c86c80a4f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ScopeSelectorBuilder extends V1ScopeSelectorFluentImpl - implements VisitableBuilder< - V1ScopeSelector, io.kubernetes.client.openapi.models.V1ScopeSelectorBuilder> { + implements VisitableBuilder { public V1ScopeSelectorBuilder() { this(false); } @@ -29,45 +28,37 @@ public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent) { this(fluent, false); } - public V1ScopeSelectorBuilder( - io.kubernetes.client.openapi.models.V1ScopeSelectorFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1ScopeSelector(), validationEnabled); } - public V1ScopeSelectorBuilder( - io.kubernetes.client.openapi.models.V1ScopeSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ScopeSelector instance) { + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent, V1ScopeSelector instance) { this(fluent, instance, false); } public V1ScopeSelectorBuilder( - io.kubernetes.client.openapi.models.V1ScopeSelectorFluent fluent, - io.kubernetes.client.openapi.models.V1ScopeSelector instance, - java.lang.Boolean validationEnabled) { + V1ScopeSelectorFluent fluent, V1ScopeSelector instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMatchExpressions(instance.getMatchExpressions()); this.validationEnabled = validationEnabled; } - public V1ScopeSelectorBuilder(io.kubernetes.client.openapi.models.V1ScopeSelector instance) { + public V1ScopeSelectorBuilder(V1ScopeSelector instance) { this(instance, false); } - public V1ScopeSelectorBuilder( - io.kubernetes.client.openapi.models.V1ScopeSelector instance, - java.lang.Boolean validationEnabled) { + public V1ScopeSelectorBuilder(V1ScopeSelector instance, Boolean validationEnabled) { this.fluent = this; this.withMatchExpressions(instance.getMatchExpressions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScopeSelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1ScopeSelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ScopeSelector build() { + public V1ScopeSelector build() { V1ScopeSelector buildable = new V1ScopeSelector(); buildable.setMatchExpressions(fluent.getMatchExpressions()); return buildable; 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 b8540a7244..55ab926bfd 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 @@ -22,22 +22,17 @@ public interface V1ScopeSelectorFluent> extends Fluent { public A addToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item); - public A setToMatchExpressions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item); + public A setToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item); public A addToMatchExpressions( io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items); - public A addAllToMatchExpressions( - Collection items); + public A addAllToMatchExpressions(Collection items); public A removeFromMatchExpressions( io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items); - public A removeAllFromMatchExpressions( - java.util.Collection - items); + public A removeAllFromMatchExpressions(Collection items); public A removeMatchingFromMatchExpressions( Predicate predicate); @@ -48,66 +43,45 @@ public A removeMatchingFromMatchExpressions( * @return The buildable object. */ @Deprecated - public List - getMatchExpressions(); + public List getMatchExpressions(); - public java.util.List - buildMatchExpressions(); + public List buildMatchExpressions(); - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildMatchExpression(java.lang.Integer index); + public V1ScopedResourceSelectorRequirement buildMatchExpression(Integer index); - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildFirstMatchExpression(); + public V1ScopedResourceSelectorRequirement buildFirstMatchExpression(); - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildLastMatchExpression(); + public V1ScopedResourceSelectorRequirement buildLastMatchExpression(); - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> - predicate); + public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression( + Predicate predicate); public Boolean hasMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> - predicate); + Predicate predicate); - public A withMatchExpressions( - java.util.List - matchExpressions); + public A withMatchExpressions(List matchExpressions); public A withMatchExpressions( io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions); - public java.lang.Boolean hasMatchExpressions(); + public Boolean hasMatchExpressions(); public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpression(); - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - addNewMatchExpressionLike( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item); + public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( + V1ScopedResourceSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - setNewMatchExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item); + public V1ScopeSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( + Integer index, V1ScopedResourceSelectorRequirement item); - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editMatchExpression(java.lang.Integer index); + public V1ScopeSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index); - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editFirstMatchExpression(); + public V1ScopeSelectorFluent.MatchExpressionsNested editFirstMatchExpression(); - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editLastMatchExpression(); + public V1ScopeSelectorFluent.MatchExpressionsNested editLastMatchExpression(); - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> - predicate); + public V1ScopeSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( + Predicate predicate); public interface MatchExpressionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java index 007e2b5e3a..354fd93dac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluentImpl.java @@ -26,7 +26,7 @@ public class V1ScopeSelectorFluentImpl> exten implements V1ScopeSelectorFluent { public V1ScopeSelectorFluentImpl() {} - public V1ScopeSelectorFluentImpl(io.kubernetes.client.openapi.models.V1ScopeSelector instance) { + public V1ScopeSelectorFluentImpl(V1ScopeSelector instance) { this.withMatchExpressions(instance.getMatchExpressions()); } @@ -34,12 +34,10 @@ public V1ScopeSelectorFluentImpl(io.kubernetes.client.openapi.models.V1ScopeSele public A addToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(item); + V1ScopedResourceSelectorRequirementBuilder builder = + new V1ScopedResourceSelectorRequirementBuilder(item); _visitables .get("matchExpressions") .add(index >= 0 ? index : _visitables.get("matchExpressions").size(), builder); @@ -47,16 +45,12 @@ public A addToMatchExpressions(Integer index, V1ScopedResourceSelectorRequiremen return (A) this; } - public A setToMatchExpressions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item) { + public A setToMatchExpressions(Integer index, V1ScopedResourceSelectorRequirement item) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(item); + V1ScopedResourceSelectorRequirementBuilder builder = + new V1ScopedResourceSelectorRequirementBuilder(item); if (index < 0 || index >= _visitables.get("matchExpressions").size()) { _visitables.get("matchExpressions").add(builder); } else { @@ -73,29 +67,24 @@ public A setToMatchExpressions( public A addToMatchExpressions( io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(item); + 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) { + public A addAllToMatchExpressions(Collection items) { if (this.matchExpressions == null) { - this.matchExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder>(); + this.matchExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(item); + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = + new V1ScopedResourceSelectorRequirementBuilder(item); _visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } @@ -104,9 +93,9 @@ public A addAllToMatchExpressions( public A removeFromMatchExpressions( io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(item); + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = + new V1ScopedResourceSelectorRequirementBuilder(item); _visitables.get("matchExpressions").remove(builder); if (this.matchExpressions != null) { this.matchExpressions.remove(builder); @@ -115,12 +104,10 @@ public A removeFromMatchExpressions( return (A) this; } - public A removeAllFromMatchExpressions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item : items) { - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(item); + public A removeAllFromMatchExpressions(Collection items) { + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = + new V1ScopedResourceSelectorRequirementBuilder(item); _visitables.get("matchExpressions").remove(builder); if (this.matchExpressions != null) { this.matchExpressions.remove(builder); @@ -130,15 +117,12 @@ public A removeAllFromMatchExpressions( } public A removeMatchingFromMatchExpressions( - Predicate - predicate) { + Predicate predicate) { if (matchExpressions == null) return (A) this; - final Iterator - each = matchExpressions.iterator(); + final Iterator each = matchExpressions.iterator(); final List visitables = _visitables.get("matchExpressions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder = - each.next(); + V1ScopedResourceSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -153,38 +137,29 @@ public A removeMatchingFromMatchExpressions( * @return The buildable object. */ @Deprecated - public List - getMatchExpressions() { + public List getMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public java.util.List - buildMatchExpressions() { + public List buildMatchExpressions() { return matchExpressions != null ? build(matchExpressions) : null; } - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildMatchExpression(java.lang.Integer index) { + public V1ScopedResourceSelectorRequirement buildMatchExpression(Integer index) { return this.matchExpressions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildFirstMatchExpression() { + public V1ScopedResourceSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildLastMatchExpression() { + public V1ScopedResourceSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement - buildMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder item : - matchExpressions) { + public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression( + Predicate predicate) { + for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { return item.build(); } @@ -193,11 +168,8 @@ public A removeMatchingFromMatchExpressions( } public Boolean hasMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder item : - matchExpressions) { + Predicate predicate) { + for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { return true; } @@ -205,16 +177,13 @@ public Boolean hasMatchingMatchExpression( return false; } - public A withMatchExpressions( - java.util.List - matchExpressions) { + public A withMatchExpressions(List matchExpressions) { if (this.matchExpressions != null) { _visitables.get("matchExpressions").removeAll(this.matchExpressions); } if (matchExpressions != null) { - this.matchExpressions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item : - matchExpressions) { + this.matchExpressions = new ArrayList(); + for (V1ScopedResourceSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } } else { @@ -229,15 +198,14 @@ public A withMatchExpressions( this.matchExpressions.clear(); } if (matchExpressions != null) { - for (io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item : - matchExpressions) { + for (V1ScopedResourceSelectorRequirement item : matchExpressions) { this.addToMatchExpressions(item); } } return (A) this; } - public java.lang.Boolean hasMatchExpressions() { + public Boolean hasMatchExpressions() { return matchExpressions != null && !matchExpressions.isEmpty(); } @@ -245,47 +213,37 @@ public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpression() { return new V1ScopeSelectorFluentImpl.MatchExpressionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - addNewMatchExpressionLike( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item) { + public V1ScopeSelectorFluent.MatchExpressionsNested addNewMatchExpressionLike( + V1ScopedResourceSelectorRequirement item) { return new V1ScopeSelectorFluentImpl.MatchExpressionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - setNewMatchExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item) { - return new io.kubernetes.client.openapi.models.V1ScopeSelectorFluentImpl - .MatchExpressionsNestedImpl(index, item); + public V1ScopeSelectorFluent.MatchExpressionsNested setNewMatchExpressionLike( + Integer index, V1ScopedResourceSelectorRequirement item) { + return new V1ScopeSelectorFluentImpl.MatchExpressionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editMatchExpression(java.lang.Integer index) { + public V1ScopeSelectorFluent.MatchExpressionsNested editMatchExpression(Integer index) { if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); return setNewMatchExpressionLike(index, buildMatchExpression(index)); } - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editFirstMatchExpression() { + public V1ScopeSelectorFluent.MatchExpressionsNested editFirstMatchExpression() { if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); return setNewMatchExpressionLike(0, buildMatchExpression(0)); } - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editLastMatchExpression() { + public V1ScopeSelectorFluent.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)); } - public io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested - editMatchingMatchExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> - predicate) { + public V1ScopeSelectorFluent.MatchExpressionsNested editMatchingMatchExpression( + Predicate predicate) { int index = -1; for (int i = 0; i < matchExpressions.size(); i++) { if (predicate.test(matchExpressions.get(i))) { @@ -326,24 +284,19 @@ public String toString() { class MatchExpressionsNestedImpl extends V1ScopedResourceSelectorRequirementFluentImpl< V1ScopeSelectorFluent.MatchExpressionsNested> - implements io.kubernetes.client.openapi.models.V1ScopeSelectorFluent.MatchExpressionsNested< - N>, - Nested { - MatchExpressionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement item) { + implements V1ScopeSelectorFluent.MatchExpressionsNested, Nested { + MatchExpressionsNestedImpl(Integer index, V1ScopedResourceSelectorRequirement item) { this.index = index; this.builder = new V1ScopedResourceSelectorRequirementBuilder(this, item); } MatchExpressionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder(this); + this.builder = new V1ScopedResourceSelectorRequirementBuilder(this); } - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder builder; - java.lang.Integer index; + V1ScopedResourceSelectorRequirementBuilder builder; + Integer index; public N and() { return (N) V1ScopeSelectorFluentImpl.this.setToMatchExpressions(index, builder.build()); 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 2a450201b6..9473a810ec 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 @@ -18,8 +18,7 @@ public class V1ScopedResourceSelectorRequirementBuilder extends V1ScopedResourceSelectorRequirementFluentImpl< V1ScopedResourceSelectorRequirementBuilder> implements VisitableBuilder< - V1ScopedResourceSelectorRequirement, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementBuilder> { + V1ScopedResourceSelectorRequirement, V1ScopedResourceSelectorRequirementBuilder> { public V1ScopedResourceSelectorRequirementBuilder() { this(false); } @@ -29,26 +28,25 @@ public V1ScopedResourceSelectorRequirementBuilder(Boolean validationEnabled) { } public V1ScopedResourceSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementFluent fluent) { + V1ScopedResourceSelectorRequirementFluent fluent) { this(fluent, false); } public V1ScopedResourceSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementFluent fluent, - java.lang.Boolean validationEnabled) { + V1ScopedResourceSelectorRequirementFluent fluent, Boolean validationEnabled) { this(fluent, new V1ScopedResourceSelectorRequirement(), validationEnabled); } public V1ScopedResourceSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement instance) { + V1ScopedResourceSelectorRequirementFluent fluent, + V1ScopedResourceSelectorRequirement instance) { this(fluent, instance, false); } public V1ScopedResourceSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement instance, - java.lang.Boolean validationEnabled) { + V1ScopedResourceSelectorRequirementFluent fluent, + V1ScopedResourceSelectorRequirement instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withOperator(instance.getOperator()); @@ -59,14 +57,12 @@ public V1ScopedResourceSelectorRequirementBuilder( this.validationEnabled = validationEnabled; } - public V1ScopedResourceSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement instance) { + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirement instance) { this(instance, false); } public V1ScopedResourceSelectorRequirementBuilder( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement instance, - java.lang.Boolean validationEnabled) { + V1ScopedResourceSelectorRequirement instance, Boolean validationEnabled) { this.fluent = this; this.withOperator(instance.getOperator()); @@ -77,10 +73,10 @@ public V1ScopedResourceSelectorRequirementBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirementFluent fluent; - java.lang.Boolean validationEnabled; + V1ScopedResourceSelectorRequirementFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement build() { + public V1ScopedResourceSelectorRequirement build() { V1ScopedResourceSelectorRequirement buildable = new V1ScopedResourceSelectorRequirement(); buildable.setOperator(fluent.getOperator()); buildable.setScopeName(fluent.getScopeName()); 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 1575693d73..da0b8834f0 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 @@ -23,44 +23,43 @@ public interface V1ScopedResourceSelectorRequirementFluent< extends Fluent { public String getOperator(); - public A withOperator(java.lang.String operator); + public A withOperator(String operator); public Boolean hasOperator(); - public java.lang.String getScopeName(); + public String getScopeName(); - public A withScopeName(java.lang.String scopeName); + public A withScopeName(String scopeName); - public java.lang.Boolean hasScopeName(); + public Boolean hasScopeName(); - public A addToValues(Integer index, java.lang.String item); + public A addToValues(Integer index, String item); - public A setToValues(java.lang.Integer index, java.lang.String item); + public A setToValues(Integer index, String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); + public A addAllToValues(Collection items); public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(java.util.Collection items); + public A removeAllFromValues(Collection items); - public List getValues(); + public List getValues(); - public java.lang.String getValue(java.lang.Integer index); + public String getValue(Integer index); - public java.lang.String getFirstValue(); + public String getFirstValue(); - public java.lang.String getLastValue(); + public String getLastValue(); - public java.lang.String getMatchingValue(Predicate predicate); + public String getMatchingValue(Predicate predicate); - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate); + public Boolean hasMatchingValue(Predicate predicate); - public A withValues(java.util.List values); + public A withValues(List values); public A withValues(java.lang.String... values); - public java.lang.Boolean hasValues(); + public Boolean hasValues(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java index c8c6187821..7bca80a686 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluentImpl.java @@ -26,7 +26,7 @@ public class V1ScopedResourceSelectorRequirementFluentImpl< public V1ScopedResourceSelectorRequirementFluentImpl() {} public V1ScopedResourceSelectorRequirementFluentImpl( - io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement instance) { + V1ScopedResourceSelectorRequirement instance) { this.withOperator(instance.getOperator()); this.withScopeName(instance.getScopeName()); @@ -35,14 +35,14 @@ public V1ScopedResourceSelectorRequirementFluentImpl( } private String operator; - private java.lang.String scopeName; - private List values; + private String scopeName; + private List values; - public java.lang.String getOperator() { + public String getOperator() { return this.operator; } - public A withOperator(java.lang.String operator) { + public A withOperator(String operator) { this.operator = operator; return (A) this; } @@ -51,30 +51,30 @@ public Boolean hasOperator() { return this.operator != null; } - public java.lang.String getScopeName() { + public String getScopeName() { return this.scopeName; } - public A withScopeName(java.lang.String scopeName) { + public A withScopeName(String scopeName) { this.scopeName = scopeName; return (A) this; } - public java.lang.Boolean hasScopeName() { + public Boolean hasScopeName() { return this.scopeName != null; } - public A addToValues(Integer index, java.lang.String item) { + public A addToValues(Integer index, String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList(); } this.values.add(index, item); return (A) this; } - public A setToValues(java.lang.Integer index, java.lang.String item) { + public A setToValues(Integer index, String item) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } this.values.set(index, item); return (A) this; @@ -82,26 +82,26 @@ public A setToValues(java.lang.Integer index, java.lang.String item) { public A addToValues(java.lang.String... items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } - public A addAllToValues(Collection items) { + public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } public A removeFromValues(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -109,8 +109,8 @@ public A removeFromValues(java.lang.String... items) { return (A) this; } - public A removeAllFromValues(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromValues(Collection items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -118,24 +118,24 @@ public A removeAllFromValues(java.util.Collection items) { return (A) this; } - public java.util.List getValues() { + public List getValues() { return this.values; } - public java.lang.String getValue(java.lang.Integer index) { + public String getValue(Integer index) { return this.values.get(index); } - public java.lang.String getFirstValue() { + public String getFirstValue() { return this.values.get(0); } - public java.lang.String getLastValue() { + public String getLastValue() { return this.values.get(values.size() - 1); } - public java.lang.String getMatchingValue(Predicate predicate) { - for (java.lang.String item : values) { + public String getMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return item; } @@ -143,9 +143,8 @@ public java.lang.String getMatchingValue(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate) { - for (java.lang.String item : values) { + public Boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return true; } @@ -153,10 +152,10 @@ public java.lang.Boolean hasMatchingValue( return false; } - public A withValues(java.util.List values) { + public A withValues(List values) { if (values != null) { - this.values = new java.util.ArrayList(); - for (java.lang.String item : values) { + this.values = new ArrayList(); + for (String item : values) { this.addToValues(item); } } else { @@ -170,14 +169,14 @@ public A withValues(java.lang.String... values) { this.values.clear(); } if (values != null) { - for (java.lang.String item : values) { + for (String item : values) { this.addToValues(item); } } return (A) this; } - public java.lang.Boolean hasValues() { + public Boolean hasValues() { return values != null && !values.isEmpty(); } @@ -197,7 +196,7 @@ public int hashCode() { return java.util.Objects.hash(operator, scopeName, values, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (operator != null) { 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 1670dfefdd..08dae16a33 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SeccompProfileBuilder extends V1SeccompProfileFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SeccompProfile, - io.kubernetes.client.openapi.models.V1SeccompProfileBuilder> { + implements VisitableBuilder { public V1SeccompProfileBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent) { this(fluent, false); } - public V1SeccompProfileBuilder( - io.kubernetes.client.openapi.models.V1SeccompProfileFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent, Boolean validationEnabled) { this(fluent, new V1SeccompProfile(), validationEnabled); } - public V1SeccompProfileBuilder( - io.kubernetes.client.openapi.models.V1SeccompProfileFluent fluent, - io.kubernetes.client.openapi.models.V1SeccompProfile instance) { + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent, V1SeccompProfile instance) { this(fluent, instance, false); } public V1SeccompProfileBuilder( - io.kubernetes.client.openapi.models.V1SeccompProfileFluent fluent, - io.kubernetes.client.openapi.models.V1SeccompProfile instance, - java.lang.Boolean validationEnabled) { + V1SeccompProfileFluent fluent, V1SeccompProfile instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withLocalhostProfile(instance.getLocalhostProfile()); @@ -54,13 +46,11 @@ public V1SeccompProfileBuilder( this.validationEnabled = validationEnabled; } - public V1SeccompProfileBuilder(io.kubernetes.client.openapi.models.V1SeccompProfile instance) { + public V1SeccompProfileBuilder(V1SeccompProfile instance) { this(instance, false); } - public V1SeccompProfileBuilder( - io.kubernetes.client.openapi.models.V1SeccompProfile instance, - java.lang.Boolean validationEnabled) { + public V1SeccompProfileBuilder(V1SeccompProfile instance, Boolean validationEnabled) { this.fluent = this; this.withLocalhostProfile(instance.getLocalhostProfile()); @@ -69,10 +59,10 @@ public V1SeccompProfileBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SeccompProfileFluent fluent; - java.lang.Boolean validationEnabled; + V1SeccompProfileFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SeccompProfile build() { + public V1SeccompProfile build() { V1SeccompProfile buildable = new V1SeccompProfile(); buildable.setLocalhostProfile(fluent.getLocalhostProfile()); buildable.setType(fluent.getType()); 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 058cd1fca1..6f4d22a646 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java @@ -18,13 +18,13 @@ public interface V1SeccompProfileFluent> extends Fluent { public String getLocalhostProfile(); - public A withLocalhostProfile(java.lang.String localhostProfile); + public A withLocalhostProfile(String localhostProfile); public Boolean hasLocalhostProfile(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java index 916151c010..041fac2dbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluentImpl.java @@ -20,20 +20,20 @@ public class V1SeccompProfileFluentImpl> ext implements V1SeccompProfileFluent { public V1SeccompProfileFluentImpl() {} - public V1SeccompProfileFluentImpl(io.kubernetes.client.openapi.models.V1SeccompProfile instance) { + public V1SeccompProfileFluentImpl(V1SeccompProfile instance) { this.withLocalhostProfile(instance.getLocalhostProfile()); this.withType(instance.getType()); } private String localhostProfile; - private java.lang.String type; + private String type; - public java.lang.String getLocalhostProfile() { + public String getLocalhostProfile() { return this.localhostProfile; } - public A withLocalhostProfile(java.lang.String localhostProfile) { + public A withLocalhostProfile(String localhostProfile) { this.localhostProfile = localhostProfile; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasLocalhostProfile() { return this.localhostProfile != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -70,7 +70,7 @@ public int hashCode() { return java.util.Objects.hash(localhostProfile, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (localhostProfile != null) { 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 27f430c92c..ad58552df7 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SecretBuilder extends V1SecretFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1SecretBuilder() { this(false); } @@ -28,22 +28,15 @@ public V1SecretBuilder(V1SecretFluent fluent) { this(fluent, false); } - public V1SecretBuilder( - io.kubernetes.client.openapi.models.V1SecretFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SecretBuilder(V1SecretFluent fluent, Boolean validationEnabled) { this(fluent, new V1Secret(), validationEnabled); } - public V1SecretBuilder( - io.kubernetes.client.openapi.models.V1SecretFluent fluent, - io.kubernetes.client.openapi.models.V1Secret instance) { + public V1SecretBuilder(V1SecretFluent fluent, V1Secret instance) { this(fluent, instance, false); } - public V1SecretBuilder( - io.kubernetes.client.openapi.models.V1SecretFluent fluent, - io.kubernetes.client.openapi.models.V1Secret instance, - java.lang.Boolean validationEnabled) { + public V1SecretBuilder(V1SecretFluent fluent, V1Secret instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,12 +55,11 @@ public V1SecretBuilder( this.validationEnabled = validationEnabled; } - public V1SecretBuilder(io.kubernetes.client.openapi.models.V1Secret instance) { + public V1SecretBuilder(V1Secret instance) { this(instance, false); } - public V1SecretBuilder( - io.kubernetes.client.openapi.models.V1Secret instance, java.lang.Boolean validationEnabled) { + public V1SecretBuilder(V1Secret instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -86,10 +78,10 @@ public V1SecretBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Secret build() { + public V1Secret build() { V1Secret buildable = new V1Secret(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setData(fluent.getData()); 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 abc7a865c3..5ac8d37d4e 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluentImpl - implements VisitableBuilder< - V1SecretEnvSource, io.kubernetes.client.openapi.models.V1SecretEnvSourceBuilder> { + implements VisitableBuilder { public V1SecretEnvSourceBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent) { this(fluent, false); } - public V1SecretEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretEnvSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecretEnvSource(), validationEnabled); } - public V1SecretEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretEnvSourceFluent fluent, - io.kubernetes.client.openapi.models.V1SecretEnvSource instance) { + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent, V1SecretEnvSource instance) { this(fluent, instance, false); } public V1SecretEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretEnvSourceFluent fluent, - io.kubernetes.client.openapi.models.V1SecretEnvSource instance, - java.lang.Boolean validationEnabled) { + V1SecretEnvSourceFluent fluent, V1SecretEnvSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -53,13 +46,11 @@ public V1SecretEnvSourceBuilder( this.validationEnabled = validationEnabled; } - public V1SecretEnvSourceBuilder(io.kubernetes.client.openapi.models.V1SecretEnvSource instance) { + public V1SecretEnvSourceBuilder(V1SecretEnvSource instance) { this(instance, false); } - public V1SecretEnvSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretEnvSource instance, - java.lang.Boolean validationEnabled) { + public V1SecretEnvSourceBuilder(V1SecretEnvSource instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -68,10 +59,10 @@ public V1SecretEnvSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretEnvSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretEnvSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecretEnvSource build() { + public V1SecretEnvSource build() { V1SecretEnvSource buildable = new V1SecretEnvSource(); buildable.setName(fluent.getName()); buildable.setOptional(fluent.getOptional()); 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 a33f5c063b..6b39decd38 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 @@ -18,15 +18,15 @@ public interface V1SecretEnvSourceFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java index a160552bf3..a1e3814bef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluentImpl.java @@ -20,8 +20,7 @@ public class V1SecretEnvSourceFluentImpl> e implements V1SecretEnvSourceFluent { public V1SecretEnvSourceFluentImpl() {} - public V1SecretEnvSourceFluentImpl( - io.kubernetes.client.openapi.models.V1SecretEnvSource instance) { + public V1SecretEnvSourceFluentImpl(V1SecretEnvSource instance) { this.withName(instance.getName()); this.withOptional(instance.getOptional()); @@ -30,29 +29,29 @@ public V1SecretEnvSourceFluentImpl( private String name; private Boolean optional; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 3b57c7ea5b..eb5e2352da 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 @@ -20,35 +20,35 @@ public interface V1SecretFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToData(java.lang.String key, byte[] value); + public A addToData(String key, byte[] value); - public A addToData(Map map); + public A addToData(Map map); - public A removeFromData(java.lang.String key); + public A removeFromData(String key); - public A removeFromData(java.util.Map map); + public A removeFromData(Map map); - public java.util.Map getData(); + public Map getData(); - public A withData(java.util.Map data); + public A withData(Map data); - public java.lang.Boolean hasData(); + public Boolean hasData(); - public java.lang.Boolean getImmutable(); + public Boolean getImmutable(); - public A withImmutable(java.lang.Boolean immutable); + public A withImmutable(Boolean immutable); - public java.lang.Boolean hasImmutable(); + public Boolean hasImmutable(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -58,43 +58,41 @@ public interface V1SecretFluent> extends Fluent { @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1SecretFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SecretFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested editMetadata(); + public V1SecretFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested editOrNewMetadata(); + public V1SecretFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SecretFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public A addToStringData(java.lang.String key, java.lang.String value); + public A addToStringData(String key, String value); - public A addToStringData(java.util.Map map); + public A addToStringData(Map map); - public A removeFromStringData(java.lang.String key); + public A removeFromStringData(String key); - public A removeFromStringData(java.util.Map map); + public A removeFromStringData(Map map); - public java.util.Map getStringData(); + public Map getStringData(); - public A withStringData(java.util.Map stringData); + public A withStringData(Map stringData); - public java.lang.Boolean hasStringData(); + public Boolean hasStringData(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public A withImmutable(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java index b78615ceb5..361e261f8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluentImpl.java @@ -23,7 +23,7 @@ public class V1SecretFluentImpl> extends BaseFluent< implements V1SecretFluent { public V1SecretFluentImpl() {} - public V1SecretFluentImpl(io.kubernetes.client.openapi.models.V1Secret instance) { + public V1SecretFluentImpl(V1Secret instance) { this.withApiVersion(instance.getApiVersion()); this.withData(instance.getData()); @@ -40,27 +40,27 @@ public V1SecretFluentImpl(io.kubernetes.client.openapi.models.V1Secret instance) } private String apiVersion; - private Map data; + private Map data; private Boolean immutable; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - private java.util.Map stringData; - private java.lang.String type; + private Map stringData; + private String type; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToData(java.lang.String key, byte[] value) { + public A addToData(String key, byte[] value) { if (this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } @@ -70,9 +70,9 @@ public A addToData(java.lang.String key, byte[] value) { return (A) this; } - public A addToData(java.util.Map map) { + public A addToData(Map map) { if (this.data == null && map != null) { - this.data = new java.util.LinkedHashMap(); + this.data = new LinkedHashMap(); } if (map != null) { this.data.putAll(map); @@ -80,7 +80,7 @@ public A addToData(java.util.Map map) { return (A) this; } - public A removeFromData(java.lang.String key) { + public A removeFromData(String key) { if (this.data == null) { return (A) this; } @@ -90,7 +90,7 @@ public A removeFromData(java.lang.String key) { return (A) this; } - public A removeFromData(java.util.Map map) { + public A removeFromData(Map map) { if (this.data == null) { return (A) this; } @@ -104,46 +104,46 @@ public A removeFromData(java.util.Map map) { return (A) this; } - public java.util.Map getData() { + public Map getData() { return this.data; } - public A withData(java.util.Map data) { + public A withData(Map data) { if (data == null) { this.data = null; } else { - this.data = new java.util.LinkedHashMap(data); + this.data = new LinkedHashMap(data); } return (A) this; } - public java.lang.Boolean hasData() { + public Boolean hasData() { return this.data != null; } - public java.lang.Boolean getImmutable() { + public Boolean getImmutable() { return this.immutable; } - public A withImmutable(java.lang.Boolean immutable) { + public A withImmutable(Boolean immutable) { this.immutable = immutable; return (A) this; } - public java.lang.Boolean hasImmutable() { + public Boolean hasImmutable() { return this.immutable != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -153,24 +153,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -178,30 +181,26 @@ public V1SecretFluent.MetadataNested withNewMetadata() { return new V1SecretFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SecretFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SecretFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested editMetadata() { + public V1SecretFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested editOrNewMetadata() { + public V1SecretFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SecretFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToStringData(java.lang.String key, java.lang.String value) { + public A addToStringData(String key, String value) { if (this.stringData == null && key != null && value != null) { - this.stringData = new java.util.LinkedHashMap(); + this.stringData = new LinkedHashMap(); } if (key != null && value != null) { this.stringData.put(key, value); @@ -209,9 +208,9 @@ public A addToStringData(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToStringData(java.util.Map map) { + public A addToStringData(Map map) { if (this.stringData == null && map != null) { - this.stringData = new java.util.LinkedHashMap(); + this.stringData = new LinkedHashMap(); } if (map != null) { this.stringData.putAll(map); @@ -219,7 +218,7 @@ public A addToStringData(java.util.Map map) return (A) this; } - public A removeFromStringData(java.lang.String key) { + public A removeFromStringData(String key) { if (this.stringData == null) { return (A) this; } @@ -229,7 +228,7 @@ public A removeFromStringData(java.lang.String key) { return (A) this; } - public A removeFromStringData(java.util.Map map) { + public A removeFromStringData(Map map) { if (this.stringData == null) { return (A) this; } @@ -243,33 +242,33 @@ public A removeFromStringData(java.util.Map return (A) this; } - public java.util.Map getStringData() { + public Map getStringData() { return this.stringData; } - public A withStringData(java.util.Map stringData) { + public A withStringData(Map stringData) { if (stringData == null) { this.stringData = null; } else { - this.stringData = new java.util.LinkedHashMap(stringData); + this.stringData = new LinkedHashMap(stringData); } return (A) this; } - public java.lang.Boolean hasStringData() { + public Boolean hasStringData() { return this.stringData != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -295,7 +294,7 @@ public int hashCode() { apiVersion, data, immutable, kind, metadata, stringData, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -335,16 +334,16 @@ public A withImmutable() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecretFluent.MetadataNested, Nested { + implements V1SecretFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1SecretFluentImpl.this.withMetadata(builder.build()); 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 128c09daa5..afd219eaaa 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 @@ -16,9 +16,7 @@ public class V1SecretKeySelectorBuilder extends V1SecretKeySelectorFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SecretKeySelector, - io.kubernetes.client.openapi.models.V1SecretKeySelectorBuilder> { + implements VisitableBuilder { public V1SecretKeySelectorBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent) { } public V1SecretKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1SecretKeySelectorFluent fluent, - java.lang.Boolean validationEnabled) { + V1SecretKeySelectorFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecretKeySelector(), validationEnabled); } public V1SecretKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1SecretKeySelectorFluent fluent, - io.kubernetes.client.openapi.models.V1SecretKeySelector instance) { + V1SecretKeySelectorFluent fluent, V1SecretKeySelector instance) { this(fluent, instance, false); } public V1SecretKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1SecretKeySelectorFluent fluent, - io.kubernetes.client.openapi.models.V1SecretKeySelector instance, - java.lang.Boolean validationEnabled) { + V1SecretKeySelectorFluent fluent, + V1SecretKeySelector instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKey(instance.getKey()); @@ -57,14 +53,11 @@ public V1SecretKeySelectorBuilder( this.validationEnabled = validationEnabled; } - public V1SecretKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1SecretKeySelector instance) { + public V1SecretKeySelectorBuilder(V1SecretKeySelector instance) { this(instance, false); } - public V1SecretKeySelectorBuilder( - io.kubernetes.client.openapi.models.V1SecretKeySelector instance, - java.lang.Boolean validationEnabled) { + public V1SecretKeySelectorBuilder(V1SecretKeySelector instance, Boolean validationEnabled) { this.fluent = this; this.withKey(instance.getKey()); @@ -75,10 +68,10 @@ public V1SecretKeySelectorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretKeySelectorFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretKeySelectorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecretKeySelector build() { + public V1SecretKeySelector build() { V1SecretKeySelector buildable = new V1SecretKeySelector(); buildable.setKey(fluent.getKey()); buildable.setName(fluent.getName()); 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 28b01be592..3b462f508b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java @@ -19,21 +19,21 @@ public interface V1SecretKeySelectorFluent { public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); public Boolean hasKey(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java index 2426494f81..bf7fd0d957 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluentImpl.java @@ -20,8 +20,7 @@ public class V1SecretKeySelectorFluentImpl implements V1SecretKeySelectorFluent { public V1SecretKeySelectorFluentImpl() {} - public V1SecretKeySelectorFluentImpl( - io.kubernetes.client.openapi.models.V1SecretKeySelector instance) { + public V1SecretKeySelectorFluentImpl(V1SecretKeySelector instance) { this.withKey(instance.getKey()); this.withName(instance.getName()); @@ -30,45 +29,45 @@ public V1SecretKeySelectorFluentImpl( } private String key; - private java.lang.String name; + private String name; private Boolean optional; - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } - public java.lang.Boolean hasKey() { + public Boolean hasKey() { return this.key != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -86,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(key, name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (key != null) { 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 9db2361a9f..919cef7fe9 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SecretListBuilder extends V1SecretListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SecretList, - io.kubernetes.client.openapi.models.V1SecretListBuilder> { + implements VisitableBuilder { public V1SecretListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1SecretListBuilder(V1SecretListFluent fluent) { this(fluent, false); } - public V1SecretListBuilder( - io.kubernetes.client.openapi.models.V1SecretListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SecretListBuilder(V1SecretListFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecretList(), validationEnabled); } - public V1SecretListBuilder( - io.kubernetes.client.openapi.models.V1SecretListFluent fluent, - io.kubernetes.client.openapi.models.V1SecretList instance) { + public V1SecretListBuilder(V1SecretListFluent fluent, V1SecretList instance) { this(fluent, instance, false); } public V1SecretListBuilder( - io.kubernetes.client.openapi.models.V1SecretListFluent fluent, - io.kubernetes.client.openapi.models.V1SecretList instance, - java.lang.Boolean validationEnabled) { + V1SecretListFluent fluent, V1SecretList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1SecretListBuilder( this.validationEnabled = validationEnabled; } - public V1SecretListBuilder(io.kubernetes.client.openapi.models.V1SecretList instance) { + public V1SecretListBuilder(V1SecretList instance) { this(instance, false); } - public V1SecretListBuilder( - io.kubernetes.client.openapi.models.V1SecretList instance, - java.lang.Boolean validationEnabled) { + public V1SecretListBuilder(V1SecretList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1SecretListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretListFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecretList build() { + public V1SecretList build() { V1SecretList buildable = new V1SecretList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 d0eda8bd57..9c4bd7ad0f 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 @@ -22,22 +22,21 @@ public interface V1SecretListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1Secret item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Secret item); + public A setToItems(Integer index, V1Secret item); public A addToItems(io.kubernetes.client.openapi.models.V1Secret... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,78 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Secret buildItem(java.lang.Integer index); + public V1Secret buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Secret buildFirstItem(); + public V1Secret buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Secret buildLastItem(); + public V1Secret buildLastItem(); - public io.kubernetes.client.openapi.models.V1Secret buildMatchingItem( - java.util.function.Predicate predicate); + public V1Secret buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Secret... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1SecretListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Secret item); + public V1SecretListFluent.ItemsNested addNewItemLike(V1Secret item); - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Secret item); + public V1SecretListFluent.ItemsNested setNewItemLike(Integer index, V1Secret item); - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1SecretListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editFirstItem(); + public V1SecretListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editLastItem(); + public V1SecretListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1SecretListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1SecretListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1SecretListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested editMetadata(); + public V1SecretListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested - editOrNewMetadata(); + public V1SecretListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1SecretListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1SecretFluent> { @@ -128,8 +118,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java index 52f24990d6..c6b04a51a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluentImpl.java @@ -38,14 +38,14 @@ public V1SecretListFluentImpl(V1SecretList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Secret item) { + public A addToItems(Integer index, V1Secret item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SecretBuilder builder = - new io.kubernetes.client.openapi.models.V1SecretBuilder(item); + V1SecretBuilder builder = new V1SecretBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Secret item) { + public A setToItems(Integer index, V1Secret item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1SecretBuilder builder = - new io.kubernetes.client.openapi.models.V1SecretBuilder(item); + V1SecretBuilder builder = new V1SecretBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Secret... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Secret item : items) { - io.kubernetes.client.openapi.models.V1SecretBuilder builder = - new io.kubernetes.client.openapi.models.V1SecretBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Secret item : items) { - io.kubernetes.client.openapi.models.V1SecretBuilder builder = - new io.kubernetes.client.openapi.models.V1SecretBuilder(item); + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection } public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items) { - for (io.kubernetes.client.openapi.models.V1Secret item : items) { - io.kubernetes.client.openapi.models.V1SecretBuilder builder = - new io.kubernetes.client.openapi.models.V1SecretBuilder(item); + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items) return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Secret item : items) { - io.kubernetes.client.openapi.models.V1SecretBuilder builder = - new io.kubernetes.client.openapi.models.V1SecretBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1SecretBuilder builder = each.next(); + V1SecretBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,29 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Secret buildItem(java.lang.Integer index) { + public V1Secret buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Secret buildFirstItem() { + public V1Secret buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Secret buildLastItem() { + public V1Secret buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Secret buildMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1SecretBuilder item : items) { + public V1Secret buildMatchingItem(Predicate predicate) { + for (V1SecretBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -186,9 +177,8 @@ public io.kubernetes.client.openapi.models.V1Secret buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate) { - for (io.kubernetes.client.openapi.models.V1SecretBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1SecretBuilder item : items) { if (predicate.test(item)) { return true; } @@ -196,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Secret item : items) { + this.items = new ArrayList(); + for (V1Secret item : items) { this.addToItems(item); } } else { @@ -216,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Secret... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Secret item : items) { + for (V1Secret item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -231,36 +221,31 @@ public V1SecretListFluent.ItemsNested addNewItem() { return new V1SecretListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Secret item) { + public V1SecretListFluent.ItemsNested addNewItemLike(V1Secret item) { return new V1SecretListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Secret item) { - return new io.kubernetes.client.openapi.models.V1SecretListFluentImpl.ItemsNestedImpl( - index, item); + public V1SecretListFluent.ItemsNested setNewItemLike(Integer index, V1Secret item) { + return new V1SecretListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1SecretListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editFirstItem() { + public V1SecretListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editLastItem() { + public V1SecretListFluent.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 io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate) { + public V1SecretListFluent.ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -272,16 +257,16 @@ public io.kubernetes.client.openapi.models.V1SecretListFluent.ItemsNested edi return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -290,25 +275,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -316,25 +304,20 @@ public V1SecretListFluent.MetadataNested withNewMetadata() { return new V1SecretListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1SecretListFluentImpl.MetadataNestedImpl(item); + public V1SecretListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1SecretListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested editMetadata() { + public V1SecretListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested - editOrNewMetadata() { + public V1SecretListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1SecretListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -354,7 +337,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -379,18 +362,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1SecretFluentImpl> implements V1SecretListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Secret item) { + ItemsNestedImpl(Integer index, V1Secret item) { this.index = index; this.builder = new V1SecretBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1SecretBuilder(this); + this.builder = new V1SecretBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretBuilder builder; - java.lang.Integer index; + V1SecretBuilder builder; + Integer index; public N and() { return (N) V1SecretListFluentImpl.this.setToItems(index, builder.build()); @@ -402,17 +385,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecretListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1SecretListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1SecretListFluentImpl.this.withMetadata(builder.build()); 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 36bd99e4a7..84ece3dafc 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 @@ -16,8 +16,7 @@ public class V1SecretProjectionBuilder extends V1SecretProjectionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SecretProjection, V1SecretProjectionBuilder> { + implements VisitableBuilder { public V1SecretProjectionBuilder() { this(false); } @@ -26,27 +25,21 @@ public V1SecretProjectionBuilder(Boolean validationEnabled) { this(new V1SecretProjection(), validationEnabled); } - public V1SecretProjectionBuilder( - io.kubernetes.client.openapi.models.V1SecretProjectionFluent fluent) { + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent) { this(fluent, false); } - public V1SecretProjectionBuilder( - io.kubernetes.client.openapi.models.V1SecretProjectionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecretProjection(), validationEnabled); } public V1SecretProjectionBuilder( - io.kubernetes.client.openapi.models.V1SecretProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1SecretProjection instance) { + V1SecretProjectionFluent fluent, V1SecretProjection instance) { this(fluent, instance, false); } public V1SecretProjectionBuilder( - io.kubernetes.client.openapi.models.V1SecretProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1SecretProjection instance, - java.lang.Boolean validationEnabled) { + V1SecretProjectionFluent fluent, V1SecretProjection instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withItems(instance.getItems()); @@ -57,14 +50,11 @@ public V1SecretProjectionBuilder( this.validationEnabled = validationEnabled; } - public V1SecretProjectionBuilder( - io.kubernetes.client.openapi.models.V1SecretProjection instance) { + public V1SecretProjectionBuilder(V1SecretProjection instance) { this(instance, false); } - public V1SecretProjectionBuilder( - io.kubernetes.client.openapi.models.V1SecretProjection instance, - java.lang.Boolean validationEnabled) { + public V1SecretProjectionBuilder(V1SecretProjection instance, Boolean validationEnabled) { this.fluent = this; this.withItems(instance.getItems()); @@ -75,10 +65,10 @@ public V1SecretProjectionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretProjectionFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretProjectionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecretProjection build() { + public V1SecretProjection build() { V1SecretProjection buildable = new V1SecretProjection(); buildable.setItems(fluent.getItems()); buildable.setName(fluent.getName()); 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 dd73ce6e12..867561e3d4 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 @@ -22,17 +22,15 @@ public interface V1SecretProjectionFluent> extends Fluent { public A addToItems(Integer index, V1KeyToPath item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public A setToItems(Integer index, V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -42,62 +40,52 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index); + public V1KeyToPath buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem(); + public V1KeyToPath buildFirstItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem(); + public V1KeyToPath buildLastItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate); + public V1KeyToPath buildMatchingItem(Predicate predicate); - public Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1SecretProjectionFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1SecretProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1SecretProjectionFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested editItem( - java.lang.Integer index); + public V1SecretProjectionFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested - editFirstItem(); + public V1SecretProjectionFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested editLastItem(); + public V1SecretProjectionFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1SecretProjectionFluent.ItemsNested editMatchingItem( + Predicate predicate); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public A withOptional(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java index bc5a7c0c0a..6e682c9ce3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluentImpl.java @@ -26,8 +26,7 @@ public class V1SecretProjectionFluentImpl> extends BaseFluent implements V1SecretProjectionFluent { public V1SecretProjectionFluentImpl() {} - public V1SecretProjectionFluentImpl( - io.kubernetes.client.openapi.models.V1SecretProjection instance) { + public V1SecretProjectionFluentImpl(V1SecretProjection instance) { this.withItems(instance.getItems()); this.withName(instance.getName()); @@ -41,24 +40,19 @@ public V1SecretProjectionFluentImpl( public A addToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + public A setToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -74,26 +68,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -101,9 +91,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -125,13 +112,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = each.next(); + V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -146,30 +132,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index) { + public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem() { + public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem() { + public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public V1KeyToPath buildMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -177,10 +161,8 @@ public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return true; } @@ -188,13 +170,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { this.addToItems(item); } } else { @@ -208,14 +190,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + for (V1KeyToPath item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -223,40 +205,32 @@ public V1SecretProjectionFluent.ItemsNested addNewItem() { return new V1SecretProjectionFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1KeyToPath item) { + public V1SecretProjectionFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1SecretProjectionFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { - return new io.kubernetes.client.openapi.models.V1SecretProjectionFluentImpl.ItemsNestedImpl( - index, item); + public V1SecretProjectionFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item) { + return new V1SecretProjectionFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1SecretProjectionFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested - editFirstItem() { + public V1SecretProjectionFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested - editLastItem() { + public V1SecretProjectionFluent.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 io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1SecretProjectionFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -268,29 +242,29 @@ public io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested< return setNewItemLike(index, buildItem(index)); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } @@ -308,7 +282,7 @@ public int hashCode() { return java.util.Objects.hash(items, name, optional, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (items != null && !items.isEmpty()) { @@ -332,20 +306,19 @@ public A withOptional() { } class ItemsNestedImpl extends V1KeyToPathFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecretProjectionFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + implements V1SecretProjectionFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(this); + this.builder = new V1KeyToPathBuilder(this); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder; - java.lang.Integer index; + V1KeyToPathBuilder builder; + Integer index; public N and() { return (N) V1SecretProjectionFluentImpl.this.setToItems(index, builder.build()); 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 a0879345b0..9cf0b37e5f 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SecretReferenceBuilder extends V1SecretReferenceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SecretReference, V1SecretReferenceBuilder> { + implements VisitableBuilder { public V1SecretReferenceBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1SecretReferenceBuilder(Boolean validationEnabled) { this(new V1SecretReference(), validationEnabled); } - public V1SecretReferenceBuilder( - io.kubernetes.client.openapi.models.V1SecretReferenceFluent fluent) { + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent) { this(fluent, false); } - public V1SecretReferenceBuilder( - io.kubernetes.client.openapi.models.V1SecretReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecretReference(), validationEnabled); } - public V1SecretReferenceBuilder( - io.kubernetes.client.openapi.models.V1SecretReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1SecretReference instance) { + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent, V1SecretReference instance) { this(fluent, instance, false); } public V1SecretReferenceBuilder( - io.kubernetes.client.openapi.models.V1SecretReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1SecretReference instance, - java.lang.Boolean validationEnabled) { + V1SecretReferenceFluent fluent, V1SecretReference instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -54,13 +46,11 @@ public V1SecretReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1SecretReferenceBuilder(io.kubernetes.client.openapi.models.V1SecretReference instance) { + public V1SecretReferenceBuilder(V1SecretReference instance) { this(instance, false); } - public V1SecretReferenceBuilder( - io.kubernetes.client.openapi.models.V1SecretReference instance, - java.lang.Boolean validationEnabled) { + public V1SecretReferenceBuilder(V1SecretReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -69,10 +59,10 @@ public V1SecretReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecretReference build() { + public V1SecretReference build() { V1SecretReference buildable = new V1SecretReference(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); 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 eb8bb7e4a5..d225d14c34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java @@ -18,13 +18,13 @@ public interface V1SecretReferenceFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java index 147c24fcb7..e6a7e3f478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluentImpl.java @@ -20,21 +20,20 @@ public class V1SecretReferenceFluentImpl> e implements V1SecretReferenceFluent { public V1SecretReferenceFluentImpl() {} - public V1SecretReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1SecretReference instance) { + public V1SecretReferenceFluentImpl(V1SecretReference instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); } private String name; - private java.lang.String namespace; + private String namespace; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } @@ -70,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(name, namespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 0ead69e569..bdcbddef8c 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 @@ -16,8 +16,7 @@ public class V1SecretVolumeSourceBuilder extends V1SecretVolumeSourceFluentImpl - implements VisitableBuilder< - V1SecretVolumeSource, io.kubernetes.client.openapi.models.V1SecretVolumeSourceBuilder> { + implements VisitableBuilder { public V1SecretVolumeSourceBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent) { } public V1SecretVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1SecretVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecretVolumeSource(), validationEnabled); } public V1SecretVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1SecretVolumeSource instance) { + V1SecretVolumeSourceFluent fluent, V1SecretVolumeSource instance) { this(fluent, instance, false); } public V1SecretVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1SecretVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1SecretVolumeSourceFluent fluent, + V1SecretVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDefaultMode(instance.getDefaultMode()); @@ -58,14 +55,11 @@ public V1SecretVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1SecretVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretVolumeSource instance) { + public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance) { this(instance, false); } - public V1SecretVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1SecretVolumeSource instance, - java.lang.Boolean validationEnabled) { + public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withDefaultMode(instance.getDefaultMode()); @@ -78,10 +72,10 @@ public V1SecretVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1SecretVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecretVolumeSource build() { + public V1SecretVolumeSource build() { V1SecretVolumeSource buildable = new V1SecretVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); buildable.setItems(fluent.getItems()); 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 eeb2746d32..0e4e60c1f1 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 @@ -23,23 +23,21 @@ public interface V1SecretVolumeSourceFluent { public Integer getDefaultMode(); - public A withDefaultMode(java.lang.Integer defaultMode); + public A withDefaultMode(Integer defaultMode); public Boolean hasDefaultMode(); - public A addToItems(java.lang.Integer index, V1KeyToPath item); + public A addToItems(Integer index, V1KeyToPath item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public A setToItems(Integer index, V1KeyToPath item); public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,63 +47,52 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index); + public V1KeyToPath buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem(); + public V1KeyToPath buildFirstItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem(); + public V1KeyToPath buildLastItem(); - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate); + public V1KeyToPath buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1SecretVolumeSourceFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1SecretVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - setNewItemLike(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item); + public V1SecretVolumeSourceFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item); - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested editItem( - java.lang.Integer index); + public V1SecretVolumeSourceFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - editFirstItem(); + public V1SecretVolumeSourceFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - editLastItem(); + public V1SecretVolumeSourceFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1SecretVolumeSourceFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.Boolean getOptional(); + public Boolean getOptional(); - public A withOptional(java.lang.Boolean optional); + public A withOptional(Boolean optional); - public java.lang.Boolean hasOptional(); + public Boolean hasOptional(); public String getSecretName(); - public A withSecretName(java.lang.String secretName); + public A withSecretName(String secretName); - public java.lang.Boolean hasSecretName(); + public Boolean hasSecretName(); public A withOptional(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java index 0d26670075..6273d02731 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluentImpl.java @@ -26,8 +26,7 @@ public class V1SecretVolumeSourceFluentImpl implements V1SecretVolumeSourceFluent { public V1SecretVolumeSourceFluentImpl() {} - public V1SecretVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1SecretVolumeSource instance) { + public V1SecretVolumeSourceFluentImpl(V1SecretVolumeSource instance) { this.withDefaultMode(instance.getDefaultMode()); this.withItems(instance.getItems()); @@ -42,39 +41,34 @@ public V1SecretVolumeSourceFluentImpl( private Boolean optional; private String secretName; - public java.lang.Integer getDefaultMode() { + public Integer getDefaultMode() { return this.defaultMode; } - public A withDefaultMode(java.lang.Integer defaultMode) { + public A withDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; return (A) this; } - public java.lang.Boolean hasDefaultMode() { + public Boolean hasDefaultMode() { return this.defaultMode != null; } - public A addToItems(java.lang.Integer index, V1KeyToPath item) { + public A addToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + public A setToItems(Integer index, V1KeyToPath item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = - new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder = each.next(); + V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1KeyToPath buildItem(java.lang.Integer index) { + public V1KeyToPath buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildFirstItem() { + public V1KeyToPath buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildLastItem() { + public V1KeyToPath buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public V1KeyToPath buildMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1KeyToPath buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1KeyToPathBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1KeyToPath item : items) { + for (V1KeyToPath item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,41 +221,32 @@ public V1SecretVolumeSourceFluent.ItemsNested addNewItem() { return new V1SecretVolumeSourceFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1KeyToPath item) { + public V1SecretVolumeSourceFluent.ItemsNested addNewItemLike(V1KeyToPath item) { return new V1SecretVolumeSourceFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { - return new io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluentImpl.ItemsNestedImpl( - index, item); + public V1SecretVolumeSourceFluent.ItemsNested setNewItemLike(Integer index, V1KeyToPath item) { + return new V1SecretVolumeSourceFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1SecretVolumeSourceFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - editFirstItem() { + public V1SecretVolumeSourceFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - editLastItem() { + public V1SecretVolumeSourceFluent.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 io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1SecretVolumeSourceFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,29 +258,29 @@ public io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNeste return setNewItemLike(index, buildItem(index)); } - public java.lang.Boolean getOptional() { + public Boolean getOptional() { return this.optional; } - public A withOptional(java.lang.Boolean optional) { + public A withOptional(Boolean optional) { this.optional = optional; return (A) this; } - public java.lang.Boolean hasOptional() { + public Boolean hasOptional() { return this.optional != null; } - public java.lang.String getSecretName() { + public String getSecretName() { return this.secretName; } - public A withSecretName(java.lang.String secretName) { + public A withSecretName(String secretName) { this.secretName = secretName; return (A) this; } - public java.lang.Boolean hasSecretName() { + public Boolean hasSecretName() { return this.secretName != null; } @@ -328,7 +301,7 @@ public int hashCode() { return java.util.Objects.hash(defaultMode, items, optional, secretName, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (defaultMode != null) { @@ -356,20 +329,19 @@ public A withOptional() { } class ItemsNestedImpl extends V1KeyToPathFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecretVolumeSourceFluent.ItemsNested, - Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1KeyToPath item) { + implements V1SecretVolumeSourceFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1KeyToPathBuilder(this); + this.builder = new V1KeyToPathBuilder(this); } - io.kubernetes.client.openapi.models.V1KeyToPathBuilder builder; - java.lang.Integer index; + V1KeyToPathBuilder builder; + Integer index; public N and() { return (N) V1SecretVolumeSourceFluentImpl.this.setToItems(index, builder.build()); 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 2be024aaf0..8b7b8f6a7c 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SecurityContextBuilder extends V1SecurityContextFluentImpl - implements VisitableBuilder< - V1SecurityContext, io.kubernetes.client.openapi.models.V1SecurityContextBuilder> { + implements VisitableBuilder { public V1SecurityContextBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1SecurityContextBuilder(Boolean validationEnabled) { this(new V1SecurityContext(), validationEnabled); } - public V1SecurityContextBuilder( - io.kubernetes.client.openapi.models.V1SecurityContextFluent fluent) { + public V1SecurityContextBuilder(V1SecurityContextFluent fluent) { this(fluent, false); } - public V1SecurityContextBuilder( - io.kubernetes.client.openapi.models.V1SecurityContextFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SecurityContextBuilder(V1SecurityContextFluent fluent, Boolean validationEnabled) { this(fluent, new V1SecurityContext(), validationEnabled); } - public V1SecurityContextBuilder( - io.kubernetes.client.openapi.models.V1SecurityContextFluent fluent, - io.kubernetes.client.openapi.models.V1SecurityContext instance) { + public V1SecurityContextBuilder(V1SecurityContextFluent fluent, V1SecurityContext instance) { this(fluent, instance, false); } public V1SecurityContextBuilder( - io.kubernetes.client.openapi.models.V1SecurityContextFluent fluent, - io.kubernetes.client.openapi.models.V1SecurityContext instance, - java.lang.Boolean validationEnabled) { + V1SecurityContextFluent fluent, V1SecurityContext instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); @@ -72,13 +64,11 @@ public V1SecurityContextBuilder( this.validationEnabled = validationEnabled; } - public V1SecurityContextBuilder(io.kubernetes.client.openapi.models.V1SecurityContext instance) { + public V1SecurityContextBuilder(V1SecurityContext instance) { this(instance, false); } - public V1SecurityContextBuilder( - io.kubernetes.client.openapi.models.V1SecurityContext instance, - java.lang.Boolean validationEnabled) { + public V1SecurityContextBuilder(V1SecurityContext instance, Boolean validationEnabled) { this.fluent = this; this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); @@ -105,10 +95,10 @@ public V1SecurityContextBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SecurityContextFluent fluent; - java.lang.Boolean validationEnabled; + V1SecurityContextFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SecurityContext build() { + public V1SecurityContext build() { V1SecurityContext buildable = new V1SecurityContext(); buildable.setAllowPrivilegeEscalation(fluent.getAllowPrivilegeEscalation()); buildable.setCapabilities(fluent.getCapabilities()); 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 4c55dc39bc..1ce640f7cf 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 @@ -19,9 +19,9 @@ public interface V1SecurityContextFluent> extends Fluent { public Boolean getAllowPrivilegeEscalation(); - public A withAllowPrivilegeEscalation(java.lang.Boolean allowPrivilegeEscalation); + public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation); - public java.lang.Boolean hasAllowPrivilegeEscalation(); + public Boolean hasAllowPrivilegeEscalation(); /** * This method has been deprecated, please use method buildCapabilities instead. @@ -31,148 +31,136 @@ public interface V1SecurityContextFluent> e @Deprecated public V1Capabilities getCapabilities(); - public io.kubernetes.client.openapi.models.V1Capabilities buildCapabilities(); + public V1Capabilities buildCapabilities(); - public A withCapabilities(io.kubernetes.client.openapi.models.V1Capabilities capabilities); + public A withCapabilities(V1Capabilities capabilities); - public java.lang.Boolean hasCapabilities(); + public Boolean hasCapabilities(); public V1SecurityContextFluent.CapabilitiesNested withNewCapabilities(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - withNewCapabilitiesLike(io.kubernetes.client.openapi.models.V1Capabilities item); + public V1SecurityContextFluent.CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - editCapabilities(); + public V1SecurityContextFluent.CapabilitiesNested editCapabilities(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - editOrNewCapabilities(); + public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilities(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - editOrNewCapabilitiesLike(io.kubernetes.client.openapi.models.V1Capabilities item); + public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilitiesLike( + V1Capabilities item); - public java.lang.Boolean getPrivileged(); + public Boolean getPrivileged(); - public A withPrivileged(java.lang.Boolean privileged); + public A withPrivileged(Boolean privileged); - public java.lang.Boolean hasPrivileged(); + public Boolean hasPrivileged(); public String getProcMount(); - public A withProcMount(java.lang.String procMount); + public A withProcMount(String procMount); - public java.lang.Boolean hasProcMount(); + public Boolean hasProcMount(); - public java.lang.Boolean getReadOnlyRootFilesystem(); + public Boolean getReadOnlyRootFilesystem(); - public A withReadOnlyRootFilesystem(java.lang.Boolean readOnlyRootFilesystem); + public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem); - public java.lang.Boolean hasReadOnlyRootFilesystem(); + public Boolean hasReadOnlyRootFilesystem(); public Long getRunAsGroup(); - public A withRunAsGroup(java.lang.Long runAsGroup); + public A withRunAsGroup(Long runAsGroup); - public java.lang.Boolean hasRunAsGroup(); + public Boolean hasRunAsGroup(); - public java.lang.Boolean getRunAsNonRoot(); + public Boolean getRunAsNonRoot(); - public A withRunAsNonRoot(java.lang.Boolean runAsNonRoot); + public A withRunAsNonRoot(Boolean runAsNonRoot); - public java.lang.Boolean hasRunAsNonRoot(); + public Boolean hasRunAsNonRoot(); - public java.lang.Long getRunAsUser(); + public Long getRunAsUser(); - public A withRunAsUser(java.lang.Long runAsUser); + public A withRunAsUser(Long runAsUser); - public java.lang.Boolean hasRunAsUser(); + public Boolean hasRunAsUser(); /** * This method has been deprecated, please use method buildSeLinuxOptions instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SELinuxOptions getSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1SELinuxOptions buildSeLinuxOptions(); + public V1SELinuxOptions buildSeLinuxOptions(); - public A withSeLinuxOptions(io.kubernetes.client.openapi.models.V1SELinuxOptions seLinuxOptions); + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions); - public java.lang.Boolean hasSeLinuxOptions(); + public Boolean hasSeLinuxOptions(); public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - withNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item); + public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( + V1SELinuxOptions item); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - editSeLinuxOptions(); + public V1SecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptions(); + public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item); + public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( + V1SELinuxOptions item); /** * This method has been deprecated, please use method buildSeccompProfile instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SeccompProfile getSeccompProfile(); - public io.kubernetes.client.openapi.models.V1SeccompProfile buildSeccompProfile(); + public V1SeccompProfile buildSeccompProfile(); - public A withSeccompProfile(io.kubernetes.client.openapi.models.V1SeccompProfile seccompProfile); + public A withSeccompProfile(V1SeccompProfile seccompProfile); - public java.lang.Boolean hasSeccompProfile(); + public Boolean hasSeccompProfile(); public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfile(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - withNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item); + public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( + V1SeccompProfile item); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - editSeccompProfile(); + public V1SecurityContextFluent.SeccompProfileNested editSeccompProfile(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfile(); + public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item); + public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( + V1SeccompProfile item); /** * This method has been deprecated, please use method buildWindowsOptions instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions(); - public io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions buildWindowsOptions(); + public V1WindowsSecurityContextOptions buildWindowsOptions(); - public A withWindowsOptions( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions windowsOptions); + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions); - public java.lang.Boolean hasWindowsOptions(); + public Boolean hasWindowsOptions(); public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptions(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - withNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item); + public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - editWindowsOptions(); + public V1SecurityContextFluent.WindowsOptionsNested editWindowsOptions(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptions(); + public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions(); - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item); + public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item); public A withAllowPrivilegeEscalation(); @@ -190,23 +178,21 @@ public interface CapabilitiesNested } public interface SeLinuxOptionsNested - extends io.kubernetes.client.fluent.Nested, - V1SELinuxOptionsFluent> { + extends Nested, V1SELinuxOptionsFluent> { public N and(); public N endSeLinuxOptions(); } public interface SeccompProfileNested - extends io.kubernetes.client.fluent.Nested, - V1SeccompProfileFluent> { + extends Nested, V1SeccompProfileFluent> { public N and(); public N endSeccompProfile(); } public interface WindowsOptionsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1WindowsSecurityContextOptionsFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java index b3d018ed07..39799659ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluentImpl.java @@ -21,8 +21,7 @@ public class V1SecurityContextFluentImpl> e implements V1SecurityContextFluent { public V1SecurityContextFluentImpl() {} - public V1SecurityContextFluentImpl( - io.kubernetes.client.openapi.models.V1SecurityContext instance) { + public V1SecurityContextFluentImpl(V1SecurityContext instance) { this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); this.withCapabilities(instance.getCapabilities()); @@ -48,26 +47,26 @@ public V1SecurityContextFluentImpl( private Boolean allowPrivilegeEscalation; private V1CapabilitiesBuilder capabilities; - private java.lang.Boolean privileged; + private Boolean privileged; private String procMount; - private java.lang.Boolean readOnlyRootFilesystem; + private Boolean readOnlyRootFilesystem; private Long runAsGroup; - private java.lang.Boolean runAsNonRoot; - private java.lang.Long runAsUser; + private Boolean runAsNonRoot; + private Long runAsUser; private V1SELinuxOptionsBuilder seLinuxOptions; private V1SeccompProfileBuilder seccompProfile; private V1WindowsSecurityContextOptionsBuilder windowsOptions; - public java.lang.Boolean getAllowPrivilegeEscalation() { + public Boolean getAllowPrivilegeEscalation() { return this.allowPrivilegeEscalation; } - public A withAllowPrivilegeEscalation(java.lang.Boolean allowPrivilegeEscalation) { + public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { this.allowPrivilegeEscalation = allowPrivilegeEscalation; return (A) this; } - public java.lang.Boolean hasAllowPrivilegeEscalation() { + public Boolean hasAllowPrivilegeEscalation() { return this.allowPrivilegeEscalation != null; } @@ -77,24 +76,27 @@ public java.lang.Boolean hasAllowPrivilegeEscalation() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1Capabilities getCapabilities() { + public V1Capabilities getCapabilities() { return this.capabilities != null ? this.capabilities.build() : null; } - public io.kubernetes.client.openapi.models.V1Capabilities buildCapabilities() { + public V1Capabilities buildCapabilities() { return this.capabilities != null ? this.capabilities.build() : null; } - public A withCapabilities(io.kubernetes.client.openapi.models.V1Capabilities capabilities) { + public A withCapabilities(V1Capabilities capabilities) { _visitables.get("capabilities").remove(this.capabilities); if (capabilities != null) { this.capabilities = new V1CapabilitiesBuilder(capabilities); _visitables.get("capabilities").add(this.capabilities); + } else { + this.capabilities = null; + _visitables.get("capabilities").remove(this.capabilities); } return (A) this; } - public java.lang.Boolean hasCapabilities() { + public Boolean hasCapabilities() { return this.capabilities != null; } @@ -102,104 +104,100 @@ public V1SecurityContextFluent.CapabilitiesNested withNewCapabilities() { return new V1SecurityContextFluentImpl.CapabilitiesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - withNewCapabilitiesLike(io.kubernetes.client.openapi.models.V1Capabilities item) { + public V1SecurityContextFluent.CapabilitiesNested withNewCapabilitiesLike( + V1Capabilities item) { return new V1SecurityContextFluentImpl.CapabilitiesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - editCapabilities() { + public V1SecurityContextFluent.CapabilitiesNested editCapabilities() { return withNewCapabilitiesLike(getCapabilities()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - editOrNewCapabilities() { + public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilities() { return withNewCapabilitiesLike( - getCapabilities() != null - ? getCapabilities() - : new io.kubernetes.client.openapi.models.V1CapabilitiesBuilder().build()); + getCapabilities() != null ? getCapabilities() : new V1CapabilitiesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested - editOrNewCapabilitiesLike(io.kubernetes.client.openapi.models.V1Capabilities item) { + public V1SecurityContextFluent.CapabilitiesNested editOrNewCapabilitiesLike( + V1Capabilities item) { return withNewCapabilitiesLike(getCapabilities() != null ? getCapabilities() : item); } - public java.lang.Boolean getPrivileged() { + public Boolean getPrivileged() { return this.privileged; } - public A withPrivileged(java.lang.Boolean privileged) { + public A withPrivileged(Boolean privileged) { this.privileged = privileged; return (A) this; } - public java.lang.Boolean hasPrivileged() { + public Boolean hasPrivileged() { return this.privileged != null; } - public java.lang.String getProcMount() { + public String getProcMount() { return this.procMount; } - public A withProcMount(java.lang.String procMount) { + public A withProcMount(String procMount) { this.procMount = procMount; return (A) this; } - public java.lang.Boolean hasProcMount() { + public Boolean hasProcMount() { return this.procMount != null; } - public java.lang.Boolean getReadOnlyRootFilesystem() { + public Boolean getReadOnlyRootFilesystem() { return this.readOnlyRootFilesystem; } - public A withReadOnlyRootFilesystem(java.lang.Boolean readOnlyRootFilesystem) { + public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { this.readOnlyRootFilesystem = readOnlyRootFilesystem; return (A) this; } - public java.lang.Boolean hasReadOnlyRootFilesystem() { + public Boolean hasReadOnlyRootFilesystem() { return this.readOnlyRootFilesystem != null; } - public java.lang.Long getRunAsGroup() { + public Long getRunAsGroup() { return this.runAsGroup; } - public A withRunAsGroup(java.lang.Long runAsGroup) { + public A withRunAsGroup(Long runAsGroup) { this.runAsGroup = runAsGroup; return (A) this; } - public java.lang.Boolean hasRunAsGroup() { + public Boolean hasRunAsGroup() { return this.runAsGroup != null; } - public java.lang.Boolean getRunAsNonRoot() { + public Boolean getRunAsNonRoot() { return this.runAsNonRoot; } - public A withRunAsNonRoot(java.lang.Boolean runAsNonRoot) { + public A withRunAsNonRoot(Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; return (A) this; } - public java.lang.Boolean hasRunAsNonRoot() { + public Boolean hasRunAsNonRoot() { return this.runAsNonRoot != null; } - public java.lang.Long getRunAsUser() { + public Long getRunAsUser() { return this.runAsUser; } - public A withRunAsUser(java.lang.Long runAsUser) { + public A withRunAsUser(Long runAsUser) { this.runAsUser = runAsUser; return (A) this; } - public java.lang.Boolean hasRunAsUser() { + public Boolean hasRunAsUser() { return this.runAsUser != null; } @@ -208,26 +206,28 @@ public java.lang.Boolean hasRunAsUser() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SELinuxOptions getSeLinuxOptions() { return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; } - public io.kubernetes.client.openapi.models.V1SELinuxOptions buildSeLinuxOptions() { + public V1SELinuxOptions buildSeLinuxOptions() { return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; } - public A withSeLinuxOptions(io.kubernetes.client.openapi.models.V1SELinuxOptions seLinuxOptions) { + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); if (seLinuxOptions != null) { - this.seLinuxOptions = - new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder(seLinuxOptions); + this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); _visitables.get("seLinuxOptions").add(this.seLinuxOptions); + } else { + this.seLinuxOptions = null; + _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); } return (A) this; } - public java.lang.Boolean hasSeLinuxOptions() { + public Boolean hasSeLinuxOptions() { return this.seLinuxOptions != null; } @@ -235,27 +235,22 @@ public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions() { return new V1SecurityContextFluentImpl.SeLinuxOptionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - withNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { - return new io.kubernetes.client.openapi.models.V1SecurityContextFluentImpl - .SeLinuxOptionsNestedImpl(item); + public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptionsLike( + V1SELinuxOptions item) { + return new V1SecurityContextFluentImpl.SeLinuxOptionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - editSeLinuxOptions() { + public V1SecurityContextFluent.SeLinuxOptionsNested editSeLinuxOptions() { return withNewSeLinuxOptionsLike(getSeLinuxOptions()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptions() { + public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptions() { return withNewSeLinuxOptionsLike( - getSeLinuxOptions() != null - ? getSeLinuxOptions() - : new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder().build()); + getSeLinuxOptions() != null ? getSeLinuxOptions() : new V1SELinuxOptionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested - editOrNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { + public V1SecurityContextFluent.SeLinuxOptionsNested editOrNewSeLinuxOptionsLike( + V1SELinuxOptions item) { return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions() : item); } @@ -264,25 +259,28 @@ public V1SecurityContextFluent.SeLinuxOptionsNested withNewSeLinuxOptions() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SeccompProfile getSeccompProfile() { + @Deprecated + public V1SeccompProfile getSeccompProfile() { return this.seccompProfile != null ? this.seccompProfile.build() : null; } - public io.kubernetes.client.openapi.models.V1SeccompProfile buildSeccompProfile() { + public V1SeccompProfile buildSeccompProfile() { return this.seccompProfile != null ? this.seccompProfile.build() : null; } - public A withSeccompProfile(io.kubernetes.client.openapi.models.V1SeccompProfile seccompProfile) { + public A withSeccompProfile(V1SeccompProfile seccompProfile) { _visitables.get("seccompProfile").remove(this.seccompProfile); if (seccompProfile != null) { this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); _visitables.get("seccompProfile").add(this.seccompProfile); + } else { + this.seccompProfile = null; + _visitables.get("seccompProfile").remove(this.seccompProfile); } return (A) this; } - public java.lang.Boolean hasSeccompProfile() { + public Boolean hasSeccompProfile() { return this.seccompProfile != null; } @@ -290,27 +288,22 @@ public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfile() { return new V1SecurityContextFluentImpl.SeccompProfileNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - withNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item) { - return new io.kubernetes.client.openapi.models.V1SecurityContextFluentImpl - .SeccompProfileNestedImpl(item); + public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfileLike( + V1SeccompProfile item) { + return new V1SecurityContextFluentImpl.SeccompProfileNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - editSeccompProfile() { + public V1SecurityContextFluent.SeccompProfileNested editSeccompProfile() { return withNewSeccompProfileLike(getSeccompProfile()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfile() { + public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfile() { return withNewSeccompProfileLike( - getSeccompProfile() != null - ? getSeccompProfile() - : new io.kubernetes.client.openapi.models.V1SeccompProfileBuilder().build()); + getSeccompProfile() != null ? getSeccompProfile() : new V1SeccompProfileBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested - editOrNewSeccompProfileLike(io.kubernetes.client.openapi.models.V1SeccompProfile item) { + public V1SecurityContextFluent.SeccompProfileNested editOrNewSeccompProfileLike( + V1SeccompProfile item) { return withNewSeccompProfileLike(getSeccompProfile() != null ? getSeccompProfile() : item); } @@ -319,28 +312,28 @@ public V1SecurityContextFluent.SeccompProfileNested withNewSeccompProfile() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1WindowsSecurityContextOptions getWindowsOptions() { return this.windowsOptions != null ? this.windowsOptions.build() : null; } - public io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions buildWindowsOptions() { + public V1WindowsSecurityContextOptions buildWindowsOptions() { return this.windowsOptions != null ? this.windowsOptions.build() : null; } - public A withWindowsOptions( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions windowsOptions) { + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { _visitables.get("windowsOptions").remove(this.windowsOptions); if (windowsOptions != null) { - this.windowsOptions = - new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder( - windowsOptions); + this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); _visitables.get("windowsOptions").add(this.windowsOptions); + } else { + this.windowsOptions = null; + _visitables.get("windowsOptions").remove(this.windowsOptions); } return (A) this; } - public java.lang.Boolean hasWindowsOptions() { + public Boolean hasWindowsOptions() { return this.windowsOptions != null; } @@ -348,30 +341,24 @@ public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptions() { return new V1SecurityContextFluentImpl.WindowsOptionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - withNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item) { - return new io.kubernetes.client.openapi.models.V1SecurityContextFluentImpl - .WindowsOptionsNestedImpl(item); + public V1SecurityContextFluent.WindowsOptionsNested withNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item) { + return new V1SecurityContextFluentImpl.WindowsOptionsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - editWindowsOptions() { + public V1SecurityContextFluent.WindowsOptionsNested editWindowsOptions() { return withNewWindowsOptionsLike(getWindowsOptions()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptions() { + public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptions() { return withNewWindowsOptionsLike( getWindowsOptions() != null ? getWindowsOptions() - : new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder() - .build()); + : new V1WindowsSecurityContextOptionsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested - editOrNewWindowsOptionsLike( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions item) { + public V1SecurityContextFluent.WindowsOptionsNested editOrNewWindowsOptionsLike( + V1WindowsSecurityContextOptions item) { return withNewWindowsOptionsLike(getWindowsOptions() != null ? getWindowsOptions() : item); } @@ -425,7 +412,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (allowPrivilegeEscalation != null) { @@ -494,17 +481,16 @@ public A withRunAsNonRoot() { class CapabilitiesNestedImpl extends V1CapabilitiesFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecurityContextFluent.CapabilitiesNested, - Nested { + implements V1SecurityContextFluent.CapabilitiesNested, Nested { CapabilitiesNestedImpl(V1Capabilities item) { this.builder = new V1CapabilitiesBuilder(this, item); } CapabilitiesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CapabilitiesBuilder(this); + this.builder = new V1CapabilitiesBuilder(this); } - io.kubernetes.client.openapi.models.V1CapabilitiesBuilder builder; + V1CapabilitiesBuilder builder; public N and() { return (N) V1SecurityContextFluentImpl.this.withCapabilities(builder.build()); @@ -517,18 +503,16 @@ public N endCapabilities() { class SeLinuxOptionsNestedImpl extends V1SELinuxOptionsFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeLinuxOptionsNested< - N>, - io.kubernetes.client.fluent.Nested { - SeLinuxOptionsNestedImpl(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { + implements V1SecurityContextFluent.SeLinuxOptionsNested, Nested { + SeLinuxOptionsNestedImpl(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } SeLinuxOptionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder(this); + this.builder = new V1SELinuxOptionsBuilder(this); } - io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder builder; + V1SELinuxOptionsBuilder builder; public N and() { return (N) V1SecurityContextFluentImpl.this.withSeLinuxOptions(builder.build()); @@ -541,18 +525,16 @@ public N endSeLinuxOptions() { class SeccompProfileNestedImpl extends V1SeccompProfileFluentImpl> - implements io.kubernetes.client.openapi.models.V1SecurityContextFluent.SeccompProfileNested< - N>, - io.kubernetes.client.fluent.Nested { - SeccompProfileNestedImpl(io.kubernetes.client.openapi.models.V1SeccompProfile item) { + implements V1SecurityContextFluent.SeccompProfileNested, Nested { + SeccompProfileNestedImpl(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } SeccompProfileNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SeccompProfileBuilder(this); + this.builder = new V1SeccompProfileBuilder(this); } - io.kubernetes.client.openapi.models.V1SeccompProfileBuilder builder; + V1SeccompProfileBuilder builder; public N and() { return (N) V1SecurityContextFluentImpl.this.withSeccompProfile(builder.build()); @@ -566,19 +548,16 @@ public N endSeccompProfile() { class WindowsOptionsNestedImpl extends V1WindowsSecurityContextOptionsFluentImpl< V1SecurityContextFluent.WindowsOptionsNested> - implements io.kubernetes.client.openapi.models.V1SecurityContextFluent.WindowsOptionsNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1SecurityContextFluent.WindowsOptionsNested, Nested { WindowsOptionsNestedImpl(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } WindowsOptionsNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder(this); + this.builder = new V1WindowsSecurityContextOptionsBuilder(this); } - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsBuilder builder; + V1WindowsSecurityContextOptionsBuilder builder; public N and() { return (N) V1SecurityContextFluentImpl.this.withWindowsOptions(builder.build()); 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 369b107e53..adb76f55f9 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 @@ -16,9 +16,7 @@ public class V1SelfSubjectAccessReviewBuilder extends V1SelfSubjectAccessReviewFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview, - V1SelfSubjectAccessReviewBuilder> { + implements VisitableBuilder { public V1SelfSubjectAccessReviewBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluen } public V1SelfSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent fluent, - java.lang.Boolean validationEnabled) { + V1SelfSubjectAccessReviewFluent fluent, Boolean validationEnabled) { this(fluent, new V1SelfSubjectAccessReview(), validationEnabled); } public V1SelfSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview instance) { + V1SelfSubjectAccessReviewFluent fluent, V1SelfSubjectAccessReview instance) { this(fluent, instance, false); } public V1SelfSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectAccessReviewFluent fluent, + V1SelfSubjectAccessReview instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V1SelfSubjectAccessReviewBuilder( this.validationEnabled = validationEnabled; } - public V1SelfSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview instance) { + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReview instance) { this(instance, false); } public V1SelfSubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectAccessReview instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V1SelfSubjectAccessReviewBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent fluent; - java.lang.Boolean validationEnabled; + V1SelfSubjectAccessReviewFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview build() { + public V1SelfSubjectAccessReview build() { V1SelfSubjectAccessReview buildable = new V1SelfSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 5f77da5f3b..7f60121829 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java @@ -20,15 +20,15 @@ public interface V1SelfSubjectAccessReviewFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,81 +38,73 @@ public interface V1SelfSubjectAccessReviewFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - editMetadata(); + public V1SelfSubjectAccessReviewFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - editOrNewMetadata(); + public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SelfSubjectAccessReviewSpec getSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec buildSpec(); + public V1SelfSubjectAccessReviewSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec spec); + public A withSpec(V1SelfSubjectAccessReviewSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec item); + public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpecLike( + V1SelfSubjectAccessReviewSpec item); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - editSpec(); + public V1SelfSubjectAccessReviewFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - editOrNewSpec(); + public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec item); + public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( + V1SelfSubjectAccessReviewSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewStatus getStatus(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus buildStatus(); + public V1SubjectAccessReviewStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus status); + public A withStatus(V1SubjectAccessReviewStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item); + public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatusLike( + V1SubjectAccessReviewStatus item); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - editStatus(); + public V1SelfSubjectAccessReviewFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - editOrNewStatus(); + public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item); + public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectAccessReviewStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -122,7 +114,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SelfSubjectAccessReviewSpecFluent> { public N and(); @@ -130,7 +122,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SubjectAccessReviewStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java index 4fb18cc262..a1cefe381f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluentImpl.java @@ -21,8 +21,7 @@ public class V1SelfSubjectAccessReviewFluentImpl implements V1SelfSubjectAccessReviewFluent { public V1SelfSubjectAccessReviewFluentImpl() {} - public V1SelfSubjectAccessReviewFluentImpl( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReview instance) { + public V1SelfSubjectAccessReviewFluentImpl(V1SelfSubjectAccessReview instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1SelfSubjectAccessReviewFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1SelfSubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,21 @@ public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadata() { return new V1SelfSubjectAccessReviewFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SelfSubjectAccessReviewFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - editMetadata() { + public V1SelfSubjectAccessReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - editOrNewMetadata() { + public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SelfSubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +122,28 @@ public V1SelfSubjectAccessReviewFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec getSpec() { + @Deprecated + public V1SelfSubjectAccessReviewSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec buildSpec() { + public V1SelfSubjectAccessReviewSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec spec) { + public A withSpec(V1SelfSubjectAccessReviewSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1SelfSubjectAccessReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,28 +151,22 @@ public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpec() { return new V1SelfSubjectAccessReviewFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec item) { - return new io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluentImpl - .SpecNestedImpl(item); + public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpecLike( + V1SelfSubjectAccessReviewSpec item) { + return new V1SelfSubjectAccessReviewFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - editSpec() { + public V1SelfSubjectAccessReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - editOrNewSpec() { + public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1SelfSubjectAccessReviewSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec item) { + public V1SelfSubjectAccessReviewFluent.SpecNested editOrNewSpecLike( + V1SelfSubjectAccessReviewSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -181,26 +175,28 @@ public V1SelfSubjectAccessReviewFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus buildStatus() { + public V1SubjectAccessReviewStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus status) { + public A withStatus(V1SubjectAccessReviewStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder(status); + this.status = new V1SubjectAccessReviewStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -208,27 +204,22 @@ public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatus() { return new V1SelfSubjectAccessReviewFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item) { - return new io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluentImpl - .StatusNestedImpl(item); + public V1SelfSubjectAccessReviewFluent.StatusNested withNewStatusLike( + V1SubjectAccessReviewStatus item) { + return new V1SelfSubjectAccessReviewFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - editStatus() { + public V1SelfSubjectAccessReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - editOrNewStatus() { + public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1SubjectAccessReviewStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item) { + public V1SelfSubjectAccessReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectAccessReviewStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -249,7 +240,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -278,18 +269,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.MetadataNested< - N>, - Nested { + implements V1SelfSubjectAccessReviewFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1SelfSubjectAccessReviewFluentImpl.this.withMetadata(builder.build()); @@ -302,18 +291,16 @@ public N endMetadata() { class SpecNestedImpl extends V1SelfSubjectAccessReviewSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec item) { + implements V1SelfSubjectAccessReviewFluent.SpecNested, Nested { + SpecNestedImpl(V1SelfSubjectAccessReviewSpec item) { this.builder = new V1SelfSubjectAccessReviewSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecBuilder(this); + this.builder = new V1SelfSubjectAccessReviewSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecBuilder builder; + V1SelfSubjectAccessReviewSpecBuilder builder; public N and() { return (N) V1SelfSubjectAccessReviewFluentImpl.this.withSpec(builder.build()); @@ -326,19 +313,16 @@ public N endSpec() { class StatusNestedImpl extends V1SubjectAccessReviewStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1SelfSubjectAccessReviewFluent.StatusNested, Nested { StatusNestedImpl(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder(this); + this.builder = new V1SubjectAccessReviewStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder builder; + V1SubjectAccessReviewStatusBuilder builder; public N and() { return (N) V1SelfSubjectAccessReviewFluentImpl.this.withStatus(builder.build()); 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 61bb6055a6..350b7c988e 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 @@ -17,8 +17,7 @@ public class V1SelfSubjectAccessReviewSpecBuilder extends V1SelfSubjectAccessReviewSpecFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec, - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecBuilder> { + V1SelfSubjectAccessReviewSpec, V1SelfSubjectAccessReviewSpecBuilder> { public V1SelfSubjectAccessReviewSpecBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent< } public V1SelfSubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1SelfSubjectAccessReviewSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1SelfSubjectAccessReviewSpec(), validationEnabled); } public V1SelfSubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec instance) { + V1SelfSubjectAccessReviewSpecFluent fluent, V1SelfSubjectAccessReviewSpec instance) { this(fluent, instance, false); } public V1SelfSubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectAccessReviewSpecFluent fluent, + V1SelfSubjectAccessReviewSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withNonResourceAttributes(instance.getNonResourceAttributes()); @@ -55,14 +52,12 @@ public V1SelfSubjectAccessReviewSpecBuilder( this.validationEnabled = validationEnabled; } - public V1SelfSubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec instance) { + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpec instance) { this(instance, false); } public V1SelfSubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectAccessReviewSpec instance, Boolean validationEnabled) { this.fluent = this; this.withNonResourceAttributes(instance.getNonResourceAttributes()); @@ -71,10 +66,10 @@ public V1SelfSubjectAccessReviewSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1SelfSubjectAccessReviewSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec build() { + public V1SelfSubjectAccessReviewSpec build() { V1SelfSubjectAccessReviewSpec buildable = new V1SelfSubjectAccessReviewSpec(); buildable.setNonResourceAttributes(fluent.getNonResourceAttributes()); buildable.setResourceAttributes(fluent.getResourceAttributes()); 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 4aefc8b60d..c1e3387dc9 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 @@ -28,76 +28,54 @@ public interface V1SelfSubjectAccessReviewSpecFluent< @Deprecated public V1NonResourceAttributes getNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1NonResourceAttributes buildNonResourceAttributes(); + public V1NonResourceAttributes buildNonResourceAttributes(); - public A withNonResourceAttributes( - io.kubernetes.client.openapi.models.V1NonResourceAttributes nonResourceAttributes); + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes); public Boolean hasNonResourceAttributes(); public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - withNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested + withNewNonResourceAttributesLike(V1NonResourceAttributes item); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - editOrNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item); + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested + editOrNewNonResourceAttributesLike(V1NonResourceAttributes item); /** * This method has been deprecated, please use method buildResourceAttributes instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceAttributes getResourceAttributes(); - public io.kubernetes.client.openapi.models.V1ResourceAttributes buildResourceAttributes(); + public V1ResourceAttributes buildResourceAttributes(); - public A withResourceAttributes( - io.kubernetes.client.openapi.models.V1ResourceAttributes resourceAttributes); + public A withResourceAttributes(V1ResourceAttributes resourceAttributes); - public java.lang.Boolean hasResourceAttributes(); + public Boolean hasResourceAttributes(); public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - withNewResourceAttributesLike(io.kubernetes.client.openapi.models.V1ResourceAttributes item); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested + withNewResourceAttributesLike(V1ResourceAttributes item); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editResourceAttributes(); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editOrNewResourceAttributesLike( - io.kubernetes.client.openapi.models.V1ResourceAttributes item); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested + editOrNewResourceAttributesLike(V1ResourceAttributes item); public interface NonResourceAttributesNested extends Nested, @@ -109,7 +87,7 @@ public interface NonResourceAttributesNested } public interface ResourceAttributesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceAttributesFluent< V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java index 9f08d7eed2..dcca83b503 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluentImpl.java @@ -22,8 +22,7 @@ public class V1SelfSubjectAccessReviewSpecFluentImpl< extends BaseFluent implements V1SelfSubjectAccessReviewSpecFluent { public V1SelfSubjectAccessReviewSpecFluentImpl() {} - public V1SelfSubjectAccessReviewSpecFluentImpl( - io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec instance) { + public V1SelfSubjectAccessReviewSpecFluentImpl(V1SelfSubjectAccessReviewSpec instance) { this.withNonResourceAttributes(instance.getNonResourceAttributes()); this.withResourceAttributes(instance.getResourceAttributes()); @@ -42,18 +41,18 @@ public V1NonResourceAttributes getNonResourceAttributes() { return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public io.kubernetes.client.openapi.models.V1NonResourceAttributes buildNonResourceAttributes() { + public V1NonResourceAttributes buildNonResourceAttributes() { return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public A withNonResourceAttributes( - io.kubernetes.client.openapi.models.V1NonResourceAttributes nonResourceAttributes) { + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); if (nonResourceAttributes != null) { - this.nonResourceAttributes = - new io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder( - nonResourceAttributes); + this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); _visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); + } else { + this.nonResourceAttributes = null; + _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); } return (A) this; } @@ -67,36 +66,26 @@ public Boolean hasNonResourceAttributes() { return new V1SelfSubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - withNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item) { + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested + withNewNonResourceAttributesLike(V1NonResourceAttributes item) { return new V1SelfSubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes() { return withNewNonResourceAttributesLike(getNonResourceAttributes()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes() { return withNewNonResourceAttributesLike( getNonResourceAttributes() != null ? getNonResourceAttributes() - : new io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder().build()); + : new V1NonResourceAttributesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - editOrNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item) { + public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested + editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { return withNewNonResourceAttributesLike( getNonResourceAttributes() != null ? getNonResourceAttributes() : item); } @@ -106,26 +95,28 @@ public Boolean hasNonResourceAttributes() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ResourceAttributes getResourceAttributes() { + @Deprecated + public V1ResourceAttributes getResourceAttributes() { return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceAttributes buildResourceAttributes() { + public V1ResourceAttributes buildResourceAttributes() { return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public A withResourceAttributes( - io.kubernetes.client.openapi.models.V1ResourceAttributes resourceAttributes) { + public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { _visitables.get("resourceAttributes").remove(this.resourceAttributes); if (resourceAttributes != null) { this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); _visitables.get("resourceAttributes").add(this.resourceAttributes); + } else { + this.resourceAttributes = null; + _visitables.get("resourceAttributes").remove(this.resourceAttributes); } return (A) this; } - public java.lang.Boolean hasResourceAttributes() { + public Boolean hasResourceAttributes() { return this.resourceAttributes != null; } @@ -134,36 +125,25 @@ public java.lang.Boolean hasResourceAttributes() { return new V1SelfSubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - withNewResourceAttributesLike(io.kubernetes.client.openapi.models.V1ResourceAttributes item) { - return new io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluentImpl - .ResourceAttributesNestedImpl(item); + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested + withNewResourceAttributesLike(V1ResourceAttributes item) { + return new V1SelfSubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editResourceAttributes() { + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes() { return withNewResourceAttributesLike(getResourceAttributes()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes() { return withNewResourceAttributesLike( getResourceAttributes() != null ? getResourceAttributes() - : new io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder().build()); + : new V1ResourceAttributesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editOrNewResourceAttributesLike( - io.kubernetes.client.openapi.models.V1ResourceAttributes item) { + public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested + editOrNewResourceAttributesLike(V1ResourceAttributes item) { return withNewResourceAttributesLike( getResourceAttributes() != null ? getResourceAttributes() : item); } @@ -203,20 +183,16 @@ public String toString() { class NonResourceAttributesNestedImpl extends V1NonResourceAttributesFluentImpl< V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested> - implements io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - N>, - Nested { - NonResourceAttributesNestedImpl( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item) { + implements V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested, Nested { + NonResourceAttributesNestedImpl(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } NonResourceAttributesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder(this); + this.builder = new V1NonResourceAttributesBuilder(this); } - io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder builder; + V1NonResourceAttributesBuilder builder; public N and() { return (N) @@ -231,19 +207,16 @@ public N endNonResourceAttributes() { class ResourceAttributesNestedImpl extends V1ResourceAttributesFluentImpl< V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested> - implements io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpecFluent - .ResourceAttributesNested< - N>, - io.kubernetes.client.fluent.Nested { - ResourceAttributesNestedImpl(io.kubernetes.client.openapi.models.V1ResourceAttributes item) { + implements V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested, Nested { + ResourceAttributesNestedImpl(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } ResourceAttributesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder(this); + this.builder = new V1ResourceAttributesBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder builder; + V1ResourceAttributesBuilder builder; public N and() { return (N) 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 64402dae4a..e54e3fe5a3 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 @@ -16,9 +16,7 @@ public class V1SelfSubjectRulesReviewBuilder extends V1SelfSubjectRulesReviewFluentImpl - implements VisitableBuilder< - V1SelfSubjectRulesReview, - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewBuilder> { + implements VisitableBuilder { public V1SelfSubjectRulesReviewBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent) } public V1SelfSubjectRulesReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent fluent, - java.lang.Boolean validationEnabled) { + V1SelfSubjectRulesReviewFluent fluent, Boolean validationEnabled) { this(fluent, new V1SelfSubjectRulesReview(), validationEnabled); } public V1SelfSubjectRulesReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReview instance) { + V1SelfSubjectRulesReviewFluent fluent, V1SelfSubjectRulesReview instance) { this(fluent, instance, false); } public V1SelfSubjectRulesReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReview instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectRulesReviewFluent fluent, + V1SelfSubjectRulesReview instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V1SelfSubjectRulesReviewBuilder( this.validationEnabled = validationEnabled; } - public V1SelfSubjectRulesReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReview instance) { + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReview instance) { this(instance, false); } public V1SelfSubjectRulesReviewBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReview instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectRulesReview instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V1SelfSubjectRulesReviewBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent fluent; - java.lang.Boolean validationEnabled; + V1SelfSubjectRulesReviewFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReview build() { + public V1SelfSubjectRulesReview build() { V1SelfSubjectRulesReview buildable = new V1SelfSubjectRulesReview(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 2050c2c826..84560fbf1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java @@ -20,15 +20,15 @@ public interface V1SelfSubjectRulesReviewFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,81 +38,73 @@ public interface V1SelfSubjectRulesReviewFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - editMetadata(); + public V1SelfSubjectRulesReviewFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - editOrNewMetadata(); + public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SelfSubjectRulesReviewSpec getSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec buildSpec(); + public V1SelfSubjectRulesReviewSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec spec); + public A withSpec(V1SelfSubjectRulesReviewSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec item); + public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpecLike( + V1SelfSubjectRulesReviewSpec item); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - editSpec(); + public V1SelfSubjectRulesReviewFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - editOrNewSpec(); + public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec item); + public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpecLike( + V1SelfSubjectRulesReviewSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectRulesReviewStatus getStatus(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus buildStatus(); + public V1SubjectRulesReviewStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus status); + public A withStatus(V1SubjectRulesReviewStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus item); + public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatusLike( + V1SubjectRulesReviewStatus item); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - editStatus(); + public V1SelfSubjectRulesReviewFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - editOrNewStatus(); + public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus item); + public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectRulesReviewStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -122,7 +114,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SelfSubjectRulesReviewSpecFluent> { public N and(); @@ -130,7 +122,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SubjectRulesReviewStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java index 2def3a1771..edde9efa49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluentImpl.java @@ -21,8 +21,7 @@ public class V1SelfSubjectRulesReviewFluentImpl implements V1SelfSubjectRulesReviewFluent { public V1SelfSubjectRulesReviewFluentImpl() {} - public V1SelfSubjectRulesReviewFluentImpl( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReview instance) { + public V1SelfSubjectRulesReviewFluentImpl(V1SelfSubjectRulesReview instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1SelfSubjectRulesReviewFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1SelfSubjectRulesReviewSpecBuilder spec; private V1SubjectRulesReviewStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadata() { return new V1SelfSubjectRulesReviewFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SelfSubjectRulesReviewFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - editMetadata() { + public V1SelfSubjectRulesReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - editOrNewMetadata() { + public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SelfSubjectRulesReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1SelfSubjectRulesReviewFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SelfSubjectRulesReviewSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec buildSpec() { + public V1SelfSubjectRulesReviewSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec spec) { + public A withSpec(V1SelfSubjectRulesReviewSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecBuilder(spec); + this.spec = new V1SelfSubjectRulesReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,28 +150,22 @@ public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpec() { return new V1SelfSubjectRulesReviewFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec item) { - return new io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluentImpl - .SpecNestedImpl(item); + public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpecLike( + V1SelfSubjectRulesReviewSpec item) { + return new V1SelfSubjectRulesReviewFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - editSpec() { + public V1SelfSubjectRulesReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - editOrNewSpec() { + public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1SelfSubjectRulesReviewSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec item) { + public V1SelfSubjectRulesReviewFluent.SpecNested editOrNewSpecLike( + V1SelfSubjectRulesReviewSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -181,26 +174,28 @@ public V1SelfSubjectRulesReviewFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectRulesReviewStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus buildStatus() { + public V1SubjectRulesReviewStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus status) { + public A withStatus(V1SubjectRulesReviewStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusBuilder(status); + this.status = new V1SubjectRulesReviewStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -208,27 +203,22 @@ public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatus() { return new V1SelfSubjectRulesReviewFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus item) { - return new io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluentImpl - .StatusNestedImpl(item); + public V1SelfSubjectRulesReviewFluent.StatusNested withNewStatusLike( + V1SubjectRulesReviewStatus item) { + return new V1SelfSubjectRulesReviewFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - editStatus() { + public V1SelfSubjectRulesReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - editOrNewStatus() { + public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1SubjectRulesReviewStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus item) { + public V1SelfSubjectRulesReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectRulesReviewStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -249,7 +239,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -278,18 +268,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.MetadataNested< - N>, - Nested { + implements V1SelfSubjectRulesReviewFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1SelfSubjectRulesReviewFluentImpl.this.withMetadata(builder.build()); @@ -302,18 +290,16 @@ public N endMetadata() { class SpecNestedImpl extends V1SelfSubjectRulesReviewSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec item) { + implements V1SelfSubjectRulesReviewFluent.SpecNested, Nested { + SpecNestedImpl(V1SelfSubjectRulesReviewSpec item) { this.builder = new V1SelfSubjectRulesReviewSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecBuilder(this); + this.builder = new V1SelfSubjectRulesReviewSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecBuilder builder; + V1SelfSubjectRulesReviewSpecBuilder builder; public N and() { return (N) V1SelfSubjectRulesReviewFluentImpl.this.withSpec(builder.build()); @@ -326,18 +312,16 @@ public N endSpec() { class StatusNestedImpl extends V1SubjectRulesReviewStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1SelfSubjectRulesReviewFluent.StatusNested, Nested { StatusNestedImpl(V1SubjectRulesReviewStatus item) { this.builder = new V1SubjectRulesReviewStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusBuilder(this); + this.builder = new V1SubjectRulesReviewStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusBuilder builder; + V1SubjectRulesReviewStatusBuilder builder; public N and() { return (N) V1SelfSubjectRulesReviewFluentImpl.this.withStatus(builder.build()); 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 aae58fdd33..c6bace88de 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 @@ -16,9 +16,7 @@ public class V1SelfSubjectRulesReviewSpecBuilder extends V1SelfSubjectRulesReviewSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec, - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecBuilder> { + implements VisitableBuilder { public V1SelfSubjectRulesReviewSpecBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent } public V1SelfSubjectRulesReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1SelfSubjectRulesReviewSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1SelfSubjectRulesReviewSpec(), validationEnabled); } public V1SelfSubjectRulesReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec instance) { + V1SelfSubjectRulesReviewSpecFluent fluent, V1SelfSubjectRulesReviewSpec instance) { this(fluent, instance, false); } public V1SelfSubjectRulesReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectRulesReviewSpecFluent fluent, + V1SelfSubjectRulesReviewSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withNamespace(instance.getNamespace()); this.validationEnabled = validationEnabled; } - public V1SelfSubjectRulesReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec instance) { + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpec instance) { this(instance, false); } public V1SelfSubjectRulesReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1SelfSubjectRulesReviewSpec instance, Boolean validationEnabled) { this.fluent = this; this.withNamespace(instance.getNamespace()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1SelfSubjectRulesReviewSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec build() { + public V1SelfSubjectRulesReviewSpec build() { V1SelfSubjectRulesReviewSpec buildable = new V1SelfSubjectRulesReviewSpec(); buildable.setNamespace(fluent.getNamespace()); return buildable; 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 abe755cd8d..60a1491cf3 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 @@ -19,7 +19,7 @@ public interface V1SelfSubjectRulesReviewSpecFluent { public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); public Boolean hasNamespace(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java index b1bee22f63..e1bc346b87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluentImpl.java @@ -20,18 +20,17 @@ public class V1SelfSubjectRulesReviewSpecFluentImpl implements V1SelfSubjectRulesReviewSpecFluent { public V1SelfSubjectRulesReviewSpecFluentImpl() {} - public V1SelfSubjectRulesReviewSpecFluentImpl( - io.kubernetes.client.openapi.models.V1SelfSubjectRulesReviewSpec instance) { + public V1SelfSubjectRulesReviewSpecFluentImpl(V1SelfSubjectRulesReviewSpec instance) { this.withNamespace(instance.getNamespace()); } private String namespace; - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } @@ -53,7 +52,7 @@ public int hashCode() { return java.util.Objects.hash(namespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (namespace != null) { 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 f4381e17ac..bcb9ad9c8f 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 @@ -16,9 +16,7 @@ public class V1ServerAddressByClientCIDRBuilder extends V1ServerAddressByClientCIDRFluentImpl - implements VisitableBuilder< - V1ServerAddressByClientCIDR, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRBuilder> { + implements VisitableBuilder { public V1ServerAddressByClientCIDRBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1ServerAddressByClientCIDRBuilder(Boolean validationEnabled) { this(new V1ServerAddressByClientCIDR(), validationEnabled); } - public V1ServerAddressByClientCIDRBuilder( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluent fluent) { + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent) { this(fluent, false); } public V1ServerAddressByClientCIDRBuilder( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluent fluent, - java.lang.Boolean validationEnabled) { + V1ServerAddressByClientCIDRFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServerAddressByClientCIDR(), validationEnabled); } public V1ServerAddressByClientCIDRBuilder( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluent fluent, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR instance) { + V1ServerAddressByClientCIDRFluent fluent, V1ServerAddressByClientCIDR instance) { this(fluent, instance, false); } public V1ServerAddressByClientCIDRBuilder( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluent fluent, - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR instance, - java.lang.Boolean validationEnabled) { + V1ServerAddressByClientCIDRFluent fluent, + V1ServerAddressByClientCIDR instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withClientCIDR(instance.getClientCIDR()); @@ -56,14 +51,12 @@ public V1ServerAddressByClientCIDRBuilder( this.validationEnabled = validationEnabled; } - public V1ServerAddressByClientCIDRBuilder( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR instance) { + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDR instance) { this(instance, false); } public V1ServerAddressByClientCIDRBuilder( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR instance, - java.lang.Boolean validationEnabled) { + V1ServerAddressByClientCIDR instance, Boolean validationEnabled) { this.fluent = this; this.withClientCIDR(instance.getClientCIDR()); @@ -72,10 +65,10 @@ public V1ServerAddressByClientCIDRBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDRFluent fluent; - java.lang.Boolean validationEnabled; + V1ServerAddressByClientCIDRFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR build() { + public V1ServerAddressByClientCIDR build() { V1ServerAddressByClientCIDR buildable = new V1ServerAddressByClientCIDR(); buildable.setClientCIDR(fluent.getClientCIDR()); buildable.setServerAddress(fluent.getServerAddress()); 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 766e15647e..1b60d8febd 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 @@ -19,13 +19,13 @@ public interface V1ServerAddressByClientCIDRFluent { public String getClientCIDR(); - public A withClientCIDR(java.lang.String clientCIDR); + public A withClientCIDR(String clientCIDR); public Boolean hasClientCIDR(); - public java.lang.String getServerAddress(); + public String getServerAddress(); - public A withServerAddress(java.lang.String serverAddress); + public A withServerAddress(String serverAddress); - public java.lang.Boolean hasServerAddress(); + public Boolean hasServerAddress(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java index 8561e039a9..a48a08ea3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluentImpl.java @@ -20,21 +20,20 @@ public class V1ServerAddressByClientCIDRFluentImpl implements V1ServerAddressByClientCIDRFluent { public V1ServerAddressByClientCIDRFluentImpl() {} - public V1ServerAddressByClientCIDRFluentImpl( - io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR instance) { + public V1ServerAddressByClientCIDRFluentImpl(V1ServerAddressByClientCIDR instance) { this.withClientCIDR(instance.getClientCIDR()); this.withServerAddress(instance.getServerAddress()); } private String clientCIDR; - private java.lang.String serverAddress; + private String serverAddress; - public java.lang.String getClientCIDR() { + public String getClientCIDR() { return this.clientCIDR; } - public A withClientCIDR(java.lang.String clientCIDR) { + public A withClientCIDR(String clientCIDR) { this.clientCIDR = clientCIDR; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasClientCIDR() { return this.clientCIDR != null; } - public java.lang.String getServerAddress() { + public String getServerAddress() { return this.serverAddress; } - public A withServerAddress(java.lang.String serverAddress) { + public A withServerAddress(String serverAddress) { this.serverAddress = serverAddress; return (A) this; } - public java.lang.Boolean hasServerAddress() { + public Boolean hasServerAddress() { return this.serverAddress != null; } @@ -72,7 +71,7 @@ public int hashCode() { return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (clientCIDR != null) { 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 b694198ab7..f873bd1fec 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ServiceAccountBuilder extends V1ServiceAccountFluentImpl - implements VisitableBuilder< - V1ServiceAccount, io.kubernetes.client.openapi.models.V1ServiceAccountBuilder> { + implements VisitableBuilder { public V1ServiceAccountBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1ServiceAccountBuilder(Boolean validationEnabled) { this(new V1ServiceAccount(), validationEnabled); } - public V1ServiceAccountBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountFluent fluent) { + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent) { this(fluent, false); } - public V1ServiceAccountBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceAccount(), validationEnabled); } - public V1ServiceAccountBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceAccount instance) { + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent, V1ServiceAccount instance) { this(fluent, instance, false); } public V1ServiceAccountBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceAccount instance, - java.lang.Boolean validationEnabled) { + V1ServiceAccountFluent fluent, V1ServiceAccount instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,13 +54,11 @@ public V1ServiceAccountBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceAccountBuilder(io.kubernetes.client.openapi.models.V1ServiceAccount instance) { + public V1ServiceAccountBuilder(V1ServiceAccount instance) { this(instance, false); } - public V1ServiceAccountBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccount instance, - java.lang.Boolean validationEnabled) { + public V1ServiceAccountBuilder(V1ServiceAccount instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -85,10 +75,10 @@ public V1ServiceAccountBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceAccountFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceAccountFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceAccount build() { + public V1ServiceAccount build() { V1ServiceAccount buildable = new V1ServiceAccount(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setAutomountServiceAccountToken(fluent.getAutomountServiceAccountToken()); 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 c7081c4a4d..0602c9c8f1 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 @@ -22,32 +22,29 @@ public interface V1ServiceAccountFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.Boolean getAutomountServiceAccountToken(); + public Boolean getAutomountServiceAccountToken(); - public A withAutomountServiceAccountToken(java.lang.Boolean automountServiceAccountToken); + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken); - public java.lang.Boolean hasAutomountServiceAccountToken(); + public Boolean hasAutomountServiceAccountToken(); public A addToImagePullSecrets(Integer index, V1LocalObjectReference item); - public A setToImagePullSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public A setToImagePullSecrets(Integer index, V1LocalObjectReference item); public A addToImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - public A addAllToImagePullSecrets( - Collection items); + public A addAllToImagePullSecrets(Collection items); public A removeFromImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items); - public A removeAllFromImagePullSecrets( - java.util.Collection items); + public A removeAllFromImagePullSecrets(Collection items); public A removeMatchingFromImagePullSecrets(Predicate predicate); @@ -57,165 +54,130 @@ public A removeAllFromImagePullSecrets( * @return The buildable object. */ @Deprecated - public List getImagePullSecrets(); + public List getImagePullSecrets(); - public java.util.List - buildImagePullSecrets(); + public List buildImagePullSecrets(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildImagePullSecret( - java.lang.Integer index); + public V1LocalObjectReference buildImagePullSecret(Integer index); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildFirstImagePullSecret(); + public V1LocalObjectReference buildFirstImagePullSecret(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildLastImagePullSecret(); + public V1LocalObjectReference buildLastImagePullSecret(); - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate); + public V1LocalObjectReference buildMatchingImagePullSecret( + Predicate predicate); - public java.lang.Boolean hasMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate); + public Boolean hasMatchingImagePullSecret(Predicate predicate); - public A withImagePullSecrets( - java.util.List imagePullSecrets); + public A withImagePullSecrets(List imagePullSecrets); public A withImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets); - public java.lang.Boolean hasImagePullSecrets(); + public Boolean hasImagePullSecrets(); public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecret(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - addNewImagePullSecretLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecretLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - setNewImagePullSecretLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1ServiceAccountFluent.ImagePullSecretsNested setNewImagePullSecretLike( + Integer index, V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editImagePullSecret(java.lang.Integer index); + public V1ServiceAccountFluent.ImagePullSecretsNested editImagePullSecret(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editFirstImagePullSecret(); + public V1ServiceAccountFluent.ImagePullSecretsNested editFirstImagePullSecret(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editLastImagePullSecret(); + public V1ServiceAccountFluent.ImagePullSecretsNested editLastImagePullSecret(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate); + public V1ServiceAccountFluent.ImagePullSecretsNested editMatchingImagePullSecret( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ServiceAccountFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ServiceAccountFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - editMetadata(); + public V1ServiceAccountFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - editOrNewMetadata(); + public V1ServiceAccountFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ServiceAccountFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public A addToSecrets(java.lang.Integer index, V1ObjectReference item); + public A addToSecrets(Integer index, V1ObjectReference item); - public A setToSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item); + public A setToSecrets(Integer index, V1ObjectReference item); public A addToSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A addAllToSecrets( - java.util.Collection items); + public A addAllToSecrets(Collection items); public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items); - public A removeAllFromSecrets( - java.util.Collection items); + public A removeAllFromSecrets(Collection items); - public A removeMatchingFromSecrets( - java.util.function.Predicate predicate); + public A removeMatchingFromSecrets(Predicate predicate); /** * This method has been deprecated, please use method buildSecrets instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSecrets(); + @Deprecated + public List getSecrets(); - public java.util.List buildSecrets(); + public List buildSecrets(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildSecret(java.lang.Integer index); + public V1ObjectReference buildSecret(Integer index); - public io.kubernetes.client.openapi.models.V1ObjectReference buildFirstSecret(); + public V1ObjectReference buildFirstSecret(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildLastSecret(); + public V1ObjectReference buildLastSecret(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingSecret( - java.util.function.Predicate - predicate); + public V1ObjectReference buildMatchingSecret(Predicate predicate); - public java.lang.Boolean hasMatchingSecret( - java.util.function.Predicate - predicate); + public Boolean hasMatchingSecret(Predicate predicate); - public A withSecrets( - java.util.List secrets); + public A withSecrets(List secrets); public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... secrets); - public java.lang.Boolean hasSecrets(); + public Boolean hasSecrets(); public V1ServiceAccountFluent.SecretsNested addNewSecret(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - addNewSecretLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1ServiceAccountFluent.SecretsNested addNewSecretLike(V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - setNewSecretLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1ServiceAccountFluent.SecretsNested setNewSecretLike( + Integer index, V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested editSecret( - java.lang.Integer index); + public V1ServiceAccountFluent.SecretsNested editSecret(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - editFirstSecret(); + public V1ServiceAccountFluent.SecretsNested editFirstSecret(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - editLastSecret(); + public V1ServiceAccountFluent.SecretsNested editLastSecret(); - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - editMatchingSecret( - java.util.function.Predicate - predicate); + public V1ServiceAccountFluent.SecretsNested editMatchingSecret( + Predicate predicate); public A withAutomountServiceAccountToken(); @@ -228,16 +190,14 @@ public interface ImagePullSecretsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); } public interface SecretsNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { + extends Nested, V1ObjectReferenceFluent> { public N and(); public N endSecret(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java index 1c9d68e344..06f209dd03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluentImpl.java @@ -26,7 +26,7 @@ public class V1ServiceAccountFluentImpl> ext implements V1ServiceAccountFluent { public V1ServiceAccountFluentImpl() {} - public V1ServiceAccountFluentImpl(io.kubernetes.client.openapi.models.V1ServiceAccount instance) { + public V1ServiceAccountFluentImpl(V1ServiceAccount instance) { this.withApiVersion(instance.getApiVersion()); this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); @@ -43,44 +43,41 @@ public V1ServiceAccountFluentImpl(io.kubernetes.client.openapi.models.V1ServiceA private String apiVersion; private Boolean automountServiceAccountToken; private ArrayList imagePullSecrets; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - private java.util.ArrayList secrets; + private ArrayList secrets; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.Boolean getAutomountServiceAccountToken() { + public Boolean getAutomountServiceAccountToken() { return this.automountServiceAccountToken; } - public A withAutomountServiceAccountToken(java.lang.Boolean automountServiceAccountToken) { + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; return (A) this; } - public java.lang.Boolean hasAutomountServiceAccountToken() { + public Boolean hasAutomountServiceAccountToken() { return this.automountServiceAccountToken != null; } public A addToImagePullSecrets(Integer index, V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables .get("imagePullSecrets") .add(index >= 0 ? index : _visitables.get("imagePullSecrets").size(), builder); @@ -88,15 +85,11 @@ public A addToImagePullSecrets(Integer index, V1LocalObjectReference item) { return (A) this; } - public A setToImagePullSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public A setToImagePullSecrets(Integer index, V1LocalObjectReference item) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); if (index < 0 || index >= _visitables.get("imagePullSecrets").size()) { _visitables.get("imagePullSecrets").add(builder); } else { @@ -113,29 +106,22 @@ public A setToImagePullSecrets( public A addToImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + 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) { + public A addAllToImagePullSecrets(Collection items) { if (this.imagePullSecrets == null) { - this.imagePullSecrets = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder>(); + this.imagePullSecrets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } @@ -144,9 +130,8 @@ public A addAllToImagePullSecrets( public A removeFromImagePullSecrets( io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").remove(builder); if (this.imagePullSecrets != null) { this.imagePullSecrets.remove(builder); @@ -155,11 +140,9 @@ public A removeFromImagePullSecrets( return (A) this; } - public A removeAllFromImagePullSecrets( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : items) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(item); + public A removeAllFromImagePullSecrets(Collection items) { + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); _visitables.get("imagePullSecrets").remove(builder); if (this.imagePullSecrets != null) { this.imagePullSecrets.remove(builder); @@ -168,14 +151,12 @@ public A removeAllFromImagePullSecrets( return (A) this; } - public A removeMatchingFromImagePullSecrets( - Predicate predicate) { + public A removeMatchingFromImagePullSecrets(Predicate predicate) { if (imagePullSecrets == null) return (A) this; - final Iterator each = - imagePullSecrets.iterator(); + final Iterator each = imagePullSecrets.iterator(); final List visitables = _visitables.get("imagePullSecrets"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder = each.next(); + V1LocalObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -190,34 +171,29 @@ public A removeMatchingFromImagePullSecrets( * @return The buildable object. */ @Deprecated - public List getImagePullSecrets() { + public List getImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public java.util.List - buildImagePullSecrets() { + public List buildImagePullSecrets() { return imagePullSecrets != null ? build(imagePullSecrets) : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildImagePullSecret( - java.lang.Integer index) { + public V1LocalObjectReference buildImagePullSecret(Integer index) { return this.imagePullSecrets.get(index).build(); } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildFirstImagePullSecret() { + public V1LocalObjectReference buildFirstImagePullSecret() { return this.imagePullSecrets.get(0).build(); } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildLastImagePullSecret() { + public V1LocalObjectReference buildLastImagePullSecret() { return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder item : - imagePullSecrets) { + public V1LocalObjectReference buildMatchingImagePullSecret( + Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { return item.build(); } @@ -225,12 +201,8 @@ public io.kubernetes.client.openapi.models.V1LocalObjectReference buildMatchingI return null; } - public java.lang.Boolean hasMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder item : - imagePullSecrets) { + public Boolean hasMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { return true; } @@ -238,14 +210,13 @@ public java.lang.Boolean hasMatchingImagePullSecret( return false; } - public A withImagePullSecrets( - java.util.List imagePullSecrets) { + public A withImagePullSecrets(List imagePullSecrets) { if (this.imagePullSecrets != null) { _visitables.get("imagePullSecrets").removeAll(this.imagePullSecrets); } if (imagePullSecrets != null) { - this.imagePullSecrets = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : imagePullSecrets) { + this.imagePullSecrets = new ArrayList(); + for (V1LocalObjectReference item : imagePullSecrets) { this.addToImagePullSecrets(item); } } else { @@ -260,14 +231,14 @@ public A withImagePullSecrets( this.imagePullSecrets.clear(); } if (imagePullSecrets != null) { - for (io.kubernetes.client.openapi.models.V1LocalObjectReference item : imagePullSecrets) { + for (V1LocalObjectReference item : imagePullSecrets) { this.addToImagePullSecrets(item); } } return (A) this; } - public java.lang.Boolean hasImagePullSecrets() { + public Boolean hasImagePullSecrets() { return imagePullSecrets != null && !imagePullSecrets.isEmpty(); } @@ -275,46 +246,37 @@ public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecret() return new V1ServiceAccountFluentImpl.ImagePullSecretsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - addNewImagePullSecretLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecretLike( + V1LocalObjectReference item) { return new V1ServiceAccountFluentImpl.ImagePullSecretsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - setNewImagePullSecretLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1LocalObjectReference item) { - return new io.kubernetes.client.openapi.models.V1ServiceAccountFluentImpl - .ImagePullSecretsNestedImpl(index, item); + public V1ServiceAccountFluent.ImagePullSecretsNested setNewImagePullSecretLike( + Integer index, V1LocalObjectReference item) { + return new V1ServiceAccountFluentImpl.ImagePullSecretsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editImagePullSecret(java.lang.Integer index) { + public V1ServiceAccountFluent.ImagePullSecretsNested editImagePullSecret(Integer index) { if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editFirstImagePullSecret() { + public V1ServiceAccountFluent.ImagePullSecretsNested editFirstImagePullSecret() { if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); return setNewImagePullSecretLike(0, buildImagePullSecret(0)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editLastImagePullSecret() { + public V1ServiceAccountFluent.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)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested - editMatchingImagePullSecret( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder> - predicate) { + public V1ServiceAccountFluent.ImagePullSecretsNested editMatchingImagePullSecret( + Predicate predicate) { int index = -1; for (int i = 0; i < imagePullSecrets.size(); i++) { if (predicate.test(imagePullSecrets.get(i))) { @@ -327,16 +289,16 @@ public V1ServiceAccountFluent.ImagePullSecretsNested addNewImagePullSecret() return setNewImagePullSecretLike(index, buildImagePullSecret(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -345,25 +307,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -371,50 +336,38 @@ public V1ServiceAccountFluent.MetadataNested withNewMetadata() { return new V1ServiceAccountFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1ServiceAccountFluentImpl.MetadataNestedImpl( - item); + public V1ServiceAccountFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1ServiceAccountFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - editMetadata() { + public V1ServiceAccountFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - editOrNewMetadata() { + public V1ServiceAccountFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ServiceAccountFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { + public A addToSecrets(Integer index, V1ObjectReference item) { if (this.secrets == null) { - this.secrets = new java.util.ArrayList(); + this.secrets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("secrets").add(index >= 0 ? index : _visitables.get("secrets").size(), builder); this.secrets.add(index >= 0 ? index : secrets.size(), builder); return (A) this; } - public A setToSecrets( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { + public A setToSecrets(Integer index, V1ObjectReference item) { if (this.secrets == null) { - this.secrets = - new java.util.ArrayList(); + this.secrets = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); if (index < 0 || index >= _visitables.get("secrets").size()) { _visitables.get("secrets").add(builder); } else { @@ -430,27 +383,22 @@ public A setToSecrets( public A addToSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { if (this.secrets == null) { - this.secrets = - new java.util.ArrayList(); + this.secrets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("secrets").add(builder); this.secrets.add(builder); } return (A) this; } - public A addAllToSecrets( - java.util.Collection items) { + public A addAllToSecrets(Collection items) { if (this.secrets == null) { - this.secrets = - new java.util.ArrayList(); + this.secrets = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("secrets").add(builder); this.secrets.add(builder); } @@ -458,9 +406,8 @@ public A addAllToSecrets( } public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("secrets").remove(builder); if (this.secrets != null) { this.secrets.remove(builder); @@ -469,11 +416,9 @@ public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference return (A) this; } - public A removeAllFromSecrets( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); + public A removeAllFromSecrets(Collection items) { + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); _visitables.get("secrets").remove(builder); if (this.secrets != null) { this.secrets.remove(builder); @@ -482,15 +427,12 @@ public A removeAllFromSecrets( return (A) this; } - public A removeMatchingFromSecrets( - java.util.function.Predicate - predicate) { + public A removeMatchingFromSecrets(Predicate predicate) { if (secrets == null) return (A) this; - final Iterator each = - secrets.iterator(); + final Iterator each = secrets.iterator(); final List visitables = _visitables.get("secrets"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = each.next(); + V1ObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -504,32 +446,29 @@ public A removeMatchingFromSecrets( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSecrets() { + @Deprecated + public List getSecrets() { return secrets != null ? build(secrets) : null; } - public java.util.List buildSecrets() { + public List buildSecrets() { return secrets != null ? build(secrets) : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildSecret( - java.lang.Integer index) { + public V1ObjectReference buildSecret(Integer index) { return this.secrets.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ObjectReference buildFirstSecret() { + public V1ObjectReference buildFirstSecret() { return this.secrets.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ObjectReference buildLastSecret() { + public V1ObjectReference buildLastSecret() { return this.secrets.get(secrets.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingSecret( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder item : secrets) { + public V1ObjectReference buildMatchingSecret(Predicate predicate) { + for (V1ObjectReferenceBuilder item : secrets) { if (predicate.test(item)) { return item.build(); } @@ -537,10 +476,8 @@ public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingSecret return null; } - public java.lang.Boolean hasMatchingSecret( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder item : secrets) { + public Boolean hasMatchingSecret(Predicate predicate) { + for (V1ObjectReferenceBuilder item : secrets) { if (predicate.test(item)) { return true; } @@ -548,14 +485,13 @@ public java.lang.Boolean hasMatchingSecret( return false; } - public A withSecrets( - java.util.List secrets) { + public A withSecrets(List secrets) { if (this.secrets != null) { _visitables.get("secrets").removeAll(this.secrets); } if (secrets != null) { - this.secrets = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ObjectReference item : secrets) { + this.secrets = new ArrayList(); + for (V1ObjectReference item : secrets) { this.addToSecrets(item); } } else { @@ -569,14 +505,14 @@ public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... se this.secrets.clear(); } if (secrets != null) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : secrets) { + for (V1ObjectReference item : secrets) { this.addToSecrets(item); } } return (A) this; } - public java.lang.Boolean hasSecrets() { + public Boolean hasSecrets() { return secrets != null && !secrets.isEmpty(); } @@ -584,44 +520,35 @@ public V1ServiceAccountFluent.SecretsNested addNewSecret() { return new V1ServiceAccountFluentImpl.SecretsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - addNewSecretLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1ServiceAccountFluentImpl.SecretsNestedImpl( - -1, item); + public V1ServiceAccountFluent.SecretsNested addNewSecretLike(V1ObjectReference item) { + return new V1ServiceAccountFluentImpl.SecretsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - setNewSecretLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1ServiceAccountFluentImpl.SecretsNestedImpl( - index, item); + public V1ServiceAccountFluent.SecretsNested setNewSecretLike( + Integer index, V1ObjectReference item) { + return new V1ServiceAccountFluentImpl.SecretsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested editSecret( - java.lang.Integer index) { + public V1ServiceAccountFluent.SecretsNested editSecret(Integer index) { if (secrets.size() <= index) throw new RuntimeException("Can't edit secrets. Index exceeds size."); return setNewSecretLike(index, buildSecret(index)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - editFirstSecret() { + public V1ServiceAccountFluent.SecretsNested editFirstSecret() { if (secrets.size() == 0) throw new RuntimeException("Can't edit first secrets. The list is empty."); return setNewSecretLike(0, buildSecret(0)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - editLastSecret() { + public V1ServiceAccountFluent.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)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested - editMatchingSecret( - java.util.function.Predicate - predicate) { + public V1ServiceAccountFluent.SecretsNested editMatchingSecret( + Predicate predicate) { int index = -1; for (int i = 0; i < secrets.size(); i++) { if (predicate.test(secrets.get(i))) { @@ -662,7 +589,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -699,21 +626,19 @@ public A withAutomountServiceAccountToken() { class ImagePullSecretsNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceAccountFluent.ImagePullSecretsNested< - N>, - Nested { - ImagePullSecretsNestedImpl(java.lang.Integer index, V1LocalObjectReference item) { + implements V1ServiceAccountFluent.ImagePullSecretsNested, Nested { + ImagePullSecretsNestedImpl(Integer index, V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } ImagePullSecretsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; - java.lang.Integer index; + V1LocalObjectReferenceBuilder builder; + Integer index; public N and() { return (N) V1ServiceAccountFluentImpl.this.setToImagePullSecrets(index, builder.build()); @@ -726,17 +651,16 @@ public N endImagePullSecret() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceAccountFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ServiceAccountFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ServiceAccountFluentImpl.this.withMetadata(builder.build()); @@ -749,21 +673,19 @@ public N endMetadata() { class SecretsNestedImpl extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceAccountFluent.SecretsNested, - io.kubernetes.client.fluent.Nested { - SecretsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1ServiceAccountFluent.SecretsNested, Nested { + SecretsNestedImpl(Integer index, V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } SecretsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; - java.lang.Integer index; + V1ObjectReferenceBuilder builder; + Integer index; public N and() { return (N) V1ServiceAccountFluentImpl.this.setToSecrets(index, builder.build()); 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 b0d9c3650b..349c3f979b 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 @@ -16,9 +16,7 @@ public class V1ServiceAccountListBuilder extends V1ServiceAccountListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ServiceAccountList, - io.kubernetes.client.openapi.models.V1ServiceAccountListBuilder> { + implements VisitableBuilder { public V1ServiceAccountListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent) { } public V1ServiceAccountListBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ServiceAccountListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceAccountList(), validationEnabled); } public V1ServiceAccountListBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountListFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceAccountList instance) { + V1ServiceAccountListFluent fluent, V1ServiceAccountList instance) { this(fluent, instance, false); } public V1ServiceAccountListBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountListFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceAccountList instance, - java.lang.Boolean validationEnabled) { + V1ServiceAccountListFluent fluent, + V1ServiceAccountList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1ServiceAccountListBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceAccountListBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountList instance) { + public V1ServiceAccountListBuilder(V1ServiceAccountList instance) { this(instance, false); } - public V1ServiceAccountListBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountList instance, - java.lang.Boolean validationEnabled) { + public V1ServiceAccountListBuilder(V1ServiceAccountList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1ServiceAccountListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceAccountListFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceAccountListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceAccountList build() { + public V1ServiceAccountList build() { V1ServiceAccountList buildable = new V1ServiceAccountList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 88002ce7ea..4bf946dac3 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 @@ -23,23 +23,21 @@ public interface V1ServiceAccountListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item); + public A addToItems(Integer index, V1ServiceAccount item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item); + public A setToItems(Integer index, V1ServiceAccount item); public A addToItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ServiceAccount buildItem(java.lang.Integer index); + public V1ServiceAccount buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceAccount buildFirstItem(); + public V1ServiceAccount buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ServiceAccount buildLastItem(); + public V1ServiceAccount buildLastItem(); - public io.kubernetes.client.openapi.models.V1ServiceAccount buildMatchingItem( - java.util.function.Predicate - predicate); + public V1ServiceAccount buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ServiceAccountListFluent.ItemsNested addNewItem(); - public V1ServiceAccountListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ServiceAccount item); + public V1ServiceAccountListFluent.ItemsNested addNewItemLike(V1ServiceAccount item); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item); + public V1ServiceAccountListFluent.ItemsNested setNewItemLike( + Integer index, V1ServiceAccount item); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ServiceAccountListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - editFirstItem(); + public V1ServiceAccountListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - editLastItem(); + public V1ServiceAccountListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1ServiceAccountListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ServiceAccountListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ServiceAccountListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - editMetadata(); + public V1ServiceAccountListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - editOrNewMetadata(); + public V1ServiceAccountListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ServiceAccountListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ServiceAccountFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java index f47e9c699f..383c93f6da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluentImpl.java @@ -26,8 +26,7 @@ public class V1ServiceAccountListFluentImpl implements V1ServiceAccountListFluent { public V1ServiceAccountListFluentImpl() {} - public V1ServiceAccountListFluentImpl( - io.kubernetes.client.openapi.models.V1ServiceAccountList instance) { + public V1ServiceAccountListFluentImpl(V1ServiceAccountList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1ServiceAccountListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item) { + public A addToItems(Integer index, V1ServiceAccount item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceAccountBuilder(item); + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item) { + public A setToItems(Integer index, V1ServiceAccount item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceAccountBuilder(item); + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServiceAccount item : items) { - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceAccountBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServiceAccount item : items) { - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceAccountBuilder(item); + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1ServiceAccount item : items) { - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceAccountBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder = each.next(); + V1ServiceAccountBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ServiceAccount buildItem(java.lang.Integer index) { + public V1ServiceAccount buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ServiceAccount buildFirstItem() { + public V1ServiceAccount buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ServiceAccount buildLastItem() { + public V1ServiceAccount buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ServiceAccount buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ServiceAccountBuilder item : items) { + public V1ServiceAccount buildMatchingItem(Predicate predicate) { + for (V1ServiceAccountBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1ServiceAccount buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ServiceAccountBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceAccountBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ServiceAccount item : items) { + this.items = new ArrayList(); + for (V1ServiceAccount item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ServiceAccount item : items) { + for (V1ServiceAccount item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,41 +221,33 @@ public V1ServiceAccountListFluent.ItemsNested addNewItem() { return new V1ServiceAccountListFluentImpl.ItemsNestedImpl(); } - public V1ServiceAccountListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ServiceAccount item) { + public V1ServiceAccountListFluent.ItemsNested addNewItemLike(V1ServiceAccount item) { return new V1ServiceAccountListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item) { - return new io.kubernetes.client.openapi.models.V1ServiceAccountListFluentImpl.ItemsNestedImpl( - index, item); + public V1ServiceAccountListFluent.ItemsNested setNewItemLike( + Integer index, V1ServiceAccount item) { + return new V1ServiceAccountListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ServiceAccountListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - editFirstItem() { + public V1ServiceAccountListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - editLastItem() { + public V1ServiceAccountListFluent.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 io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ServiceAccountListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -286,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.ItemsNeste return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -304,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -330,27 +306,20 @@ public V1ServiceAccountListFluent.MetadataNested withNewMetadata() { return new V1ServiceAccountListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ServiceAccountListFluentImpl - .MetadataNestedImpl(item); + public V1ServiceAccountListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ServiceAccountListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - editMetadata() { + public V1ServiceAccountListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - editOrNewMetadata() { + public V1ServiceAccountListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ServiceAccountListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -370,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -396,19 +365,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ServiceAccountFluentImpl> implements V1ServiceAccountListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServiceAccount item) { + ItemsNestedImpl(Integer index, V1ServiceAccount item) { this.index = index; this.builder = new V1ServiceAccountBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ServiceAccountBuilder(this); + this.builder = new V1ServiceAccountBuilder(this); } - io.kubernetes.client.openapi.models.V1ServiceAccountBuilder builder; - java.lang.Integer index; + V1ServiceAccountBuilder builder; + Integer index; public N and() { return (N) V1ServiceAccountListFluentImpl.this.setToItems(index, builder.build()); @@ -421,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceAccountListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ServiceAccountListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ServiceAccountListFluentImpl.this.withMetadata(builder.build()); 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 d69f14633a..d5a1934184 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 @@ -17,8 +17,7 @@ public class V1ServiceAccountTokenProjectionBuilder extends V1ServiceAccountTokenProjectionFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection, - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionBuilder> { + V1ServiceAccountTokenProjection, V1ServiceAccountTokenProjectionBuilder> { public V1ServiceAccountTokenProjectionBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFlu } public V1ServiceAccountTokenProjectionBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionFluent fluent, - java.lang.Boolean validationEnabled) { + V1ServiceAccountTokenProjectionFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceAccountTokenProjection(), validationEnabled); } public V1ServiceAccountTokenProjectionBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection instance) { + V1ServiceAccountTokenProjectionFluent fluent, V1ServiceAccountTokenProjection instance) { this(fluent, instance, false); } public V1ServiceAccountTokenProjectionBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection instance, - java.lang.Boolean validationEnabled) { + V1ServiceAccountTokenProjectionFluent fluent, + V1ServiceAccountTokenProjection instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAudience(instance.getAudience()); @@ -57,14 +54,12 @@ public V1ServiceAccountTokenProjectionBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceAccountTokenProjectionBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection instance) { + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjection instance) { this(instance, false); } public V1ServiceAccountTokenProjectionBuilder( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection instance, - java.lang.Boolean validationEnabled) { + V1ServiceAccountTokenProjection instance, Boolean validationEnabled) { this.fluent = this; this.withAudience(instance.getAudience()); @@ -75,10 +70,10 @@ public V1ServiceAccountTokenProjectionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceAccountTokenProjectionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection build() { + public V1ServiceAccountTokenProjection build() { V1ServiceAccountTokenProjection buildable = new V1ServiceAccountTokenProjection(); buildable.setAudience(fluent.getAudience()); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); 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 8f33c36f7d..9c66fa50e0 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 @@ -20,19 +20,19 @@ public interface V1ServiceAccountTokenProjectionFluent< extends Fluent { public String getAudience(); - public A withAudience(java.lang.String audience); + public A withAudience(String audience); public Boolean hasAudience(); public Long getExpirationSeconds(); - public A withExpirationSeconds(java.lang.Long expirationSeconds); + public A withExpirationSeconds(Long expirationSeconds); - public java.lang.Boolean hasExpirationSeconds(); + public Boolean hasExpirationSeconds(); - public java.lang.String getPath(); + public String getPath(); - public A withPath(java.lang.String path); + public A withPath(String path); - public java.lang.Boolean hasPath(); + public Boolean hasPath(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java index 9f27df6357..0a8ce2594f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluentImpl.java @@ -21,8 +21,7 @@ public class V1ServiceAccountTokenProjectionFluentImpl< extends BaseFluent implements V1ServiceAccountTokenProjectionFluent { public V1ServiceAccountTokenProjectionFluentImpl() {} - public V1ServiceAccountTokenProjectionFluentImpl( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection instance) { + public V1ServiceAccountTokenProjectionFluentImpl(V1ServiceAccountTokenProjection instance) { this.withAudience(instance.getAudience()); this.withExpirationSeconds(instance.getExpirationSeconds()); @@ -32,13 +31,13 @@ public V1ServiceAccountTokenProjectionFluentImpl( private String audience; private Long expirationSeconds; - private java.lang.String path; + private String path; - public java.lang.String getAudience() { + public String getAudience() { return this.audience; } - public A withAudience(java.lang.String audience) { + public A withAudience(String audience) { this.audience = audience; return (A) this; } @@ -47,29 +46,29 @@ public Boolean hasAudience() { return this.audience != null; } - public java.lang.Long getExpirationSeconds() { + public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(java.lang.Long expirationSeconds) { + public A withExpirationSeconds(Long expirationSeconds) { this.expirationSeconds = expirationSeconds; return (A) this; } - public java.lang.Boolean hasExpirationSeconds() { + public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } - public java.lang.String getPath() { + public String getPath() { return this.path; } - public A withPath(java.lang.String path) { + public A withPath(String path) { this.path = path; return (A) this; } - public java.lang.Boolean hasPath() { + public Boolean hasPath() { return this.path != null; } @@ -89,7 +88,7 @@ public int hashCode() { return java.util.Objects.hash(audience, expirationSeconds, path, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (audience != null) { 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 e153734fd5..b3c9e0a7d6 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 @@ -16,8 +16,7 @@ public class V1ServiceBackendPortBuilder extends V1ServiceBackendPortFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ServiceBackendPort, V1ServiceBackendPortBuilder> { + implements VisitableBuilder { public V1ServiceBackendPortBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1ServiceBackendPortBuilder(Boolean validationEnabled) { this(new V1ServiceBackendPort(), validationEnabled); } - public V1ServiceBackendPortBuilder( - io.kubernetes.client.openapi.models.V1ServiceBackendPortFluent fluent) { + public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent) { this(fluent, false); } public V1ServiceBackendPortBuilder( - io.kubernetes.client.openapi.models.V1ServiceBackendPortFluent fluent, - java.lang.Boolean validationEnabled) { + V1ServiceBackendPortFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceBackendPort(), validationEnabled); } public V1ServiceBackendPortBuilder( - io.kubernetes.client.openapi.models.V1ServiceBackendPortFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceBackendPort instance) { + V1ServiceBackendPortFluent fluent, V1ServiceBackendPort instance) { this(fluent, instance, false); } public V1ServiceBackendPortBuilder( - io.kubernetes.client.openapi.models.V1ServiceBackendPortFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceBackendPort instance, - java.lang.Boolean validationEnabled) { + V1ServiceBackendPortFluent fluent, + V1ServiceBackendPort instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,11 @@ public V1ServiceBackendPortBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceBackendPortBuilder( - io.kubernetes.client.openapi.models.V1ServiceBackendPort instance) { + public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance) { this(instance, false); } - public V1ServiceBackendPortBuilder( - io.kubernetes.client.openapi.models.V1ServiceBackendPort instance, - java.lang.Boolean validationEnabled) { + public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +64,10 @@ public V1ServiceBackendPortBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceBackendPortFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceBackendPortFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceBackendPort build() { + public V1ServiceBackendPort build() { V1ServiceBackendPort buildable = new V1ServiceBackendPort(); buildable.setName(fluent.getName()); buildable.setNumber(fluent.getNumber()); 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 02e74aff94..e58b990c56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java @@ -19,13 +19,13 @@ public interface V1ServiceBackendPortFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); public Integer getNumber(); - public A withNumber(java.lang.Integer number); + public A withNumber(Integer number); - public java.lang.Boolean hasNumber(); + public Boolean hasNumber(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java index 39ef7da29d..80f1367424 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluentImpl.java @@ -20,8 +20,7 @@ public class V1ServiceBackendPortFluentImpl implements V1ServiceBackendPortFluent { public V1ServiceBackendPortFluentImpl() {} - public V1ServiceBackendPortFluentImpl( - io.kubernetes.client.openapi.models.V1ServiceBackendPort instance) { + public V1ServiceBackendPortFluentImpl(V1ServiceBackendPort instance) { this.withName(instance.getName()); this.withNumber(instance.getNumber()); @@ -30,11 +29,11 @@ public V1ServiceBackendPortFluentImpl( private String name; private Integer number; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.Integer getNumber() { + public Integer getNumber() { return this.number; } - public A withNumber(java.lang.Integer number) { + public A withNumber(Integer number) { this.number = number; return (A) this; } - public java.lang.Boolean hasNumber() { + public Boolean hasNumber() { return this.number != null; } @@ -69,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(name, number, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 3e09d5931c..b39f663ac3 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ServiceBuilder extends V1ServiceFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1ServiceBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1ServiceBuilder(Boolean validationEnabled) { this(new V1Service(), validationEnabled); } - public V1ServiceBuilder(io.kubernetes.client.openapi.models.V1ServiceFluent fluent) { + public V1ServiceBuilder(V1ServiceFluent fluent) { this(fluent, false); } - public V1ServiceBuilder( - io.kubernetes.client.openapi.models.V1ServiceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ServiceBuilder(V1ServiceFluent fluent, Boolean validationEnabled) { this(fluent, new V1Service(), validationEnabled); } - public V1ServiceBuilder( - io.kubernetes.client.openapi.models.V1ServiceFluent fluent, - io.kubernetes.client.openapi.models.V1Service instance) { + public V1ServiceBuilder(V1ServiceFluent fluent, V1Service instance) { this(fluent, instance, false); } public V1ServiceBuilder( - io.kubernetes.client.openapi.models.V1ServiceFluent fluent, - io.kubernetes.client.openapi.models.V1Service instance, - java.lang.Boolean validationEnabled) { + V1ServiceFluent fluent, V1Service instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,12 +52,11 @@ public V1ServiceBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceBuilder(io.kubernetes.client.openapi.models.V1Service instance) { + public V1ServiceBuilder(V1Service instance) { this(instance, false); } - public V1ServiceBuilder( - io.kubernetes.client.openapi.models.V1Service instance, java.lang.Boolean validationEnabled) { + public V1ServiceBuilder(V1Service instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +71,10 @@ public V1ServiceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Service build() { + public V1Service build() { V1Service buildable = new V1Service(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 10ad883b7e..a15e309a9c 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 @@ -19,15 +19,15 @@ public interface V1ServiceFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,75 +37,69 @@ public interface V1ServiceFluent> extends Fluent @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ServiceFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested editMetadata(); + public V1ServiceFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested editOrNewMetadata(); + public V1ServiceFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ServiceSpec getSpec(); - public io.kubernetes.client.openapi.models.V1ServiceSpec buildSpec(); + public V1ServiceSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1ServiceSpec spec); + public A withSpec(V1ServiceSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1ServiceFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ServiceSpec item); + public V1ServiceFluent.SpecNested withNewSpecLike(V1ServiceSpec item); - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editSpec(); + public V1ServiceFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editOrNewSpec(); + public V1ServiceFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ServiceSpec item); + public V1ServiceFluent.SpecNested editOrNewSpecLike(V1ServiceSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ServiceStatus getStatus(); - public io.kubernetes.client.openapi.models.V1ServiceStatus buildStatus(); + public V1ServiceStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1ServiceStatus status); + public A withStatus(V1ServiceStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1ServiceFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1ServiceStatus item); + public V1ServiceFluent.StatusNested withNewStatusLike(V1ServiceStatus item); - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested editStatus(); + public V1ServiceFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested editOrNewStatus(); + public V1ServiceFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1ServiceStatus item); + public V1ServiceFluent.StatusNested editOrNewStatusLike(V1ServiceStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -115,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1ServiceSpecFluent> { + extends Nested, V1ServiceSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1ServiceStatusFluent> { + extends Nested, V1ServiceStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java index c5d5e62929..1a9c18cf44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluentImpl.java @@ -21,7 +21,7 @@ public class V1ServiceFluentImpl> extends BaseFluen implements V1ServiceFluent { public V1ServiceFluentImpl() {} - public V1ServiceFluentImpl(io.kubernetes.client.openapi.models.V1Service instance) { + public V1ServiceFluentImpl(V1Service instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1ServiceFluentImpl(io.kubernetes.client.openapi.models.V1Service instanc } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1ServiceSpecBuilder spec; private V1ServiceStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,24 +99,20 @@ public V1ServiceFluent.MetadataNested withNewMetadata() { return new V1ServiceFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ServiceFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1ServiceFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested editMetadata() { + public V1ServiceFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested editOrNewMetadata() { + public V1ServiceFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ServiceFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -122,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ServiceSpec getSpec() { + @Deprecated + public V1ServiceSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1ServiceSpec buildSpec() { + public V1ServiceSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1ServiceSpec spec) { + public A withSpec(V1ServiceSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1ServiceSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -148,24 +150,19 @@ public V1ServiceFluent.SpecNested withNewSpec() { return new V1ServiceFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1ServiceSpec item) { - return new io.kubernetes.client.openapi.models.V1ServiceFluentImpl.SpecNestedImpl(item); + public V1ServiceFluent.SpecNested withNewSpecLike(V1ServiceSpec item) { + return new V1ServiceFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editSpec() { + public V1ServiceFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1ServiceSpecBuilder().build()); + public V1ServiceFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1ServiceSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1ServiceSpec item) { + public V1ServiceFluent.SpecNested editOrNewSpecLike(V1ServiceSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -174,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested editOrN * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ServiceStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1ServiceStatus buildStatus() { + public V1ServiceStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1ServiceStatus status) { + public A withStatus(V1ServiceStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1ServiceStatusBuilder(status); + this.status = new V1ServiceStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -200,24 +200,20 @@ public V1ServiceFluent.StatusNested withNewStatus() { return new V1ServiceFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1ServiceStatus item) { - return new io.kubernetes.client.openapi.models.V1ServiceFluentImpl.StatusNestedImpl(item); + public V1ServiceFluent.StatusNested withNewStatusLike(V1ServiceStatus item) { + return new V1ServiceFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested editStatus() { + public V1ServiceFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested editOrNewStatus() { + public V1ServiceFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1ServiceStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1ServiceStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1ServiceStatus item) { + public V1ServiceFluent.StatusNested editOrNewStatusLike(V1ServiceStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -238,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -266,16 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceFluent.MetadataNested, Nested { + implements V1ServiceFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ServiceFluentImpl.this.withMetadata(builder.build()); @@ -287,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1ServiceSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceFluent.SpecNested, - io.kubernetes.client.fluent.Nested { + implements V1ServiceFluent.SpecNested, Nested { SpecNestedImpl(V1ServiceSpec item) { this.builder = new V1ServiceSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ServiceSpecBuilder(this); + this.builder = new V1ServiceSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1ServiceSpecBuilder builder; + V1ServiceSpecBuilder builder; public N and() { return (N) V1ServiceFluentImpl.this.withSpec(builder.build()); @@ -309,17 +304,16 @@ public N endSpec() { } class StatusNestedImpl extends V1ServiceStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1ServiceStatus item) { + implements V1ServiceFluent.StatusNested, Nested { + StatusNestedImpl(V1ServiceStatus item) { this.builder = new V1ServiceStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ServiceStatusBuilder(this); + this.builder = new V1ServiceStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1ServiceStatusBuilder builder; + V1ServiceStatusBuilder builder; public N and() { return (N) V1ServiceFluentImpl.this.withStatus(builder.build()); 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 9ed32b4f7a..b2ce19a0a0 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ServiceListBuilder extends V1ServiceListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ServiceList, - io.kubernetes.client.openapi.models.V1ServiceListBuilder> { + implements VisitableBuilder { public V1ServiceListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ServiceListBuilder(V1ServiceListFluent fluent) { this(fluent, false); } - public V1ServiceListBuilder( - io.kubernetes.client.openapi.models.V1ServiceListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ServiceListBuilder(V1ServiceListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceList(), validationEnabled); } - public V1ServiceListBuilder( - io.kubernetes.client.openapi.models.V1ServiceListFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceList instance) { + public V1ServiceListBuilder(V1ServiceListFluent fluent, V1ServiceList instance) { this(fluent, instance, false); } public V1ServiceListBuilder( - io.kubernetes.client.openapi.models.V1ServiceListFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceList instance, - java.lang.Boolean validationEnabled) { + V1ServiceListFluent fluent, V1ServiceList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1ServiceListBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceListBuilder(io.kubernetes.client.openapi.models.V1ServiceList instance) { + public V1ServiceListBuilder(V1ServiceList instance) { this(instance, false); } - public V1ServiceListBuilder( - io.kubernetes.client.openapi.models.V1ServiceList instance, - java.lang.Boolean validationEnabled) { + public V1ServiceListBuilder(V1ServiceList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1ServiceListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceListFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceList build() { + public V1ServiceList build() { V1ServiceList buildable = new V1ServiceList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 78b0f5a1e1..fcaf492a4e 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 @@ -22,22 +22,21 @@ public interface V1ServiceListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Service item); + public A addToItems(Integer index, V1Service item); - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Service item); + public A setToItems(Integer index, V1Service item); public A addToItems(io.kubernetes.client.openapi.models.V1Service... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -47,78 +46,69 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1Service buildItem(java.lang.Integer index); + public V1Service buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1Service buildFirstItem(); + public V1Service buildFirstItem(); - public io.kubernetes.client.openapi.models.V1Service buildLastItem(); + public V1Service buildLastItem(); - public io.kubernetes.client.openapi.models.V1Service buildMatchingItem( - java.util.function.Predicate predicate); + public V1Service buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1Service... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ServiceListFluent.ItemsNested addNewItem(); - public V1ServiceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Service item); + public V1ServiceListFluent.ItemsNested addNewItemLike(V1Service item); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Service item); + public V1ServiceListFluent.ItemsNested setNewItemLike(Integer index, V1Service item); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1ServiceListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editFirstItem(); + public V1ServiceListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editLastItem(); + public V1ServiceListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate predicate); + public V1ServiceListFluent.ItemsNested editMatchingItem(Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ServiceListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested editMetadata(); + public V1ServiceListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested - editOrNewMetadata(); + public V1ServiceListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1ServiceFluent> { @@ -128,8 +118,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java index 1595d4c6d7..36daef7560 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluentImpl.java @@ -38,14 +38,14 @@ public V1ServiceListFluentImpl(V1ServiceList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,23 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1Service item) { + public A addToItems(Integer index, V1Service item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceBuilder(item); + V1ServiceBuilder builder = new V1ServiceBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Service item) { + public A setToItems(Integer index, V1Service item) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceBuilder(item); + V1ServiceBuilder builder = new V1ServiceBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -86,24 +84,22 @@ public A setToItems(java.lang.Integer index, io.kubernetes.client.openapi.models public A addToItems(io.kubernetes.client.openapi.models.V1Service... items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Service item : items) { - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Service item : items) { - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceBuilder(item); + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -111,9 +107,8 @@ public A addAllToItems(Collection } public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items) { - for (io.kubernetes.client.openapi.models.V1Service item : items) { - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceBuilder(item); + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -122,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items) return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Service item : items) { - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = - new io.kubernetes.client.openapi.models.V1ServiceBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,13 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ServiceBuilder builder = each.next(); + V1ServiceBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -156,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1Service buildItem(java.lang.Integer index) { + public V1Service buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Service buildFirstItem() { + public V1Service buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Service buildLastItem() { + public V1Service buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Service buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ServiceBuilder item : items) { + public V1Service buildMatchingItem(Predicate predicate) { + for (V1ServiceBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -187,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1Service buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ServiceBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceBuilder item : items) { if (predicate.test(item)) { return true; } @@ -198,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Service item : items) { + this.items = new ArrayList(); + for (V1Service item : items) { this.addToItems(item); } } else { @@ -218,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1Service... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1Service item : items) { + for (V1Service item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -233,37 +221,32 @@ public V1ServiceListFluent.ItemsNested addNewItem() { return new V1ServiceListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1Service item) { + public V1ServiceListFluent.ItemsNested addNewItemLike(V1Service item) { return new V1ServiceListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Service item) { - return new io.kubernetes.client.openapi.models.V1ServiceListFluentImpl.ItemsNestedImpl( - index, item); + public V1ServiceListFluent.ItemsNested setNewItemLike(Integer index, V1Service item) { + return new V1ServiceListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1ServiceListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editFirstItem() { + public V1ServiceListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editLastItem() { + public V1ServiceListFluent.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 io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate) { + public V1ServiceListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -275,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1ServiceListFluent.ItemsNested ed return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -293,25 +276,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -319,25 +305,20 @@ public V1ServiceListFluent.MetadataNested withNewMetadata() { return new V1ServiceListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ServiceListFluentImpl.MetadataNestedImpl(item); + public V1ServiceListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1ServiceListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested editMetadata() { + public V1ServiceListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested - editOrNewMetadata() { + public V1ServiceListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ServiceListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -357,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -382,18 +363,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ServiceFluentImpl> implements V1ServiceListFluent.ItemsNested, Nested { - ItemsNestedImpl(java.lang.Integer index, io.kubernetes.client.openapi.models.V1Service item) { + ItemsNestedImpl(Integer index, V1Service item) { this.index = index; this.builder = new V1ServiceBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ServiceBuilder(this); + this.builder = new V1ServiceBuilder(this); } - io.kubernetes.client.openapi.models.V1ServiceBuilder builder; - java.lang.Integer index; + V1ServiceBuilder builder; + Integer index; public N and() { return (N) V1ServiceListFluentImpl.this.setToItems(index, builder.build()); @@ -405,17 +386,16 @@ public N endItem() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1ServiceListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ServiceListFluentImpl.this.withMetadata(builder.build()); 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 7cc4b28ed5..a7fb55b007 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ServicePortBuilder extends V1ServicePortFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ServicePort, - io.kubernetes.client.openapi.models.V1ServicePortBuilder> { + implements VisitableBuilder { public V1ServicePortBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ServicePortBuilder(V1ServicePortFluent fluent) { this(fluent, false); } - public V1ServicePortBuilder( - io.kubernetes.client.openapi.models.V1ServicePortFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ServicePortBuilder(V1ServicePortFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServicePort(), validationEnabled); } - public V1ServicePortBuilder( - io.kubernetes.client.openapi.models.V1ServicePortFluent fluent, - io.kubernetes.client.openapi.models.V1ServicePort instance) { + public V1ServicePortBuilder(V1ServicePortFluent fluent, V1ServicePort instance) { this(fluent, instance, false); } public V1ServicePortBuilder( - io.kubernetes.client.openapi.models.V1ServicePortFluent fluent, - io.kubernetes.client.openapi.models.V1ServicePort instance, - java.lang.Boolean validationEnabled) { + V1ServicePortFluent fluent, V1ServicePort instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAppProtocol(instance.getAppProtocol()); @@ -62,13 +54,11 @@ public V1ServicePortBuilder( this.validationEnabled = validationEnabled; } - public V1ServicePortBuilder(io.kubernetes.client.openapi.models.V1ServicePort instance) { + public V1ServicePortBuilder(V1ServicePort instance) { this(instance, false); } - public V1ServicePortBuilder( - io.kubernetes.client.openapi.models.V1ServicePort instance, - java.lang.Boolean validationEnabled) { + public V1ServicePortBuilder(V1ServicePort instance, Boolean validationEnabled) { this.fluent = this; this.withAppProtocol(instance.getAppProtocol()); @@ -85,10 +75,10 @@ public V1ServicePortBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServicePortFluent fluent; - java.lang.Boolean validationEnabled; + V1ServicePortFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServicePort build() { + public V1ServicePort build() { V1ServicePort buildable = new V1ServicePort(); buildable.setAppProtocol(fluent.getAppProtocol()); buildable.setName(fluent.getName()); 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 aebe4d4a92..5350df63c2 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 @@ -19,41 +19,41 @@ public interface V1ServicePortFluent> extends Fluent { public String getAppProtocol(); - public A withAppProtocol(java.lang.String appProtocol); + public A withAppProtocol(String appProtocol); public Boolean hasAppProtocol(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public Integer getNodePort(); - public A withNodePort(java.lang.Integer nodePort); + public A withNodePort(Integer nodePort); - public java.lang.Boolean hasNodePort(); + public Boolean hasNodePort(); - public java.lang.Integer getPort(); + public Integer getPort(); - public A withPort(java.lang.Integer port); + public A withPort(Integer port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); - public java.lang.String getProtocol(); + public String getProtocol(); - public A withProtocol(java.lang.String protocol); + public A withProtocol(String protocol); - public java.lang.Boolean hasProtocol(); + public Boolean hasProtocol(); public IntOrString getTargetPort(); - public A withTargetPort(io.kubernetes.client.custom.IntOrString targetPort); + public A withTargetPort(IntOrString targetPort); - public java.lang.Boolean hasTargetPort(); + public Boolean hasTargetPort(); public A withNewTargetPort(int value); - public A withNewTargetPort(java.lang.String value); + public A withNewTargetPort(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java index c581528d52..176e92be96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluentImpl.java @@ -21,7 +21,7 @@ public class V1ServicePortFluentImpl> extends B implements V1ServicePortFluent { public V1ServicePortFluentImpl() {} - public V1ServicePortFluentImpl(io.kubernetes.client.openapi.models.V1ServicePort instance) { + public V1ServicePortFluentImpl(V1ServicePort instance) { this.withAppProtocol(instance.getAppProtocol()); this.withName(instance.getName()); @@ -36,17 +36,17 @@ public V1ServicePortFluentImpl(io.kubernetes.client.openapi.models.V1ServicePort } private String appProtocol; - private java.lang.String name; + private String name; private Integer nodePort; - private java.lang.Integer port; - private java.lang.String protocol; + private Integer port; + private String protocol; private IntOrString targetPort; - public java.lang.String getAppProtocol() { + public String getAppProtocol() { return this.appProtocol; } - public A withAppProtocol(java.lang.String appProtocol) { + public A withAppProtocol(String appProtocol) { this.appProtocol = appProtocol; return (A) this; } @@ -55,68 +55,68 @@ public Boolean hasAppProtocol() { return this.appProtocol != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Integer getNodePort() { + public Integer getNodePort() { return this.nodePort; } - public A withNodePort(java.lang.Integer nodePort) { + public A withNodePort(Integer nodePort) { this.nodePort = nodePort; return (A) this; } - public java.lang.Boolean hasNodePort() { + public Boolean hasNodePort() { return this.nodePort != null; } - public java.lang.Integer getPort() { + public Integer getPort() { return this.port; } - public A withPort(java.lang.Integer port) { + public A withPort(Integer port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } - public java.lang.String getProtocol() { + public String getProtocol() { return this.protocol; } - public A withProtocol(java.lang.String protocol) { + public A withProtocol(String protocol) { this.protocol = protocol; return (A) this; } - public java.lang.Boolean hasProtocol() { + public Boolean hasProtocol() { return this.protocol != null; } - public io.kubernetes.client.custom.IntOrString getTargetPort() { + public IntOrString getTargetPort() { return this.targetPort; } - public A withTargetPort(io.kubernetes.client.custom.IntOrString targetPort) { + public A withTargetPort(IntOrString targetPort) { this.targetPort = targetPort; return (A) this; } - public java.lang.Boolean hasTargetPort() { + public Boolean hasTargetPort() { return this.targetPort != null; } @@ -124,7 +124,7 @@ public A withNewTargetPort(int value) { return (A) withTargetPort(new IntOrString(value)); } - public A withNewTargetPort(java.lang.String value) { + public A withNewTargetPort(String value) { return (A) withTargetPort(new IntOrString(value)); } @@ -148,7 +148,7 @@ public int hashCode() { appProtocol, name, nodePort, port, protocol, targetPort, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (appProtocol != null) { 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 287973b1e0..4420ad7c07 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ServiceSpecBuilder extends V1ServiceSpecFluentImpl - implements VisitableBuilder< - V1ServiceSpec, io.kubernetes.client.openapi.models.V1ServiceSpecBuilder> { + implements VisitableBuilder { public V1ServiceSpecBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent) { this(fluent, false); } - public V1ServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1ServiceSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceSpec(), validationEnabled); } - public V1ServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1ServiceSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceSpec instance) { + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent, V1ServiceSpec instance) { this(fluent, instance, false); } public V1ServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1ServiceSpecFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceSpec instance, - java.lang.Boolean validationEnabled) { + V1ServiceSpecFluent fluent, V1ServiceSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); @@ -87,13 +80,11 @@ public V1ServiceSpecBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceSpecBuilder(io.kubernetes.client.openapi.models.V1ServiceSpec instance) { + public V1ServiceSpecBuilder(V1ServiceSpec instance) { this(instance, false); } - public V1ServiceSpecBuilder( - io.kubernetes.client.openapi.models.V1ServiceSpec instance, - java.lang.Boolean validationEnabled) { + public V1ServiceSpecBuilder(V1ServiceSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); @@ -136,10 +127,10 @@ public V1ServiceSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceSpec build() { + public V1ServiceSpec build() { V1ServiceSpec buildable = new V1ServiceSpec(); buildable.setAllocateLoadBalancerNodePorts(fluent.getAllocateLoadBalancerNodePorts()); buildable.setClusterIP(fluent.getClusterIP()); 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 eb85703a7f..bb007c7590 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 @@ -23,201 +23,191 @@ public interface V1ServiceSpecFluent> extends Fluent { public Boolean getAllocateLoadBalancerNodePorts(); - public A withAllocateLoadBalancerNodePorts(java.lang.Boolean allocateLoadBalancerNodePorts); + public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts); - public java.lang.Boolean hasAllocateLoadBalancerNodePorts(); + public Boolean hasAllocateLoadBalancerNodePorts(); public String getClusterIP(); - public A withClusterIP(java.lang.String clusterIP); + public A withClusterIP(String clusterIP); - public java.lang.Boolean hasClusterIP(); + public Boolean hasClusterIP(); - public A addToClusterIPs(Integer index, java.lang.String item); + public A addToClusterIPs(Integer index, String item); - public A setToClusterIPs(java.lang.Integer index, java.lang.String item); + public A setToClusterIPs(Integer index, String item); public A addToClusterIPs(java.lang.String... items); - public A addAllToClusterIPs(Collection items); + public A addAllToClusterIPs(Collection items); public A removeFromClusterIPs(java.lang.String... items); - public A removeAllFromClusterIPs(java.util.Collection items); + public A removeAllFromClusterIPs(Collection items); - public List getClusterIPs(); + public List getClusterIPs(); - public java.lang.String getClusterIP(java.lang.Integer index); + public String getClusterIP(Integer index); - public java.lang.String getFirstClusterIP(); + public String getFirstClusterIP(); - public java.lang.String getLastClusterIP(); + public String getLastClusterIP(); - public java.lang.String getMatchingClusterIP(Predicate predicate); + public String getMatchingClusterIP(Predicate predicate); - public java.lang.Boolean hasMatchingClusterIP( - java.util.function.Predicate predicate); + public Boolean hasMatchingClusterIP(Predicate predicate); - public A withClusterIPs(java.util.List clusterIPs); + public A withClusterIPs(List clusterIPs); public A withClusterIPs(java.lang.String... clusterIPs); - public java.lang.Boolean hasClusterIPs(); + public Boolean hasClusterIPs(); - public A addToExternalIPs(java.lang.Integer index, java.lang.String item); + public A addToExternalIPs(Integer index, String item); - public A setToExternalIPs(java.lang.Integer index, java.lang.String item); + public A setToExternalIPs(Integer index, String item); public A addToExternalIPs(java.lang.String... items); - public A addAllToExternalIPs(java.util.Collection items); + public A addAllToExternalIPs(Collection items); public A removeFromExternalIPs(java.lang.String... items); - public A removeAllFromExternalIPs(java.util.Collection items); + public A removeAllFromExternalIPs(Collection items); - public java.util.List getExternalIPs(); + public List getExternalIPs(); - public java.lang.String getExternalIP(java.lang.Integer index); + public String getExternalIP(Integer index); - public java.lang.String getFirstExternalIP(); + public String getFirstExternalIP(); - public java.lang.String getLastExternalIP(); + public String getLastExternalIP(); - public java.lang.String getMatchingExternalIP( - java.util.function.Predicate predicate); + public String getMatchingExternalIP(Predicate predicate); - public java.lang.Boolean hasMatchingExternalIP( - java.util.function.Predicate predicate); + public Boolean hasMatchingExternalIP(Predicate predicate); - public A withExternalIPs(java.util.List externalIPs); + public A withExternalIPs(List externalIPs); public A withExternalIPs(java.lang.String... externalIPs); - public java.lang.Boolean hasExternalIPs(); + public Boolean hasExternalIPs(); - public java.lang.String getExternalName(); + public String getExternalName(); - public A withExternalName(java.lang.String externalName); + public A withExternalName(String externalName); - public java.lang.Boolean hasExternalName(); + public Boolean hasExternalName(); - public java.lang.String getExternalTrafficPolicy(); + public String getExternalTrafficPolicy(); - public A withExternalTrafficPolicy(java.lang.String externalTrafficPolicy); + public A withExternalTrafficPolicy(String externalTrafficPolicy); - public java.lang.Boolean hasExternalTrafficPolicy(); + public Boolean hasExternalTrafficPolicy(); - public java.lang.Integer getHealthCheckNodePort(); + public Integer getHealthCheckNodePort(); - public A withHealthCheckNodePort(java.lang.Integer healthCheckNodePort); + public A withHealthCheckNodePort(Integer healthCheckNodePort); - public java.lang.Boolean hasHealthCheckNodePort(); + public Boolean hasHealthCheckNodePort(); - public java.lang.String getInternalTrafficPolicy(); + public String getInternalTrafficPolicy(); - public A withInternalTrafficPolicy(java.lang.String internalTrafficPolicy); + public A withInternalTrafficPolicy(String internalTrafficPolicy); - public java.lang.Boolean hasInternalTrafficPolicy(); + public Boolean hasInternalTrafficPolicy(); - public A addToIpFamilies(java.lang.Integer index, java.lang.String item); + public A addToIpFamilies(Integer index, String item); - public A setToIpFamilies(java.lang.Integer index, java.lang.String item); + public A setToIpFamilies(Integer index, String item); public A addToIpFamilies(java.lang.String... items); - public A addAllToIpFamilies(java.util.Collection items); + public A addAllToIpFamilies(Collection items); public A removeFromIpFamilies(java.lang.String... items); - public A removeAllFromIpFamilies(java.util.Collection items); + public A removeAllFromIpFamilies(Collection items); - public java.util.List getIpFamilies(); + public List getIpFamilies(); - public java.lang.String getIpFamily(java.lang.Integer index); + public String getIpFamily(Integer index); - public java.lang.String getFirstIpFamily(); + public String getFirstIpFamily(); - public java.lang.String getLastIpFamily(); + public String getLastIpFamily(); - public java.lang.String getMatchingIpFamily( - java.util.function.Predicate predicate); + public String getMatchingIpFamily(Predicate predicate); - public java.lang.Boolean hasMatchingIpFamily( - java.util.function.Predicate predicate); + public Boolean hasMatchingIpFamily(Predicate predicate); - public A withIpFamilies(java.util.List ipFamilies); + public A withIpFamilies(List ipFamilies); public A withIpFamilies(java.lang.String... ipFamilies); - public java.lang.Boolean hasIpFamilies(); + public Boolean hasIpFamilies(); - public java.lang.String getIpFamilyPolicy(); + public String getIpFamilyPolicy(); - public A withIpFamilyPolicy(java.lang.String ipFamilyPolicy); + public A withIpFamilyPolicy(String ipFamilyPolicy); - public java.lang.Boolean hasIpFamilyPolicy(); + public Boolean hasIpFamilyPolicy(); - public java.lang.String getLoadBalancerClass(); + public String getLoadBalancerClass(); - public A withLoadBalancerClass(java.lang.String loadBalancerClass); + public A withLoadBalancerClass(String loadBalancerClass); - public java.lang.Boolean hasLoadBalancerClass(); + public Boolean hasLoadBalancerClass(); - public java.lang.String getLoadBalancerIP(); + public String getLoadBalancerIP(); - public A withLoadBalancerIP(java.lang.String loadBalancerIP); + public A withLoadBalancerIP(String loadBalancerIP); - public java.lang.Boolean hasLoadBalancerIP(); + public Boolean hasLoadBalancerIP(); - public A addToLoadBalancerSourceRanges(java.lang.Integer index, java.lang.String item); + public A addToLoadBalancerSourceRanges(Integer index, String item); - public A setToLoadBalancerSourceRanges(java.lang.Integer index, java.lang.String item); + public A setToLoadBalancerSourceRanges(Integer index, String item); public A addToLoadBalancerSourceRanges(java.lang.String... items); - public A addAllToLoadBalancerSourceRanges(java.util.Collection items); + public A addAllToLoadBalancerSourceRanges(Collection items); public A removeFromLoadBalancerSourceRanges(java.lang.String... items); - public A removeAllFromLoadBalancerSourceRanges(java.util.Collection items); + public A removeAllFromLoadBalancerSourceRanges(Collection items); - public java.util.List getLoadBalancerSourceRanges(); + public List getLoadBalancerSourceRanges(); - public java.lang.String getLoadBalancerSourceRange(java.lang.Integer index); + public String getLoadBalancerSourceRange(Integer index); - public java.lang.String getFirstLoadBalancerSourceRange(); + public String getFirstLoadBalancerSourceRange(); - public java.lang.String getLastLoadBalancerSourceRange(); + public String getLastLoadBalancerSourceRange(); - public java.lang.String getMatchingLoadBalancerSourceRange( - java.util.function.Predicate predicate); + public String getMatchingLoadBalancerSourceRange(Predicate predicate); - public java.lang.Boolean hasMatchingLoadBalancerSourceRange( - java.util.function.Predicate predicate); + public Boolean hasMatchingLoadBalancerSourceRange(Predicate predicate); - public A withLoadBalancerSourceRanges(java.util.List loadBalancerSourceRanges); + public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges); public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRanges); - public java.lang.Boolean hasLoadBalancerSourceRanges(); + public Boolean hasLoadBalancerSourceRanges(); - public A addToPorts(java.lang.Integer index, V1ServicePort item); + public A addToPorts(Integer index, V1ServicePort item); - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServicePort item); + public A setToPorts(Integer index, V1ServicePort item); public A addToPorts(io.kubernetes.client.openapi.models.V1ServicePort... items); - public A addAllToPorts( - java.util.Collection items); + public A addAllToPorts(Collection items); public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... items); - public A removeAllFromPorts( - java.util.Collection items); + public A removeAllFromPorts(Collection items); - public A removeMatchingFromPorts(java.util.function.Predicate predicate); + public A removeMatchingFromPorts(Predicate predicate); /** * This method has been deprecated, please use method buildPorts instead. @@ -225,111 +215,98 @@ public A removeAllFromPorts( * @return The buildable object. */ @Deprecated - public java.util.List getPorts(); + public List getPorts(); - public java.util.List buildPorts(); + public List buildPorts(); - public io.kubernetes.client.openapi.models.V1ServicePort buildPort(java.lang.Integer index); + public V1ServicePort buildPort(Integer index); - public io.kubernetes.client.openapi.models.V1ServicePort buildFirstPort(); + public V1ServicePort buildFirstPort(); - public io.kubernetes.client.openapi.models.V1ServicePort buildLastPort(); + public V1ServicePort buildLastPort(); - public io.kubernetes.client.openapi.models.V1ServicePort buildMatchingPort( - java.util.function.Predicate - predicate); + public V1ServicePort buildMatchingPort(Predicate predicate); - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPort(Predicate predicate); - public A withPorts(java.util.List ports); + public A withPorts(List ports); public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports); - public java.lang.Boolean hasPorts(); + public Boolean hasPorts(); public V1ServiceSpecFluent.PortsNested addNewPort(); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.V1ServicePort item); + public V1ServiceSpecFluent.PortsNested addNewPortLike(V1ServicePort item); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServicePort item); + public V1ServiceSpecFluent.PortsNested setNewPortLike(Integer index, V1ServicePort item); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editPort( - java.lang.Integer index); + public V1ServiceSpecFluent.PortsNested editPort(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editFirstPort(); + public V1ServiceSpecFluent.PortsNested editFirstPort(); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editLastPort(); + public V1ServiceSpecFluent.PortsNested editLastPort(); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editMatchingPort( - java.util.function.Predicate - predicate); + public V1ServiceSpecFluent.PortsNested editMatchingPort( + Predicate predicate); - public java.lang.Boolean getPublishNotReadyAddresses(); + public Boolean getPublishNotReadyAddresses(); - public A withPublishNotReadyAddresses(java.lang.Boolean publishNotReadyAddresses); + public A withPublishNotReadyAddresses(Boolean publishNotReadyAddresses); - public java.lang.Boolean hasPublishNotReadyAddresses(); + public Boolean hasPublishNotReadyAddresses(); - public A addToSelector(java.lang.String key, java.lang.String value); + public A addToSelector(String key, String value); - public A addToSelector(Map map); + public A addToSelector(Map map); - public A removeFromSelector(java.lang.String key); + public A removeFromSelector(String key); - public A removeFromSelector(java.util.Map map); + public A removeFromSelector(Map map); - public java.util.Map getSelector(); + public Map getSelector(); - public A withSelector(java.util.Map selector); + public A withSelector(Map selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); - public java.lang.String getSessionAffinity(); + public String getSessionAffinity(); - public A withSessionAffinity(java.lang.String sessionAffinity); + public A withSessionAffinity(String sessionAffinity); - public java.lang.Boolean hasSessionAffinity(); + public Boolean hasSessionAffinity(); /** * This method has been deprecated, please use method buildSessionAffinityConfig instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SessionAffinityConfig getSessionAffinityConfig(); - public io.kubernetes.client.openapi.models.V1SessionAffinityConfig buildSessionAffinityConfig(); + public V1SessionAffinityConfig buildSessionAffinityConfig(); - public A withSessionAffinityConfig( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig sessionAffinityConfig); + public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig); - public java.lang.Boolean hasSessionAffinityConfig(); + public Boolean hasSessionAffinityConfig(); public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfig(); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - withNewSessionAffinityConfigLike( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig item); + public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfigLike( + V1SessionAffinityConfig item); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - editSessionAffinityConfig(); + public V1ServiceSpecFluent.SessionAffinityConfigNested editSessionAffinityConfig(); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - editOrNewSessionAffinityConfig(); + public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfig(); - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - editOrNewSessionAffinityConfigLike( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig item); + public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfigLike( + V1SessionAffinityConfig item); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public A withAllocateLoadBalancerNodePorts(); @@ -343,7 +320,7 @@ public interface PortsNested } public interface SessionAffinityConfigNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SessionAffinityConfigFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java index 4efad296ce..39d027d28e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluentImpl.java @@ -28,7 +28,7 @@ public class V1ServiceSpecFluentImpl> extends B implements V1ServiceSpecFluent { public V1ServiceSpecFluentImpl() {} - public V1ServiceSpecFluentImpl(io.kubernetes.client.openapi.models.V1ServiceSpec instance) { + public V1ServiceSpecFluentImpl(V1ServiceSpec instance) { this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); this.withClusterIP(instance.getClusterIP()); @@ -70,61 +70,61 @@ public V1ServiceSpecFluentImpl(io.kubernetes.client.openapi.models.V1ServiceSpec private Boolean allocateLoadBalancerNodePorts; private String clusterIP; - private List clusterIPs; - private java.util.List externalIPs; - private java.lang.String externalName; - private java.lang.String externalTrafficPolicy; + private List clusterIPs; + private List externalIPs; + private String externalName; + private String externalTrafficPolicy; private Integer healthCheckNodePort; - private java.lang.String internalTrafficPolicy; - private java.util.List ipFamilies; - private java.lang.String ipFamilyPolicy; - private java.lang.String loadBalancerClass; - private java.lang.String loadBalancerIP; - private java.util.List loadBalancerSourceRanges; + private String internalTrafficPolicy; + private List ipFamilies; + private String ipFamilyPolicy; + private String loadBalancerClass; + private String loadBalancerIP; + private List loadBalancerSourceRanges; private ArrayList ports; - private java.lang.Boolean publishNotReadyAddresses; - private Map selector; - private java.lang.String sessionAffinity; + private Boolean publishNotReadyAddresses; + private Map selector; + private String sessionAffinity; private V1SessionAffinityConfigBuilder sessionAffinityConfig; - private java.lang.String type; + private String type; - public java.lang.Boolean getAllocateLoadBalancerNodePorts() { + public Boolean getAllocateLoadBalancerNodePorts() { return this.allocateLoadBalancerNodePorts; } - public A withAllocateLoadBalancerNodePorts(java.lang.Boolean allocateLoadBalancerNodePorts) { + public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; return (A) this; } - public java.lang.Boolean hasAllocateLoadBalancerNodePorts() { + public Boolean hasAllocateLoadBalancerNodePorts() { return this.allocateLoadBalancerNodePorts != null; } - public java.lang.String getClusterIP() { + public String getClusterIP() { return this.clusterIP; } - public A withClusterIP(java.lang.String clusterIP) { + public A withClusterIP(String clusterIP) { this.clusterIP = clusterIP; return (A) this; } - public java.lang.Boolean hasClusterIP() { + public Boolean hasClusterIP() { return this.clusterIP != null; } - public A addToClusterIPs(java.lang.Integer index, java.lang.String item) { + public A addToClusterIPs(Integer index, String item) { if (this.clusterIPs == null) { - this.clusterIPs = new java.util.ArrayList(); + this.clusterIPs = new ArrayList(); } this.clusterIPs.add(index, item); return (A) this; } - public A setToClusterIPs(java.lang.Integer index, java.lang.String item) { + public A setToClusterIPs(Integer index, String item) { if (this.clusterIPs == null) { - this.clusterIPs = new java.util.ArrayList(); + this.clusterIPs = new ArrayList(); } this.clusterIPs.set(index, item); return (A) this; @@ -132,26 +132,26 @@ public A setToClusterIPs(java.lang.Integer index, java.lang.String item) { public A addToClusterIPs(java.lang.String... items) { if (this.clusterIPs == null) { - this.clusterIPs = new java.util.ArrayList(); + this.clusterIPs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.clusterIPs.add(item); } return (A) this; } - public A addAllToClusterIPs(Collection items) { + public A addAllToClusterIPs(Collection items) { if (this.clusterIPs == null) { - this.clusterIPs = new java.util.ArrayList(); + this.clusterIPs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.clusterIPs.add(item); } return (A) this; } public A removeFromClusterIPs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.clusterIPs != null) { this.clusterIPs.remove(item); } @@ -159,8 +159,8 @@ public A removeFromClusterIPs(java.lang.String... items) { return (A) this; } - public A removeAllFromClusterIPs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromClusterIPs(Collection items) { + for (String item : items) { if (this.clusterIPs != null) { this.clusterIPs.remove(item); } @@ -168,24 +168,24 @@ public A removeAllFromClusterIPs(java.util.Collection items) { return (A) this; } - public java.util.List getClusterIPs() { + public List getClusterIPs() { return this.clusterIPs; } - public java.lang.String getClusterIP(java.lang.Integer index) { + public String getClusterIP(Integer index) { return this.clusterIPs.get(index); } - public java.lang.String getFirstClusterIP() { + public String getFirstClusterIP() { return this.clusterIPs.get(0); } - public java.lang.String getLastClusterIP() { + public String getLastClusterIP() { return this.clusterIPs.get(clusterIPs.size() - 1); } - public java.lang.String getMatchingClusterIP(Predicate predicate) { - for (java.lang.String item : clusterIPs) { + public String getMatchingClusterIP(Predicate predicate) { + for (String item : clusterIPs) { if (predicate.test(item)) { return item; } @@ -193,9 +193,8 @@ public java.lang.String getMatchingClusterIP(Predicate predica return null; } - public java.lang.Boolean hasMatchingClusterIP( - java.util.function.Predicate predicate) { - for (java.lang.String item : clusterIPs) { + public Boolean hasMatchingClusterIP(Predicate predicate) { + for (String item : clusterIPs) { if (predicate.test(item)) { return true; } @@ -203,10 +202,10 @@ public java.lang.Boolean hasMatchingClusterIP( return false; } - public A withClusterIPs(java.util.List clusterIPs) { + public A withClusterIPs(List clusterIPs) { if (clusterIPs != null) { - this.clusterIPs = new java.util.ArrayList(); - for (java.lang.String item : clusterIPs) { + this.clusterIPs = new ArrayList(); + for (String item : clusterIPs) { this.addToClusterIPs(item); } } else { @@ -220,28 +219,28 @@ public A withClusterIPs(java.lang.String... clusterIPs) { this.clusterIPs.clear(); } if (clusterIPs != null) { - for (java.lang.String item : clusterIPs) { + for (String item : clusterIPs) { this.addToClusterIPs(item); } } return (A) this; } - public java.lang.Boolean hasClusterIPs() { + public Boolean hasClusterIPs() { return clusterIPs != null && !clusterIPs.isEmpty(); } - public A addToExternalIPs(java.lang.Integer index, java.lang.String item) { + public A addToExternalIPs(Integer index, String item) { if (this.externalIPs == null) { - this.externalIPs = new java.util.ArrayList(); + this.externalIPs = new ArrayList(); } this.externalIPs.add(index, item); return (A) this; } - public A setToExternalIPs(java.lang.Integer index, java.lang.String item) { + public A setToExternalIPs(Integer index, String item) { if (this.externalIPs == null) { - this.externalIPs = new java.util.ArrayList(); + this.externalIPs = new ArrayList(); } this.externalIPs.set(index, item); return (A) this; @@ -249,26 +248,26 @@ public A setToExternalIPs(java.lang.Integer index, java.lang.String item) { public A addToExternalIPs(java.lang.String... items) { if (this.externalIPs == null) { - this.externalIPs = new java.util.ArrayList(); + this.externalIPs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.externalIPs.add(item); } return (A) this; } - public A addAllToExternalIPs(java.util.Collection items) { + public A addAllToExternalIPs(Collection items) { if (this.externalIPs == null) { - this.externalIPs = new java.util.ArrayList(); + this.externalIPs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.externalIPs.add(item); } return (A) this; } public A removeFromExternalIPs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.externalIPs != null) { this.externalIPs.remove(item); } @@ -276,8 +275,8 @@ public A removeFromExternalIPs(java.lang.String... items) { return (A) this; } - public A removeAllFromExternalIPs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromExternalIPs(Collection items) { + for (String item : items) { if (this.externalIPs != null) { this.externalIPs.remove(item); } @@ -285,25 +284,24 @@ public A removeAllFromExternalIPs(java.util.Collection items) return (A) this; } - public java.util.List getExternalIPs() { + public List getExternalIPs() { return this.externalIPs; } - public java.lang.String getExternalIP(java.lang.Integer index) { + public String getExternalIP(Integer index) { return this.externalIPs.get(index); } - public java.lang.String getFirstExternalIP() { + public String getFirstExternalIP() { return this.externalIPs.get(0); } - public java.lang.String getLastExternalIP() { + public String getLastExternalIP() { return this.externalIPs.get(externalIPs.size() - 1); } - public java.lang.String getMatchingExternalIP( - java.util.function.Predicate predicate) { - for (java.lang.String item : externalIPs) { + public String getMatchingExternalIP(Predicate predicate) { + for (String item : externalIPs) { if (predicate.test(item)) { return item; } @@ -311,9 +309,8 @@ public java.lang.String getMatchingExternalIP( return null; } - public java.lang.Boolean hasMatchingExternalIP( - java.util.function.Predicate predicate) { - for (java.lang.String item : externalIPs) { + public Boolean hasMatchingExternalIP(Predicate predicate) { + for (String item : externalIPs) { if (predicate.test(item)) { return true; } @@ -321,10 +318,10 @@ public java.lang.Boolean hasMatchingExternalIP( return false; } - public A withExternalIPs(java.util.List externalIPs) { + public A withExternalIPs(List externalIPs) { if (externalIPs != null) { - this.externalIPs = new java.util.ArrayList(); - for (java.lang.String item : externalIPs) { + this.externalIPs = new ArrayList(); + for (String item : externalIPs) { this.addToExternalIPs(item); } } else { @@ -338,80 +335,80 @@ public A withExternalIPs(java.lang.String... externalIPs) { this.externalIPs.clear(); } if (externalIPs != null) { - for (java.lang.String item : externalIPs) { + for (String item : externalIPs) { this.addToExternalIPs(item); } } return (A) this; } - public java.lang.Boolean hasExternalIPs() { + public Boolean hasExternalIPs() { return externalIPs != null && !externalIPs.isEmpty(); } - public java.lang.String getExternalName() { + public String getExternalName() { return this.externalName; } - public A withExternalName(java.lang.String externalName) { + public A withExternalName(String externalName) { this.externalName = externalName; return (A) this; } - public java.lang.Boolean hasExternalName() { + public Boolean hasExternalName() { return this.externalName != null; } - public java.lang.String getExternalTrafficPolicy() { + public String getExternalTrafficPolicy() { return this.externalTrafficPolicy; } - public A withExternalTrafficPolicy(java.lang.String externalTrafficPolicy) { + public A withExternalTrafficPolicy(String externalTrafficPolicy) { this.externalTrafficPolicy = externalTrafficPolicy; return (A) this; } - public java.lang.Boolean hasExternalTrafficPolicy() { + public Boolean hasExternalTrafficPolicy() { return this.externalTrafficPolicy != null; } - public java.lang.Integer getHealthCheckNodePort() { + public Integer getHealthCheckNodePort() { return this.healthCheckNodePort; } - public A withHealthCheckNodePort(java.lang.Integer healthCheckNodePort) { + public A withHealthCheckNodePort(Integer healthCheckNodePort) { this.healthCheckNodePort = healthCheckNodePort; return (A) this; } - public java.lang.Boolean hasHealthCheckNodePort() { + public Boolean hasHealthCheckNodePort() { return this.healthCheckNodePort != null; } - public java.lang.String getInternalTrafficPolicy() { + public String getInternalTrafficPolicy() { return this.internalTrafficPolicy; } - public A withInternalTrafficPolicy(java.lang.String internalTrafficPolicy) { + public A withInternalTrafficPolicy(String internalTrafficPolicy) { this.internalTrafficPolicy = internalTrafficPolicy; return (A) this; } - public java.lang.Boolean hasInternalTrafficPolicy() { + public Boolean hasInternalTrafficPolicy() { return this.internalTrafficPolicy != null; } - public A addToIpFamilies(java.lang.Integer index, java.lang.String item) { + public A addToIpFamilies(Integer index, String item) { if (this.ipFamilies == null) { - this.ipFamilies = new java.util.ArrayList(); + this.ipFamilies = new ArrayList(); } this.ipFamilies.add(index, item); return (A) this; } - public A setToIpFamilies(java.lang.Integer index, java.lang.String item) { + public A setToIpFamilies(Integer index, String item) { if (this.ipFamilies == null) { - this.ipFamilies = new java.util.ArrayList(); + this.ipFamilies = new ArrayList(); } this.ipFamilies.set(index, item); return (A) this; @@ -419,26 +416,26 @@ public A setToIpFamilies(java.lang.Integer index, java.lang.String item) { public A addToIpFamilies(java.lang.String... items) { if (this.ipFamilies == null) { - this.ipFamilies = new java.util.ArrayList(); + this.ipFamilies = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.ipFamilies.add(item); } return (A) this; } - public A addAllToIpFamilies(java.util.Collection items) { + public A addAllToIpFamilies(Collection items) { if (this.ipFamilies == null) { - this.ipFamilies = new java.util.ArrayList(); + this.ipFamilies = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.ipFamilies.add(item); } return (A) this; } public A removeFromIpFamilies(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.ipFamilies != null) { this.ipFamilies.remove(item); } @@ -446,8 +443,8 @@ public A removeFromIpFamilies(java.lang.String... items) { return (A) this; } - public A removeAllFromIpFamilies(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromIpFamilies(Collection items) { + for (String item : items) { if (this.ipFamilies != null) { this.ipFamilies.remove(item); } @@ -455,25 +452,24 @@ public A removeAllFromIpFamilies(java.util.Collection items) { return (A) this; } - public java.util.List getIpFamilies() { + public List getIpFamilies() { return this.ipFamilies; } - public java.lang.String getIpFamily(java.lang.Integer index) { + public String getIpFamily(Integer index) { return this.ipFamilies.get(index); } - public java.lang.String getFirstIpFamily() { + public String getFirstIpFamily() { return this.ipFamilies.get(0); } - public java.lang.String getLastIpFamily() { + public String getLastIpFamily() { return this.ipFamilies.get(ipFamilies.size() - 1); } - public java.lang.String getMatchingIpFamily( - java.util.function.Predicate predicate) { - for (java.lang.String item : ipFamilies) { + public String getMatchingIpFamily(Predicate predicate) { + for (String item : ipFamilies) { if (predicate.test(item)) { return item; } @@ -481,9 +477,8 @@ public java.lang.String getMatchingIpFamily( return null; } - public java.lang.Boolean hasMatchingIpFamily( - java.util.function.Predicate predicate) { - for (java.lang.String item : ipFamilies) { + public Boolean hasMatchingIpFamily(Predicate predicate) { + for (String item : ipFamilies) { if (predicate.test(item)) { return true; } @@ -491,10 +486,10 @@ public java.lang.Boolean hasMatchingIpFamily( return false; } - public A withIpFamilies(java.util.List ipFamilies) { + public A withIpFamilies(List ipFamilies) { if (ipFamilies != null) { - this.ipFamilies = new java.util.ArrayList(); - for (java.lang.String item : ipFamilies) { + this.ipFamilies = new ArrayList(); + for (String item : ipFamilies) { this.addToIpFamilies(item); } } else { @@ -508,67 +503,67 @@ public A withIpFamilies(java.lang.String... ipFamilies) { this.ipFamilies.clear(); } if (ipFamilies != null) { - for (java.lang.String item : ipFamilies) { + for (String item : ipFamilies) { this.addToIpFamilies(item); } } return (A) this; } - public java.lang.Boolean hasIpFamilies() { + public Boolean hasIpFamilies() { return ipFamilies != null && !ipFamilies.isEmpty(); } - public java.lang.String getIpFamilyPolicy() { + public String getIpFamilyPolicy() { return this.ipFamilyPolicy; } - public A withIpFamilyPolicy(java.lang.String ipFamilyPolicy) { + public A withIpFamilyPolicy(String ipFamilyPolicy) { this.ipFamilyPolicy = ipFamilyPolicy; return (A) this; } - public java.lang.Boolean hasIpFamilyPolicy() { + public Boolean hasIpFamilyPolicy() { return this.ipFamilyPolicy != null; } - public java.lang.String getLoadBalancerClass() { + public String getLoadBalancerClass() { return this.loadBalancerClass; } - public A withLoadBalancerClass(java.lang.String loadBalancerClass) { + public A withLoadBalancerClass(String loadBalancerClass) { this.loadBalancerClass = loadBalancerClass; return (A) this; } - public java.lang.Boolean hasLoadBalancerClass() { + public Boolean hasLoadBalancerClass() { return this.loadBalancerClass != null; } - public java.lang.String getLoadBalancerIP() { + public String getLoadBalancerIP() { return this.loadBalancerIP; } - public A withLoadBalancerIP(java.lang.String loadBalancerIP) { + public A withLoadBalancerIP(String loadBalancerIP) { this.loadBalancerIP = loadBalancerIP; return (A) this; } - public java.lang.Boolean hasLoadBalancerIP() { + public Boolean hasLoadBalancerIP() { return this.loadBalancerIP != null; } - public A addToLoadBalancerSourceRanges(java.lang.Integer index, java.lang.String item) { + public A addToLoadBalancerSourceRanges(Integer index, String item) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new java.util.ArrayList(); + this.loadBalancerSourceRanges = new ArrayList(); } this.loadBalancerSourceRanges.add(index, item); return (A) this; } - public A setToLoadBalancerSourceRanges(java.lang.Integer index, java.lang.String item) { + public A setToLoadBalancerSourceRanges(Integer index, String item) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new java.util.ArrayList(); + this.loadBalancerSourceRanges = new ArrayList(); } this.loadBalancerSourceRanges.set(index, item); return (A) this; @@ -576,26 +571,26 @@ public A setToLoadBalancerSourceRanges(java.lang.Integer index, java.lang.String public A addToLoadBalancerSourceRanges(java.lang.String... items) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new java.util.ArrayList(); + this.loadBalancerSourceRanges = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.loadBalancerSourceRanges.add(item); } return (A) this; } - public A addAllToLoadBalancerSourceRanges(java.util.Collection items) { + public A addAllToLoadBalancerSourceRanges(Collection items) { if (this.loadBalancerSourceRanges == null) { - this.loadBalancerSourceRanges = new java.util.ArrayList(); + this.loadBalancerSourceRanges = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.loadBalancerSourceRanges.add(item); } return (A) this; } public A removeFromLoadBalancerSourceRanges(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.loadBalancerSourceRanges != null) { this.loadBalancerSourceRanges.remove(item); } @@ -603,8 +598,8 @@ public A removeFromLoadBalancerSourceRanges(java.lang.String... items) { return (A) this; } - public A removeAllFromLoadBalancerSourceRanges(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromLoadBalancerSourceRanges(Collection items) { + for (String item : items) { if (this.loadBalancerSourceRanges != null) { this.loadBalancerSourceRanges.remove(item); } @@ -612,25 +607,24 @@ public A removeAllFromLoadBalancerSourceRanges(java.util.Collection getLoadBalancerSourceRanges() { + public List getLoadBalancerSourceRanges() { return this.loadBalancerSourceRanges; } - public java.lang.String getLoadBalancerSourceRange(java.lang.Integer index) { + public String getLoadBalancerSourceRange(Integer index) { return this.loadBalancerSourceRanges.get(index); } - public java.lang.String getFirstLoadBalancerSourceRange() { + public String getFirstLoadBalancerSourceRange() { return this.loadBalancerSourceRanges.get(0); } - public java.lang.String getLastLoadBalancerSourceRange() { + public String getLastLoadBalancerSourceRange() { return this.loadBalancerSourceRanges.get(loadBalancerSourceRanges.size() - 1); } - public java.lang.String getMatchingLoadBalancerSourceRange( - java.util.function.Predicate predicate) { - for (java.lang.String item : loadBalancerSourceRanges) { + public String getMatchingLoadBalancerSourceRange(Predicate predicate) { + for (String item : loadBalancerSourceRanges) { if (predicate.test(item)) { return item; } @@ -638,9 +632,8 @@ public java.lang.String getMatchingLoadBalancerSourceRange( return null; } - public java.lang.Boolean hasMatchingLoadBalancerSourceRange( - java.util.function.Predicate predicate) { - for (java.lang.String item : loadBalancerSourceRanges) { + public Boolean hasMatchingLoadBalancerSourceRange(Predicate predicate) { + for (String item : loadBalancerSourceRanges) { if (predicate.test(item)) { return true; } @@ -648,10 +641,10 @@ public java.lang.Boolean hasMatchingLoadBalancerSourceRange( return false; } - public A withLoadBalancerSourceRanges(java.util.List loadBalancerSourceRanges) { + public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { if (loadBalancerSourceRanges != null) { - this.loadBalancerSourceRanges = new java.util.ArrayList(); - for (java.lang.String item : loadBalancerSourceRanges) { + this.loadBalancerSourceRanges = new ArrayList(); + for (String item : loadBalancerSourceRanges) { this.addToLoadBalancerSourceRanges(item); } } else { @@ -665,37 +658,32 @@ public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRang this.loadBalancerSourceRanges.clear(); } if (loadBalancerSourceRanges != null) { - for (java.lang.String item : loadBalancerSourceRanges) { + for (String item : loadBalancerSourceRanges) { this.addToLoadBalancerSourceRanges(item); } } return (A) this; } - public java.lang.Boolean hasLoadBalancerSourceRanges() { + public Boolean hasLoadBalancerSourceRanges() { return loadBalancerSourceRanges != null && !loadBalancerSourceRanges.isEmpty(); } - public A addToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServicePort item) { + public A addToPorts(Integer index, V1ServicePort item) { if (this.ports == null) { - this.ports = new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = - new io.kubernetes.client.openapi.models.V1ServicePortBuilder(item); + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); this.ports.add(index >= 0 ? index : ports.size(), builder); return (A) this; } - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServicePort item) { + public A setToPorts(Integer index, V1ServicePort item) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = - new io.kubernetes.client.openapi.models.V1ServicePortBuilder(item); + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); if (index < 0 || index >= _visitables.get("ports").size()) { _visitables.get("ports").add(builder); } else { @@ -711,27 +699,22 @@ public A setToPorts( public A addToPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServicePort item : items) { - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = - new io.kubernetes.client.openapi.models.V1ServicePortBuilder(item); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; } - public A addAllToPorts( - java.util.Collection items) { + public A addAllToPorts(Collection items) { if (this.ports == null) { - this.ports = - new java.util.ArrayList(); + this.ports = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ServicePort item : items) { - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = - new io.kubernetes.client.openapi.models.V1ServicePortBuilder(item); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); _visitables.get("ports").add(builder); this.ports.add(builder); } @@ -739,9 +722,8 @@ public A addAllToPorts( } public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - for (io.kubernetes.client.openapi.models.V1ServicePort item : items) { - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = - new io.kubernetes.client.openapi.models.V1ServicePortBuilder(item); + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -750,11 +732,9 @@ public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... it return (A) this; } - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ServicePort item : items) { - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = - new io.kubernetes.client.openapi.models.V1ServicePortBuilder(item); + public A removeAllFromPorts(Collection items) { + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); _visitables.get("ports").remove(builder); if (this.ports != null) { this.ports.remove(builder); @@ -763,15 +743,12 @@ public A removeAllFromPorts( return (A) this; } - public A removeMatchingFromPorts( - java.util.function.Predicate - predicate) { + public A removeMatchingFromPorts(Predicate predicate) { if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); + final Iterator each = ports.iterator(); final List visitables = _visitables.get("ports"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder = each.next(); + V1ServicePortBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -786,30 +763,28 @@ public A removeMatchingFromPorts( * @return The buildable object. */ @Deprecated - public java.util.List getPorts() { + public List getPorts() { return ports != null ? build(ports) : null; } - public java.util.List buildPorts() { + public List buildPorts() { return ports != null ? build(ports) : null; } - public io.kubernetes.client.openapi.models.V1ServicePort buildPort(java.lang.Integer index) { + public V1ServicePort buildPort(Integer index) { return this.ports.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ServicePort buildFirstPort() { + public V1ServicePort buildFirstPort() { return this.ports.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ServicePort buildLastPort() { + public V1ServicePort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ServicePort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ServicePortBuilder item : ports) { + public V1ServicePort buildMatchingPort(Predicate predicate) { + for (V1ServicePortBuilder item : ports) { if (predicate.test(item)) { return item.build(); } @@ -817,10 +792,8 @@ public io.kubernetes.client.openapi.models.V1ServicePort buildMatchingPort( return null; } - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ServicePortBuilder item : ports) { + public Boolean hasMatchingPort(Predicate predicate) { + for (V1ServicePortBuilder item : ports) { if (predicate.test(item)) { return true; } @@ -828,13 +801,13 @@ public java.lang.Boolean hasMatchingPort( return false; } - public A withPorts(java.util.List ports) { + public A withPorts(List ports) { if (this.ports != null) { _visitables.get("ports").removeAll(this.ports); } if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ServicePort item : ports) { + this.ports = new ArrayList(); + for (V1ServicePort item : ports) { this.addToPorts(item); } } else { @@ -848,14 +821,14 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports) { this.ports.clear(); } if (ports != null) { - for (io.kubernetes.client.openapi.models.V1ServicePort item : ports) { + for (V1ServicePort item : ports) { this.addToPorts(item); } } return (A) this; } - public java.lang.Boolean hasPorts() { + public Boolean hasPorts() { return ports != null && !ports.isEmpty(); } @@ -863,37 +836,32 @@ public V1ServiceSpecFluent.PortsNested addNewPort() { return new V1ServiceSpecFluentImpl.PortsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested addNewPortLike( - io.kubernetes.client.openapi.models.V1ServicePort item) { + public V1ServiceSpecFluent.PortsNested addNewPortLike(V1ServicePort item) { return new V1ServiceSpecFluentImpl.PortsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServicePort item) { - return new io.kubernetes.client.openapi.models.V1ServiceSpecFluentImpl.PortsNestedImpl( - index, item); + public V1ServiceSpecFluent.PortsNested setNewPortLike(Integer index, V1ServicePort item) { + return new V1ServiceSpecFluentImpl.PortsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editPort( - java.lang.Integer index) { + public V1ServiceSpecFluent.PortsNested editPort(Integer index) { if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); return setNewPortLike(index, buildPort(index)); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editFirstPort() { + public V1ServiceSpecFluent.PortsNested editFirstPort() { if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); return setNewPortLike(0, buildPort(0)); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editLastPort() { + public V1ServiceSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested editMatchingPort( - java.util.function.Predicate - predicate) { + public V1ServiceSpecFluent.PortsNested editMatchingPort( + Predicate predicate) { int index = -1; for (int i = 0; i < ports.size(); i++) { if (predicate.test(ports.get(i))) { @@ -905,20 +873,20 @@ public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested ed return setNewPortLike(index, buildPort(index)); } - public java.lang.Boolean getPublishNotReadyAddresses() { + public Boolean getPublishNotReadyAddresses() { return this.publishNotReadyAddresses; } - public A withPublishNotReadyAddresses(java.lang.Boolean publishNotReadyAddresses) { + public A withPublishNotReadyAddresses(Boolean publishNotReadyAddresses) { this.publishNotReadyAddresses = publishNotReadyAddresses; return (A) this; } - public java.lang.Boolean hasPublishNotReadyAddresses() { + public Boolean hasPublishNotReadyAddresses() { return this.publishNotReadyAddresses != null; } - public A addToSelector(java.lang.String key, java.lang.String value) { + public A addToSelector(String key, String value) { if (this.selector == null && key != null && value != null) { this.selector = new LinkedHashMap(); } @@ -928,9 +896,9 @@ public A addToSelector(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToSelector(java.util.Map map) { + public A addToSelector(Map map) { if (this.selector == null && map != null) { - this.selector = new java.util.LinkedHashMap(); + this.selector = new LinkedHashMap(); } if (map != null) { this.selector.putAll(map); @@ -938,7 +906,7 @@ public A addToSelector(java.util.Map map) { return (A) this; } - public A removeFromSelector(java.lang.String key) { + public A removeFromSelector(String key) { if (this.selector == null) { return (A) this; } @@ -948,7 +916,7 @@ public A removeFromSelector(java.lang.String key) { return (A) this; } - public A removeFromSelector(java.util.Map map) { + public A removeFromSelector(Map map) { if (this.selector == null) { return (A) this; } @@ -962,33 +930,33 @@ public A removeFromSelector(java.util.Map ma return (A) this; } - public java.util.Map getSelector() { + public Map getSelector() { return this.selector; } - public A withSelector(java.util.Map selector) { + public A withSelector(Map selector) { if (selector == null) { this.selector = null; } else { - this.selector = new java.util.LinkedHashMap(selector); + this.selector = new LinkedHashMap(selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } - public java.lang.String getSessionAffinity() { + public String getSessionAffinity() { return this.sessionAffinity; } - public A withSessionAffinity(java.lang.String sessionAffinity) { + public A withSessionAffinity(String sessionAffinity) { this.sessionAffinity = sessionAffinity; return (A) this; } - public java.lang.Boolean hasSessionAffinity() { + public Boolean hasSessionAffinity() { return this.sessionAffinity != null; } @@ -997,26 +965,28 @@ public java.lang.Boolean hasSessionAffinity() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SessionAffinityConfig getSessionAffinityConfig() { + @Deprecated + public V1SessionAffinityConfig getSessionAffinityConfig() { return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; } - public io.kubernetes.client.openapi.models.V1SessionAffinityConfig buildSessionAffinityConfig() { + public V1SessionAffinityConfig buildSessionAffinityConfig() { return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; } - public A withSessionAffinityConfig( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig sessionAffinityConfig) { + public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { _visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); if (sessionAffinityConfig != null) { this.sessionAffinityConfig = new V1SessionAffinityConfigBuilder(sessionAffinityConfig); _visitables.get("sessionAffinityConfig").add(this.sessionAffinityConfig); + } else { + this.sessionAffinityConfig = null; + _visitables.get("sessionAffinityConfig").remove(this.sessionAffinityConfig); } return (A) this; } - public java.lang.Boolean hasSessionAffinityConfig() { + public Boolean hasSessionAffinityConfig() { return this.sessionAffinityConfig != null; } @@ -1024,43 +994,38 @@ public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinity return new V1ServiceSpecFluentImpl.SessionAffinityConfigNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - withNewSessionAffinityConfigLike( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig item) { - return new io.kubernetes.client.openapi.models.V1ServiceSpecFluentImpl - .SessionAffinityConfigNestedImpl(item); + public V1ServiceSpecFluent.SessionAffinityConfigNested withNewSessionAffinityConfigLike( + V1SessionAffinityConfig item) { + return new V1ServiceSpecFluentImpl.SessionAffinityConfigNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - editSessionAffinityConfig() { + public V1ServiceSpecFluent.SessionAffinityConfigNested editSessionAffinityConfig() { return withNewSessionAffinityConfigLike(getSessionAffinityConfig()); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - editOrNewSessionAffinityConfig() { + public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfig() { return withNewSessionAffinityConfigLike( getSessionAffinityConfig() != null ? getSessionAffinityConfig() - : new io.kubernetes.client.openapi.models.V1SessionAffinityConfigBuilder().build()); + : new V1SessionAffinityConfigBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceSpecFluent.SessionAffinityConfigNested - editOrNewSessionAffinityConfigLike( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig item) { + public V1ServiceSpecFluent.SessionAffinityConfigNested editOrNewSessionAffinityConfigLike( + V1SessionAffinityConfig item) { return withNewSessionAffinityConfigLike( getSessionAffinityConfig() != null ? getSessionAffinityConfig() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -1141,7 +1106,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (allocateLoadBalancerNodePorts != null) { @@ -1233,20 +1198,19 @@ public A withPublishNotReadyAddresses() { } class PortsNestedImpl extends V1ServicePortFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceSpecFluent.PortsNested, Nested { - PortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ServicePort item) { + implements V1ServiceSpecFluent.PortsNested, Nested { + PortsNestedImpl(Integer index, V1ServicePort item) { this.index = index; this.builder = new V1ServicePortBuilder(this, item); } PortsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ServicePortBuilder(this); + this.builder = new V1ServicePortBuilder(this); } - io.kubernetes.client.openapi.models.V1ServicePortBuilder builder; - java.lang.Integer index; + V1ServicePortBuilder builder; + Integer index; public N and() { return (N) V1ServiceSpecFluentImpl.this.setToPorts(index, builder.build()); @@ -1259,19 +1223,16 @@ public N endPort() { class SessionAffinityConfigNestedImpl extends V1SessionAffinityConfigFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceSpecFluent - .SessionAffinityConfigNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ServiceSpecFluent.SessionAffinityConfigNested, Nested { SessionAffinityConfigNestedImpl(V1SessionAffinityConfig item) { this.builder = new V1SessionAffinityConfigBuilder(this, item); } SessionAffinityConfigNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SessionAffinityConfigBuilder(this); + this.builder = new V1SessionAffinityConfigBuilder(this); } - io.kubernetes.client.openapi.models.V1SessionAffinityConfigBuilder builder; + V1SessionAffinityConfigBuilder builder; public N and() { return (N) V1ServiceSpecFluentImpl.this.withSessionAffinityConfig(builder.build()); 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 a8b17ab3cc..fe004c6b7c 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ServiceStatusBuilder extends V1ServiceStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ServiceStatus, - io.kubernetes.client.openapi.models.V1ServiceStatusBuilder> { + implements VisitableBuilder { public V1ServiceStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent) { this(fluent, false); } - public V1ServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1ServiceStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1ServiceStatus(), validationEnabled); } - public V1ServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1ServiceStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceStatus instance) { + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent, V1ServiceStatus instance) { this(fluent, instance, false); } public V1ServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1ServiceStatusFluent fluent, - io.kubernetes.client.openapi.models.V1ServiceStatus instance, - java.lang.Boolean validationEnabled) { + V1ServiceStatusFluent fluent, V1ServiceStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -54,13 +46,11 @@ public V1ServiceStatusBuilder( this.validationEnabled = validationEnabled; } - public V1ServiceStatusBuilder(io.kubernetes.client.openapi.models.V1ServiceStatus instance) { + public V1ServiceStatusBuilder(V1ServiceStatus instance) { this(instance, false); } - public V1ServiceStatusBuilder( - io.kubernetes.client.openapi.models.V1ServiceStatus instance, - java.lang.Boolean validationEnabled) { + public V1ServiceStatusBuilder(V1ServiceStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); @@ -69,10 +59,10 @@ public V1ServiceStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ServiceStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1ServiceStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ServiceStatus build() { + public V1ServiceStatus build() { V1ServiceStatus buildable = new V1ServiceStatus(); buildable.setConditions(fluent.getConditions()); buildable.setLoadBalancer(fluent.getLoadBalancer()); 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 9bb484b5ba..50c4a74bac 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 @@ -22,17 +22,15 @@ public interface V1ServiceStatusFluent> extends Fluent { public A addToConditions(Integer index, V1Condition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); + public A setToConditions(Integer index, V1Condition item); public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A addAllToConditions(Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -42,81 +40,67 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index); + public V1Condition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition(); + public V1Condition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition(); + public V1Condition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate); + public V1Condition buildMatchingCondition(Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1ServiceStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item); + public V1ServiceStatusFluent.ConditionsNested addNewConditionLike(V1Condition item); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); + public V1ServiceStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1Condition item); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1ServiceStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editFirstCondition(); + public V1ServiceStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editLastCondition(); + public V1ServiceStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate); + public V1ServiceStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); /** * This method has been deprecated, please use method buildLoadBalancer instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LoadBalancerStatus getLoadBalancer(); - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus buildLoadBalancer(); + public V1LoadBalancerStatus buildLoadBalancer(); - public A withLoadBalancer(io.kubernetes.client.openapi.models.V1LoadBalancerStatus loadBalancer); + public A withLoadBalancer(V1LoadBalancerStatus loadBalancer); - public java.lang.Boolean hasLoadBalancer(); + public Boolean hasLoadBalancer(); public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancer(); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - withNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item); + public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancerLike( + V1LoadBalancerStatus item); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - editLoadBalancer(); + public V1ServiceStatusFluent.LoadBalancerNested editLoadBalancer(); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - editOrNewLoadBalancer(); + public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancer(); - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - editOrNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item); + public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( + V1LoadBalancerStatus item); public interface ConditionsNested extends Nested, V1ConditionFluent> { @@ -126,8 +110,7 @@ public interface ConditionsNested } public interface LoadBalancerNested - extends io.kubernetes.client.fluent.Nested, - V1LoadBalancerStatusFluent> { + extends Nested, V1LoadBalancerStatusFluent> { public N and(); public N endLoadBalancer(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java index 7f1ea268b7..38d56bc160 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluentImpl.java @@ -26,7 +26,7 @@ public class V1ServiceStatusFluentImpl> exten implements V1ServiceStatusFluent { public V1ServiceStatusFluentImpl() {} - public V1ServiceStatusFluentImpl(io.kubernetes.client.openapi.models.V1ServiceStatus instance) { + public V1ServiceStatusFluentImpl(V1ServiceStatus instance) { this.withConditions(instance.getConditions()); this.withLoadBalancer(instance.getLoadBalancer()); @@ -37,11 +37,9 @@ public V1ServiceStatusFluentImpl(io.kubernetes.client.openapi.models.V1ServiceSt public A addToConditions(Integer index, V1Condition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -49,14 +47,11 @@ public A addToConditions(Integer index, V1Condition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { + public A setToConditions(Integer index, V1Condition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + V1ConditionBuilder builder = new V1ConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -72,26 +67,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -99,9 +90,8 @@ public A addAllToConditions(Collection items) { - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -123,14 +111,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = each.next(); + V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -145,30 +131,28 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index) { + public V1Condition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition() { + public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition() { + public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -176,10 +160,8 @@ public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -187,14 +169,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { this.addToConditions(item); } } else { @@ -208,14 +189,14 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { + for (V1Condition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -223,43 +204,35 @@ public V1ServiceStatusFluent.ConditionsNested addNewCondition() { return new V1ServiceStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item) { + public V1ServiceStatusFluent.ConditionsNested addNewConditionLike(V1Condition item) { return new V1ServiceStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { - return new io.kubernetes.client.openapi.models.V1ServiceStatusFluentImpl.ConditionsNestedImpl( - index, item); + public V1ServiceStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1Condition item) { + return new V1ServiceStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1ServiceStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editFirstCondition() { + public V1ServiceStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editLastCondition() { + public V1ServiceStatusFluent.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 io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate - predicate) { + public V1ServiceStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -276,25 +249,28 @@ public V1ServiceStatusFluent.ConditionsNested addNewCondition() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus getLoadBalancer() { + @Deprecated + public V1LoadBalancerStatus getLoadBalancer() { return this.loadBalancer != null ? this.loadBalancer.build() : null; } - public io.kubernetes.client.openapi.models.V1LoadBalancerStatus buildLoadBalancer() { + public V1LoadBalancerStatus buildLoadBalancer() { return this.loadBalancer != null ? this.loadBalancer.build() : null; } - public A withLoadBalancer(io.kubernetes.client.openapi.models.V1LoadBalancerStatus loadBalancer) { + public A withLoadBalancer(V1LoadBalancerStatus loadBalancer) { _visitables.get("loadBalancer").remove(this.loadBalancer); if (loadBalancer != null) { this.loadBalancer = new V1LoadBalancerStatusBuilder(loadBalancer); _visitables.get("loadBalancer").add(this.loadBalancer); + } else { + this.loadBalancer = null; + _visitables.get("loadBalancer").remove(this.loadBalancer); } return (A) this; } - public java.lang.Boolean hasLoadBalancer() { + public Boolean hasLoadBalancer() { return this.loadBalancer != null; } @@ -302,27 +278,22 @@ public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancer() { return new V1ServiceStatusFluentImpl.LoadBalancerNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - withNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item) { - return new io.kubernetes.client.openapi.models.V1ServiceStatusFluentImpl.LoadBalancerNestedImpl( - item); + public V1ServiceStatusFluent.LoadBalancerNested withNewLoadBalancerLike( + V1LoadBalancerStatus item) { + return new V1ServiceStatusFluentImpl.LoadBalancerNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - editLoadBalancer() { + public V1ServiceStatusFluent.LoadBalancerNested editLoadBalancer() { return withNewLoadBalancerLike(getLoadBalancer()); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - editOrNewLoadBalancer() { + public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancer() { return withNewLoadBalancerLike( - getLoadBalancer() != null - ? getLoadBalancer() - : new io.kubernetes.client.openapi.models.V1LoadBalancerStatusBuilder().build()); + getLoadBalancer() != null ? getLoadBalancer() : new V1LoadBalancerStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested - editOrNewLoadBalancerLike(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item) { + public V1ServiceStatusFluent.LoadBalancerNested editOrNewLoadBalancerLike( + V1LoadBalancerStatus item) { return withNewLoadBalancerLike(getLoadBalancer() != null ? getLoadBalancer() : item); } @@ -358,20 +329,19 @@ public String toString() { class ConditionsNestedImpl extends V1ConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1Condition item) { + implements V1ServiceStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ConditionBuilder(this); + this.builder = new V1ConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder; - java.lang.Integer index; + V1ConditionBuilder builder; + Integer index; public N and() { return (N) V1ServiceStatusFluentImpl.this.setToConditions(index, builder.build()); @@ -384,17 +354,16 @@ public N endCondition() { class LoadBalancerNestedImpl extends V1LoadBalancerStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1ServiceStatusFluent.LoadBalancerNested, - io.kubernetes.client.fluent.Nested { - LoadBalancerNestedImpl(io.kubernetes.client.openapi.models.V1LoadBalancerStatus item) { + implements V1ServiceStatusFluent.LoadBalancerNested, Nested { + LoadBalancerNestedImpl(V1LoadBalancerStatus item) { this.builder = new V1LoadBalancerStatusBuilder(this, item); } LoadBalancerNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LoadBalancerStatusBuilder(this); + this.builder = new V1LoadBalancerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1LoadBalancerStatusBuilder builder; + V1LoadBalancerStatusBuilder builder; public N and() { return (N) V1ServiceStatusFluentImpl.this.withLoadBalancer(builder.build()); 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 4a8242e8b3..85848645e4 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 @@ -16,9 +16,7 @@ public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SessionAffinityConfig, - V1SessionAffinityConfigBuilder> { + implements VisitableBuilder { public V1SessionAffinityConfigBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent) { } public V1SessionAffinityConfigBuilder( - io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent fluent, - java.lang.Boolean validationEnabled) { + V1SessionAffinityConfigFluent fluent, Boolean validationEnabled) { this(fluent, new V1SessionAffinityConfig(), validationEnabled); } public V1SessionAffinityConfigBuilder( - io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent fluent, - io.kubernetes.client.openapi.models.V1SessionAffinityConfig instance) { + V1SessionAffinityConfigFluent fluent, V1SessionAffinityConfig instance) { this(fluent, instance, false); } public V1SessionAffinityConfigBuilder( - io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent fluent, - io.kubernetes.client.openapi.models.V1SessionAffinityConfig instance, - java.lang.Boolean validationEnabled) { + V1SessionAffinityConfigFluent fluent, + V1SessionAffinityConfig instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withClientIP(instance.getClientIP()); this.validationEnabled = validationEnabled; } - public V1SessionAffinityConfigBuilder( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig instance) { + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance) { this(instance, false); } public V1SessionAffinityConfigBuilder( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig instance, - java.lang.Boolean validationEnabled) { + V1SessionAffinityConfig instance, Boolean validationEnabled) { this.fluent = this; this.withClientIP(instance.getClientIP()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent fluent; - java.lang.Boolean validationEnabled; + V1SessionAffinityConfigFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SessionAffinityConfig build() { + public V1SessionAffinityConfig build() { V1SessionAffinityConfig buildable = new V1SessionAffinityConfig(); buildable.setClientIP(fluent.getClientIP()); return buildable; 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 3bd63f6b2b..4b984818c3 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 @@ -27,25 +27,22 @@ public interface V1SessionAffinityConfigFluent withNewClientIP(); - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - withNewClientIPLike(io.kubernetes.client.openapi.models.V1ClientIPConfig item); + public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIPLike(V1ClientIPConfig item); - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - editClientIP(); + public V1SessionAffinityConfigFluent.ClientIPNested editClientIP(); - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - editOrNewClientIP(); + public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIP(); - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - editOrNewClientIPLike(io.kubernetes.client.openapi.models.V1ClientIPConfig item); + public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIPLike( + V1ClientIPConfig item); public interface ClientIPNested extends Nested, V1ClientIPConfigFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java index 9b01f8e64a..6839a25ba5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluentImpl.java @@ -21,8 +21,7 @@ public class V1SessionAffinityConfigFluentImpl implements V1SessionAffinityConfigFluent { public V1SessionAffinityConfigFluentImpl() {} - public V1SessionAffinityConfigFluentImpl( - io.kubernetes.client.openapi.models.V1SessionAffinityConfig instance) { + public V1SessionAffinityConfigFluentImpl(V1SessionAffinityConfig instance) { this.withClientIP(instance.getClientIP()); } @@ -34,19 +33,22 @@ public V1SessionAffinityConfigFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ClientIPConfig getClientIP() { + public V1ClientIPConfig getClientIP() { return this.clientIP != null ? this.clientIP.build() : null; } - public io.kubernetes.client.openapi.models.V1ClientIPConfig buildClientIP() { + public V1ClientIPConfig buildClientIP() { return this.clientIP != null ? this.clientIP.build() : null; } - public A withClientIP(io.kubernetes.client.openapi.models.V1ClientIPConfig clientIP) { + public A withClientIP(V1ClientIPConfig clientIP) { _visitables.get("clientIP").remove(this.clientIP); if (clientIP != null) { this.clientIP = new V1ClientIPConfigBuilder(clientIP); _visitables.get("clientIP").add(this.clientIP); + } else { + this.clientIP = null; + _visitables.get("clientIP").remove(this.clientIP); } return (A) this; } @@ -59,26 +61,22 @@ public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIP() { return new V1SessionAffinityConfigFluentImpl.ClientIPNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - withNewClientIPLike(io.kubernetes.client.openapi.models.V1ClientIPConfig item) { + public V1SessionAffinityConfigFluent.ClientIPNested withNewClientIPLike( + V1ClientIPConfig item) { return new V1SessionAffinityConfigFluentImpl.ClientIPNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - editClientIP() { + public V1SessionAffinityConfigFluent.ClientIPNested editClientIP() { return withNewClientIPLike(getClientIP()); } - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - editOrNewClientIP() { + public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIP() { return withNewClientIPLike( - getClientIP() != null - ? getClientIP() - : new io.kubernetes.client.openapi.models.V1ClientIPConfigBuilder().build()); + getClientIP() != null ? getClientIP() : new V1ClientIPConfigBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested - editOrNewClientIPLike(io.kubernetes.client.openapi.models.V1ClientIPConfig item) { + public V1SessionAffinityConfigFluent.ClientIPNested editOrNewClientIPLike( + V1ClientIPConfig item) { return withNewClientIPLike(getClientIP() != null ? getClientIP() : item); } @@ -107,18 +105,16 @@ public String toString() { class ClientIPNestedImpl extends V1ClientIPConfigFluentImpl> - implements io.kubernetes.client.openapi.models.V1SessionAffinityConfigFluent.ClientIPNested< - N>, - Nested { - ClientIPNestedImpl(io.kubernetes.client.openapi.models.V1ClientIPConfig item) { + implements V1SessionAffinityConfigFluent.ClientIPNested, Nested { + ClientIPNestedImpl(V1ClientIPConfig item) { this.builder = new V1ClientIPConfigBuilder(this, item); } ClientIPNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ClientIPConfigBuilder(this); + this.builder = new V1ClientIPConfigBuilder(this); } - io.kubernetes.client.openapi.models.V1ClientIPConfigBuilder builder; + V1ClientIPConfigBuilder builder; public N and() { return (N) V1SessionAffinityConfigFluentImpl.this.withClientIP(builder.build()); 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 abdd4c6d34..2079ba8cb5 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StatefulSetBuilder extends V1StatefulSetFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSet, V1StatefulSetBuilder> { + implements VisitableBuilder { public V1StatefulSetBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1StatefulSetBuilder(Boolean validationEnabled) { this(new V1StatefulSet(), validationEnabled); } - public V1StatefulSetBuilder(io.kubernetes.client.openapi.models.V1StatefulSetFluent fluent) { + public V1StatefulSetBuilder(V1StatefulSetFluent fluent) { this(fluent, false); } - public V1StatefulSetBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StatefulSetBuilder(V1StatefulSetFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatefulSet(), validationEnabled); } - public V1StatefulSetBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSet instance) { + public V1StatefulSetBuilder(V1StatefulSetFluent fluent, V1StatefulSet instance) { this(fluent, instance, false); } public V1StatefulSetBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSet instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetFluent fluent, V1StatefulSet instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,13 +52,11 @@ public V1StatefulSetBuilder( this.validationEnabled = validationEnabled; } - public V1StatefulSetBuilder(io.kubernetes.client.openapi.models.V1StatefulSet instance) { + public V1StatefulSetBuilder(V1StatefulSet instance) { this(instance, false); } - public V1StatefulSetBuilder( - io.kubernetes.client.openapi.models.V1StatefulSet instance, - java.lang.Boolean validationEnabled) { + public V1StatefulSetBuilder(V1StatefulSet instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +71,10 @@ public V1StatefulSetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetFluent fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSet build() { + public V1StatefulSet build() { V1StatefulSet buildable = new V1StatefulSet(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 6aa2c16a44..3ce17c18cb 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 @@ -16,9 +16,7 @@ public class V1StatefulSetConditionBuilder extends V1StatefulSetConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSetCondition, - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> { + implements VisitableBuilder { public V1StatefulSetConditionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent) { } public V1StatefulSetConditionBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1StatefulSetConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatefulSetCondition(), validationEnabled); } public V1StatefulSetConditionBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetConditionFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetCondition instance) { + V1StatefulSetConditionFluent fluent, V1StatefulSetCondition instance) { this(fluent, instance, false); } public V1StatefulSetConditionBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetConditionFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetCondition instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetConditionFluent fluent, + V1StatefulSetCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +57,11 @@ public V1StatefulSetConditionBuilder( this.validationEnabled = validationEnabled; } - public V1StatefulSetConditionBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetCondition instance) { + public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance) { this(instance, false); } - public V1StatefulSetConditionBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetCondition instance, - java.lang.Boolean validationEnabled) { + public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +76,10 @@ public V1StatefulSetConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSetCondition build() { + public V1StatefulSetCondition build() { V1StatefulSetCondition buildable = new V1StatefulSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 cd638686a6..7a455b2cdb 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 @@ -20,31 +20,31 @@ public interface V1StatefulSetConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java index dd28765ff7..84aa5d6323 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1StatefulSetConditionFluentImpl implements V1StatefulSetConditionFluent { public V1StatefulSetConditionFluentImpl() {} - public V1StatefulSetConditionFluentImpl( - io.kubernetes.client.openapi.models.V1StatefulSetCondition instance) { + public V1StatefulSetConditionFluentImpl(V1StatefulSetCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1StatefulSetConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 bc62965a08..ec36eb306f 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 @@ -19,15 +19,15 @@ public interface V1StatefulSetFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1StatefulSetFluent> extends F @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1StatefulSetFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1StatefulSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested editMetadata(); + public V1StatefulSetFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested - editOrNewMetadata(); + public V1StatefulSetFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1StatefulSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StatefulSetSpec getSpec(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpec buildSpec(); + public V1StatefulSetSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1StatefulSetSpec spec); + public A withSpec(V1StatefulSetSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1StatefulSetFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1StatefulSetSpec item); + public V1StatefulSetFluent.SpecNested withNewSpecLike(V1StatefulSetSpec item); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested editSpec(); + public V1StatefulSetFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested editOrNewSpec(); + public V1StatefulSetFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1StatefulSetSpec item); + public V1StatefulSetFluent.SpecNested editOrNewSpecLike(V1StatefulSetSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StatefulSetStatus getStatus(); - public io.kubernetes.client.openapi.models.V1StatefulSetStatus buildStatus(); + public V1StatefulSetStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1StatefulSetStatus status); + public A withStatus(V1StatefulSetStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1StatefulSetFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1StatefulSetStatus item); + public V1StatefulSetFluent.StatusNested withNewStatusLike(V1StatefulSetStatus item); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested editStatus(); + public V1StatefulSetFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested editOrNewStatus(); + public V1StatefulSetFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1StatefulSetStatus item); + public V1StatefulSetFluent.StatusNested editOrNewStatusLike(V1StatefulSetStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1StatefulSetSpecFluent> { + extends Nested, V1StatefulSetSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1StatefulSetStatusFluent> { + extends Nested, V1StatefulSetStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java index 1e078f9e73..a9b5523373 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluentImpl.java @@ -21,7 +21,7 @@ public class V1StatefulSetFluentImpl> extends B implements V1StatefulSetFluent { public V1StatefulSetFluentImpl() {} - public V1StatefulSetFluentImpl(io.kubernetes.client.openapi.models.V1StatefulSet instance) { + public V1StatefulSetFluentImpl(V1StatefulSet instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1StatefulSetFluentImpl(io.kubernetes.client.openapi.models.V1StatefulSet } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1StatefulSetSpecBuilder spec; private V1StatefulSetStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1StatefulSetFluent.MetadataNested withNewMetadata() { return new V1StatefulSetFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1StatefulSetFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1StatefulSetFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested editMetadata() { + public V1StatefulSetFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested - editOrNewMetadata() { + public V1StatefulSetFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1StatefulSetFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StatefulSetSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1StatefulSetSpec buildSpec() { + public V1StatefulSetSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1StatefulSetSpec spec) { + public A withSpec(V1StatefulSetSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1StatefulSetSpecBuilder(spec); + this.spec = new V1StatefulSetSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1StatefulSetFluent.SpecNested withNewSpec() { return new V1StatefulSetFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1StatefulSetSpec item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetFluentImpl.SpecNestedImpl(item); + public V1StatefulSetFluent.SpecNested withNewSpecLike(V1StatefulSetSpec item) { + return new V1StatefulSetFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested editSpec() { + public V1StatefulSetFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1StatefulSetSpecBuilder().build()); + public V1StatefulSetFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1StatefulSetSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1StatefulSetSpec item) { + public V1StatefulSetFluent.SpecNested editOrNewSpecLike(V1StatefulSetSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1StatefulSetStatus getStatus() { + @Deprecated + public V1StatefulSetStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1StatefulSetStatus buildStatus() { + public V1StatefulSetStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1StatefulSetStatus status) { + public A withStatus(V1StatefulSetStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1StatefulSetStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1StatefulSetFluent.StatusNested withNewStatus() { return new V1StatefulSetFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1StatefulSetStatus item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetFluentImpl.StatusNestedImpl(item); + public V1StatefulSetFluent.StatusNested withNewStatusLike(V1StatefulSetStatus item) { + return new V1StatefulSetFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested editStatus() { + public V1StatefulSetFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested editOrNewStatus() { + public V1StatefulSetFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1StatefulSetStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1StatefulSetStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1StatefulSetStatus item) { + public V1StatefulSetFluent.StatusNested editOrNewStatusLike(V1StatefulSetStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetFluent.MetadataNested, - Nested { + implements V1StatefulSetFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1StatefulSetFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1StatefulSetSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1StatefulSetSpec item) { + implements V1StatefulSetFluent.SpecNested, Nested { + SpecNestedImpl(V1StatefulSetSpec item) { this.builder = new V1StatefulSetSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1StatefulSetSpecBuilder(this); + this.builder = new V1StatefulSetSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1StatefulSetSpecBuilder builder; + V1StatefulSetSpecBuilder builder; public N and() { return (N) V1StatefulSetFluentImpl.this.withSpec(builder.build()); @@ -312,17 +305,16 @@ public N endSpec() { class StatusNestedImpl extends V1StatefulSetStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1StatefulSetStatus item) { + implements V1StatefulSetFluent.StatusNested, Nested { + StatusNestedImpl(V1StatefulSetStatus item) { this.builder = new V1StatefulSetStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1StatefulSetStatusBuilder(this); + this.builder = new V1StatefulSetStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1StatefulSetStatusBuilder builder; + V1StatefulSetStatusBuilder builder; public N and() { return (N) V1StatefulSetFluentImpl.this.withStatus(builder.build()); 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 63cd19344a..08872c5ce8 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StatefulSetListBuilder extends V1StatefulSetListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSetList, - io.kubernetes.client.openapi.models.V1StatefulSetListBuilder> { + implements VisitableBuilder { public V1StatefulSetListBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent) { this(fluent, false); } - public V1StatefulSetListBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatefulSetList(), validationEnabled); } - public V1StatefulSetListBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetListFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetList instance) { + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent, V1StatefulSetList instance) { this(fluent, instance, false); } public V1StatefulSetListBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetListFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetList instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetListFluent fluent, V1StatefulSetList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,13 +50,11 @@ public V1StatefulSetListBuilder( this.validationEnabled = validationEnabled; } - public V1StatefulSetListBuilder(io.kubernetes.client.openapi.models.V1StatefulSetList instance) { + public V1StatefulSetListBuilder(V1StatefulSetList instance) { this(instance, false); } - public V1StatefulSetListBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetList instance, - java.lang.Boolean validationEnabled) { + public V1StatefulSetListBuilder(V1StatefulSetList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -77,10 +67,10 @@ public V1StatefulSetListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetListFluent fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSetList build() { + public V1StatefulSetList build() { V1StatefulSetList buildable = new V1StatefulSetList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 bf63f0820d..47d64716ea 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 @@ -22,23 +22,21 @@ public interface V1StatefulSetListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1StatefulSet item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSet item); + public A setToItems(Integer index, V1StatefulSet item); public A addToItems(io.kubernetes.client.openapi.models.V1StatefulSet... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1StatefulSet... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,83 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1StatefulSet buildItem(java.lang.Integer index); + public V1StatefulSet buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1StatefulSet buildFirstItem(); + public V1StatefulSet buildFirstItem(); - public io.kubernetes.client.openapi.models.V1StatefulSet buildLastItem(); + public V1StatefulSet buildLastItem(); - public io.kubernetes.client.openapi.models.V1StatefulSet buildMatchingItem( - java.util.function.Predicate - predicate); + public V1StatefulSet buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1StatefulSetListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1StatefulSet item); + public V1StatefulSetListFluent.ItemsNested addNewItemLike(V1StatefulSet item); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSet item); + public V1StatefulSetListFluent.ItemsNested setNewItemLike(Integer index, V1StatefulSet item); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1StatefulSetListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested editFirstItem(); + public V1StatefulSetListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested editLastItem(); + public V1StatefulSetListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1StatefulSetListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1StatefulSetListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1StatefulSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - editMetadata(); + public V1StatefulSetListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - editOrNewMetadata(); + public V1StatefulSetListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1StatefulSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1StatefulSetFluent> { @@ -134,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java index 16ad2ab505..6a22bd2bef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluentImpl.java @@ -38,14 +38,14 @@ public V1StatefulSetListFluentImpl(V1StatefulSetList instance) { private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1StatefulSet item) { + public A addToItems(Integer index, V1StatefulSet item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetBuilder(item); + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSet item) { + public A setToItems(Integer index, V1StatefulSet item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetBuilder(item); + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -89,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StatefulSet item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StatefulSet item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetBuilder(item); + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -116,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1StatefulSet item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -140,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder = each.next(); + V1StatefulSetBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -162,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1StatefulSet buildItem(java.lang.Integer index) { + public V1StatefulSet buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1StatefulSet buildFirstItem() { + public V1StatefulSet buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1StatefulSet buildLastItem() { + public V1StatefulSet buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1StatefulSet buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1StatefulSetBuilder item : items) { + public V1StatefulSet buildMatchingItem(Predicate predicate) { + for (V1StatefulSetBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -193,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1StatefulSet buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1StatefulSetBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1StatefulSetBuilder item : items) { if (predicate.test(item)) { return true; } @@ -204,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1StatefulSet item : items) { + this.items = new ArrayList(); + for (V1StatefulSet item : items) { this.addToItems(item); } } else { @@ -224,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1StatefulSet item : items) { + for (V1StatefulSet item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -239,39 +221,32 @@ public V1StatefulSetListFluent.ItemsNested addNewItem() { return new V1StatefulSetListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1StatefulSet item) { + public V1StatefulSetListFluent.ItemsNested addNewItemLike(V1StatefulSet item) { return new V1StatefulSetListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSet item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetListFluentImpl.ItemsNestedImpl( - index, item); + public V1StatefulSetListFluent.ItemsNested setNewItemLike(Integer index, V1StatefulSet item) { + return new V1StatefulSetListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1StatefulSetListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested - editFirstItem() { + public V1StatefulSetListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested editLastItem() { + public V1StatefulSetListFluent.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 io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1StatefulSetListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -283,16 +258,16 @@ public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested withNewMetadata() { return new V1StatefulSetListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetListFluentImpl.MetadataNestedImpl( - item); + public V1StatefulSetListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1StatefulSetListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - editMetadata() { + public V1StatefulSetListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - editOrNewMetadata() { + public V1StatefulSetListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1StatefulSetListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -367,7 +338,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -391,21 +362,19 @@ public java.lang.String toString() { } class ItemsNestedImpl extends V1StatefulSetFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSet item) { + implements V1StatefulSetListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1StatefulSet item) { this.index = index; this.builder = new V1StatefulSetBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1StatefulSetBuilder(this); + this.builder = new V1StatefulSetBuilder(this); } - io.kubernetes.client.openapi.models.V1StatefulSetBuilder builder; - java.lang.Integer index; + V1StatefulSetBuilder builder; + Integer index; public N and() { return (N) V1StatefulSetListFluentImpl.this.setToItems(index, builder.build()); @@ -418,17 +387,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1StatefulSetListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1StatefulSetListFluentImpl.this.withMetadata(builder.build()); 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 9fc21b0c8c..d997894c4d 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 @@ -18,9 +18,8 @@ public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl< V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy, - io.kubernetes.client.openapi.models - .V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder> { + V1StatefulSetPersistentVolumeClaimRetentionPolicy, + V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder> { public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder() { this(false); } @@ -35,26 +34,21 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( } public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent - fluent, - java.lang.Boolean validationEnabled) { + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent, + Boolean validationEnabled) { this(fluent, new V1StatefulSetPersistentVolumeClaimRetentionPolicy(), validationEnabled); } public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent - fluent, - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - instance) { + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent, + V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this(fluent, instance, false); } public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent - fluent, - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent, + V1StatefulSetPersistentVolumeClaimRetentionPolicy instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withWhenDeleted(instance.getWhenDeleted()); @@ -64,15 +58,12 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( } public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - instance) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this(instance, false); } public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy instance, Boolean validationEnabled) { this.fluent = this; this.withWhenDeleted(instance.getWhenDeleted()); @@ -81,12 +72,10 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent - fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - build() { + public V1StatefulSetPersistentVolumeClaimRetentionPolicy build() { V1StatefulSetPersistentVolumeClaimRetentionPolicy buildable = new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); buildable.setWhenDeleted(fluent.getWhenDeleted()); 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 77d9425dc1..103e1d1687 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 @@ -20,13 +20,13 @@ public interface V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent< extends Fluent { public String getWhenDeleted(); - public A withWhenDeleted(java.lang.String whenDeleted); + public A withWhenDeleted(String whenDeleted); public Boolean hasWhenDeleted(); - public java.lang.String getWhenScaled(); + public String getWhenScaled(); - public A withWhenScaled(java.lang.String whenScaled); + public A withWhenScaled(String whenScaled); - public java.lang.Boolean hasWhenScaled(); + public Boolean hasWhenScaled(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java index 47f1fa8dae..8182bdfb05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl.java @@ -22,21 +22,20 @@ public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl< public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl() {} public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - instance) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this.withWhenDeleted(instance.getWhenDeleted()); this.withWhenScaled(instance.getWhenScaled()); } private String whenDeleted; - private java.lang.String whenScaled; + private String whenScaled; - public java.lang.String getWhenDeleted() { + public String getWhenDeleted() { return this.whenDeleted; } - public A withWhenDeleted(java.lang.String whenDeleted) { + public A withWhenDeleted(String whenDeleted) { this.whenDeleted = whenDeleted; return (A) this; } @@ -45,16 +44,16 @@ public Boolean hasWhenDeleted() { return this.whenDeleted != null; } - public java.lang.String getWhenScaled() { + public String getWhenScaled() { return this.whenScaled; } - public A withWhenScaled(java.lang.String whenScaled) { + public A withWhenScaled(String whenScaled) { this.whenScaled = whenScaled; return (A) this; } - public java.lang.Boolean hasWhenScaled() { + public Boolean hasWhenScaled() { return this.whenScaled != null; } @@ -74,7 +73,7 @@ public int hashCode() { return java.util.Objects.hash(whenDeleted, whenScaled, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (whenDeleted != null) { 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 bc03d796e4..58b82b5a60 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSetSpec, V1StatefulSetSpecBuilder> { + implements VisitableBuilder { public V1StatefulSetSpecBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1StatefulSetSpecBuilder(Boolean validationEnabled) { this(new V1StatefulSetSpec(), validationEnabled); } - public V1StatefulSetSpecBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent fluent) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent) { this(fluent, false); } - public V1StatefulSetSpecBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatefulSetSpec(), validationEnabled); } - public V1StatefulSetSpecBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetSpec instance) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent, V1StatefulSetSpec instance) { this(fluent, instance, false); } public V1StatefulSetSpecBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetSpec instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetSpecFluent fluent, V1StatefulSetSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMinReadySeconds(instance.getMinReadySeconds()); @@ -71,13 +63,11 @@ public V1StatefulSetSpecBuilder( this.validationEnabled = validationEnabled; } - public V1StatefulSetSpecBuilder(io.kubernetes.client.openapi.models.V1StatefulSetSpec instance) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance) { this(instance, false); } - public V1StatefulSetSpecBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetSpec instance, - java.lang.Boolean validationEnabled) { + public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance, Boolean validationEnabled) { this.fluent = this; this.withMinReadySeconds(instance.getMinReadySeconds()); @@ -103,10 +93,10 @@ public V1StatefulSetSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSetSpec build() { + public V1StatefulSetSpec build() { V1StatefulSetSpec buildable = new V1StatefulSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); buildable.setPersistentVolumeClaimRetentionPolicy( 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 77c41d938c..780b07c625 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 @@ -22,7 +22,7 @@ public interface V1StatefulSetSpecFluent> extends Fluent { public Integer getMinReadySeconds(); - public A withMinReadySeconds(java.lang.Integer minReadySeconds); + public A withMinReadySeconds(Integer minReadySeconds); public Boolean hasMinReadySeconds(); @@ -36,169 +36,142 @@ public interface V1StatefulSetSpecFluent> e public V1StatefulSetPersistentVolumeClaimRetentionPolicy getPersistentVolumeClaimRetentionPolicy(); - public io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy + public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy(); public A withPersistentVolumeClaimRetentionPolicy( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - persistentVolumeClaimRetentionPolicy); + V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy); - public java.lang.Boolean hasPersistentVolumeClaimRetentionPolicy(); + public Boolean hasPersistentVolumeClaimRetentionPolicy(); public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - item); + V1StatefulSetPersistentVolumeClaimRetentionPolicy item); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - item); + V1StatefulSetPersistentVolumeClaimRetentionPolicy item); public String getPodManagementPolicy(); - public A withPodManagementPolicy(java.lang.String podManagementPolicy); + public A withPodManagementPolicy(String podManagementPolicy); - public java.lang.Boolean hasPodManagementPolicy(); + public Boolean hasPodManagementPolicy(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); - public java.lang.Integer getRevisionHistoryLimit(); + public Integer getRevisionHistoryLimit(); - public A withRevisionHistoryLimit(java.lang.Integer revisionHistoryLimit); + public A withRevisionHistoryLimit(Integer revisionHistoryLimit); - public java.lang.Boolean hasRevisionHistoryLimit(); + public Boolean hasRevisionHistoryLimit(); /** * This method has been deprecated, please use method buildSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V1StatefulSetSpecFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1StatefulSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - editSelector(); + public V1StatefulSetSpecFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - editOrNewSelector(); + public V1StatefulSetSpecFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1StatefulSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); - public java.lang.String getServiceName(); + public String getServiceName(); - public A withServiceName(java.lang.String serviceName); + public A withServiceName(String serviceName); - public java.lang.Boolean hasServiceName(); + public Boolean hasServiceName(); /** * This method has been deprecated, please use method buildTemplate instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PodTemplateSpec getTemplate(); - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate(); + public V1PodTemplateSpec buildTemplate(); - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template); + public A withTemplate(V1PodTemplateSpec template); - public java.lang.Boolean hasTemplate(); + public Boolean hasTemplate(); public V1StatefulSetSpecFluent.TemplateNested withNewTemplate(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1StatefulSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - editTemplate(); + public V1StatefulSetSpecFluent.TemplateNested editTemplate(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - editOrNewTemplate(); + public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplate(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item); + public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item); /** * This method has been deprecated, please use method buildUpdateStrategy instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StatefulSetUpdateStrategy getUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy buildUpdateStrategy(); + public V1StatefulSetUpdateStrategy buildUpdateStrategy(); - public A withUpdateStrategy( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy updateStrategy); + public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy); - public java.lang.Boolean hasUpdateStrategy(); + public Boolean hasUpdateStrategy(); public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - withNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy item); + public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( + V1StatefulSetUpdateStrategy item); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - editUpdateStrategy(); + public V1StatefulSetSpecFluent.UpdateStrategyNested editUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategy(); + public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy item); + public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( + V1StatefulSetUpdateStrategy item); - public A addToVolumeClaimTemplates(java.lang.Integer index, V1PersistentVolumeClaim item); + public A addToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item); - public A setToVolumeClaimTemplates( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + public A setToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item); public A addToVolumeClaimTemplates( io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public A addAllToVolumeClaimTemplates( - Collection items); + public A addAllToVolumeClaimTemplates(Collection items); public A removeFromVolumeClaimTemplates( io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items); - public A removeAllFromVolumeClaimTemplates( - java.util.Collection items); + public A removeAllFromVolumeClaimTemplates(Collection items); public A removeMatchingFromVolumeClaimTemplates( Predicate predicate); @@ -208,66 +181,47 @@ public A removeMatchingFromVolumeClaimTemplates( * * @return The buildable object. */ - @java.lang.Deprecated - public List - getVolumeClaimTemplates(); + @Deprecated + public List getVolumeClaimTemplates(); - public java.util.List - buildVolumeClaimTemplates(); + public List buildVolumeClaimTemplates(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildVolumeClaimTemplate( - java.lang.Integer index); + public V1PersistentVolumeClaim buildVolumeClaimTemplate(Integer index); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim - buildFirstVolumeClaimTemplate(); + public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildLastVolumeClaimTemplate(); + public V1PersistentVolumeClaim buildLastVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim - buildMatchingVolumeClaimTemplate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate); + public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate( + Predicate predicate); - public java.lang.Boolean hasMatchingVolumeClaimTemplate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate); + public Boolean hasMatchingVolumeClaimTemplate( + Predicate predicate); - public A withVolumeClaimTemplates( - java.util.List - volumeClaimTemplates); + public A withVolumeClaimTemplates(List volumeClaimTemplates); public A withVolumeClaimTemplates( io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates); - public java.lang.Boolean hasVolumeClaimTemplates(); + public Boolean hasVolumeClaimTemplates(); public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - addNewVolumeClaimTemplateLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike( + V1PersistentVolumeClaim item); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - setNewVolumeClaimTemplateLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike( + Integer index, V1PersistentVolumeClaim item); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editVolumeClaimTemplate(java.lang.Integer index); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editVolumeClaimTemplate( + Integer index); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editFirstVolumeClaimTemplate(); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editFirstVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editLastVolumeClaimTemplate(); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editLastVolumeClaimTemplate(); - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editMatchingVolumeClaimTemplate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate( + Predicate predicate); public interface PersistentVolumeClaimRetentionPolicyNested extends Nested, @@ -279,23 +233,21 @@ public interface PersistentVolumeClaimRetentionPolicyNested } public interface SelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endSelector(); } public interface TemplateNested - extends io.kubernetes.client.fluent.Nested, - V1PodTemplateSpecFluent> { + extends Nested, V1PodTemplateSpecFluent> { public N and(); public N endTemplate(); } public interface UpdateStrategyNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1StatefulSetUpdateStrategyFluent> { public N and(); @@ -303,7 +255,7 @@ public interface UpdateStrategyNested } public interface VolumeClaimTemplatesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PersistentVolumeClaimFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java index 5c3271b175..8894385318 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluentImpl.java @@ -26,8 +26,7 @@ public class V1StatefulSetSpecFluentImpl> e implements V1StatefulSetSpecFluent { public V1StatefulSetSpecFluentImpl() {} - public V1StatefulSetSpecFluentImpl( - io.kubernetes.client.openapi.models.V1StatefulSetSpec instance) { + public V1StatefulSetSpecFluentImpl(V1StatefulSetSpec instance) { this.withMinReadySeconds(instance.getMinReadySeconds()); this.withPersistentVolumeClaimRetentionPolicy( @@ -54,19 +53,19 @@ public V1StatefulSetSpecFluentImpl( private V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder persistentVolumeClaimRetentionPolicy; private String podManagementPolicy; - private java.lang.Integer replicas; - private java.lang.Integer revisionHistoryLimit; + private Integer replicas; + private Integer revisionHistoryLimit; private V1LabelSelectorBuilder selector; - private java.lang.String serviceName; + private String serviceName; private V1PodTemplateSpecBuilder template; private V1StatefulSetUpdateStrategyBuilder updateStrategy; private ArrayList volumeClaimTemplates; - public java.lang.Integer getMinReadySeconds() { + public Integer getMinReadySeconds() { return this.minReadySeconds; } - public A withMinReadySeconds(java.lang.Integer minReadySeconds) { + public A withMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; return (A) this; } @@ -89,7 +88,7 @@ public Boolean hasMinReadySeconds() { : null; } - public io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy + public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { return this.persistentVolumeClaimRetentionPolicy != null ? this.persistentVolumeClaimRetentionPolicy.build() @@ -97,24 +96,27 @@ public Boolean hasMinReadySeconds() { } public A withPersistentVolumeClaimRetentionPolicy( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - persistentVolumeClaimRetentionPolicy) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { _visitables .get("persistentVolumeClaimRetentionPolicy") .remove(this.persistentVolumeClaimRetentionPolicy); if (persistentVolumeClaimRetentionPolicy != null) { this.persistentVolumeClaimRetentionPolicy = - new io.kubernetes.client.openapi.models - .V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( + new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder( persistentVolumeClaimRetentionPolicy); _visitables .get("persistentVolumeClaimRetentionPolicy") .add(this.persistentVolumeClaimRetentionPolicy); + } else { + this.persistentVolumeClaimRetentionPolicy = null; + _visitables + .get("persistentVolumeClaimRetentionPolicy") + .remove(this.persistentVolumeClaimRetentionPolicy); } return (A) this; } - public java.lang.Boolean hasPersistentVolumeClaimRetentionPolicy() { + public Boolean hasPersistentVolumeClaimRetentionPolicy() { return this.persistentVolumeClaimRetentionPolicy != null; } @@ -123,83 +125,71 @@ public java.lang.Boolean hasPersistentVolumeClaimRetentionPolicy() { return new V1StatefulSetSpecFluentImpl.PersistentVolumeClaimRetentionPolicyNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicyLike( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - item) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { return new V1StatefulSetSpecFluentImpl.PersistentVolumeClaimRetentionPolicyNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { return withNewPersistentVolumeClaimRetentionPolicyLike( getPersistentVolumeClaimRetentionPolicy()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { return withNewPersistentVolumeClaimRetentionPolicyLike( getPersistentVolumeClaimRetentionPolicy() != null ? getPersistentVolumeClaimRetentionPolicy() - : new io.kubernetes.client.openapi.models - .V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder() - .build()); + : new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - A> + public V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - item) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { return withNewPersistentVolumeClaimRetentionPolicyLike( getPersistentVolumeClaimRetentionPolicy() != null ? getPersistentVolumeClaimRetentionPolicy() : item); } - public java.lang.String getPodManagementPolicy() { + public String getPodManagementPolicy() { return this.podManagementPolicy; } - public A withPodManagementPolicy(java.lang.String podManagementPolicy) { + public A withPodManagementPolicy(String podManagementPolicy) { this.podManagementPolicy = podManagementPolicy; return (A) this; } - public java.lang.Boolean hasPodManagementPolicy() { + public Boolean hasPodManagementPolicy() { return this.podManagementPolicy != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } - public java.lang.Integer getRevisionHistoryLimit() { + public Integer getRevisionHistoryLimit() { return this.revisionHistoryLimit; } - public A withRevisionHistoryLimit(java.lang.Integer revisionHistoryLimit) { + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return (A) this; } - public java.lang.Boolean hasRevisionHistoryLimit() { + public Boolean hasRevisionHistoryLimit() { return this.revisionHistoryLimit != null; } @@ -208,25 +198,28 @@ public java.lang.Boolean hasRevisionHistoryLimit() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + @Deprecated + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -234,40 +227,33 @@ public V1StatefulSetSpecFluent.SelectorNested withNewSelector() { return new V1StatefulSetSpecFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetSpecFluentImpl.SelectorNestedImpl( - item); + public V1StatefulSetSpecFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new V1StatefulSetSpecFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - editSelector() { + public V1StatefulSetSpecFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - editOrNewSelector() { + public V1StatefulSetSpecFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1StatefulSetSpecFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } - public java.lang.String getServiceName() { + public String getServiceName() { return this.serviceName; } - public A withServiceName(java.lang.String serviceName) { + public A withServiceName(String serviceName) { this.serviceName = serviceName; return (A) this; } - public java.lang.Boolean hasServiceName() { + public Boolean hasServiceName() { return this.serviceName != null; } @@ -276,25 +262,28 @@ public java.lang.Boolean hasServiceName() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PodTemplateSpec getTemplate() { + @Deprecated + public V1PodTemplateSpec getTemplate() { return this.template != null ? this.template.build() : null; } - public io.kubernetes.client.openapi.models.V1PodTemplateSpec buildTemplate() { + public V1PodTemplateSpec buildTemplate() { return this.template != null ? this.template.build() : null; } - public A withTemplate(io.kubernetes.client.openapi.models.V1PodTemplateSpec template) { + public A withTemplate(V1PodTemplateSpec template) { _visitables.get("template").remove(this.template); if (template != null) { this.template = new V1PodTemplateSpecBuilder(template); _visitables.get("template").add(this.template); + } else { + this.template = null; + _visitables.get("template").remove(this.template); } return (A) this; } - public java.lang.Boolean hasTemplate() { + public Boolean hasTemplate() { return this.template != null; } @@ -302,27 +291,20 @@ public V1StatefulSetSpecFluent.TemplateNested withNewTemplate() { return new V1StatefulSetSpecFluentImpl.TemplateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - withNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetSpecFluentImpl.TemplateNestedImpl( - item); + public V1StatefulSetSpecFluent.TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new V1StatefulSetSpecFluentImpl.TemplateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - editTemplate() { + public V1StatefulSetSpecFluent.TemplateNested editTemplate() { return withNewTemplateLike(getTemplate()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - editOrNewTemplate() { + public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplate() { return withNewTemplateLike( - getTemplate() != null - ? getTemplate() - : new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder().build()); + getTemplate() != null ? getTemplate() : new V1PodTemplateSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested - editOrNewTemplateLike(io.kubernetes.client.openapi.models.V1PodTemplateSpec item) { + public V1StatefulSetSpecFluent.TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { return withNewTemplateLike(getTemplate() != null ? getTemplate() : item); } @@ -331,26 +313,28 @@ public V1StatefulSetSpecFluent.TemplateNested withNewTemplate() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy getUpdateStrategy() { + @Deprecated + public V1StatefulSetUpdateStrategy getUpdateStrategy() { return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy buildUpdateStrategy() { + public V1StatefulSetUpdateStrategy buildUpdateStrategy() { return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public A withUpdateStrategy( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy updateStrategy) { + public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { _visitables.get("updateStrategy").remove(this.updateStrategy); if (updateStrategy != null) { this.updateStrategy = new V1StatefulSetUpdateStrategyBuilder(updateStrategy); _visitables.get("updateStrategy").add(this.updateStrategy); + } else { + this.updateStrategy = null; + _visitables.get("updateStrategy").remove(this.updateStrategy); } return (A) this; } - public java.lang.Boolean hasUpdateStrategy() { + public Boolean hasUpdateStrategy() { return this.updateStrategy != null; } @@ -358,39 +342,32 @@ public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategy() { return new V1StatefulSetSpecFluentImpl.UpdateStrategyNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - withNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetSpecFluentImpl - .UpdateStrategyNestedImpl(item); + public V1StatefulSetSpecFluent.UpdateStrategyNested withNewUpdateStrategyLike( + V1StatefulSetUpdateStrategy item) { + return new V1StatefulSetSpecFluentImpl.UpdateStrategyNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - editUpdateStrategy() { + public V1StatefulSetSpecFluent.UpdateStrategyNested editUpdateStrategy() { return withNewUpdateStrategyLike(getUpdateStrategy()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategy() { + public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategy() { return withNewUpdateStrategyLike( getUpdateStrategy() != null ? getUpdateStrategy() - : new io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyBuilder().build()); + : new V1StatefulSetUpdateStrategyBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested - editOrNewUpdateStrategyLike( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy item) { + public V1StatefulSetSpecFluent.UpdateStrategyNested editOrNewUpdateStrategyLike( + V1StatefulSetUpdateStrategy item) { return withNewUpdateStrategyLike(getUpdateStrategy() != null ? getUpdateStrategy() : item); } - public A addToVolumeClaimTemplates( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + public A addToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = new java.util.ArrayList(); + this.volumeClaimTemplates = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables .get("volumeClaimTemplates") .add(index >= 0 ? index : _visitables.get("volumeClaimTemplates").size(), builder); @@ -398,15 +375,11 @@ public A addToVolumeClaimTemplates( return (A) this; } - public A setToVolumeClaimTemplates( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + public A setToVolumeClaimTemplates(Integer index, V1PersistentVolumeClaim item) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.volumeClaimTemplates = new ArrayList(); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); if (index < 0 || index >= _visitables.get("volumeClaimTemplates").size()) { _visitables.get("volumeClaimTemplates").add(builder); } else { @@ -423,29 +396,22 @@ public A setToVolumeClaimTemplates( public A addToVolumeClaimTemplates( io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.volumeClaimTemplates = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + 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) { + public A addAllToVolumeClaimTemplates(Collection items) { if (this.volumeClaimTemplates == null) { - this.volumeClaimTemplates = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder>(); + this.volumeClaimTemplates = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("volumeClaimTemplates").add(builder); this.volumeClaimTemplates.add(builder); } @@ -454,9 +420,8 @@ public A addAllToVolumeClaimTemplates( public A removeFromVolumeClaimTemplates( io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("volumeClaimTemplates").remove(builder); if (this.volumeClaimTemplates != null) { this.volumeClaimTemplates.remove(builder); @@ -465,11 +430,9 @@ public A removeFromVolumeClaimTemplates( return (A) this; } - public A removeAllFromVolumeClaimTemplates( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : items) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(item); + public A removeAllFromVolumeClaimTemplates(Collection items) { + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); _visitables.get("volumeClaimTemplates").remove(builder); if (this.volumeClaimTemplates != null) { this.volumeClaimTemplates.remove(builder); @@ -479,13 +442,12 @@ public A removeAllFromVolumeClaimTemplates( } public A removeMatchingFromVolumeClaimTemplates( - Predicate predicate) { + Predicate predicate) { if (volumeClaimTemplates == null) return (A) this; - final Iterator each = - volumeClaimTemplates.iterator(); + final Iterator each = volumeClaimTemplates.iterator(); final List visitables = _visitables.get("volumeClaimTemplates"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder = each.next(); + V1PersistentVolumeClaimBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -499,39 +461,30 @@ public A removeMatchingFromVolumeClaimTemplates( * * @return The buildable object. */ - @java.lang.Deprecated - public List - getVolumeClaimTemplates() { + @Deprecated + public List getVolumeClaimTemplates() { return volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; } - public java.util.List - buildVolumeClaimTemplates() { + public List buildVolumeClaimTemplates() { return volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildVolumeClaimTemplate( - java.lang.Integer index) { + public V1PersistentVolumeClaim buildVolumeClaimTemplate(Integer index) { return this.volumeClaimTemplates.get(index).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim - buildFirstVolumeClaimTemplate() { + public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate() { return this.volumeClaimTemplates.get(0).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim - buildLastVolumeClaimTemplate() { + public V1PersistentVolumeClaim buildLastVolumeClaimTemplate() { return this.volumeClaimTemplates.get(volumeClaimTemplates.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim - buildMatchingVolumeClaimTemplate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder item : - volumeClaimTemplates) { + public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate( + Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { if (predicate.test(item)) { return item.build(); } @@ -539,12 +492,9 @@ public io.kubernetes.client.openapi.models.V1PersistentVolumeClaim buildVolumeCl return null; } - public java.lang.Boolean hasMatchingVolumeClaimTemplate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder item : - volumeClaimTemplates) { + public Boolean hasMatchingVolumeClaimTemplate( + Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { if (predicate.test(item)) { return true; } @@ -552,16 +502,13 @@ public java.lang.Boolean hasMatchingVolumeClaimTemplate( return false; } - public A withVolumeClaimTemplates( - java.util.List - volumeClaimTemplates) { + public A withVolumeClaimTemplates(List volumeClaimTemplates) { if (this.volumeClaimTemplates != null) { _visitables.get("volumeClaimTemplates").removeAll(this.volumeClaimTemplates); } if (volumeClaimTemplates != null) { - this.volumeClaimTemplates = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : - volumeClaimTemplates) { + this.volumeClaimTemplates = new ArrayList(); + for (V1PersistentVolumeClaim item : volumeClaimTemplates) { this.addToVolumeClaimTemplates(item); } } else { @@ -576,15 +523,14 @@ public A withVolumeClaimTemplates( this.volumeClaimTemplates.clear(); } if (volumeClaimTemplates != null) { - for (io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item : - volumeClaimTemplates) { + for (V1PersistentVolumeClaim item : volumeClaimTemplates) { this.addToVolumeClaimTemplates(item); } } return (A) this; } - public java.lang.Boolean hasVolumeClaimTemplates() { + public Boolean hasVolumeClaimTemplates() { return volumeClaimTemplates != null && !volumeClaimTemplates.isEmpty(); } @@ -592,48 +538,38 @@ public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTe return new V1StatefulSetSpecFluentImpl.VolumeClaimTemplatesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - addNewVolumeClaimTemplateLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetSpecFluentImpl - .VolumeClaimTemplatesNestedImpl(-1, item); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike( + V1PersistentVolumeClaim item) { + return new V1StatefulSetSpecFluentImpl.VolumeClaimTemplatesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - setNewVolumeClaimTemplateLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetSpecFluentImpl - .VolumeClaimTemplatesNestedImpl(index, item); + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike( + Integer index, V1PersistentVolumeClaim item) { + return new V1StatefulSetSpecFluentImpl.VolumeClaimTemplatesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editVolumeClaimTemplate(java.lang.Integer index) { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editVolumeClaimTemplate( + Integer index) { if (volumeClaimTemplates.size() <= index) throw new RuntimeException("Can't edit volumeClaimTemplates. Index exceeds size."); return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editFirstVolumeClaimTemplate() { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editFirstVolumeClaimTemplate() { if (volumeClaimTemplates.size() == 0) throw new RuntimeException("Can't edit first volumeClaimTemplates. The list is empty."); return setNewVolumeClaimTemplateLike(0, buildVolumeClaimTemplate(0)); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editLastVolumeClaimTemplate() { + public V1StatefulSetSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.VolumeClaimTemplatesNested - editMatchingVolumeClaimTemplate( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder> - predicate) { + public V1StatefulSetSpecFluent.VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate( + Predicate predicate) { int index = -1; for (int i = 0; i < volumeClaimTemplates.size(); i++) { if (predicate.test(volumeClaimTemplates.get(i))) { @@ -691,7 +627,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (minReadySeconds != null) { @@ -741,24 +677,17 @@ public java.lang.String toString() { class PersistentVolumeClaimRetentionPolicyNestedImpl extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluentImpl< V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested> - implements io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .PersistentVolumeClaimRetentionPolicyNested< - N>, - Nested { + implements V1StatefulSetSpecFluent.PersistentVolumeClaimRetentionPolicyNested, Nested { PersistentVolumeClaimRetentionPolicyNestedImpl( - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicy - item) { + V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { this.builder = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this, item); } PersistentVolumeClaimRetentionPolicyNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models - .V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this); + this.builder = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this); } - io.kubernetes.client.openapi.models.V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder - builder; + V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder builder; public N and() { return (N) @@ -773,17 +702,16 @@ public N endPersistentVolumeClaimRetentionPolicy() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.SelectorNested, - io.kubernetes.client.fluent.Nested { + implements V1StatefulSetSpecFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1StatefulSetSpecFluentImpl.this.withSelector(builder.build()); @@ -796,17 +724,16 @@ public N endSelector() { class TemplateNestedImpl extends V1PodTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.TemplateNested, - io.kubernetes.client.fluent.Nested { + implements V1StatefulSetSpecFluent.TemplateNested, Nested { TemplateNestedImpl(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } TemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder(this); + this.builder = new V1PodTemplateSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PodTemplateSpecBuilder builder; + V1PodTemplateSpecBuilder builder; public N and() { return (N) V1StatefulSetSpecFluentImpl.this.withTemplate(builder.build()); @@ -819,19 +746,16 @@ public N endTemplate() { class UpdateStrategyNestedImpl extends V1StatefulSetUpdateStrategyFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent.UpdateStrategyNested< - N>, - io.kubernetes.client.fluent.Nested { - UpdateStrategyNestedImpl(io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy item) { + implements V1StatefulSetSpecFluent.UpdateStrategyNested, Nested { + UpdateStrategyNestedImpl(V1StatefulSetUpdateStrategy item) { this.builder = new V1StatefulSetUpdateStrategyBuilder(this, item); } UpdateStrategyNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyBuilder(this); + this.builder = new V1StatefulSetUpdateStrategyBuilder(this); } - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyBuilder builder; + V1StatefulSetUpdateStrategyBuilder builder; public N and() { return (N) V1StatefulSetSpecFluentImpl.this.withUpdateStrategy(builder.build()); @@ -845,23 +769,19 @@ public N endUpdateStrategy() { class VolumeClaimTemplatesNestedImpl extends V1PersistentVolumeClaimFluentImpl< V1StatefulSetSpecFluent.VolumeClaimTemplatesNested> - implements io.kubernetes.client.openapi.models.V1StatefulSetSpecFluent - .VolumeClaimTemplatesNested< - N>, - io.kubernetes.client.fluent.Nested { - VolumeClaimTemplatesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1PersistentVolumeClaim item) { + implements V1StatefulSetSpecFluent.VolumeClaimTemplatesNested, Nested { + VolumeClaimTemplatesNestedImpl(Integer index, V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } VolumeClaimTemplatesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder(this); + this.builder = new V1PersistentVolumeClaimBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimBuilder builder; - java.lang.Integer index; + V1PersistentVolumeClaimBuilder builder; + Integer index; public N and() { return (N) V1StatefulSetSpecFluentImpl.this.setToVolumeClaimTemplates(index, builder.build()); 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 c91e5019e1..551796f61e 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 @@ -16,9 +16,7 @@ public class V1StatefulSetStatusBuilder extends V1StatefulSetStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSetStatus, - io.kubernetes.client.openapi.models.V1StatefulSetStatusBuilder> { + implements VisitableBuilder { public V1StatefulSetStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent) { } public V1StatefulSetStatusBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1StatefulSetStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatefulSetStatus(), validationEnabled); } public V1StatefulSetStatusBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetStatus instance) { + V1StatefulSetStatusFluent fluent, V1StatefulSetStatus instance) { this(fluent, instance, false); } public V1StatefulSetStatusBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetStatus instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetStatusFluent fluent, + V1StatefulSetStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAvailableReplicas(instance.getAvailableReplicas()); @@ -71,14 +67,11 @@ public V1StatefulSetStatusBuilder( this.validationEnabled = validationEnabled; } - public V1StatefulSetStatusBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetStatus instance) { + public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance) { this(instance, false); } - public V1StatefulSetStatusBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetStatus instance, - java.lang.Boolean validationEnabled) { + public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAvailableReplicas(instance.getAvailableReplicas()); @@ -103,10 +96,10 @@ public V1StatefulSetStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSetStatus build() { + public V1StatefulSetStatus build() { V1StatefulSetStatus buildable = new V1StatefulSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); buildable.setCollisionCount(fluent.getCollisionCount()); 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 f47bc800b2..c9e35fc3f2 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 @@ -23,31 +23,28 @@ public interface V1StatefulSetStatusFluent { public Integer getAvailableReplicas(); - public A withAvailableReplicas(java.lang.Integer availableReplicas); + public A withAvailableReplicas(Integer availableReplicas); public Boolean hasAvailableReplicas(); - public java.lang.Integer getCollisionCount(); + public Integer getCollisionCount(); - public A withCollisionCount(java.lang.Integer collisionCount); + public A withCollisionCount(Integer collisionCount); - public java.lang.Boolean hasCollisionCount(); + public Boolean hasCollisionCount(); - public A addToConditions(java.lang.Integer index, V1StatefulSetCondition item); + public A addToConditions(Integer index, V1StatefulSetCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSetCondition item); + public A setToConditions(Integer index, V1StatefulSetCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1StatefulSetCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -57,100 +54,85 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildCondition( - java.lang.Integer index); + public V1StatefulSetCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildFirstCondition(); + public V1StatefulSetCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildLastCondition(); + public V1StatefulSetCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> - predicate); + public V1StatefulSetCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1StatefulSetStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1StatefulSetCondition item); + public V1StatefulSetStatusFluent.ConditionsNested addNewConditionLike( + V1StatefulSetCondition item); - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSetCondition item); + public V1StatefulSetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1StatefulSetCondition item); - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1StatefulSetStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editFirstCondition(); + public V1StatefulSetStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editLastCondition(); + public V1StatefulSetStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> - predicate); + public V1StatefulSetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public java.lang.Integer getCurrentReplicas(); + public Integer getCurrentReplicas(); - public A withCurrentReplicas(java.lang.Integer currentReplicas); + public A withCurrentReplicas(Integer currentReplicas); - public java.lang.Boolean hasCurrentReplicas(); + public Boolean hasCurrentReplicas(); public String getCurrentRevision(); - public A withCurrentRevision(java.lang.String currentRevision); + public A withCurrentRevision(String currentRevision); - public java.lang.Boolean hasCurrentRevision(); + public Boolean hasCurrentRevision(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.Integer getReadyReplicas(); + public Integer getReadyReplicas(); - public A withReadyReplicas(java.lang.Integer readyReplicas); + public A withReadyReplicas(Integer readyReplicas); - public java.lang.Boolean hasReadyReplicas(); + public Boolean hasReadyReplicas(); - public java.lang.Integer getReplicas(); + public Integer getReplicas(); - public A withReplicas(java.lang.Integer replicas); + public A withReplicas(Integer replicas); - public java.lang.Boolean hasReplicas(); + public Boolean hasReplicas(); - public java.lang.String getUpdateRevision(); + public String getUpdateRevision(); - public A withUpdateRevision(java.lang.String updateRevision); + public A withUpdateRevision(String updateRevision); - public java.lang.Boolean hasUpdateRevision(); + public Boolean hasUpdateRevision(); - public java.lang.Integer getUpdatedReplicas(); + public Integer getUpdatedReplicas(); - public A withUpdatedReplicas(java.lang.Integer updatedReplicas); + public A withUpdatedReplicas(Integer updatedReplicas); - public java.lang.Boolean hasUpdatedReplicas(); + public Boolean hasUpdatedReplicas(); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java index df3898c6bd..7e7ad38bc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1StatefulSetStatusFluentImpl implements V1StatefulSetStatusFluent { public V1StatefulSetStatusFluentImpl() {} - public V1StatefulSetStatusFluentImpl( - io.kubernetes.client.openapi.models.V1StatefulSetStatus instance) { + public V1StatefulSetStatusFluentImpl(V1StatefulSetStatus instance) { this.withAvailableReplicas(instance.getAvailableReplicas()); this.withCollisionCount(instance.getCollisionCount()); @@ -50,21 +49,21 @@ public V1StatefulSetStatusFluentImpl( } private Integer availableReplicas; - private java.lang.Integer collisionCount; + private Integer collisionCount; private ArrayList conditions; - private java.lang.Integer currentReplicas; + private Integer currentReplicas; private String currentRevision; private Long observedGeneration; - private java.lang.Integer readyReplicas; - private java.lang.Integer replicas; - private java.lang.String updateRevision; - private java.lang.Integer updatedReplicas; + private Integer readyReplicas; + private Integer replicas; + private String updateRevision; + private Integer updatedReplicas; - public java.lang.Integer getAvailableReplicas() { + public Integer getAvailableReplicas() { return this.availableReplicas; } - public A withAvailableReplicas(java.lang.Integer availableReplicas) { + public A withAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; return (A) this; } @@ -73,27 +72,24 @@ public Boolean hasAvailableReplicas() { return this.availableReplicas != null; } - public java.lang.Integer getCollisionCount() { + public Integer getCollisionCount() { return this.collisionCount; } - public A withCollisionCount(java.lang.Integer collisionCount) { + public A withCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; return (A) this; } - public java.lang.Boolean hasCollisionCount() { + public Boolean hasCollisionCount() { return this.collisionCount != null; } - public A addToConditions(java.lang.Integer index, V1StatefulSetCondition item) { + public A addToConditions(Integer index, V1StatefulSetCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(item); + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -101,15 +97,11 @@ public A addToConditions(java.lang.Integer index, V1StatefulSetCondition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSetCondition item) { + public A setToConditions(Integer index, V1StatefulSetCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(item); + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -125,29 +117,22 @@ public A setToConditions( public A addToConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StatefulSetCondition item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StatefulSetCondition item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(item); + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -156,9 +141,8 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { - for (io.kubernetes.client.openapi.models.V1StatefulSetCondition item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(item); + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -167,11 +151,9 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1StatefulSetCondition item : items) { - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -180,14 +162,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder = each.next(); + V1StatefulSetConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -202,33 +182,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildCondition( - java.lang.Integer index) { + public V1StatefulSetCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildFirstCondition() { + public V1StatefulSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildLastCondition() { + public V1StatefulSetCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder item : conditions) { + public V1StatefulSetCondition buildMatchingCondition( + Predicate predicate) { + for (V1StatefulSetConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -236,11 +212,8 @@ public io.kubernetes.client.openapi.models.V1StatefulSetCondition buildMatchingC return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1StatefulSetConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -248,14 +221,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1StatefulSetCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1StatefulSetCondition item : conditions) { this.addToConditions(item); } } else { @@ -270,14 +242,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1StatefulSetCondition item : conditions) { + for (V1StatefulSetCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -285,45 +257,36 @@ public V1StatefulSetStatusFluent.ConditionsNested addNewCondition() { return new V1StatefulSetStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1StatefulSetCondition item) { + public V1StatefulSetStatusFluent.ConditionsNested addNewConditionLike( + V1StatefulSetCondition item) { return new V1StatefulSetStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1StatefulSetCondition item) { - return new io.kubernetes.client.openapi.models.V1StatefulSetStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1StatefulSetStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1StatefulSetCondition item) { + return new V1StatefulSetStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1StatefulSetStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editFirstCondition() { + public V1StatefulSetStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editLastCondition() { + public V1StatefulSetStatusFluent.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 io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder> - predicate) { + public V1StatefulSetStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -335,94 +298,94 @@ public V1StatefulSetStatusFluent.ConditionsNested addNewCondition() { return setNewConditionLike(index, buildCondition(index)); } - public java.lang.Integer getCurrentReplicas() { + public Integer getCurrentReplicas() { return this.currentReplicas; } - public A withCurrentReplicas(java.lang.Integer currentReplicas) { + public A withCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; return (A) this; } - public java.lang.Boolean hasCurrentReplicas() { + public Boolean hasCurrentReplicas() { return this.currentReplicas != null; } - public java.lang.String getCurrentRevision() { + public String getCurrentRevision() { return this.currentRevision; } - public A withCurrentRevision(java.lang.String currentRevision) { + public A withCurrentRevision(String currentRevision) { this.currentRevision = currentRevision; return (A) this; } - public java.lang.Boolean hasCurrentRevision() { + public Boolean hasCurrentRevision() { return this.currentRevision != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.Integer getReadyReplicas() { + public Integer getReadyReplicas() { return this.readyReplicas; } - public A withReadyReplicas(java.lang.Integer readyReplicas) { + public A withReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; return (A) this; } - public java.lang.Boolean hasReadyReplicas() { + public Boolean hasReadyReplicas() { return this.readyReplicas != null; } - public java.lang.Integer getReplicas() { + public Integer getReplicas() { return this.replicas; } - public A withReplicas(java.lang.Integer replicas) { + public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public java.lang.Boolean hasReplicas() { + public Boolean hasReplicas() { return this.replicas != null; } - public java.lang.String getUpdateRevision() { + public String getUpdateRevision() { return this.updateRevision; } - public A withUpdateRevision(java.lang.String updateRevision) { + public A withUpdateRevision(String updateRevision) { this.updateRevision = updateRevision; return (A) this; } - public java.lang.Boolean hasUpdateRevision() { + public Boolean hasUpdateRevision() { return this.updateRevision != null; } - public java.lang.Integer getUpdatedReplicas() { + public Integer getUpdatedReplicas() { return this.updatedReplicas; } - public A withUpdatedReplicas(java.lang.Integer updatedReplicas) { + public A withUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; return (A) this; } - public java.lang.Boolean hasUpdatedReplicas() { + public Boolean hasUpdatedReplicas() { return this.updatedReplicas != null; } @@ -475,7 +438,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (availableReplicas != null) { @@ -524,21 +487,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1StatefulSetConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatefulSetStatusFluent.ConditionsNested, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatefulSetCondition item) { + implements V1StatefulSetStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1StatefulSetCondition item) { this.index = index; this.builder = new V1StatefulSetConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder(this); + this.builder = new V1StatefulSetConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1StatefulSetConditionBuilder builder; - java.lang.Integer index; + V1StatefulSetConditionBuilder builder; + Integer index; public N and() { return (N) V1StatefulSetStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java index 51f2d6ec8c..da094391b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java @@ -16,9 +16,7 @@ public class V1StatefulSetUpdateStrategyBuilder extends V1StatefulSetUpdateStrategyFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy, - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyBuilder> { + implements VisitableBuilder { public V1StatefulSetUpdateStrategyBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent f } public V1StatefulSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent fluent, - java.lang.Boolean validationEnabled) { + V1StatefulSetUpdateStrategyFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatefulSetUpdateStrategy(), validationEnabled); } public V1StatefulSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy instance) { + V1StatefulSetUpdateStrategyFluent fluent, V1StatefulSetUpdateStrategy instance) { this(fluent, instance, false); } public V1StatefulSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent fluent, - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetUpdateStrategyFluent fluent, + V1StatefulSetUpdateStrategy instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withRollingUpdate(instance.getRollingUpdate()); @@ -55,14 +51,12 @@ public V1StatefulSetUpdateStrategyBuilder( this.validationEnabled = validationEnabled; } - public V1StatefulSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy instance) { + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategy instance) { this(instance, false); } public V1StatefulSetUpdateStrategyBuilder( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy instance, - java.lang.Boolean validationEnabled) { + V1StatefulSetUpdateStrategy instance, Boolean validationEnabled) { this.fluent = this; this.withRollingUpdate(instance.getRollingUpdate()); @@ -71,10 +65,10 @@ public V1StatefulSetUpdateStrategyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent fluent; - java.lang.Boolean validationEnabled; + V1StatefulSetUpdateStrategyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy build() { + public V1StatefulSetUpdateStrategy build() { V1StatefulSetUpdateStrategy buildable = new V1StatefulSetUpdateStrategy(); buildable.setRollingUpdate(fluent.getRollingUpdate()); buildable.setType(fluent.getType()); 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 d4eeda6d63..4b97cace4a 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 @@ -27,39 +27,29 @@ public interface V1StatefulSetUpdateStrategyFluent withNewRollingUpdate(); - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - withNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy item); + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( + V1RollingUpdateStatefulSetStrategy item); - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - editRollingUpdate(); + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate(); - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - editOrNewRollingUpdate(); + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate(); - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - editOrNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy item); + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( + V1RollingUpdateStatefulSetStrategy item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface RollingUpdateNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java index b0bbf131e6..3f34c1f1c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluentImpl.java @@ -21,8 +21,7 @@ public class V1StatefulSetUpdateStrategyFluentImpl implements V1StatefulSetUpdateStrategyFluent { public V1StatefulSetUpdateStrategyFluentImpl() {} - public V1StatefulSetUpdateStrategyFluentImpl( - io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategy instance) { + public V1StatefulSetUpdateStrategyFluentImpl(V1StatefulSetUpdateStrategy instance) { this.withRollingUpdate(instance.getRollingUpdate()); this.withType(instance.getType()); @@ -37,21 +36,22 @@ public V1StatefulSetUpdateStrategyFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy getRollingUpdate() { + public V1RollingUpdateStatefulSetStrategy getRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy - buildRollingUpdate() { + public V1RollingUpdateStatefulSetStrategy buildRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public A withRollingUpdate( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy rollingUpdate) { + public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { _visitables.get("rollingUpdate").remove(this.rollingUpdate); if (rollingUpdate != null) { this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); _visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + _visitables.get("rollingUpdate").remove(this.rollingUpdate); } return (A) this; } @@ -64,46 +64,37 @@ public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUp return new V1StatefulSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - withNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy item) { + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested withNewRollingUpdateLike( + V1RollingUpdateStatefulSetStrategy item) { return new V1StatefulSetUpdateStrategyFluentImpl.RollingUpdateNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - editRollingUpdate() { + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editRollingUpdate() { return withNewRollingUpdateLike(getRollingUpdate()); } - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - editOrNewRollingUpdate() { + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdate() { return withNewRollingUpdateLike( getRollingUpdate() != null ? getRollingUpdate() - : new io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyBuilder() - .build()); + : new V1RollingUpdateStatefulSetStrategyBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent.RollingUpdateNested< - A> - editOrNewRollingUpdateLike( - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy item) { + public V1StatefulSetUpdateStrategyFluent.RollingUpdateNested editOrNewRollingUpdateLike( + V1RollingUpdateStatefulSetStrategy item) { return withNewRollingUpdateLike(getRollingUpdate() != null ? getRollingUpdate() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -122,7 +113,7 @@ public int hashCode() { return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (rollingUpdate != null) { @@ -140,20 +131,16 @@ public java.lang.String toString() { class RollingUpdateNestedImpl extends V1RollingUpdateStatefulSetStrategyFluentImpl< V1StatefulSetUpdateStrategyFluent.RollingUpdateNested> - implements io.kubernetes.client.openapi.models.V1StatefulSetUpdateStrategyFluent - .RollingUpdateNested< - N>, - Nested { + implements V1StatefulSetUpdateStrategyFluent.RollingUpdateNested, Nested { RollingUpdateNestedImpl(V1RollingUpdateStatefulSetStrategy item) { this.builder = new V1RollingUpdateStatefulSetStrategyBuilder(this, item); } RollingUpdateNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyBuilder(this); + this.builder = new V1RollingUpdateStatefulSetStrategyBuilder(this); } - io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategyBuilder builder; + V1RollingUpdateStatefulSetStrategyBuilder builder; public N and() { return (N) V1StatefulSetUpdateStrategyFluentImpl.this.withRollingUpdate(builder.build()); 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 8d7b0a339c..b7e77769f0 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StatusBuilder extends V1StatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Status, - io.kubernetes.client.openapi.models.V1StatusBuilder> { + implements VisitableBuilder { public V1StatusBuilder() { this(false); } @@ -30,22 +28,15 @@ public V1StatusBuilder(V1StatusFluent fluent) { this(fluent, false); } - public V1StatusBuilder( - io.kubernetes.client.openapi.models.V1StatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StatusBuilder(V1StatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1Status(), validationEnabled); } - public V1StatusBuilder( - io.kubernetes.client.openapi.models.V1StatusFluent fluent, - io.kubernetes.client.openapi.models.V1Status instance) { + public V1StatusBuilder(V1StatusFluent fluent, V1Status instance) { this(fluent, instance, false); } - public V1StatusBuilder( - io.kubernetes.client.openapi.models.V1StatusFluent fluent, - io.kubernetes.client.openapi.models.V1Status instance, - java.lang.Boolean validationEnabled) { + public V1StatusBuilder(V1StatusFluent fluent, V1Status instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -66,12 +57,11 @@ public V1StatusBuilder( this.validationEnabled = validationEnabled; } - public V1StatusBuilder(io.kubernetes.client.openapi.models.V1Status instance) { + public V1StatusBuilder(V1Status instance) { this(instance, false); } - public V1StatusBuilder( - io.kubernetes.client.openapi.models.V1Status instance, java.lang.Boolean validationEnabled) { + public V1StatusBuilder(V1Status instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -92,10 +82,10 @@ public V1StatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatusFluent fluent; - java.lang.Boolean validationEnabled; + V1StatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Status build() { + public V1Status build() { V1Status buildable = new V1Status(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setCode(fluent.getCode()); 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 f064073114..e71b2b469b 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StatusCauseBuilder extends V1StatusCauseFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatusCause, - io.kubernetes.client.openapi.models.V1StatusCauseBuilder> { + implements VisitableBuilder { public V1StatusCauseBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1StatusCauseBuilder(V1StatusCauseFluent fluent) { this(fluent, false); } - public V1StatusCauseBuilder( - io.kubernetes.client.openapi.models.V1StatusCauseFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StatusCauseBuilder(V1StatusCauseFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatusCause(), validationEnabled); } - public V1StatusCauseBuilder( - io.kubernetes.client.openapi.models.V1StatusCauseFluent fluent, - io.kubernetes.client.openapi.models.V1StatusCause instance) { + public V1StatusCauseBuilder(V1StatusCauseFluent fluent, V1StatusCause instance) { this(fluent, instance, false); } public V1StatusCauseBuilder( - io.kubernetes.client.openapi.models.V1StatusCauseFluent fluent, - io.kubernetes.client.openapi.models.V1StatusCause instance, - java.lang.Boolean validationEnabled) { + V1StatusCauseFluent fluent, V1StatusCause instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withField(instance.getField()); @@ -56,13 +48,11 @@ public V1StatusCauseBuilder( this.validationEnabled = validationEnabled; } - public V1StatusCauseBuilder(io.kubernetes.client.openapi.models.V1StatusCause instance) { + public V1StatusCauseBuilder(V1StatusCause instance) { this(instance, false); } - public V1StatusCauseBuilder( - io.kubernetes.client.openapi.models.V1StatusCause instance, - java.lang.Boolean validationEnabled) { + public V1StatusCauseBuilder(V1StatusCause instance, Boolean validationEnabled) { this.fluent = this; this.withField(instance.getField()); @@ -73,10 +63,10 @@ public V1StatusCauseBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatusCauseFluent fluent; - java.lang.Boolean validationEnabled; + V1StatusCauseFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatusCause build() { + public V1StatusCause build() { V1StatusCause buildable = new V1StatusCause(); buildable.setField(fluent.getField()); buildable.setMessage(fluent.getMessage()); 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 f8c3ae0201..ec298ef9ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java @@ -18,19 +18,19 @@ public interface V1StatusCauseFluent> extends Fluent { public String getField(); - public A withField(java.lang.String field); + public A withField(String field); public Boolean hasField(); - public java.lang.String getMessage(); + public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java index 8acb16de8c..b8e2f7ea09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluentImpl.java @@ -20,7 +20,7 @@ public class V1StatusCauseFluentImpl> extends B implements V1StatusCauseFluent { public V1StatusCauseFluentImpl() {} - public V1StatusCauseFluentImpl(io.kubernetes.client.openapi.models.V1StatusCause instance) { + public V1StatusCauseFluentImpl(V1StatusCause instance) { this.withField(instance.getField()); this.withMessage(instance.getMessage()); @@ -29,14 +29,14 @@ public V1StatusCauseFluentImpl(io.kubernetes.client.openapi.models.V1StatusCause } private String field; - private java.lang.String message; - private java.lang.String reason; + private String message; + private String reason; - public java.lang.String getField() { + public String getField() { return this.field; } - public A withField(java.lang.String field) { + public A withField(String field) { this.field = field; return (A) this; } @@ -45,29 +45,29 @@ public Boolean hasField() { return this.field != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } @@ -85,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(field, message, reason, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (field != null) { 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 a79e9ae6c0..2f21412b09 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StatusDetailsBuilder extends V1StatusDetailsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StatusDetails, - io.kubernetes.client.openapi.models.V1StatusDetailsBuilder> { + implements VisitableBuilder { public V1StatusDetailsBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent) { this(fluent, false); } - public V1StatusDetailsBuilder( - io.kubernetes.client.openapi.models.V1StatusDetailsFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent, Boolean validationEnabled) { this(fluent, new V1StatusDetails(), validationEnabled); } - public V1StatusDetailsBuilder( - io.kubernetes.client.openapi.models.V1StatusDetailsFluent fluent, - io.kubernetes.client.openapi.models.V1StatusDetails instance) { + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent, V1StatusDetails instance) { this(fluent, instance, false); } public V1StatusDetailsBuilder( - io.kubernetes.client.openapi.models.V1StatusDetailsFluent fluent, - io.kubernetes.client.openapi.models.V1StatusDetails instance, - java.lang.Boolean validationEnabled) { + V1StatusDetailsFluent fluent, V1StatusDetails instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCauses(instance.getCauses()); @@ -62,13 +54,11 @@ public V1StatusDetailsBuilder( this.validationEnabled = validationEnabled; } - public V1StatusDetailsBuilder(io.kubernetes.client.openapi.models.V1StatusDetails instance) { + public V1StatusDetailsBuilder(V1StatusDetails instance) { this(instance, false); } - public V1StatusDetailsBuilder( - io.kubernetes.client.openapi.models.V1StatusDetails instance, - java.lang.Boolean validationEnabled) { + public V1StatusDetailsBuilder(V1StatusDetails instance, Boolean validationEnabled) { this.fluent = this; this.withCauses(instance.getCauses()); @@ -85,10 +75,10 @@ public V1StatusDetailsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StatusDetailsFluent fluent; - java.lang.Boolean validationEnabled; + V1StatusDetailsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StatusDetails build() { + public V1StatusDetails build() { V1StatusDetails buildable = new V1StatusDetails(); buildable.setCauses(fluent.getCauses()); buildable.setGroup(fluent.getGroup()); 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 af60f6d78f..63f85cca0a 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 @@ -22,17 +22,15 @@ public interface V1StatusDetailsFluent> extends Fluent { public A addToCauses(Integer index, V1StatusCause item); - public A setToCauses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatusCause item); + public A setToCauses(Integer index, V1StatusCause item); public A addToCauses(io.kubernetes.client.openapi.models.V1StatusCause... items); - public A addAllToCauses(Collection items); + public A addAllToCauses(Collection items); public A removeFromCauses(io.kubernetes.client.openapi.models.V1StatusCause... items); - public A removeAllFromCauses( - java.util.Collection items); + public A removeAllFromCauses(Collection items); public A removeMatchingFromCauses(Predicate predicate); @@ -42,79 +40,70 @@ public A removeAllFromCauses( * @return The buildable object. */ @Deprecated - public List getCauses(); + public List getCauses(); - public java.util.List buildCauses(); + public List buildCauses(); - public io.kubernetes.client.openapi.models.V1StatusCause buildCause(java.lang.Integer index); + public V1StatusCause buildCause(Integer index); - public io.kubernetes.client.openapi.models.V1StatusCause buildFirstCause(); + public V1StatusCause buildFirstCause(); - public io.kubernetes.client.openapi.models.V1StatusCause buildLastCause(); + public V1StatusCause buildLastCause(); - public io.kubernetes.client.openapi.models.V1StatusCause buildMatchingCause( - java.util.function.Predicate - predicate); + public V1StatusCause buildMatchingCause(Predicate predicate); - public Boolean hasMatchingCause( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCause(Predicate predicate); - public A withCauses(java.util.List causes); + public A withCauses(List causes); public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes); - public java.lang.Boolean hasCauses(); + public Boolean hasCauses(); public V1StatusDetailsFluent.CausesNested addNewCause(); - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested addNewCauseLike( - io.kubernetes.client.openapi.models.V1StatusCause item); + public V1StatusDetailsFluent.CausesNested addNewCauseLike(V1StatusCause item); - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested setNewCauseLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatusCause item); + public V1StatusDetailsFluent.CausesNested setNewCauseLike(Integer index, V1StatusCause item); - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested editCause( - java.lang.Integer index); + public V1StatusDetailsFluent.CausesNested editCause(Integer index); - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested editFirstCause(); + public V1StatusDetailsFluent.CausesNested editFirstCause(); - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested editLastCause(); + public V1StatusDetailsFluent.CausesNested editLastCause(); - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested - editMatchingCause( - java.util.function.Predicate - predicate); + public V1StatusDetailsFluent.CausesNested editMatchingCause( + Predicate predicate); public String getGroup(); - public A withGroup(java.lang.String group); + public A withGroup(String group); - public java.lang.Boolean hasGroup(); + public Boolean hasGroup(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Integer getRetryAfterSeconds(); + public Integer getRetryAfterSeconds(); - public A withRetryAfterSeconds(java.lang.Integer retryAfterSeconds); + public A withRetryAfterSeconds(Integer retryAfterSeconds); - public java.lang.Boolean hasRetryAfterSeconds(); + public Boolean hasRetryAfterSeconds(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); public interface CausesNested extends Nested, V1StatusCauseFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java index 33079bda5f..398358143d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluentImpl.java @@ -26,7 +26,7 @@ public class V1StatusDetailsFluentImpl> exten implements V1StatusDetailsFluent { public V1StatusDetailsFluentImpl() {} - public V1StatusDetailsFluentImpl(io.kubernetes.client.openapi.models.V1StatusDetails instance) { + public V1StatusDetailsFluentImpl(V1StatusDetails instance) { this.withCauses(instance.getCauses()); this.withGroup(instance.getGroup()); @@ -42,31 +42,26 @@ public V1StatusDetailsFluentImpl(io.kubernetes.client.openapi.models.V1StatusDet private ArrayList causes; private String group; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; private Integer retryAfterSeconds; - private java.lang.String uid; + private String uid; - public A addToCauses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatusCause item) { + public A addToCauses(Integer index, V1StatusCause item) { if (this.causes == null) { - this.causes = new java.util.ArrayList(); + this.causes = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder = - new io.kubernetes.client.openapi.models.V1StatusCauseBuilder(item); + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); _visitables.get("causes").add(index >= 0 ? index : _visitables.get("causes").size(), builder); this.causes.add(index >= 0 ? index : causes.size(), builder); return (A) this; } - public A setToCauses( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatusCause item) { + public A setToCauses(Integer index, V1StatusCause item) { if (this.causes == null) { - this.causes = - new java.util.ArrayList(); + this.causes = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder = - new io.kubernetes.client.openapi.models.V1StatusCauseBuilder(item); + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); if (index < 0 || index >= _visitables.get("causes").size()) { _visitables.get("causes").add(builder); } else { @@ -82,26 +77,22 @@ public A setToCauses( public A addToCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { if (this.causes == null) { - this.causes = - new java.util.ArrayList(); + this.causes = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StatusCause item : items) { - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder = - new io.kubernetes.client.openapi.models.V1StatusCauseBuilder(item); + 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) { + public A addAllToCauses(Collection items) { if (this.causes == null) { - this.causes = - new java.util.ArrayList(); + this.causes = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StatusCause item : items) { - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder = - new io.kubernetes.client.openapi.models.V1StatusCauseBuilder(item); + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); _visitables.get("causes").add(builder); this.causes.add(builder); } @@ -109,9 +100,8 @@ public A addAllToCauses(Collection items) { - for (io.kubernetes.client.openapi.models.V1StatusCause item : items) { - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder = - new io.kubernetes.client.openapi.models.V1StatusCauseBuilder(item); + public A removeAllFromCauses(Collection items) { + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); _visitables.get("causes").remove(builder); if (this.causes != null) { this.causes.remove(builder); @@ -133,14 +121,12 @@ public A removeAllFromCauses( return (A) this; } - public A removeMatchingFromCauses( - Predicate predicate) { + public A removeMatchingFromCauses(Predicate predicate) { if (causes == null) return (A) this; - final Iterator each = - causes.iterator(); + final Iterator each = causes.iterator(); final List visitables = _visitables.get("causes"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder = each.next(); + V1StatusCauseBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -155,30 +141,28 @@ public A removeMatchingFromCauses( * @return The buildable object. */ @Deprecated - public List getCauses() { + public List getCauses() { return causes != null ? build(causes) : null; } - public java.util.List buildCauses() { + public List buildCauses() { return causes != null ? build(causes) : null; } - public io.kubernetes.client.openapi.models.V1StatusCause buildCause(java.lang.Integer index) { + public V1StatusCause buildCause(Integer index) { return this.causes.get(index).build(); } - public io.kubernetes.client.openapi.models.V1StatusCause buildFirstCause() { + public V1StatusCause buildFirstCause() { return this.causes.get(0).build(); } - public io.kubernetes.client.openapi.models.V1StatusCause buildLastCause() { + public V1StatusCause buildLastCause() { return this.causes.get(causes.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1StatusCause buildMatchingCause( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1StatusCauseBuilder item : causes) { + public V1StatusCause buildMatchingCause(Predicate predicate) { + for (V1StatusCauseBuilder item : causes) { if (predicate.test(item)) { return item.build(); } @@ -186,10 +170,8 @@ public io.kubernetes.client.openapi.models.V1StatusCause buildMatchingCause( return null; } - public Boolean hasMatchingCause( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1StatusCauseBuilder item : causes) { + public Boolean hasMatchingCause(Predicate predicate) { + for (V1StatusCauseBuilder item : causes) { if (predicate.test(item)) { return true; } @@ -197,13 +179,13 @@ public Boolean hasMatchingCause( return false; } - public A withCauses(java.util.List causes) { + public A withCauses(List causes) { if (this.causes != null) { _visitables.get("causes").removeAll(this.causes); } if (causes != null) { - this.causes = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1StatusCause item : causes) { + this.causes = new ArrayList(); + for (V1StatusCause item : causes) { this.addToCauses(item); } } else { @@ -217,14 +199,14 @@ public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes) this.causes.clear(); } if (causes != null) { - for (io.kubernetes.client.openapi.models.V1StatusCause item : causes) { + for (V1StatusCause item : causes) { this.addToCauses(item); } } return (A) this; } - public java.lang.Boolean hasCauses() { + public Boolean hasCauses() { return causes != null && !causes.isEmpty(); } @@ -232,41 +214,34 @@ public V1StatusDetailsFluent.CausesNested addNewCause() { return new V1StatusDetailsFluentImpl.CausesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested addNewCauseLike( - io.kubernetes.client.openapi.models.V1StatusCause item) { + public V1StatusDetailsFluent.CausesNested addNewCauseLike(V1StatusCause item) { return new V1StatusDetailsFluentImpl.CausesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested setNewCauseLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatusCause item) { - return new io.kubernetes.client.openapi.models.V1StatusDetailsFluentImpl.CausesNestedImpl( - index, item); + public V1StatusDetailsFluent.CausesNested setNewCauseLike(Integer index, V1StatusCause item) { + return new V1StatusDetailsFluentImpl.CausesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested editCause( - java.lang.Integer index) { + public V1StatusDetailsFluent.CausesNested editCause(Integer index) { if (causes.size() <= index) throw new RuntimeException("Can't edit causes. Index exceeds size."); return setNewCauseLike(index, buildCause(index)); } - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested - editFirstCause() { + public V1StatusDetailsFluent.CausesNested editFirstCause() { if (causes.size() == 0) throw new RuntimeException("Can't edit first causes. The list is empty."); return setNewCauseLike(0, buildCause(0)); } - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested editLastCause() { + public V1StatusDetailsFluent.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)); } - public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested - editMatchingCause( - java.util.function.Predicate - predicate) { + public V1StatusDetailsFluent.CausesNested editMatchingCause( + Predicate predicate) { int index = -1; for (int i = 0; i < causes.size(); i++) { if (predicate.test(causes.get(i))) { @@ -278,68 +253,68 @@ public io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested return setNewCauseLike(index, buildCause(index)); } - public java.lang.String getGroup() { + public String getGroup() { return this.group; } - public A withGroup(java.lang.String group) { + public A withGroup(String group) { this.group = group; return (A) this; } - public java.lang.Boolean hasGroup() { + public Boolean hasGroup() { return this.group != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Integer getRetryAfterSeconds() { + public Integer getRetryAfterSeconds() { return this.retryAfterSeconds; } - public A withRetryAfterSeconds(java.lang.Integer retryAfterSeconds) { + public A withRetryAfterSeconds(Integer retryAfterSeconds) { this.retryAfterSeconds = retryAfterSeconds; return (A) this; } - public java.lang.Boolean hasRetryAfterSeconds() { + public Boolean hasRetryAfterSeconds() { return this.retryAfterSeconds != null; } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } @@ -363,7 +338,7 @@ public int hashCode() { causes, group, kind, name, retryAfterSeconds, uid, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (causes != null && !causes.isEmpty()) { @@ -395,21 +370,19 @@ public java.lang.String toString() { } class CausesNestedImpl extends V1StatusCauseFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatusDetailsFluent.CausesNested, - Nested { - CausesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StatusCause item) { + implements V1StatusDetailsFluent.CausesNested, Nested { + CausesNestedImpl(Integer index, V1StatusCause item) { this.index = index; this.builder = new V1StatusCauseBuilder(this, item); } CausesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1StatusCauseBuilder(this); + this.builder = new V1StatusCauseBuilder(this); } - io.kubernetes.client.openapi.models.V1StatusCauseBuilder builder; - java.lang.Integer index; + V1StatusCauseBuilder builder; + Integer index; public N and() { return (N) V1StatusDetailsFluentImpl.this.setToCauses(index, builder.build()); 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 eb473a1d14..f7cbbc4a8c 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 @@ -19,15 +19,15 @@ public interface V1StatusFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public Integer getCode(); - public A withCode(java.lang.Integer code); + public A withCode(Integer code); - public java.lang.Boolean hasCode(); + public Boolean hasCode(); /** * This method has been deprecated, please use method buildDetails instead. @@ -37,73 +37,69 @@ public interface V1StatusFluent> extends Fluent { @Deprecated public V1StatusDetails getDetails(); - public io.kubernetes.client.openapi.models.V1StatusDetails buildDetails(); + public V1StatusDetails buildDetails(); - public A withDetails(io.kubernetes.client.openapi.models.V1StatusDetails details); + public A withDetails(V1StatusDetails details); - public java.lang.Boolean hasDetails(); + public Boolean hasDetails(); public V1StatusFluent.DetailsNested withNewDetails(); - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested withNewDetailsLike( - io.kubernetes.client.openapi.models.V1StatusDetails item); + public V1StatusFluent.DetailsNested withNewDetailsLike(V1StatusDetails item); - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested editDetails(); + public V1StatusFluent.DetailsNested editDetails(); - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested editOrNewDetails(); + public V1StatusFluent.DetailsNested editOrNewDetails(); - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested editOrNewDetailsLike( - io.kubernetes.client.openapi.models.V1StatusDetails item); + public V1StatusFluent.DetailsNested editOrNewDetailsLike(V1StatusDetails item); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getMessage(); + public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1StatusFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item); + public V1StatusFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested editMetadata(); + public V1StatusFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested editOrNewMetadata(); + public V1StatusFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item); + public V1StatusFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public interface DetailsNested extends Nested, V1StatusDetailsFluent> { @@ -113,8 +109,7 @@ public interface DetailsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java index 7682cad538..2635ffa216 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluentImpl.java @@ -21,7 +21,7 @@ public class V1StatusFluentImpl> extends BaseFluent< implements V1StatusFluent { public V1StatusFluentImpl() {} - public V1StatusFluentImpl(io.kubernetes.client.openapi.models.V1Status instance) { + public V1StatusFluentImpl(V1Status instance) { this.withApiVersion(instance.getApiVersion()); this.withCode(instance.getCode()); @@ -42,17 +42,17 @@ public V1StatusFluentImpl(io.kubernetes.client.openapi.models.V1Status instance) private String apiVersion; private Integer code; private V1StatusDetailsBuilder details; - private java.lang.String kind; - private java.lang.String message; + private String kind; + private String message; private V1ListMetaBuilder metadata; - private java.lang.String reason; - private java.lang.String status; + private String reason; + private String status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -61,16 +61,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.Integer getCode() { + public Integer getCode() { return this.code; } - public A withCode(java.lang.Integer code) { + public A withCode(Integer code) { this.code = code; return (A) this; } - public java.lang.Boolean hasCode() { + public Boolean hasCode() { return this.code != null; } @@ -80,24 +80,27 @@ public java.lang.Boolean hasCode() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1StatusDetails getDetails() { + public V1StatusDetails getDetails() { return this.details != null ? this.details.build() : null; } - public io.kubernetes.client.openapi.models.V1StatusDetails buildDetails() { + public V1StatusDetails buildDetails() { return this.details != null ? this.details.build() : null; } - public A withDetails(io.kubernetes.client.openapi.models.V1StatusDetails details) { + public A withDetails(V1StatusDetails details) { _visitables.get("details").remove(this.details); if (details != null) { this.details = new V1StatusDetailsBuilder(details); _visitables.get("details").add(this.details); + } else { + this.details = null; + _visitables.get("details").remove(this.details); } return (A) this; } - public java.lang.Boolean hasDetails() { + public Boolean hasDetails() { return this.details != null; } @@ -105,50 +108,46 @@ public V1StatusFluent.DetailsNested withNewDetails() { return new V1StatusFluentImpl.DetailsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested withNewDetailsLike( - io.kubernetes.client.openapi.models.V1StatusDetails item) { + public V1StatusFluent.DetailsNested withNewDetailsLike(V1StatusDetails item) { return new V1StatusFluentImpl.DetailsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested editDetails() { + public V1StatusFluent.DetailsNested editDetails() { return withNewDetailsLike(getDetails()); } - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested editOrNewDetails() { + public V1StatusFluent.DetailsNested editOrNewDetails() { return withNewDetailsLike( - getDetails() != null - ? getDetails() - : new io.kubernetes.client.openapi.models.V1StatusDetailsBuilder().build()); + getDetails() != null ? getDetails() : new V1StatusDetailsBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested editOrNewDetailsLike( - io.kubernetes.client.openapi.models.V1StatusDetails item) { + public V1StatusFluent.DetailsNested editOrNewDetailsLike(V1StatusDetails item) { return withNewDetailsLike(getDetails() != null ? getDetails() : item); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } @@ -157,25 +156,28 @@ public java.lang.Boolean hasMessage() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -183,50 +185,46 @@ public V1StatusFluent.MetadataNested withNewMetadata() { return new V1StatusFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1StatusFluentImpl.MetadataNestedImpl(item); + public V1StatusFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1StatusFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested editMetadata() { + public V1StatusFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested editOrNewMetadata() { + public V1StatusFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested editOrNewMetadataLike( - io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1StatusFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -251,7 +249,7 @@ public int hashCode() { apiVersion, code, details, kind, message, metadata, reason, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -291,16 +289,16 @@ public java.lang.String toString() { } class DetailsNestedImpl extends V1StatusDetailsFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatusFluent.DetailsNested, Nested { - DetailsNestedImpl(io.kubernetes.client.openapi.models.V1StatusDetails item) { + implements V1StatusFluent.DetailsNested, Nested { + DetailsNestedImpl(V1StatusDetails item) { this.builder = new V1StatusDetailsBuilder(this, item); } DetailsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1StatusDetailsBuilder(this); + this.builder = new V1StatusDetailsBuilder(this); } - io.kubernetes.client.openapi.models.V1StatusDetailsBuilder builder; + V1StatusDetailsBuilder builder; public N and() { return (N) V1StatusFluentImpl.this.withDetails(builder.build()); @@ -312,17 +310,16 @@ public N endDetails() { } class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1StatusFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1StatusFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1StatusFluentImpl.this.withMetadata(builder.build()); 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 56f16de86a..b473b68fa3 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1StorageClassBuilder extends V1StorageClassFluentImpl - implements VisitableBuilder< - V1StorageClass, io.kubernetes.client.openapi.models.V1StorageClassBuilder> { + implements VisitableBuilder { public V1StorageClassBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1StorageClassBuilder(V1StorageClassFluent fluent) { this(fluent, false); } - public V1StorageClassBuilder( - io.kubernetes.client.openapi.models.V1StorageClassFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StorageClassBuilder(V1StorageClassFluent fluent, Boolean validationEnabled) { this(fluent, new V1StorageClass(), validationEnabled); } - public V1StorageClassBuilder( - io.kubernetes.client.openapi.models.V1StorageClassFluent fluent, - io.kubernetes.client.openapi.models.V1StorageClass instance) { + public V1StorageClassBuilder(V1StorageClassFluent fluent, V1StorageClass instance) { this(fluent, instance, false); } public V1StorageClassBuilder( - io.kubernetes.client.openapi.models.V1StorageClassFluent fluent, - io.kubernetes.client.openapi.models.V1StorageClass instance, - java.lang.Boolean validationEnabled) { + V1StorageClassFluent fluent, V1StorageClass instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); @@ -69,13 +62,11 @@ public V1StorageClassBuilder( this.validationEnabled = validationEnabled; } - public V1StorageClassBuilder(io.kubernetes.client.openapi.models.V1StorageClass instance) { + public V1StorageClassBuilder(V1StorageClass instance) { this(instance, false); } - public V1StorageClassBuilder( - io.kubernetes.client.openapi.models.V1StorageClass instance, - java.lang.Boolean validationEnabled) { + public V1StorageClassBuilder(V1StorageClass instance, Boolean validationEnabled) { this.fluent = this; this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); @@ -100,10 +91,10 @@ public V1StorageClassBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StorageClassFluent fluent; - java.lang.Boolean validationEnabled; + V1StorageClassFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StorageClass build() { + public V1StorageClass build() { V1StorageClass buildable = new V1StorageClass(); buildable.setAllowVolumeExpansion(fluent.getAllowVolumeExpansion()); buildable.setAllowedTopologies(fluent.getAllowedTopologies()); 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 071b9255dc..e1fea9fb1f 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 @@ -23,26 +23,23 @@ public interface V1StorageClassFluent> extends Fluent { public Boolean getAllowVolumeExpansion(); - public A withAllowVolumeExpansion(java.lang.Boolean allowVolumeExpansion); + public A withAllowVolumeExpansion(Boolean allowVolumeExpansion); - public java.lang.Boolean hasAllowVolumeExpansion(); + public Boolean hasAllowVolumeExpansion(); public A addToAllowedTopologies(Integer index, V1TopologySelectorTerm item); - public A setToAllowedTopologies( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1TopologySelectorTerm item); + public A setToAllowedTopologies(Integer index, V1TopologySelectorTerm item); public A addToAllowedTopologies( io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items); - public A addAllToAllowedTopologies( - Collection items); + public A addAllToAllowedTopologies(Collection items); public A removeFromAllowedTopologies( io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items); - public A removeAllFromAllowedTopologies( - java.util.Collection items); + public A removeAllFromAllowedTopologies(Collection items); public A removeMatchingFromAllowedTopologies(Predicate predicate); @@ -52,162 +49,142 @@ public A removeAllFromAllowedTopologies( * @return The buildable object. */ @Deprecated - public List getAllowedTopologies(); + public List getAllowedTopologies(); - public java.util.List - buildAllowedTopologies(); + public List buildAllowedTopologies(); - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildAllowedTopology( - java.lang.Integer index); + public V1TopologySelectorTerm buildAllowedTopology(Integer index); - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildFirstAllowedTopology(); + public V1TopologySelectorTerm buildFirstAllowedTopology(); - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildLastAllowedTopology(); + public V1TopologySelectorTerm buildLastAllowedTopology(); - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildMatchingAllowedTopology( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder> - predicate); + public V1TopologySelectorTerm buildMatchingAllowedTopology( + Predicate predicate); - public java.lang.Boolean hasMatchingAllowedTopology( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder> - predicate); + public Boolean hasMatchingAllowedTopology(Predicate predicate); - public A withAllowedTopologies( - java.util.List allowedTopologies); + public A withAllowedTopologies(List allowedTopologies); public A withAllowedTopologies( io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies); - public java.lang.Boolean hasAllowedTopologies(); + public Boolean hasAllowedTopologies(); public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopology(); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - addNewAllowedTopologyLike(io.kubernetes.client.openapi.models.V1TopologySelectorTerm item); + public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopologyLike( + V1TopologySelectorTerm item); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - setNewAllowedTopologyLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1TopologySelectorTerm item); + public V1StorageClassFluent.AllowedTopologiesNested setNewAllowedTopologyLike( + Integer index, V1TopologySelectorTerm item); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editAllowedTopology(java.lang.Integer index); + public V1StorageClassFluent.AllowedTopologiesNested editAllowedTopology(Integer index); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editFirstAllowedTopology(); + public V1StorageClassFluent.AllowedTopologiesNested editFirstAllowedTopology(); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editLastAllowedTopology(); + public V1StorageClassFluent.AllowedTopologiesNested editLastAllowedTopology(); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editMatchingAllowedTopology( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder> - predicate); + public V1StorageClassFluent.AllowedTopologiesNested editMatchingAllowedTopology( + Predicate predicate); public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); - public java.lang.Boolean hasApiVersion(); + public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1StorageClassFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1StorageClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested editMetadata(); + public V1StorageClassFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested - editOrNewMetadata(); + public V1StorageClassFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1StorageClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); - public A addToMountOptions(java.lang.Integer index, java.lang.String item); + public A addToMountOptions(Integer index, String item); - public A setToMountOptions(java.lang.Integer index, java.lang.String item); + public A setToMountOptions(Integer index, String item); public A addToMountOptions(java.lang.String... items); - public A addAllToMountOptions(java.util.Collection items); + public A addAllToMountOptions(Collection items); public A removeFromMountOptions(java.lang.String... items); - public A removeAllFromMountOptions(java.util.Collection items); + public A removeAllFromMountOptions(Collection items); - public java.util.List getMountOptions(); + public List getMountOptions(); - public java.lang.String getMountOption(java.lang.Integer index); + public String getMountOption(Integer index); - public java.lang.String getFirstMountOption(); + public String getFirstMountOption(); - public java.lang.String getLastMountOption(); + public String getLastMountOption(); - public java.lang.String getMatchingMountOption( - java.util.function.Predicate predicate); + public String getMatchingMountOption(Predicate predicate); - public java.lang.Boolean hasMatchingMountOption( - java.util.function.Predicate predicate); + public Boolean hasMatchingMountOption(Predicate predicate); - public A withMountOptions(java.util.List mountOptions); + public A withMountOptions(List mountOptions); public A withMountOptions(java.lang.String... mountOptions); - public java.lang.Boolean hasMountOptions(); + public Boolean hasMountOptions(); - public A addToParameters(java.lang.String key, java.lang.String value); + public A addToParameters(String key, String value); - public A addToParameters(Map map); + public A addToParameters(Map map); - public A removeFromParameters(java.lang.String key); + public A removeFromParameters(String key); - public A removeFromParameters(java.util.Map map); + public A removeFromParameters(Map map); - public java.util.Map getParameters(); + public Map getParameters(); - public A withParameters(java.util.Map parameters); + public A withParameters(Map parameters); - public java.lang.Boolean hasParameters(); + public Boolean hasParameters(); - public java.lang.String getProvisioner(); + public String getProvisioner(); - public A withProvisioner(java.lang.String provisioner); + public A withProvisioner(String provisioner); - public java.lang.Boolean hasProvisioner(); + public Boolean hasProvisioner(); - public java.lang.String getReclaimPolicy(); + public String getReclaimPolicy(); - public A withReclaimPolicy(java.lang.String reclaimPolicy); + public A withReclaimPolicy(String reclaimPolicy); - public java.lang.Boolean hasReclaimPolicy(); + public Boolean hasReclaimPolicy(); - public java.lang.String getVolumeBindingMode(); + public String getVolumeBindingMode(); - public A withVolumeBindingMode(java.lang.String volumeBindingMode); + public A withVolumeBindingMode(String volumeBindingMode); - public java.lang.Boolean hasVolumeBindingMode(); + public Boolean hasVolumeBindingMode(); public A withAllowVolumeExpansion(); @@ -220,8 +197,7 @@ public interface AllowedTopologiesNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { + extends Nested, V1ObjectMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java index d3e9ef3dbd..07f83f519d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluentImpl.java @@ -28,7 +28,7 @@ public class V1StorageClassFluentImpl> extends implements V1StorageClassFluent { public V1StorageClassFluentImpl() {} - public V1StorageClassFluentImpl(io.kubernetes.client.openapi.models.V1StorageClass instance) { + public V1StorageClassFluentImpl(V1StorageClass instance) { this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); this.withAllowedTopologies(instance.getAllowedTopologies()); @@ -53,35 +53,32 @@ public V1StorageClassFluentImpl(io.kubernetes.client.openapi.models.V1StorageCla private Boolean allowVolumeExpansion; private ArrayList allowedTopologies; private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; - private List mountOptions; - private Map parameters; - private java.lang.String provisioner; - private java.lang.String reclaimPolicy; - private java.lang.String volumeBindingMode; + private List mountOptions; + private Map parameters; + private String provisioner; + private String reclaimPolicy; + private String volumeBindingMode; - public java.lang.Boolean getAllowVolumeExpansion() { + public Boolean getAllowVolumeExpansion() { return this.allowVolumeExpansion; } - public A withAllowVolumeExpansion(java.lang.Boolean allowVolumeExpansion) { + public A withAllowVolumeExpansion(Boolean allowVolumeExpansion) { this.allowVolumeExpansion = allowVolumeExpansion; return (A) this; } - public java.lang.Boolean hasAllowVolumeExpansion() { + public Boolean hasAllowVolumeExpansion() { return this.allowVolumeExpansion != null; } public A addToAllowedTopologies(Integer index, V1TopologySelectorTerm item) { if (this.allowedTopologies == null) { - this.allowedTopologies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder>(); + this.allowedTopologies = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(item); + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); _visitables .get("allowedTopologies") .add(index >= 0 ? index : _visitables.get("allowedTopologies").size(), builder); @@ -89,15 +86,11 @@ public A addToAllowedTopologies(Integer index, V1TopologySelectorTerm item) { return (A) this; } - public A setToAllowedTopologies( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1TopologySelectorTerm item) { + public A setToAllowedTopologies(Integer index, V1TopologySelectorTerm item) { if (this.allowedTopologies == null) { - this.allowedTopologies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder>(); + this.allowedTopologies = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(item); + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); if (index < 0 || index >= _visitables.get("allowedTopologies").size()) { _visitables.get("allowedTopologies").add(builder); } else { @@ -114,29 +107,22 @@ public A setToAllowedTopologies( public A addToAllowedTopologies( io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { if (this.allowedTopologies == null) { - this.allowedTopologies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder>(); + this.allowedTopologies = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1TopologySelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(item); + 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) { + public A addAllToAllowedTopologies(Collection items) { if (this.allowedTopologies == null) { - this.allowedTopologies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder>(); + this.allowedTopologies = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1TopologySelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(item); + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); _visitables.get("allowedTopologies").add(builder); this.allowedTopologies.add(builder); } @@ -145,9 +131,8 @@ public A addAllToAllowedTopologies( public A removeFromAllowedTopologies( io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(item); + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); _visitables.get("allowedTopologies").remove(builder); if (this.allowedTopologies != null) { this.allowedTopologies.remove(builder); @@ -156,11 +141,9 @@ public A removeFromAllowedTopologies( return (A) this; } - public A removeAllFromAllowedTopologies( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorTerm item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(item); + public A removeAllFromAllowedTopologies(Collection items) { + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); _visitables.get("allowedTopologies").remove(builder); if (this.allowedTopologies != null) { this.allowedTopologies.remove(builder); @@ -169,14 +152,12 @@ public A removeAllFromAllowedTopologies( return (A) this; } - public A removeMatchingFromAllowedTopologies( - Predicate predicate) { + public A removeMatchingFromAllowedTopologies(Predicate predicate) { if (allowedTopologies == null) return (A) this; - final Iterator each = - allowedTopologies.iterator(); + final Iterator each = allowedTopologies.iterator(); final List visitables = _visitables.get("allowedTopologies"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder = each.next(); + V1TopologySelectorTermBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -191,35 +172,29 @@ public A removeMatchingFromAllowedTopologies( * @return The buildable object. */ @Deprecated - public java.util.List - getAllowedTopologies() { + public List getAllowedTopologies() { return allowedTopologies != null ? build(allowedTopologies) : null; } - public java.util.List - buildAllowedTopologies() { + public List buildAllowedTopologies() { return allowedTopologies != null ? build(allowedTopologies) : null; } - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildAllowedTopology( - java.lang.Integer index) { + public V1TopologySelectorTerm buildAllowedTopology(Integer index) { return this.allowedTopologies.get(index).build(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildFirstAllowedTopology() { + public V1TopologySelectorTerm buildFirstAllowedTopology() { return this.allowedTopologies.get(0).build(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildLastAllowedTopology() { + public V1TopologySelectorTerm buildLastAllowedTopology() { return this.allowedTopologies.get(allowedTopologies.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildMatchingAllowedTopology( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder item : - allowedTopologies) { + public V1TopologySelectorTerm buildMatchingAllowedTopology( + Predicate predicate) { + for (V1TopologySelectorTermBuilder item : allowedTopologies) { if (predicate.test(item)) { return item.build(); } @@ -227,12 +202,8 @@ public io.kubernetes.client.openapi.models.V1TopologySelectorTerm buildMatchingA return null; } - public java.lang.Boolean hasMatchingAllowedTopology( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder item : - allowedTopologies) { + public Boolean hasMatchingAllowedTopology(Predicate predicate) { + for (V1TopologySelectorTermBuilder item : allowedTopologies) { if (predicate.test(item)) { return true; } @@ -240,15 +211,13 @@ public java.lang.Boolean hasMatchingAllowedTopology( return false; } - public A withAllowedTopologies( - java.util.List - allowedTopologies) { + public A withAllowedTopologies(List allowedTopologies) { if (this.allowedTopologies != null) { _visitables.get("allowedTopologies").removeAll(this.allowedTopologies); } if (allowedTopologies != null) { - this.allowedTopologies = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1TopologySelectorTerm item : allowedTopologies) { + this.allowedTopologies = new ArrayList(); + for (V1TopologySelectorTerm item : allowedTopologies) { this.addToAllowedTopologies(item); } } else { @@ -263,14 +232,14 @@ public A withAllowedTopologies( this.allowedTopologies.clear(); } if (allowedTopologies != null) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorTerm item : allowedTopologies) { + for (V1TopologySelectorTerm item : allowedTopologies) { this.addToAllowedTopologies(item); } } return (A) this; } - public java.lang.Boolean hasAllowedTopologies() { + public Boolean hasAllowedTopologies() { return allowedTopologies != null && !allowedTopologies.isEmpty(); } @@ -278,46 +247,37 @@ public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopology() { return new V1StorageClassFluentImpl.AllowedTopologiesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - addNewAllowedTopologyLike(io.kubernetes.client.openapi.models.V1TopologySelectorTerm item) { + public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopologyLike( + V1TopologySelectorTerm item) { return new V1StorageClassFluentImpl.AllowedTopologiesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - setNewAllowedTopologyLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySelectorTerm item) { - return new io.kubernetes.client.openapi.models.V1StorageClassFluentImpl - .AllowedTopologiesNestedImpl(index, item); + public V1StorageClassFluent.AllowedTopologiesNested setNewAllowedTopologyLike( + Integer index, V1TopologySelectorTerm item) { + return new V1StorageClassFluentImpl.AllowedTopologiesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editAllowedTopology(java.lang.Integer index) { + public V1StorageClassFluent.AllowedTopologiesNested editAllowedTopology(Integer index) { if (allowedTopologies.size() <= index) throw new RuntimeException("Can't edit allowedTopologies. Index exceeds size."); return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editFirstAllowedTopology() { + public V1StorageClassFluent.AllowedTopologiesNested editFirstAllowedTopology() { if (allowedTopologies.size() == 0) throw new RuntimeException("Can't edit first allowedTopologies. The list is empty."); return setNewAllowedTopologyLike(0, buildAllowedTopology(0)); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editLastAllowedTopology() { + public V1StorageClassFluent.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)); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested - editMatchingAllowedTopology( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder> - predicate) { + public V1StorageClassFluent.AllowedTopologiesNested editMatchingAllowedTopology( + Predicate predicate) { int index = -1; for (int i = 0; i < allowedTopologies.size(); i++) { if (predicate.test(allowedTopologies.get(i))) { @@ -330,29 +290,29 @@ public V1StorageClassFluent.AllowedTopologiesNested addNewAllowedTopology() { return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); } - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } - public java.lang.Boolean hasApiVersion() { + public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -361,25 +321,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + @Deprecated + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -387,40 +350,34 @@ public V1StorageClassFluent.MetadataNested withNewMetadata() { return new V1StorageClassFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1StorageClassFluentImpl.MetadataNestedImpl( - item); + public V1StorageClassFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1StorageClassFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested editMetadata() { + public V1StorageClassFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested - editOrNewMetadata() { + public V1StorageClassFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1StorageClassFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToMountOptions(java.lang.Integer index, java.lang.String item) { + public A addToMountOptions(Integer index, String item) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } this.mountOptions.add(index, item); return (A) this; } - public A setToMountOptions(java.lang.Integer index, java.lang.String item) { + public A setToMountOptions(Integer index, String item) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } this.mountOptions.set(index, item); return (A) this; @@ -428,26 +385,26 @@ public A setToMountOptions(java.lang.Integer index, java.lang.String item) { public A addToMountOptions(java.lang.String... items) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.mountOptions.add(item); } return (A) this; } - public A addAllToMountOptions(java.util.Collection items) { + public A addAllToMountOptions(Collection items) { if (this.mountOptions == null) { - this.mountOptions = new java.util.ArrayList(); + this.mountOptions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.mountOptions.add(item); } return (A) this; } public A removeFromMountOptions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.mountOptions != null) { this.mountOptions.remove(item); } @@ -455,8 +412,8 @@ public A removeFromMountOptions(java.lang.String... items) { return (A) this; } - public A removeAllFromMountOptions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromMountOptions(Collection items) { + for (String item : items) { if (this.mountOptions != null) { this.mountOptions.remove(item); } @@ -464,25 +421,24 @@ public A removeAllFromMountOptions(java.util.Collection items) return (A) this; } - public java.util.List getMountOptions() { + public List getMountOptions() { return this.mountOptions; } - public java.lang.String getMountOption(java.lang.Integer index) { + public String getMountOption(Integer index) { return this.mountOptions.get(index); } - public java.lang.String getFirstMountOption() { + public String getFirstMountOption() { return this.mountOptions.get(0); } - public java.lang.String getLastMountOption() { + public String getLastMountOption() { return this.mountOptions.get(mountOptions.size() - 1); } - public java.lang.String getMatchingMountOption( - java.util.function.Predicate predicate) { - for (java.lang.String item : mountOptions) { + public String getMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { if (predicate.test(item)) { return item; } @@ -490,9 +446,8 @@ public java.lang.String getMatchingMountOption( return null; } - public java.lang.Boolean hasMatchingMountOption( - java.util.function.Predicate predicate) { - for (java.lang.String item : mountOptions) { + public Boolean hasMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { if (predicate.test(item)) { return true; } @@ -500,10 +455,10 @@ public java.lang.Boolean hasMatchingMountOption( return false; } - public A withMountOptions(java.util.List mountOptions) { + public A withMountOptions(List mountOptions) { if (mountOptions != null) { - this.mountOptions = new java.util.ArrayList(); - for (java.lang.String item : mountOptions) { + this.mountOptions = new ArrayList(); + for (String item : mountOptions) { this.addToMountOptions(item); } } else { @@ -517,18 +472,18 @@ public A withMountOptions(java.lang.String... mountOptions) { this.mountOptions.clear(); } if (mountOptions != null) { - for (java.lang.String item : mountOptions) { + for (String item : mountOptions) { this.addToMountOptions(item); } } return (A) this; } - public java.lang.Boolean hasMountOptions() { + public Boolean hasMountOptions() { return mountOptions != null && !mountOptions.isEmpty(); } - public A addToParameters(java.lang.String key, java.lang.String value) { + public A addToParameters(String key, String value) { if (this.parameters == null && key != null && value != null) { this.parameters = new LinkedHashMap(); } @@ -538,9 +493,9 @@ public A addToParameters(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToParameters(java.util.Map map) { + public A addToParameters(Map map) { if (this.parameters == null && map != null) { - this.parameters = new java.util.LinkedHashMap(); + this.parameters = new LinkedHashMap(); } if (map != null) { this.parameters.putAll(map); @@ -548,7 +503,7 @@ public A addToParameters(java.util.Map map) return (A) this; } - public A removeFromParameters(java.lang.String key) { + public A removeFromParameters(String key) { if (this.parameters == null) { return (A) this; } @@ -558,7 +513,7 @@ public A removeFromParameters(java.lang.String key) { return (A) this; } - public A removeFromParameters(java.util.Map map) { + public A removeFromParameters(Map map) { if (this.parameters == null) { return (A) this; } @@ -572,59 +527,59 @@ public A removeFromParameters(java.util.Map return (A) this; } - public java.util.Map getParameters() { + public Map getParameters() { return this.parameters; } - public A withParameters(java.util.Map parameters) { + public A withParameters(Map parameters) { if (parameters == null) { this.parameters = null; } else { - this.parameters = new java.util.LinkedHashMap(parameters); + this.parameters = new LinkedHashMap(parameters); } return (A) this; } - public java.lang.Boolean hasParameters() { + public Boolean hasParameters() { return this.parameters != null; } - public java.lang.String getProvisioner() { + public String getProvisioner() { return this.provisioner; } - public A withProvisioner(java.lang.String provisioner) { + public A withProvisioner(String provisioner) { this.provisioner = provisioner; return (A) this; } - public java.lang.Boolean hasProvisioner() { + public Boolean hasProvisioner() { return this.provisioner != null; } - public java.lang.String getReclaimPolicy() { + public String getReclaimPolicy() { return this.reclaimPolicy; } - public A withReclaimPolicy(java.lang.String reclaimPolicy) { + public A withReclaimPolicy(String reclaimPolicy) { this.reclaimPolicy = reclaimPolicy; return (A) this; } - public java.lang.Boolean hasReclaimPolicy() { + public Boolean hasReclaimPolicy() { return this.reclaimPolicy != null; } - public java.lang.String getVolumeBindingMode() { + public String getVolumeBindingMode() { return this.volumeBindingMode; } - public A withVolumeBindingMode(java.lang.String volumeBindingMode) { + public A withVolumeBindingMode(String volumeBindingMode) { this.volumeBindingMode = volumeBindingMode; return (A) this; } - public java.lang.Boolean hasVolumeBindingMode() { + public Boolean hasVolumeBindingMode() { return this.volumeBindingMode != null; } @@ -672,7 +627,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (allowVolumeExpansion != null) { @@ -725,21 +680,19 @@ public A withAllowVolumeExpansion() { class AllowedTopologiesNestedImpl extends V1TopologySelectorTermFluentImpl> - implements io.kubernetes.client.openapi.models.V1StorageClassFluent.AllowedTopologiesNested< - N>, - Nested { - AllowedTopologiesNestedImpl(java.lang.Integer index, V1TopologySelectorTerm item) { + implements V1StorageClassFluent.AllowedTopologiesNested, Nested { + AllowedTopologiesNestedImpl(Integer index, V1TopologySelectorTerm item) { this.index = index; this.builder = new V1TopologySelectorTermBuilder(this, item); } AllowedTopologiesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder(this); + this.builder = new V1TopologySelectorTermBuilder(this); } - io.kubernetes.client.openapi.models.V1TopologySelectorTermBuilder builder; - java.lang.Integer index; + V1TopologySelectorTermBuilder builder; + Integer index; public N and() { return (N) V1StorageClassFluentImpl.this.setToAllowedTopologies(index, builder.build()); @@ -751,17 +704,16 @@ public N endAllowedTopology() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1StorageClassFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1StorageClassFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1StorageClassFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java index d611c51339..5565d0ae4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java @@ -16,9 +16,7 @@ public class V1StorageClassListBuilder extends V1StorageClassListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StorageClassList, - io.kubernetes.client.openapi.models.V1StorageClassListBuilder> { + implements VisitableBuilder { public V1StorageClassListBuilder() { this(false); } @@ -31,22 +29,17 @@ public V1StorageClassListBuilder(V1StorageClassListFluent fluent) { this(fluent, false); } - public V1StorageClassListBuilder( - io.kubernetes.client.openapi.models.V1StorageClassListFluent fluent, - java.lang.Boolean validationEnabled) { + public V1StorageClassListBuilder(V1StorageClassListFluent fluent, Boolean validationEnabled) { this(fluent, new V1StorageClassList(), validationEnabled); } public V1StorageClassListBuilder( - io.kubernetes.client.openapi.models.V1StorageClassListFluent fluent, - io.kubernetes.client.openapi.models.V1StorageClassList instance) { + V1StorageClassListFluent fluent, V1StorageClassList instance) { this(fluent, instance, false); } public V1StorageClassListBuilder( - io.kubernetes.client.openapi.models.V1StorageClassListFluent fluent, - io.kubernetes.client.openapi.models.V1StorageClassList instance, - java.lang.Boolean validationEnabled) { + V1StorageClassListFluent fluent, V1StorageClassList instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +52,11 @@ public V1StorageClassListBuilder( this.validationEnabled = validationEnabled; } - public V1StorageClassListBuilder( - io.kubernetes.client.openapi.models.V1StorageClassList instance) { + public V1StorageClassListBuilder(V1StorageClassList instance) { this(instance, false); } - public V1StorageClassListBuilder( - io.kubernetes.client.openapi.models.V1StorageClassList instance, - java.lang.Boolean validationEnabled) { + public V1StorageClassListBuilder(V1StorageClassList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +69,10 @@ public V1StorageClassListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StorageClassListFluent fluent; - java.lang.Boolean validationEnabled; + V1StorageClassListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StorageClassList build() { + public V1StorageClassList build() { V1StorageClassList buildable = new V1StorageClassList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 3f2327d2f2..768fc51c67 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 @@ -22,23 +22,21 @@ public interface V1StorageClassListFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1StorageClass item); + public A addToItems(Integer index, V1StorageClass item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StorageClass item); + public A setToItems(Integer index, V1StorageClass item); public A addToItems(io.kubernetes.client.openapi.models.V1StorageClass... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1StorageClass... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -48,84 +46,70 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1StorageClass buildItem(java.lang.Integer index); + public V1StorageClass buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1StorageClass buildFirstItem(); + public V1StorageClass buildFirstItem(); - public io.kubernetes.client.openapi.models.V1StorageClass buildLastItem(); + public V1StorageClass buildLastItem(); - public io.kubernetes.client.openapi.models.V1StorageClass buildMatchingItem( - java.util.function.Predicate - predicate); + public V1StorageClass buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1StorageClassListFluent.ItemsNested addNewItem(); - public V1StorageClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1StorageClass item); + public V1StorageClassListFluent.ItemsNested addNewItemLike(V1StorageClass item); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StorageClass item); + public V1StorageClassListFluent.ItemsNested setNewItemLike(Integer index, V1StorageClass item); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1StorageClassListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested - editFirstItem(); + public V1StorageClassListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested editLastItem(); + public V1StorageClassListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1StorageClassListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1StorageClassListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1StorageClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - editMetadata(); + public V1StorageClassListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - editOrNewMetadata(); + public V1StorageClassListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1StorageClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1StorageClassFluent> { @@ -135,8 +119,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java index eaeda74f8d..0700e0cf18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluentImpl.java @@ -26,8 +26,7 @@ public class V1StorageClassListFluentImpl> extends BaseFluent implements V1StorageClassListFluent { public V1StorageClassListFluentImpl() {} - public V1StorageClassListFluentImpl( - io.kubernetes.client.openapi.models.V1StorageClassList instance) { + public V1StorageClassListFluentImpl(V1StorageClassList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1StorageClassListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1StorageClass item) { + public A addToItems(Integer index, V1StorageClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder = - new io.kubernetes.client.openapi.models.V1StorageClassBuilder(item); + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StorageClass item) { + public A setToItems(Integer index, V1StorageClass item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder = - new io.kubernetes.client.openapi.models.V1StorageClassBuilder(item); + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StorageClass item : items) { - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder = - new io.kubernetes.client.openapi.models.V1StorageClassBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1StorageClass item : items) { - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder = - new io.kubernetes.client.openapi.models.V1StorageClassBuilder(item); + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1StorageClass item : items) { - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder = - new io.kubernetes.client.openapi.models.V1StorageClassBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder = each.next(); + V1StorageClassBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1StorageClass buildItem(java.lang.Integer index) { + public V1StorageClass buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1StorageClass buildFirstItem() { + public V1StorageClass buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1StorageClass buildLastItem() { + public V1StorageClass buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1StorageClass buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1StorageClassBuilder item : items) { + public V1StorageClass buildMatchingItem(Predicate predicate) { + for (V1StorageClassBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1StorageClass buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1StorageClassBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1StorageClassBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1StorageClass item : items) { + this.items = new ArrayList(); + for (V1StorageClass item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items) this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1StorageClass item : items) { + for (V1StorageClass item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,40 +221,33 @@ public V1StorageClassListFluent.ItemsNested addNewItem() { return new V1StorageClassListFluentImpl.ItemsNestedImpl(); } - public V1StorageClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1StorageClass item) { + public V1StorageClassListFluent.ItemsNested addNewItemLike(V1StorageClass item) { return new V1StorageClassListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StorageClass item) { - return new io.kubernetes.client.openapi.models.V1StorageClassListFluentImpl.ItemsNestedImpl( - index, item); + public V1StorageClassListFluent.ItemsNested setNewItemLike( + Integer index, V1StorageClass item) { + return new V1StorageClassListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1StorageClassListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested - editFirstItem() { + public V1StorageClassListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested - editLastItem() { + public V1StorageClassListFluent.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 io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1StorageClassListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -285,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1StorageClassListFluent.ItemsNested< return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -303,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -329,27 +306,20 @@ public V1StorageClassListFluent.MetadataNested withNewMetadata() { return new V1StorageClassListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1StorageClassListFluentImpl.MetadataNestedImpl( - item); + public V1StorageClassListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1StorageClassListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - editMetadata() { + public V1StorageClassListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - editOrNewMetadata() { + public V1StorageClassListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1StorageClassListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -369,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -394,19 +364,18 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1StorageClassFluentImpl> implements V1StorageClassListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1StorageClass item) { + ItemsNestedImpl(Integer index, V1StorageClass item) { this.index = index; this.builder = new V1StorageClassBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1StorageClassBuilder(this); + this.builder = new V1StorageClassBuilder(this); } - io.kubernetes.client.openapi.models.V1StorageClassBuilder builder; - java.lang.Integer index; + V1StorageClassBuilder builder; + Integer index; public N and() { return (N) V1StorageClassListFluentImpl.this.setToItems(index, builder.build()); @@ -419,17 +388,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1StorageClassListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1StorageClassListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1StorageClassListFluentImpl.this.withMetadata(builder.build()); 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 d2219a1204..05fade4c95 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 @@ -17,8 +17,7 @@ public class V1StorageOSPersistentVolumeSourceBuilder extends V1StorageOSPersistentVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource, - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceBuilder> { + V1StorageOSPersistentVolumeSource, V1StorageOSPersistentVolumeSourceBuilder> { public V1StorageOSPersistentVolumeSourceBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1StorageOSPersistentVolumeSourceBuilder( } public V1StorageOSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1StorageOSPersistentVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1StorageOSPersistentVolumeSource(), validationEnabled); } public V1StorageOSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource instance) { + V1StorageOSPersistentVolumeSourceFluent fluent, + V1StorageOSPersistentVolumeSource instance) { this(fluent, instance, false); } public V1StorageOSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1StorageOSPersistentVolumeSourceFluent fluent, + V1StorageOSPersistentVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -62,14 +60,12 @@ public V1StorageOSPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1StorageOSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource instance) { + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSource instance) { this(instance, false); } public V1StorageOSPersistentVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1StorageOSPersistentVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -84,10 +80,10 @@ public V1StorageOSPersistentVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1StorageOSPersistentVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource build() { + public V1StorageOSPersistentVolumeSource build() { V1StorageOSPersistentVolumeSource buildable = new V1StorageOSPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setReadOnly(fluent.getReadOnly()); 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 4d81bf9e14..651715217c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java @@ -21,15 +21,15 @@ public interface V1StorageOSPersistentVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -39,45 +39,35 @@ public interface V1StorageOSPersistentVolumeSourceFluent< @Deprecated public V1ObjectReference getSecretRef(); - public io.kubernetes.client.openapi.models.V1ObjectReference buildSecretRef(); + public V1ObjectReference buildSecretRef(); - public A withSecretRef(io.kubernetes.client.openapi.models.V1ObjectReference secretRef); + public A withSecretRef(V1ObjectReference secretRef); - public java.lang.Boolean hasSecretRef(); + public Boolean hasSecretRef(); public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1ObjectReference item); - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - editSecretRef(); + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - editOrNewSecretRef(); + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1ObjectReference item); - public java.lang.String getVolumeName(); + public String getVolumeName(); - public A withVolumeName(java.lang.String volumeName); + public A withVolumeName(String volumeName); - public java.lang.Boolean hasVolumeName(); + public Boolean hasVolumeName(); - public java.lang.String getVolumeNamespace(); + public String getVolumeNamespace(); - public A withVolumeNamespace(java.lang.String volumeNamespace); + public A withVolumeNamespace(String volumeNamespace); - public java.lang.Boolean hasVolumeNamespace(); + public Boolean hasVolumeNamespace(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java index 8705a77e98..367a063949 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluentImpl.java @@ -22,8 +22,7 @@ public class V1StorageOSPersistentVolumeSourceFluentImpl< extends BaseFluent implements V1StorageOSPersistentVolumeSourceFluent { public V1StorageOSPersistentVolumeSourceFluentImpl() {} - public V1StorageOSPersistentVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSource instance) { + public V1StorageOSPersistentVolumeSourceFluentImpl(V1StorageOSPersistentVolumeSource instance) { this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -38,32 +37,32 @@ public V1StorageOSPersistentVolumeSourceFluentImpl( private String fsType; private Boolean readOnly; private V1ObjectReferenceBuilder secretRef; - private java.lang.String volumeName; - private java.lang.String volumeNamespace; + private String volumeName; + private String volumeNamespace; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -73,24 +72,27 @@ public java.lang.Boolean hasReadOnly() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getSecretRef() { + public V1ObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectReference buildSecretRef() { + public V1ObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1ObjectReference secretRef) { + public A withSecretRef(V1ObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { this.secretRef = new V1ObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -98,60 +100,48 @@ public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretR return new V1StorageOSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1ObjectReference item) { return new V1StorageOSPersistentVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - editSecretRef() { + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - editOrNewSecretRef() { + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1ObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - A> - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { + public V1StorageOSPersistentVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1ObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getVolumeName() { + public String getVolumeName() { return this.volumeName; } - public A withVolumeName(java.lang.String volumeName) { + public A withVolumeName(String volumeName) { this.volumeName = volumeName; return (A) this; } - public java.lang.Boolean hasVolumeName() { + public Boolean hasVolumeName() { return this.volumeName != null; } - public java.lang.String getVolumeNamespace() { + public String getVolumeNamespace() { return this.volumeNamespace; } - public A withVolumeNamespace(java.lang.String volumeNamespace) { + public A withVolumeNamespace(String volumeNamespace) { this.volumeNamespace = volumeNamespace; return (A) this; } - public java.lang.Boolean hasVolumeNamespace() { + public Boolean hasVolumeNamespace() { return this.volumeNamespace != null; } @@ -177,7 +167,7 @@ public int hashCode() { fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -211,19 +201,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1ObjectReferenceFluentImpl< V1StorageOSPersistentVolumeSourceFluent.SecretRefNested> - implements io.kubernetes.client.openapi.models.V1StorageOSPersistentVolumeSourceFluent - .SecretRefNested< - N>, - Nested { - SecretRefNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { + implements V1StorageOSPersistentVolumeSourceFluent.SecretRefNested, Nested { + SecretRefNestedImpl(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); + this.builder = new V1ObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; + V1ObjectReferenceBuilder builder; public N and() { return (N) V1StorageOSPersistentVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 dd9f67b4aa..ec0bdd1fef 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 @@ -16,9 +16,7 @@ public class V1StorageOSVolumeSourceBuilder extends V1StorageOSVolumeSourceFluentImpl - implements VisitableBuilder< - V1StorageOSVolumeSource, - io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceBuilder> { + implements VisitableBuilder { public V1StorageOSVolumeSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent) { } public V1StorageOSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1StorageOSVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1StorageOSVolumeSource(), validationEnabled); } public V1StorageOSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource instance) { + V1StorageOSVolumeSourceFluent fluent, V1StorageOSVolumeSource instance) { this(fluent, instance, false); } public V1StorageOSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1StorageOSVolumeSourceFluent fluent, + V1StorageOSVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -61,14 +57,12 @@ public V1StorageOSVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1StorageOSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource instance) { + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSource instance) { this(instance, false); } public V1StorageOSVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1StorageOSVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -83,10 +77,10 @@ public V1StorageOSVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1StorageOSVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSource build() { + public V1StorageOSVolumeSource build() { V1StorageOSVolumeSource buildable = new V1StorageOSVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setReadOnly(fluent.getReadOnly()); 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 8fb2f0913f..906900951c 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 @@ -20,15 +20,15 @@ public interface V1StorageOSVolumeSourceFluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); /** * This method has been deprecated, please use method buildSecretRef instead. @@ -38,37 +38,35 @@ public interface V1StorageOSVolumeSourceFluent withNewSecretRef(); - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item); - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - editSecretRef(); + public V1StorageOSVolumeSourceFluent.SecretRefNested editSecretRef(); - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - editOrNewSecretRef(); + public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRef(); - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item); + public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item); - public java.lang.String getVolumeName(); + public String getVolumeName(); - public A withVolumeName(java.lang.String volumeName); + public A withVolumeName(String volumeName); - public java.lang.Boolean hasVolumeName(); + public Boolean hasVolumeName(); - public java.lang.String getVolumeNamespace(); + public String getVolumeNamespace(); - public A withVolumeNamespace(java.lang.String volumeNamespace); + public A withVolumeNamespace(String volumeNamespace); - public java.lang.Boolean hasVolumeNamespace(); + public Boolean hasVolumeNamespace(); public A withReadOnly(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java index 2c8c8bd624..42d8d35caf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1StorageOSVolumeSourceFluentImpl implements V1StorageOSVolumeSourceFluent { public V1StorageOSVolumeSourceFluentImpl() {} - public V1StorageOSVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource instance) { + public V1StorageOSVolumeSourceFluentImpl(V1StorageOSVolumeSource instance) { this.withFsType(instance.getFsType()); this.withReadOnly(instance.getReadOnly()); @@ -37,32 +36,32 @@ public V1StorageOSVolumeSourceFluentImpl( private String fsType; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - private java.lang.String volumeName; - private java.lang.String volumeNamespace; + private String volumeName; + private String volumeNamespace; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } - public java.lang.Boolean hasFsType() { + public Boolean hasFsType() { return this.fsType != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } @@ -76,21 +75,23 @@ public V1LocalObjectReference getSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public io.kubernetes.client.openapi.models.V1LocalObjectReference buildSecretRef() { + public V1LocalObjectReference buildSecretRef() { return this.secretRef != null ? this.secretRef.build() : null; } - public A withSecretRef(io.kubernetes.client.openapi.models.V1LocalObjectReference secretRef) { + public A withSecretRef(V1LocalObjectReference secretRef) { _visitables.get("secretRef").remove(this.secretRef); if (secretRef != null) { - this.secretRef = - new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(secretRef); + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); _visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + _visitables.get("secretRef").remove(this.secretRef); } return (A) this; } - public java.lang.Boolean hasSecretRef() { + public Boolean hasSecretRef() { return this.secretRef != null; } @@ -98,52 +99,48 @@ public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRef() { return new V1StorageOSVolumeSourceFluentImpl.SecretRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - withNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1StorageOSVolumeSourceFluent.SecretRefNested withNewSecretRefLike( + V1LocalObjectReference item) { return new V1StorageOSVolumeSourceFluentImpl.SecretRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - editSecretRef() { + public V1StorageOSVolumeSourceFluent.SecretRefNested editSecretRef() { return withNewSecretRefLike(getSecretRef()); } - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - editOrNewSecretRef() { + public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRef() { return withNewSecretRefLike( - getSecretRef() != null - ? getSecretRef() - : new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder().build()); + getSecretRef() != null ? getSecretRef() : new V1LocalObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested - editOrNewSecretRefLike(io.kubernetes.client.openapi.models.V1LocalObjectReference item) { + public V1StorageOSVolumeSourceFluent.SecretRefNested editOrNewSecretRefLike( + V1LocalObjectReference item) { return withNewSecretRefLike(getSecretRef() != null ? getSecretRef() : item); } - public java.lang.String getVolumeName() { + public String getVolumeName() { return this.volumeName; } - public A withVolumeName(java.lang.String volumeName) { + public A withVolumeName(String volumeName) { this.volumeName = volumeName; return (A) this; } - public java.lang.Boolean hasVolumeName() { + public Boolean hasVolumeName() { return this.volumeName != null; } - public java.lang.String getVolumeNamespace() { + public String getVolumeNamespace() { return this.volumeNamespace; } - public A withVolumeNamespace(java.lang.String volumeNamespace) { + public A withVolumeNamespace(String volumeNamespace) { this.volumeNamespace = volumeNamespace; return (A) this; } - public java.lang.Boolean hasVolumeNamespace() { + public Boolean hasVolumeNamespace() { return this.volumeNamespace != null; } @@ -168,7 +165,7 @@ public int hashCode() { fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { @@ -201,18 +198,16 @@ public A withReadOnly() { class SecretRefNestedImpl extends V1LocalObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceFluent.SecretRefNested< - N>, - Nested { + implements V1StorageOSVolumeSourceFluent.SecretRefNested, Nested { SecretRefNestedImpl(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } SecretRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder(this); + this.builder = new V1LocalObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1LocalObjectReferenceBuilder builder; + V1LocalObjectReferenceBuilder builder; public N and() { return (N) V1StorageOSVolumeSourceFluentImpl.this.withSecretRef(builder.build()); 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 57f0537029..2ec8253841 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 @@ -16,8 +16,7 @@ public class V1SubjectAccessReviewBuilder extends V1SubjectAccessReviewFluentImpl - implements VisitableBuilder< - V1SubjectAccessReview, io.kubernetes.client.openapi.models.V1SubjectAccessReviewBuilder> { + implements VisitableBuilder { public V1SubjectAccessReviewBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1SubjectAccessReviewBuilder(Boolean validationEnabled) { this(new V1SubjectAccessReview(), validationEnabled); } - public V1SubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent fluent) { + public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent) { this(fluent, false); } public V1SubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent fluent, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewFluent fluent, Boolean validationEnabled) { this(fluent, new V1SubjectAccessReview(), validationEnabled); } public V1SubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectAccessReview instance) { + V1SubjectAccessReviewFluent fluent, V1SubjectAccessReview instance) { this(fluent, instance, false); } public V1SubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectAccessReview instance, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewFluent fluent, + V1SubjectAccessReview instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,11 @@ public V1SubjectAccessReviewBuilder( this.validationEnabled = validationEnabled; } - public V1SubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReview instance) { + public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance) { this(instance, false); } - public V1SubjectAccessReviewBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReview instance, - java.lang.Boolean validationEnabled) { + public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +76,10 @@ public V1SubjectAccessReviewBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent fluent; - java.lang.Boolean validationEnabled; + V1SubjectAccessReviewFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SubjectAccessReview build() { + public V1SubjectAccessReview build() { V1SubjectAccessReview buildable = new V1SubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 ba4fdf79bb..c04c3be9a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java @@ -20,15 +20,15 @@ public interface V1SubjectAccessReviewFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,80 +38,72 @@ public interface V1SubjectAccessReviewFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - editMetadata(); + public V1SubjectAccessReviewFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - editOrNewMetadata(); + public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewSpec getSpec(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec buildSpec(); + public V1SubjectAccessReviewSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec spec); + public A withSpec(V1SubjectAccessReviewSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1SubjectAccessReviewFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item); + public V1SubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested editSpec(); + public V1SubjectAccessReviewFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested - editOrNewSpec(); + public V1SubjectAccessReviewFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item); + public V1SubjectAccessReviewFluent.SpecNested editOrNewSpecLike( + V1SubjectAccessReviewSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewStatus getStatus(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus buildStatus(); + public V1SubjectAccessReviewStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus status); + public A withStatus(V1SubjectAccessReviewStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1SubjectAccessReviewFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item); + public V1SubjectAccessReviewFluent.StatusNested withNewStatusLike( + V1SubjectAccessReviewStatus item); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - editStatus(); + public V1SubjectAccessReviewFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - editOrNewStatus(); + public V1SubjectAccessReviewFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item); + public V1SubjectAccessReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectAccessReviewStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -121,7 +113,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SubjectAccessReviewSpecFluent> { public N and(); @@ -129,7 +121,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1SubjectAccessReviewStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java index 0f0c0924b6..364c5505ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluentImpl.java @@ -21,8 +21,7 @@ public class V1SubjectAccessReviewFluentImpl implements V1SubjectAccessReviewFluent { public V1SubjectAccessReviewFluentImpl() {} - public V1SubjectAccessReviewFluentImpl( - io.kubernetes.client.openapi.models.V1SubjectAccessReview instance) { + public V1SubjectAccessReviewFluentImpl(V1SubjectAccessReview instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1SubjectAccessReviewFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1SubjectAccessReviewSpecBuilder spec; private V1SubjectAccessReviewStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1SubjectAccessReviewFluent.MetadataNested withNewMetadata() { return new V1SubjectAccessReviewFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SubjectAccessReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1SubjectAccessReviewFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - editMetadata() { + public V1SubjectAccessReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - editOrNewMetadata() { + public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1SubjectAccessReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1SubjectAccessReviewFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec buildSpec() { + public V1SubjectAccessReviewSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec spec) { + public A withSpec(V1SubjectAccessReviewSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder(spec); + this.spec = new V1SubjectAccessReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,26 +150,21 @@ public V1SubjectAccessReviewFluent.SpecNested withNewSpec() { return new V1SubjectAccessReviewFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item) { - return new io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluentImpl.SpecNestedImpl( - item); + public V1SubjectAccessReviewFluent.SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { + return new V1SubjectAccessReviewFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested editSpec() { + public V1SubjectAccessReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested - editOrNewSpec() { + public V1SubjectAccessReviewFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1SubjectAccessReviewSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item) { + public V1SubjectAccessReviewFluent.SpecNested editOrNewSpecLike( + V1SubjectAccessReviewSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -179,26 +173,28 @@ public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNeste * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SubjectAccessReviewStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus buildStatus() { + public V1SubjectAccessReviewStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus status) { + public A withStatus(V1SubjectAccessReviewStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder(status); + this.status = new V1SubjectAccessReviewStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -206,27 +202,22 @@ public V1SubjectAccessReviewFluent.StatusNested withNewStatus() { return new V1SubjectAccessReviewFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item) { - return new io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluentImpl.StatusNestedImpl( - item); + public V1SubjectAccessReviewFluent.StatusNested withNewStatusLike( + V1SubjectAccessReviewStatus item) { + return new V1SubjectAccessReviewFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - editStatus() { + public V1SubjectAccessReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - editOrNewStatus() { + public V1SubjectAccessReviewFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1SubjectAccessReviewStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus item) { + public V1SubjectAccessReviewFluent.StatusNested editOrNewStatusLike( + V1SubjectAccessReviewStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -247,7 +238,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -276,17 +267,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.MetadataNested, - Nested { + implements V1SubjectAccessReviewFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1SubjectAccessReviewFluentImpl.this.withMetadata(builder.build()); @@ -299,17 +289,16 @@ public N endMetadata() { class SpecNestedImpl extends V1SubjectAccessReviewSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec item) { + implements V1SubjectAccessReviewFluent.SpecNested, Nested { + SpecNestedImpl(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder(this); + this.builder = new V1SubjectAccessReviewSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder builder; + V1SubjectAccessReviewSpecBuilder builder; public N and() { return (N) V1SubjectAccessReviewFluentImpl.this.withSpec(builder.build()); @@ -322,18 +311,16 @@ public N endSpec() { class StatusNestedImpl extends V1SubjectAccessReviewStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1SubjectAccessReviewFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1SubjectAccessReviewFluent.StatusNested, Nested { StatusNestedImpl(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder(this); + this.builder = new V1SubjectAccessReviewStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder builder; + V1SubjectAccessReviewStatusBuilder builder; public N and() { return (N) V1SubjectAccessReviewFluentImpl.this.withStatus(builder.build()); 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 1d4f89f198..16aaeab2bb 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 @@ -16,9 +16,7 @@ public class V1SubjectAccessReviewSpecBuilder extends V1SubjectAccessReviewSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec, - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecBuilder> { + implements VisitableBuilder { public V1SubjectAccessReviewSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluen } public V1SubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1SubjectAccessReviewSpec(), validationEnabled); } public V1SubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec instance) { + V1SubjectAccessReviewSpecFluent fluent, V1SubjectAccessReviewSpec instance) { this(fluent, instance, false); } public V1SubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewSpecFluent fluent, + V1SubjectAccessReviewSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withExtra(instance.getExtra()); @@ -63,14 +59,12 @@ public V1SubjectAccessReviewSpecBuilder( this.validationEnabled = validationEnabled; } - public V1SubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec instance) { + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpec instance) { this(instance, false); } public V1SubjectAccessReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewSpec instance, Boolean validationEnabled) { this.fluent = this; this.withExtra(instance.getExtra()); @@ -87,10 +81,10 @@ public V1SubjectAccessReviewSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1SubjectAccessReviewSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec build() { + public V1SubjectAccessReviewSpec build() { V1SubjectAccessReviewSpec buildable = new V1SubjectAccessReviewSpec(); buildable.setExtra(fluent.getExtra()); buildable.setGroups(fluent.getGroups()); 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 fcc7cb6774..6a63ade4ad 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 @@ -22,51 +22,49 @@ /** Generated */ public interface V1SubjectAccessReviewSpecFluent> extends Fluent { - public A addToExtra(String key, List value); + public A addToExtra(String key, List value); - public A addToExtra(Map> map); + public A addToExtra(Map> map); - public A removeFromExtra(java.lang.String key); + public A removeFromExtra(String key); - public A removeFromExtra(java.util.Map> map); + public A removeFromExtra(Map> map); - public java.util.Map> getExtra(); + public Map> getExtra(); - public A withExtra( - java.util.Map> extra); + public A withExtra(Map> extra); public Boolean hasExtra(); - public A addToGroups(Integer index, java.lang.String item); + public A addToGroups(Integer index, String item); - public A setToGroups(java.lang.Integer index, java.lang.String item); + public A setToGroups(Integer index, String item); public A addToGroups(java.lang.String... items); - public A addAllToGroups(Collection items); + public A addAllToGroups(Collection items); public A removeFromGroups(java.lang.String... items); - public A removeAllFromGroups(java.util.Collection items); + public A removeAllFromGroups(Collection items); - public java.util.List getGroups(); + public List getGroups(); - public java.lang.String getGroup(java.lang.Integer index); + public String getGroup(Integer index); - public java.lang.String getFirstGroup(); + public String getFirstGroup(); - public java.lang.String getLastGroup(); + public String getLastGroup(); - public java.lang.String getMatchingGroup(Predicate predicate); + public String getMatchingGroup(Predicate predicate); - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate predicate); + public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(java.util.List groups); + public A withGroups(List groups); public A withGroups(java.lang.String... groups); - public java.lang.Boolean hasGroups(); + public Boolean hasGroups(); /** * This method has been deprecated, please use method buildNonResourceAttributes instead. @@ -76,87 +74,63 @@ public java.lang.Boolean hasMatchingGroup( @Deprecated public V1NonResourceAttributes getNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1NonResourceAttributes buildNonResourceAttributes(); + public V1NonResourceAttributes buildNonResourceAttributes(); - public A withNonResourceAttributes( - io.kubernetes.client.openapi.models.V1NonResourceAttributes nonResourceAttributes); + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes); - public java.lang.Boolean hasNonResourceAttributes(); + public Boolean hasNonResourceAttributes(); public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - withNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested + withNewNonResourceAttributesLike(V1NonResourceAttributes item); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - editNonResourceAttributes(); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - editOrNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item); + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested + editOrNewNonResourceAttributesLike(V1NonResourceAttributes item); /** * This method has been deprecated, please use method buildResourceAttributes instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ResourceAttributes getResourceAttributes(); - public io.kubernetes.client.openapi.models.V1ResourceAttributes buildResourceAttributes(); + public V1ResourceAttributes buildResourceAttributes(); - public A withResourceAttributes( - io.kubernetes.client.openapi.models.V1ResourceAttributes resourceAttributes); + public A withResourceAttributes(V1ResourceAttributes resourceAttributes); - public java.lang.Boolean hasResourceAttributes(); + public Boolean hasResourceAttributes(); public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - withNewResourceAttributesLike(io.kubernetes.client.openapi.models.V1ResourceAttributes item); + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike( + V1ResourceAttributes item); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editResourceAttributes(); + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editOrNewResourceAttributes(); + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes(); - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editOrNewResourceAttributesLike( - io.kubernetes.client.openapi.models.V1ResourceAttributes item); + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested + editOrNewResourceAttributesLike(V1ResourceAttributes item); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); - public java.lang.String getUser(); + public String getUser(); - public A withUser(java.lang.String user); + public A withUser(String user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public interface NonResourceAttributesNested extends Nested, @@ -168,7 +142,7 @@ public interface NonResourceAttributesNested } public interface ResourceAttributesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceAttributesFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java index 8026ebdfaf..8ef36e42e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluentImpl.java @@ -27,8 +27,7 @@ public class V1SubjectAccessReviewSpecFluentImpl implements V1SubjectAccessReviewSpecFluent { public V1SubjectAccessReviewSpecFluentImpl() {} - public V1SubjectAccessReviewSpecFluentImpl( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpec instance) { + public V1SubjectAccessReviewSpecFluentImpl(V1SubjectAccessReviewSpec instance) { this.withExtra(instance.getExtra()); this.withGroups(instance.getGroups()); @@ -42,14 +41,14 @@ public V1SubjectAccessReviewSpecFluentImpl( this.withUser(instance.getUser()); } - private Map> extra; - private java.util.List groups; + private Map> extra; + private List groups; private V1NonResourceAttributesBuilder nonResourceAttributes; private V1ResourceAttributesBuilder resourceAttributes; - private java.lang.String uid; - private java.lang.String user; + private String uid; + private String user; - public A addToExtra(java.lang.String key, java.util.List value) { + public A addToExtra(String key, List value) { if (this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } @@ -59,9 +58,9 @@ public A addToExtra(java.lang.String key, java.util.List value return (A) this; } - public A addToExtra(java.util.Map> map) { + public A addToExtra(Map> map) { if (this.extra == null && map != null) { - this.extra = new java.util.LinkedHashMap(); + this.extra = new LinkedHashMap(); } if (map != null) { this.extra.putAll(map); @@ -69,7 +68,7 @@ public A addToExtra(java.util.Map> map) { + public A removeFromExtra(Map> map) { if (this.extra == null) { return (A) this; } @@ -93,16 +92,15 @@ public A removeFromExtra(java.util.Map> getExtra() { + public Map> getExtra() { return this.extra; } - public A withExtra( - java.util.Map> extra) { + public A withExtra(Map> extra) { if (extra == null) { this.extra = null; } else { - this.extra = new java.util.LinkedHashMap(extra); + this.extra = new LinkedHashMap(extra); } return (A) this; } @@ -111,17 +109,17 @@ public Boolean hasExtra() { return this.extra != null; } - public A addToGroups(Integer index, java.lang.String item) { + public A addToGroups(Integer index, String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList(); } this.groups.add(index, item); return (A) this; } - public A setToGroups(java.lang.Integer index, java.lang.String item) { + public A setToGroups(Integer index, String item) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } this.groups.set(index, item); return (A) this; @@ -129,26 +127,26 @@ public A setToGroups(java.lang.Integer index, java.lang.String item) { public A addToGroups(java.lang.String... items) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.groups.add(item); } return (A) this; } - public A addAllToGroups(Collection items) { + public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.groups.add(item); } return (A) this; } public A removeFromGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.groups != null) { this.groups.remove(item); } @@ -156,8 +154,8 @@ public A removeFromGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromGroups(Collection items) { + for (String item : items) { if (this.groups != null) { this.groups.remove(item); } @@ -165,24 +163,24 @@ public A removeAllFromGroups(java.util.Collection items) { return (A) this; } - public java.util.List getGroups() { + public List getGroups() { return this.groups; } - public java.lang.String getGroup(java.lang.Integer index) { + public String getGroup(Integer index) { return this.groups.get(index); } - public java.lang.String getFirstGroup() { + public String getFirstGroup() { return this.groups.get(0); } - public java.lang.String getLastGroup() { + public String getLastGroup() { return this.groups.get(groups.size() - 1); } - public java.lang.String getMatchingGroup(Predicate predicate) { - for (java.lang.String item : groups) { + public String getMatchingGroup(Predicate predicate) { + for (String item : groups) { if (predicate.test(item)) { return item; } @@ -190,9 +188,8 @@ public java.lang.String getMatchingGroup(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate predicate) { - for (java.lang.String item : groups) { + public Boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { if (predicate.test(item)) { return true; } @@ -200,10 +197,10 @@ public java.lang.Boolean hasMatchingGroup( return false; } - public A withGroups(java.util.List groups) { + public A withGroups(List groups) { if (groups != null) { - this.groups = new java.util.ArrayList(); - for (java.lang.String item : groups) { + this.groups = new ArrayList(); + for (String item : groups) { this.addToGroups(item); } } else { @@ -217,14 +214,14 @@ public A withGroups(java.lang.String... groups) { this.groups.clear(); } if (groups != null) { - for (java.lang.String item : groups) { + for (String item : groups) { this.addToGroups(item); } } return (A) this; } - public java.lang.Boolean hasGroups() { + public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } @@ -234,25 +231,27 @@ public java.lang.Boolean hasGroups() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1NonResourceAttributes getNonResourceAttributes() { + public V1NonResourceAttributes getNonResourceAttributes() { return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public io.kubernetes.client.openapi.models.V1NonResourceAttributes buildNonResourceAttributes() { + public V1NonResourceAttributes buildNonResourceAttributes() { return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public A withNonResourceAttributes( - io.kubernetes.client.openapi.models.V1NonResourceAttributes nonResourceAttributes) { + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); if (nonResourceAttributes != null) { this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); _visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); + } else { + this.nonResourceAttributes = null; + _visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); } return (A) this; } - public java.lang.Boolean hasNonResourceAttributes() { + public Boolean hasNonResourceAttributes() { return this.nonResourceAttributes != null; } @@ -261,36 +260,26 @@ public java.lang.Boolean hasNonResourceAttributes() { return new V1SubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - withNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item) { + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested + withNewNonResourceAttributesLike(V1NonResourceAttributes item) { return new V1SubjectAccessReviewSpecFluentImpl.NonResourceAttributesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes() { return withNewNonResourceAttributesLike(getNonResourceAttributes()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes() { return withNewNonResourceAttributesLike( getNonResourceAttributes() != null ? getNonResourceAttributes() - : new io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder().build()); + : new V1NonResourceAttributesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - A> - editOrNewNonResourceAttributesLike( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item) { + public V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested + editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { return withNewNonResourceAttributesLike( getNonResourceAttributes() != null ? getNonResourceAttributes() : item); } @@ -300,26 +289,28 @@ public java.lang.Boolean hasNonResourceAttributes() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ResourceAttributes getResourceAttributes() { + @Deprecated + public V1ResourceAttributes getResourceAttributes() { return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public io.kubernetes.client.openapi.models.V1ResourceAttributes buildResourceAttributes() { + public V1ResourceAttributes buildResourceAttributes() { return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public A withResourceAttributes( - io.kubernetes.client.openapi.models.V1ResourceAttributes resourceAttributes) { + public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { _visitables.get("resourceAttributes").remove(this.resourceAttributes); if (resourceAttributes != null) { this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); _visitables.get("resourceAttributes").add(this.resourceAttributes); + } else { + this.resourceAttributes = null; + _visitables.get("resourceAttributes").remove(this.resourceAttributes); } return (A) this; } - public java.lang.Boolean hasResourceAttributes() { + public Boolean hasResourceAttributes() { return this.resourceAttributes != null; } @@ -327,63 +318,51 @@ public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResour return new V1SubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - withNewResourceAttributesLike(io.kubernetes.client.openapi.models.V1ResourceAttributes item) { - return new io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluentImpl - .ResourceAttributesNestedImpl(item); + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike( + V1ResourceAttributes item) { + return new V1SubjectAccessReviewSpecFluentImpl.ResourceAttributesNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editResourceAttributes() { + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes() { return withNewResourceAttributesLike(getResourceAttributes()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editOrNewResourceAttributes() { + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes() { return withNewResourceAttributesLike( getResourceAttributes() != null ? getResourceAttributes() - : new io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder().build()); + : new V1ResourceAttributesBuilder().build()); } - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - A> - editOrNewResourceAttributesLike( - io.kubernetes.client.openapi.models.V1ResourceAttributes item) { + public V1SubjectAccessReviewSpecFluent.ResourceAttributesNested + editOrNewResourceAttributesLike(V1ResourceAttributes item) { return withNewResourceAttributesLike( getResourceAttributes() != null ? getResourceAttributes() : item); } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } - public java.lang.String getUser() { + public String getUser() { return this.user; } - public A withUser(java.lang.String user) { + public A withUser(String user) { this.user = user; return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -409,7 +388,7 @@ public int hashCode() { extra, groups, nonResourceAttributes, resourceAttributes, uid, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (extra != null && !extra.isEmpty()) { @@ -443,20 +422,16 @@ public java.lang.String toString() { class NonResourceAttributesNestedImpl extends V1NonResourceAttributesFluentImpl< V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested> - implements io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .NonResourceAttributesNested< - N>, - Nested { - NonResourceAttributesNestedImpl( - io.kubernetes.client.openapi.models.V1NonResourceAttributes item) { + implements V1SubjectAccessReviewSpecFluent.NonResourceAttributesNested, Nested { + NonResourceAttributesNestedImpl(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } NonResourceAttributesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder(this); + this.builder = new V1NonResourceAttributesBuilder(this); } - io.kubernetes.client.openapi.models.V1NonResourceAttributesBuilder builder; + V1NonResourceAttributesBuilder builder; public N and() { return (N) @@ -471,19 +446,16 @@ public N endNonResourceAttributes() { class ResourceAttributesNestedImpl extends V1ResourceAttributesFluentImpl< V1SubjectAccessReviewSpecFluent.ResourceAttributesNested> - implements io.kubernetes.client.openapi.models.V1SubjectAccessReviewSpecFluent - .ResourceAttributesNested< - N>, - io.kubernetes.client.fluent.Nested { - ResourceAttributesNestedImpl(io.kubernetes.client.openapi.models.V1ResourceAttributes item) { + implements V1SubjectAccessReviewSpecFluent.ResourceAttributesNested, Nested { + ResourceAttributesNestedImpl(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } ResourceAttributesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder(this); + this.builder = new V1ResourceAttributesBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceAttributesBuilder builder; + V1ResourceAttributesBuilder builder; public N and() { return (N) V1SubjectAccessReviewSpecFluentImpl.this.withResourceAttributes(builder.build()); 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 32d8410f14..ed82ee4580 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 @@ -16,9 +16,7 @@ public class V1SubjectAccessReviewStatusBuilder extends V1SubjectAccessReviewStatusFluentImpl - implements VisitableBuilder< - V1SubjectAccessReviewStatus, - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusBuilder> { + implements VisitableBuilder { public V1SubjectAccessReviewStatusBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1SubjectAccessReviewStatusBuilder(Boolean validationEnabled) { this(new V1SubjectAccessReviewStatus(), validationEnabled); } - public V1SubjectAccessReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusFluent fluent) { + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent) { this(fluent, false); } public V1SubjectAccessReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1SubjectAccessReviewStatus(), validationEnabled); } public V1SubjectAccessReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus instance) { + V1SubjectAccessReviewStatusFluent fluent, V1SubjectAccessReviewStatus instance) { this(fluent, instance, false); } public V1SubjectAccessReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus instance, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewStatusFluent fluent, + V1SubjectAccessReviewStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAllowed(instance.getAllowed()); @@ -60,14 +55,12 @@ public V1SubjectAccessReviewStatusBuilder( this.validationEnabled = validationEnabled; } - public V1SubjectAccessReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus instance) { + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatus instance) { this(instance, false); } public V1SubjectAccessReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus instance, - java.lang.Boolean validationEnabled) { + V1SubjectAccessReviewStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAllowed(instance.getAllowed()); @@ -80,10 +73,10 @@ public V1SubjectAccessReviewStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1SubjectAccessReviewStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus build() { + public V1SubjectAccessReviewStatus build() { V1SubjectAccessReviewStatus buildable = new V1SubjectAccessReviewStatus(); buildable.setAllowed(fluent.getAllowed()); buildable.setDenied(fluent.getDenied()); 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 97f0a02901..35ece48882 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java @@ -19,27 +19,27 @@ public interface V1SubjectAccessReviewStatusFluent { public Boolean getAllowed(); - public A withAllowed(java.lang.Boolean allowed); + public A withAllowed(Boolean allowed); - public java.lang.Boolean hasAllowed(); + public Boolean hasAllowed(); - public java.lang.Boolean getDenied(); + public Boolean getDenied(); - public A withDenied(java.lang.Boolean denied); + public A withDenied(Boolean denied); - public java.lang.Boolean hasDenied(); + public Boolean hasDenied(); public String getEvaluationError(); - public A withEvaluationError(java.lang.String evaluationError); + public A withEvaluationError(String evaluationError); - public java.lang.Boolean hasEvaluationError(); + public Boolean hasEvaluationError(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); public A withAllowed(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java index e6ad3b480f..4133fd8475 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluentImpl.java @@ -20,8 +20,7 @@ public class V1SubjectAccessReviewStatusFluentImpl implements V1SubjectAccessReviewStatusFluent { public V1SubjectAccessReviewStatusFluentImpl() {} - public V1SubjectAccessReviewStatusFluentImpl( - io.kubernetes.client.openapi.models.V1SubjectAccessReviewStatus instance) { + public V1SubjectAccessReviewStatusFluentImpl(V1SubjectAccessReviewStatus instance) { this.withAllowed(instance.getAllowed()); this.withDenied(instance.getDenied()); @@ -32,59 +31,59 @@ public V1SubjectAccessReviewStatusFluentImpl( } private Boolean allowed; - private java.lang.Boolean denied; + private Boolean denied; private String evaluationError; - private java.lang.String reason; + private String reason; - public java.lang.Boolean getAllowed() { + public Boolean getAllowed() { return this.allowed; } - public A withAllowed(java.lang.Boolean allowed) { + public A withAllowed(Boolean allowed) { this.allowed = allowed; return (A) this; } - public java.lang.Boolean hasAllowed() { + public Boolean hasAllowed() { return this.allowed != null; } - public java.lang.Boolean getDenied() { + public Boolean getDenied() { return this.denied; } - public A withDenied(java.lang.Boolean denied) { + public A withDenied(Boolean denied) { this.denied = denied; return (A) this; } - public java.lang.Boolean hasDenied() { + public Boolean hasDenied() { return this.denied != null; } - public java.lang.String getEvaluationError() { + public String getEvaluationError() { return this.evaluationError; } - public A withEvaluationError(java.lang.String evaluationError) { + public A withEvaluationError(String evaluationError) { this.evaluationError = evaluationError; return (A) this; } - public java.lang.Boolean hasEvaluationError() { + public Boolean hasEvaluationError() { return this.evaluationError != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } @@ -105,7 +104,7 @@ public int hashCode() { return java.util.Objects.hash(allowed, denied, evaluationError, reason, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (allowed != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java index 7eee8be5e2..ab91b71784 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectBuilder.java @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SubjectBuilder extends V1SubjectFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1SubjectBuilder() { this(false); } @@ -24,26 +24,20 @@ public V1SubjectBuilder(Boolean validationEnabled) { this(new V1Subject(), validationEnabled); } - public V1SubjectBuilder(io.kubernetes.client.openapi.models.V1SubjectFluent fluent) { + public V1SubjectBuilder(V1SubjectFluent fluent) { this(fluent, false); } - public V1SubjectBuilder( - io.kubernetes.client.openapi.models.V1SubjectFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SubjectBuilder(V1SubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1Subject(), validationEnabled); } - public V1SubjectBuilder( - io.kubernetes.client.openapi.models.V1SubjectFluent fluent, - io.kubernetes.client.openapi.models.V1Subject instance) { + public V1SubjectBuilder(V1SubjectFluent fluent, V1Subject instance) { this(fluent, instance, false); } public V1SubjectBuilder( - io.kubernetes.client.openapi.models.V1SubjectFluent fluent, - io.kubernetes.client.openapi.models.V1Subject instance, - java.lang.Boolean validationEnabled) { + V1SubjectFluent fluent, V1Subject instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); @@ -56,12 +50,11 @@ public V1SubjectBuilder( this.validationEnabled = validationEnabled; } - public V1SubjectBuilder(io.kubernetes.client.openapi.models.V1Subject instance) { + public V1SubjectBuilder(V1Subject instance) { this(instance, false); } - public V1SubjectBuilder( - io.kubernetes.client.openapi.models.V1Subject instance, java.lang.Boolean validationEnabled) { + public V1SubjectBuilder(V1Subject instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroup(instance.getApiGroup()); @@ -74,10 +67,10 @@ public V1SubjectBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1SubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Subject build() { + public V1Subject build() { V1Subject buildable = new V1Subject(); buildable.setApiGroup(fluent.getApiGroup()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java index fad25ff14a..58769db564 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluent.java @@ -18,25 +18,25 @@ public interface V1SubjectFluent> extends Fluent { public String getApiGroup(); - public A withApiGroup(java.lang.String apiGroup); + public A withApiGroup(String apiGroup); public Boolean hasApiGroup(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java index 4f2cd8095c..beaa9c6a6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectFluentImpl.java @@ -20,7 +20,7 @@ public class V1SubjectFluentImpl> extends BaseFluen implements V1SubjectFluent { public V1SubjectFluentImpl() {} - public V1SubjectFluentImpl(io.kubernetes.client.openapi.models.V1Subject instance) { + public V1SubjectFluentImpl(V1Subject instance) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -31,15 +31,15 @@ public V1SubjectFluentImpl(io.kubernetes.client.openapi.models.V1Subject instanc } private String apiGroup; - private java.lang.String kind; - private java.lang.String name; - private java.lang.String namespace; + private String kind; + private String name; + private String namespace; - public java.lang.String getApiGroup() { + public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(java.lang.String apiGroup) { + public A withApiGroup(String apiGroup) { this.apiGroup = apiGroup; return (A) this; } @@ -48,42 +48,42 @@ public Boolean hasApiGroup() { return this.apiGroup != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } @@ -103,7 +103,7 @@ public int hashCode() { return java.util.Objects.hash(apiGroup, kind, name, namespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroup != null) { 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 990b800d5f..8fcd34a20c 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 @@ -16,9 +16,7 @@ public class V1SubjectRulesReviewStatusBuilder extends V1SubjectRulesReviewStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus, - V1SubjectRulesReviewStatusBuilder> { + implements VisitableBuilder { public V1SubjectRulesReviewStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent flu } public V1SubjectRulesReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1SubjectRulesReviewStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1SubjectRulesReviewStatus(), validationEnabled); } public V1SubjectRulesReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus instance) { + V1SubjectRulesReviewStatusFluent fluent, V1SubjectRulesReviewStatus instance) { this(fluent, instance, false); } public V1SubjectRulesReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent fluent, - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus instance, - java.lang.Boolean validationEnabled) { + V1SubjectRulesReviewStatusFluent fluent, + V1SubjectRulesReviewStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withEvaluationError(instance.getEvaluationError()); @@ -59,14 +55,12 @@ public V1SubjectRulesReviewStatusBuilder( this.validationEnabled = validationEnabled; } - public V1SubjectRulesReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus instance) { + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatus instance) { this(instance, false); } public V1SubjectRulesReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus instance, - java.lang.Boolean validationEnabled) { + V1SubjectRulesReviewStatus instance, Boolean validationEnabled) { this.fluent = this; this.withEvaluationError(instance.getEvaluationError()); @@ -79,10 +73,10 @@ public V1SubjectRulesReviewStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1SubjectRulesReviewStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus build() { + public V1SubjectRulesReviewStatus build() { V1SubjectRulesReviewStatus buildable = new V1SubjectRulesReviewStatus(); buildable.setEvaluationError(fluent.getEvaluationError()); buildable.setIncomplete(fluent.getIncomplete()); 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 2573815ec3..bc1f0d8501 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 @@ -23,31 +23,28 @@ public interface V1SubjectRulesReviewStatusFluent { public String getEvaluationError(); - public A withEvaluationError(java.lang.String evaluationError); + public A withEvaluationError(String evaluationError); public Boolean hasEvaluationError(); - public java.lang.Boolean getIncomplete(); + public Boolean getIncomplete(); - public A withIncomplete(java.lang.Boolean incomplete); + public A withIncomplete(Boolean incomplete); - public java.lang.Boolean hasIncomplete(); + public Boolean hasIncomplete(); public A addToNonResourceRules(Integer index, V1NonResourceRule item); - public A setToNonResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NonResourceRule item); + public A setToNonResourceRules(Integer index, V1NonResourceRule item); public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items); - public A addAllToNonResourceRules( - Collection items); + public A addAllToNonResourceRules(Collection items); public A removeFromNonResourceRules( io.kubernetes.client.openapi.models.V1NonResourceRule... items); - public A removeAllFromNonResourceRules( - java.util.Collection items); + public A removeAllFromNonResourceRules(Collection items); public A removeMatchingFromNonResourceRules(Predicate predicate); @@ -57,141 +54,102 @@ public A removeAllFromNonResourceRules( * @return The buildable object. */ @Deprecated - public List getNonResourceRules(); + public List getNonResourceRules(); - public java.util.List - buildNonResourceRules(); + public List buildNonResourceRules(); - public io.kubernetes.client.openapi.models.V1NonResourceRule buildNonResourceRule( - java.lang.Integer index); + public V1NonResourceRule buildNonResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1NonResourceRule buildFirstNonResourceRule(); + public V1NonResourceRule buildFirstNonResourceRule(); - public io.kubernetes.client.openapi.models.V1NonResourceRule buildLastNonResourceRule(); + public V1NonResourceRule buildLastNonResourceRule(); - public io.kubernetes.client.openapi.models.V1NonResourceRule buildMatchingNonResourceRule( - java.util.function.Predicate - predicate); + public V1NonResourceRule buildMatchingNonResourceRule( + Predicate predicate); - public java.lang.Boolean hasMatchingNonResourceRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingNonResourceRule(Predicate predicate); - public A withNonResourceRules( - java.util.List nonResourceRules); + public A withNonResourceRules(List nonResourceRules); public A withNonResourceRules( io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules); - public java.lang.Boolean hasNonResourceRules(); + public Boolean hasNonResourceRules(); public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRule(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - addNewNonResourceRuleLike(io.kubernetes.client.openapi.models.V1NonResourceRule item); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRuleLike( + V1NonResourceRule item); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - setNewNonResourceRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NonResourceRule item); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested setNewNonResourceRuleLike( + Integer index, V1NonResourceRule item); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editNonResourceRule(java.lang.Integer index); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editNonResourceRule( + Integer index); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editFirstNonResourceRule(); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editFirstNonResourceRule(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editLastNonResourceRule(); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editLastNonResourceRule(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editMatchingNonResourceRule( - java.util.function.Predicate - predicate); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editMatchingNonResourceRule( + Predicate predicate); - public A addToResourceRules(java.lang.Integer index, V1ResourceRule item); + public A addToResourceRules(Integer index, V1ResourceRule item); - public A setToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceRule item); + public A setToResourceRules(Integer index, V1ResourceRule item); public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items); - public A addAllToResourceRules( - java.util.Collection items); + public A addAllToResourceRules(Collection items); public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items); - public A removeAllFromResourceRules( - java.util.Collection items); + public A removeAllFromResourceRules(Collection items); - public A removeMatchingFromResourceRules( - java.util.function.Predicate predicate); + public A removeMatchingFromResourceRules(Predicate predicate); /** * This method has been deprecated, please use method buildResourceRules instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getResourceRules(); + @Deprecated + public List getResourceRules(); - public java.util.List buildResourceRules(); + public List buildResourceRules(); - public io.kubernetes.client.openapi.models.V1ResourceRule buildResourceRule( - java.lang.Integer index); + public V1ResourceRule buildResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1ResourceRule buildFirstResourceRule(); + public V1ResourceRule buildFirstResourceRule(); - public io.kubernetes.client.openapi.models.V1ResourceRule buildLastResourceRule(); + public V1ResourceRule buildLastResourceRule(); - public io.kubernetes.client.openapi.models.V1ResourceRule buildMatchingResourceRule( - java.util.function.Predicate - predicate); + public V1ResourceRule buildMatchingResourceRule(Predicate predicate); - public java.lang.Boolean hasMatchingResourceRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingResourceRule(Predicate predicate); - public A withResourceRules( - java.util.List resourceRules); + public A withResourceRules(List resourceRules); public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... resourceRules); - public java.lang.Boolean hasResourceRules(); + public Boolean hasResourceRules(); public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRule(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - addNewResourceRuleLike(io.kubernetes.client.openapi.models.V1ResourceRule item); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRuleLike( + V1ResourceRule item); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - setNewResourceRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceRule item); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested setNewResourceRuleLike( + Integer index, V1ResourceRule item); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editResourceRule(java.lang.Integer index); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editFirstResourceRule(); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editFirstResourceRule(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editLastResourceRule(); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editLastResourceRule(); - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editMatchingResourceRule( - java.util.function.Predicate - predicate); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editMatchingResourceRule( + Predicate predicate); public A withIncomplete(); @@ -204,7 +162,7 @@ public interface NonResourceRulesNested } public interface ResourceRulesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ResourceRuleFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java index 05f940bf58..48cabf2ed9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1SubjectRulesReviewStatusFluentImpl implements V1SubjectRulesReviewStatusFluent { public V1SubjectRulesReviewStatusFluentImpl() {} - public V1SubjectRulesReviewStatusFluentImpl( - io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatus instance) { + public V1SubjectRulesReviewStatusFluentImpl(V1SubjectRulesReviewStatus instance) { this.withEvaluationError(instance.getEvaluationError()); this.withIncomplete(instance.getIncomplete()); @@ -40,41 +39,39 @@ public V1SubjectRulesReviewStatusFluentImpl( private String evaluationError; private Boolean incomplete; private ArrayList nonResourceRules; - private java.util.ArrayList resourceRules; + private ArrayList resourceRules; - public java.lang.String getEvaluationError() { + public String getEvaluationError() { return this.evaluationError; } - public A withEvaluationError(java.lang.String evaluationError) { + public A withEvaluationError(String evaluationError) { this.evaluationError = evaluationError; return (A) this; } - public java.lang.Boolean hasEvaluationError() { + public Boolean hasEvaluationError() { return this.evaluationError != null; } - public java.lang.Boolean getIncomplete() { + public Boolean getIncomplete() { return this.incomplete; } - public A withIncomplete(java.lang.Boolean incomplete) { + public A withIncomplete(Boolean incomplete) { this.incomplete = incomplete; return (A) this; } - public java.lang.Boolean hasIncomplete() { + public Boolean hasIncomplete() { return this.incomplete != null; } - public A addToNonResourceRules( - Integer index, io.kubernetes.client.openapi.models.V1NonResourceRule item) { + public A addToNonResourceRules(Integer index, V1NonResourceRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = new java.util.ArrayList(); + this.nonResourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(item); + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); _visitables .get("nonResourceRules") .add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder); @@ -82,14 +79,11 @@ public A addToNonResourceRules( return (A) this; } - public A setToNonResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NonResourceRule item) { + public A setToNonResourceRules(Integer index, V1NonResourceRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList(); + this.nonResourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(item); + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { _visitables.get("nonResourceRules").add(builder); } else { @@ -105,27 +99,22 @@ public A setToNonResourceRules( public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList(); + this.nonResourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NonResourceRule item : items) { - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(item); + 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) { + public A addAllToNonResourceRules(Collection items) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList(); + this.nonResourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1NonResourceRule item : items) { - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(item); + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } @@ -134,9 +123,8 @@ public A addAllToNonResourceRules( public A removeFromNonResourceRules( io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - for (io.kubernetes.client.openapi.models.V1NonResourceRule item : items) { - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(item); + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); _visitables.get("nonResourceRules").remove(builder); if (this.nonResourceRules != null) { this.nonResourceRules.remove(builder); @@ -145,11 +133,9 @@ public A removeFromNonResourceRules( return (A) this; } - public A removeAllFromNonResourceRules( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1NonResourceRule item : items) { - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(item); + public A removeAllFromNonResourceRules(Collection items) { + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); _visitables.get("nonResourceRules").remove(builder); if (this.nonResourceRules != null) { this.nonResourceRules.remove(builder); @@ -158,14 +144,12 @@ public A removeAllFromNonResourceRules( return (A) this; } - public A removeMatchingFromNonResourceRules( - Predicate predicate) { + public A removeMatchingFromNonResourceRules(Predicate predicate) { if (nonResourceRules == null) return (A) this; - final Iterator each = - nonResourceRules.iterator(); + final Iterator each = nonResourceRules.iterator(); final List visitables = _visitables.get("nonResourceRules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder = each.next(); + V1NonResourceRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -180,32 +164,29 @@ public A removeMatchingFromNonResourceRules( * @return The buildable object. */ @Deprecated - public List getNonResourceRules() { + public List getNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public java.util.List - buildNonResourceRules() { + public List buildNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public io.kubernetes.client.openapi.models.V1NonResourceRule buildNonResourceRule( - java.lang.Integer index) { + public V1NonResourceRule buildNonResourceRule(Integer index) { return this.nonResourceRules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1NonResourceRule buildFirstNonResourceRule() { + public V1NonResourceRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1NonResourceRule buildLastNonResourceRule() { + public V1NonResourceRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1NonResourceRule buildMatchingNonResourceRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder item : nonResourceRules) { + public V1NonResourceRule buildMatchingNonResourceRule( + Predicate predicate) { + for (V1NonResourceRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { return item.build(); } @@ -213,10 +194,8 @@ public io.kubernetes.client.openapi.models.V1NonResourceRule buildMatchingNonRes return null; } - public java.lang.Boolean hasMatchingNonResourceRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder item : nonResourceRules) { + public Boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourceRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { return true; } @@ -224,14 +203,13 @@ public java.lang.Boolean hasMatchingNonResourceRule( return false; } - public A withNonResourceRules( - java.util.List nonResourceRules) { + public A withNonResourceRules(List nonResourceRules) { if (this.nonResourceRules != null) { _visitables.get("nonResourceRules").removeAll(this.nonResourceRules); } if (nonResourceRules != null) { - this.nonResourceRules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1NonResourceRule item : nonResourceRules) { + this.nonResourceRules = new ArrayList(); + for (V1NonResourceRule item : nonResourceRules) { this.addToNonResourceRules(item); } } else { @@ -246,14 +224,14 @@ public A withNonResourceRules( this.nonResourceRules.clear(); } if (nonResourceRules != null) { - for (io.kubernetes.client.openapi.models.V1NonResourceRule item : nonResourceRules) { + for (V1NonResourceRule item : nonResourceRules) { this.addToNonResourceRules(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceRules() { + public Boolean hasNonResourceRules() { return nonResourceRules != null && !nonResourceRules.isEmpty(); } @@ -261,56 +239,38 @@ public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResou return new V1SubjectRulesReviewStatusFluentImpl.NonResourceRulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - addNewNonResourceRuleLike(io.kubernetes.client.openapi.models.V1NonResourceRule item) { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResourceRuleLike( + V1NonResourceRule item) { return new V1SubjectRulesReviewStatusFluentImpl.NonResourceRulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - setNewNonResourceRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NonResourceRule item) { - return new io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluentImpl - .NonResourceRulesNestedImpl(index, item); + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested setNewNonResourceRuleLike( + Integer index, V1NonResourceRule item) { + return new V1SubjectRulesReviewStatusFluentImpl.NonResourceRulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editNonResourceRule(java.lang.Integer index) { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editNonResourceRule( + Integer index) { if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editFirstNonResourceRule() { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editFirstNonResourceRule() { if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editLastNonResourceRule() { + public V1SubjectRulesReviewStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - A> - editMatchingNonResourceRule( - java.util.function.Predicate - predicate) { + public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested editMatchingNonResourceRule( + Predicate predicate) { int index = -1; for (int i = 0; i < nonResourceRules.size(); i++) { if (predicate.test(nonResourceRules.get(i))) { @@ -323,13 +283,11 @@ public V1SubjectRulesReviewStatusFluent.NonResourceRulesNested addNewNonResou return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public A addToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceRule item) { + public A addToResourceRules(Integer index, V1ResourceRule item) { if (this.resourceRules == null) { - this.resourceRules = new java.util.ArrayList(); + this.resourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(item); + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); _visitables .get("resourceRules") .add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder); @@ -337,14 +295,11 @@ public A addToResourceRules( return (A) this; } - public A setToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceRule item) { + public A setToResourceRules(Integer index, V1ResourceRule item) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList(); + this.resourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(item); + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); if (index < 0 || index >= _visitables.get("resourceRules").size()) { _visitables.get("resourceRules").add(builder); } else { @@ -360,27 +315,22 @@ public A setToResourceRules( public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList(); + this.resourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ResourceRule item : items) { - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(item); + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); _visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; } - public A addAllToResourceRules( - java.util.Collection items) { + public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList(); + this.resourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ResourceRule item : items) { - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(item); + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); _visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } @@ -388,9 +338,8 @@ public A addAllToResourceRules( } public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - for (io.kubernetes.client.openapi.models.V1ResourceRule item : items) { - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(item); + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); _visitables.get("resourceRules").remove(builder); if (this.resourceRules != null) { this.resourceRules.remove(builder); @@ -399,11 +348,9 @@ public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceR return (A) this; } - public A removeAllFromResourceRules( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ResourceRule item : items) { - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(item); + public A removeAllFromResourceRules(Collection items) { + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); _visitables.get("resourceRules").remove(builder); if (this.resourceRules != null) { this.resourceRules.remove(builder); @@ -412,15 +359,12 @@ public A removeAllFromResourceRules( return (A) this; } - public A removeMatchingFromResourceRules( - java.util.function.Predicate - predicate) { + public A removeMatchingFromResourceRules(Predicate predicate) { if (resourceRules == null) return (A) this; - final Iterator each = - resourceRules.iterator(); + final Iterator each = resourceRules.iterator(); final List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder = each.next(); + V1ResourceRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -434,32 +378,29 @@ public A removeMatchingFromResourceRules( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getResourceRules() { + @Deprecated + public List getResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public java.util.List buildResourceRules() { + public List buildResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public io.kubernetes.client.openapi.models.V1ResourceRule buildResourceRule( - java.lang.Integer index) { + public V1ResourceRule buildResourceRule(Integer index) { return this.resourceRules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ResourceRule buildFirstResourceRule() { + public V1ResourceRule buildFirstResourceRule() { return this.resourceRules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ResourceRule buildLastResourceRule() { + public V1ResourceRule buildLastResourceRule() { return this.resourceRules.get(resourceRules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ResourceRule buildMatchingResourceRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ResourceRuleBuilder item : resourceRules) { + public V1ResourceRule buildMatchingResourceRule(Predicate predicate) { + for (V1ResourceRuleBuilder item : resourceRules) { if (predicate.test(item)) { return item.build(); } @@ -467,10 +408,8 @@ public io.kubernetes.client.openapi.models.V1ResourceRule buildMatchingResourceR return null; } - public java.lang.Boolean hasMatchingResourceRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ResourceRuleBuilder item : resourceRules) { + public Boolean hasMatchingResourceRule(Predicate predicate) { + for (V1ResourceRuleBuilder item : resourceRules) { if (predicate.test(item)) { return true; } @@ -478,14 +417,13 @@ public java.lang.Boolean hasMatchingResourceRule( return false; } - public A withResourceRules( - java.util.List resourceRules) { + public A withResourceRules(List resourceRules) { if (this.resourceRules != null) { _visitables.get("resourceRules").removeAll(this.resourceRules); } if (resourceRules != null) { - this.resourceRules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ResourceRule item : resourceRules) { + this.resourceRules = new ArrayList(); + for (V1ResourceRule item : resourceRules) { this.addToResourceRules(item); } } else { @@ -499,14 +437,14 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... this.resourceRules.clear(); } if (resourceRules != null) { - for (io.kubernetes.client.openapi.models.V1ResourceRule item : resourceRules) { + for (V1ResourceRule item : resourceRules) { this.addToResourceRules(item); } } return (A) this; } - public java.lang.Boolean hasResourceRules() { + public Boolean hasResourceRules() { return resourceRules != null && !resourceRules.isEmpty(); } @@ -514,44 +452,36 @@ public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRul return new V1SubjectRulesReviewStatusFluentImpl.ResourceRulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - addNewResourceRuleLike(io.kubernetes.client.openapi.models.V1ResourceRule item) { - return new io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluentImpl - .ResourceRulesNestedImpl(-1, item); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested addNewResourceRuleLike( + V1ResourceRule item) { + return new V1SubjectRulesReviewStatusFluentImpl.ResourceRulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - setNewResourceRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceRule item) { - return new io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluentImpl - .ResourceRulesNestedImpl(index, item); + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested setNewResourceRuleLike( + Integer index, V1ResourceRule item) { + return new V1SubjectRulesReviewStatusFluentImpl.ResourceRulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editResourceRule(java.lang.Integer index) { + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editResourceRule(Integer index) { if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editFirstResourceRule() { + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editFirstResourceRule() { if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); return setNewResourceRuleLike(0, buildResourceRule(0)); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editLastResourceRule() { + public V1SubjectRulesReviewStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent.ResourceRulesNested - editMatchingResourceRule( - java.util.function.Predicate - predicate) { + public V1SubjectRulesReviewStatusFluent.ResourceRulesNested editMatchingResourceRule( + Predicate predicate) { int index = -1; for (int i = 0; i < resourceRules.size(); i++) { if (predicate.test(resourceRules.get(i))) { @@ -586,7 +516,7 @@ public int hashCode() { evaluationError, incomplete, nonResourceRules, resourceRules, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (evaluationError != null) { @@ -616,23 +546,19 @@ public A withIncomplete() { class NonResourceRulesNestedImpl extends V1NonResourceRuleFluentImpl< V1SubjectRulesReviewStatusFluent.NonResourceRulesNested> - implements io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .NonResourceRulesNested< - N>, - Nested { - NonResourceRulesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1NonResourceRule item) { + implements V1SubjectRulesReviewStatusFluent.NonResourceRulesNested, Nested { + NonResourceRulesNestedImpl(Integer index, V1NonResourceRule item) { this.index = index; this.builder = new V1NonResourceRuleBuilder(this, item); } NonResourceRulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder(this); + this.builder = new V1NonResourceRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1NonResourceRuleBuilder builder; - java.lang.Integer index; + V1NonResourceRuleBuilder builder; + Integer index; public N and() { return (N) @@ -646,23 +572,19 @@ public N endNonResourceRule() { class ResourceRulesNestedImpl extends V1ResourceRuleFluentImpl> - implements io.kubernetes.client.openapi.models.V1SubjectRulesReviewStatusFluent - .ResourceRulesNested< - N>, - io.kubernetes.client.fluent.Nested { - ResourceRulesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ResourceRule item) { + implements V1SubjectRulesReviewStatusFluent.ResourceRulesNested, Nested { + ResourceRulesNestedImpl(Integer index, V1ResourceRule item) { this.index = index; this.builder = new V1ResourceRuleBuilder(this, item); } ResourceRulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ResourceRuleBuilder(this); + this.builder = new V1ResourceRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1ResourceRuleBuilder builder; - java.lang.Integer index; + V1ResourceRuleBuilder builder; + Integer index; public N and() { return (N) 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 1d70120b70..90e17bc9c5 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1SysctlBuilder extends V1SysctlFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1SysctlBuilder() { this(false); } @@ -24,26 +24,19 @@ public V1SysctlBuilder(Boolean validationEnabled) { this(new V1Sysctl(), validationEnabled); } - public V1SysctlBuilder(io.kubernetes.client.openapi.models.V1SysctlFluent fluent) { + public V1SysctlBuilder(V1SysctlFluent fluent) { this(fluent, false); } - public V1SysctlBuilder( - io.kubernetes.client.openapi.models.V1SysctlFluent fluent, - java.lang.Boolean validationEnabled) { + public V1SysctlBuilder(V1SysctlFluent fluent, Boolean validationEnabled) { this(fluent, new V1Sysctl(), validationEnabled); } - public V1SysctlBuilder( - io.kubernetes.client.openapi.models.V1SysctlFluent fluent, - io.kubernetes.client.openapi.models.V1Sysctl instance) { + public V1SysctlBuilder(V1SysctlFluent fluent, V1Sysctl instance) { this(fluent, instance, false); } - public V1SysctlBuilder( - io.kubernetes.client.openapi.models.V1SysctlFluent fluent, - io.kubernetes.client.openapi.models.V1Sysctl instance, - java.lang.Boolean validationEnabled) { + public V1SysctlBuilder(V1SysctlFluent fluent, V1Sysctl instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -52,12 +45,11 @@ public V1SysctlBuilder( this.validationEnabled = validationEnabled; } - public V1SysctlBuilder(io.kubernetes.client.openapi.models.V1Sysctl instance) { + public V1SysctlBuilder(V1Sysctl instance) { this(instance, false); } - public V1SysctlBuilder( - io.kubernetes.client.openapi.models.V1Sysctl instance, java.lang.Boolean validationEnabled) { + public V1SysctlBuilder(V1Sysctl instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -66,10 +58,10 @@ public V1SysctlBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1SysctlFluent fluent; - java.lang.Boolean validationEnabled; + V1SysctlFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Sysctl build() { + public V1Sysctl build() { V1Sysctl buildable = new V1Sysctl(); buildable.setName(fluent.getName()); buildable.setValue(fluent.getValue()); 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 4366b45b41..434c8701d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java @@ -18,13 +18,13 @@ public interface V1SysctlFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getValue(); + public String getValue(); - public A withValue(java.lang.String value); + public A withValue(String value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java index a9cf6d6154..02ea5f0abe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluentImpl.java @@ -20,20 +20,20 @@ public class V1SysctlFluentImpl> extends BaseFluent< implements V1SysctlFluent { public V1SysctlFluentImpl() {} - public V1SysctlFluentImpl(io.kubernetes.client.openapi.models.V1Sysctl instance) { + public V1SysctlFluentImpl(V1Sysctl instance) { this.withName(instance.getName()); this.withValue(instance.getValue()); } private String name; - private java.lang.String value; + private String value; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getValue() { + public String getValue() { return this.value; } - public A withValue(java.lang.String value) { + public A withValue(String value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(name, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { 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 ade3ae56fa..d489abee41 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TCPSocketAction, V1TCPSocketActionBuilder> { + implements VisitableBuilder { public V1TCPSocketActionBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1TCPSocketActionBuilder(Boolean validationEnabled) { this(new V1TCPSocketAction(), validationEnabled); } - public V1TCPSocketActionBuilder( - io.kubernetes.client.openapi.models.V1TCPSocketActionFluent fluent) { + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent) { this(fluent, false); } - public V1TCPSocketActionBuilder( - io.kubernetes.client.openapi.models.V1TCPSocketActionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent, Boolean validationEnabled) { this(fluent, new V1TCPSocketAction(), validationEnabled); } - public V1TCPSocketActionBuilder( - io.kubernetes.client.openapi.models.V1TCPSocketActionFluent fluent, - io.kubernetes.client.openapi.models.V1TCPSocketAction instance) { + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent, V1TCPSocketAction instance) { this(fluent, instance, false); } public V1TCPSocketActionBuilder( - io.kubernetes.client.openapi.models.V1TCPSocketActionFluent fluent, - io.kubernetes.client.openapi.models.V1TCPSocketAction instance, - java.lang.Boolean validationEnabled) { + V1TCPSocketActionFluent fluent, V1TCPSocketAction instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withHost(instance.getHost()); @@ -54,13 +46,11 @@ public V1TCPSocketActionBuilder( this.validationEnabled = validationEnabled; } - public V1TCPSocketActionBuilder(io.kubernetes.client.openapi.models.V1TCPSocketAction instance) { + public V1TCPSocketActionBuilder(V1TCPSocketAction instance) { this(instance, false); } - public V1TCPSocketActionBuilder( - io.kubernetes.client.openapi.models.V1TCPSocketAction instance, - java.lang.Boolean validationEnabled) { + public V1TCPSocketActionBuilder(V1TCPSocketAction instance, Boolean validationEnabled) { this.fluent = this; this.withHost(instance.getHost()); @@ -69,10 +59,10 @@ public V1TCPSocketActionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TCPSocketActionFluent fluent; - java.lang.Boolean validationEnabled; + V1TCPSocketActionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TCPSocketAction build() { + public V1TCPSocketAction build() { V1TCPSocketAction buildable = new V1TCPSocketAction(); buildable.setHost(fluent.getHost()); buildable.setPort(fluent.getPort()); 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 226e059eb4..554b693304 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java @@ -19,17 +19,17 @@ public interface V1TCPSocketActionFluent> extends Fluent { public String getHost(); - public A withHost(java.lang.String host); + public A withHost(String host); public Boolean hasHost(); public IntOrString getPort(); - public A withPort(io.kubernetes.client.custom.IntOrString port); + public A withPort(IntOrString port); - public java.lang.Boolean hasPort(); + public Boolean hasPort(); public A withNewPort(int value); - public A withNewPort(java.lang.String value); + public A withNewPort(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java index e4631b8ecb..1c1b013902 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluentImpl.java @@ -21,8 +21,7 @@ public class V1TCPSocketActionFluentImpl> e implements V1TCPSocketActionFluent { public V1TCPSocketActionFluentImpl() {} - public V1TCPSocketActionFluentImpl( - io.kubernetes.client.openapi.models.V1TCPSocketAction instance) { + public V1TCPSocketActionFluentImpl(V1TCPSocketAction instance) { this.withHost(instance.getHost()); this.withPort(instance.getPort()); @@ -31,11 +30,11 @@ public V1TCPSocketActionFluentImpl( private String host; private IntOrString port; - public java.lang.String getHost() { + public String getHost() { return this.host; } - public A withHost(java.lang.String host) { + public A withHost(String host) { this.host = host; return (A) this; } @@ -44,16 +43,16 @@ public Boolean hasHost() { return this.host != null; } - public io.kubernetes.client.custom.IntOrString getPort() { + public IntOrString getPort() { return this.port; } - public A withPort(io.kubernetes.client.custom.IntOrString port) { + public A withPort(IntOrString port) { this.port = port; return (A) this; } - public java.lang.Boolean hasPort() { + public Boolean hasPort() { return this.port != null; } @@ -61,7 +60,7 @@ public A withNewPort(int value) { return (A) withPort(new IntOrString(value)); } - public A withNewPort(java.lang.String value) { + public A withNewPort(String value) { return (A) withPort(new IntOrString(value)); } @@ -78,7 +77,7 @@ public int hashCode() { return java.util.Objects.hash(host, port, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (host != null) { 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 dbf3023817..c2accde823 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1TaintBuilder extends V1TaintFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Taint, - io.kubernetes.client.openapi.models.V1TaintBuilder> { + implements VisitableBuilder { public V1TaintBuilder() { this(false); } @@ -30,22 +28,15 @@ public V1TaintBuilder(V1TaintFluent fluent) { this(fluent, false); } - public V1TaintBuilder( - io.kubernetes.client.openapi.models.V1TaintFluent fluent, - java.lang.Boolean validationEnabled) { + public V1TaintBuilder(V1TaintFluent fluent, Boolean validationEnabled) { this(fluent, new V1Taint(), validationEnabled); } - public V1TaintBuilder( - io.kubernetes.client.openapi.models.V1TaintFluent fluent, - io.kubernetes.client.openapi.models.V1Taint instance) { + public V1TaintBuilder(V1TaintFluent fluent, V1Taint instance) { this(fluent, instance, false); } - public V1TaintBuilder( - io.kubernetes.client.openapi.models.V1TaintFluent fluent, - io.kubernetes.client.openapi.models.V1Taint instance, - java.lang.Boolean validationEnabled) { + public V1TaintBuilder(V1TaintFluent fluent, V1Taint instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withEffect(instance.getEffect()); @@ -58,12 +49,11 @@ public V1TaintBuilder( this.validationEnabled = validationEnabled; } - public V1TaintBuilder(io.kubernetes.client.openapi.models.V1Taint instance) { + public V1TaintBuilder(V1Taint instance) { this(instance, false); } - public V1TaintBuilder( - io.kubernetes.client.openapi.models.V1Taint instance, java.lang.Boolean validationEnabled) { + public V1TaintBuilder(V1Taint instance, Boolean validationEnabled) { this.fluent = this; this.withEffect(instance.getEffect()); @@ -76,10 +66,10 @@ public V1TaintBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TaintFluent fluent; - java.lang.Boolean validationEnabled; + V1TaintFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Taint build() { + public V1Taint build() { V1Taint buildable = new V1Taint(); buildable.setEffect(fluent.getEffect()); buildable.setKey(fluent.getKey()); 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 b2f8215f20..6c112277c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java @@ -19,25 +19,25 @@ public interface V1TaintFluent> extends Fluent { public String getEffect(); - public A withEffect(java.lang.String effect); + public A withEffect(String effect); public Boolean hasEffect(); - public java.lang.String getKey(); + public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); - public java.lang.Boolean hasKey(); + public Boolean hasKey(); public OffsetDateTime getTimeAdded(); - public A withTimeAdded(java.time.OffsetDateTime timeAdded); + public A withTimeAdded(OffsetDateTime timeAdded); - public java.lang.Boolean hasTimeAdded(); + public Boolean hasTimeAdded(); - public java.lang.String getValue(); + public String getValue(); - public A withValue(java.lang.String value); + public A withValue(String value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java index 26c923f3f1..d27ac28afb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluentImpl.java @@ -21,7 +21,7 @@ public class V1TaintFluentImpl> extends BaseFluent implements V1TaintFluent { public V1TaintFluentImpl() {} - public V1TaintFluentImpl(io.kubernetes.client.openapi.models.V1Taint instance) { + public V1TaintFluentImpl(V1Taint instance) { this.withEffect(instance.getEffect()); this.withKey(instance.getKey()); @@ -32,15 +32,15 @@ public V1TaintFluentImpl(io.kubernetes.client.openapi.models.V1Taint instance) { } private String effect; - private java.lang.String key; + private String key; private OffsetDateTime timeAdded; - private java.lang.String value; + private String value; - public java.lang.String getEffect() { + public String getEffect() { return this.effect; } - public A withEffect(java.lang.String effect) { + public A withEffect(String effect) { this.effect = effect; return (A) this; } @@ -49,42 +49,42 @@ public Boolean hasEffect() { return this.effect != null; } - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } - public java.lang.Boolean hasKey() { + public Boolean hasKey() { return this.key != null; } - public java.time.OffsetDateTime getTimeAdded() { + public OffsetDateTime getTimeAdded() { return this.timeAdded; } - public A withTimeAdded(java.time.OffsetDateTime timeAdded) { + public A withTimeAdded(OffsetDateTime timeAdded) { this.timeAdded = timeAdded; return (A) this; } - public java.lang.Boolean hasTimeAdded() { + public Boolean hasTimeAdded() { return this.timeAdded != null; } - public java.lang.String getValue() { + public String getValue() { return this.value; } - public A withValue(java.lang.String value) { + public A withValue(String value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -104,7 +104,7 @@ public int hashCode() { return java.util.Objects.hash(effect, key, timeAdded, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (effect != null) { 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 6862283b0a..9d07d0b930 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 @@ -16,8 +16,7 @@ public class V1TokenRequestSpecBuilder extends V1TokenRequestSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TokenRequestSpec, V1TokenRequestSpecBuilder> { + implements VisitableBuilder { public V1TokenRequestSpecBuilder() { this(false); } @@ -26,27 +25,21 @@ public V1TokenRequestSpecBuilder(Boolean validationEnabled) { this(new V1TokenRequestSpec(), validationEnabled); } - public V1TokenRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent fluent) { + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent) { this(fluent, false); } - public V1TokenRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1TokenRequestSpec(), validationEnabled); } public V1TokenRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent fluent, - io.kubernetes.client.openapi.models.V1TokenRequestSpec instance) { + V1TokenRequestSpecFluent fluent, V1TokenRequestSpec instance) { this(fluent, instance, false); } public V1TokenRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent fluent, - io.kubernetes.client.openapi.models.V1TokenRequestSpec instance, - java.lang.Boolean validationEnabled) { + V1TokenRequestSpecFluent fluent, V1TokenRequestSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAudiences(instance.getAudiences()); @@ -57,14 +50,11 @@ public V1TokenRequestSpecBuilder( this.validationEnabled = validationEnabled; } - public V1TokenRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestSpec instance) { + public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance) { this(instance, false); } - public V1TokenRequestSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestSpec instance, - java.lang.Boolean validationEnabled) { + public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAudiences(instance.getAudiences()); @@ -75,10 +65,10 @@ public V1TokenRequestSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1TokenRequestSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TokenRequestSpec build() { + public V1TokenRequestSpec build() { V1TokenRequestSpec buildable = new V1TokenRequestSpec(); buildable.setAudiences(fluent.getAudiences()); buildable.setBoundObjectRef(fluent.getBoundObjectRef()); 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 ed9d1ea1c7..8a64025ff1 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 @@ -22,33 +22,33 @@ public interface V1TokenRequestSpecFluent> extends Fluent { public A addToAudiences(Integer index, String item); - public A setToAudiences(java.lang.Integer index, java.lang.String item); + public A setToAudiences(Integer index, String item); public A addToAudiences(java.lang.String... items); - public A addAllToAudiences(Collection items); + public A addAllToAudiences(Collection items); public A removeFromAudiences(java.lang.String... items); - public A removeAllFromAudiences(java.util.Collection items); + public A removeAllFromAudiences(Collection items); - public List getAudiences(); + public List getAudiences(); - public java.lang.String getAudience(java.lang.Integer index); + public String getAudience(Integer index); - public java.lang.String getFirstAudience(); + public String getFirstAudience(); - public java.lang.String getLastAudience(); + public String getLastAudience(); - public java.lang.String getMatchingAudience(Predicate predicate); + public String getMatchingAudience(Predicate predicate); - public Boolean hasMatchingAudience(java.util.function.Predicate predicate); + public Boolean hasMatchingAudience(Predicate predicate); - public A withAudiences(java.util.List audiences); + public A withAudiences(List audiences); public A withAudiences(java.lang.String... audiences); - public java.lang.Boolean hasAudiences(); + public Boolean hasAudiences(); /** * This method has been deprecated, please use method buildBoundObjectRef instead. @@ -58,32 +58,29 @@ public interface V1TokenRequestSpecFluent> @Deprecated public V1BoundObjectReference getBoundObjectRef(); - public io.kubernetes.client.openapi.models.V1BoundObjectReference buildBoundObjectRef(); + public V1BoundObjectReference buildBoundObjectRef(); - public A withBoundObjectRef( - io.kubernetes.client.openapi.models.V1BoundObjectReference boundObjectRef); + public A withBoundObjectRef(V1BoundObjectReference boundObjectRef); - public java.lang.Boolean hasBoundObjectRef(); + public Boolean hasBoundObjectRef(); public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRef(); - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - withNewBoundObjectRefLike(io.kubernetes.client.openapi.models.V1BoundObjectReference item); + public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRefLike( + V1BoundObjectReference item); - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - editBoundObjectRef(); + public V1TokenRequestSpecFluent.BoundObjectRefNested editBoundObjectRef(); - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - editOrNewBoundObjectRef(); + public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRef(); - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - editOrNewBoundObjectRefLike(io.kubernetes.client.openapi.models.V1BoundObjectReference item); + public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRefLike( + V1BoundObjectReference item); public Long getExpirationSeconds(); - public A withExpirationSeconds(java.lang.Long expirationSeconds); + public A withExpirationSeconds(Long expirationSeconds); - public java.lang.Boolean hasExpirationSeconds(); + public Boolean hasExpirationSeconds(); public interface BoundObjectRefNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java index 6dae390ddd..66cff00522 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluentImpl.java @@ -25,8 +25,7 @@ public class V1TokenRequestSpecFluentImpl> extends BaseFluent implements V1TokenRequestSpecFluent { public V1TokenRequestSpecFluentImpl() {} - public V1TokenRequestSpecFluentImpl( - io.kubernetes.client.openapi.models.V1TokenRequestSpec instance) { + public V1TokenRequestSpecFluentImpl(V1TokenRequestSpec instance) { this.withAudiences(instance.getAudiences()); this.withBoundObjectRef(instance.getBoundObjectRef()); @@ -38,17 +37,17 @@ public V1TokenRequestSpecFluentImpl( private V1BoundObjectReferenceBuilder boundObjectRef; private Long expirationSeconds; - public A addToAudiences(Integer index, java.lang.String item) { + public A addToAudiences(Integer index, String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList(); } this.audiences.add(index, item); return (A) this; } - public A setToAudiences(java.lang.Integer index, java.lang.String item) { + public A setToAudiences(Integer index, String item) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } this.audiences.set(index, item); return (A) this; @@ -56,26 +55,26 @@ public A setToAudiences(java.lang.Integer index, java.lang.String item) { public A addToAudiences(java.lang.String... items) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.audiences.add(item); } return (A) this; } - public A addAllToAudiences(Collection items) { + public A addAllToAudiences(Collection items) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.audiences.add(item); } return (A) this; } public A removeFromAudiences(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.audiences != null) { this.audiences.remove(item); } @@ -83,8 +82,8 @@ public A removeFromAudiences(java.lang.String... items) { return (A) this; } - public A removeAllFromAudiences(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAudiences(Collection items) { + for (String item : items) { if (this.audiences != null) { this.audiences.remove(item); } @@ -92,24 +91,24 @@ public A removeAllFromAudiences(java.util.Collection items) { return (A) this; } - public java.util.List getAudiences() { + public List getAudiences() { return this.audiences; } - public java.lang.String getAudience(java.lang.Integer index) { + public String getAudience(Integer index) { return this.audiences.get(index); } - public java.lang.String getFirstAudience() { + public String getFirstAudience() { return this.audiences.get(0); } - public java.lang.String getLastAudience() { + public String getLastAudience() { return this.audiences.get(audiences.size() - 1); } - public java.lang.String getMatchingAudience(Predicate predicate) { - for (java.lang.String item : audiences) { + public String getMatchingAudience(Predicate predicate) { + for (String item : audiences) { if (predicate.test(item)) { return item; } @@ -117,8 +116,8 @@ public java.lang.String getMatchingAudience(Predicate predicat return null; } - public Boolean hasMatchingAudience(java.util.function.Predicate predicate) { - for (java.lang.String item : audiences) { + public Boolean hasMatchingAudience(Predicate predicate) { + for (String item : audiences) { if (predicate.test(item)) { return true; } @@ -126,10 +125,10 @@ public Boolean hasMatchingAudience(java.util.function.Predicate audiences) { + public A withAudiences(List audiences) { if (audiences != null) { - this.audiences = new java.util.ArrayList(); - for (java.lang.String item : audiences) { + this.audiences = new ArrayList(); + for (String item : audiences) { this.addToAudiences(item); } } else { @@ -143,14 +142,14 @@ public A withAudiences(java.lang.String... audiences) { this.audiences.clear(); } if (audiences != null) { - for (java.lang.String item : audiences) { + for (String item : audiences) { this.addToAudiences(item); } } return (A) this; } - public java.lang.Boolean hasAudiences() { + public Boolean hasAudiences() { return audiences != null && !audiences.isEmpty(); } @@ -164,22 +163,23 @@ public V1BoundObjectReference getBoundObjectRef() { return this.boundObjectRef != null ? this.boundObjectRef.build() : null; } - public io.kubernetes.client.openapi.models.V1BoundObjectReference buildBoundObjectRef() { + public V1BoundObjectReference buildBoundObjectRef() { return this.boundObjectRef != null ? this.boundObjectRef.build() : null; } - public A withBoundObjectRef( - io.kubernetes.client.openapi.models.V1BoundObjectReference boundObjectRef) { + public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { _visitables.get("boundObjectRef").remove(this.boundObjectRef); if (boundObjectRef != null) { - this.boundObjectRef = - new io.kubernetes.client.openapi.models.V1BoundObjectReferenceBuilder(boundObjectRef); + this.boundObjectRef = new V1BoundObjectReferenceBuilder(boundObjectRef); _visitables.get("boundObjectRef").add(this.boundObjectRef); + } else { + this.boundObjectRef = null; + _visitables.get("boundObjectRef").remove(this.boundObjectRef); } return (A) this; } - public java.lang.Boolean hasBoundObjectRef() { + public Boolean hasBoundObjectRef() { return this.boundObjectRef != null; } @@ -187,39 +187,37 @@ public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRef() return new V1TokenRequestSpecFluentImpl.BoundObjectRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - withNewBoundObjectRefLike(io.kubernetes.client.openapi.models.V1BoundObjectReference item) { + public V1TokenRequestSpecFluent.BoundObjectRefNested withNewBoundObjectRefLike( + V1BoundObjectReference item) { return new V1TokenRequestSpecFluentImpl.BoundObjectRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - editBoundObjectRef() { + public V1TokenRequestSpecFluent.BoundObjectRefNested editBoundObjectRef() { return withNewBoundObjectRefLike(getBoundObjectRef()); } - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - editOrNewBoundObjectRef() { + public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRef() { return withNewBoundObjectRefLike( getBoundObjectRef() != null ? getBoundObjectRef() - : new io.kubernetes.client.openapi.models.V1BoundObjectReferenceBuilder().build()); + : new V1BoundObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested - editOrNewBoundObjectRefLike(io.kubernetes.client.openapi.models.V1BoundObjectReference item) { + public V1TokenRequestSpecFluent.BoundObjectRefNested editOrNewBoundObjectRefLike( + V1BoundObjectReference item) { return withNewBoundObjectRefLike(getBoundObjectRef() != null ? getBoundObjectRef() : item); } - public java.lang.Long getExpirationSeconds() { + public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(java.lang.Long expirationSeconds) { + public A withExpirationSeconds(Long expirationSeconds) { this.expirationSeconds = expirationSeconds; return (A) this; } - public java.lang.Boolean hasExpirationSeconds() { + public Boolean hasExpirationSeconds() { return this.expirationSeconds != null; } @@ -242,7 +240,7 @@ public int hashCode() { return java.util.Objects.hash(audiences, boundObjectRef, expirationSeconds, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (audiences != null && !audiences.isEmpty()) { @@ -263,18 +261,16 @@ public java.lang.String toString() { class BoundObjectRefNestedImpl extends V1BoundObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1TokenRequestSpecFluent.BoundObjectRefNested< - N>, - Nested { - BoundObjectRefNestedImpl(io.kubernetes.client.openapi.models.V1BoundObjectReference item) { + implements V1TokenRequestSpecFluent.BoundObjectRefNested, Nested { + BoundObjectRefNestedImpl(V1BoundObjectReference item) { this.builder = new V1BoundObjectReferenceBuilder(this, item); } BoundObjectRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1BoundObjectReferenceBuilder(this); + this.builder = new V1BoundObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1BoundObjectReferenceBuilder builder; + V1BoundObjectReferenceBuilder builder; public N and() { return (N) V1TokenRequestSpecFluentImpl.this.withBoundObjectRef(builder.build()); 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 1e0e2739d9..55baef1940 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 @@ -16,9 +16,7 @@ public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TokenRequestStatus, - io.kubernetes.client.openapi.models.V1TokenRequestStatusBuilder> { + implements VisitableBuilder { public V1TokenRequestStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent) { } public V1TokenRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1TokenRequestStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1TokenRequestStatus(), validationEnabled); } public V1TokenRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestStatusFluent fluent, - io.kubernetes.client.openapi.models.V1TokenRequestStatus instance) { + V1TokenRequestStatusFluent fluent, V1TokenRequestStatus instance) { this(fluent, instance, false); } public V1TokenRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestStatusFluent fluent, - io.kubernetes.client.openapi.models.V1TokenRequestStatus instance, - java.lang.Boolean validationEnabled) { + V1TokenRequestStatusFluent fluent, + V1TokenRequestStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withExpirationTimestamp(instance.getExpirationTimestamp()); @@ -55,14 +51,11 @@ public V1TokenRequestStatusBuilder( this.validationEnabled = validationEnabled; } - public V1TokenRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestStatus instance) { + public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance) { this(instance, false); } - public V1TokenRequestStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenRequestStatus instance, - java.lang.Boolean validationEnabled) { + public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance, Boolean validationEnabled) { this.fluent = this; this.withExpirationTimestamp(instance.getExpirationTimestamp()); @@ -71,10 +64,10 @@ public V1TokenRequestStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TokenRequestStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1TokenRequestStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TokenRequestStatus build() { + public V1TokenRequestStatus build() { V1TokenRequestStatus buildable = new V1TokenRequestStatus(); buildable.setExpirationTimestamp(fluent.getExpirationTimestamp()); buildable.setToken(fluent.getToken()); 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 00893a3800..9bfafedbfb 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 @@ -20,13 +20,13 @@ public interface V1TokenRequestStatusFluent { public OffsetDateTime getExpirationTimestamp(); - public A withExpirationTimestamp(java.time.OffsetDateTime expirationTimestamp); + public A withExpirationTimestamp(OffsetDateTime expirationTimestamp); public Boolean hasExpirationTimestamp(); public String getToken(); - public A withToken(java.lang.String token); + public A withToken(String token); - public java.lang.Boolean hasToken(); + public Boolean hasToken(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java index 0dd28727da..7340970f89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V1TokenRequestStatusFluentImpl implements V1TokenRequestStatusFluent { public V1TokenRequestStatusFluentImpl() {} - public V1TokenRequestStatusFluentImpl( - io.kubernetes.client.openapi.models.V1TokenRequestStatus instance) { + public V1TokenRequestStatusFluentImpl(V1TokenRequestStatus instance) { this.withExpirationTimestamp(instance.getExpirationTimestamp()); this.withToken(instance.getToken()); @@ -31,11 +30,11 @@ public V1TokenRequestStatusFluentImpl( private OffsetDateTime expirationTimestamp; private String token; - public java.time.OffsetDateTime getExpirationTimestamp() { + public OffsetDateTime getExpirationTimestamp() { return this.expirationTimestamp; } - public A withExpirationTimestamp(java.time.OffsetDateTime expirationTimestamp) { + public A withExpirationTimestamp(OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; return (A) this; } @@ -44,16 +43,16 @@ public Boolean hasExpirationTimestamp() { return this.expirationTimestamp != null; } - public java.lang.String getToken() { + public String getToken() { return this.token; } - public A withToken(java.lang.String token) { + public A withToken(String token) { this.token = token; return (A) this; } - public java.lang.Boolean hasToken() { + public Boolean hasToken() { return this.token != null; } @@ -72,7 +71,7 @@ public int hashCode() { return java.util.Objects.hash(expirationTimestamp, token, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (expirationTimestamp != null) { 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 186ef3336e..88ca0ee877 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1TokenReviewBuilder extends V1TokenReviewFluentImpl - implements VisitableBuilder< - V1TokenReview, io.kubernetes.client.openapi.models.V1TokenReviewBuilder> { + implements VisitableBuilder { public V1TokenReviewBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1TokenReviewBuilder(V1TokenReviewFluent fluent) { this(fluent, false); } - public V1TokenReviewBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewFluent fluent, - java.lang.Boolean validationEnabled) { + public V1TokenReviewBuilder(V1TokenReviewFluent fluent, Boolean validationEnabled) { this(fluent, new V1TokenReview(), validationEnabled); } - public V1TokenReviewBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewFluent fluent, - io.kubernetes.client.openapi.models.V1TokenReview instance) { + public V1TokenReviewBuilder(V1TokenReviewFluent fluent, V1TokenReview instance) { this(fluent, instance, false); } public V1TokenReviewBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewFluent fluent, - io.kubernetes.client.openapi.models.V1TokenReview instance, - java.lang.Boolean validationEnabled) { + V1TokenReviewFluent fluent, V1TokenReview instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,13 +52,11 @@ public V1TokenReviewBuilder( this.validationEnabled = validationEnabled; } - public V1TokenReviewBuilder(io.kubernetes.client.openapi.models.V1TokenReview instance) { + public V1TokenReviewBuilder(V1TokenReview instance) { this(instance, false); } - public V1TokenReviewBuilder( - io.kubernetes.client.openapi.models.V1TokenReview instance, - java.lang.Boolean validationEnabled) { + public V1TokenReviewBuilder(V1TokenReview instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +71,10 @@ public V1TokenReviewBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TokenReviewFluent fluent; - java.lang.Boolean validationEnabled; + V1TokenReviewFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TokenReview build() { + public V1TokenReview build() { V1TokenReview buildable = new V1TokenReview(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 199a5b86c4..90f3247b99 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 @@ -19,15 +19,15 @@ public interface V1TokenReviewFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,76 +37,69 @@ public interface V1TokenReviewFluent> extends F @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1TokenReviewFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1TokenReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested editMetadata(); + public V1TokenReviewFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested - editOrNewMetadata(); + public V1TokenReviewFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1TokenReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenReviewSpec getSpec(); - public io.kubernetes.client.openapi.models.V1TokenReviewSpec buildSpec(); + public V1TokenReviewSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1TokenReviewSpec spec); + public A withSpec(V1TokenReviewSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1TokenReviewFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1TokenReviewSpec item); + public V1TokenReviewFluent.SpecNested withNewSpecLike(V1TokenReviewSpec item); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested editSpec(); + public V1TokenReviewFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested editOrNewSpec(); + public V1TokenReviewFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1TokenReviewSpec item); + public V1TokenReviewFluent.SpecNested editOrNewSpecLike(V1TokenReviewSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenReviewStatus getStatus(); - public io.kubernetes.client.openapi.models.V1TokenReviewStatus buildStatus(); + public V1TokenReviewStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1TokenReviewStatus status); + public A withStatus(V1TokenReviewStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1TokenReviewFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1TokenReviewStatus item); + public V1TokenReviewFluent.StatusNested withNewStatusLike(V1TokenReviewStatus item); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested editStatus(); + public V1TokenReviewFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested editOrNewStatus(); + public V1TokenReviewFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1TokenReviewStatus item); + public V1TokenReviewFluent.StatusNested editOrNewStatusLike(V1TokenReviewStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -116,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1TokenReviewSpecFluent> { + extends Nested, V1TokenReviewSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1TokenReviewStatusFluent> { + extends Nested, V1TokenReviewStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java index c91349e9f6..52e46dffaf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluentImpl.java @@ -21,7 +21,7 @@ public class V1TokenReviewFluentImpl> extends B implements V1TokenReviewFluent { public V1TokenReviewFluentImpl() {} - public V1TokenReviewFluentImpl(io.kubernetes.client.openapi.models.V1TokenReview instance) { + public V1TokenReviewFluentImpl(V1TokenReview instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -34,16 +34,16 @@ public V1TokenReviewFluentImpl(io.kubernetes.client.openapi.models.V1TokenReview } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1TokenReviewSpecBuilder spec; private V1TokenReviewStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -52,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -71,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -96,25 +99,20 @@ public V1TokenReviewFluent.MetadataNested withNewMetadata() { return new V1TokenReviewFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1TokenReviewFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1TokenReviewFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested editMetadata() { + public V1TokenReviewFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested - editOrNewMetadata() { + public V1TokenReviewFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1TokenReviewFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -123,25 +121,28 @@ public io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenReviewSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1TokenReviewSpec buildSpec() { + public V1TokenReviewSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1TokenReviewSpec spec) { + public A withSpec(V1TokenReviewSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1TokenReviewSpecBuilder(spec); + this.spec = new V1TokenReviewSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -149,24 +150,19 @@ public V1TokenReviewFluent.SpecNested withNewSpec() { return new V1TokenReviewFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1TokenReviewSpec item) { - return new io.kubernetes.client.openapi.models.V1TokenReviewFluentImpl.SpecNestedImpl(item); + public V1TokenReviewFluent.SpecNested withNewSpecLike(V1TokenReviewSpec item) { + return new V1TokenReviewFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested editSpec() { + public V1TokenReviewFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1TokenReviewSpecBuilder().build()); + public V1TokenReviewFluent.SpecNested editOrNewSpec() { + return withNewSpecLike(getSpec() != null ? getSpec() : new V1TokenReviewSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1TokenReviewSpec item) { + public V1TokenReviewFluent.SpecNested editOrNewSpecLike(V1TokenReviewSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -175,25 +171,28 @@ public io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested edi * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1TokenReviewStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1TokenReviewStatus buildStatus() { + public V1TokenReviewStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1TokenReviewStatus status) { + public A withStatus(V1TokenReviewStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder(status); + this.status = new V1TokenReviewStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -201,24 +200,20 @@ public V1TokenReviewFluent.StatusNested withNewStatus() { return new V1TokenReviewFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1TokenReviewStatus item) { - return new io.kubernetes.client.openapi.models.V1TokenReviewFluentImpl.StatusNestedImpl(item); + public V1TokenReviewFluent.StatusNested withNewStatusLike(V1TokenReviewStatus item) { + return new V1TokenReviewFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested editStatus() { + public V1TokenReviewFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested editOrNewStatus() { + public V1TokenReviewFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1TokenReviewStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1TokenReviewStatus item) { + public V1TokenReviewFluent.StatusNested editOrNewStatusLike(V1TokenReviewStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -239,7 +234,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -267,17 +262,16 @@ public java.lang.String toString() { } class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1TokenReviewFluent.MetadataNested, - Nested { + implements V1TokenReviewFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1TokenReviewFluentImpl.this.withMetadata(builder.build()); @@ -289,17 +283,16 @@ public N endMetadata() { } class SpecNestedImpl extends V1TokenReviewSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1TokenReviewFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1TokenReviewSpec item) { + implements V1TokenReviewFluent.SpecNested, Nested { + SpecNestedImpl(V1TokenReviewSpec item) { this.builder = new V1TokenReviewSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1TokenReviewSpecBuilder(this); + this.builder = new V1TokenReviewSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1TokenReviewSpecBuilder builder; + V1TokenReviewSpecBuilder builder; public N and() { return (N) V1TokenReviewFluentImpl.this.withSpec(builder.build()); @@ -312,17 +305,16 @@ public N endSpec() { class StatusNestedImpl extends V1TokenReviewStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1TokenReviewFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1TokenReviewFluent.StatusNested, Nested { StatusNestedImpl(V1TokenReviewStatus item) { this.builder = new V1TokenReviewStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder(this); + this.builder = new V1TokenReviewStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder builder; + V1TokenReviewStatusBuilder builder; public N and() { return (N) V1TokenReviewFluentImpl.this.withStatus(builder.build()); 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 de9fa4e78a..9d5c950245 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TokenReviewSpec, - io.kubernetes.client.openapi.models.V1TokenReviewSpecBuilder> { + implements VisitableBuilder { public V1TokenReviewSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent) { this(fluent, false); } - public V1TokenReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1TokenReviewSpec(), validationEnabled); } - public V1TokenReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1TokenReviewSpec instance) { + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent, V1TokenReviewSpec instance) { this(fluent, instance, false); } public V1TokenReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewSpecFluent fluent, - io.kubernetes.client.openapi.models.V1TokenReviewSpec instance, - java.lang.Boolean validationEnabled) { + V1TokenReviewSpecFluent fluent, V1TokenReviewSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAudiences(instance.getAudiences()); @@ -54,13 +46,11 @@ public V1TokenReviewSpecBuilder( this.validationEnabled = validationEnabled; } - public V1TokenReviewSpecBuilder(io.kubernetes.client.openapi.models.V1TokenReviewSpec instance) { + public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance) { this(instance, false); } - public V1TokenReviewSpecBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewSpec instance, - java.lang.Boolean validationEnabled) { + public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAudiences(instance.getAudiences()); @@ -69,10 +59,10 @@ public V1TokenReviewSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TokenReviewSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1TokenReviewSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TokenReviewSpec build() { + public V1TokenReviewSpec build() { V1TokenReviewSpec buildable = new V1TokenReviewSpec(); buildable.setAudiences(fluent.getAudiences()); buildable.setToken(fluent.getToken()); 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 8b3c47662c..fee9fac4ae 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 @@ -21,37 +21,37 @@ public interface V1TokenReviewSpecFluent> extends Fluent { public A addToAudiences(Integer index, String item); - public A setToAudiences(java.lang.Integer index, java.lang.String item); + public A setToAudiences(Integer index, String item); public A addToAudiences(java.lang.String... items); - public A addAllToAudiences(Collection items); + public A addAllToAudiences(Collection items); public A removeFromAudiences(java.lang.String... items); - public A removeAllFromAudiences(java.util.Collection items); + public A removeAllFromAudiences(Collection items); - public List getAudiences(); + public List getAudiences(); - public java.lang.String getAudience(java.lang.Integer index); + public String getAudience(Integer index); - public java.lang.String getFirstAudience(); + public String getFirstAudience(); - public java.lang.String getLastAudience(); + public String getLastAudience(); - public java.lang.String getMatchingAudience(Predicate predicate); + public String getMatchingAudience(Predicate predicate); - public Boolean hasMatchingAudience(java.util.function.Predicate predicate); + public Boolean hasMatchingAudience(Predicate predicate); - public A withAudiences(java.util.List audiences); + public A withAudiences(List audiences); public A withAudiences(java.lang.String... audiences); - public java.lang.Boolean hasAudiences(); + public Boolean hasAudiences(); - public java.lang.String getToken(); + public String getToken(); - public A withToken(java.lang.String token); + public A withToken(String token); - public java.lang.Boolean hasToken(); + public Boolean hasToken(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java index 4babf01e08..d79e13aa6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluentImpl.java @@ -24,27 +24,26 @@ public class V1TokenReviewSpecFluentImpl> e implements V1TokenReviewSpecFluent { public V1TokenReviewSpecFluentImpl() {} - public V1TokenReviewSpecFluentImpl( - io.kubernetes.client.openapi.models.V1TokenReviewSpec instance) { + public V1TokenReviewSpecFluentImpl(V1TokenReviewSpec instance) { this.withAudiences(instance.getAudiences()); this.withToken(instance.getToken()); } private List audiences; - private java.lang.String token; + private String token; - public A addToAudiences(Integer index, java.lang.String item) { + public A addToAudiences(Integer index, String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList(); } this.audiences.add(index, item); return (A) this; } - public A setToAudiences(java.lang.Integer index, java.lang.String item) { + public A setToAudiences(Integer index, String item) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } this.audiences.set(index, item); return (A) this; @@ -52,26 +51,26 @@ public A setToAudiences(java.lang.Integer index, java.lang.String item) { public A addToAudiences(java.lang.String... items) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.audiences.add(item); } return (A) this; } - public A addAllToAudiences(Collection items) { + public A addAllToAudiences(Collection items) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.audiences.add(item); } return (A) this; } public A removeFromAudiences(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.audiences != null) { this.audiences.remove(item); } @@ -79,8 +78,8 @@ public A removeFromAudiences(java.lang.String... items) { return (A) this; } - public A removeAllFromAudiences(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAudiences(Collection items) { + for (String item : items) { if (this.audiences != null) { this.audiences.remove(item); } @@ -88,24 +87,24 @@ public A removeAllFromAudiences(java.util.Collection items) { return (A) this; } - public java.util.List getAudiences() { + public List getAudiences() { return this.audiences; } - public java.lang.String getAudience(java.lang.Integer index) { + public String getAudience(Integer index) { return this.audiences.get(index); } - public java.lang.String getFirstAudience() { + public String getFirstAudience() { return this.audiences.get(0); } - public java.lang.String getLastAudience() { + public String getLastAudience() { return this.audiences.get(audiences.size() - 1); } - public java.lang.String getMatchingAudience(Predicate predicate) { - for (java.lang.String item : audiences) { + public String getMatchingAudience(Predicate predicate) { + for (String item : audiences) { if (predicate.test(item)) { return item; } @@ -113,8 +112,8 @@ public java.lang.String getMatchingAudience(Predicate predicat return null; } - public Boolean hasMatchingAudience(java.util.function.Predicate predicate) { - for (java.lang.String item : audiences) { + public Boolean hasMatchingAudience(Predicate predicate) { + for (String item : audiences) { if (predicate.test(item)) { return true; } @@ -122,10 +121,10 @@ public Boolean hasMatchingAudience(java.util.function.Predicate audiences) { + public A withAudiences(List audiences) { if (audiences != null) { - this.audiences = new java.util.ArrayList(); - for (java.lang.String item : audiences) { + this.audiences = new ArrayList(); + for (String item : audiences) { this.addToAudiences(item); } } else { @@ -139,27 +138,27 @@ public A withAudiences(java.lang.String... audiences) { this.audiences.clear(); } if (audiences != null) { - for (java.lang.String item : audiences) { + for (String item : audiences) { this.addToAudiences(item); } } return (A) this; } - public java.lang.Boolean hasAudiences() { + public Boolean hasAudiences() { return audiences != null && !audiences.isEmpty(); } - public java.lang.String getToken() { + public String getToken() { return this.token; } - public A withToken(java.lang.String token) { + public A withToken(String token) { this.token = token; return (A) this; } - public java.lang.Boolean hasToken() { + public Boolean hasToken() { return this.token != null; } @@ -177,7 +176,7 @@ public int hashCode() { return java.util.Objects.hash(audiences, token, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (audiences != null && !audiences.isEmpty()) { 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 e0a94ec88e..6528d2370b 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 @@ -16,8 +16,7 @@ public class V1TokenReviewStatusBuilder extends V1TokenReviewStatusFluentImpl - implements VisitableBuilder< - V1TokenReviewStatus, io.kubernetes.client.openapi.models.V1TokenReviewStatusBuilder> { + implements VisitableBuilder { public V1TokenReviewStatusBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent) { } public V1TokenReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1TokenReviewStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1TokenReviewStatus(), validationEnabled); } public V1TokenReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent fluent, - io.kubernetes.client.openapi.models.V1TokenReviewStatus instance) { + V1TokenReviewStatusFluent fluent, V1TokenReviewStatus instance) { this(fluent, instance, false); } public V1TokenReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent fluent, - io.kubernetes.client.openapi.models.V1TokenReviewStatus instance, - java.lang.Boolean validationEnabled) { + V1TokenReviewStatusFluent fluent, + V1TokenReviewStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAudiences(instance.getAudiences()); @@ -58,14 +55,11 @@ public V1TokenReviewStatusBuilder( this.validationEnabled = validationEnabled; } - public V1TokenReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewStatus instance) { + public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance) { this(instance, false); } - public V1TokenReviewStatusBuilder( - io.kubernetes.client.openapi.models.V1TokenReviewStatus instance, - java.lang.Boolean validationEnabled) { + public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAudiences(instance.getAudiences()); @@ -78,10 +72,10 @@ public V1TokenReviewStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1TokenReviewStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TokenReviewStatus build() { + public V1TokenReviewStatus build() { V1TokenReviewStatus buildable = new V1TokenReviewStatus(); buildable.setAudiences(fluent.getAudiences()); buildable.setAuthenticated(fluent.getAuthenticated()); 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 89e8ae1168..d0a8710906 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 @@ -23,45 +23,45 @@ public interface V1TokenReviewStatusFluent { public A addToAudiences(Integer index, String item); - public A setToAudiences(java.lang.Integer index, java.lang.String item); + public A setToAudiences(Integer index, String item); public A addToAudiences(java.lang.String... items); - public A addAllToAudiences(Collection items); + public A addAllToAudiences(Collection items); public A removeFromAudiences(java.lang.String... items); - public A removeAllFromAudiences(java.util.Collection items); + public A removeAllFromAudiences(Collection items); - public List getAudiences(); + public List getAudiences(); - public java.lang.String getAudience(java.lang.Integer index); + public String getAudience(Integer index); - public java.lang.String getFirstAudience(); + public String getFirstAudience(); - public java.lang.String getLastAudience(); + public String getLastAudience(); - public java.lang.String getMatchingAudience(Predicate predicate); + public String getMatchingAudience(Predicate predicate); - public Boolean hasMatchingAudience(java.util.function.Predicate predicate); + public Boolean hasMatchingAudience(Predicate predicate); - public A withAudiences(java.util.List audiences); + public A withAudiences(List audiences); public A withAudiences(java.lang.String... audiences); - public java.lang.Boolean hasAudiences(); + public Boolean hasAudiences(); - public java.lang.Boolean getAuthenticated(); + public Boolean getAuthenticated(); - public A withAuthenticated(java.lang.Boolean authenticated); + public A withAuthenticated(Boolean authenticated); - public java.lang.Boolean hasAuthenticated(); + public Boolean hasAuthenticated(); - public java.lang.String getError(); + public String getError(); - public A withError(java.lang.String error); + public A withError(String error); - public java.lang.Boolean hasError(); + public Boolean hasError(); /** * This method has been deprecated, please use method buildUser instead. @@ -71,24 +71,21 @@ public interface V1TokenReviewStatusFluent withNewUser(); - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested - withNewUserLike(io.kubernetes.client.openapi.models.V1UserInfo item); + public V1TokenReviewStatusFluent.UserNested withNewUserLike(V1UserInfo item); - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested editUser(); + public V1TokenReviewStatusFluent.UserNested editUser(); - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested - editOrNewUser(); + public V1TokenReviewStatusFluent.UserNested editOrNewUser(); - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested - editOrNewUserLike(io.kubernetes.client.openapi.models.V1UserInfo item); + public V1TokenReviewStatusFluent.UserNested editOrNewUserLike(V1UserInfo item); public A withAuthenticated(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java index 70102d5753..cfc672c314 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluentImpl.java @@ -25,8 +25,7 @@ public class V1TokenReviewStatusFluentImpl implements V1TokenReviewStatusFluent { public V1TokenReviewStatusFluentImpl() {} - public V1TokenReviewStatusFluentImpl( - io.kubernetes.client.openapi.models.V1TokenReviewStatus instance) { + public V1TokenReviewStatusFluentImpl(V1TokenReviewStatus instance) { this.withAudiences(instance.getAudiences()); this.withAuthenticated(instance.getAuthenticated()); @@ -38,20 +37,20 @@ public V1TokenReviewStatusFluentImpl( private List audiences; private Boolean authenticated; - private java.lang.String error; + private String error; private V1UserInfoBuilder user; - public A addToAudiences(Integer index, java.lang.String item) { + public A addToAudiences(Integer index, String item) { if (this.audiences == null) { - this.audiences = new ArrayList(); + this.audiences = new ArrayList(); } this.audiences.add(index, item); return (A) this; } - public A setToAudiences(java.lang.Integer index, java.lang.String item) { + public A setToAudiences(Integer index, String item) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } this.audiences.set(index, item); return (A) this; @@ -59,26 +58,26 @@ public A setToAudiences(java.lang.Integer index, java.lang.String item) { public A addToAudiences(java.lang.String... items) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.audiences.add(item); } return (A) this; } - public A addAllToAudiences(Collection items) { + public A addAllToAudiences(Collection items) { if (this.audiences == null) { - this.audiences = new java.util.ArrayList(); + this.audiences = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.audiences.add(item); } return (A) this; } public A removeFromAudiences(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.audiences != null) { this.audiences.remove(item); } @@ -86,8 +85,8 @@ public A removeFromAudiences(java.lang.String... items) { return (A) this; } - public A removeAllFromAudiences(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAudiences(Collection items) { + for (String item : items) { if (this.audiences != null) { this.audiences.remove(item); } @@ -95,24 +94,24 @@ public A removeAllFromAudiences(java.util.Collection items) { return (A) this; } - public java.util.List getAudiences() { + public List getAudiences() { return this.audiences; } - public java.lang.String getAudience(java.lang.Integer index) { + public String getAudience(Integer index) { return this.audiences.get(index); } - public java.lang.String getFirstAudience() { + public String getFirstAudience() { return this.audiences.get(0); } - public java.lang.String getLastAudience() { + public String getLastAudience() { return this.audiences.get(audiences.size() - 1); } - public java.lang.String getMatchingAudience(Predicate predicate) { - for (java.lang.String item : audiences) { + public String getMatchingAudience(Predicate predicate) { + for (String item : audiences) { if (predicate.test(item)) { return item; } @@ -120,9 +119,8 @@ public java.lang.String getMatchingAudience(Predicate predicat return null; } - public java.lang.Boolean hasMatchingAudience( - java.util.function.Predicate predicate) { - for (java.lang.String item : audiences) { + public Boolean hasMatchingAudience(Predicate predicate) { + for (String item : audiences) { if (predicate.test(item)) { return true; } @@ -130,10 +128,10 @@ public java.lang.Boolean hasMatchingAudience( return false; } - public A withAudiences(java.util.List audiences) { + public A withAudiences(List audiences) { if (audiences != null) { - this.audiences = new java.util.ArrayList(); - for (java.lang.String item : audiences) { + this.audiences = new ArrayList(); + for (String item : audiences) { this.addToAudiences(item); } } else { @@ -147,40 +145,40 @@ public A withAudiences(java.lang.String... audiences) { this.audiences.clear(); } if (audiences != null) { - for (java.lang.String item : audiences) { + for (String item : audiences) { this.addToAudiences(item); } } return (A) this; } - public java.lang.Boolean hasAudiences() { + public Boolean hasAudiences() { return audiences != null && !audiences.isEmpty(); } - public java.lang.Boolean getAuthenticated() { + public Boolean getAuthenticated() { return this.authenticated; } - public A withAuthenticated(java.lang.Boolean authenticated) { + public A withAuthenticated(Boolean authenticated) { this.authenticated = authenticated; return (A) this; } - public java.lang.Boolean hasAuthenticated() { + public Boolean hasAuthenticated() { return this.authenticated != null; } - public java.lang.String getError() { + public String getError() { return this.error; } - public A withError(java.lang.String error) { + public A withError(String error) { this.error = error; return (A) this; } - public java.lang.Boolean hasError() { + public Boolean hasError() { return this.error != null; } @@ -194,20 +192,23 @@ public V1UserInfo getUser() { return this.user != null ? this.user.build() : null; } - public io.kubernetes.client.openapi.models.V1UserInfo buildUser() { + public V1UserInfo buildUser() { return this.user != null ? this.user.build() : null; } - public A withUser(io.kubernetes.client.openapi.models.V1UserInfo user) { + public A withUser(V1UserInfo user) { _visitables.get("user").remove(this.user); if (user != null) { - this.user = new io.kubernetes.client.openapi.models.V1UserInfoBuilder(user); + this.user = new V1UserInfoBuilder(user); _visitables.get("user").add(this.user); + } else { + this.user = null; + _visitables.get("user").remove(this.user); } return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -215,25 +216,19 @@ public V1TokenReviewStatusFluent.UserNested withNewUser() { return new V1TokenReviewStatusFluentImpl.UserNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested - withNewUserLike(io.kubernetes.client.openapi.models.V1UserInfo item) { + public V1TokenReviewStatusFluent.UserNested withNewUserLike(V1UserInfo item) { return new V1TokenReviewStatusFluentImpl.UserNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested editUser() { + public V1TokenReviewStatusFluent.UserNested editUser() { return withNewUserLike(getUser()); } - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested - editOrNewUser() { - return withNewUserLike( - getUser() != null - ? getUser() - : new io.kubernetes.client.openapi.models.V1UserInfoBuilder().build()); + public V1TokenReviewStatusFluent.UserNested editOrNewUser() { + return withNewUserLike(getUser() != null ? getUser() : new V1UserInfoBuilder().build()); } - public io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested - editOrNewUserLike(io.kubernetes.client.openapi.models.V1UserInfo item) { + public V1TokenReviewStatusFluent.UserNested editOrNewUserLike(V1UserInfo item) { return withNewUserLike(getUser() != null ? getUser() : item); } @@ -255,7 +250,7 @@ public int hashCode() { return java.util.Objects.hash(audiences, authenticated, error, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (audiences != null && !audiences.isEmpty()) { @@ -283,17 +278,16 @@ public A withAuthenticated() { } class UserNestedImpl extends V1UserInfoFluentImpl> - implements io.kubernetes.client.openapi.models.V1TokenReviewStatusFluent.UserNested, - Nested { + implements V1TokenReviewStatusFluent.UserNested, Nested { UserNestedImpl(V1UserInfo item) { this.builder = new V1UserInfoBuilder(this, item); } UserNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1UserInfoBuilder(this); + this.builder = new V1UserInfoBuilder(this); } - io.kubernetes.client.openapi.models.V1UserInfoBuilder builder; + V1UserInfoBuilder builder; public N and() { return (N) V1TokenReviewStatusFluentImpl.this.withUser(builder.build()); 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 0980930024..52b292ac5c 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1TolerationBuilder extends V1TolerationFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1Toleration, - io.kubernetes.client.openapi.models.V1TolerationBuilder> { + implements VisitableBuilder { public V1TolerationBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1TolerationBuilder(V1TolerationFluent fluent) { this(fluent, false); } - public V1TolerationBuilder( - io.kubernetes.client.openapi.models.V1TolerationFluent fluent, - java.lang.Boolean validationEnabled) { + public V1TolerationBuilder(V1TolerationFluent fluent, Boolean validationEnabled) { this(fluent, new V1Toleration(), validationEnabled); } - public V1TolerationBuilder( - io.kubernetes.client.openapi.models.V1TolerationFluent fluent, - io.kubernetes.client.openapi.models.V1Toleration instance) { + public V1TolerationBuilder(V1TolerationFluent fluent, V1Toleration instance) { this(fluent, instance, false); } public V1TolerationBuilder( - io.kubernetes.client.openapi.models.V1TolerationFluent fluent, - io.kubernetes.client.openapi.models.V1Toleration instance, - java.lang.Boolean validationEnabled) { + V1TolerationFluent fluent, V1Toleration instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withEffect(instance.getEffect()); @@ -60,13 +52,11 @@ public V1TolerationBuilder( this.validationEnabled = validationEnabled; } - public V1TolerationBuilder(io.kubernetes.client.openapi.models.V1Toleration instance) { + public V1TolerationBuilder(V1Toleration instance) { this(instance, false); } - public V1TolerationBuilder( - io.kubernetes.client.openapi.models.V1Toleration instance, - java.lang.Boolean validationEnabled) { + public V1TolerationBuilder(V1Toleration instance, Boolean validationEnabled) { this.fluent = this; this.withEffect(instance.getEffect()); @@ -81,10 +71,10 @@ public V1TolerationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TolerationFluent fluent; - java.lang.Boolean validationEnabled; + V1TolerationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Toleration build() { + public V1Toleration build() { V1Toleration buildable = new V1Toleration(); buildable.setEffect(fluent.getEffect()); buildable.setKey(fluent.getKey()); 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 c9457f2071..672c03e2a9 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 @@ -18,31 +18,31 @@ public interface V1TolerationFluent> extends Fluent { public String getEffect(); - public A withEffect(java.lang.String effect); + public A withEffect(String effect); public Boolean hasEffect(); - public java.lang.String getKey(); + public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); - public java.lang.Boolean hasKey(); + public Boolean hasKey(); - public java.lang.String getOperator(); + public String getOperator(); - public A withOperator(java.lang.String operator); + public A withOperator(String operator); - public java.lang.Boolean hasOperator(); + public Boolean hasOperator(); public Long getTolerationSeconds(); - public A withTolerationSeconds(java.lang.Long tolerationSeconds); + public A withTolerationSeconds(Long tolerationSeconds); - public java.lang.Boolean hasTolerationSeconds(); + public Boolean hasTolerationSeconds(); - public java.lang.String getValue(); + public String getValue(); - public A withValue(java.lang.String value); + public A withValue(String value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java index 24fff1bc60..470924ef5b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluentImpl.java @@ -20,7 +20,7 @@ public class V1TolerationFluentImpl> extends Bas implements V1TolerationFluent { public V1TolerationFluentImpl() {} - public V1TolerationFluentImpl(io.kubernetes.client.openapi.models.V1Toleration instance) { + public V1TolerationFluentImpl(V1Toleration instance) { this.withEffect(instance.getEffect()); this.withKey(instance.getKey()); @@ -33,16 +33,16 @@ public V1TolerationFluentImpl(io.kubernetes.client.openapi.models.V1Toleration i } private String effect; - private java.lang.String key; - private java.lang.String operator; + private String key; + private String operator; private Long tolerationSeconds; - private java.lang.String value; + private String value; - public java.lang.String getEffect() { + public String getEffect() { return this.effect; } - public A withEffect(java.lang.String effect) { + public A withEffect(String effect) { this.effect = effect; return (A) this; } @@ -51,55 +51,55 @@ public Boolean hasEffect() { return this.effect != null; } - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } - public java.lang.Boolean hasKey() { + public Boolean hasKey() { return this.key != null; } - public java.lang.String getOperator() { + public String getOperator() { return this.operator; } - public A withOperator(java.lang.String operator) { + public A withOperator(String operator) { this.operator = operator; return (A) this; } - public java.lang.Boolean hasOperator() { + public Boolean hasOperator() { return this.operator != null; } - public java.lang.Long getTolerationSeconds() { + public Long getTolerationSeconds() { return this.tolerationSeconds; } - public A withTolerationSeconds(java.lang.Long tolerationSeconds) { + public A withTolerationSeconds(Long tolerationSeconds) { this.tolerationSeconds = tolerationSeconds; return (A) this; } - public java.lang.Boolean hasTolerationSeconds() { + public Boolean hasTolerationSeconds() { return this.tolerationSeconds != null; } - public java.lang.String getValue() { + public String getValue() { return this.value; } - public A withValue(java.lang.String value) { + public A withValue(String value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -122,7 +122,7 @@ public int hashCode() { effect, key, operator, tolerationSeconds, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (effect != null) { 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 e0b1f39d9c..a07d5082a6 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 @@ -17,8 +17,7 @@ public class V1TopologySelectorLabelRequirementBuilder extends V1TopologySelectorLabelRequirementFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> { + V1TopologySelectorLabelRequirement, V1TopologySelectorLabelRequirementBuilder> { public V1TopologySelectorLabelRequirementBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1TopologySelectorLabelRequirementBuilder( } public V1TopologySelectorLabelRequirementBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementFluent fluent, - java.lang.Boolean validationEnabled) { + V1TopologySelectorLabelRequirementFluent fluent, Boolean validationEnabled) { this(fluent, new V1TopologySelectorLabelRequirement(), validationEnabled); } public V1TopologySelectorLabelRequirementBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement instance) { + V1TopologySelectorLabelRequirementFluent fluent, + V1TopologySelectorLabelRequirement instance) { this(fluent, instance, false); } public V1TopologySelectorLabelRequirementBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementFluent fluent, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement instance, - java.lang.Boolean validationEnabled) { + V1TopologySelectorLabelRequirementFluent fluent, + V1TopologySelectorLabelRequirement instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withKey(instance.getKey()); @@ -56,14 +54,12 @@ public V1TopologySelectorLabelRequirementBuilder( this.validationEnabled = validationEnabled; } - public V1TopologySelectorLabelRequirementBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement instance) { + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirement instance) { this(instance, false); } public V1TopologySelectorLabelRequirementBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement instance, - java.lang.Boolean validationEnabled) { + V1TopologySelectorLabelRequirement instance, Boolean validationEnabled) { this.fluent = this; this.withKey(instance.getKey()); @@ -72,10 +68,10 @@ public V1TopologySelectorLabelRequirementBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementFluent fluent; - java.lang.Boolean validationEnabled; + V1TopologySelectorLabelRequirementFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement build() { + public V1TopologySelectorLabelRequirement build() { V1TopologySelectorLabelRequirement buildable = new V1TopologySelectorLabelRequirement(); buildable.setKey(fluent.getKey()); buildable.setValues(fluent.getValues()); 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 2d994518e9..2800f6843e 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 @@ -23,38 +23,37 @@ public interface V1TopologySelectorLabelRequirementFluent< extends Fluent { public String getKey(); - public A withKey(java.lang.String key); + public A withKey(String key); public Boolean hasKey(); - public A addToValues(Integer index, java.lang.String item); + public A addToValues(Integer index, String item); - public A setToValues(java.lang.Integer index, java.lang.String item); + public A setToValues(Integer index, String item); public A addToValues(java.lang.String... items); - public A addAllToValues(Collection items); + public A addAllToValues(Collection items); public A removeFromValues(java.lang.String... items); - public A removeAllFromValues(java.util.Collection items); + public A removeAllFromValues(Collection items); - public List getValues(); + public List getValues(); - public java.lang.String getValue(java.lang.Integer index); + public String getValue(Integer index); - public java.lang.String getFirstValue(); + public String getFirstValue(); - public java.lang.String getLastValue(); + public String getLastValue(); - public java.lang.String getMatchingValue(Predicate predicate); + public String getMatchingValue(Predicate predicate); - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate); + public Boolean hasMatchingValue(Predicate predicate); - public A withValues(java.util.List values); + public A withValues(List values); public A withValues(java.lang.String... values); - public java.lang.Boolean hasValues(); + public Boolean hasValues(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java index 358fa75f43..3584da757f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluentImpl.java @@ -25,21 +25,20 @@ public class V1TopologySelectorLabelRequirementFluentImpl< extends BaseFluent implements V1TopologySelectorLabelRequirementFluent { public V1TopologySelectorLabelRequirementFluentImpl() {} - public V1TopologySelectorLabelRequirementFluentImpl( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement instance) { + public V1TopologySelectorLabelRequirementFluentImpl(V1TopologySelectorLabelRequirement instance) { this.withKey(instance.getKey()); this.withValues(instance.getValues()); } private String key; - private List values; + private List values; - public java.lang.String getKey() { + public String getKey() { return this.key; } - public A withKey(java.lang.String key) { + public A withKey(String key) { this.key = key; return (A) this; } @@ -48,17 +47,17 @@ public Boolean hasKey() { return this.key != null; } - public A addToValues(Integer index, java.lang.String item) { + public A addToValues(Integer index, String item) { if (this.values == null) { - this.values = new ArrayList(); + this.values = new ArrayList(); } this.values.add(index, item); return (A) this; } - public A setToValues(java.lang.Integer index, java.lang.String item) { + public A setToValues(Integer index, String item) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } this.values.set(index, item); return (A) this; @@ -66,26 +65,26 @@ public A setToValues(java.lang.Integer index, java.lang.String item) { public A addToValues(java.lang.String... items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } - public A addAllToValues(Collection items) { + public A addAllToValues(Collection items) { if (this.values == null) { - this.values = new java.util.ArrayList(); + this.values = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.values.add(item); } return (A) this; } public A removeFromValues(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -93,8 +92,8 @@ public A removeFromValues(java.lang.String... items) { return (A) this; } - public A removeAllFromValues(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromValues(Collection items) { + for (String item : items) { if (this.values != null) { this.values.remove(item); } @@ -102,24 +101,24 @@ public A removeAllFromValues(java.util.Collection items) { return (A) this; } - public java.util.List getValues() { + public List getValues() { return this.values; } - public java.lang.String getValue(java.lang.Integer index) { + public String getValue(Integer index) { return this.values.get(index); } - public java.lang.String getFirstValue() { + public String getFirstValue() { return this.values.get(0); } - public java.lang.String getLastValue() { + public String getLastValue() { return this.values.get(values.size() - 1); } - public java.lang.String getMatchingValue(Predicate predicate) { - for (java.lang.String item : values) { + public String getMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return item; } @@ -127,9 +126,8 @@ public java.lang.String getMatchingValue(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingValue( - java.util.function.Predicate predicate) { - for (java.lang.String item : values) { + public Boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { if (predicate.test(item)) { return true; } @@ -137,10 +135,10 @@ public java.lang.Boolean hasMatchingValue( return false; } - public A withValues(java.util.List values) { + public A withValues(List values) { if (values != null) { - this.values = new java.util.ArrayList(); - for (java.lang.String item : values) { + this.values = new ArrayList(); + for (String item : values) { this.addToValues(item); } } else { @@ -154,14 +152,14 @@ public A withValues(java.lang.String... values) { this.values.clear(); } if (values != null) { - for (java.lang.String item : values) { + for (String item : values) { this.addToValues(item); } } return (A) this; } - public java.lang.Boolean hasValues() { + public Boolean hasValues() { return values != null && !values.isEmpty(); } @@ -179,7 +177,7 @@ public int hashCode() { return java.util.Objects.hash(key, values, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (key != null) { 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 ac5b29b155..c4cf34e184 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 @@ -16,8 +16,7 @@ public class V1TopologySelectorTermBuilder extends V1TopologySelectorTermFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TopologySelectorTerm, V1TopologySelectorTermBuilder> { + implements VisitableBuilder { public V1TopologySelectorTermBuilder() { this(false); } @@ -31,45 +30,40 @@ public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent) { } public V1TopologySelectorTermBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent fluent, - java.lang.Boolean validationEnabled) { + V1TopologySelectorTermFluent fluent, Boolean validationEnabled) { this(fluent, new V1TopologySelectorTerm(), validationEnabled); } public V1TopologySelectorTermBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent fluent, - io.kubernetes.client.openapi.models.V1TopologySelectorTerm instance) { + V1TopologySelectorTermFluent fluent, V1TopologySelectorTerm instance) { this(fluent, instance, false); } public V1TopologySelectorTermBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent fluent, - io.kubernetes.client.openapi.models.V1TopologySelectorTerm instance, - java.lang.Boolean validationEnabled) { + V1TopologySelectorTermFluent fluent, + V1TopologySelectorTerm instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMatchLabelExpressions(instance.getMatchLabelExpressions()); this.validationEnabled = validationEnabled; } - public V1TopologySelectorTermBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm instance) { + public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance) { this(instance, false); } - public V1TopologySelectorTermBuilder( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm instance, - java.lang.Boolean validationEnabled) { + public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance, Boolean validationEnabled) { this.fluent = this; this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent fluent; - java.lang.Boolean validationEnabled; + V1TopologySelectorTermFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TopologySelectorTerm build() { + public V1TopologySelectorTerm build() { V1TopologySelectorTerm buildable = new V1TopologySelectorTerm(); buildable.setMatchLabelExpressions(fluent.getMatchLabelExpressions()); return buildable; 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 31e5be4dc8..305de3b815 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 @@ -23,22 +23,17 @@ public interface V1TopologySelectorTermFluent { public A addToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item); - public A setToMatchLabelExpressions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item); + public A setToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item); public A addToMatchLabelExpressions( io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items); - public A addAllToMatchLabelExpressions( - Collection items); + public A addAllToMatchLabelExpressions(Collection items); public A removeFromMatchLabelExpressions( io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items); - public A removeAllFromMatchLabelExpressions( - java.util.Collection - items); + public A removeAllFromMatchLabelExpressions(Collection items); public A removeMatchingFromMatchLabelExpressions( Predicate predicate); @@ -49,79 +44,50 @@ public A removeMatchingFromMatchLabelExpressions( * @return The buildable object. */ @Deprecated - public List - getMatchLabelExpressions(); + public List getMatchLabelExpressions(); - public java.util.List - buildMatchLabelExpressions(); + public List buildMatchLabelExpressions(); - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildMatchLabelExpression(java.lang.Integer index); + public V1TopologySelectorLabelRequirement buildMatchLabelExpression(Integer index); - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildFirstMatchLabelExpression(); + public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression(); - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildLastMatchLabelExpression(); + public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression(); - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildMatchingMatchLabelExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> - predicate); + public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression( + Predicate predicate); public Boolean hasMatchingMatchLabelExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> - predicate); + Predicate predicate); public A withMatchLabelExpressions( - java.util.List - matchLabelExpressions); + List matchLabelExpressions); public A withMatchLabelExpressions( io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... matchLabelExpressions); - public java.lang.Boolean hasMatchLabelExpressions(); + public Boolean hasMatchLabelExpressions(); public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpression(); - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - addNewMatchLabelExpressionLike( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item); - - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - setNewMatchLabelExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item); - - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - editMatchLabelExpression(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpressionLike( + V1TopologySelectorLabelRequirement item); + + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested setNewMatchLabelExpressionLike( + Integer index, V1TopologySelectorLabelRequirement item); + + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchLabelExpression( + Integer index); + + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editFirstMatchLabelExpression(); - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - editLastMatchLabelExpression(); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editLastMatchLabelExpression(); - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchingMatchLabelExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> - predicate); + Predicate predicate); public interface MatchLabelExpressionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java index 5ce03e1161..0d05770534 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluentImpl.java @@ -26,21 +26,18 @@ public class V1TopologySelectorTermFluentImpl implements V1TopologySelectorTermFluent { public V1TopologySelectorTermFluentImpl() {} - public V1TopologySelectorTermFluentImpl( - io.kubernetes.client.openapi.models.V1TopologySelectorTerm instance) { + public V1TopologySelectorTermFluentImpl(V1TopologySelectorTerm instance) { this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); } private ArrayList matchLabelExpressions; - public A addToMatchLabelExpressions( - Integer index, io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item) { + public A addToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = - new java.util.ArrayList(); + this.matchLabelExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(item); + V1TopologySelectorLabelRequirementBuilder builder = + new V1TopologySelectorLabelRequirementBuilder(item); _visitables .get("matchLabelExpressions") .add(index >= 0 ? index : _visitables.get("matchLabelExpressions").size(), builder); @@ -48,16 +45,12 @@ public A addToMatchLabelExpressions( return (A) this; } - public A setToMatchLabelExpressions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item) { + public A setToMatchLabelExpressions(Integer index, V1TopologySelectorLabelRequirement item) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder>(); + this.matchLabelExpressions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(item); + V1TopologySelectorLabelRequirementBuilder builder = + new V1TopologySelectorLabelRequirementBuilder(item); if (index < 0 || index >= _visitables.get("matchLabelExpressions").size()) { _visitables.get("matchLabelExpressions").add(builder); } else { @@ -74,29 +67,24 @@ public A setToMatchLabelExpressions( public A addToMatchLabelExpressions( io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder>(); + this.matchLabelExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(item); + 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) { + public A addAllToMatchLabelExpressions(Collection items) { if (this.matchLabelExpressions == null) { - this.matchLabelExpressions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder>(); + this.matchLabelExpressions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(item); + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = + new V1TopologySelectorLabelRequirementBuilder(item); _visitables.get("matchLabelExpressions").add(builder); this.matchLabelExpressions.add(builder); } @@ -105,9 +93,9 @@ public A addAllToMatchLabelExpressions( public A removeFromMatchLabelExpressions( io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(item); + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = + new V1TopologySelectorLabelRequirementBuilder(item); _visitables.get("matchLabelExpressions").remove(builder); if (this.matchLabelExpressions != null) { this.matchLabelExpressions.remove(builder); @@ -117,11 +105,10 @@ public A removeFromMatchLabelExpressions( } public A removeAllFromMatchLabelExpressions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item : items) { - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(item); + Collection items) { + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = + new V1TopologySelectorLabelRequirementBuilder(item); _visitables.get("matchLabelExpressions").remove(builder); if (this.matchLabelExpressions != null) { this.matchLabelExpressions.remove(builder); @@ -131,15 +118,13 @@ public A removeAllFromMatchLabelExpressions( } public A removeMatchingFromMatchLabelExpressions( - Predicate - predicate) { + Predicate predicate) { if (matchLabelExpressions == null) return (A) this; - final Iterator - each = matchLabelExpressions.iterator(); + final Iterator each = + matchLabelExpressions.iterator(); final List visitables = _visitables.get("matchLabelExpressions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder = - each.next(); + V1TopologySelectorLabelRequirementBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -154,38 +139,29 @@ public A removeMatchingFromMatchLabelExpressions( * @return The buildable object. */ @Deprecated - public List - getMatchLabelExpressions() { + public List getMatchLabelExpressions() { return matchLabelExpressions != null ? build(matchLabelExpressions) : null; } - public java.util.List - buildMatchLabelExpressions() { + public List buildMatchLabelExpressions() { return matchLabelExpressions != null ? build(matchLabelExpressions) : null; } - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildMatchLabelExpression(java.lang.Integer index) { + public V1TopologySelectorLabelRequirement buildMatchLabelExpression(Integer index) { return this.matchLabelExpressions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildFirstMatchLabelExpression() { + public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression() { return this.matchLabelExpressions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildLastMatchLabelExpression() { + public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression() { return this.matchLabelExpressions.get(matchLabelExpressions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement - buildMatchingMatchLabelExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder item : - matchLabelExpressions) { + public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression( + Predicate predicate) { + for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { if (predicate.test(item)) { return item.build(); } @@ -194,11 +170,8 @@ public A removeMatchingFromMatchLabelExpressions( } public Boolean hasMatchingMatchLabelExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder item : - matchLabelExpressions) { + Predicate predicate) { + for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { if (predicate.test(item)) { return true; } @@ -207,15 +180,13 @@ public Boolean hasMatchingMatchLabelExpression( } public A withMatchLabelExpressions( - java.util.List - matchLabelExpressions) { + List matchLabelExpressions) { if (this.matchLabelExpressions != null) { _visitables.get("matchLabelExpressions").removeAll(this.matchLabelExpressions); } if (matchLabelExpressions != null) { - this.matchLabelExpressions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item : - matchLabelExpressions) { + this.matchLabelExpressions = new ArrayList(); + for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { this.addToMatchLabelExpressions(item); } } else { @@ -231,15 +202,14 @@ public A withMatchLabelExpressions( this.matchLabelExpressions.clear(); } if (matchLabelExpressions != null) { - for (io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item : - matchLabelExpressions) { + for (V1TopologySelectorLabelRequirement item : matchLabelExpressions) { this.addToMatchLabelExpressions(item); } } return (A) this; } - public java.lang.Boolean hasMatchLabelExpressions() { + public Boolean hasMatchLabelExpressions() { return matchLabelExpressions != null && !matchLabelExpressions.isEmpty(); } @@ -247,45 +217,31 @@ public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLa return new V1TopologySelectorTermFluentImpl.MatchLabelExpressionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - addNewMatchLabelExpressionLike( - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item) { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLabelExpressionLike( + V1TopologySelectorLabelRequirement item) { return new V1TopologySelectorTermFluentImpl.MatchLabelExpressionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - setNewMatchLabelExpressionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item) { - return new io.kubernetes.client.openapi.models.V1TopologySelectorTermFluentImpl - .MatchLabelExpressionsNestedImpl(index, item); + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested setNewMatchLabelExpressionLike( + Integer index, V1TopologySelectorLabelRequirement item) { + return new V1TopologySelectorTermFluentImpl.MatchLabelExpressionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> - editMatchLabelExpression(java.lang.Integer index) { + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchLabelExpression( + Integer index) { if (matchLabelExpressions.size() <= index) throw new RuntimeException("Can't edit matchLabelExpressions. Index exceeds size."); return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editFirstMatchLabelExpression() { if (matchLabelExpressions.size() == 0) throw new RuntimeException("Can't edit first matchLabelExpressions. The list is empty."); return setNewMatchLabelExpressionLike(0, buildMatchLabelExpression(0)); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editLastMatchLabelExpression() { int index = matchLabelExpressions.size() - 1; if (index < 0) @@ -293,13 +249,9 @@ public V1TopologySelectorTermFluent.MatchLabelExpressionsNested addNewMatchLa return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); } - public io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - A> + public V1TopologySelectorTermFluent.MatchLabelExpressionsNested editMatchingMatchLabelExpression( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder> - predicate) { + Predicate predicate) { int index = -1; for (int i = 0; i < matchLabelExpressions.size(); i++) { if (predicate.test(matchLabelExpressions.get(i))) { @@ -340,25 +292,19 @@ public String toString() { class MatchLabelExpressionsNestedImpl extends V1TopologySelectorLabelRequirementFluentImpl< V1TopologySelectorTermFluent.MatchLabelExpressionsNested> - implements io.kubernetes.client.openapi.models.V1TopologySelectorTermFluent - .MatchLabelExpressionsNested< - N>, - Nested { - MatchLabelExpressionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement item) { + implements V1TopologySelectorTermFluent.MatchLabelExpressionsNested, Nested { + MatchLabelExpressionsNestedImpl(Integer index, V1TopologySelectorLabelRequirement item) { this.index = index; this.builder = new V1TopologySelectorLabelRequirementBuilder(this, item); } MatchLabelExpressionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder(this); + this.builder = new V1TopologySelectorLabelRequirementBuilder(this); } - io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirementBuilder builder; - java.lang.Integer index; + V1TopologySelectorLabelRequirementBuilder builder; + Integer index; public N and() { return (N) 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 a8c5112d3b..294c0aca23 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 @@ -16,9 +16,7 @@ public class V1TopologySpreadConstraintBuilder extends V1TopologySpreadConstraintFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintBuilder> { + implements VisitableBuilder { public V1TopologySpreadConstraintBuilder() { this(false); } @@ -32,28 +30,32 @@ public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent flu } public V1TopologySpreadConstraintBuilder( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent fluent, - java.lang.Boolean validationEnabled) { + V1TopologySpreadConstraintFluent fluent, Boolean validationEnabled) { this(fluent, new V1TopologySpreadConstraint(), validationEnabled); } public V1TopologySpreadConstraintBuilder( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent fluent, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint instance) { + V1TopologySpreadConstraintFluent fluent, V1TopologySpreadConstraint instance) { this(fluent, instance, false); } public V1TopologySpreadConstraintBuilder( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent fluent, - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint instance, - java.lang.Boolean validationEnabled) { + V1TopologySpreadConstraintFluent fluent, + V1TopologySpreadConstraint instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLabelSelector(instance.getLabelSelector()); + fluent.withMatchLabelKeys(instance.getMatchLabelKeys()); + fluent.withMaxSkew(instance.getMaxSkew()); fluent.withMinDomains(instance.getMinDomains()); + fluent.withNodeAffinityPolicy(instance.getNodeAffinityPolicy()); + + fluent.withNodeTaintsPolicy(instance.getNodeTaintsPolicy()); + fluent.withTopologyKey(instance.getTopologyKey()); fluent.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); @@ -61,21 +63,25 @@ public V1TopologySpreadConstraintBuilder( this.validationEnabled = validationEnabled; } - public V1TopologySpreadConstraintBuilder( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint instance) { + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraint instance) { this(instance, false); } public V1TopologySpreadConstraintBuilder( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint instance, - java.lang.Boolean validationEnabled) { + V1TopologySpreadConstraint instance, Boolean validationEnabled) { this.fluent = this; 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()); @@ -83,14 +89,17 @@ public V1TopologySpreadConstraintBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent fluent; - java.lang.Boolean validationEnabled; + V1TopologySpreadConstraintFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraint build() { + public V1TopologySpreadConstraint build() { V1TopologySpreadConstraint buildable = new V1TopologySpreadConstraint(); buildable.setLabelSelector(fluent.getLabelSelector()); + buildable.setMatchLabelKeys(fluent.getMatchLabelKeys()); buildable.setMaxSkew(fluent.getMaxSkew()); buildable.setMinDomains(fluent.getMinDomains()); + buildable.setNodeAffinityPolicy(fluent.getNodeAffinityPolicy()); + buildable.setNodeTaintsPolicy(fluent.getNodeTaintsPolicy()); buildable.setTopologyKey(fluent.getTopologyKey()); buildable.setWhenUnsatisfiable(fluent.getWhenUnsatisfiable()); return buildable; 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 4d81595fc4..735241d3f0 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 @@ -14,6 +14,9 @@ import io.kubernetes.client.fluent.Fluent; import io.kubernetes.client.fluent.Nested; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; /** Generated */ public interface V1TopologySpreadConstraintFluent> @@ -27,49 +30,89 @@ public interface V1TopologySpreadConstraintFluent withNewLabelSelector(); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - withNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - editLabelSelector(); + public V1TopologySpreadConstraintFluent.LabelSelectorNested editLabelSelector(); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - editOrNewLabelSelector(); + public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelector(); - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - editOrNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelectorLike( + V1LabelSelector item); + + public A addToMatchLabelKeys(Integer index, String item); + + public A setToMatchLabelKeys(Integer index, String item); + + public A addToMatchLabelKeys(java.lang.String... items); + + public A addAllToMatchLabelKeys(Collection items); + + public A removeFromMatchLabelKeys(java.lang.String... items); + + public A removeAllFromMatchLabelKeys(Collection items); + + public List getMatchLabelKeys(); + + public String getMatchLabelKey(Integer index); + + public String getFirstMatchLabelKey(); + + public String getLastMatchLabelKey(); + + public String getMatchingMatchLabelKey(Predicate predicate); + + public Boolean hasMatchingMatchLabelKey(Predicate predicate); + + public A withMatchLabelKeys(List matchLabelKeys); + + public A withMatchLabelKeys(java.lang.String... matchLabelKeys); + + public Boolean hasMatchLabelKeys(); public Integer getMaxSkew(); - public A withMaxSkew(java.lang.Integer maxSkew); + public A withMaxSkew(Integer maxSkew); + + public Boolean hasMaxSkew(); + + public Integer getMinDomains(); + + public A withMinDomains(Integer minDomains); + + public Boolean hasMinDomains(); + + public String getNodeAffinityPolicy(); + + public A withNodeAffinityPolicy(String nodeAffinityPolicy); - public java.lang.Boolean hasMaxSkew(); + public Boolean hasNodeAffinityPolicy(); - public java.lang.Integer getMinDomains(); + public String getNodeTaintsPolicy(); - public A withMinDomains(java.lang.Integer minDomains); + public A withNodeTaintsPolicy(String nodeTaintsPolicy); - public java.lang.Boolean hasMinDomains(); + public Boolean hasNodeTaintsPolicy(); public String getTopologyKey(); - public A withTopologyKey(java.lang.String topologyKey); + public A withTopologyKey(String topologyKey); - public java.lang.Boolean hasTopologyKey(); + public Boolean hasTopologyKey(); - public java.lang.String getWhenUnsatisfiable(); + public String getWhenUnsatisfiable(); - public A withWhenUnsatisfiable(java.lang.String whenUnsatisfiable); + public A withWhenUnsatisfiable(String whenUnsatisfiable); - public java.lang.Boolean hasWhenUnsatisfiable(); + public Boolean hasWhenUnsatisfiable(); public interface LabelSelectorNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java index 81a2f0cb64..0641bfa2c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluentImpl.java @@ -14,6 +14,10 @@ import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; /** Generated */ @SuppressWarnings(value = "unchecked") @@ -21,24 +25,32 @@ public class V1TopologySpreadConstraintFluentImpl implements V1TopologySpreadConstraintFluent { public V1TopologySpreadConstraintFluentImpl() {} - public V1TopologySpreadConstraintFluentImpl( - io.kubernetes.client.openapi.models.V1TopologySpreadConstraint instance) { + public V1TopologySpreadConstraintFluentImpl(V1TopologySpreadConstraint instance) { 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()); } private V1LabelSelectorBuilder labelSelector; + private List matchLabelKeys; private Integer maxSkew; - private java.lang.Integer minDomains; + private Integer minDomains; + private String nodeAffinityPolicy; + private String nodeTaintsPolicy; private String topologyKey; - private java.lang.String whenUnsatisfiable; + private String whenUnsatisfiable; /** * This method has been deprecated, please use method buildLabelSelector instead. @@ -46,19 +58,22 @@ public V1TopologySpreadConstraintFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getLabelSelector() { + public V1LabelSelector getLabelSelector() { return this.labelSelector != null ? this.labelSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildLabelSelector() { + public V1LabelSelector buildLabelSelector() { return this.labelSelector != null ? this.labelSelector.build() : null; } - public A withLabelSelector(io.kubernetes.client.openapi.models.V1LabelSelector labelSelector) { + public A withLabelSelector(V1LabelSelector labelSelector) { _visitables.get("labelSelector").remove(this.labelSelector); if (labelSelector != null) { this.labelSelector = new V1LabelSelectorBuilder(labelSelector); _visitables.get("labelSelector").add(this.labelSelector); + } else { + this.labelSelector = null; + _visitables.get("labelSelector").remove(this.labelSelector); } return (A) this; } @@ -71,78 +86,216 @@ public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelec return new V1TopologySpreadConstraintFluentImpl.LabelSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - withNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1TopologySpreadConstraintFluent.LabelSelectorNested withNewLabelSelectorLike( + V1LabelSelector item) { return new V1TopologySpreadConstraintFluentImpl.LabelSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - editLabelSelector() { + public V1TopologySpreadConstraintFluent.LabelSelectorNested editLabelSelector() { return withNewLabelSelectorLike(getLabelSelector()); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - editOrNewLabelSelector() { + public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelector() { return withNewLabelSelectorLike( - getLabelSelector() != null - ? getLabelSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getLabelSelector() != null ? getLabelSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent.LabelSelectorNested - editOrNewLabelSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1TopologySpreadConstraintFluent.LabelSelectorNested editOrNewLabelSelectorLike( + V1LabelSelector item) { return withNewLabelSelectorLike(getLabelSelector() != null ? getLabelSelector() : item); } - public java.lang.Integer getMaxSkew() { + public A addToMatchLabelKeys(Integer index, String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.add(index, item); + return (A) this; + } + + public A setToMatchLabelKeys(Integer index, String item) { + 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 addAllToMatchLabelKeys(Collection items) { + 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) { + for (String item : items) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.remove(item); + } + } + return (A) this; + } + + public A removeAllFromMatchLabelKeys(Collection items) { + for (String item : items) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.remove(item); + } + } + return (A) this; + } + + public List getMatchLabelKeys() { + return this.matchLabelKeys; + } + + public String getMatchLabelKey(Integer index) { + return this.matchLabelKeys.get(index); + } + + public String getFirstMatchLabelKey() { + return this.matchLabelKeys.get(0); + } + + public String getLastMatchLabelKey() { + return this.matchLabelKeys.get(matchLabelKeys.size() - 1); + } + + public String getMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Boolean hasMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withMatchLabelKeys(List matchLabelKeys) { + if (matchLabelKeys != null) { + this.matchLabelKeys = new ArrayList(); + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); + } + } else { + this.matchLabelKeys = null; + } + return (A) this; + } + + public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.clear(); + } + if (matchLabelKeys != null) { + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); + } + } + return (A) this; + } + + public Boolean hasMatchLabelKeys() { + return matchLabelKeys != null && !matchLabelKeys.isEmpty(); + } + + public Integer getMaxSkew() { return this.maxSkew; } - public A withMaxSkew(java.lang.Integer maxSkew) { + public A withMaxSkew(Integer maxSkew) { this.maxSkew = maxSkew; return (A) this; } - public java.lang.Boolean hasMaxSkew() { + public Boolean hasMaxSkew() { return this.maxSkew != null; } - public java.lang.Integer getMinDomains() { + public Integer getMinDomains() { return this.minDomains; } - public A withMinDomains(java.lang.Integer minDomains) { + public A withMinDomains(Integer minDomains) { this.minDomains = minDomains; return (A) this; } - public java.lang.Boolean hasMinDomains() { + public Boolean hasMinDomains() { return this.minDomains != null; } - public java.lang.String getTopologyKey() { + public String getNodeAffinityPolicy() { + return this.nodeAffinityPolicy; + } + + public A withNodeAffinityPolicy(String nodeAffinityPolicy) { + this.nodeAffinityPolicy = nodeAffinityPolicy; + return (A) this; + } + + public Boolean hasNodeAffinityPolicy() { + return this.nodeAffinityPolicy != null; + } + + public String getNodeTaintsPolicy() { + return this.nodeTaintsPolicy; + } + + public A withNodeTaintsPolicy(String nodeTaintsPolicy) { + this.nodeTaintsPolicy = nodeTaintsPolicy; + return (A) this; + } + + public Boolean hasNodeTaintsPolicy() { + return this.nodeTaintsPolicy != null; + } + + public String getTopologyKey() { return this.topologyKey; } - public A withTopologyKey(java.lang.String topologyKey) { + public A withTopologyKey(String topologyKey) { this.topologyKey = topologyKey; return (A) this; } - public java.lang.Boolean hasTopologyKey() { + public Boolean hasTopologyKey() { return this.topologyKey != null; } - public java.lang.String getWhenUnsatisfiable() { + public String getWhenUnsatisfiable() { return this.whenUnsatisfiable; } - public A withWhenUnsatisfiable(java.lang.String whenUnsatisfiable) { + public A withWhenUnsatisfiable(String whenUnsatisfiable) { this.whenUnsatisfiable = whenUnsatisfiable; return (A) this; } - public java.lang.Boolean hasWhenUnsatisfiable() { + public Boolean hasWhenUnsatisfiable() { return this.whenUnsatisfiable != null; } @@ -153,9 +306,18 @@ public boolean equals(Object o) { if (labelSelector != null ? !labelSelector.equals(that.labelSelector) : that.labelSelector != null) return false; + if (matchLabelKeys != null + ? !matchLabelKeys.equals(that.matchLabelKeys) + : that.matchLabelKeys != null) return false; if (maxSkew != null ? !maxSkew.equals(that.maxSkew) : that.maxSkew != null) return false; if (minDomains != null ? !minDomains.equals(that.minDomains) : that.minDomains != null) return false; + if (nodeAffinityPolicy != null + ? !nodeAffinityPolicy.equals(that.nodeAffinityPolicy) + : that.nodeAffinityPolicy != null) return false; + if (nodeTaintsPolicy != null + ? !nodeTaintsPolicy.equals(that.nodeTaintsPolicy) + : that.nodeTaintsPolicy != null) return false; if (topologyKey != null ? !topologyKey.equals(that.topologyKey) : that.topologyKey != null) return false; if (whenUnsatisfiable != null @@ -166,16 +328,28 @@ public boolean equals(Object o) { public int hashCode() { return java.util.Objects.hash( - labelSelector, maxSkew, minDomains, topologyKey, whenUnsatisfiable, super.hashCode()); + labelSelector, + matchLabelKeys, + maxSkew, + minDomains, + nodeAffinityPolicy, + nodeTaintsPolicy, + topologyKey, + whenUnsatisfiable, + super.hashCode()); } - public java.lang.String toString() { + 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 + ","); @@ -184,6 +358,14 @@ public java.lang.String toString() { 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 + ","); @@ -198,19 +380,16 @@ public java.lang.String toString() { class LabelSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1TopologySpreadConstraintFluent - .LabelSelectorNested< - N>, - Nested { + implements V1TopologySpreadConstraintFluent.LabelSelectorNested, Nested { LabelSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } LabelSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1TopologySpreadConstraintFluentImpl.this.withLabelSelector(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java index c1e7641ae8..1583e65a67 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java @@ -16,9 +16,7 @@ public class V1TypedLocalObjectReferenceBuilder extends V1TypedLocalObjectReferenceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference, - V1TypedLocalObjectReferenceBuilder> { + implements VisitableBuilder { public V1TypedLocalObjectReferenceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent f } public V1TypedLocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V1TypedLocalObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1TypedLocalObjectReference(), validationEnabled); } public V1TypedLocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference instance) { + V1TypedLocalObjectReferenceFluent fluent, V1TypedLocalObjectReference instance) { this(fluent, instance, false); } public V1TypedLocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference instance, - java.lang.Boolean validationEnabled) { + V1TypedLocalObjectReferenceFluent fluent, + V1TypedLocalObjectReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroup(instance.getApiGroup()); @@ -57,14 +53,12 @@ public V1TypedLocalObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - public V1TypedLocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference instance) { + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReference instance) { this(instance, false); } public V1TypedLocalObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference instance, - java.lang.Boolean validationEnabled) { + V1TypedLocalObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroup(instance.getApiGroup()); @@ -75,10 +69,10 @@ public V1TypedLocalObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1TypedLocalObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1TypedLocalObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1TypedLocalObjectReference build() { + public V1TypedLocalObjectReference build() { V1TypedLocalObjectReference buildable = new V1TypedLocalObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); buildable.setKind(fluent.getKind()); 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 0820908f7d..798b8e05d7 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 @@ -19,19 +19,19 @@ public interface V1TypedLocalObjectReferenceFluent { public String getApiGroup(); - public A withApiGroup(java.lang.String apiGroup); + public A withApiGroup(String apiGroup); public Boolean hasApiGroup(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java index 7d43f58210..dba1a55a38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluentImpl.java @@ -20,8 +20,7 @@ public class V1TypedLocalObjectReferenceFluentImpl implements V1TypedLocalObjectReferenceFluent { public V1TypedLocalObjectReferenceFluentImpl() {} - public V1TypedLocalObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1TypedLocalObjectReference instance) { + public V1TypedLocalObjectReferenceFluentImpl(V1TypedLocalObjectReference instance) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -30,14 +29,14 @@ public V1TypedLocalObjectReferenceFluentImpl( } private String apiGroup; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; - public java.lang.String getApiGroup() { + public String getApiGroup() { return this.apiGroup; } - public A withApiGroup(java.lang.String apiGroup) { + public A withApiGroup(String apiGroup) { this.apiGroup = apiGroup; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasApiGroup() { return this.apiGroup != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -86,7 +85,7 @@ public int hashCode() { return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroup != null) { 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 16873a3eac..0af7be9f53 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 @@ -16,9 +16,7 @@ public class V1UncountedTerminatedPodsBuilder extends V1UncountedTerminatedPodsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods, - io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsBuilder> { + implements VisitableBuilder { public V1UncountedTerminatedPodsBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluen } public V1UncountedTerminatedPodsBuilder( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsFluent fluent, - java.lang.Boolean validationEnabled) { + V1UncountedTerminatedPodsFluent fluent, Boolean validationEnabled) { this(fluent, new V1UncountedTerminatedPods(), validationEnabled); } public V1UncountedTerminatedPodsBuilder( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsFluent fluent, - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods instance) { + V1UncountedTerminatedPodsFluent fluent, V1UncountedTerminatedPods instance) { this(fluent, instance, false); } public V1UncountedTerminatedPodsBuilder( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsFluent fluent, - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods instance, - java.lang.Boolean validationEnabled) { + V1UncountedTerminatedPodsFluent fluent, + V1UncountedTerminatedPods instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFailed(instance.getFailed()); @@ -55,14 +51,12 @@ public V1UncountedTerminatedPodsBuilder( this.validationEnabled = validationEnabled; } - public V1UncountedTerminatedPodsBuilder( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods instance) { + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPods instance) { this(instance, false); } public V1UncountedTerminatedPodsBuilder( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods instance, - java.lang.Boolean validationEnabled) { + V1UncountedTerminatedPods instance, Boolean validationEnabled) { this.fluent = this; this.withFailed(instance.getFailed()); @@ -71,10 +65,10 @@ public V1UncountedTerminatedPodsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1UncountedTerminatedPodsFluent fluent; - java.lang.Boolean validationEnabled; + V1UncountedTerminatedPodsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1UncountedTerminatedPods build() { + public V1UncountedTerminatedPods build() { V1UncountedTerminatedPods buildable = new V1UncountedTerminatedPods(); buildable.setFailed(fluent.getFailed()); buildable.setSucceeded(fluent.getSucceeded()); 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 14bf4205ba..d12d12512f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java @@ -22,63 +22,61 @@ public interface V1UncountedTerminatedPodsFluent { public A addToFailed(Integer index, String item); - public A setToFailed(java.lang.Integer index, java.lang.String item); + public A setToFailed(Integer index, String item); public A addToFailed(java.lang.String... items); - public A addAllToFailed(Collection items); + public A addAllToFailed(Collection items); public A removeFromFailed(java.lang.String... items); - public A removeAllFromFailed(java.util.Collection items); + public A removeAllFromFailed(Collection items); - public List getFailed(); + public List getFailed(); - public java.lang.String getFailed(java.lang.Integer index); + public String getFailed(Integer index); - public java.lang.String getFirstFailed(); + public String getFirstFailed(); - public java.lang.String getLastFailed(); + public String getLastFailed(); - public java.lang.String getMatchingFailed(Predicate predicate); + public String getMatchingFailed(Predicate predicate); - public Boolean hasMatchingFailed(java.util.function.Predicate predicate); + public Boolean hasMatchingFailed(Predicate predicate); - public A withFailed(java.util.List failed); + public A withFailed(List failed); public A withFailed(java.lang.String... failed); - public java.lang.Boolean hasFailed(); + public Boolean hasFailed(); - public A addToSucceeded(java.lang.Integer index, java.lang.String item); + public A addToSucceeded(Integer index, String item); - public A setToSucceeded(java.lang.Integer index, java.lang.String item); + public A setToSucceeded(Integer index, String item); public A addToSucceeded(java.lang.String... items); - public A addAllToSucceeded(java.util.Collection items); + public A addAllToSucceeded(Collection items); public A removeFromSucceeded(java.lang.String... items); - public A removeAllFromSucceeded(java.util.Collection items); + public A removeAllFromSucceeded(Collection items); - public java.util.List getSucceeded(); + public List getSucceeded(); - public java.lang.String getSucceeded(java.lang.Integer index); + public String getSucceeded(Integer index); - public java.lang.String getFirstSucceeded(); + public String getFirstSucceeded(); - public java.lang.String getLastSucceeded(); + public String getLastSucceeded(); - public java.lang.String getMatchingSucceeded( - java.util.function.Predicate predicate); + public String getMatchingSucceeded(Predicate predicate); - public java.lang.Boolean hasMatchingSucceeded( - java.util.function.Predicate predicate); + public Boolean hasMatchingSucceeded(Predicate predicate); - public A withSucceeded(java.util.List succeeded); + public A withSucceeded(List succeeded); public A withSucceeded(java.lang.String... succeeded); - public java.lang.Boolean hasSucceeded(); + public Boolean hasSucceeded(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java index 2f5cdd2fcf..c0ab2756fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluentImpl.java @@ -24,27 +24,26 @@ public class V1UncountedTerminatedPodsFluentImpl implements V1UncountedTerminatedPodsFluent { public V1UncountedTerminatedPodsFluentImpl() {} - public V1UncountedTerminatedPodsFluentImpl( - io.kubernetes.client.openapi.models.V1UncountedTerminatedPods instance) { + public V1UncountedTerminatedPodsFluentImpl(V1UncountedTerminatedPods instance) { this.withFailed(instance.getFailed()); this.withSucceeded(instance.getSucceeded()); } private List failed; - private java.util.List succeeded; + private List succeeded; - public A addToFailed(Integer index, java.lang.String item) { + public A addToFailed(Integer index, String item) { if (this.failed == null) { - this.failed = new ArrayList(); + this.failed = new ArrayList(); } this.failed.add(index, item); return (A) this; } - public A setToFailed(java.lang.Integer index, java.lang.String item) { + public A setToFailed(Integer index, String item) { if (this.failed == null) { - this.failed = new java.util.ArrayList(); + this.failed = new ArrayList(); } this.failed.set(index, item); return (A) this; @@ -52,26 +51,26 @@ public A setToFailed(java.lang.Integer index, java.lang.String item) { public A addToFailed(java.lang.String... items) { if (this.failed == null) { - this.failed = new java.util.ArrayList(); + this.failed = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.failed.add(item); } return (A) this; } - public A addAllToFailed(Collection items) { + public A addAllToFailed(Collection items) { if (this.failed == null) { - this.failed = new java.util.ArrayList(); + this.failed = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.failed.add(item); } return (A) this; } public A removeFromFailed(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.failed != null) { this.failed.remove(item); } @@ -79,8 +78,8 @@ public A removeFromFailed(java.lang.String... items) { return (A) this; } - public A removeAllFromFailed(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromFailed(Collection items) { + for (String item : items) { if (this.failed != null) { this.failed.remove(item); } @@ -88,24 +87,24 @@ public A removeAllFromFailed(java.util.Collection items) { return (A) this; } - public java.util.List getFailed() { + public List getFailed() { return this.failed; } - public java.lang.String getFailed(java.lang.Integer index) { + public String getFailed(Integer index) { return this.failed.get(index); } - public java.lang.String getFirstFailed() { + public String getFirstFailed() { return this.failed.get(0); } - public java.lang.String getLastFailed() { + public String getLastFailed() { return this.failed.get(failed.size() - 1); } - public java.lang.String getMatchingFailed(Predicate predicate) { - for (java.lang.String item : failed) { + public String getMatchingFailed(Predicate predicate) { + for (String item : failed) { if (predicate.test(item)) { return item; } @@ -113,8 +112,8 @@ public java.lang.String getMatchingFailed(Predicate predicate) return null; } - public Boolean hasMatchingFailed(java.util.function.Predicate predicate) { - for (java.lang.String item : failed) { + public Boolean hasMatchingFailed(Predicate predicate) { + for (String item : failed) { if (predicate.test(item)) { return true; } @@ -122,10 +121,10 @@ public Boolean hasMatchingFailed(java.util.function.Predicate return false; } - public A withFailed(java.util.List failed) { + public A withFailed(List failed) { if (failed != null) { - this.failed = new java.util.ArrayList(); - for (java.lang.String item : failed) { + this.failed = new ArrayList(); + for (String item : failed) { this.addToFailed(item); } } else { @@ -139,28 +138,28 @@ public A withFailed(java.lang.String... failed) { this.failed.clear(); } if (failed != null) { - for (java.lang.String item : failed) { + for (String item : failed) { this.addToFailed(item); } } return (A) this; } - public java.lang.Boolean hasFailed() { + public Boolean hasFailed() { return failed != null && !failed.isEmpty(); } - public A addToSucceeded(java.lang.Integer index, java.lang.String item) { + public A addToSucceeded(Integer index, String item) { if (this.succeeded == null) { - this.succeeded = new java.util.ArrayList(); + this.succeeded = new ArrayList(); } this.succeeded.add(index, item); return (A) this; } - public A setToSucceeded(java.lang.Integer index, java.lang.String item) { + public A setToSucceeded(Integer index, String item) { if (this.succeeded == null) { - this.succeeded = new java.util.ArrayList(); + this.succeeded = new ArrayList(); } this.succeeded.set(index, item); return (A) this; @@ -168,26 +167,26 @@ public A setToSucceeded(java.lang.Integer index, java.lang.String item) { public A addToSucceeded(java.lang.String... items) { if (this.succeeded == null) { - this.succeeded = new java.util.ArrayList(); + this.succeeded = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.succeeded.add(item); } return (A) this; } - public A addAllToSucceeded(java.util.Collection items) { + public A addAllToSucceeded(Collection items) { if (this.succeeded == null) { - this.succeeded = new java.util.ArrayList(); + this.succeeded = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.succeeded.add(item); } return (A) this; } public A removeFromSucceeded(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.succeeded != null) { this.succeeded.remove(item); } @@ -195,8 +194,8 @@ public A removeFromSucceeded(java.lang.String... items) { return (A) this; } - public A removeAllFromSucceeded(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromSucceeded(Collection items) { + for (String item : items) { if (this.succeeded != null) { this.succeeded.remove(item); } @@ -204,25 +203,24 @@ public A removeAllFromSucceeded(java.util.Collection items) { return (A) this; } - public java.util.List getSucceeded() { + public List getSucceeded() { return this.succeeded; } - public java.lang.String getSucceeded(java.lang.Integer index) { + public String getSucceeded(Integer index) { return this.succeeded.get(index); } - public java.lang.String getFirstSucceeded() { + public String getFirstSucceeded() { return this.succeeded.get(0); } - public java.lang.String getLastSucceeded() { + public String getLastSucceeded() { return this.succeeded.get(succeeded.size() - 1); } - public java.lang.String getMatchingSucceeded( - java.util.function.Predicate predicate) { - for (java.lang.String item : succeeded) { + public String getMatchingSucceeded(Predicate predicate) { + for (String item : succeeded) { if (predicate.test(item)) { return item; } @@ -230,9 +228,8 @@ public java.lang.String getMatchingSucceeded( return null; } - public java.lang.Boolean hasMatchingSucceeded( - java.util.function.Predicate predicate) { - for (java.lang.String item : succeeded) { + public Boolean hasMatchingSucceeded(Predicate predicate) { + for (String item : succeeded) { if (predicate.test(item)) { return true; } @@ -240,10 +237,10 @@ public java.lang.Boolean hasMatchingSucceeded( return false; } - public A withSucceeded(java.util.List succeeded) { + public A withSucceeded(List succeeded) { if (succeeded != null) { - this.succeeded = new java.util.ArrayList(); - for (java.lang.String item : succeeded) { + this.succeeded = new ArrayList(); + for (String item : succeeded) { this.addToSucceeded(item); } } else { @@ -257,14 +254,14 @@ public A withSucceeded(java.lang.String... succeeded) { this.succeeded.clear(); } if (succeeded != null) { - for (java.lang.String item : succeeded) { + for (String item : succeeded) { this.addToSucceeded(item); } } return (A) this; } - public java.lang.Boolean hasSucceeded() { + public Boolean hasSucceeded() { return succeeded != null && !succeeded.isEmpty(); } @@ -282,7 +279,7 @@ public int hashCode() { return java.util.Objects.hash(failed, succeeded, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (failed != null && !failed.isEmpty()) { 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 0785024dd6..1ab3824e8d 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1UserInfoBuilder extends V1UserInfoFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1UserInfoBuilder() { this(false); } @@ -28,22 +28,16 @@ public V1UserInfoBuilder(V1UserInfoFluent fluent) { this(fluent, false); } - public V1UserInfoBuilder( - io.kubernetes.client.openapi.models.V1UserInfoFluent fluent, - java.lang.Boolean validationEnabled) { + public V1UserInfoBuilder(V1UserInfoFluent fluent, Boolean validationEnabled) { this(fluent, new V1UserInfo(), validationEnabled); } - public V1UserInfoBuilder( - io.kubernetes.client.openapi.models.V1UserInfoFluent fluent, - io.kubernetes.client.openapi.models.V1UserInfo instance) { + public V1UserInfoBuilder(V1UserInfoFluent fluent, V1UserInfo instance) { this(fluent, instance, false); } public V1UserInfoBuilder( - io.kubernetes.client.openapi.models.V1UserInfoFluent fluent, - io.kubernetes.client.openapi.models.V1UserInfo instance, - java.lang.Boolean validationEnabled) { + V1UserInfoFluent fluent, V1UserInfo instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withExtra(instance.getExtra()); @@ -56,13 +50,11 @@ public V1UserInfoBuilder( this.validationEnabled = validationEnabled; } - public V1UserInfoBuilder(io.kubernetes.client.openapi.models.V1UserInfo instance) { + public V1UserInfoBuilder(V1UserInfo instance) { this(instance, false); } - public V1UserInfoBuilder( - io.kubernetes.client.openapi.models.V1UserInfo instance, - java.lang.Boolean validationEnabled) { + public V1UserInfoBuilder(V1UserInfo instance, Boolean validationEnabled) { this.fluent = this; this.withExtra(instance.getExtra()); @@ -75,10 +67,10 @@ public V1UserInfoBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1UserInfoFluent fluent; - java.lang.Boolean validationEnabled; + V1UserInfoFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1UserInfo build() { + public V1UserInfo build() { V1UserInfo buildable = new V1UserInfo(); buildable.setExtra(fluent.getExtra()); buildable.setGroups(fluent.getGroups()); 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 ab7a84bd94..fb0cefc2fd 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 @@ -20,61 +20,59 @@ /** Generated */ public interface V1UserInfoFluent> extends Fluent { - public A addToExtra(String key, List value); + public A addToExtra(String key, List value); - public A addToExtra(Map> map); + public A addToExtra(Map> map); - public A removeFromExtra(java.lang.String key); + public A removeFromExtra(String key); - public A removeFromExtra(java.util.Map> map); + public A removeFromExtra(Map> map); - public java.util.Map> getExtra(); + public Map> getExtra(); - public A withExtra( - java.util.Map> extra); + public A withExtra(Map> extra); public Boolean hasExtra(); - public A addToGroups(Integer index, java.lang.String item); + public A addToGroups(Integer index, String item); - public A setToGroups(java.lang.Integer index, java.lang.String item); + public A setToGroups(Integer index, String item); public A addToGroups(java.lang.String... items); - public A addAllToGroups(Collection items); + public A addAllToGroups(Collection items); public A removeFromGroups(java.lang.String... items); - public A removeAllFromGroups(java.util.Collection items); + public A removeAllFromGroups(Collection items); - public java.util.List getGroups(); + public List getGroups(); - public java.lang.String getGroup(java.lang.Integer index); + public String getGroup(Integer index); - public java.lang.String getFirstGroup(); + public String getFirstGroup(); - public java.lang.String getLastGroup(); + public String getLastGroup(); - public java.lang.String getMatchingGroup(Predicate predicate); + public String getMatchingGroup(Predicate predicate); - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate predicate); + public Boolean hasMatchingGroup(Predicate predicate); - public A withGroups(java.util.List groups); + public A withGroups(List groups); public A withGroups(java.lang.String... groups); - public java.lang.Boolean hasGroups(); + public Boolean hasGroups(); - public java.lang.String getUid(); + public String getUid(); - public A withUid(java.lang.String uid); + public A withUid(String uid); - public java.lang.Boolean hasUid(); + public Boolean hasUid(); - public java.lang.String getUsername(); + public String getUsername(); - public A withUsername(java.lang.String username); + public A withUsername(String username); - public java.lang.Boolean hasUsername(); + public Boolean hasUsername(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java index 67da9ce644..cce3eae5e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluentImpl.java @@ -26,7 +26,7 @@ public class V1UserInfoFluentImpl> extends BaseFlu implements V1UserInfoFluent { public V1UserInfoFluentImpl() {} - public V1UserInfoFluentImpl(io.kubernetes.client.openapi.models.V1UserInfo instance) { + public V1UserInfoFluentImpl(V1UserInfo instance) { this.withExtra(instance.getExtra()); this.withGroups(instance.getGroups()); @@ -36,12 +36,12 @@ public V1UserInfoFluentImpl(io.kubernetes.client.openapi.models.V1UserInfo insta this.withUsername(instance.getUsername()); } - private Map> extra; - private java.util.List groups; - private java.lang.String uid; - private java.lang.String username; + private Map> extra; + private List groups; + private String uid; + private String username; - public A addToExtra(java.lang.String key, java.util.List value) { + public A addToExtra(String key, List value) { if (this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } @@ -51,9 +51,9 @@ public A addToExtra(java.lang.String key, java.util.List value return (A) this; } - public A addToExtra(java.util.Map> map) { + public A addToExtra(Map> map) { if (this.extra == null && map != null) { - this.extra = new java.util.LinkedHashMap(); + this.extra = new LinkedHashMap(); } if (map != null) { this.extra.putAll(map); @@ -61,7 +61,7 @@ public A addToExtra(java.util.Map> map) { + public A removeFromExtra(Map> map) { if (this.extra == null) { return (A) this; } @@ -85,16 +85,15 @@ public A removeFromExtra(java.util.Map> getExtra() { + public Map> getExtra() { return this.extra; } - public A withExtra( - java.util.Map> extra) { + public A withExtra(Map> extra) { if (extra == null) { this.extra = null; } else { - this.extra = new java.util.LinkedHashMap(extra); + this.extra = new LinkedHashMap(extra); } return (A) this; } @@ -103,17 +102,17 @@ public Boolean hasExtra() { return this.extra != null; } - public A addToGroups(Integer index, java.lang.String item) { + public A addToGroups(Integer index, String item) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList(); } this.groups.add(index, item); return (A) this; } - public A setToGroups(java.lang.Integer index, java.lang.String item) { + public A setToGroups(Integer index, String item) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } this.groups.set(index, item); return (A) this; @@ -121,26 +120,26 @@ public A setToGroups(java.lang.Integer index, java.lang.String item) { public A addToGroups(java.lang.String... items) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.groups.add(item); } return (A) this; } - public A addAllToGroups(Collection items) { + public A addAllToGroups(Collection items) { if (this.groups == null) { - this.groups = new java.util.ArrayList(); + this.groups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.groups.add(item); } return (A) this; } public A removeFromGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.groups != null) { this.groups.remove(item); } @@ -148,8 +147,8 @@ public A removeFromGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromGroups(Collection items) { + for (String item : items) { if (this.groups != null) { this.groups.remove(item); } @@ -157,24 +156,24 @@ public A removeAllFromGroups(java.util.Collection items) { return (A) this; } - public java.util.List getGroups() { + public List getGroups() { return this.groups; } - public java.lang.String getGroup(java.lang.Integer index) { + public String getGroup(Integer index) { return this.groups.get(index); } - public java.lang.String getFirstGroup() { + public String getFirstGroup() { return this.groups.get(0); } - public java.lang.String getLastGroup() { + public String getLastGroup() { return this.groups.get(groups.size() - 1); } - public java.lang.String getMatchingGroup(Predicate predicate) { - for (java.lang.String item : groups) { + public String getMatchingGroup(Predicate predicate) { + for (String item : groups) { if (predicate.test(item)) { return item; } @@ -182,9 +181,8 @@ public java.lang.String getMatchingGroup(Predicate predicate) return null; } - public java.lang.Boolean hasMatchingGroup( - java.util.function.Predicate predicate) { - for (java.lang.String item : groups) { + public Boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { if (predicate.test(item)) { return true; } @@ -192,10 +190,10 @@ public java.lang.Boolean hasMatchingGroup( return false; } - public A withGroups(java.util.List groups) { + public A withGroups(List groups) { if (groups != null) { - this.groups = new java.util.ArrayList(); - for (java.lang.String item : groups) { + this.groups = new ArrayList(); + for (String item : groups) { this.addToGroups(item); } } else { @@ -209,40 +207,40 @@ public A withGroups(java.lang.String... groups) { this.groups.clear(); } if (groups != null) { - for (java.lang.String item : groups) { + for (String item : groups) { this.addToGroups(item); } } return (A) this; } - public java.lang.Boolean hasGroups() { + public Boolean hasGroups() { return groups != null && !groups.isEmpty(); } - public java.lang.String getUid() { + public String getUid() { return this.uid; } - public A withUid(java.lang.String uid) { + public A withUid(String uid) { this.uid = uid; return (A) this; } - public java.lang.Boolean hasUid() { + public Boolean hasUid() { return this.uid != null; } - public java.lang.String getUsername() { + public String getUsername() { return this.username; } - public A withUsername(java.lang.String username) { + public A withUsername(String username) { this.username = username; return (A) this; } - public java.lang.Boolean hasUsername() { + public Boolean hasUsername() { return this.username != null; } @@ -261,7 +259,7 @@ public int hashCode() { return java.util.Objects.hash(extra, groups, uid, username, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (extra != null && !extra.isEmpty()) { 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 dd5246c056..6d509d8a80 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 @@ -16,8 +16,7 @@ public class V1ValidatingWebhookBuilder extends V1ValidatingWebhookFluentImpl - implements VisitableBuilder< - V1ValidatingWebhook, io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder> { + implements VisitableBuilder { public V1ValidatingWebhookBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent) { } public V1ValidatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent fluent, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookFluent fluent, Boolean validationEnabled) { this(fluent, new V1ValidatingWebhook(), validationEnabled); } public V1ValidatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent fluent, - io.kubernetes.client.openapi.models.V1ValidatingWebhook instance) { + V1ValidatingWebhookFluent fluent, V1ValidatingWebhook instance) { this(fluent, instance, false); } public V1ValidatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent fluent, - io.kubernetes.client.openapi.models.V1ValidatingWebhook instance, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookFluent fluent, + V1ValidatingWebhook instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); @@ -70,14 +67,11 @@ public V1ValidatingWebhookBuilder( this.validationEnabled = validationEnabled; } - public V1ValidatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhook instance) { + public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance) { this(instance, false); } - public V1ValidatingWebhookBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhook instance, - java.lang.Boolean validationEnabled) { + public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance, Boolean validationEnabled) { this.fluent = this; this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); @@ -102,10 +96,10 @@ public V1ValidatingWebhookBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent fluent; - java.lang.Boolean validationEnabled; + V1ValidatingWebhookFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ValidatingWebhook build() { + public V1ValidatingWebhook build() { V1ValidatingWebhook buildable = new V1ValidatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); buildable.setClientConfig(fluent.getClientConfig()); 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 324ffb09f8..fec0b5b8f8 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 @@ -17,8 +17,7 @@ public class V1ValidatingWebhookConfigurationBuilder extends V1ValidatingWebhookConfigurationFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> { + V1ValidatingWebhookConfiguration, V1ValidatingWebhookConfigurationBuilder> { public V1ValidatingWebhookConfigurationBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationF } public V1ValidatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1ValidatingWebhookConfiguration(), validationEnabled); } public V1ValidatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration instance) { + V1ValidatingWebhookConfigurationFluent fluent, V1ValidatingWebhookConfiguration instance) { this(fluent, instance, false); } public V1ValidatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration instance, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookConfigurationFluent fluent, + V1ValidatingWebhookConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +56,12 @@ public V1ValidatingWebhookConfigurationBuilder( this.validationEnabled = validationEnabled; } - public V1ValidatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration instance) { + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfiguration instance) { this(instance, false); } public V1ValidatingWebhookConfigurationBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration instance, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +74,10 @@ public V1ValidatingWebhookConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1ValidatingWebhookConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration build() { + public V1ValidatingWebhookConfiguration build() { V1ValidatingWebhookConfiguration buildable = new V1ValidatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 e45c96d440..3c7c043e11 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 @@ -24,15 +24,15 @@ public interface V1ValidatingWebhookConfigurationFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -42,44 +42,35 @@ public interface V1ValidatingWebhookConfigurationFluent< @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadata(); public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( - io.kubernetes.client.openapi.models.V1ObjectMeta item); + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - editMetadata(); + public V1ValidatingWebhookConfigurationFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - editOrNewMetadata(); + public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); - public A addToWebhooks( - Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item); + public A addToWebhooks(Integer index, V1ValidatingWebhook item); - public A setToWebhooks( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item); + public A setToWebhooks(Integer index, V1ValidatingWebhook item); public A addToWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items); - public A addAllToWebhooks( - Collection items); + public A addAllToWebhooks(Collection items); public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items); - public A removeAllFromWebhooks( - java.util.Collection items); + public A removeAllFromWebhooks(Collection items); public A removeMatchingFromWebhooks(Predicate predicate); @@ -88,62 +79,43 @@ public A removeAllFromWebhooks( * * @return The buildable object. */ - @java.lang.Deprecated - public List getWebhooks(); + @Deprecated + public List getWebhooks(); - public java.util.List buildWebhooks(); + public List buildWebhooks(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildWebhook( - java.lang.Integer index); + public V1ValidatingWebhook buildWebhook(Integer index); - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildFirstWebhook(); + public V1ValidatingWebhook buildFirstWebhook(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildLastWebhook(); + public V1ValidatingWebhook buildLastWebhook(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildMatchingWebhook( - java.util.function.Predicate - predicate); + public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate); - public java.lang.Boolean hasMatchingWebhook( - java.util.function.Predicate - predicate); + public Boolean hasMatchingWebhook(Predicate predicate); - public A withWebhooks( - java.util.List webhooks); + public A withWebhooks(List webhooks); public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... webhooks); - public java.lang.Boolean hasWebhooks(); + public Boolean hasWebhooks(); public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhook(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - addNewWebhookLike(io.kubernetes.client.openapi.models.V1ValidatingWebhook item); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( + V1ValidatingWebhook item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - setNewWebhookLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( + Integer index, V1ValidatingWebhook item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editWebhook(java.lang.Integer index); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editFirstWebhook(); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editLastWebhook(); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editLastWebhook(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editMatchingWebhook( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder> - predicate); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( + Predicate predicate); public interface MetadataNested extends Nested, @@ -154,7 +126,7 @@ public interface MetadataNested } public interface WebhooksNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ValidatingWebhookFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java index c9f4944eea..90b9432432 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluentImpl.java @@ -38,15 +38,15 @@ public V1ValidatingWebhookConfigurationFluentImpl(V1ValidatingWebhookConfigurati } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private ArrayList webhooks; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,16 +55,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -74,24 +74,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -99,41 +102,30 @@ public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadata( return new V1ValidatingWebhookConfigurationFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ValidatingWebhookConfigurationFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V1ValidatingWebhookConfigurationFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - editMetadata() { + public V1ValidatingWebhookConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - editOrNewMetadata() { + public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1ValidatingWebhookConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public A addToWebhooks( - Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item) { + public A addToWebhooks(Integer index, V1ValidatingWebhook item) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(item); + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); _visitables .get("webhooks") .add(index >= 0 ? index : _visitables.get("webhooks").size(), builder); @@ -141,14 +133,11 @@ public A addToWebhooks( return (A) this; } - public A setToWebhooks( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item) { + public A setToWebhooks(Integer index, V1ValidatingWebhook item) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(item); + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); if (index < 0 || index >= _visitables.get("webhooks").size()) { _visitables.get("webhooks").add(builder); } else { @@ -164,27 +153,22 @@ public A setToWebhooks( public A addToWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ValidatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(item); + 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) { + public A addAllToWebhooks(Collection items) { if (this.webhooks == null) { - this.webhooks = - new java.util.ArrayList(); + this.webhooks = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ValidatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(item); + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); _visitables.get("webhooks").add(builder); this.webhooks.add(builder); } @@ -192,9 +176,8 @@ public A addAllToWebhooks( } public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(item); + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); _visitables.get("webhooks").remove(builder); if (this.webhooks != null) { this.webhooks.remove(builder); @@ -203,11 +186,9 @@ public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebh return (A) this; } - public A removeAllFromWebhooks( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhook item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(item); + public A removeAllFromWebhooks(Collection items) { + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); _visitables.get("webhooks").remove(builder); if (this.webhooks != null) { this.webhooks.remove(builder); @@ -216,14 +197,12 @@ public A removeAllFromWebhooks( return (A) this; } - public A removeMatchingFromWebhooks( - Predicate predicate) { + public A removeMatchingFromWebhooks(Predicate predicate) { if (webhooks == null) return (A) this; - final Iterator each = - webhooks.iterator(); + final Iterator each = webhooks.iterator(); final List visitables = _visitables.get("webhooks"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder = each.next(); + V1ValidatingWebhookBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -237,32 +216,29 @@ public A removeMatchingFromWebhooks( * * @return The buildable object. */ - @java.lang.Deprecated - public List getWebhooks() { + @Deprecated + public List getWebhooks() { return webhooks != null ? build(webhooks) : null; } - public java.util.List buildWebhooks() { + public List buildWebhooks() { return webhooks != null ? build(webhooks) : null; } - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildWebhook( - java.lang.Integer index) { + public V1ValidatingWebhook buildWebhook(Integer index) { return this.webhooks.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildFirstWebhook() { + public V1ValidatingWebhook buildFirstWebhook() { return this.webhooks.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildLastWebhook() { + public V1ValidatingWebhook buildLastWebhook() { return this.webhooks.get(webhooks.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildMatchingWebhook( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder item : webhooks) { + public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate) { + for (V1ValidatingWebhookBuilder item : webhooks) { if (predicate.test(item)) { return item.build(); } @@ -270,10 +246,8 @@ public io.kubernetes.client.openapi.models.V1ValidatingWebhook buildMatchingWebh return null; } - public java.lang.Boolean hasMatchingWebhook( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder item : webhooks) { + public Boolean hasMatchingWebhook(Predicate predicate) { + for (V1ValidatingWebhookBuilder item : webhooks) { if (predicate.test(item)) { return true; } @@ -281,14 +255,13 @@ public java.lang.Boolean hasMatchingWebhook( return false; } - public A withWebhooks( - java.util.List webhooks) { + public A withWebhooks(List webhooks) { if (this.webhooks != null) { _visitables.get("webhooks").removeAll(this.webhooks); } if (webhooks != null) { - this.webhooks = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ValidatingWebhook item : webhooks) { + this.webhooks = new ArrayList(); + for (V1ValidatingWebhook item : webhooks) { this.addToWebhooks(item); } } else { @@ -302,14 +275,14 @@ public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... this.webhooks.clear(); } if (webhooks != null) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhook item : webhooks) { + for (V1ValidatingWebhook item : webhooks) { this.addToWebhooks(item); } } return (A) this; } - public java.lang.Boolean hasWebhooks() { + public Boolean hasWebhooks() { return webhooks != null && !webhooks.isEmpty(); } @@ -317,51 +290,36 @@ public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhook() return new V1ValidatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - addNewWebhookLike(io.kubernetes.client.openapi.models.V1ValidatingWebhook item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluentImpl - .WebhooksNestedImpl(-1, item); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested addNewWebhookLike( + V1ValidatingWebhook item) { + return new V1ValidatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - setNewWebhookLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluentImpl - .WebhooksNestedImpl(index, item); + public V1ValidatingWebhookConfigurationFluent.WebhooksNested setNewWebhookLike( + Integer index, V1ValidatingWebhook item) { + return new V1ValidatingWebhookConfigurationFluentImpl.WebhooksNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editWebhook(java.lang.Integer index) { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editWebhook(Integer index) { if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); return setNewWebhookLike(index, buildWebhook(index)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editFirstWebhook() { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editFirstWebhook() { if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); return setNewWebhookLike(0, buildWebhook(0)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editLastWebhook() { + public V1ValidatingWebhookConfigurationFluent.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)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent.WebhooksNested< - A> - editMatchingWebhook( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder> - predicate) { + public V1ValidatingWebhookConfigurationFluent.WebhooksNested editMatchingWebhook( + Predicate predicate) { int index = -1; for (int i = 0; i < webhooks.size(); i++) { if (predicate.test(webhooks.get(i))) { @@ -390,7 +348,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, webhooks, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -415,19 +373,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationFluent - .MetadataNested< - N>, - Nested { + implements V1ValidatingWebhookConfigurationFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1ValidatingWebhookConfigurationFluentImpl.this.withMetadata(builder.build()); @@ -441,21 +396,19 @@ public N endMetadata() { class WebhooksNestedImpl extends V1ValidatingWebhookFluentImpl< V1ValidatingWebhookConfigurationFluent.WebhooksNested> - implements V1ValidatingWebhookConfigurationFluent.WebhooksNested, - io.kubernetes.client.fluent.Nested { - WebhooksNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhook item) { + implements V1ValidatingWebhookConfigurationFluent.WebhooksNested, Nested { + WebhooksNestedImpl(Integer index, V1ValidatingWebhook item) { this.index = index; this.builder = new V1ValidatingWebhookBuilder(this, item); } WebhooksNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder(this); + this.builder = new V1ValidatingWebhookBuilder(this); } - io.kubernetes.client.openapi.models.V1ValidatingWebhookBuilder builder; - java.lang.Integer index; + V1ValidatingWebhookBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java index 050616e8c8..eb566525d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java @@ -18,8 +18,7 @@ public class V1ValidatingWebhookConfigurationListBuilder extends V1ValidatingWebhookConfigurationListFluentImpl< V1ValidatingWebhookConfigurationListBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListBuilder> { + V1ValidatingWebhookConfigurationList, V1ValidatingWebhookConfigurationListBuilder> { public V1ValidatingWebhookConfigurationListBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1ValidatingWebhookConfigurationListBuilder( } public V1ValidatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent fluent, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookConfigurationListFluent fluent, Boolean validationEnabled) { this(fluent, new V1ValidatingWebhookConfigurationList(), validationEnabled); } public V1ValidatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList instance) { + V1ValidatingWebhookConfigurationListFluent fluent, + V1ValidatingWebhookConfigurationList instance) { this(fluent, instance, false); } public V1ValidatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookConfigurationListFluent fluent, + V1ValidatingWebhookConfigurationList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,13 +60,12 @@ public V1ValidatingWebhookConfigurationListBuilder( } public V1ValidatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList instance) { + V1ValidatingWebhookConfigurationList instance) { this(instance, false); } public V1ValidatingWebhookConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1ValidatingWebhookConfigurationList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +78,10 @@ public V1ValidatingWebhookConfigurationListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent fluent; - java.lang.Boolean validationEnabled; + V1ValidatingWebhookConfigurationListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList build() { + public V1ValidatingWebhookConfigurationList build() { V1ValidatingWebhookConfigurationList buildable = new V1ValidatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 9ab8948fbc..d276d78dc0 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 @@ -24,28 +24,23 @@ public interface V1ValidatingWebhookConfigurationListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1ValidatingWebhookConfiguration item); - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item); + public A setToItems(Integer index, V1ValidatingWebhookConfiguration item); public A addToItems( io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems( io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); - public A removeAllFromItems( - java.util.Collection - items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -55,107 +50,75 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildItem( - java.lang.Integer index); + public V1ValidatingWebhookConfiguration buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildFirstItem(); + public V1ValidatingWebhookConfiguration buildFirstItem(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildLastItem(); + public V1ValidatingWebhookConfiguration buildLastItem(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> - predicate); + public V1ValidatingWebhookConfiguration buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - addNewItemLike(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( + V1ValidatingWebhookConfiguration item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1ValidatingWebhookConfiguration item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editItem(java.lang.Integer index); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editFirstItem(); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editLastItem(); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> - predicate); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - editMetadata(); + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata(); + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -167,7 +130,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ListMetaFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java index d0470f36e2..14be8b1b89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluentImpl.java @@ -28,7 +28,7 @@ public class V1ValidatingWebhookConfigurationListFluentImpl< public V1ValidatingWebhookConfigurationListFluentImpl() {} public V1ValidatingWebhookConfigurationListFluentImpl( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationList instance) { + V1ValidatingWebhookConfigurationList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -40,14 +40,14 @@ public V1ValidatingWebhookConfigurationListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -56,30 +56,23 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item) { + public A addToItems(Integer index, V1ValidatingWebhookConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(item); + V1ValidatingWebhookConfigurationBuilder builder = + new V1ValidatingWebhookConfigurationBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item) { + public A setToItems(Integer index, V1ValidatingWebhookConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(item); + V1ValidatingWebhookConfigurationBuilder builder = + new V1ValidatingWebhookConfigurationBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -96,29 +89,24 @@ public A setToItems( public A addToItems( io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(item); + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = + new V1ValidatingWebhookConfigurationBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -127,9 +115,9 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(item); + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = + new V1ValidatingWebhookConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -138,12 +126,10 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item : items) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = + new V1ValidatingWebhookConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -152,16 +138,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate - predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator - each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder = - each.next(); + V1ValidatingWebhookConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -176,33 +158,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildItem( - java.lang.Integer index) { + public V1ValidatingWebhookConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildFirstItem() { + public V1ValidatingWebhookConfiguration buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildLastItem() { + public V1ValidatingWebhookConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder item : items) { + public V1ValidatingWebhookConfiguration buildMatchingItem( + Predicate predicate) { + for (V1ValidatingWebhookConfigurationBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -210,11 +188,8 @@ public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration buil return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1ValidatingWebhookConfigurationBuilder item : items) { if (predicate.test(item)) { return true; } @@ -222,14 +197,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item : items) { + this.items = new ArrayList(); + for (V1ValidatingWebhookConfiguration item : items) { this.addToItems(item); } } else { @@ -244,14 +218,14 @@ public A withItems( this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item : items) { + for (V1ValidatingWebhookConfiguration item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -260,47 +234,33 @@ public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItem() { } public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item) { + V1ValidatingWebhookConfiguration item) { return new V1ValidatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluentImpl - .ItemsNestedImpl(index, item); + public V1ValidatingWebhookConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1ValidatingWebhookConfiguration item) { + return new V1ValidatingWebhookConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editItem(java.lang.Integer index) { + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editFirstItem() { + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editLastItem() { + public V1ValidatingWebhookConfigurationListFluent.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 io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent.ItemsNested< - A> - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder> - predicate) { + public V1ValidatingWebhookConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -312,16 +272,16 @@ public V1ValidatingWebhookConfigurationListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -330,25 +290,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -356,35 +319,22 @@ public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetad return new V1ValidatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluentImpl - .MetadataNestedImpl(item); + public V1ValidatingWebhookConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1ValidatingWebhookConfigurationListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - editMetadata() { + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata() { + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1ValidatingWebhookConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -405,7 +355,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -431,25 +381,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1ValidatingWebhookConfigurationFluentImpl< V1ValidatingWebhookConfigurationListFluent.ItemsNested> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration item) { + implements V1ValidatingWebhookConfigurationListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1ValidatingWebhookConfiguration item) { this.index = index; this.builder = new V1ValidatingWebhookConfigurationBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder(this); + this.builder = new V1ValidatingWebhookConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationBuilder builder; - java.lang.Integer index; + V1ValidatingWebhookConfigurationBuilder builder; + Integer index; public N and() { return (N) @@ -463,19 +407,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookConfigurationListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ValidatingWebhookConfigurationListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1ValidatingWebhookConfigurationListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java index a9c371b730..137058e2e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java @@ -23,34 +23,33 @@ public interface V1ValidatingWebhookFluent { public A addToAdmissionReviewVersions(Integer index, String item); - public A setToAdmissionReviewVersions(java.lang.Integer index, java.lang.String item); + public A setToAdmissionReviewVersions(Integer index, String item); public A addToAdmissionReviewVersions(java.lang.String... items); - public A addAllToAdmissionReviewVersions(Collection items); + public A addAllToAdmissionReviewVersions(Collection items); public A removeFromAdmissionReviewVersions(java.lang.String... items); - public A removeAllFromAdmissionReviewVersions(java.util.Collection items); + public A removeAllFromAdmissionReviewVersions(Collection items); - public List getAdmissionReviewVersions(); + public List getAdmissionReviewVersions(); - public java.lang.String getAdmissionReviewVersion(java.lang.Integer index); + public String getAdmissionReviewVersion(Integer index); - public java.lang.String getFirstAdmissionReviewVersion(); + public String getFirstAdmissionReviewVersion(); - public java.lang.String getLastAdmissionReviewVersion(); + public String getLastAdmissionReviewVersion(); - public java.lang.String getMatchingAdmissionReviewVersion(Predicate predicate); + public String getMatchingAdmissionReviewVersion(Predicate predicate); - public Boolean hasMatchingAdmissionReviewVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate); - public A withAdmissionReviewVersions(java.util.List admissionReviewVersions); + public A withAdmissionReviewVersions(List admissionReviewVersions); public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions); - public java.lang.Boolean hasAdmissionReviewVersions(); + public Boolean hasAdmissionReviewVersions(); /** * This method has been deprecated, please use method buildClientConfig instead. @@ -60,190 +59,161 @@ public Boolean hasMatchingAdmissionReviewVersion( @Deprecated public AdmissionregistrationV1WebhookClientConfig getClientConfig(); - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig - buildClientConfig(); + public AdmissionregistrationV1WebhookClientConfig buildClientConfig(); - public A withClientConfig( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig clientConfig); + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig); - public java.lang.Boolean hasClientConfig(); + public Boolean hasClientConfig(); public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfig(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - withNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item); + public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - editClientConfig(); + public V1ValidatingWebhookFluent.ClientConfigNested editClientConfig(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - editOrNewClientConfig(); + public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfig(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - editOrNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item); + public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item); - public java.lang.String getFailurePolicy(); + public String getFailurePolicy(); - public A withFailurePolicy(java.lang.String failurePolicy); + public A withFailurePolicy(String failurePolicy); - public java.lang.Boolean hasFailurePolicy(); + public Boolean hasFailurePolicy(); - public java.lang.String getMatchPolicy(); + public String getMatchPolicy(); - public A withMatchPolicy(java.lang.String matchPolicy); + public A withMatchPolicy(String matchPolicy); - public java.lang.Boolean hasMatchPolicy(); + public Boolean hasMatchPolicy(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildNamespaceSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector(); + public V1LabelSelector buildNamespaceSelector(); - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector); + public A withNamespaceSelector(V1LabelSelector namespaceSelector); - public java.lang.Boolean hasNamespaceSelector(); + public Boolean hasNamespaceSelector(); public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - editNamespaceSelector(); + public V1ValidatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelector(); + public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item); /** * This method has been deprecated, please use method buildObjectSelector instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getObjectSelector(); + @Deprecated + public V1LabelSelector getObjectSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildObjectSelector(); + public V1LabelSelector buildObjectSelector(); - public A withObjectSelector(io.kubernetes.client.openapi.models.V1LabelSelector objectSelector); + public A withObjectSelector(V1LabelSelector objectSelector); - public java.lang.Boolean hasObjectSelector(); + public Boolean hasObjectSelector(); public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelector(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - withNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - editObjectSelector(); + public V1ValidatingWebhookFluent.ObjectSelectorNested editObjectSelector(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelector(); + public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( + V1LabelSelector item); - public A addToRules(java.lang.Integer index, V1RuleWithOperations item); + public A addToRules(Integer index, V1RuleWithOperations item); - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item); + public A setToRules(Integer index, V1RuleWithOperations item); public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A addAllToRules( - java.util.Collection items); + public A addAllToRules(Collection items); public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items); - public A removeAllFromRules( - java.util.Collection items); + public A removeAllFromRules(Collection items); - public A removeMatchingFromRules( - java.util.function.Predicate predicate); + public A removeMatchingFromRules(Predicate predicate); /** * This method has been deprecated, please use method buildRules instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getRules(); + @Deprecated + public List getRules(); - public java.util.List buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildRule( - java.lang.Integer index); + public V1RuleWithOperations buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildFirstRule(); + public V1RuleWithOperations buildFirstRule(); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildLastRule(); + public V1RuleWithOperations buildLastRule(); - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildMatchingRule( - java.util.function.Predicate - predicate); + public V1RuleWithOperations buildMatchingRule(Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules( - java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1ValidatingWebhookFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - addNewRuleLike(io.kubernetes.client.openapi.models.V1RuleWithOperations item); + public V1ValidatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item); + public V1ValidatingWebhookFluent.RulesNested setNewRuleLike( + Integer index, V1RuleWithOperations item); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested editRule( - java.lang.Integer index); + public V1ValidatingWebhookFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - editFirstRule(); + public V1ValidatingWebhookFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - editLastRule(); + public V1ValidatingWebhookFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder> - predicate); + public V1ValidatingWebhookFluent.RulesNested editMatchingRule( + Predicate predicate); - public java.lang.String getSideEffects(); + public String getSideEffects(); - public A withSideEffects(java.lang.String sideEffects); + public A withSideEffects(String sideEffects); - public java.lang.Boolean hasSideEffects(); + public Boolean hasSideEffects(); - public java.lang.Integer getTimeoutSeconds(); + public Integer getTimeoutSeconds(); - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds); + public A withTimeoutSeconds(Integer timeoutSeconds); - public java.lang.Boolean hasTimeoutSeconds(); + public Boolean hasTimeoutSeconds(); public interface ClientConfigNested extends Nested, @@ -255,7 +225,7 @@ public interface ClientConfigNested } public interface NamespaceSelectorNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1LabelSelectorFluent> { public N and(); @@ -263,16 +233,14 @@ public interface NamespaceSelectorNested } public interface ObjectSelectorNested - extends io.kubernetes.client.fluent.Nested, - V1LabelSelectorFluent> { + extends Nested, V1LabelSelectorFluent> { public N and(); public N endObjectSelector(); } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, - V1RuleWithOperationsFluent> { + extends Nested, V1RuleWithOperationsFluent> { public N and(); public N endRule(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java index f79a5fb8fa..2fd1c5e1b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluentImpl.java @@ -26,8 +26,7 @@ public class V1ValidatingWebhookFluentImpl implements V1ValidatingWebhookFluent { public V1ValidatingWebhookFluentImpl() {} - public V1ValidatingWebhookFluentImpl( - io.kubernetes.client.openapi.models.V1ValidatingWebhook instance) { + public V1ValidatingWebhookFluentImpl(V1ValidatingWebhook instance) { this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); this.withClientConfig(instance.getClientConfig()); @@ -51,26 +50,26 @@ public V1ValidatingWebhookFluentImpl( private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; - private java.lang.String failurePolicy; - private java.lang.String matchPolicy; - private java.lang.String name; + private String failurePolicy; + private String matchPolicy; + private String name; private V1LabelSelectorBuilder namespaceSelector; private V1LabelSelectorBuilder objectSelector; private ArrayList rules; - private java.lang.String sideEffects; + private String sideEffects; private Integer timeoutSeconds; - public A addToAdmissionReviewVersions(java.lang.Integer index, java.lang.String item) { + public A addToAdmissionReviewVersions(Integer index, String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } this.admissionReviewVersions.add(index, item); return (A) this; } - public A setToAdmissionReviewVersions(java.lang.Integer index, java.lang.String item) { + public A setToAdmissionReviewVersions(Integer index, String item) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } this.admissionReviewVersions.set(index, item); return (A) this; @@ -78,26 +77,26 @@ public A setToAdmissionReviewVersions(java.lang.Integer index, java.lang.String public A addToAdmissionReviewVersions(java.lang.String... items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.admissionReviewVersions.add(item); } return (A) this; } - public A addAllToAdmissionReviewVersions(Collection items) { + public A addAllToAdmissionReviewVersions(Collection items) { if (this.admissionReviewVersions == null) { - this.admissionReviewVersions = new java.util.ArrayList(); + this.admissionReviewVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.admissionReviewVersions.add(item); } return (A) this; } public A removeFromAdmissionReviewVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.admissionReviewVersions != null) { this.admissionReviewVersions.remove(item); } @@ -105,8 +104,8 @@ public A removeFromAdmissionReviewVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromAdmissionReviewVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromAdmissionReviewVersions(Collection items) { + for (String item : items) { if (this.admissionReviewVersions != null) { this.admissionReviewVersions.remove(item); } @@ -114,24 +113,24 @@ public A removeAllFromAdmissionReviewVersions(java.util.Collection getAdmissionReviewVersions() { + public List getAdmissionReviewVersions() { return this.admissionReviewVersions; } - public java.lang.String getAdmissionReviewVersion(java.lang.Integer index) { + public String getAdmissionReviewVersion(Integer index) { return this.admissionReviewVersions.get(index); } - public java.lang.String getFirstAdmissionReviewVersion() { + public String getFirstAdmissionReviewVersion() { return this.admissionReviewVersions.get(0); } - public java.lang.String getLastAdmissionReviewVersion() { + public String getLastAdmissionReviewVersion() { return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - public java.lang.String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (java.lang.String item : admissionReviewVersions) { + public String getMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { return item; } @@ -139,9 +138,8 @@ public java.lang.String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (java.lang.String item : admissionReviewVersions) { + public Boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { return true; } @@ -149,10 +147,10 @@ public Boolean hasMatchingAdmissionReviewVersion( return false; } - public A withAdmissionReviewVersions(java.util.List admissionReviewVersions) { + public A withAdmissionReviewVersions(List admissionReviewVersions) { if (admissionReviewVersions != null) { - this.admissionReviewVersions = new java.util.ArrayList(); - for (java.lang.String item : admissionReviewVersions) { + this.admissionReviewVersions = new ArrayList(); + for (String item : admissionReviewVersions) { this.addToAdmissionReviewVersions(item); } } else { @@ -166,14 +164,14 @@ public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions this.admissionReviewVersions.clear(); } if (admissionReviewVersions != null) { - for (java.lang.String item : admissionReviewVersions) { + for (String item : admissionReviewVersions) { this.addToAdmissionReviewVersions(item); } } return (A) this; } - public java.lang.Boolean hasAdmissionReviewVersions() { + public Boolean hasAdmissionReviewVersions() { return admissionReviewVersions != null && !admissionReviewVersions.isEmpty(); } @@ -183,27 +181,27 @@ public java.lang.Boolean hasAdmissionReviewVersions() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig - getClientConfig() { + public AdmissionregistrationV1WebhookClientConfig getClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig - buildClientConfig() { + public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public A withClientConfig( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig clientConfig) { + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { _visitables.get("clientConfig").remove(this.clientConfig); if (clientConfig != null) { this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); _visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + _visitables.get("clientConfig").remove(this.clientConfig); } return (A) this; } - public java.lang.Boolean hasClientConfig() { + public Boolean hasClientConfig() { return this.clientConfig != null; } @@ -211,69 +209,63 @@ public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfig() { return new V1ValidatingWebhookFluentImpl.ClientConfigNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - withNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item) { + public V1ValidatingWebhookFluent.ClientConfigNested withNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item) { return new V1ValidatingWebhookFluentImpl.ClientConfigNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - editClientConfig() { + public V1ValidatingWebhookFluent.ClientConfigNested editClientConfig() { return withNewClientConfigLike(getClientConfig()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - editOrNewClientConfig() { + public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfig() { return withNewClientConfigLike( getClientConfig() != null ? getClientConfig() - : new io.kubernetes.client.openapi.models - .AdmissionregistrationV1WebhookClientConfigBuilder() - .build()); + : new AdmissionregistrationV1WebhookClientConfigBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested - editOrNewClientConfigLike( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item) { + public V1ValidatingWebhookFluent.ClientConfigNested editOrNewClientConfigLike( + AdmissionregistrationV1WebhookClientConfig item) { return withNewClientConfigLike(getClientConfig() != null ? getClientConfig() : item); } - public java.lang.String getFailurePolicy() { + public String getFailurePolicy() { return this.failurePolicy; } - public A withFailurePolicy(java.lang.String failurePolicy) { + public A withFailurePolicy(String failurePolicy) { this.failurePolicy = failurePolicy; return (A) this; } - public java.lang.Boolean hasFailurePolicy() { + public Boolean hasFailurePolicy() { return this.failurePolicy != null; } - public java.lang.String getMatchPolicy() { + public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(java.lang.String matchPolicy) { + public A withMatchPolicy(String matchPolicy) { this.matchPolicy = matchPolicy; return (A) this; } - public java.lang.Boolean hasMatchPolicy() { + public Boolean hasMatchPolicy() { return this.matchPolicy != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -282,27 +274,28 @@ public java.lang.Boolean hasName() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNamespaceSelector() { + @Deprecated + public V1LabelSelector getNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildNamespaceSelector() { + public V1LabelSelector buildNamespaceSelector() { return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - public A withNamespaceSelector( - io.kubernetes.client.openapi.models.V1LabelSelector namespaceSelector) { + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { _visitables.get("namespaceSelector").remove(this.namespaceSelector); if (namespaceSelector != null) { - this.namespaceSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(namespaceSelector); + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); _visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + _visitables.get("namespaceSelector").remove(this.namespaceSelector); } return (A) this; } - public java.lang.Boolean hasNamespaceSelector() { + public Boolean hasNamespaceSelector() { return this.namespaceSelector != null; } @@ -310,27 +303,24 @@ public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSele return new V1ValidatingWebhookFluentImpl.NamespaceSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - withNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookFluentImpl - .NamespaceSelectorNestedImpl(item); + public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSelectorLike( + V1LabelSelector item) { + return new V1ValidatingWebhookFluentImpl.NamespaceSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - editNamespaceSelector() { + public V1ValidatingWebhookFluent.NamespaceSelectorNested editNamespaceSelector() { return withNewNamespaceSelectorLike(getNamespaceSelector()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelector() { + public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelector() { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.NamespaceSelectorNested - editOrNewNamespaceSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1ValidatingWebhookFluent.NamespaceSelectorNested editOrNewNamespaceSelectorLike( + V1LabelSelector item) { return withNewNamespaceSelectorLike( getNamespaceSelector() != null ? getNamespaceSelector() : item); } @@ -340,26 +330,28 @@ public V1ValidatingWebhookFluent.NamespaceSelectorNested withNewNamespaceSele * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getObjectSelector() { + @Deprecated + public V1LabelSelector getObjectSelector() { return this.objectSelector != null ? this.objectSelector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildObjectSelector() { + public V1LabelSelector buildObjectSelector() { return this.objectSelector != null ? this.objectSelector.build() : null; } - public A withObjectSelector(io.kubernetes.client.openapi.models.V1LabelSelector objectSelector) { + public A withObjectSelector(V1LabelSelector objectSelector) { _visitables.get("objectSelector").remove(this.objectSelector); if (objectSelector != null) { - this.objectSelector = - new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(objectSelector); + this.objectSelector = new V1LabelSelectorBuilder(objectSelector); _visitables.get("objectSelector").add(this.objectSelector); + } else { + this.objectSelector = null; + _visitables.get("objectSelector").remove(this.objectSelector); } return (A) this; } - public java.lang.Boolean hasObjectSelector() { + public Boolean hasObjectSelector() { return this.objectSelector != null; } @@ -367,52 +359,40 @@ public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelector() return new V1ValidatingWebhookFluentImpl.ObjectSelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - withNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookFluentImpl - .ObjectSelectorNestedImpl(item); + public V1ValidatingWebhookFluent.ObjectSelectorNested withNewObjectSelectorLike( + V1LabelSelector item) { + return new V1ValidatingWebhookFluentImpl.ObjectSelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - editObjectSelector() { + public V1ValidatingWebhookFluent.ObjectSelectorNested editObjectSelector() { return withNewObjectSelectorLike(getObjectSelector()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelector() { + public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelector() { return withNewObjectSelectorLike( - getObjectSelector() != null - ? getObjectSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getObjectSelector() != null ? getObjectSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested - editOrNewObjectSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1ValidatingWebhookFluent.ObjectSelectorNested editOrNewObjectSelectorLike( + V1LabelSelector item) { return withNewObjectSelectorLike(getObjectSelector() != null ? getObjectSelector() : item); } - public A addToRules(java.lang.Integer index, V1RuleWithOperations item) { + public A addToRules(Integer index, V1RuleWithOperations item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item) { + public A setToRules(Integer index, V1RuleWithOperations item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -428,29 +408,22 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; } - public A addAllToRules( - java.util.Collection items) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -458,9 +431,8 @@ public A addAllToRules( } public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -469,11 +441,9 @@ public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperation return (A) this; } - public A removeAllFromRules( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : items) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = - new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -482,15 +452,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - java.util.function.Predicate - predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = - rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder = each.next(); + V1RuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -504,32 +471,29 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildRule( - java.lang.Integer index) { + public V1RuleWithOperations buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildFirstRule() { + public V1RuleWithOperations buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildLastRule() { + public V1RuleWithOperations buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1RuleWithOperations buildMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder item : rules) { + public V1RuleWithOperations buildMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -537,10 +501,8 @@ public io.kubernetes.client.openapi.models.V1RuleWithOperations buildMatchingRul return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -548,14 +510,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules( - java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : rules) { + this.rules = new ArrayList(); + for (V1RuleWithOperations item : rules) { this.addToRules(item); } } else { @@ -569,14 +530,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... r this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1RuleWithOperations item : rules) { + for (V1RuleWithOperations item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -584,43 +545,33 @@ public V1ValidatingWebhookFluent.RulesNested addNewRule() { return new V1ValidatingWebhookFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - addNewRuleLike(io.kubernetes.client.openapi.models.V1RuleWithOperations item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookFluentImpl.RulesNestedImpl( - -1, item); + public V1ValidatingWebhookFluent.RulesNested addNewRuleLike(V1RuleWithOperations item) { + return new V1ValidatingWebhookFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - setNewRuleLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item) { - return new io.kubernetes.client.openapi.models.V1ValidatingWebhookFluentImpl.RulesNestedImpl( - index, item); + public V1ValidatingWebhookFluent.RulesNested setNewRuleLike( + Integer index, V1RuleWithOperations item) { + return new V1ValidatingWebhookFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested editRule( - java.lang.Integer index) { + public V1ValidatingWebhookFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - editFirstRule() { + public V1ValidatingWebhookFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - editLastRule() { + public V1ValidatingWebhookFluent.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)); } - public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder> - predicate) { + public V1ValidatingWebhookFluent.RulesNested editMatchingRule( + Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -632,29 +583,29 @@ public io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested return setNewRuleLike(index, buildRule(index)); } - public java.lang.String getSideEffects() { + public String getSideEffects() { return this.sideEffects; } - public A withSideEffects(java.lang.String sideEffects) { + public A withSideEffects(String sideEffects) { this.sideEffects = sideEffects; return (A) this; } - public java.lang.Boolean hasSideEffects() { + public Boolean hasSideEffects() { return this.sideEffects != null; } - public java.lang.Integer getTimeoutSeconds() { + public Integer getTimeoutSeconds() { return this.timeoutSeconds; } - public A withTimeoutSeconds(java.lang.Integer timeoutSeconds) { + public A withTimeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return (A) this; } - public java.lang.Boolean hasTimeoutSeconds() { + public Boolean hasTimeoutSeconds() { return this.timeoutSeconds != null; } @@ -703,7 +654,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (admissionReviewVersions != null && !admissionReviewVersions.isEmpty()) { @@ -753,21 +704,16 @@ public java.lang.String toString() { class ClientConfigNestedImpl extends AdmissionregistrationV1WebhookClientConfigFluentImpl< V1ValidatingWebhookFluent.ClientConfigNested> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ClientConfigNested< - N>, - Nested { - ClientConfigNestedImpl( - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfig item) { + implements V1ValidatingWebhookFluent.ClientConfigNested, Nested { + ClientConfigNestedImpl(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } ClientConfigNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigBuilder( - this); + this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this); } - io.kubernetes.client.openapi.models.AdmissionregistrationV1WebhookClientConfigBuilder builder; + AdmissionregistrationV1WebhookClientConfigBuilder builder; public N and() { return (N) V1ValidatingWebhookFluentImpl.this.withClientConfig(builder.build()); @@ -780,19 +726,16 @@ public N endClientConfig() { class NamespaceSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent - .NamespaceSelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ValidatingWebhookFluent.NamespaceSelectorNested, Nested { NamespaceSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } NamespaceSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1ValidatingWebhookFluentImpl.this.withNamespaceSelector(builder.build()); @@ -805,18 +748,16 @@ public N endNamespaceSelector() { class ObjectSelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.ObjectSelectorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1ValidatingWebhookFluent.ObjectSelectorNested, Nested { ObjectSelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } ObjectSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1ValidatingWebhookFluentImpl.this.withObjectSelector(builder.build()); @@ -829,21 +770,19 @@ public N endObjectSelector() { class RulesNestedImpl extends V1RuleWithOperationsFluentImpl> - implements io.kubernetes.client.openapi.models.V1ValidatingWebhookFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1RuleWithOperations item) { + implements V1ValidatingWebhookFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder(this); + this.builder = new V1RuleWithOperationsBuilder(this); } - io.kubernetes.client.openapi.models.V1RuleWithOperationsBuilder builder; - java.lang.Integer index; + V1RuleWithOperationsBuilder builder; + Integer index; public N and() { return (N) V1ValidatingWebhookFluentImpl.this.setToRules(index, builder.build()); 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 dbc75cffbd..519fbe3a8f 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1ValidationRuleBuilder extends V1ValidationRuleFluentImpl - implements VisitableBuilder< - V1ValidationRule, io.kubernetes.client.openapi.models.V1ValidationRuleBuilder> { + implements VisitableBuilder { public V1ValidationRuleBuilder() { this(false); } @@ -25,27 +24,20 @@ public V1ValidationRuleBuilder(Boolean validationEnabled) { this(new V1ValidationRule(), validationEnabled); } - public V1ValidationRuleBuilder( - io.kubernetes.client.openapi.models.V1ValidationRuleFluent fluent) { + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent) { this(fluent, false); } - public V1ValidationRuleBuilder( - io.kubernetes.client.openapi.models.V1ValidationRuleFluent fluent, - java.lang.Boolean validationEnabled) { + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1ValidationRule(), validationEnabled); } - public V1ValidationRuleBuilder( - io.kubernetes.client.openapi.models.V1ValidationRuleFluent fluent, - io.kubernetes.client.openapi.models.V1ValidationRule instance) { + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent, V1ValidationRule instance) { this(fluent, instance, false); } public V1ValidationRuleBuilder( - io.kubernetes.client.openapi.models.V1ValidationRuleFluent fluent, - io.kubernetes.client.openapi.models.V1ValidationRule instance, - java.lang.Boolean validationEnabled) { + V1ValidationRuleFluent fluent, V1ValidationRule instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMessage(instance.getMessage()); @@ -54,13 +46,11 @@ public V1ValidationRuleBuilder( this.validationEnabled = validationEnabled; } - public V1ValidationRuleBuilder(io.kubernetes.client.openapi.models.V1ValidationRule instance) { + public V1ValidationRuleBuilder(V1ValidationRule instance) { this(instance, false); } - public V1ValidationRuleBuilder( - io.kubernetes.client.openapi.models.V1ValidationRule instance, - java.lang.Boolean validationEnabled) { + public V1ValidationRuleBuilder(V1ValidationRule instance, Boolean validationEnabled) { this.fluent = this; this.withMessage(instance.getMessage()); @@ -69,10 +59,10 @@ public V1ValidationRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1ValidationRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1ValidationRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1ValidationRule build() { + public V1ValidationRule build() { V1ValidationRule buildable = new V1ValidationRule(); buildable.setMessage(fluent.getMessage()); buildable.setRule(fluent.getRule()); 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 613aac36e3..5f4402ebf7 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 @@ -18,13 +18,13 @@ public interface V1ValidationRuleFluent> extends Fluent { public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); public Boolean hasMessage(); - public java.lang.String getRule(); + public String getRule(); - public A withRule(java.lang.String rule); + public A withRule(String rule); - public java.lang.Boolean hasRule(); + public Boolean hasRule(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java index a2bcd248c2..33558ada08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluentImpl.java @@ -20,20 +20,20 @@ public class V1ValidationRuleFluentImpl> ext implements V1ValidationRuleFluent { public V1ValidationRuleFluentImpl() {} - public V1ValidationRuleFluentImpl(io.kubernetes.client.openapi.models.V1ValidationRule instance) { + public V1ValidationRuleFluentImpl(V1ValidationRule instance) { this.withMessage(instance.getMessage()); this.withRule(instance.getRule()); } private String message; - private java.lang.String rule; + private String rule; - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasMessage() { return this.message != null; } - public java.lang.String getRule() { + public String getRule() { return this.rule; } - public A withRule(java.lang.String rule) { + public A withRule(String rule) { this.rule = rule; return (A) this; } - public java.lang.Boolean hasRule() { + public Boolean hasRule() { return this.rule != null; } @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(message, rule, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (message != null) { 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 a25e66a174..4e3bd06fac 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 @@ -16,8 +16,7 @@ public class V1VolumeAttachmentBuilder extends V1VolumeAttachmentFluentImpl - implements VisitableBuilder< - V1VolumeAttachment, io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder> { + implements VisitableBuilder { public V1VolumeAttachmentBuilder() { this(false); } @@ -26,27 +25,21 @@ public V1VolumeAttachmentBuilder(Boolean validationEnabled) { this(new V1VolumeAttachment(), validationEnabled); } - public V1VolumeAttachmentBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent fluent) { + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent) { this(fluent, false); } - public V1VolumeAttachmentBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent fluent, - java.lang.Boolean validationEnabled) { + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeAttachment(), validationEnabled); } public V1VolumeAttachmentBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachment instance) { + V1VolumeAttachmentFluent fluent, V1VolumeAttachment instance) { this(fluent, instance, false); } public V1VolumeAttachmentBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachment instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentFluent fluent, V1VolumeAttachment instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +54,11 @@ public V1VolumeAttachmentBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachment instance) { + public V1VolumeAttachmentBuilder(V1VolumeAttachment instance) { this(instance, false); } - public V1VolumeAttachmentBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachment instance, - java.lang.Boolean validationEnabled) { + public V1VolumeAttachmentBuilder(V1VolumeAttachment instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +73,10 @@ public V1VolumeAttachmentBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeAttachmentFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeAttachment build() { + public V1VolumeAttachment build() { V1VolumeAttachment buildable = new V1VolumeAttachment(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 47ede64cea..c37271f824 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 @@ -19,15 +19,15 @@ public interface V1VolumeAttachmentFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,78 +37,70 @@ public interface V1VolumeAttachmentFluent> @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1VolumeAttachmentFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1VolumeAttachmentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - editMetadata(); + public V1VolumeAttachmentFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - editOrNewMetadata(); + public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VolumeAttachmentSpec getSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec buildSpec(); + public V1VolumeAttachmentSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec spec); + public A withSpec(V1VolumeAttachmentSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1VolumeAttachmentFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec item); + public V1VolumeAttachmentFluent.SpecNested withNewSpecLike(V1VolumeAttachmentSpec item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested editSpec(); + public V1VolumeAttachmentFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested editOrNewSpec(); + public V1VolumeAttachmentFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec item); + public V1VolumeAttachmentFluent.SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VolumeAttachmentStatus getStatus(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus buildStatus(); + public V1VolumeAttachmentStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus status); + public A withStatus(V1VolumeAttachmentStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1VolumeAttachmentFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus item); + public V1VolumeAttachmentFluent.StatusNested withNewStatusLike(V1VolumeAttachmentStatus item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested editStatus(); + public V1VolumeAttachmentFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested - editOrNewStatus(); + public V1VolumeAttachmentFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus item); + public V1VolumeAttachmentFluent.StatusNested editOrNewStatusLike( + V1VolumeAttachmentStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -118,16 +110,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeAttachmentSpecFluent> { + extends Nested, V1VolumeAttachmentSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeAttachmentStatusFluent> { + extends Nested, V1VolumeAttachmentStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java index 38c3c7a64e..93cb959676 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluentImpl.java @@ -21,8 +21,7 @@ public class V1VolumeAttachmentFluentImpl> extends BaseFluent implements V1VolumeAttachmentFluent { public V1VolumeAttachmentFluentImpl() {} - public V1VolumeAttachmentFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeAttachment instance) { + public V1VolumeAttachmentFluentImpl(V1VolumeAttachment instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1VolumeAttachmentFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1VolumeAttachmentSpecBuilder spec; private V1VolumeAttachmentStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1VolumeAttachmentFluent.MetadataNested withNewMetadata() { return new V1VolumeAttachmentFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1VolumeAttachmentFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1VolumeAttachmentFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - editMetadata() { + public V1VolumeAttachmentFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - editOrNewMetadata() { + public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1VolumeAttachmentFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1VolumeAttachmentFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VolumeAttachmentSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec buildSpec() { + public V1VolumeAttachmentSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec spec) { + public A withSpec(V1VolumeAttachmentSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecBuilder(spec); + this.spec = new V1VolumeAttachmentSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,26 +150,20 @@ public V1VolumeAttachmentFluent.SpecNested withNewSpec() { return new V1VolumeAttachmentFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec item) { - return new io.kubernetes.client.openapi.models.V1VolumeAttachmentFluentImpl.SpecNestedImpl( - item); + public V1VolumeAttachmentFluent.SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { + return new V1VolumeAttachmentFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested editSpec() { + public V1VolumeAttachmentFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested - editOrNewSpec() { + public V1VolumeAttachmentFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1VolumeAttachmentSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec item) { + public V1VolumeAttachmentFluent.SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -179,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested withNewStatus() { return new V1VolumeAttachmentFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus item) { - return new io.kubernetes.client.openapi.models.V1VolumeAttachmentFluentImpl.StatusNestedImpl( - item); + public V1VolumeAttachmentFluent.StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { + return new V1VolumeAttachmentFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested editStatus() { + public V1VolumeAttachmentFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested - editOrNewStatus() { + public V1VolumeAttachmentFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1VolumeAttachmentStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus item) { + public V1VolumeAttachmentFluent.StatusNested editOrNewStatusLike( + V1VolumeAttachmentStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -245,7 +236,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -274,17 +265,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.MetadataNested, - Nested { + implements V1VolumeAttachmentFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1VolumeAttachmentFluentImpl.this.withMetadata(builder.build()); @@ -297,17 +287,16 @@ public N endMetadata() { class SpecNestedImpl extends V1VolumeAttachmentSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec item) { + implements V1VolumeAttachmentFluent.SpecNested, Nested { + SpecNestedImpl(V1VolumeAttachmentSpec item) { this.builder = new V1VolumeAttachmentSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecBuilder(this); + this.builder = new V1VolumeAttachmentSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecBuilder builder; + V1VolumeAttachmentSpecBuilder builder; public N and() { return (N) V1VolumeAttachmentFluentImpl.this.withSpec(builder.build()); @@ -320,17 +309,16 @@ public N endSpec() { class StatusNestedImpl extends V1VolumeAttachmentStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus item) { + implements V1VolumeAttachmentFluent.StatusNested, Nested { + StatusNestedImpl(V1VolumeAttachmentStatus item) { this.builder = new V1VolumeAttachmentStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusBuilder(this); + this.builder = new V1VolumeAttachmentStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusBuilder builder; + V1VolumeAttachmentStatusBuilder builder; public N and() { return (N) V1VolumeAttachmentFluentImpl.this.withStatus(builder.build()); 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 cebb6949ef..3e34ffc35d 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 @@ -16,8 +16,7 @@ public class V1VolumeAttachmentListBuilder extends V1VolumeAttachmentListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1VolumeAttachmentList, V1VolumeAttachmentListBuilder> { + implements VisitableBuilder { public V1VolumeAttachmentListBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent) { } public V1VolumeAttachmentListBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent fluent, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentListFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentList(), validationEnabled); } public V1VolumeAttachmentListBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentList instance) { + V1VolumeAttachmentListFluent fluent, V1VolumeAttachmentList instance) { this(fluent, instance, false); } public V1VolumeAttachmentListBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentList instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentListFluent fluent, + V1VolumeAttachmentList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,14 +55,11 @@ public V1VolumeAttachmentListBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentListBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentList instance) { + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance) { this(instance, false); } - public V1VolumeAttachmentListBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentList instance, - java.lang.Boolean validationEnabled) { + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +72,10 @@ public V1VolumeAttachmentListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeAttachmentListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeAttachmentList build() { + public V1VolumeAttachmentList build() { V1VolumeAttachmentList buildable = new V1VolumeAttachmentList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 410c753827..9ee097ac65 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 @@ -23,23 +23,21 @@ public interface V1VolumeAttachmentListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1VolumeAttachment item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeAttachment item); + public A setToItems(Integer index, V1VolumeAttachment item); public A addToItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,87 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildItem(java.lang.Integer index); + public V1VolumeAttachment buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildFirstItem(); + public V1VolumeAttachment buildFirstItem(); - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildLastItem(); + public V1VolumeAttachment buildLastItem(); - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildMatchingItem( - java.util.function.Predicate - predicate); + public V1VolumeAttachment buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1VolumeAttachmentListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1VolumeAttachment item); + public V1VolumeAttachmentListFluent.ItemsNested addNewItemLike(V1VolumeAttachment item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeAttachment item); + public V1VolumeAttachmentListFluent.ItemsNested setNewItemLike( + Integer index, V1VolumeAttachment item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1VolumeAttachmentListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - editFirstItem(); + public V1VolumeAttachmentListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - editLastItem(); + public V1VolumeAttachmentListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder> - predicate); + public V1VolumeAttachmentListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1VolumeAttachmentListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1VolumeAttachmentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - editMetadata(); + public V1VolumeAttachmentListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - editOrNewMetadata(); + public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1VolumeAttachmentFluent> { @@ -139,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java index 12236d25ec..158d60cd46 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluentImpl.java @@ -26,8 +26,7 @@ public class V1VolumeAttachmentListFluentImpl implements V1VolumeAttachmentListFluent { public V1VolumeAttachmentListFluentImpl() {} - public V1VolumeAttachmentListFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeAttachmentList instance) { + public V1VolumeAttachmentListFluentImpl(V1VolumeAttachmentList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1VolumeAttachmentListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1VolumeAttachment item) { + public A addToItems(Integer index, V1VolumeAttachment item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder(item); + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeAttachment item) { + public A setToItems(Integer index, V1VolumeAttachment item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder(item); + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeAttachment item : items) { - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1VolumeAttachment item : items) { - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder(item); + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1VolumeAttachment item : items) { - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder = - new io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder = each.next(); + V1VolumeAttachmentBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildItem(java.lang.Integer index) { + public V1VolumeAttachment buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildFirstItem() { + public V1VolumeAttachment buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildLastItem() { + public V1VolumeAttachment buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachment buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder item : items) { + public V1VolumeAttachment buildMatchingItem(Predicate predicate) { + for (V1VolumeAttachmentBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1VolumeAttachment buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1VolumeAttachmentBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1VolumeAttachment item : items) { + this.items = new ArrayList(); + for (V1VolumeAttachment item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... ite this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1VolumeAttachment item : items) { + for (V1VolumeAttachment item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,42 +221,33 @@ public V1VolumeAttachmentListFluent.ItemsNested addNewItem() { return new V1VolumeAttachmentListFluentImpl.ItemsNestedImpl(); } - public V1VolumeAttachmentListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1VolumeAttachment item) { + public V1VolumeAttachmentListFluent.ItemsNested addNewItemLike(V1VolumeAttachment item) { return new V1VolumeAttachmentListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeAttachment item) { - return new io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluentImpl.ItemsNestedImpl( - index, item); + public V1VolumeAttachmentListFluent.ItemsNested setNewItemLike( + Integer index, V1VolumeAttachment item) { + return new V1VolumeAttachmentListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1VolumeAttachmentListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - editFirstItem() { + public V1VolumeAttachmentListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - editLastItem() { + public V1VolumeAttachmentListFluent.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 io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder> - predicate) { + public V1VolumeAttachmentListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -287,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNes return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -305,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -331,27 +306,20 @@ public V1VolumeAttachmentListFluent.MetadataNested withNewMetadata() { return new V1VolumeAttachmentListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluentImpl - .MetadataNestedImpl(item); + public V1VolumeAttachmentListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1VolumeAttachmentListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - editMetadata() { + public V1VolumeAttachmentListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - editOrNewMetadata() { + public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1VolumeAttachmentListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -371,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -396,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1VolumeAttachmentFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1VolumeAttachment item) { + implements V1VolumeAttachmentListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1VolumeAttachment item) { this.index = index; this.builder = new V1VolumeAttachmentBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder(this); + this.builder = new V1VolumeAttachmentBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeAttachmentBuilder builder; - java.lang.Integer index; + V1VolumeAttachmentBuilder builder; + Integer index; public N and() { return (N) V1VolumeAttachmentListFluentImpl.this.setToItems(index, builder.build()); @@ -423,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeAttachmentListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1VolumeAttachmentListFluentImpl.this.withMetadata(builder.build()); 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 31c02867af..c9a559d531 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 @@ -16,9 +16,7 @@ public class V1VolumeAttachmentSourceBuilder extends V1VolumeAttachmentSourceFluentImpl - implements VisitableBuilder< - V1VolumeAttachmentSource, - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceBuilder> { + implements VisitableBuilder { public V1VolumeAttachmentSourceBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1VolumeAttachmentSourceBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentSource(), validationEnabled); } - public V1VolumeAttachmentSourceBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent fluent) { + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent) { this(fluent, false); } public V1VolumeAttachmentSourceBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentSource(), validationEnabled); } public V1VolumeAttachmentSourceBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentSource instance) { + V1VolumeAttachmentSourceFluent fluent, V1VolumeAttachmentSource instance) { this(fluent, instance, false); } public V1VolumeAttachmentSourceBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentSource instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentSourceFluent fluent, + V1VolumeAttachmentSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withInlineVolumeSpec(instance.getInlineVolumeSpec()); @@ -56,14 +51,12 @@ public V1VolumeAttachmentSourceBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentSourceBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSource instance) { + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSource instance) { this(instance, false); } public V1VolumeAttachmentSourceBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSource instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentSource instance, Boolean validationEnabled) { this.fluent = this; this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); @@ -72,10 +65,10 @@ public V1VolumeAttachmentSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeAttachmentSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSource build() { + public V1VolumeAttachmentSource build() { V1VolumeAttachmentSource buildable = new V1VolumeAttachmentSource(); buildable.setInlineVolumeSpec(fluent.getInlineVolumeSpec()); buildable.setPersistentVolumeName(fluent.getPersistentVolumeName()); 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 c105cd198c..c8a8f988b8 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 @@ -27,37 +27,29 @@ public interface V1VolumeAttachmentSourceFluent withNewInlineVolumeSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - withNewInlineVolumeSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item); + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpecLike( + V1PersistentVolumeSpec item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - editInlineVolumeSpec(); + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editInlineVolumeSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - editOrNewInlineVolumeSpec(); + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpec(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - editOrNewInlineVolumeSpecLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item); + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpecLike( + V1PersistentVolumeSpec item); public String getPersistentVolumeName(); - public A withPersistentVolumeName(java.lang.String persistentVolumeName); + public A withPersistentVolumeName(String persistentVolumeName); - public java.lang.Boolean hasPersistentVolumeName(); + public Boolean hasPersistentVolumeName(); public interface InlineVolumeSpecNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java index 096c852826..00699e0c49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1VolumeAttachmentSourceFluentImpl implements V1VolumeAttachmentSourceFluent { public V1VolumeAttachmentSourceFluentImpl() {} - public V1VolumeAttachmentSourceFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSource instance) { + public V1VolumeAttachmentSourceFluentImpl(V1VolumeAttachmentSource instance) { this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); this.withPersistentVolumeName(instance.getPersistentVolumeName()); @@ -41,17 +40,18 @@ public V1PersistentVolumeSpec getInlineVolumeSpec() { return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeSpec buildInlineVolumeSpec() { + public V1PersistentVolumeSpec buildInlineVolumeSpec() { return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; } - public A withInlineVolumeSpec( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec inlineVolumeSpec) { + public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { _visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); if (inlineVolumeSpec != null) { - this.inlineVolumeSpec = - new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder(inlineVolumeSpec); + this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); _visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); + } else { + this.inlineVolumeSpec = null; + _visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); } return (A) this; } @@ -64,45 +64,38 @@ public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVol return new V1VolumeAttachmentSourceFluentImpl.InlineVolumeSpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - withNewInlineVolumeSpecLike(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item) { + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested withNewInlineVolumeSpecLike( + V1PersistentVolumeSpec item) { return new V1VolumeAttachmentSourceFluentImpl.InlineVolumeSpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - editInlineVolumeSpec() { + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editInlineVolumeSpec() { return withNewInlineVolumeSpecLike(getInlineVolumeSpec()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - editOrNewInlineVolumeSpec() { + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpec() { return withNewInlineVolumeSpecLike( getInlineVolumeSpec() != null ? getInlineVolumeSpec() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder().build()); + : new V1PersistentVolumeSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested< - A> - editOrNewInlineVolumeSpecLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item) { + public V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested editOrNewInlineVolumeSpecLike( + V1PersistentVolumeSpec item) { return withNewInlineVolumeSpecLike( getInlineVolumeSpec() != null ? getInlineVolumeSpec() : item); } - public java.lang.String getPersistentVolumeName() { + public String getPersistentVolumeName() { return this.persistentVolumeName; } - public A withPersistentVolumeName(java.lang.String persistentVolumeName) { + public A withPersistentVolumeName(String persistentVolumeName) { this.persistentVolumeName = persistentVolumeName; return (A) this; } - public java.lang.Boolean hasPersistentVolumeName() { + public Boolean hasPersistentVolumeName() { return this.persistentVolumeName != null; } @@ -123,7 +116,7 @@ public int hashCode() { return java.util.Objects.hash(inlineVolumeSpec, persistentVolumeName, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (inlineVolumeSpec != null) { @@ -141,19 +134,16 @@ public java.lang.String toString() { class InlineVolumeSpecNestedImpl extends V1PersistentVolumeSpecFluentImpl< V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceFluent - .InlineVolumeSpecNested< - N>, - Nested { - InlineVolumeSpecNestedImpl(io.kubernetes.client.openapi.models.V1PersistentVolumeSpec item) { + implements V1VolumeAttachmentSourceFluent.InlineVolumeSpecNested, Nested { + InlineVolumeSpecNestedImpl(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } InlineVolumeSpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder(this); + this.builder = new V1PersistentVolumeSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeSpecBuilder builder; + V1PersistentVolumeSpecBuilder builder; public N and() { return (N) V1VolumeAttachmentSourceFluentImpl.this.withInlineVolumeSpec(builder.build()); 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 8095873ba2..42e25d8b2c 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 @@ -16,8 +16,7 @@ public class V1VolumeAttachmentSpecBuilder extends V1VolumeAttachmentSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec, V1VolumeAttachmentSpecBuilder> { + implements VisitableBuilder { public V1VolumeAttachmentSpecBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1VolumeAttachmentSpecBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentSpec(), validationEnabled); } - public V1VolumeAttachmentSpecBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent fluent) { + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent) { this(fluent, false); } public V1VolumeAttachmentSpecBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentSpec(), validationEnabled); } public V1VolumeAttachmentSpecBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec instance) { + V1VolumeAttachmentSpecFluent fluent, V1VolumeAttachmentSpec instance) { this(fluent, instance, false); } public V1VolumeAttachmentSpecBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentSpecFluent fluent, + V1VolumeAttachmentSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAttacher(instance.getAttacher()); @@ -57,14 +53,11 @@ public V1VolumeAttachmentSpecBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentSpecBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec instance) { + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance) { this(instance, false); } - public V1VolumeAttachmentSpecBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec instance, - java.lang.Boolean validationEnabled) { + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance, Boolean validationEnabled) { this.fluent = this; this.withAttacher(instance.getAttacher()); @@ -75,10 +68,10 @@ public V1VolumeAttachmentSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeAttachmentSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec build() { + public V1VolumeAttachmentSpec build() { V1VolumeAttachmentSpec buildable = new V1VolumeAttachmentSpec(); buildable.setAttacher(fluent.getAttacher()); buildable.setNodeName(fluent.getNodeName()); 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 90770f2306..0a66638dd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java @@ -20,15 +20,15 @@ public interface V1VolumeAttachmentSpecFluent { public String getAttacher(); - public A withAttacher(java.lang.String attacher); + public A withAttacher(String attacher); public Boolean hasAttacher(); - public java.lang.String getNodeName(); + public String getNodeName(); - public A withNodeName(java.lang.String nodeName); + public A withNodeName(String nodeName); - public java.lang.Boolean hasNodeName(); + public Boolean hasNodeName(); /** * This method has been deprecated, please use method buildSource instead. @@ -38,25 +38,23 @@ public interface V1VolumeAttachmentSpecFluent withNewSource(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - withNewSourceLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentSource item); + public V1VolumeAttachmentSpecFluent.SourceNested withNewSourceLike( + V1VolumeAttachmentSource item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - editSource(); + public V1VolumeAttachmentSpecFluent.SourceNested editSource(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - editOrNewSource(); + public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSource(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - editOrNewSourceLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentSource item); + public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSourceLike( + V1VolumeAttachmentSource item); public interface SourceNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java index 26f96b2866..991cddcc76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluentImpl.java @@ -21,8 +21,7 @@ public class V1VolumeAttachmentSpecFluentImpl implements V1VolumeAttachmentSpecFluent { public V1VolumeAttachmentSpecFluentImpl() {} - public V1VolumeAttachmentSpecFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec instance) { + public V1VolumeAttachmentSpecFluentImpl(V1VolumeAttachmentSpec instance) { this.withAttacher(instance.getAttacher()); this.withNodeName(instance.getNodeName()); @@ -31,14 +30,14 @@ public V1VolumeAttachmentSpecFluentImpl( } private String attacher; - private java.lang.String nodeName; + private String nodeName; private V1VolumeAttachmentSourceBuilder source; - public java.lang.String getAttacher() { + public String getAttacher() { return this.attacher; } - public A withAttacher(java.lang.String attacher) { + public A withAttacher(String attacher) { this.attacher = attacher; return (A) this; } @@ -47,16 +46,16 @@ public Boolean hasAttacher() { return this.attacher != null; } - public java.lang.String getNodeName() { + public String getNodeName() { return this.nodeName; } - public A withNodeName(java.lang.String nodeName) { + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; } - public java.lang.Boolean hasNodeName() { + public Boolean hasNodeName() { return this.nodeName != null; } @@ -70,20 +69,23 @@ public V1VolumeAttachmentSource getSource() { return this.source != null ? this.source.build() : null; } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSource buildSource() { + public V1VolumeAttachmentSource buildSource() { return this.source != null ? this.source.build() : null; } - public A withSource(io.kubernetes.client.openapi.models.V1VolumeAttachmentSource source) { + public A withSource(V1VolumeAttachmentSource source) { _visitables.get("source").remove(this.source); if (source != null) { - this.source = new io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceBuilder(source); + this.source = new V1VolumeAttachmentSourceBuilder(source); _visitables.get("source").add(this.source); + } else { + this.source = null; + _visitables.get("source").remove(this.source); } return (A) this; } - public java.lang.Boolean hasSource() { + public Boolean hasSource() { return this.source != null; } @@ -91,26 +93,22 @@ public V1VolumeAttachmentSpecFluent.SourceNested withNewSource() { return new V1VolumeAttachmentSpecFluentImpl.SourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - withNewSourceLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentSource item) { + public V1VolumeAttachmentSpecFluent.SourceNested withNewSourceLike( + V1VolumeAttachmentSource item) { return new V1VolumeAttachmentSpecFluentImpl.SourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - editSource() { + public V1VolumeAttachmentSpecFluent.SourceNested editSource() { return withNewSourceLike(getSource()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - editOrNewSource() { + public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSource() { return withNewSourceLike( - getSource() != null - ? getSource() - : new io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceBuilder().build()); + getSource() != null ? getSource() : new V1VolumeAttachmentSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested - editOrNewSourceLike(io.kubernetes.client.openapi.models.V1VolumeAttachmentSource item) { + public V1VolumeAttachmentSpecFluent.SourceNested editOrNewSourceLike( + V1VolumeAttachmentSource item) { return withNewSourceLike(getSource() != null ? getSource() : item); } @@ -128,7 +126,7 @@ public int hashCode() { return java.util.Objects.hash(attacher, nodeName, source, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (attacher != null) { @@ -149,17 +147,16 @@ public java.lang.String toString() { class SourceNestedImpl extends V1VolumeAttachmentSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentSpecFluent.SourceNested, - Nested { + implements V1VolumeAttachmentSpecFluent.SourceNested, Nested { SourceNestedImpl(V1VolumeAttachmentSource item) { this.builder = new V1VolumeAttachmentSourceBuilder(this, item); } SourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceBuilder(this); + this.builder = new V1VolumeAttachmentSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeAttachmentSourceBuilder builder; + V1VolumeAttachmentSourceBuilder builder; public N and() { return (N) V1VolumeAttachmentSpecFluentImpl.this.withSource(builder.build()); 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 dd7f8ab014..127bd6391c 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 @@ -16,9 +16,7 @@ public class V1VolumeAttachmentStatusBuilder extends V1VolumeAttachmentStatusFluentImpl - implements VisitableBuilder< - V1VolumeAttachmentStatus, - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusBuilder> { + implements VisitableBuilder { public V1VolumeAttachmentStatusBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1VolumeAttachmentStatusBuilder(Boolean validationEnabled) { this(new V1VolumeAttachmentStatus(), validationEnabled); } - public V1VolumeAttachmentStatusBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent fluent) { + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent) { this(fluent, false); } public V1VolumeAttachmentStatusBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeAttachmentStatus(), validationEnabled); } public V1VolumeAttachmentStatusBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus instance) { + V1VolumeAttachmentStatusFluent fluent, V1VolumeAttachmentStatus instance) { this(fluent, instance, false); } public V1VolumeAttachmentStatusBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentStatusFluent fluent, + V1VolumeAttachmentStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAttachError(instance.getAttachError()); @@ -60,14 +55,12 @@ public V1VolumeAttachmentStatusBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeAttachmentStatusBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus instance) { + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatus instance) { this(instance, false); } public V1VolumeAttachmentStatusBuilder( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus instance, - java.lang.Boolean validationEnabled) { + V1VolumeAttachmentStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAttachError(instance.getAttachError()); @@ -80,10 +73,10 @@ public V1VolumeAttachmentStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeAttachmentStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus build() { + public V1VolumeAttachmentStatus build() { V1VolumeAttachmentStatus buildable = new V1VolumeAttachmentStatus(); buildable.setAttachError(fluent.getAttachError()); buildable.setAttached(fluent.getAttached()); 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 36c0d0d666..89f7456a10 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 @@ -28,74 +28,69 @@ public interface V1VolumeAttachmentStatusFluent withNewAttachError(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - withNewAttachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item); + public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachErrorLike( + V1VolumeError item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - editAttachError(); + public V1VolumeAttachmentStatusFluent.AttachErrorNested editAttachError(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - editOrNewAttachError(); + public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachError(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - editOrNewAttachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item); + public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachErrorLike( + V1VolumeError item); - public java.lang.Boolean getAttached(); + public Boolean getAttached(); - public A withAttached(java.lang.Boolean attached); + public A withAttached(Boolean attached); - public java.lang.Boolean hasAttached(); + public Boolean hasAttached(); - public A addToAttachmentMetadata(String key, java.lang.String value); + public A addToAttachmentMetadata(String key, String value); - public A addToAttachmentMetadata(Map map); + public A addToAttachmentMetadata(Map map); - public A removeFromAttachmentMetadata(java.lang.String key); + public A removeFromAttachmentMetadata(String key); - public A removeFromAttachmentMetadata(java.util.Map map); + public A removeFromAttachmentMetadata(Map map); - public java.util.Map getAttachmentMetadata(); + public Map getAttachmentMetadata(); - public A withAttachmentMetadata( - java.util.Map attachmentMetadata); + public A withAttachmentMetadata(Map attachmentMetadata); - public java.lang.Boolean hasAttachmentMetadata(); + public Boolean hasAttachmentMetadata(); /** * This method has been deprecated, please use method buildDetachError instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1VolumeError getDetachError(); + @Deprecated + public V1VolumeError getDetachError(); - public io.kubernetes.client.openapi.models.V1VolumeError buildDetachError(); + public V1VolumeError buildDetachError(); - public A withDetachError(io.kubernetes.client.openapi.models.V1VolumeError detachError); + public A withDetachError(V1VolumeError detachError); - public java.lang.Boolean hasDetachError(); + public Boolean hasDetachError(); public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachError(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - withNewDetachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item); + public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachErrorLike( + V1VolumeError item); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - editDetachError(); + public V1VolumeAttachmentStatusFluent.DetachErrorNested editDetachError(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - editOrNewDetachError(); + public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachError(); - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - editOrNewDetachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item); + public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachErrorLike( + V1VolumeError item); public A withAttached(); @@ -107,8 +102,7 @@ public interface AttachErrorNested } public interface DetachErrorNested - extends io.kubernetes.client.fluent.Nested, - V1VolumeErrorFluent> { + extends Nested, V1VolumeErrorFluent> { public N and(); public N endDetachError(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java index 6a2d10167c..c5982092bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluentImpl.java @@ -23,8 +23,7 @@ public class V1VolumeAttachmentStatusFluentImpl implements V1VolumeAttachmentStatusFluent { public V1VolumeAttachmentStatusFluentImpl() {} - public V1VolumeAttachmentStatusFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus instance) { + public V1VolumeAttachmentStatusFluentImpl(V1VolumeAttachmentStatus instance) { this.withAttachError(instance.getAttachError()); this.withAttached(instance.getAttached()); @@ -36,7 +35,7 @@ public V1VolumeAttachmentStatusFluentImpl( private V1VolumeErrorBuilder attachError; private Boolean attached; - private Map attachmentMetadata; + private Map attachmentMetadata; private V1VolumeErrorBuilder detachError; /** @@ -45,24 +44,27 @@ public V1VolumeAttachmentStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1VolumeError getAttachError() { + public V1VolumeError getAttachError() { return this.attachError != null ? this.attachError.build() : null; } - public io.kubernetes.client.openapi.models.V1VolumeError buildAttachError() { + public V1VolumeError buildAttachError() { return this.attachError != null ? this.attachError.build() : null; } - public A withAttachError(io.kubernetes.client.openapi.models.V1VolumeError attachError) { + public A withAttachError(V1VolumeError attachError) { _visitables.get("attachError").remove(this.attachError); if (attachError != null) { - this.attachError = new io.kubernetes.client.openapi.models.V1VolumeErrorBuilder(attachError); + this.attachError = new V1VolumeErrorBuilder(attachError); _visitables.get("attachError").add(this.attachError); + } else { + this.attachError = null; + _visitables.get("attachError").remove(this.attachError); } return (A) this; } - public java.lang.Boolean hasAttachError() { + public Boolean hasAttachError() { return this.attachError != null; } @@ -70,43 +72,39 @@ public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachError() return new V1VolumeAttachmentStatusFluentImpl.AttachErrorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - withNewAttachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item) { + public V1VolumeAttachmentStatusFluent.AttachErrorNested withNewAttachErrorLike( + V1VolumeError item) { return new V1VolumeAttachmentStatusFluentImpl.AttachErrorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - editAttachError() { + public V1VolumeAttachmentStatusFluent.AttachErrorNested editAttachError() { return withNewAttachErrorLike(getAttachError()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - editOrNewAttachError() { + public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachError() { return withNewAttachErrorLike( - getAttachError() != null - ? getAttachError() - : new io.kubernetes.client.openapi.models.V1VolumeErrorBuilder().build()); + getAttachError() != null ? getAttachError() : new V1VolumeErrorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.AttachErrorNested - editOrNewAttachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item) { + public V1VolumeAttachmentStatusFluent.AttachErrorNested editOrNewAttachErrorLike( + V1VolumeError item) { return withNewAttachErrorLike(getAttachError() != null ? getAttachError() : item); } - public java.lang.Boolean getAttached() { + public Boolean getAttached() { return this.attached; } - public A withAttached(java.lang.Boolean attached) { + public A withAttached(Boolean attached) { this.attached = attached; return (A) this; } - public java.lang.Boolean hasAttached() { + public Boolean hasAttached() { return this.attached != null; } - public A addToAttachmentMetadata(java.lang.String key, java.lang.String value) { + public A addToAttachmentMetadata(String key, String value) { if (this.attachmentMetadata == null && key != null && value != null) { this.attachmentMetadata = new LinkedHashMap(); } @@ -116,9 +114,9 @@ public A addToAttachmentMetadata(java.lang.String key, java.lang.String value) { return (A) this; } - public A addToAttachmentMetadata(java.util.Map map) { + public A addToAttachmentMetadata(Map map) { if (this.attachmentMetadata == null && map != null) { - this.attachmentMetadata = new java.util.LinkedHashMap(); + this.attachmentMetadata = new LinkedHashMap(); } if (map != null) { this.attachmentMetadata.putAll(map); @@ -126,7 +124,7 @@ public A addToAttachmentMetadata(java.util.Map map) { + public A removeFromAttachmentMetadata(Map map) { if (this.attachmentMetadata == null) { return (A) this; } @@ -150,21 +148,20 @@ public A removeFromAttachmentMetadata(java.util.Map getAttachmentMetadata() { + public Map getAttachmentMetadata() { return this.attachmentMetadata; } - public A withAttachmentMetadata( - java.util.Map attachmentMetadata) { + public A withAttachmentMetadata(Map attachmentMetadata) { if (attachmentMetadata == null) { this.attachmentMetadata = null; } else { - this.attachmentMetadata = new java.util.LinkedHashMap(attachmentMetadata); + this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); } return (A) this; } - public java.lang.Boolean hasAttachmentMetadata() { + public Boolean hasAttachmentMetadata() { return this.attachmentMetadata != null; } @@ -173,25 +170,28 @@ public java.lang.Boolean hasAttachmentMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1VolumeError getDetachError() { + @Deprecated + public V1VolumeError getDetachError() { return this.detachError != null ? this.detachError.build() : null; } - public io.kubernetes.client.openapi.models.V1VolumeError buildDetachError() { + public V1VolumeError buildDetachError() { return this.detachError != null ? this.detachError.build() : null; } - public A withDetachError(io.kubernetes.client.openapi.models.V1VolumeError detachError) { + public A withDetachError(V1VolumeError detachError) { _visitables.get("detachError").remove(this.detachError); if (detachError != null) { - this.detachError = new io.kubernetes.client.openapi.models.V1VolumeErrorBuilder(detachError); + this.detachError = new V1VolumeErrorBuilder(detachError); _visitables.get("detachError").add(this.detachError); + } else { + this.detachError = null; + _visitables.get("detachError").remove(this.detachError); } return (A) this; } - public java.lang.Boolean hasDetachError() { + public Boolean hasDetachError() { return this.detachError != null; } @@ -199,27 +199,22 @@ public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachError() return new V1VolumeAttachmentStatusFluentImpl.DetachErrorNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - withNewDetachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item) { - return new io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluentImpl - .DetachErrorNestedImpl(item); + public V1VolumeAttachmentStatusFluent.DetachErrorNested withNewDetachErrorLike( + V1VolumeError item) { + return new V1VolumeAttachmentStatusFluentImpl.DetachErrorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - editDetachError() { + public V1VolumeAttachmentStatusFluent.DetachErrorNested editDetachError() { return withNewDetachErrorLike(getDetachError()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - editOrNewDetachError() { + public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachError() { return withNewDetachErrorLike( - getDetachError() != null - ? getDetachError() - : new io.kubernetes.client.openapi.models.V1VolumeErrorBuilder().build()); + getDetachError() != null ? getDetachError() : new V1VolumeErrorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent.DetachErrorNested - editOrNewDetachErrorLike(io.kubernetes.client.openapi.models.V1VolumeError item) { + public V1VolumeAttachmentStatusFluent.DetachErrorNested editOrNewDetachErrorLike( + V1VolumeError item) { return withNewDetachErrorLike(getDetachError() != null ? getDetachError() : item); } @@ -243,7 +238,7 @@ public int hashCode() { attachError, attached, attachmentMetadata, detachError, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (attachError != null) { @@ -272,19 +267,16 @@ public A withAttached() { class AttachErrorNestedImpl extends V1VolumeErrorFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent - .AttachErrorNested< - N>, - Nested { + implements V1VolumeAttachmentStatusFluent.AttachErrorNested, Nested { AttachErrorNestedImpl(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } AttachErrorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeErrorBuilder(this); + this.builder = new V1VolumeErrorBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeErrorBuilder builder; + V1VolumeErrorBuilder builder; public N and() { return (N) V1VolumeAttachmentStatusFluentImpl.this.withAttachError(builder.build()); @@ -297,19 +289,16 @@ public N endAttachError() { class DetachErrorNestedImpl extends V1VolumeErrorFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeAttachmentStatusFluent - .DetachErrorNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1VolumeAttachmentStatusFluent.DetachErrorNested, Nested { DetachErrorNestedImpl(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } DetachErrorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1VolumeErrorBuilder(this); + this.builder = new V1VolumeErrorBuilder(this); } - io.kubernetes.client.openapi.models.V1VolumeErrorBuilder builder; + V1VolumeErrorBuilder builder; public N and() { return (N) V1VolumeAttachmentStatusFluentImpl.this.withDetachError(builder.build()); 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 c95e89beda..df386beb23 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 @@ -15,7 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1VolumeBuilder extends V1VolumeFluentImpl - implements VisitableBuilder { + implements VisitableBuilder { public V1VolumeBuilder() { this(false); } @@ -24,26 +24,19 @@ public V1VolumeBuilder(Boolean validationEnabled) { this(new V1Volume(), validationEnabled); } - public V1VolumeBuilder(io.kubernetes.client.openapi.models.V1VolumeFluent fluent) { + public V1VolumeBuilder(V1VolumeFluent fluent) { this(fluent, false); } - public V1VolumeBuilder( - io.kubernetes.client.openapi.models.V1VolumeFluent fluent, - java.lang.Boolean validationEnabled) { + public V1VolumeBuilder(V1VolumeFluent fluent, Boolean validationEnabled) { this(fluent, new V1Volume(), validationEnabled); } - public V1VolumeBuilder( - io.kubernetes.client.openapi.models.V1VolumeFluent fluent, - io.kubernetes.client.openapi.models.V1Volume instance) { + public V1VolumeBuilder(V1VolumeFluent fluent, V1Volume instance) { this(fluent, instance, false); } - public V1VolumeBuilder( - io.kubernetes.client.openapi.models.V1VolumeFluent fluent, - io.kubernetes.client.openapi.models.V1Volume instance, - java.lang.Boolean validationEnabled) { + public V1VolumeBuilder(V1VolumeFluent fluent, V1Volume instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); @@ -108,12 +101,11 @@ public V1VolumeBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeBuilder(io.kubernetes.client.openapi.models.V1Volume instance) { + public V1VolumeBuilder(V1Volume instance) { this(instance, false); } - public V1VolumeBuilder( - io.kubernetes.client.openapi.models.V1Volume instance, java.lang.Boolean validationEnabled) { + public V1VolumeBuilder(V1Volume instance, Boolean validationEnabled) { this.fluent = this; this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); @@ -178,10 +170,10 @@ public V1VolumeBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1Volume build() { + public V1Volume build() { V1Volume buildable = new V1Volume(); buildable.setAwsElasticBlockStore(fluent.getAwsElasticBlockStore()); buildable.setAzureDisk(fluent.getAzureDisk()); 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 0ca0c8f88d..63df3b7fb0 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluentImpl - implements VisitableBuilder< - V1VolumeDevice, io.kubernetes.client.openapi.models.V1VolumeDeviceBuilder> { + implements VisitableBuilder { public V1VolumeDeviceBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1VolumeDeviceBuilder(Boolean validationEnabled) { this(new V1VolumeDevice(), validationEnabled); } - public V1VolumeDeviceBuilder(io.kubernetes.client.openapi.models.V1VolumeDeviceFluent fluent) { + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent) { this(fluent, false); } - public V1VolumeDeviceBuilder( - io.kubernetes.client.openapi.models.V1VolumeDeviceFluent fluent, - java.lang.Boolean validationEnabled) { + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeDevice(), validationEnabled); } - public V1VolumeDeviceBuilder( - io.kubernetes.client.openapi.models.V1VolumeDeviceFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeDevice instance) { + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent, V1VolumeDevice instance) { this(fluent, instance, false); } public V1VolumeDeviceBuilder( - io.kubernetes.client.openapi.models.V1VolumeDeviceFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeDevice instance, - java.lang.Boolean validationEnabled) { + V1VolumeDeviceFluent fluent, V1VolumeDevice instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withDevicePath(instance.getDevicePath()); @@ -53,13 +46,11 @@ public V1VolumeDeviceBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeDeviceBuilder(io.kubernetes.client.openapi.models.V1VolumeDevice instance) { + public V1VolumeDeviceBuilder(V1VolumeDevice instance) { this(instance, false); } - public V1VolumeDeviceBuilder( - io.kubernetes.client.openapi.models.V1VolumeDevice instance, - java.lang.Boolean validationEnabled) { + public V1VolumeDeviceBuilder(V1VolumeDevice instance, Boolean validationEnabled) { this.fluent = this; this.withDevicePath(instance.getDevicePath()); @@ -68,10 +59,10 @@ public V1VolumeDeviceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeDeviceFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeDeviceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeDevice build() { + public V1VolumeDevice build() { V1VolumeDevice buildable = new V1VolumeDevice(); buildable.setDevicePath(fluent.getDevicePath()); buildable.setName(fluent.getName()); 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 33b895ffca..d651d4a2a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java @@ -18,13 +18,13 @@ public interface V1VolumeDeviceFluent> extends Fluent { public String getDevicePath(); - public A withDevicePath(java.lang.String devicePath); + public A withDevicePath(String devicePath); public Boolean hasDevicePath(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java index 9ae7652313..13b2dd4fe5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluentImpl.java @@ -20,20 +20,20 @@ public class V1VolumeDeviceFluentImpl> extends implements V1VolumeDeviceFluent { public V1VolumeDeviceFluentImpl() {} - public V1VolumeDeviceFluentImpl(io.kubernetes.client.openapi.models.V1VolumeDevice instance) { + public V1VolumeDeviceFluentImpl(V1VolumeDevice instance) { this.withDevicePath(instance.getDevicePath()); this.withName(instance.getName()); } private String devicePath; - private java.lang.String name; + private String name; - public java.lang.String getDevicePath() { + public String getDevicePath() { return this.devicePath; } - public A withDevicePath(java.lang.String devicePath) { + public A withDevicePath(String devicePath) { this.devicePath = devicePath; return (A) this; } @@ -42,16 +42,16 @@ public Boolean hasDevicePath() { return this.devicePath != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -69,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(devicePath, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (devicePath != null) { 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 3c1fc52de0..2bd0bdc10e 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1VolumeErrorBuilder extends V1VolumeErrorFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1VolumeError, V1VolumeErrorBuilder> { + implements VisitableBuilder { public V1VolumeErrorBuilder() { this(false); } @@ -25,26 +24,20 @@ public V1VolumeErrorBuilder(Boolean validationEnabled) { this(new V1VolumeError(), validationEnabled); } - public V1VolumeErrorBuilder(io.kubernetes.client.openapi.models.V1VolumeErrorFluent fluent) { + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent) { this(fluent, false); } - public V1VolumeErrorBuilder( - io.kubernetes.client.openapi.models.V1VolumeErrorFluent fluent, - java.lang.Boolean validationEnabled) { + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeError(), validationEnabled); } - public V1VolumeErrorBuilder( - io.kubernetes.client.openapi.models.V1VolumeErrorFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeError instance) { + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent, V1VolumeError instance) { this(fluent, instance, false); } public V1VolumeErrorBuilder( - io.kubernetes.client.openapi.models.V1VolumeErrorFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeError instance, - java.lang.Boolean validationEnabled) { + V1VolumeErrorFluent fluent, V1VolumeError instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMessage(instance.getMessage()); @@ -53,13 +46,11 @@ public V1VolumeErrorBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeErrorBuilder(io.kubernetes.client.openapi.models.V1VolumeError instance) { + public V1VolumeErrorBuilder(V1VolumeError instance) { this(instance, false); } - public V1VolumeErrorBuilder( - io.kubernetes.client.openapi.models.V1VolumeError instance, - java.lang.Boolean validationEnabled) { + public V1VolumeErrorBuilder(V1VolumeError instance, Boolean validationEnabled) { this.fluent = this; this.withMessage(instance.getMessage()); @@ -68,10 +59,10 @@ public V1VolumeErrorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeErrorFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeErrorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeError build() { + public V1VolumeError build() { V1VolumeError buildable = new V1VolumeError(); buildable.setMessage(fluent.getMessage()); buildable.setTime(fluent.getTime()); 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 f732490d24..1bcb6734f8 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 @@ -19,13 +19,13 @@ public interface V1VolumeErrorFluent> extends Fluent { public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); public Boolean hasMessage(); public OffsetDateTime getTime(); - public A withTime(java.time.OffsetDateTime time); + public A withTime(OffsetDateTime time); - public java.lang.Boolean hasTime(); + public Boolean hasTime(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java index 59abb42c6d..dc124d4e47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluentImpl.java @@ -21,7 +21,7 @@ public class V1VolumeErrorFluentImpl> extends B implements V1VolumeErrorFluent { public V1VolumeErrorFluentImpl() {} - public V1VolumeErrorFluentImpl(io.kubernetes.client.openapi.models.V1VolumeError instance) { + public V1VolumeErrorFluentImpl(V1VolumeError instance) { this.withMessage(instance.getMessage()); this.withTime(instance.getTime()); @@ -30,11 +30,11 @@ public V1VolumeErrorFluentImpl(io.kubernetes.client.openapi.models.V1VolumeError private String message; private OffsetDateTime time; - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } @@ -43,16 +43,16 @@ public Boolean hasMessage() { return this.message != null; } - public java.time.OffsetDateTime getTime() { + public OffsetDateTime getTime() { return this.time; } - public A withTime(java.time.OffsetDateTime time) { + public A withTime(OffsetDateTime time) { this.time = time; return (A) this; } - public java.lang.Boolean hasTime() { + public Boolean hasTime() { return this.time != null; } @@ -69,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(message, time, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (message != null) { 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 7ea15610ff..ed36f27aa7 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 @@ -26,793 +26,712 @@ public interface V1VolumeFluent> extends Fluent { @Deprecated public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource - buildAwsElasticBlockStore(); + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore(); - public A withAwsElasticBlockStore( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore); + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore); public Boolean hasAwsElasticBlockStore(); public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - withNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item); + public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( + V1AWSElasticBlockStoreVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - editAwsElasticBlockStore(); + public V1VolumeFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStore(); + public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item); + public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike( + V1AWSElasticBlockStoreVolumeSource item); /** * This method has been deprecated, please use method buildAzureDisk instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1AzureDiskVolumeSource getAzureDisk(); - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource buildAzureDisk(); + public V1AzureDiskVolumeSource buildAzureDisk(); - public A withAzureDisk(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource azureDisk); + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk); - public java.lang.Boolean hasAzureDisk(); + public Boolean hasAzureDisk(); public V1VolumeFluent.AzureDiskNested withNewAzureDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested withNewAzureDiskLike( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item); + public V1VolumeFluent.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested editAzureDisk(); + public V1VolumeFluent.AzureDiskNested editAzureDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested editOrNewAzureDisk(); + public V1VolumeFluent.AzureDiskNested editOrNewAzureDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested - editOrNewAzureDiskLike(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item); + public V1VolumeFluent.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item); /** * This method has been deprecated, please use method buildAzureFile instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1AzureFileVolumeSource getAzureFile(); - public io.kubernetes.client.openapi.models.V1AzureFileVolumeSource buildAzureFile(); + public V1AzureFileVolumeSource buildAzureFile(); - public A withAzureFile(io.kubernetes.client.openapi.models.V1AzureFileVolumeSource azureFile); + public A withAzureFile(V1AzureFileVolumeSource azureFile); - public java.lang.Boolean hasAzureFile(); + public Boolean hasAzureFile(); public V1VolumeFluent.AzureFileNested withNewAzureFile(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested withNewAzureFileLike( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource item); + public V1VolumeFluent.AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested editAzureFile(); + public V1VolumeFluent.AzureFileNested editAzureFile(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested editOrNewAzureFile(); + public V1VolumeFluent.AzureFileNested editOrNewAzureFile(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested - editOrNewAzureFileLike(io.kubernetes.client.openapi.models.V1AzureFileVolumeSource item); + public V1VolumeFluent.AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item); /** * This method has been deprecated, please use method buildCephfs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CephFSVolumeSource getCephfs(); - public io.kubernetes.client.openapi.models.V1CephFSVolumeSource buildCephfs(); + public V1CephFSVolumeSource buildCephfs(); - public A withCephfs(io.kubernetes.client.openapi.models.V1CephFSVolumeSource cephfs); + public A withCephfs(V1CephFSVolumeSource cephfs); - public java.lang.Boolean hasCephfs(); + public Boolean hasCephfs(); public V1VolumeFluent.CephfsNested withNewCephfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested withNewCephfsLike( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource item); + public V1VolumeFluent.CephfsNested withNewCephfsLike(V1CephFSVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editCephfs(); + public V1VolumeFluent.CephfsNested editCephfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editOrNewCephfs(); + public V1VolumeFluent.CephfsNested editOrNewCephfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editOrNewCephfsLike( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource item); + public V1VolumeFluent.CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item); /** * This method has been deprecated, please use method buildCinder instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CinderVolumeSource getCinder(); - public io.kubernetes.client.openapi.models.V1CinderVolumeSource buildCinder(); + public V1CinderVolumeSource buildCinder(); - public A withCinder(io.kubernetes.client.openapi.models.V1CinderVolumeSource cinder); + public A withCinder(V1CinderVolumeSource cinder); - public java.lang.Boolean hasCinder(); + public Boolean hasCinder(); public V1VolumeFluent.CinderNested withNewCinder(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested withNewCinderLike( - io.kubernetes.client.openapi.models.V1CinderVolumeSource item); + public V1VolumeFluent.CinderNested withNewCinderLike(V1CinderVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editCinder(); + public V1VolumeFluent.CinderNested editCinder(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editOrNewCinder(); + public V1VolumeFluent.CinderNested editOrNewCinder(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editOrNewCinderLike( - io.kubernetes.client.openapi.models.V1CinderVolumeSource item); + public V1VolumeFluent.CinderNested editOrNewCinderLike(V1CinderVolumeSource item); /** * This method has been deprecated, please use method buildConfigMap instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ConfigMapVolumeSource getConfigMap(); - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource buildConfigMap(); + public V1ConfigMapVolumeSource buildConfigMap(); - public A withConfigMap(io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource configMap); + public A withConfigMap(V1ConfigMapVolumeSource configMap); - public java.lang.Boolean hasConfigMap(); + public Boolean hasConfigMap(); public V1VolumeFluent.ConfigMapNested withNewConfigMap(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested withNewConfigMapLike( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource item); + public V1VolumeFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested editConfigMap(); + public V1VolumeFluent.ConfigMapNested editConfigMap(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested editOrNewConfigMap(); + public V1VolumeFluent.ConfigMapNested editOrNewConfigMap(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested - editOrNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource item); + public V1VolumeFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item); /** * This method has been deprecated, please use method buildCsi instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CSIVolumeSource getCsi(); - public io.kubernetes.client.openapi.models.V1CSIVolumeSource buildCsi(); + public V1CSIVolumeSource buildCsi(); - public A withCsi(io.kubernetes.client.openapi.models.V1CSIVolumeSource csi); + public A withCsi(V1CSIVolumeSource csi); - public java.lang.Boolean hasCsi(); + public Boolean hasCsi(); public V1VolumeFluent.CsiNested withNewCsi(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested withNewCsiLike( - io.kubernetes.client.openapi.models.V1CSIVolumeSource item); + public V1VolumeFluent.CsiNested withNewCsiLike(V1CSIVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editCsi(); + public V1VolumeFluent.CsiNested editCsi(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editOrNewCsi(); + public V1VolumeFluent.CsiNested editOrNewCsi(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editOrNewCsiLike( - io.kubernetes.client.openapi.models.V1CSIVolumeSource item); + public V1VolumeFluent.CsiNested editOrNewCsiLike(V1CSIVolumeSource item); /** * This method has been deprecated, please use method buildDownwardAPI instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DownwardAPIVolumeSource getDownwardAPI(); - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource buildDownwardAPI(); + public V1DownwardAPIVolumeSource buildDownwardAPI(); - public A withDownwardAPI( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource downwardAPI); + public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI); - public java.lang.Boolean hasDownwardAPI(); + public Boolean hasDownwardAPI(); public V1VolumeFluent.DownwardAPINested withNewDownwardAPI(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested - withNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource item); + public V1VolumeFluent.DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested editDownwardAPI(); + public V1VolumeFluent.DownwardAPINested editDownwardAPI(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested - editOrNewDownwardAPI(); + public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPI(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested - editOrNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource item); + public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPILike( + V1DownwardAPIVolumeSource item); /** * This method has been deprecated, please use method buildEmptyDir instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1EmptyDirVolumeSource getEmptyDir(); - public io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource buildEmptyDir(); + public V1EmptyDirVolumeSource buildEmptyDir(); - public A withEmptyDir(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource emptyDir); + public A withEmptyDir(V1EmptyDirVolumeSource emptyDir); - public java.lang.Boolean hasEmptyDir(); + public Boolean hasEmptyDir(); public V1VolumeFluent.EmptyDirNested withNewEmptyDir(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested withNewEmptyDirLike( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource item); + public V1VolumeFluent.EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested editEmptyDir(); + public V1VolumeFluent.EmptyDirNested editEmptyDir(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested editOrNewEmptyDir(); + public V1VolumeFluent.EmptyDirNested editOrNewEmptyDir(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested editOrNewEmptyDirLike( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource item); + public V1VolumeFluent.EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item); /** * This method has been deprecated, please use method buildEphemeral instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1EphemeralVolumeSource getEphemeral(); - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSource buildEphemeral(); + public V1EphemeralVolumeSource buildEphemeral(); - public A withEphemeral(io.kubernetes.client.openapi.models.V1EphemeralVolumeSource ephemeral); + public A withEphemeral(V1EphemeralVolumeSource ephemeral); - public java.lang.Boolean hasEphemeral(); + public Boolean hasEphemeral(); public V1VolumeFluent.EphemeralNested withNewEphemeral(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested withNewEphemeralLike( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource item); + public V1VolumeFluent.EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested editEphemeral(); + public V1VolumeFluent.EphemeralNested editEphemeral(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested editOrNewEphemeral(); + public V1VolumeFluent.EphemeralNested editOrNewEphemeral(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested - editOrNewEphemeralLike(io.kubernetes.client.openapi.models.V1EphemeralVolumeSource item); + public V1VolumeFluent.EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item); /** * This method has been deprecated, please use method buildFc instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FCVolumeSource getFc(); - public io.kubernetes.client.openapi.models.V1FCVolumeSource buildFc(); + public V1FCVolumeSource buildFc(); - public A withFc(io.kubernetes.client.openapi.models.V1FCVolumeSource fc); + public A withFc(V1FCVolumeSource fc); - public java.lang.Boolean hasFc(); + public Boolean hasFc(); public V1VolumeFluent.FcNested withNewFc(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested withNewFcLike( - io.kubernetes.client.openapi.models.V1FCVolumeSource item); + public V1VolumeFluent.FcNested withNewFcLike(V1FCVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editFc(); + public V1VolumeFluent.FcNested editFc(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editOrNewFc(); + public V1VolumeFluent.FcNested editOrNewFc(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editOrNewFcLike( - io.kubernetes.client.openapi.models.V1FCVolumeSource item); + public V1VolumeFluent.FcNested editOrNewFcLike(V1FCVolumeSource item); /** * This method has been deprecated, please use method buildFlexVolume instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlexVolumeSource getFlexVolume(); - public io.kubernetes.client.openapi.models.V1FlexVolumeSource buildFlexVolume(); + public V1FlexVolumeSource buildFlexVolume(); - public A withFlexVolume(io.kubernetes.client.openapi.models.V1FlexVolumeSource flexVolume); + public A withFlexVolume(V1FlexVolumeSource flexVolume); - public java.lang.Boolean hasFlexVolume(); + public Boolean hasFlexVolume(); public V1VolumeFluent.FlexVolumeNested withNewFlexVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested - withNewFlexVolumeLike(io.kubernetes.client.openapi.models.V1FlexVolumeSource item); + public V1VolumeFluent.FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested editFlexVolume(); + public V1VolumeFluent.FlexVolumeNested editFlexVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested - editOrNewFlexVolume(); + public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested - editOrNewFlexVolumeLike(io.kubernetes.client.openapi.models.V1FlexVolumeSource item); + public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item); /** * This method has been deprecated, please use method buildFlocker instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlockerVolumeSource getFlocker(); - public io.kubernetes.client.openapi.models.V1FlockerVolumeSource buildFlocker(); + public V1FlockerVolumeSource buildFlocker(); - public A withFlocker(io.kubernetes.client.openapi.models.V1FlockerVolumeSource flocker); + public A withFlocker(V1FlockerVolumeSource flocker); - public java.lang.Boolean hasFlocker(); + public Boolean hasFlocker(); public V1VolumeFluent.FlockerNested withNewFlocker(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested withNewFlockerLike( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource item); + public V1VolumeFluent.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editFlocker(); + public V1VolumeFluent.FlockerNested editFlocker(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editOrNewFlocker(); + public V1VolumeFluent.FlockerNested editOrNewFlocker(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editOrNewFlockerLike( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource item); + public V1VolumeFluent.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item); /** * This method has been deprecated, please use method buildGcePersistentDisk instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GCEPersistentDiskVolumeSource getGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource - buildGcePersistentDisk(); + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk(); - public A withGcePersistentDisk( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource gcePersistentDisk); + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk); - public java.lang.Boolean hasGcePersistentDisk(); + public Boolean hasGcePersistentDisk(); public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - withNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item); + public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - editGcePersistentDisk(); + public V1VolumeFluent.GcePersistentDiskNested editGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - editOrNewGcePersistentDisk(); + public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - editOrNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item); + public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item); /** * This method has been deprecated, please use method buildGitRepo instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GitRepoVolumeSource getGitRepo(); - public io.kubernetes.client.openapi.models.V1GitRepoVolumeSource buildGitRepo(); + public V1GitRepoVolumeSource buildGitRepo(); - public A withGitRepo(io.kubernetes.client.openapi.models.V1GitRepoVolumeSource gitRepo); + public A withGitRepo(V1GitRepoVolumeSource gitRepo); - public java.lang.Boolean hasGitRepo(); + public Boolean hasGitRepo(); public V1VolumeFluent.GitRepoNested withNewGitRepo(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested withNewGitRepoLike( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource item); + public V1VolumeFluent.GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editGitRepo(); + public V1VolumeFluent.GitRepoNested editGitRepo(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editOrNewGitRepo(); + public V1VolumeFluent.GitRepoNested editOrNewGitRepo(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editOrNewGitRepoLike( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource item); + public V1VolumeFluent.GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item); /** * This method has been deprecated, please use method buildGlusterfs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GlusterfsVolumeSource getGlusterfs(); - public io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource buildGlusterfs(); + public V1GlusterfsVolumeSource buildGlusterfs(); - public A withGlusterfs(io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource glusterfs); + public A withGlusterfs(V1GlusterfsVolumeSource glusterfs); - public java.lang.Boolean hasGlusterfs(); + public Boolean hasGlusterfs(); public V1VolumeFluent.GlusterfsNested withNewGlusterfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested withNewGlusterfsLike( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource item); + public V1VolumeFluent.GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested editGlusterfs(); + public V1VolumeFluent.GlusterfsNested editGlusterfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested editOrNewGlusterfs(); + public V1VolumeFluent.GlusterfsNested editOrNewGlusterfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested - editOrNewGlusterfsLike(io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource item); + public V1VolumeFluent.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item); /** * This method has been deprecated, please use method buildHostPath instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HostPathVolumeSource getHostPath(); - public io.kubernetes.client.openapi.models.V1HostPathVolumeSource buildHostPath(); + public V1HostPathVolumeSource buildHostPath(); - public A withHostPath(io.kubernetes.client.openapi.models.V1HostPathVolumeSource hostPath); + public A withHostPath(V1HostPathVolumeSource hostPath); - public java.lang.Boolean hasHostPath(); + public Boolean hasHostPath(); public V1VolumeFluent.HostPathNested withNewHostPath(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested withNewHostPathLike( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource item); + public V1VolumeFluent.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested editHostPath(); + public V1VolumeFluent.HostPathNested editHostPath(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested editOrNewHostPath(); + public V1VolumeFluent.HostPathNested editOrNewHostPath(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested editOrNewHostPathLike( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource item); + public V1VolumeFluent.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item); /** * This method has been deprecated, please use method buildIscsi instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ISCSIVolumeSource getIscsi(); - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSource buildIscsi(); + public V1ISCSIVolumeSource buildIscsi(); - public A withIscsi(io.kubernetes.client.openapi.models.V1ISCSIVolumeSource iscsi); + public A withIscsi(V1ISCSIVolumeSource iscsi); - public java.lang.Boolean hasIscsi(); + public Boolean hasIscsi(); public V1VolumeFluent.IscsiNested withNewIscsi(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested withNewIscsiLike( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource item); + public V1VolumeFluent.IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested editIscsi(); + public V1VolumeFluent.IscsiNested editIscsi(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested editOrNewIscsi(); + public V1VolumeFluent.IscsiNested editOrNewIscsi(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested editOrNewIscsiLike( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource item); + public V1VolumeFluent.IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildNfs instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NFSVolumeSource getNfs(); - public io.kubernetes.client.openapi.models.V1NFSVolumeSource buildNfs(); + public V1NFSVolumeSource buildNfs(); - public A withNfs(io.kubernetes.client.openapi.models.V1NFSVolumeSource nfs); + public A withNfs(V1NFSVolumeSource nfs); - public java.lang.Boolean hasNfs(); + public Boolean hasNfs(); public V1VolumeFluent.NfsNested withNewNfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested withNewNfsLike( - io.kubernetes.client.openapi.models.V1NFSVolumeSource item); + public V1VolumeFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editNfs(); + public V1VolumeFluent.NfsNested editNfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editOrNewNfs(); + public V1VolumeFluent.NfsNested editOrNewNfs(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editOrNewNfsLike( - io.kubernetes.client.openapi.models.V1NFSVolumeSource item); + public V1VolumeFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item); /** * This method has been deprecated, please use method buildPersistentVolumeClaim instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim(); - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource - buildPersistentVolumeClaim(); + public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim(); - public A withPersistentVolumeClaim( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource - persistentVolumeClaim); + public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim); - public java.lang.Boolean hasPersistentVolumeClaim(); + public Boolean hasPersistentVolumeClaim(); public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaim(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - withNewPersistentVolumeClaimLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource item); + public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaimLike( + V1PersistentVolumeClaimVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - editPersistentVolumeClaim(); + public V1VolumeFluent.PersistentVolumeClaimNested editPersistentVolumeClaim(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - editOrNewPersistentVolumeClaim(); + public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaim(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - editOrNewPersistentVolumeClaimLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource item); + public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike( + V1PersistentVolumeClaimVolumeSource item); /** * This method has been deprecated, please use method buildPhotonPersistentDisk instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource - buildPhotonPersistentDisk(); + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk(); - public A withPhotonPersistentDisk( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource photonPersistentDisk); + public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk); - public java.lang.Boolean hasPhotonPersistentDisk(); + public Boolean hasPhotonPersistentDisk(); public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - withNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item); + public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( + V1PhotonPersistentDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - editPhotonPersistentDisk(); + public V1VolumeFluent.PhotonPersistentDiskNested editPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDisk(); + public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item); + public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike( + V1PhotonPersistentDiskVolumeSource item); /** * This method has been deprecated, please use method buildPortworxVolume instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PortworxVolumeSource getPortworxVolume(); - public io.kubernetes.client.openapi.models.V1PortworxVolumeSource buildPortworxVolume(); + public V1PortworxVolumeSource buildPortworxVolume(); - public A withPortworxVolume( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource portworxVolume); + public A withPortworxVolume(V1PortworxVolumeSource portworxVolume); - public java.lang.Boolean hasPortworxVolume(); + public Boolean hasPortworxVolume(); public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - withNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item); + public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolumeLike( + V1PortworxVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - editPortworxVolume(); + public V1VolumeFluent.PortworxVolumeNested editPortworxVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - editOrNewPortworxVolume(); + public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - editOrNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item); + public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( + V1PortworxVolumeSource item); /** * This method has been deprecated, please use method buildProjected instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ProjectedVolumeSource getProjected(); - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSource buildProjected(); + public V1ProjectedVolumeSource buildProjected(); - public A withProjected(io.kubernetes.client.openapi.models.V1ProjectedVolumeSource projected); + public A withProjected(V1ProjectedVolumeSource projected); - public java.lang.Boolean hasProjected(); + public Boolean hasProjected(); public V1VolumeFluent.ProjectedNested withNewProjected(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested withNewProjectedLike( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource item); + public V1VolumeFluent.ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested editProjected(); + public V1VolumeFluent.ProjectedNested editProjected(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested editOrNewProjected(); + public V1VolumeFluent.ProjectedNested editOrNewProjected(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested - editOrNewProjectedLike(io.kubernetes.client.openapi.models.V1ProjectedVolumeSource item); + public V1VolumeFluent.ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item); /** * This method has been deprecated, please use method buildQuobyte instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1QuobyteVolumeSource getQuobyte(); - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource buildQuobyte(); + public V1QuobyteVolumeSource buildQuobyte(); - public A withQuobyte(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource quobyte); + public A withQuobyte(V1QuobyteVolumeSource quobyte); - public java.lang.Boolean hasQuobyte(); + public Boolean hasQuobyte(); public V1VolumeFluent.QuobyteNested withNewQuobyte(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested withNewQuobyteLike( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item); + public V1VolumeFluent.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editQuobyte(); + public V1VolumeFluent.QuobyteNested editQuobyte(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editOrNewQuobyte(); + public V1VolumeFluent.QuobyteNested editOrNewQuobyte(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editOrNewQuobyteLike( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item); + public V1VolumeFluent.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item); /** * This method has been deprecated, please use method buildRbd instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1RBDVolumeSource getRbd(); - public io.kubernetes.client.openapi.models.V1RBDVolumeSource buildRbd(); + public V1RBDVolumeSource buildRbd(); - public A withRbd(io.kubernetes.client.openapi.models.V1RBDVolumeSource rbd); + public A withRbd(V1RBDVolumeSource rbd); - public java.lang.Boolean hasRbd(); + public Boolean hasRbd(); public V1VolumeFluent.RbdNested withNewRbd(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested withNewRbdLike( - io.kubernetes.client.openapi.models.V1RBDVolumeSource item); + public V1VolumeFluent.RbdNested withNewRbdLike(V1RBDVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editRbd(); + public V1VolumeFluent.RbdNested editRbd(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editOrNewRbd(); + public V1VolumeFluent.RbdNested editOrNewRbd(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editOrNewRbdLike( - io.kubernetes.client.openapi.models.V1RBDVolumeSource item); + public V1VolumeFluent.RbdNested editOrNewRbdLike(V1RBDVolumeSource item); /** * This method has been deprecated, please use method buildScaleIO instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ScaleIOVolumeSource getScaleIO(); - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource buildScaleIO(); + public V1ScaleIOVolumeSource buildScaleIO(); - public A withScaleIO(io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource scaleIO); + public A withScaleIO(V1ScaleIOVolumeSource scaleIO); - public java.lang.Boolean hasScaleIO(); + public Boolean hasScaleIO(); public V1VolumeFluent.ScaleIONested withNewScaleIO(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested withNewScaleIOLike( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource item); + public V1VolumeFluent.ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editScaleIO(); + public V1VolumeFluent.ScaleIONested editScaleIO(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editOrNewScaleIO(); + public V1VolumeFluent.ScaleIONested editOrNewScaleIO(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editOrNewScaleIOLike( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource item); + public V1VolumeFluent.ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item); /** * This method has been deprecated, please use method buildSecret instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecretVolumeSource getSecret(); - public io.kubernetes.client.openapi.models.V1SecretVolumeSource buildSecret(); + public V1SecretVolumeSource buildSecret(); - public A withSecret(io.kubernetes.client.openapi.models.V1SecretVolumeSource secret); + public A withSecret(V1SecretVolumeSource secret); - public java.lang.Boolean hasSecret(); + public Boolean hasSecret(); public V1VolumeFluent.SecretNested withNewSecret(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested withNewSecretLike( - io.kubernetes.client.openapi.models.V1SecretVolumeSource item); + public V1VolumeFluent.SecretNested withNewSecretLike(V1SecretVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editSecret(); + public V1VolumeFluent.SecretNested editSecret(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editOrNewSecret(); + public V1VolumeFluent.SecretNested editOrNewSecret(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editOrNewSecretLike( - io.kubernetes.client.openapi.models.V1SecretVolumeSource item); + public V1VolumeFluent.SecretNested editOrNewSecretLike(V1SecretVolumeSource item); /** * This method has been deprecated, please use method buildStorageos instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StorageOSVolumeSource getStorageos(); - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSource buildStorageos(); + public V1StorageOSVolumeSource buildStorageos(); - public A withStorageos(io.kubernetes.client.openapi.models.V1StorageOSVolumeSource storageos); + public A withStorageos(V1StorageOSVolumeSource storageos); - public java.lang.Boolean hasStorageos(); + public Boolean hasStorageos(); public V1VolumeFluent.StorageosNested withNewStorageos(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested withNewStorageosLike( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource item); + public V1VolumeFluent.StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested editStorageos(); + public V1VolumeFluent.StorageosNested editStorageos(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested editOrNewStorageos(); + public V1VolumeFluent.StorageosNested editOrNewStorageos(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested - editOrNewStorageosLike(io.kubernetes.client.openapi.models.V1StorageOSVolumeSource item); + public V1VolumeFluent.StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item); /** * This method has been deprecated, please use method buildVsphereVolume instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume(); - public io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource buildVsphereVolume(); + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume(); - public A withVsphereVolume( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource vsphereVolume); + public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume); - public java.lang.Boolean hasVsphereVolume(); + public Boolean hasVsphereVolume(); public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - withNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item); + public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item); - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - editVsphereVolume(); + public V1VolumeFluent.VsphereVolumeNested editVsphereVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - editOrNewVsphereVolume(); + public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolume(); - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - editOrNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item); + public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item); public interface AwsElasticBlockStoreNested extends Nested, @@ -823,103 +742,91 @@ public interface AwsElasticBlockStoreNested } public interface AzureDiskNested - extends io.kubernetes.client.fluent.Nested, - V1AzureDiskVolumeSourceFluent> { + extends Nested, V1AzureDiskVolumeSourceFluent> { public N and(); public N endAzureDisk(); } public interface AzureFileNested - extends io.kubernetes.client.fluent.Nested, - V1AzureFileVolumeSourceFluent> { + extends Nested, V1AzureFileVolumeSourceFluent> { public N and(); public N endAzureFile(); } public interface CephfsNested - extends io.kubernetes.client.fluent.Nested, - V1CephFSVolumeSourceFluent> { + extends Nested, V1CephFSVolumeSourceFluent> { public N and(); public N endCephfs(); } public interface CinderNested - extends io.kubernetes.client.fluent.Nested, - V1CinderVolumeSourceFluent> { + extends Nested, V1CinderVolumeSourceFluent> { public N and(); public N endCinder(); } public interface ConfigMapNested - extends io.kubernetes.client.fluent.Nested, - V1ConfigMapVolumeSourceFluent> { + extends Nested, V1ConfigMapVolumeSourceFluent> { public N and(); public N endConfigMap(); } public interface CsiNested - extends io.kubernetes.client.fluent.Nested, - V1CSIVolumeSourceFluent> { + extends Nested, V1CSIVolumeSourceFluent> { public N and(); public N endCsi(); } public interface DownwardAPINested - extends io.kubernetes.client.fluent.Nested, - V1DownwardAPIVolumeSourceFluent> { + extends Nested, V1DownwardAPIVolumeSourceFluent> { public N and(); public N endDownwardAPI(); } public interface EmptyDirNested - extends io.kubernetes.client.fluent.Nested, - V1EmptyDirVolumeSourceFluent> { + extends Nested, V1EmptyDirVolumeSourceFluent> { public N and(); public N endEmptyDir(); } public interface EphemeralNested - extends io.kubernetes.client.fluent.Nested, - V1EphemeralVolumeSourceFluent> { + extends Nested, V1EphemeralVolumeSourceFluent> { public N and(); public N endEphemeral(); } public interface FcNested - extends io.kubernetes.client.fluent.Nested, - V1FCVolumeSourceFluent> { + extends Nested, V1FCVolumeSourceFluent> { public N and(); public N endFc(); } public interface FlexVolumeNested - extends io.kubernetes.client.fluent.Nested, - V1FlexVolumeSourceFluent> { + extends Nested, V1FlexVolumeSourceFluent> { public N and(); public N endFlexVolume(); } public interface FlockerNested - extends io.kubernetes.client.fluent.Nested, - V1FlockerVolumeSourceFluent> { + extends Nested, V1FlockerVolumeSourceFluent> { public N and(); public N endFlocker(); } public interface GcePersistentDiskNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1GCEPersistentDiskVolumeSourceFluent> { public N and(); @@ -927,47 +834,42 @@ public interface GcePersistentDiskNested } public interface GitRepoNested - extends io.kubernetes.client.fluent.Nested, - V1GitRepoVolumeSourceFluent> { + extends Nested, V1GitRepoVolumeSourceFluent> { public N and(); public N endGitRepo(); } public interface GlusterfsNested - extends io.kubernetes.client.fluent.Nested, - V1GlusterfsVolumeSourceFluent> { + extends Nested, V1GlusterfsVolumeSourceFluent> { public N and(); public N endGlusterfs(); } public interface HostPathNested - extends io.kubernetes.client.fluent.Nested, - V1HostPathVolumeSourceFluent> { + extends Nested, V1HostPathVolumeSourceFluent> { public N and(); public N endHostPath(); } public interface IscsiNested - extends io.kubernetes.client.fluent.Nested, - V1ISCSIVolumeSourceFluent> { + extends Nested, V1ISCSIVolumeSourceFluent> { public N and(); public N endIscsi(); } public interface NfsNested - extends io.kubernetes.client.fluent.Nested, - V1NFSVolumeSourceFluent> { + extends Nested, V1NFSVolumeSourceFluent> { public N and(); public N endNfs(); } public interface PersistentVolumeClaimNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PersistentVolumeClaimVolumeSourceFluent> { public N and(); @@ -975,7 +877,7 @@ public interface PersistentVolumeClaimNested } public interface PhotonPersistentDiskNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1PhotonPersistentDiskVolumeSourceFluent> { public N and(); @@ -983,63 +885,56 @@ public interface PhotonPersistentDiskNested } public interface PortworxVolumeNested - extends io.kubernetes.client.fluent.Nested, - V1PortworxVolumeSourceFluent> { + extends Nested, V1PortworxVolumeSourceFluent> { public N and(); public N endPortworxVolume(); } public interface ProjectedNested - extends io.kubernetes.client.fluent.Nested, - V1ProjectedVolumeSourceFluent> { + extends Nested, V1ProjectedVolumeSourceFluent> { public N and(); public N endProjected(); } public interface QuobyteNested - extends io.kubernetes.client.fluent.Nested, - V1QuobyteVolumeSourceFluent> { + extends Nested, V1QuobyteVolumeSourceFluent> { public N and(); public N endQuobyte(); } public interface RbdNested - extends io.kubernetes.client.fluent.Nested, - V1RBDVolumeSourceFluent> { + extends Nested, V1RBDVolumeSourceFluent> { public N and(); public N endRbd(); } public interface ScaleIONested - extends io.kubernetes.client.fluent.Nested, - V1ScaleIOVolumeSourceFluent> { + extends Nested, V1ScaleIOVolumeSourceFluent> { public N and(); public N endScaleIO(); } public interface SecretNested - extends io.kubernetes.client.fluent.Nested, - V1SecretVolumeSourceFluent> { + extends Nested, V1SecretVolumeSourceFluent> { public N and(); public N endSecret(); } public interface StorageosNested - extends io.kubernetes.client.fluent.Nested, - V1StorageOSVolumeSourceFluent> { + extends Nested, V1StorageOSVolumeSourceFluent> { public N and(); public N endStorageos(); } public interface VsphereVolumeNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1VsphereVirtualDiskVolumeSourceFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java index c48fef4b69..fe91dbdae1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluentImpl.java @@ -21,7 +21,7 @@ public class V1VolumeFluentImpl> extends BaseFluent< implements V1VolumeFluent { public V1VolumeFluentImpl() {} - public V1VolumeFluentImpl(io.kubernetes.client.openapi.models.V1Volume instance) { + public V1VolumeFluentImpl(V1Volume instance) { this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); this.withAzureDisk(instance.getAzureDisk()); @@ -124,19 +124,19 @@ public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource - buildAwsElasticBlockStore() { + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public A withAwsElasticBlockStore( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); if (awsElasticBlockStore != null) { this.awsElasticBlockStore = - new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder( - awsElasticBlockStore); + new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); _visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); + } else { + this.awsElasticBlockStore = null; + _visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); } return (A) this; } @@ -149,29 +149,24 @@ public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore( return new V1VolumeFluentImpl.AwsElasticBlockStoreNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - withNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item) { + public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike( + V1AWSElasticBlockStoreVolumeSource item) { return new V1VolumeFluentImpl.AwsElasticBlockStoreNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - editAwsElasticBlockStore() { + public V1VolumeFluent.AwsElasticBlockStoreNested editAwsElasticBlockStore() { return withNewAwsElasticBlockStoreLike(getAwsElasticBlockStore()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStore() { + public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { return withNewAwsElasticBlockStoreLike( getAwsElasticBlockStore() != null ? getAwsElasticBlockStore() - : new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder() - .build()); + : new V1AWSElasticBlockStoreVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested - editOrNewAwsElasticBlockStoreLike( - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource item) { + public V1VolumeFluent.AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike( + V1AWSElasticBlockStoreVolumeSource item) { return withNewAwsElasticBlockStoreLike( getAwsElasticBlockStore() != null ? getAwsElasticBlockStore() : item); } @@ -181,25 +176,28 @@ public V1VolumeFluent.AwsElasticBlockStoreNested withNewAwsElasticBlockStore( * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource getAzureDisk() { + @Deprecated + public V1AzureDiskVolumeSource getAzureDisk() { return this.azureDisk != null ? this.azureDisk.build() : null; } - public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource buildAzureDisk() { + public V1AzureDiskVolumeSource buildAzureDisk() { return this.azureDisk != null ? this.azureDisk.build() : null; } - public A withAzureDisk(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource azureDisk) { + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { _visitables.get("azureDisk").remove(this.azureDisk); if (azureDisk != null) { this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); _visitables.get("azureDisk").add(this.azureDisk); + } else { + this.azureDisk = null; + _visitables.get("azureDisk").remove(this.azureDisk); } return (A) this; } - public java.lang.Boolean hasAzureDisk() { + public Boolean hasAzureDisk() { return this.azureDisk != null; } @@ -207,25 +205,20 @@ public V1VolumeFluent.AzureDiskNested withNewAzureDisk() { return new V1VolumeFluentImpl.AzureDiskNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested withNewAzureDiskLike( - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.AzureDiskNestedImpl(item); + public V1VolumeFluent.AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return new V1VolumeFluentImpl.AzureDiskNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested editAzureDisk() { + public V1VolumeFluent.AzureDiskNested editAzureDisk() { return withNewAzureDiskLike(getAzureDisk()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested - editOrNewAzureDisk() { + public V1VolumeFluent.AzureDiskNested editOrNewAzureDisk() { return withNewAzureDiskLike( - getAzureDisk() != null - ? getAzureDisk() - : new io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder().build()); + getAzureDisk() != null ? getAzureDisk() : new V1AzureDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested - editOrNewAzureDiskLike(io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource item) { + public V1VolumeFluent.AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { return withNewAzureDiskLike(getAzureDisk() != null ? getAzureDisk() : item); } @@ -234,26 +227,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested edi * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1AzureFileVolumeSource getAzureFile() { return this.azureFile != null ? this.azureFile.build() : null; } - public io.kubernetes.client.openapi.models.V1AzureFileVolumeSource buildAzureFile() { + public V1AzureFileVolumeSource buildAzureFile() { return this.azureFile != null ? this.azureFile.build() : null; } - public A withAzureFile(io.kubernetes.client.openapi.models.V1AzureFileVolumeSource azureFile) { + public A withAzureFile(V1AzureFileVolumeSource azureFile) { _visitables.get("azureFile").remove(this.azureFile); if (azureFile != null) { - this.azureFile = - new io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceBuilder(azureFile); + this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); _visitables.get("azureFile").add(this.azureFile); + } else { + this.azureFile = null; + _visitables.get("azureFile").remove(this.azureFile); } return (A) this; } - public java.lang.Boolean hasAzureFile() { + public Boolean hasAzureFile() { return this.azureFile != null; } @@ -261,25 +256,20 @@ public V1VolumeFluent.AzureFileNested withNewAzureFile() { return new V1VolumeFluentImpl.AzureFileNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested withNewAzureFileLike( - io.kubernetes.client.openapi.models.V1AzureFileVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.AzureFileNestedImpl(item); + public V1VolumeFluent.AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { + return new V1VolumeFluentImpl.AzureFileNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested editAzureFile() { + public V1VolumeFluent.AzureFileNested editAzureFile() { return withNewAzureFileLike(getAzureFile()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested - editOrNewAzureFile() { + public V1VolumeFluent.AzureFileNested editOrNewAzureFile() { return withNewAzureFileLike( - getAzureFile() != null - ? getAzureFile() - : new io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceBuilder().build()); + getAzureFile() != null ? getAzureFile() : new V1AzureFileVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested - editOrNewAzureFileLike(io.kubernetes.client.openapi.models.V1AzureFileVolumeSource item) { + public V1VolumeFluent.AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item) { return withNewAzureFileLike(getAzureFile() != null ? getAzureFile() : item); } @@ -288,25 +278,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested edi * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1CephFSVolumeSource getCephfs() { return this.cephfs != null ? this.cephfs.build() : null; } - public io.kubernetes.client.openapi.models.V1CephFSVolumeSource buildCephfs() { + public V1CephFSVolumeSource buildCephfs() { return this.cephfs != null ? this.cephfs.build() : null; } - public A withCephfs(io.kubernetes.client.openapi.models.V1CephFSVolumeSource cephfs) { + public A withCephfs(V1CephFSVolumeSource cephfs) { _visitables.get("cephfs").remove(this.cephfs); if (cephfs != null) { - this.cephfs = new io.kubernetes.client.openapi.models.V1CephFSVolumeSourceBuilder(cephfs); + this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); _visitables.get("cephfs").add(this.cephfs); + } else { + this.cephfs = null; + _visitables.get("cephfs").remove(this.cephfs); } return (A) this; } - public java.lang.Boolean hasCephfs() { + public Boolean hasCephfs() { return this.cephfs != null; } @@ -314,24 +307,20 @@ public V1VolumeFluent.CephfsNested withNewCephfs() { return new V1VolumeFluentImpl.CephfsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested withNewCephfsLike( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.CephfsNestedImpl(item); + public V1VolumeFluent.CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { + return new V1VolumeFluentImpl.CephfsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editCephfs() { + public V1VolumeFluent.CephfsNested editCephfs() { return withNewCephfsLike(getCephfs()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editOrNewCephfs() { + public V1VolumeFluent.CephfsNested editOrNewCephfs() { return withNewCephfsLike( - getCephfs() != null - ? getCephfs() - : new io.kubernetes.client.openapi.models.V1CephFSVolumeSourceBuilder().build()); + getCephfs() != null ? getCephfs() : new V1CephFSVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editOrNewCephfsLike( - io.kubernetes.client.openapi.models.V1CephFSVolumeSource item) { + public V1VolumeFluent.CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { return withNewCephfsLike(getCephfs() != null ? getCephfs() : item); } @@ -340,25 +329,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested editOr * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CinderVolumeSource getCinder() { + @Deprecated + public V1CinderVolumeSource getCinder() { return this.cinder != null ? this.cinder.build() : null; } - public io.kubernetes.client.openapi.models.V1CinderVolumeSource buildCinder() { + public V1CinderVolumeSource buildCinder() { return this.cinder != null ? this.cinder.build() : null; } - public A withCinder(io.kubernetes.client.openapi.models.V1CinderVolumeSource cinder) { + public A withCinder(V1CinderVolumeSource cinder) { _visitables.get("cinder").remove(this.cinder); if (cinder != null) { this.cinder = new V1CinderVolumeSourceBuilder(cinder); _visitables.get("cinder").add(this.cinder); + } else { + this.cinder = null; + _visitables.get("cinder").remove(this.cinder); } return (A) this; } - public java.lang.Boolean hasCinder() { + public Boolean hasCinder() { return this.cinder != null; } @@ -366,24 +358,20 @@ public V1VolumeFluent.CinderNested withNewCinder() { return new V1VolumeFluentImpl.CinderNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested withNewCinderLike( - io.kubernetes.client.openapi.models.V1CinderVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.CinderNestedImpl(item); + public V1VolumeFluent.CinderNested withNewCinderLike(V1CinderVolumeSource item) { + return new V1VolumeFluentImpl.CinderNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editCinder() { + public V1VolumeFluent.CinderNested editCinder() { return withNewCinderLike(getCinder()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editOrNewCinder() { + public V1VolumeFluent.CinderNested editOrNewCinder() { return withNewCinderLike( - getCinder() != null - ? getCinder() - : new io.kubernetes.client.openapi.models.V1CinderVolumeSourceBuilder().build()); + getCinder() != null ? getCinder() : new V1CinderVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editOrNewCinderLike( - io.kubernetes.client.openapi.models.V1CinderVolumeSource item) { + public V1VolumeFluent.CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { return withNewCinderLike(getCinder() != null ? getCinder() : item); } @@ -392,26 +380,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested editOr * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ConfigMapVolumeSource getConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource buildConfigMap() { + public V1ConfigMapVolumeSource buildConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public A withConfigMap(io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource configMap) { + public A withConfigMap(V1ConfigMapVolumeSource configMap) { _visitables.get("configMap").remove(this.configMap); if (configMap != null) { - this.configMap = - new io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceBuilder(configMap); + this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); _visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + _visitables.get("configMap").remove(this.configMap); } return (A) this; } - public java.lang.Boolean hasConfigMap() { + public Boolean hasConfigMap() { return this.configMap != null; } @@ -419,25 +409,20 @@ public V1VolumeFluent.ConfigMapNested withNewConfigMap() { return new V1VolumeFluentImpl.ConfigMapNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested withNewConfigMapLike( - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.ConfigMapNestedImpl(item); + public V1VolumeFluent.ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { + return new V1VolumeFluentImpl.ConfigMapNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested editConfigMap() { + public V1VolumeFluent.ConfigMapNested editConfigMap() { return withNewConfigMapLike(getConfigMap()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested - editOrNewConfigMap() { + public V1VolumeFluent.ConfigMapNested editOrNewConfigMap() { return withNewConfigMapLike( - getConfigMap() != null - ? getConfigMap() - : new io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceBuilder().build()); + getConfigMap() != null ? getConfigMap() : new V1ConfigMapVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested - editOrNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource item) { + public V1VolumeFluent.ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { return withNewConfigMapLike(getConfigMap() != null ? getConfigMap() : item); } @@ -446,25 +431,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1CSIVolumeSource getCsi() { + @Deprecated + public V1CSIVolumeSource getCsi() { return this.csi != null ? this.csi.build() : null; } - public io.kubernetes.client.openapi.models.V1CSIVolumeSource buildCsi() { + public V1CSIVolumeSource buildCsi() { return this.csi != null ? this.csi.build() : null; } - public A withCsi(io.kubernetes.client.openapi.models.V1CSIVolumeSource csi) { + public A withCsi(V1CSIVolumeSource csi) { _visitables.get("csi").remove(this.csi); if (csi != null) { this.csi = new V1CSIVolumeSourceBuilder(csi); _visitables.get("csi").add(this.csi); + } else { + this.csi = null; + _visitables.get("csi").remove(this.csi); } return (A) this; } - public java.lang.Boolean hasCsi() { + public Boolean hasCsi() { return this.csi != null; } @@ -472,24 +460,19 @@ public V1VolumeFluent.CsiNested withNewCsi() { return new V1VolumeFluentImpl.CsiNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested withNewCsiLike( - io.kubernetes.client.openapi.models.V1CSIVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.CsiNestedImpl(item); + public V1VolumeFluent.CsiNested withNewCsiLike(V1CSIVolumeSource item) { + return new V1VolumeFluentImpl.CsiNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editCsi() { + public V1VolumeFluent.CsiNested editCsi() { return withNewCsiLike(getCsi()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editOrNewCsi() { - return withNewCsiLike( - getCsi() != null - ? getCsi() - : new io.kubernetes.client.openapi.models.V1CSIVolumeSourceBuilder().build()); + public V1VolumeFluent.CsiNested editOrNewCsi() { + return withNewCsiLike(getCsi() != null ? getCsi() : new V1CSIVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editOrNewCsiLike( - io.kubernetes.client.openapi.models.V1CSIVolumeSource item) { + public V1VolumeFluent.CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { return withNewCsiLike(getCsi() != null ? getCsi() : item); } @@ -498,26 +481,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested editOrNew * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource getDownwardAPI() { + @Deprecated + public V1DownwardAPIVolumeSource getDownwardAPI() { return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource buildDownwardAPI() { + public V1DownwardAPIVolumeSource buildDownwardAPI() { return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public A withDownwardAPI( - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource downwardAPI) { + public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { _visitables.get("downwardAPI").remove(this.downwardAPI); if (downwardAPI != null) { this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); _visitables.get("downwardAPI").add(this.downwardAPI); + } else { + this.downwardAPI = null; + _visitables.get("downwardAPI").remove(this.downwardAPI); } return (A) this; } - public java.lang.Boolean hasDownwardAPI() { + public Boolean hasDownwardAPI() { return this.downwardAPI != null; } @@ -525,25 +510,24 @@ public V1VolumeFluent.DownwardAPINested withNewDownwardAPI() { return new V1VolumeFluentImpl.DownwardAPINestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested - withNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.DownwardAPINestedImpl(item); + public V1VolumeFluent.DownwardAPINested withNewDownwardAPILike( + V1DownwardAPIVolumeSource item) { + return new V1VolumeFluentImpl.DownwardAPINestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested editDownwardAPI() { + public V1VolumeFluent.DownwardAPINested editDownwardAPI() { return withNewDownwardAPILike(getDownwardAPI()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested - editOrNewDownwardAPI() { + public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPI() { return withNewDownwardAPILike( getDownwardAPI() != null ? getDownwardAPI() - : new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceBuilder().build()); + : new V1DownwardAPIVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested - editOrNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource item) { + public V1VolumeFluent.DownwardAPINested editOrNewDownwardAPILike( + V1DownwardAPIVolumeSource item) { return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI() : item); } @@ -552,25 +536,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested e * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource getEmptyDir() { + @Deprecated + public V1EmptyDirVolumeSource getEmptyDir() { return this.emptyDir != null ? this.emptyDir.build() : null; } - public io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource buildEmptyDir() { + public V1EmptyDirVolumeSource buildEmptyDir() { return this.emptyDir != null ? this.emptyDir.build() : null; } - public A withEmptyDir(io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource emptyDir) { + public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { _visitables.get("emptyDir").remove(this.emptyDir); if (emptyDir != null) { this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); _visitables.get("emptyDir").add(this.emptyDir); + } else { + this.emptyDir = null; + _visitables.get("emptyDir").remove(this.emptyDir); } return (A) this; } - public java.lang.Boolean hasEmptyDir() { + public Boolean hasEmptyDir() { return this.emptyDir != null; } @@ -578,24 +565,20 @@ public V1VolumeFluent.EmptyDirNested withNewEmptyDir() { return new V1VolumeFluentImpl.EmptyDirNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested withNewEmptyDirLike( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.EmptyDirNestedImpl(item); + public V1VolumeFluent.EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { + return new V1VolumeFluentImpl.EmptyDirNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested editEmptyDir() { + public V1VolumeFluent.EmptyDirNested editEmptyDir() { return withNewEmptyDirLike(getEmptyDir()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested editOrNewEmptyDir() { + public V1VolumeFluent.EmptyDirNested editOrNewEmptyDir() { return withNewEmptyDirLike( - getEmptyDir() != null - ? getEmptyDir() - : new io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceBuilder().build()); + getEmptyDir() != null ? getEmptyDir() : new V1EmptyDirVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested editOrNewEmptyDirLike( - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSource item) { + public V1VolumeFluent.EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item) { return withNewEmptyDirLike(getEmptyDir() != null ? getEmptyDir() : item); } @@ -604,26 +587,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested edit * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1EphemeralVolumeSource getEphemeral() { return this.ephemeral != null ? this.ephemeral.build() : null; } - public io.kubernetes.client.openapi.models.V1EphemeralVolumeSource buildEphemeral() { + public V1EphemeralVolumeSource buildEphemeral() { return this.ephemeral != null ? this.ephemeral.build() : null; } - public A withEphemeral(io.kubernetes.client.openapi.models.V1EphemeralVolumeSource ephemeral) { + public A withEphemeral(V1EphemeralVolumeSource ephemeral) { _visitables.get("ephemeral").remove(this.ephemeral); if (ephemeral != null) { - this.ephemeral = - new io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceBuilder(ephemeral); + this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); _visitables.get("ephemeral").add(this.ephemeral); + } else { + this.ephemeral = null; + _visitables.get("ephemeral").remove(this.ephemeral); } return (A) this; } - public java.lang.Boolean hasEphemeral() { + public Boolean hasEphemeral() { return this.ephemeral != null; } @@ -631,25 +616,20 @@ public V1VolumeFluent.EphemeralNested withNewEphemeral() { return new V1VolumeFluentImpl.EphemeralNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested withNewEphemeralLike( - io.kubernetes.client.openapi.models.V1EphemeralVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.EphemeralNestedImpl(item); + public V1VolumeFluent.EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { + return new V1VolumeFluentImpl.EphemeralNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested editEphemeral() { + public V1VolumeFluent.EphemeralNested editEphemeral() { return withNewEphemeralLike(getEphemeral()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested - editOrNewEphemeral() { + public V1VolumeFluent.EphemeralNested editOrNewEphemeral() { return withNewEphemeralLike( - getEphemeral() != null - ? getEphemeral() - : new io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceBuilder().build()); + getEphemeral() != null ? getEphemeral() : new V1EphemeralVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested - editOrNewEphemeralLike(io.kubernetes.client.openapi.models.V1EphemeralVolumeSource item) { + public V1VolumeFluent.EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item) { return withNewEphemeralLike(getEphemeral() != null ? getEphemeral() : item); } @@ -658,25 +638,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1FCVolumeSource getFc() { + @Deprecated + public V1FCVolumeSource getFc() { return this.fc != null ? this.fc.build() : null; } - public io.kubernetes.client.openapi.models.V1FCVolumeSource buildFc() { + public V1FCVolumeSource buildFc() { return this.fc != null ? this.fc.build() : null; } - public A withFc(io.kubernetes.client.openapi.models.V1FCVolumeSource fc) { + public A withFc(V1FCVolumeSource fc) { _visitables.get("fc").remove(this.fc); if (fc != null) { this.fc = new V1FCVolumeSourceBuilder(fc); _visitables.get("fc").add(this.fc); + } else { + this.fc = null; + _visitables.get("fc").remove(this.fc); } return (A) this; } - public java.lang.Boolean hasFc() { + public Boolean hasFc() { return this.fc != null; } @@ -684,24 +667,19 @@ public V1VolumeFluent.FcNested withNewFc() { return new V1VolumeFluentImpl.FcNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested withNewFcLike( - io.kubernetes.client.openapi.models.V1FCVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.FcNestedImpl(item); + public V1VolumeFluent.FcNested withNewFcLike(V1FCVolumeSource item) { + return new V1VolumeFluentImpl.FcNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editFc() { + public V1VolumeFluent.FcNested editFc() { return withNewFcLike(getFc()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editOrNewFc() { - return withNewFcLike( - getFc() != null - ? getFc() - : new io.kubernetes.client.openapi.models.V1FCVolumeSourceBuilder().build()); + public V1VolumeFluent.FcNested editOrNewFc() { + return withNewFcLike(getFc() != null ? getFc() : new V1FCVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editOrNewFcLike( - io.kubernetes.client.openapi.models.V1FCVolumeSource item) { + public V1VolumeFluent.FcNested editOrNewFcLike(V1FCVolumeSource item) { return withNewFcLike(getFc() != null ? getFc() : item); } @@ -710,26 +688,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested editOrNewF * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlexVolumeSource getFlexVolume() { return this.flexVolume != null ? this.flexVolume.build() : null; } - public io.kubernetes.client.openapi.models.V1FlexVolumeSource buildFlexVolume() { + public V1FlexVolumeSource buildFlexVolume() { return this.flexVolume != null ? this.flexVolume.build() : null; } - public A withFlexVolume(io.kubernetes.client.openapi.models.V1FlexVolumeSource flexVolume) { + public A withFlexVolume(V1FlexVolumeSource flexVolume) { _visitables.get("flexVolume").remove(this.flexVolume); if (flexVolume != null) { - this.flexVolume = - new io.kubernetes.client.openapi.models.V1FlexVolumeSourceBuilder(flexVolume); + this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); _visitables.get("flexVolume").add(this.flexVolume); + } else { + this.flexVolume = null; + _visitables.get("flexVolume").remove(this.flexVolume); } return (A) this; } - public java.lang.Boolean hasFlexVolume() { + public Boolean hasFlexVolume() { return this.flexVolume != null; } @@ -737,25 +717,20 @@ public V1VolumeFluent.FlexVolumeNested withNewFlexVolume() { return new V1VolumeFluentImpl.FlexVolumeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested - withNewFlexVolumeLike(io.kubernetes.client.openapi.models.V1FlexVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.FlexVolumeNestedImpl(item); + public V1VolumeFluent.FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { + return new V1VolumeFluentImpl.FlexVolumeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested editFlexVolume() { + public V1VolumeFluent.FlexVolumeNested editFlexVolume() { return withNewFlexVolumeLike(getFlexVolume()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested - editOrNewFlexVolume() { + public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolume() { return withNewFlexVolumeLike( - getFlexVolume() != null - ? getFlexVolume() - : new io.kubernetes.client.openapi.models.V1FlexVolumeSourceBuilder().build()); + getFlexVolume() != null ? getFlexVolume() : new V1FlexVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested - editOrNewFlexVolumeLike(io.kubernetes.client.openapi.models.V1FlexVolumeSource item) { + public V1VolumeFluent.FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { return withNewFlexVolumeLike(getFlexVolume() != null ? getFlexVolume() : item); } @@ -764,25 +739,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested ed * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1FlockerVolumeSource getFlocker() { return this.flocker != null ? this.flocker.build() : null; } - public io.kubernetes.client.openapi.models.V1FlockerVolumeSource buildFlocker() { + public V1FlockerVolumeSource buildFlocker() { return this.flocker != null ? this.flocker.build() : null; } - public A withFlocker(io.kubernetes.client.openapi.models.V1FlockerVolumeSource flocker) { + public A withFlocker(V1FlockerVolumeSource flocker) { _visitables.get("flocker").remove(this.flocker); if (flocker != null) { - this.flocker = new io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder(flocker); + this.flocker = new V1FlockerVolumeSourceBuilder(flocker); _visitables.get("flocker").add(this.flocker); + } else { + this.flocker = null; + _visitables.get("flocker").remove(this.flocker); } return (A) this; } - public java.lang.Boolean hasFlocker() { + public Boolean hasFlocker() { return this.flocker != null; } @@ -790,24 +768,20 @@ public V1VolumeFluent.FlockerNested withNewFlocker() { return new V1VolumeFluentImpl.FlockerNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested withNewFlockerLike( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.FlockerNestedImpl(item); + public V1VolumeFluent.FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { + return new V1VolumeFluentImpl.FlockerNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editFlocker() { + public V1VolumeFluent.FlockerNested editFlocker() { return withNewFlockerLike(getFlocker()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editOrNewFlocker() { + public V1VolumeFluent.FlockerNested editOrNewFlocker() { return withNewFlockerLike( - getFlocker() != null - ? getFlocker() - : new io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder().build()); + getFlocker() != null ? getFlocker() : new V1FlockerVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editOrNewFlockerLike( - io.kubernetes.client.openapi.models.V1FlockerVolumeSource item) { + public V1VolumeFluent.FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { return withNewFlockerLike(getFlocker() != null ? getFlocker() : item); } @@ -816,28 +790,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested editO * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource - getGcePersistentDisk() { + @Deprecated + public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource - buildGcePersistentDisk() { + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public A withGcePersistentDisk( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); if (gcePersistentDisk != null) { this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); _visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); + } else { + this.gcePersistentDisk = null; + _visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); } return (A) this; } - public java.lang.Boolean hasGcePersistentDisk() { + public Boolean hasGcePersistentDisk() { return this.gcePersistentDisk != null; } @@ -845,30 +819,24 @@ public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDisk() { return new V1VolumeFluentImpl.GcePersistentDiskNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - withNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.GcePersistentDiskNestedImpl( - item); + public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item) { + return new V1VolumeFluentImpl.GcePersistentDiskNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - editGcePersistentDisk() { + public V1VolumeFluent.GcePersistentDiskNested editGcePersistentDisk() { return withNewGcePersistentDiskLike(getGcePersistentDisk()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - editOrNewGcePersistentDisk() { + public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDisk() { return withNewGcePersistentDiskLike( getGcePersistentDisk() != null ? getGcePersistentDisk() - : new io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder() - .build()); + : new V1GCEPersistentDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested - editOrNewGcePersistentDiskLike( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item) { + public V1VolumeFluent.GcePersistentDiskNested editOrNewGcePersistentDiskLike( + V1GCEPersistentDiskVolumeSource item) { return withNewGcePersistentDiskLike( getGcePersistentDisk() != null ? getGcePersistentDisk() : item); } @@ -878,25 +846,28 @@ public V1VolumeFluent.GcePersistentDiskNested withNewGcePersistentDisk() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1GitRepoVolumeSource getGitRepo() { + @Deprecated + public V1GitRepoVolumeSource getGitRepo() { return this.gitRepo != null ? this.gitRepo.build() : null; } - public io.kubernetes.client.openapi.models.V1GitRepoVolumeSource buildGitRepo() { + public V1GitRepoVolumeSource buildGitRepo() { return this.gitRepo != null ? this.gitRepo.build() : null; } - public A withGitRepo(io.kubernetes.client.openapi.models.V1GitRepoVolumeSource gitRepo) { + public A withGitRepo(V1GitRepoVolumeSource gitRepo) { _visitables.get("gitRepo").remove(this.gitRepo); if (gitRepo != null) { this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); _visitables.get("gitRepo").add(this.gitRepo); + } else { + this.gitRepo = null; + _visitables.get("gitRepo").remove(this.gitRepo); } return (A) this; } - public java.lang.Boolean hasGitRepo() { + public Boolean hasGitRepo() { return this.gitRepo != null; } @@ -904,24 +875,20 @@ public V1VolumeFluent.GitRepoNested withNewGitRepo() { return new V1VolumeFluentImpl.GitRepoNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested withNewGitRepoLike( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.GitRepoNestedImpl(item); + public V1VolumeFluent.GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { + return new V1VolumeFluentImpl.GitRepoNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editGitRepo() { + public V1VolumeFluent.GitRepoNested editGitRepo() { return withNewGitRepoLike(getGitRepo()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editOrNewGitRepo() { + public V1VolumeFluent.GitRepoNested editOrNewGitRepo() { return withNewGitRepoLike( - getGitRepo() != null - ? getGitRepo() - : new io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceBuilder().build()); + getGitRepo() != null ? getGitRepo() : new V1GitRepoVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editOrNewGitRepoLike( - io.kubernetes.client.openapi.models.V1GitRepoVolumeSource item) { + public V1VolumeFluent.GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { return withNewGitRepoLike(getGitRepo() != null ? getGitRepo() : item); } @@ -930,26 +897,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested editO * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1GlusterfsVolumeSource getGlusterfs() { return this.glusterfs != null ? this.glusterfs.build() : null; } - public io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource buildGlusterfs() { + public V1GlusterfsVolumeSource buildGlusterfs() { return this.glusterfs != null ? this.glusterfs.build() : null; } - public A withGlusterfs(io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource glusterfs) { + public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { _visitables.get("glusterfs").remove(this.glusterfs); if (glusterfs != null) { - this.glusterfs = - new io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceBuilder(glusterfs); + this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); _visitables.get("glusterfs").add(this.glusterfs); + } else { + this.glusterfs = null; + _visitables.get("glusterfs").remove(this.glusterfs); } return (A) this; } - public java.lang.Boolean hasGlusterfs() { + public Boolean hasGlusterfs() { return this.glusterfs != null; } @@ -957,25 +926,20 @@ public V1VolumeFluent.GlusterfsNested withNewGlusterfs() { return new V1VolumeFluentImpl.GlusterfsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested withNewGlusterfsLike( - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.GlusterfsNestedImpl(item); + public V1VolumeFluent.GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { + return new V1VolumeFluentImpl.GlusterfsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested editGlusterfs() { + public V1VolumeFluent.GlusterfsNested editGlusterfs() { return withNewGlusterfsLike(getGlusterfs()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested - editOrNewGlusterfs() { + public V1VolumeFluent.GlusterfsNested editOrNewGlusterfs() { return withNewGlusterfsLike( - getGlusterfs() != null - ? getGlusterfs() - : new io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceBuilder().build()); + getGlusterfs() != null ? getGlusterfs() : new V1GlusterfsVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested - editOrNewGlusterfsLike(io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource item) { + public V1VolumeFluent.GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { return withNewGlusterfsLike(getGlusterfs() != null ? getGlusterfs() : item); } @@ -984,26 +948,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested edi * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1HostPathVolumeSource getHostPath() { return this.hostPath != null ? this.hostPath.build() : null; } - public io.kubernetes.client.openapi.models.V1HostPathVolumeSource buildHostPath() { + public V1HostPathVolumeSource buildHostPath() { return this.hostPath != null ? this.hostPath.build() : null; } - public A withHostPath(io.kubernetes.client.openapi.models.V1HostPathVolumeSource hostPath) { + public A withHostPath(V1HostPathVolumeSource hostPath) { _visitables.get("hostPath").remove(this.hostPath); if (hostPath != null) { - this.hostPath = - new io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder(hostPath); + this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); _visitables.get("hostPath").add(this.hostPath); + } else { + this.hostPath = null; + _visitables.get("hostPath").remove(this.hostPath); } return (A) this; } - public java.lang.Boolean hasHostPath() { + public Boolean hasHostPath() { return this.hostPath != null; } @@ -1011,24 +977,20 @@ public V1VolumeFluent.HostPathNested withNewHostPath() { return new V1VolumeFluentImpl.HostPathNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested withNewHostPathLike( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.HostPathNestedImpl(item); + public V1VolumeFluent.HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { + return new V1VolumeFluentImpl.HostPathNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested editHostPath() { + public V1VolumeFluent.HostPathNested editHostPath() { return withNewHostPathLike(getHostPath()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested editOrNewHostPath() { + public V1VolumeFluent.HostPathNested editOrNewHostPath() { return withNewHostPathLike( - getHostPath() != null - ? getHostPath() - : new io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder().build()); + getHostPath() != null ? getHostPath() : new V1HostPathVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested editOrNewHostPathLike( - io.kubernetes.client.openapi.models.V1HostPathVolumeSource item) { + public V1VolumeFluent.HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { return withNewHostPathLike(getHostPath() != null ? getHostPath() : item); } @@ -1037,25 +999,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested edit * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSource getIscsi() { + @Deprecated + public V1ISCSIVolumeSource getIscsi() { return this.iscsi != null ? this.iscsi.build() : null; } - public io.kubernetes.client.openapi.models.V1ISCSIVolumeSource buildIscsi() { + public V1ISCSIVolumeSource buildIscsi() { return this.iscsi != null ? this.iscsi.build() : null; } - public A withIscsi(io.kubernetes.client.openapi.models.V1ISCSIVolumeSource iscsi) { + public A withIscsi(V1ISCSIVolumeSource iscsi) { _visitables.get("iscsi").remove(this.iscsi); if (iscsi != null) { this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); _visitables.get("iscsi").add(this.iscsi); + } else { + this.iscsi = null; + _visitables.get("iscsi").remove(this.iscsi); } return (A) this; } - public java.lang.Boolean hasIscsi() { + public Boolean hasIscsi() { return this.iscsi != null; } @@ -1063,37 +1028,33 @@ public V1VolumeFluent.IscsiNested withNewIscsi() { return new V1VolumeFluentImpl.IscsiNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested withNewIscsiLike( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.IscsiNestedImpl(item); + public V1VolumeFluent.IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { + return new V1VolumeFluentImpl.IscsiNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested editIscsi() { + public V1VolumeFluent.IscsiNested editIscsi() { return withNewIscsiLike(getIscsi()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested editOrNewIscsi() { + public V1VolumeFluent.IscsiNested editOrNewIscsi() { return withNewIscsiLike( - getIscsi() != null - ? getIscsi() - : new io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceBuilder().build()); + getIscsi() != null ? getIscsi() : new V1ISCSIVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested editOrNewIscsiLike( - io.kubernetes.client.openapi.models.V1ISCSIVolumeSource item) { + public V1VolumeFluent.IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { return withNewIscsiLike(getIscsi() != null ? getIscsi() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -1102,25 +1063,28 @@ public java.lang.Boolean hasName() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1NFSVolumeSource getNfs() { return this.nfs != null ? this.nfs.build() : null; } - public io.kubernetes.client.openapi.models.V1NFSVolumeSource buildNfs() { + public V1NFSVolumeSource buildNfs() { return this.nfs != null ? this.nfs.build() : null; } - public A withNfs(io.kubernetes.client.openapi.models.V1NFSVolumeSource nfs) { + public A withNfs(V1NFSVolumeSource nfs) { _visitables.get("nfs").remove(this.nfs); if (nfs != null) { - this.nfs = new io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder(nfs); + this.nfs = new V1NFSVolumeSourceBuilder(nfs); _visitables.get("nfs").add(this.nfs); + } else { + this.nfs = null; + _visitables.get("nfs").remove(this.nfs); } return (A) this; } - public java.lang.Boolean hasNfs() { + public Boolean hasNfs() { return this.nfs != null; } @@ -1128,24 +1092,19 @@ public V1VolumeFluent.NfsNested withNewNfs() { return new V1VolumeFluentImpl.NfsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested withNewNfsLike( - io.kubernetes.client.openapi.models.V1NFSVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.NfsNestedImpl(item); + public V1VolumeFluent.NfsNested withNewNfsLike(V1NFSVolumeSource item) { + return new V1VolumeFluentImpl.NfsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editNfs() { + public V1VolumeFluent.NfsNested editNfs() { return withNewNfsLike(getNfs()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editOrNewNfs() { - return withNewNfsLike( - getNfs() != null - ? getNfs() - : new io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder().build()); + public V1VolumeFluent.NfsNested editOrNewNfs() { + return withNewNfsLike(getNfs() != null ? getNfs() : new V1NFSVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editOrNewNfsLike( - io.kubernetes.client.openapi.models.V1NFSVolumeSource item) { + public V1VolumeFluent.NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { return withNewNfsLike(getNfs() != null ? getNfs() : item); } @@ -1154,30 +1113,29 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested editOrNew * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource - getPersistentVolumeClaim() { + @Deprecated + public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; } - public io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource - buildPersistentVolumeClaim() { + public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; } - public A withPersistentVolumeClaim( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource - persistentVolumeClaim) { + public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { _visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); if (persistentVolumeClaim != null) { this.persistentVolumeClaim = new V1PersistentVolumeClaimVolumeSourceBuilder(persistentVolumeClaim); _visitables.get("persistentVolumeClaim").add(this.persistentVolumeClaim); + } else { + this.persistentVolumeClaim = null; + _visitables.get("persistentVolumeClaim").remove(this.persistentVolumeClaim); } return (A) this; } - public java.lang.Boolean hasPersistentVolumeClaim() { + public Boolean hasPersistentVolumeClaim() { return this.persistentVolumeClaim != null; } @@ -1185,30 +1143,24 @@ public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClai return new V1VolumeFluentImpl.PersistentVolumeClaimNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - withNewPersistentVolumeClaimLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl - .PersistentVolumeClaimNestedImpl(item); + public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClaimLike( + V1PersistentVolumeClaimVolumeSource item) { + return new V1VolumeFluentImpl.PersistentVolumeClaimNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - editPersistentVolumeClaim() { + public V1VolumeFluent.PersistentVolumeClaimNested editPersistentVolumeClaim() { return withNewPersistentVolumeClaimLike(getPersistentVolumeClaim()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - editOrNewPersistentVolumeClaim() { + public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { return withNewPersistentVolumeClaimLike( getPersistentVolumeClaim() != null ? getPersistentVolumeClaim() - : new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceBuilder() - .build()); + : new V1PersistentVolumeClaimVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested - editOrNewPersistentVolumeClaimLike( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource item) { + public V1VolumeFluent.PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike( + V1PersistentVolumeClaimVolumeSource item) { return withNewPersistentVolumeClaimLike( getPersistentVolumeClaim() != null ? getPersistentVolumeClaim() : item); } @@ -1218,29 +1170,29 @@ public V1VolumeFluent.PersistentVolumeClaimNested withNewPersistentVolumeClai * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource - buildPhotonPersistentDisk() { + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public A withPhotonPersistentDisk( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); if (photonPersistentDisk != null) { this.photonPersistentDisk = - new io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder( - photonPersistentDisk); + new V1PhotonPersistentDiskVolumeSourceBuilder(photonPersistentDisk); _visitables.get("photonPersistentDisk").add(this.photonPersistentDisk); + } else { + this.photonPersistentDisk = null; + _visitables.get("photonPersistentDisk").remove(this.photonPersistentDisk); } return (A) this; } - public java.lang.Boolean hasPhotonPersistentDisk() { + public Boolean hasPhotonPersistentDisk() { return this.photonPersistentDisk != null; } @@ -1248,30 +1200,24 @@ public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk( return new V1VolumeFluentImpl.PhotonPersistentDiskNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - withNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl - .PhotonPersistentDiskNestedImpl(item); + public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDiskLike( + V1PhotonPersistentDiskVolumeSource item) { + return new V1VolumeFluentImpl.PhotonPersistentDiskNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - editPhotonPersistentDisk() { + public V1VolumeFluent.PhotonPersistentDiskNested editPhotonPersistentDisk() { return withNewPhotonPersistentDiskLike(getPhotonPersistentDisk()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDisk() { + public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { return withNewPhotonPersistentDiskLike( getPhotonPersistentDisk() != null ? getPhotonPersistentDisk() - : new io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder() - .build()); + : new V1PhotonPersistentDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested - editOrNewPhotonPersistentDiskLike( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item) { + public V1VolumeFluent.PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike( + V1PhotonPersistentDiskVolumeSource item) { return withNewPhotonPersistentDiskLike( getPhotonPersistentDisk() != null ? getPhotonPersistentDisk() : item); } @@ -1281,27 +1227,28 @@ public V1VolumeFluent.PhotonPersistentDiskNested withNewPhotonPersistentDisk( * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1PortworxVolumeSource getPortworxVolume() { return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public io.kubernetes.client.openapi.models.V1PortworxVolumeSource buildPortworxVolume() { + public V1PortworxVolumeSource buildPortworxVolume() { return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public A withPortworxVolume( - io.kubernetes.client.openapi.models.V1PortworxVolumeSource portworxVolume) { + public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { _visitables.get("portworxVolume").remove(this.portworxVolume); if (portworxVolume != null) { - this.portworxVolume = - new io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder(portworxVolume); + this.portworxVolume = new V1PortworxVolumeSourceBuilder(portworxVolume); _visitables.get("portworxVolume").add(this.portworxVolume); + } else { + this.portworxVolume = null; + _visitables.get("portworxVolume").remove(this.portworxVolume); } return (A) this; } - public java.lang.Boolean hasPortworxVolume() { + public Boolean hasPortworxVolume() { return this.portworxVolume != null; } @@ -1309,27 +1256,24 @@ public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolume() { return new V1VolumeFluentImpl.PortworxVolumeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - withNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.PortworxVolumeNestedImpl( - item); + public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolumeLike( + V1PortworxVolumeSource item) { + return new V1VolumeFluentImpl.PortworxVolumeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - editPortworxVolume() { + public V1VolumeFluent.PortworxVolumeNested editPortworxVolume() { return withNewPortworxVolumeLike(getPortworxVolume()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - editOrNewPortworxVolume() { + public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolume() { return withNewPortworxVolumeLike( getPortworxVolume() != null ? getPortworxVolume() - : new io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder().build()); + : new V1PortworxVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested - editOrNewPortworxVolumeLike(io.kubernetes.client.openapi.models.V1PortworxVolumeSource item) { + public V1VolumeFluent.PortworxVolumeNested editOrNewPortworxVolumeLike( + V1PortworxVolumeSource item) { return withNewPortworxVolumeLike(getPortworxVolume() != null ? getPortworxVolume() : item); } @@ -1338,26 +1282,28 @@ public V1VolumeFluent.PortworxVolumeNested withNewPortworxVolume() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ProjectedVolumeSource getProjected() { return this.projected != null ? this.projected.build() : null; } - public io.kubernetes.client.openapi.models.V1ProjectedVolumeSource buildProjected() { + public V1ProjectedVolumeSource buildProjected() { return this.projected != null ? this.projected.build() : null; } - public A withProjected(io.kubernetes.client.openapi.models.V1ProjectedVolumeSource projected) { + public A withProjected(V1ProjectedVolumeSource projected) { _visitables.get("projected").remove(this.projected); if (projected != null) { - this.projected = - new io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceBuilder(projected); + this.projected = new V1ProjectedVolumeSourceBuilder(projected); _visitables.get("projected").add(this.projected); + } else { + this.projected = null; + _visitables.get("projected").remove(this.projected); } return (A) this; } - public java.lang.Boolean hasProjected() { + public Boolean hasProjected() { return this.projected != null; } @@ -1365,25 +1311,20 @@ public V1VolumeFluent.ProjectedNested withNewProjected() { return new V1VolumeFluentImpl.ProjectedNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested withNewProjectedLike( - io.kubernetes.client.openapi.models.V1ProjectedVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.ProjectedNestedImpl(item); + public V1VolumeFluent.ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { + return new V1VolumeFluentImpl.ProjectedNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested editProjected() { + public V1VolumeFluent.ProjectedNested editProjected() { return withNewProjectedLike(getProjected()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested - editOrNewProjected() { + public V1VolumeFluent.ProjectedNested editOrNewProjected() { return withNewProjectedLike( - getProjected() != null - ? getProjected() - : new io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceBuilder().build()); + getProjected() != null ? getProjected() : new V1ProjectedVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested - editOrNewProjectedLike(io.kubernetes.client.openapi.models.V1ProjectedVolumeSource item) { + public V1VolumeFluent.ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { return withNewProjectedLike(getProjected() != null ? getProjected() : item); } @@ -1392,25 +1333,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested edi * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource getQuobyte() { + @Deprecated + public V1QuobyteVolumeSource getQuobyte() { return this.quobyte != null ? this.quobyte.build() : null; } - public io.kubernetes.client.openapi.models.V1QuobyteVolumeSource buildQuobyte() { + public V1QuobyteVolumeSource buildQuobyte() { return this.quobyte != null ? this.quobyte.build() : null; } - public A withQuobyte(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource quobyte) { + public A withQuobyte(V1QuobyteVolumeSource quobyte) { _visitables.get("quobyte").remove(this.quobyte); if (quobyte != null) { this.quobyte = new V1QuobyteVolumeSourceBuilder(quobyte); _visitables.get("quobyte").add(this.quobyte); + } else { + this.quobyte = null; + _visitables.get("quobyte").remove(this.quobyte); } return (A) this; } - public java.lang.Boolean hasQuobyte() { + public Boolean hasQuobyte() { return this.quobyte != null; } @@ -1418,24 +1362,20 @@ public V1VolumeFluent.QuobyteNested withNewQuobyte() { return new V1VolumeFluentImpl.QuobyteNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested withNewQuobyteLike( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.QuobyteNestedImpl(item); + public V1VolumeFluent.QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { + return new V1VolumeFluentImpl.QuobyteNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editQuobyte() { + public V1VolumeFluent.QuobyteNested editQuobyte() { return withNewQuobyteLike(getQuobyte()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editOrNewQuobyte() { + public V1VolumeFluent.QuobyteNested editOrNewQuobyte() { return withNewQuobyteLike( - getQuobyte() != null - ? getQuobyte() - : new io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder().build()); + getQuobyte() != null ? getQuobyte() : new V1QuobyteVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editOrNewQuobyteLike( - io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item) { + public V1VolumeFluent.QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { return withNewQuobyteLike(getQuobyte() != null ? getQuobyte() : item); } @@ -1444,25 +1384,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested editO * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1RBDVolumeSource getRbd() { + @Deprecated + public V1RBDVolumeSource getRbd() { return this.rbd != null ? this.rbd.build() : null; } - public io.kubernetes.client.openapi.models.V1RBDVolumeSource buildRbd() { + public V1RBDVolumeSource buildRbd() { return this.rbd != null ? this.rbd.build() : null; } - public A withRbd(io.kubernetes.client.openapi.models.V1RBDVolumeSource rbd) { + public A withRbd(V1RBDVolumeSource rbd) { _visitables.get("rbd").remove(this.rbd); if (rbd != null) { this.rbd = new V1RBDVolumeSourceBuilder(rbd); _visitables.get("rbd").add(this.rbd); + } else { + this.rbd = null; + _visitables.get("rbd").remove(this.rbd); } return (A) this; } - public java.lang.Boolean hasRbd() { + public Boolean hasRbd() { return this.rbd != null; } @@ -1470,24 +1413,19 @@ public V1VolumeFluent.RbdNested withNewRbd() { return new V1VolumeFluentImpl.RbdNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested withNewRbdLike( - io.kubernetes.client.openapi.models.V1RBDVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.RbdNestedImpl(item); + public V1VolumeFluent.RbdNested withNewRbdLike(V1RBDVolumeSource item) { + return new V1VolumeFluentImpl.RbdNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editRbd() { + public V1VolumeFluent.RbdNested editRbd() { return withNewRbdLike(getRbd()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editOrNewRbd() { - return withNewRbdLike( - getRbd() != null - ? getRbd() - : new io.kubernetes.client.openapi.models.V1RBDVolumeSourceBuilder().build()); + public V1VolumeFluent.RbdNested editOrNewRbd() { + return withNewRbdLike(getRbd() != null ? getRbd() : new V1RBDVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editOrNewRbdLike( - io.kubernetes.client.openapi.models.V1RBDVolumeSource item) { + public V1VolumeFluent.RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { return withNewRbdLike(getRbd() != null ? getRbd() : item); } @@ -1496,25 +1434,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested editOrNew * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ScaleIOVolumeSource getScaleIO() { return this.scaleIO != null ? this.scaleIO.build() : null; } - public io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource buildScaleIO() { + public V1ScaleIOVolumeSource buildScaleIO() { return this.scaleIO != null ? this.scaleIO.build() : null; } - public A withScaleIO(io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource scaleIO) { + public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { _visitables.get("scaleIO").remove(this.scaleIO); if (scaleIO != null) { - this.scaleIO = new io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceBuilder(scaleIO); + this.scaleIO = new V1ScaleIOVolumeSourceBuilder(scaleIO); _visitables.get("scaleIO").add(this.scaleIO); + } else { + this.scaleIO = null; + _visitables.get("scaleIO").remove(this.scaleIO); } return (A) this; } - public java.lang.Boolean hasScaleIO() { + public Boolean hasScaleIO() { return this.scaleIO != null; } @@ -1522,24 +1463,20 @@ public V1VolumeFluent.ScaleIONested withNewScaleIO() { return new V1VolumeFluentImpl.ScaleIONestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested withNewScaleIOLike( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.ScaleIONestedImpl(item); + public V1VolumeFluent.ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { + return new V1VolumeFluentImpl.ScaleIONestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editScaleIO() { + public V1VolumeFluent.ScaleIONested editScaleIO() { return withNewScaleIOLike(getScaleIO()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editOrNewScaleIO() { + public V1VolumeFluent.ScaleIONested editOrNewScaleIO() { return withNewScaleIOLike( - getScaleIO() != null - ? getScaleIO() - : new io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceBuilder().build()); + getScaleIO() != null ? getScaleIO() : new V1ScaleIOVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editOrNewScaleIOLike( - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSource item) { + public V1VolumeFluent.ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { return withNewScaleIOLike(getScaleIO() != null ? getScaleIO() : item); } @@ -1548,25 +1485,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested editO * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecretVolumeSource getSecret() { return this.secret != null ? this.secret.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretVolumeSource buildSecret() { + public V1SecretVolumeSource buildSecret() { return this.secret != null ? this.secret.build() : null; } - public A withSecret(io.kubernetes.client.openapi.models.V1SecretVolumeSource secret) { + public A withSecret(V1SecretVolumeSource secret) { _visitables.get("secret").remove(this.secret); if (secret != null) { - this.secret = new io.kubernetes.client.openapi.models.V1SecretVolumeSourceBuilder(secret); + this.secret = new V1SecretVolumeSourceBuilder(secret); _visitables.get("secret").add(this.secret); + } else { + this.secret = null; + _visitables.get("secret").remove(this.secret); } return (A) this; } - public java.lang.Boolean hasSecret() { + public Boolean hasSecret() { return this.secret != null; } @@ -1574,24 +1514,20 @@ public V1VolumeFluent.SecretNested withNewSecret() { return new V1VolumeFluentImpl.SecretNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested withNewSecretLike( - io.kubernetes.client.openapi.models.V1SecretVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.SecretNestedImpl(item); + public V1VolumeFluent.SecretNested withNewSecretLike(V1SecretVolumeSource item) { + return new V1VolumeFluentImpl.SecretNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editSecret() { + public V1VolumeFluent.SecretNested editSecret() { return withNewSecretLike(getSecret()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editOrNewSecret() { + public V1VolumeFluent.SecretNested editOrNewSecret() { return withNewSecretLike( - getSecret() != null - ? getSecret() - : new io.kubernetes.client.openapi.models.V1SecretVolumeSourceBuilder().build()); + getSecret() != null ? getSecret() : new V1SecretVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editOrNewSecretLike( - io.kubernetes.client.openapi.models.V1SecretVolumeSource item) { + public V1VolumeFluent.SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { return withNewSecretLike(getSecret() != null ? getSecret() : item); } @@ -1600,26 +1536,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested editOr * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1StorageOSVolumeSource getStorageos() { return this.storageos != null ? this.storageos.build() : null; } - public io.kubernetes.client.openapi.models.V1StorageOSVolumeSource buildStorageos() { + public V1StorageOSVolumeSource buildStorageos() { return this.storageos != null ? this.storageos.build() : null; } - public A withStorageos(io.kubernetes.client.openapi.models.V1StorageOSVolumeSource storageos) { + public A withStorageos(V1StorageOSVolumeSource storageos) { _visitables.get("storageos").remove(this.storageos); if (storageos != null) { - this.storageos = - new io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceBuilder(storageos); + this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); _visitables.get("storageos").add(this.storageos); + } else { + this.storageos = null; + _visitables.get("storageos").remove(this.storageos); } return (A) this; } - public java.lang.Boolean hasStorageos() { + public Boolean hasStorageos() { return this.storageos != null; } @@ -1627,25 +1565,20 @@ public V1VolumeFluent.StorageosNested withNewStorageos() { return new V1VolumeFluentImpl.StorageosNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested withNewStorageosLike( - io.kubernetes.client.openapi.models.V1StorageOSVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.StorageosNestedImpl(item); + public V1VolumeFluent.StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { + return new V1VolumeFluentImpl.StorageosNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested editStorageos() { + public V1VolumeFluent.StorageosNested editStorageos() { return withNewStorageosLike(getStorageos()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested - editOrNewStorageos() { + public V1VolumeFluent.StorageosNested editOrNewStorageos() { return withNewStorageosLike( - getStorageos() != null - ? getStorageos() - : new io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceBuilder().build()); + getStorageos() != null ? getStorageos() : new V1StorageOSVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested - editOrNewStorageosLike(io.kubernetes.client.openapi.models.V1StorageOSVolumeSource item) { + public V1VolumeFluent.StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { return withNewStorageosLike(getStorageos() != null ? getStorageos() : item); } @@ -1654,28 +1587,28 @@ public io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested edi * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public A withVsphereVolume( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource vsphereVolume) { + public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { _visitables.get("vsphereVolume").remove(this.vsphereVolume); if (vsphereVolume != null) { - this.vsphereVolume = - new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder( - vsphereVolume); + this.vsphereVolume = new V1VsphereVirtualDiskVolumeSourceBuilder(vsphereVolume); _visitables.get("vsphereVolume").add(this.vsphereVolume); + } else { + this.vsphereVolume = null; + _visitables.get("vsphereVolume").remove(this.vsphereVolume); } return (A) this; } - public java.lang.Boolean hasVsphereVolume() { + public Boolean hasVsphereVolume() { return this.vsphereVolume != null; } @@ -1683,29 +1616,24 @@ public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolume() { return new V1VolumeFluentImpl.VsphereVolumeNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - withNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item) { - return new io.kubernetes.client.openapi.models.V1VolumeFluentImpl.VsphereVolumeNestedImpl(item); + public V1VolumeFluent.VsphereVolumeNested withNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item) { + return new V1VolumeFluentImpl.VsphereVolumeNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - editVsphereVolume() { + public V1VolumeFluent.VsphereVolumeNested editVsphereVolume() { return withNewVsphereVolumeLike(getVsphereVolume()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - editOrNewVsphereVolume() { + public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolume() { return withNewVsphereVolumeLike( getVsphereVolume() != null ? getVsphereVolume() - : new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder() - .build()); + : new V1VsphereVirtualDiskVolumeSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested - editOrNewVsphereVolumeLike( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item) { + public V1VolumeFluent.VsphereVolumeNested editOrNewVsphereVolumeLike( + V1VsphereVirtualDiskVolumeSource item) { return withNewVsphereVolumeLike(getVsphereVolume() != null ? getVsphereVolume() : item); } @@ -1802,7 +1730,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (awsElasticBlockStore != null) { @@ -1932,18 +1860,16 @@ public java.lang.String toString() { class AwsElasticBlockStoreNestedImpl extends V1AWSElasticBlockStoreVolumeSourceFluentImpl< V1VolumeFluent.AwsElasticBlockStoreNested> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.AwsElasticBlockStoreNested, - Nested { + implements V1VolumeFluent.AwsElasticBlockStoreNested, Nested { AwsElasticBlockStoreNestedImpl(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } AwsElasticBlockStoreNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder(this); + this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSourceBuilder builder; + V1AWSElasticBlockStoreVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withAwsElasticBlockStore(builder.build()); @@ -1956,17 +1882,16 @@ public N endAwsElasticBlockStore() { class AzureDiskNestedImpl extends V1AzureDiskVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.AzureDiskNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.AzureDiskNested, Nested { AzureDiskNestedImpl(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } AzureDiskNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder(this); + this.builder = new V1AzureDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1AzureDiskVolumeSourceBuilder builder; + V1AzureDiskVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withAzureDisk(builder.build()); @@ -1979,17 +1904,16 @@ public N endAzureDisk() { class AzureFileNestedImpl extends V1AzureFileVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.AzureFileNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.AzureFileNested, Nested { AzureFileNestedImpl(V1AzureFileVolumeSource item) { this.builder = new V1AzureFileVolumeSourceBuilder(this, item); } AzureFileNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceBuilder(this); + this.builder = new V1AzureFileVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1AzureFileVolumeSourceBuilder builder; + V1AzureFileVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withAzureFile(builder.build()); @@ -2001,17 +1925,16 @@ public N endAzureFile() { } class CephfsNestedImpl extends V1CephFSVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.CephfsNested, - io.kubernetes.client.fluent.Nested { - CephfsNestedImpl(io.kubernetes.client.openapi.models.V1CephFSVolumeSource item) { + implements V1VolumeFluent.CephfsNested, Nested { + CephfsNestedImpl(V1CephFSVolumeSource item) { this.builder = new V1CephFSVolumeSourceBuilder(this, item); } CephfsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CephFSVolumeSourceBuilder(this); + this.builder = new V1CephFSVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1CephFSVolumeSourceBuilder builder; + V1CephFSVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withCephfs(builder.build()); @@ -2023,17 +1946,16 @@ public N endCephfs() { } class CinderNestedImpl extends V1CinderVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.CinderNested, - io.kubernetes.client.fluent.Nested { - CinderNestedImpl(io.kubernetes.client.openapi.models.V1CinderVolumeSource item) { + implements V1VolumeFluent.CinderNested, Nested { + CinderNestedImpl(V1CinderVolumeSource item) { this.builder = new V1CinderVolumeSourceBuilder(this, item); } CinderNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CinderVolumeSourceBuilder(this); + this.builder = new V1CinderVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1CinderVolumeSourceBuilder builder; + V1CinderVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withCinder(builder.build()); @@ -2046,17 +1968,16 @@ public N endCinder() { class ConfigMapNestedImpl extends V1ConfigMapVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.ConfigMapNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.ConfigMapNested, Nested { ConfigMapNestedImpl(V1ConfigMapVolumeSource item) { this.builder = new V1ConfigMapVolumeSourceBuilder(this, item); } ConfigMapNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceBuilder(this); + this.builder = new V1ConfigMapVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ConfigMapVolumeSourceBuilder builder; + V1ConfigMapVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withConfigMap(builder.build()); @@ -2068,17 +1989,16 @@ public N endConfigMap() { } class CsiNestedImpl extends V1CSIVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.CsiNested, - io.kubernetes.client.fluent.Nested { - CsiNestedImpl(io.kubernetes.client.openapi.models.V1CSIVolumeSource item) { + implements V1VolumeFluent.CsiNested, Nested { + CsiNestedImpl(V1CSIVolumeSource item) { this.builder = new V1CSIVolumeSourceBuilder(this, item); } CsiNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1CSIVolumeSourceBuilder(this); + this.builder = new V1CSIVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1CSIVolumeSourceBuilder builder; + V1CSIVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withCsi(builder.build()); @@ -2091,17 +2011,16 @@ public N endCsi() { class DownwardAPINestedImpl extends V1DownwardAPIVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.DownwardAPINested, - io.kubernetes.client.fluent.Nested { - DownwardAPINestedImpl(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource item) { + implements V1VolumeFluent.DownwardAPINested, Nested { + DownwardAPINestedImpl(V1DownwardAPIVolumeSource item) { this.builder = new V1DownwardAPIVolumeSourceBuilder(this, item); } DownwardAPINestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceBuilder(this); + this.builder = new V1DownwardAPIVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSourceBuilder builder; + V1DownwardAPIVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withDownwardAPI(builder.build()); @@ -2114,17 +2033,16 @@ public N endDownwardAPI() { class EmptyDirNestedImpl extends V1EmptyDirVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.EmptyDirNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.EmptyDirNested, Nested { EmptyDirNestedImpl(V1EmptyDirVolumeSource item) { this.builder = new V1EmptyDirVolumeSourceBuilder(this, item); } EmptyDirNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceBuilder(this); + this.builder = new V1EmptyDirVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EmptyDirVolumeSourceBuilder builder; + V1EmptyDirVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withEmptyDir(builder.build()); @@ -2137,17 +2055,16 @@ public N endEmptyDir() { class EphemeralNestedImpl extends V1EphemeralVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.EphemeralNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.EphemeralNested, Nested { EphemeralNestedImpl(V1EphemeralVolumeSource item) { this.builder = new V1EphemeralVolumeSourceBuilder(this, item); } EphemeralNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceBuilder(this); + this.builder = new V1EphemeralVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1EphemeralVolumeSourceBuilder builder; + V1EphemeralVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withEphemeral(builder.build()); @@ -2159,17 +2076,16 @@ public N endEphemeral() { } class FcNestedImpl extends V1FCVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.FcNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.FcNested, Nested { FcNestedImpl(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } FcNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1FCVolumeSourceBuilder(this); + this.builder = new V1FCVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1FCVolumeSourceBuilder builder; + V1FCVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withFc(builder.build()); @@ -2182,17 +2098,16 @@ public N endFc() { class FlexVolumeNestedImpl extends V1FlexVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.FlexVolumeNested, - io.kubernetes.client.fluent.Nested { - FlexVolumeNestedImpl(io.kubernetes.client.openapi.models.V1FlexVolumeSource item) { + implements V1VolumeFluent.FlexVolumeNested, Nested { + FlexVolumeNestedImpl(V1FlexVolumeSource item) { this.builder = new V1FlexVolumeSourceBuilder(this, item); } FlexVolumeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1FlexVolumeSourceBuilder(this); + this.builder = new V1FlexVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1FlexVolumeSourceBuilder builder; + V1FlexVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withFlexVolume(builder.build()); @@ -2205,17 +2120,16 @@ public N endFlexVolume() { class FlockerNestedImpl extends V1FlockerVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.FlockerNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.FlockerNested, Nested { FlockerNestedImpl(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } FlockerNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder(this); + this.builder = new V1FlockerVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1FlockerVolumeSourceBuilder builder; + V1FlockerVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withFlocker(builder.build()); @@ -2228,19 +2142,16 @@ public N endFlocker() { class GcePersistentDiskNestedImpl extends V1GCEPersistentDiskVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.GcePersistentDiskNested, - io.kubernetes.client.fluent.Nested { - GcePersistentDiskNestedImpl( - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource item) { + implements V1VolumeFluent.GcePersistentDiskNested, Nested { + GcePersistentDiskNestedImpl(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } GcePersistentDiskNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder(this); + this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSourceBuilder builder; + V1GCEPersistentDiskVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withGcePersistentDisk(builder.build()); @@ -2253,17 +2164,16 @@ public N endGcePersistentDisk() { class GitRepoNestedImpl extends V1GitRepoVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.GitRepoNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.GitRepoNested, Nested { GitRepoNestedImpl(V1GitRepoVolumeSource item) { this.builder = new V1GitRepoVolumeSourceBuilder(this, item); } GitRepoNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceBuilder(this); + this.builder = new V1GitRepoVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1GitRepoVolumeSourceBuilder builder; + V1GitRepoVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withGitRepo(builder.build()); @@ -2276,17 +2186,16 @@ public N endGitRepo() { class GlusterfsNestedImpl extends V1GlusterfsVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.GlusterfsNested, - io.kubernetes.client.fluent.Nested { - GlusterfsNestedImpl(io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource item) { + implements V1VolumeFluent.GlusterfsNested, Nested { + GlusterfsNestedImpl(V1GlusterfsVolumeSource item) { this.builder = new V1GlusterfsVolumeSourceBuilder(this, item); } GlusterfsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceBuilder(this); + this.builder = new V1GlusterfsVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1GlusterfsVolumeSourceBuilder builder; + V1GlusterfsVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withGlusterfs(builder.build()); @@ -2299,17 +2208,16 @@ public N endGlusterfs() { class HostPathNestedImpl extends V1HostPathVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.HostPathNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.HostPathNested, Nested { HostPathNestedImpl(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } HostPathNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder(this); + this.builder = new V1HostPathVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1HostPathVolumeSourceBuilder builder; + V1HostPathVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withHostPath(builder.build()); @@ -2321,17 +2229,16 @@ public N endHostPath() { } class IscsiNestedImpl extends V1ISCSIVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.IscsiNested, - io.kubernetes.client.fluent.Nested { - IscsiNestedImpl(io.kubernetes.client.openapi.models.V1ISCSIVolumeSource item) { + implements V1VolumeFluent.IscsiNested, Nested { + IscsiNestedImpl(V1ISCSIVolumeSource item) { this.builder = new V1ISCSIVolumeSourceBuilder(this, item); } IscsiNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceBuilder(this); + this.builder = new V1ISCSIVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ISCSIVolumeSourceBuilder builder; + V1ISCSIVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withIscsi(builder.build()); @@ -2343,17 +2250,16 @@ public N endIscsi() { } class NfsNestedImpl extends V1NFSVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.NfsNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.NfsNested, Nested { NfsNestedImpl(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } NfsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder(this); + this.builder = new V1NFSVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1NFSVolumeSourceBuilder builder; + V1NFSVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withNfs(builder.build()); @@ -2367,19 +2273,16 @@ public N endNfs() { class PersistentVolumeClaimNestedImpl extends V1PersistentVolumeClaimVolumeSourceFluentImpl< V1VolumeFluent.PersistentVolumeClaimNested> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.PersistentVolumeClaimNested, - io.kubernetes.client.fluent.Nested { - PersistentVolumeClaimNestedImpl( - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSource item) { + implements V1VolumeFluent.PersistentVolumeClaimNested, Nested { + PersistentVolumeClaimNestedImpl(V1PersistentVolumeClaimVolumeSource item) { this.builder = new V1PersistentVolumeClaimVolumeSourceBuilder(this, item); } PersistentVolumeClaimNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceBuilder(this); + this.builder = new V1PersistentVolumeClaimVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1PersistentVolumeClaimVolumeSourceBuilder builder; + V1PersistentVolumeClaimVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withPersistentVolumeClaim(builder.build()); @@ -2393,19 +2296,16 @@ public N endPersistentVolumeClaim() { class PhotonPersistentDiskNestedImpl extends V1PhotonPersistentDiskVolumeSourceFluentImpl< V1VolumeFluent.PhotonPersistentDiskNested> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.PhotonPersistentDiskNested, - io.kubernetes.client.fluent.Nested { - PhotonPersistentDiskNestedImpl( - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSource item) { + implements V1VolumeFluent.PhotonPersistentDiskNested, Nested { + PhotonPersistentDiskNestedImpl(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } PhotonPersistentDiskNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder(this); + this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1PhotonPersistentDiskVolumeSourceBuilder builder; + V1PhotonPersistentDiskVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withPhotonPersistentDisk(builder.build()); @@ -2418,17 +2318,16 @@ public N endPhotonPersistentDisk() { class PortworxVolumeNestedImpl extends V1PortworxVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.PortworxVolumeNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.PortworxVolumeNested, Nested { PortworxVolumeNestedImpl(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } PortworxVolumeNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder(this); + this.builder = new V1PortworxVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1PortworxVolumeSourceBuilder builder; + V1PortworxVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withPortworxVolume(builder.build()); @@ -2441,17 +2340,16 @@ public N endPortworxVolume() { class ProjectedNestedImpl extends V1ProjectedVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.ProjectedNested, - io.kubernetes.client.fluent.Nested { - ProjectedNestedImpl(io.kubernetes.client.openapi.models.V1ProjectedVolumeSource item) { + implements V1VolumeFluent.ProjectedNested, Nested { + ProjectedNestedImpl(V1ProjectedVolumeSource item) { this.builder = new V1ProjectedVolumeSourceBuilder(this, item); } ProjectedNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceBuilder(this); + this.builder = new V1ProjectedVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ProjectedVolumeSourceBuilder builder; + V1ProjectedVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withProjected(builder.build()); @@ -2464,17 +2362,16 @@ public N endProjected() { class QuobyteNestedImpl extends V1QuobyteVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.QuobyteNested, - io.kubernetes.client.fluent.Nested { - QuobyteNestedImpl(io.kubernetes.client.openapi.models.V1QuobyteVolumeSource item) { + implements V1VolumeFluent.QuobyteNested, Nested { + QuobyteNestedImpl(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } QuobyteNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder(this); + this.builder = new V1QuobyteVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1QuobyteVolumeSourceBuilder builder; + V1QuobyteVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withQuobyte(builder.build()); @@ -2486,17 +2383,16 @@ public N endQuobyte() { } class RbdNestedImpl extends V1RBDVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.RbdNested, - io.kubernetes.client.fluent.Nested { - RbdNestedImpl(io.kubernetes.client.openapi.models.V1RBDVolumeSource item) { + implements V1VolumeFluent.RbdNested, Nested { + RbdNestedImpl(V1RBDVolumeSource item) { this.builder = new V1RBDVolumeSourceBuilder(this, item); } RbdNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1RBDVolumeSourceBuilder(this); + this.builder = new V1RBDVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1RBDVolumeSourceBuilder builder; + V1RBDVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withRbd(builder.build()); @@ -2509,17 +2405,16 @@ public N endRbd() { class ScaleIONestedImpl extends V1ScaleIOVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.ScaleIONested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.ScaleIONested, Nested { ScaleIONestedImpl(V1ScaleIOVolumeSource item) { this.builder = new V1ScaleIOVolumeSourceBuilder(this, item); } ScaleIONestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceBuilder(this); + this.builder = new V1ScaleIOVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1ScaleIOVolumeSourceBuilder builder; + V1ScaleIOVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withScaleIO(builder.build()); @@ -2531,17 +2426,16 @@ public N endScaleIO() { } class SecretNestedImpl extends V1SecretVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.SecretNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.SecretNested, Nested { SecretNestedImpl(V1SecretVolumeSource item) { this.builder = new V1SecretVolumeSourceBuilder(this, item); } SecretNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretVolumeSourceBuilder(this); + this.builder = new V1SecretVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretVolumeSourceBuilder builder; + V1SecretVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withSecret(builder.build()); @@ -2554,17 +2448,16 @@ public N endSecret() { class StorageosNestedImpl extends V1StorageOSVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.StorageosNested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeFluent.StorageosNested, Nested { StorageosNestedImpl(V1StorageOSVolumeSource item) { this.builder = new V1StorageOSVolumeSourceBuilder(this, item); } StorageosNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceBuilder(this); + this.builder = new V1StorageOSVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1StorageOSVolumeSourceBuilder builder; + V1StorageOSVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withStorageos(builder.build()); @@ -2577,19 +2470,16 @@ public N endStorageos() { class VsphereVolumeNestedImpl extends V1VsphereVirtualDiskVolumeSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeFluent.VsphereVolumeNested, - io.kubernetes.client.fluent.Nested { - VsphereVolumeNestedImpl( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource item) { + implements V1VolumeFluent.VsphereVolumeNested, Nested { + VsphereVolumeNestedImpl(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } VsphereVolumeNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder(this); + this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this); } - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder builder; + V1VsphereVirtualDiskVolumeSourceBuilder builder; public N and() { return (N) V1VolumeFluentImpl.this.withVsphereVolume(builder.build()); 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 df60638644..29c20bb246 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1VolumeMountBuilder extends V1VolumeMountFluentImpl - implements VisitableBuilder< - V1VolumeMount, io.kubernetes.client.openapi.models.V1VolumeMountBuilder> { + implements VisitableBuilder { public V1VolumeMountBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1VolumeMountBuilder(V1VolumeMountFluent fluent) { this(fluent, false); } - public V1VolumeMountBuilder( - io.kubernetes.client.openapi.models.V1VolumeMountFluent fluent, - java.lang.Boolean validationEnabled) { + public V1VolumeMountBuilder(V1VolumeMountFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeMount(), validationEnabled); } - public V1VolumeMountBuilder( - io.kubernetes.client.openapi.models.V1VolumeMountFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeMount instance) { + public V1VolumeMountBuilder(V1VolumeMountFluent fluent, V1VolumeMount instance) { this(fluent, instance, false); } public V1VolumeMountBuilder( - io.kubernetes.client.openapi.models.V1VolumeMountFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeMount instance, - java.lang.Boolean validationEnabled) { + V1VolumeMountFluent fluent, V1VolumeMount instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMountPath(instance.getMountPath()); @@ -61,13 +54,11 @@ public V1VolumeMountBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeMountBuilder(io.kubernetes.client.openapi.models.V1VolumeMount instance) { + public V1VolumeMountBuilder(V1VolumeMount instance) { this(instance, false); } - public V1VolumeMountBuilder( - io.kubernetes.client.openapi.models.V1VolumeMount instance, - java.lang.Boolean validationEnabled) { + public V1VolumeMountBuilder(V1VolumeMount instance, Boolean validationEnabled) { this.fluent = this; this.withMountPath(instance.getMountPath()); @@ -84,10 +75,10 @@ public V1VolumeMountBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeMountFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeMountFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeMount build() { + public V1VolumeMount build() { V1VolumeMount buildable = new V1VolumeMount(); buildable.setMountPath(fluent.getMountPath()); buildable.setMountPropagation(fluent.getMountPropagation()); 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 ce6f8af1ad..0721ae8af5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java @@ -18,39 +18,39 @@ public interface V1VolumeMountFluent> extends Fluent { public String getMountPath(); - public A withMountPath(java.lang.String mountPath); + public A withMountPath(String mountPath); public Boolean hasMountPath(); - public java.lang.String getMountPropagation(); + public String getMountPropagation(); - public A withMountPropagation(java.lang.String mountPropagation); + public A withMountPropagation(String mountPropagation); - public java.lang.Boolean hasMountPropagation(); + public Boolean hasMountPropagation(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); - public java.lang.Boolean getReadOnly(); + public Boolean getReadOnly(); - public A withReadOnly(java.lang.Boolean readOnly); + public A withReadOnly(Boolean readOnly); - public java.lang.Boolean hasReadOnly(); + public Boolean hasReadOnly(); - public java.lang.String getSubPath(); + public String getSubPath(); - public A withSubPath(java.lang.String subPath); + public A withSubPath(String subPath); - public java.lang.Boolean hasSubPath(); + public Boolean hasSubPath(); - public java.lang.String getSubPathExpr(); + public String getSubPathExpr(); - public A withSubPathExpr(java.lang.String subPathExpr); + public A withSubPathExpr(String subPathExpr); - public java.lang.Boolean hasSubPathExpr(); + public Boolean hasSubPathExpr(); public A withReadOnly(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java index 48c46bc338..f6e12028ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluentImpl.java @@ -20,7 +20,7 @@ public class V1VolumeMountFluentImpl> extends B implements V1VolumeMountFluent { public V1VolumeMountFluentImpl() {} - public V1VolumeMountFluentImpl(io.kubernetes.client.openapi.models.V1VolumeMount instance) { + public V1VolumeMountFluentImpl(V1VolumeMount instance) { this.withMountPath(instance.getMountPath()); this.withMountPropagation(instance.getMountPropagation()); @@ -35,87 +35,87 @@ public V1VolumeMountFluentImpl(io.kubernetes.client.openapi.models.V1VolumeMount } private String mountPath; - private java.lang.String mountPropagation; - private java.lang.String name; + private String mountPropagation; + private String name; private Boolean readOnly; - private java.lang.String subPath; - private java.lang.String subPathExpr; + private String subPath; + private String subPathExpr; - public java.lang.String getMountPath() { + public String getMountPath() { return this.mountPath; } - public A withMountPath(java.lang.String mountPath) { + public A withMountPath(String mountPath) { this.mountPath = mountPath; return (A) this; } - public java.lang.Boolean hasMountPath() { + public Boolean hasMountPath() { return this.mountPath != null; } - public java.lang.String getMountPropagation() { + public String getMountPropagation() { return this.mountPropagation; } - public A withMountPropagation(java.lang.String mountPropagation) { + public A withMountPropagation(String mountPropagation) { this.mountPropagation = mountPropagation; return (A) this; } - public java.lang.Boolean hasMountPropagation() { + public Boolean hasMountPropagation() { return this.mountPropagation != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } - public java.lang.Boolean getReadOnly() { + public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(java.lang.Boolean readOnly) { + public A withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return (A) this; } - public java.lang.Boolean hasReadOnly() { + public Boolean hasReadOnly() { return this.readOnly != null; } - public java.lang.String getSubPath() { + public String getSubPath() { return this.subPath; } - public A withSubPath(java.lang.String subPath) { + public A withSubPath(String subPath) { this.subPath = subPath; return (A) this; } - public java.lang.Boolean hasSubPath() { + public Boolean hasSubPath() { return this.subPath != null; } - public java.lang.String getSubPathExpr() { + public String getSubPathExpr() { return this.subPathExpr; } - public A withSubPathExpr(java.lang.String subPathExpr) { + public A withSubPathExpr(String subPathExpr) { this.subPathExpr = subPathExpr; return (A) this; } - public java.lang.Boolean hasSubPathExpr() { + public Boolean hasSubPathExpr() { return this.subPathExpr != null; } @@ -141,7 +141,7 @@ public int hashCode() { mountPath, mountPropagation, name, readOnly, subPath, subPathExpr, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (mountPath != null) { 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 8b7ad72c74..25ade706d2 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 @@ -16,8 +16,7 @@ public class V1VolumeNodeAffinityBuilder extends V1VolumeNodeAffinityFluentImpl - implements VisitableBuilder< - V1VolumeNodeAffinity, io.kubernetes.client.openapi.models.V1VolumeNodeAffinityBuilder> { + implements VisitableBuilder { public V1VolumeNodeAffinityBuilder() { this(false); } @@ -31,45 +30,40 @@ public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent) { } public V1VolumeNodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent fluent, - java.lang.Boolean validationEnabled) { + V1VolumeNodeAffinityFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeNodeAffinity(), validationEnabled); } public V1VolumeNodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeNodeAffinity instance) { + V1VolumeNodeAffinityFluent fluent, V1VolumeNodeAffinity instance) { this(fluent, instance, false); } public V1VolumeNodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeNodeAffinity instance, - java.lang.Boolean validationEnabled) { + V1VolumeNodeAffinityFluent fluent, + V1VolumeNodeAffinity instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withRequired(instance.getRequired()); this.validationEnabled = validationEnabled; } - public V1VolumeNodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeAffinity instance) { + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance) { this(instance, false); } - public V1VolumeNodeAffinityBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeAffinity instance, - java.lang.Boolean validationEnabled) { + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance, Boolean validationEnabled) { this.fluent = this; this.withRequired(instance.getRequired()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeNodeAffinityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinity build() { + public V1VolumeNodeAffinity build() { V1VolumeNodeAffinity buildable = new V1VolumeNodeAffinity(); buildable.setRequired(fluent.getRequired()); return buildable; 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 e81a76e569..66639c6700 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 @@ -27,25 +27,21 @@ public interface V1VolumeNodeAffinityFluent withNewRequired(); - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - withNewRequiredLike(io.kubernetes.client.openapi.models.V1NodeSelector item); + public V1VolumeNodeAffinityFluent.RequiredNested withNewRequiredLike(V1NodeSelector item); - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - editRequired(); + public V1VolumeNodeAffinityFluent.RequiredNested editRequired(); - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - editOrNewRequired(); + public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequired(); - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - editOrNewRequiredLike(io.kubernetes.client.openapi.models.V1NodeSelector item); + public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequiredLike(V1NodeSelector item); public interface RequiredNested extends Nested, V1NodeSelectorFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java index 1183da14b6..b7ffa9c846 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluentImpl.java @@ -21,8 +21,7 @@ public class V1VolumeNodeAffinityFluentImpl implements V1VolumeNodeAffinityFluent { public V1VolumeNodeAffinityFluentImpl() {} - public V1VolumeNodeAffinityFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeNodeAffinity instance) { + public V1VolumeNodeAffinityFluentImpl(V1VolumeNodeAffinity instance) { this.withRequired(instance.getRequired()); } @@ -38,15 +37,18 @@ public V1NodeSelector getRequired() { return this.required != null ? this.required.build() : null; } - public io.kubernetes.client.openapi.models.V1NodeSelector buildRequired() { + public V1NodeSelector buildRequired() { return this.required != null ? this.required.build() : null; } - public A withRequired(io.kubernetes.client.openapi.models.V1NodeSelector required) { + public A withRequired(V1NodeSelector required) { _visitables.get("required").remove(this.required); if (required != null) { - this.required = new io.kubernetes.client.openapi.models.V1NodeSelectorBuilder(required); + this.required = new V1NodeSelectorBuilder(required); _visitables.get("required").add(this.required); + } else { + this.required = null; + _visitables.get("required").remove(this.required); } return (A) this; } @@ -59,26 +61,20 @@ public V1VolumeNodeAffinityFluent.RequiredNested withNewRequired() { return new V1VolumeNodeAffinityFluentImpl.RequiredNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - withNewRequiredLike(io.kubernetes.client.openapi.models.V1NodeSelector item) { + public V1VolumeNodeAffinityFluent.RequiredNested withNewRequiredLike(V1NodeSelector item) { return new V1VolumeNodeAffinityFluentImpl.RequiredNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - editRequired() { + public V1VolumeNodeAffinityFluent.RequiredNested editRequired() { return withNewRequiredLike(getRequired()); } - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - editOrNewRequired() { + public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequired() { return withNewRequiredLike( - getRequired() != null - ? getRequired() - : new io.kubernetes.client.openapi.models.V1NodeSelectorBuilder().build()); + getRequired() != null ? getRequired() : new V1NodeSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested - editOrNewRequiredLike(io.kubernetes.client.openapi.models.V1NodeSelector item) { + public V1VolumeNodeAffinityFluent.RequiredNested editOrNewRequiredLike(V1NodeSelector item) { return withNewRequiredLike(getRequired() != null ? getRequired() : item); } @@ -107,17 +103,16 @@ public String toString() { class RequiredNestedImpl extends V1NodeSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeNodeAffinityFluent.RequiredNested, - Nested { + implements V1VolumeNodeAffinityFluent.RequiredNested, Nested { RequiredNestedImpl(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } RequiredNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1NodeSelectorBuilder(this); + this.builder = new V1NodeSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1NodeSelectorBuilder builder; + V1NodeSelectorBuilder builder; public N and() { return (N) V1VolumeNodeAffinityFluentImpl.this.withRequired(builder.build()); 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 3d0105280c..ec69eab473 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 @@ -16,9 +16,7 @@ public class V1VolumeNodeResourcesBuilder extends V1VolumeNodeResourcesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1VolumeNodeResources, - io.kubernetes.client.openapi.models.V1VolumeNodeResourcesBuilder> { + implements VisitableBuilder { public V1VolumeNodeResourcesBuilder() { this(false); } @@ -32,45 +30,40 @@ public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent) { } public V1VolumeNodeResourcesBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeResourcesFluent fluent, - java.lang.Boolean validationEnabled) { + V1VolumeNodeResourcesFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeNodeResources(), validationEnabled); } public V1VolumeNodeResourcesBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeResourcesFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeNodeResources instance) { + V1VolumeNodeResourcesFluent fluent, V1VolumeNodeResources instance) { this(fluent, instance, false); } public V1VolumeNodeResourcesBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeResourcesFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeNodeResources instance, - java.lang.Boolean validationEnabled) { + V1VolumeNodeResourcesFluent fluent, + V1VolumeNodeResources instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCount(instance.getCount()); this.validationEnabled = validationEnabled; } - public V1VolumeNodeResourcesBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeResources instance) { + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance) { this(instance, false); } - public V1VolumeNodeResourcesBuilder( - io.kubernetes.client.openapi.models.V1VolumeNodeResources instance, - java.lang.Boolean validationEnabled) { + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance, Boolean validationEnabled) { this.fluent = this; this.withCount(instance.getCount()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeNodeResourcesFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeNodeResourcesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeNodeResources build() { + public V1VolumeNodeResources build() { V1VolumeNodeResources buildable = new V1VolumeNodeResources(); buildable.setCount(fluent.getCount()); return buildable; 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 1756f52b2e..cdd0d48524 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java @@ -19,7 +19,7 @@ public interface V1VolumeNodeResourcesFluent { public Integer getCount(); - public A withCount(java.lang.Integer count); + public A withCount(Integer count); public Boolean hasCount(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java index ea1637b13c..6941aa4f68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluentImpl.java @@ -20,18 +20,17 @@ public class V1VolumeNodeResourcesFluentImpl implements V1VolumeNodeResourcesFluent { public V1VolumeNodeResourcesFluentImpl() {} - public V1VolumeNodeResourcesFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeNodeResources instance) { + public V1VolumeNodeResourcesFluentImpl(V1VolumeNodeResources instance) { this.withCount(instance.getCount()); } private Integer count; - public java.lang.Integer getCount() { + public Integer getCount() { return this.count; } - public A withCount(java.lang.Integer count) { + public A withCount(Integer count) { this.count = count; return (A) this; } 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 defb711c2a..7e0901c2bd 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 @@ -16,8 +16,7 @@ public class V1VolumeProjectionBuilder extends V1VolumeProjectionFluentImpl - implements VisitableBuilder< - V1VolumeProjection, io.kubernetes.client.openapi.models.V1VolumeProjectionBuilder> { + implements VisitableBuilder { public V1VolumeProjectionBuilder() { this(false); } @@ -30,22 +29,17 @@ public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent) { this(fluent, false); } - public V1VolumeProjectionBuilder( - io.kubernetes.client.openapi.models.V1VolumeProjectionFluent fluent, - java.lang.Boolean validationEnabled) { + public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent, Boolean validationEnabled) { this(fluent, new V1VolumeProjection(), validationEnabled); } public V1VolumeProjectionBuilder( - io.kubernetes.client.openapi.models.V1VolumeProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeProjection instance) { + V1VolumeProjectionFluent fluent, V1VolumeProjection instance) { this(fluent, instance, false); } public V1VolumeProjectionBuilder( - io.kubernetes.client.openapi.models.V1VolumeProjectionFluent fluent, - io.kubernetes.client.openapi.models.V1VolumeProjection instance, - java.lang.Boolean validationEnabled) { + V1VolumeProjectionFluent fluent, V1VolumeProjection instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withConfigMap(instance.getConfigMap()); @@ -58,14 +52,11 @@ public V1VolumeProjectionBuilder( this.validationEnabled = validationEnabled; } - public V1VolumeProjectionBuilder( - io.kubernetes.client.openapi.models.V1VolumeProjection instance) { + public V1VolumeProjectionBuilder(V1VolumeProjection instance) { this(instance, false); } - public V1VolumeProjectionBuilder( - io.kubernetes.client.openapi.models.V1VolumeProjection instance, - java.lang.Boolean validationEnabled) { + public V1VolumeProjectionBuilder(V1VolumeProjection instance, Boolean validationEnabled) { this.fluent = this; this.withConfigMap(instance.getConfigMap()); @@ -78,10 +69,10 @@ public V1VolumeProjectionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VolumeProjectionFluent fluent; - java.lang.Boolean validationEnabled; + V1VolumeProjectionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VolumeProjection build() { + public V1VolumeProjection build() { V1VolumeProjection buildable = new V1VolumeProjection(); buildable.setConfigMap(fluent.getConfigMap()); buildable.setDownwardAPI(fluent.getDownwardAPI()); 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 206b946ce3..d451a92f9a 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 @@ -26,112 +26,99 @@ public interface V1VolumeProjectionFluent> @Deprecated public V1ConfigMapProjection getConfigMap(); - public io.kubernetes.client.openapi.models.V1ConfigMapProjection buildConfigMap(); + public V1ConfigMapProjection buildConfigMap(); - public A withConfigMap(io.kubernetes.client.openapi.models.V1ConfigMapProjection configMap); + public A withConfigMap(V1ConfigMapProjection configMap); public Boolean hasConfigMap(); public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMap(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - withNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapProjection item); + public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMapLike( + V1ConfigMapProjection item); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - editConfigMap(); + public V1VolumeProjectionFluent.ConfigMapNested editConfigMap(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - editOrNewConfigMap(); + public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMap(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - editOrNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapProjection item); + public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMapLike( + V1ConfigMapProjection item); /** * This method has been deprecated, please use method buildDownwardAPI instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DownwardAPIProjection getDownwardAPI(); - public io.kubernetes.client.openapi.models.V1DownwardAPIProjection buildDownwardAPI(); + public V1DownwardAPIProjection buildDownwardAPI(); - public A withDownwardAPI(io.kubernetes.client.openapi.models.V1DownwardAPIProjection downwardAPI); + public A withDownwardAPI(V1DownwardAPIProjection downwardAPI); - public java.lang.Boolean hasDownwardAPI(); + public Boolean hasDownwardAPI(); public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPI(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - withNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIProjection item); + public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPILike( + V1DownwardAPIProjection item); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - editDownwardAPI(); + public V1VolumeProjectionFluent.DownwardAPINested editDownwardAPI(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - editOrNewDownwardAPI(); + public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPI(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - editOrNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIProjection item); + public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPILike( + V1DownwardAPIProjection item); /** * This method has been deprecated, please use method buildSecret instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1SecretProjection getSecret(); - public io.kubernetes.client.openapi.models.V1SecretProjection buildSecret(); + public V1SecretProjection buildSecret(); - public A withSecret(io.kubernetes.client.openapi.models.V1SecretProjection secret); + public A withSecret(V1SecretProjection secret); - public java.lang.Boolean hasSecret(); + public Boolean hasSecret(); public V1VolumeProjectionFluent.SecretNested withNewSecret(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested - withNewSecretLike(io.kubernetes.client.openapi.models.V1SecretProjection item); + public V1VolumeProjectionFluent.SecretNested withNewSecretLike(V1SecretProjection item); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested editSecret(); + public V1VolumeProjectionFluent.SecretNested editSecret(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested - editOrNewSecret(); + public V1VolumeProjectionFluent.SecretNested editOrNewSecret(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested - editOrNewSecretLike(io.kubernetes.client.openapi.models.V1SecretProjection item); + public V1VolumeProjectionFluent.SecretNested editOrNewSecretLike(V1SecretProjection item); /** * This method has been deprecated, please use method buildServiceAccountToken instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ServiceAccountTokenProjection getServiceAccountToken(); - public io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection - buildServiceAccountToken(); + public V1ServiceAccountTokenProjection buildServiceAccountToken(); - public A withServiceAccountToken( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection serviceAccountToken); + public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken); - public java.lang.Boolean hasServiceAccountToken(); + public Boolean hasServiceAccountToken(); public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountToken(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - withNewServiceAccountTokenLike( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection item); + public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountTokenLike( + V1ServiceAccountTokenProjection item); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - editServiceAccountToken(); + public V1VolumeProjectionFluent.ServiceAccountTokenNested editServiceAccountToken(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - editOrNewServiceAccountToken(); + public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountToken(); - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - editOrNewServiceAccountTokenLike( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection item); + public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountTokenLike( + V1ServiceAccountTokenProjection item); public interface ConfigMapNested extends Nested, V1ConfigMapProjectionFluent> { @@ -141,7 +128,7 @@ public interface ConfigMapNested } public interface DownwardAPINested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1DownwardAPIProjectionFluent> { public N and(); @@ -149,15 +136,14 @@ public interface DownwardAPINested } public interface SecretNested - extends io.kubernetes.client.fluent.Nested, - V1SecretProjectionFluent> { + extends Nested, V1SecretProjectionFluent> { public N and(); public N endSecret(); } public interface ServiceAccountTokenNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ServiceAccountTokenProjectionFluent< V1VolumeProjectionFluent.ServiceAccountTokenNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java index be5688a216..b81b946002 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluentImpl.java @@ -21,8 +21,7 @@ public class V1VolumeProjectionFluentImpl> extends BaseFluent implements V1VolumeProjectionFluent { public V1VolumeProjectionFluentImpl() {} - public V1VolumeProjectionFluentImpl( - io.kubernetes.client.openapi.models.V1VolumeProjection instance) { + public V1VolumeProjectionFluentImpl(V1VolumeProjection instance) { this.withConfigMap(instance.getConfigMap()); this.withDownwardAPI(instance.getDownwardAPI()); @@ -47,16 +46,18 @@ public V1ConfigMapProjection getConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public io.kubernetes.client.openapi.models.V1ConfigMapProjection buildConfigMap() { + public V1ConfigMapProjection buildConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public A withConfigMap(io.kubernetes.client.openapi.models.V1ConfigMapProjection configMap) { + public A withConfigMap(V1ConfigMapProjection configMap) { _visitables.get("configMap").remove(this.configMap); if (configMap != null) { - this.configMap = - new io.kubernetes.client.openapi.models.V1ConfigMapProjectionBuilder(configMap); + this.configMap = new V1ConfigMapProjectionBuilder(configMap); _visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + _visitables.get("configMap").remove(this.configMap); } return (A) this; } @@ -69,26 +70,22 @@ public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMap() { return new V1VolumeProjectionFluentImpl.ConfigMapNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - withNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapProjection item) { + public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMapLike( + V1ConfigMapProjection item) { return new V1VolumeProjectionFluentImpl.ConfigMapNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - editConfigMap() { + public V1VolumeProjectionFluent.ConfigMapNested editConfigMap() { return withNewConfigMapLike(getConfigMap()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - editOrNewConfigMap() { + public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMap() { return withNewConfigMapLike( - getConfigMap() != null - ? getConfigMap() - : new io.kubernetes.client.openapi.models.V1ConfigMapProjectionBuilder().build()); + getConfigMap() != null ? getConfigMap() : new V1ConfigMapProjectionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested - editOrNewConfigMapLike(io.kubernetes.client.openapi.models.V1ConfigMapProjection item) { + public V1VolumeProjectionFluent.ConfigMapNested editOrNewConfigMapLike( + V1ConfigMapProjection item) { return withNewConfigMapLike(getConfigMap() != null ? getConfigMap() : item); } @@ -97,27 +94,28 @@ public V1VolumeProjectionFluent.ConfigMapNested withNewConfigMap() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1DownwardAPIProjection getDownwardAPI() { return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public io.kubernetes.client.openapi.models.V1DownwardAPIProjection buildDownwardAPI() { + public V1DownwardAPIProjection buildDownwardAPI() { return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public A withDownwardAPI( - io.kubernetes.client.openapi.models.V1DownwardAPIProjection downwardAPI) { + public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { _visitables.get("downwardAPI").remove(this.downwardAPI); if (downwardAPI != null) { - this.downwardAPI = - new io.kubernetes.client.openapi.models.V1DownwardAPIProjectionBuilder(downwardAPI); + this.downwardAPI = new V1DownwardAPIProjectionBuilder(downwardAPI); _visitables.get("downwardAPI").add(this.downwardAPI); + } else { + this.downwardAPI = null; + _visitables.get("downwardAPI").remove(this.downwardAPI); } return (A) this; } - public java.lang.Boolean hasDownwardAPI() { + public Boolean hasDownwardAPI() { return this.downwardAPI != null; } @@ -125,27 +123,22 @@ public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPI() { return new V1VolumeProjectionFluentImpl.DownwardAPINestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - withNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIProjection item) { - return new io.kubernetes.client.openapi.models.V1VolumeProjectionFluentImpl - .DownwardAPINestedImpl(item); + public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPILike( + V1DownwardAPIProjection item) { + return new V1VolumeProjectionFluentImpl.DownwardAPINestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - editDownwardAPI() { + public V1VolumeProjectionFluent.DownwardAPINested editDownwardAPI() { return withNewDownwardAPILike(getDownwardAPI()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - editOrNewDownwardAPI() { + public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPI() { return withNewDownwardAPILike( - getDownwardAPI() != null - ? getDownwardAPI() - : new io.kubernetes.client.openapi.models.V1DownwardAPIProjectionBuilder().build()); + getDownwardAPI() != null ? getDownwardAPI() : new V1DownwardAPIProjectionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested - editOrNewDownwardAPILike(io.kubernetes.client.openapi.models.V1DownwardAPIProjection item) { + public V1VolumeProjectionFluent.DownwardAPINested editOrNewDownwardAPILike( + V1DownwardAPIProjection item) { return withNewDownwardAPILike(getDownwardAPI() != null ? getDownwardAPI() : item); } @@ -154,25 +147,28 @@ public V1VolumeProjectionFluent.DownwardAPINested withNewDownwardAPI() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1SecretProjection getSecret() { + @Deprecated + public V1SecretProjection getSecret() { return this.secret != null ? this.secret.build() : null; } - public io.kubernetes.client.openapi.models.V1SecretProjection buildSecret() { + public V1SecretProjection buildSecret() { return this.secret != null ? this.secret.build() : null; } - public A withSecret(io.kubernetes.client.openapi.models.V1SecretProjection secret) { + public A withSecret(V1SecretProjection secret) { _visitables.get("secret").remove(this.secret); if (secret != null) { this.secret = new V1SecretProjectionBuilder(secret); _visitables.get("secret").add(this.secret); + } else { + this.secret = null; + _visitables.get("secret").remove(this.secret); } return (A) this; } - public java.lang.Boolean hasSecret() { + public Boolean hasSecret() { return this.secret != null; } @@ -180,26 +176,20 @@ public V1VolumeProjectionFluent.SecretNested withNewSecret() { return new V1VolumeProjectionFluentImpl.SecretNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested - withNewSecretLike(io.kubernetes.client.openapi.models.V1SecretProjection item) { - return new io.kubernetes.client.openapi.models.V1VolumeProjectionFluentImpl.SecretNestedImpl( - item); + public V1VolumeProjectionFluent.SecretNested withNewSecretLike(V1SecretProjection item) { + return new V1VolumeProjectionFluentImpl.SecretNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested editSecret() { + public V1VolumeProjectionFluent.SecretNested editSecret() { return withNewSecretLike(getSecret()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested - editOrNewSecret() { + public V1VolumeProjectionFluent.SecretNested editOrNewSecret() { return withNewSecretLike( - getSecret() != null - ? getSecret() - : new io.kubernetes.client.openapi.models.V1SecretProjectionBuilder().build()); + getSecret() != null ? getSecret() : new V1SecretProjectionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested - editOrNewSecretLike(io.kubernetes.client.openapi.models.V1SecretProjection item) { + public V1VolumeProjectionFluent.SecretNested editOrNewSecretLike(V1SecretProjection item) { return withNewSecretLike(getSecret() != null ? getSecret() : item); } @@ -208,29 +198,28 @@ public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ServiceAccountTokenProjection getServiceAccountToken() { return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; } - public io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection - buildServiceAccountToken() { + public V1ServiceAccountTokenProjection buildServiceAccountToken() { return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; } - public A withServiceAccountToken( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection serviceAccountToken) { + public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { _visitables.get("serviceAccountToken").remove(this.serviceAccountToken); if (serviceAccountToken != null) { - this.serviceAccountToken = - new io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionBuilder( - serviceAccountToken); + this.serviceAccountToken = new V1ServiceAccountTokenProjectionBuilder(serviceAccountToken); _visitables.get("serviceAccountToken").add(this.serviceAccountToken); + } else { + this.serviceAccountToken = null; + _visitables.get("serviceAccountToken").remove(this.serviceAccountToken); } return (A) this; } - public java.lang.Boolean hasServiceAccountToken() { + public Boolean hasServiceAccountToken() { return this.serviceAccountToken != null; } @@ -238,30 +227,24 @@ public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccou return new V1VolumeProjectionFluentImpl.ServiceAccountTokenNestedImpl(); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - withNewServiceAccountTokenLike( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection item) { - return new io.kubernetes.client.openapi.models.V1VolumeProjectionFluentImpl - .ServiceAccountTokenNestedImpl(item); + public V1VolumeProjectionFluent.ServiceAccountTokenNested withNewServiceAccountTokenLike( + V1ServiceAccountTokenProjection item) { + return new V1VolumeProjectionFluentImpl.ServiceAccountTokenNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - editServiceAccountToken() { + public V1VolumeProjectionFluent.ServiceAccountTokenNested editServiceAccountToken() { return withNewServiceAccountTokenLike(getServiceAccountToken()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - editOrNewServiceAccountToken() { + public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountToken() { return withNewServiceAccountTokenLike( getServiceAccountToken() != null ? getServiceAccountToken() - : new io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionBuilder() - .build()); + : new V1ServiceAccountTokenProjectionBuilder().build()); } - public io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ServiceAccountTokenNested - editOrNewServiceAccountTokenLike( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection item) { + public V1VolumeProjectionFluent.ServiceAccountTokenNested editOrNewServiceAccountTokenLike( + V1ServiceAccountTokenProjection item) { return withNewServiceAccountTokenLike( getServiceAccountToken() != null ? getServiceAccountToken() : item); } @@ -311,17 +294,16 @@ public String toString() { class ConfigMapNestedImpl extends V1ConfigMapProjectionFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.ConfigMapNested, - Nested { + implements V1VolumeProjectionFluent.ConfigMapNested, Nested { ConfigMapNestedImpl(V1ConfigMapProjection item) { this.builder = new V1ConfigMapProjectionBuilder(this, item); } ConfigMapNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ConfigMapProjectionBuilder(this); + this.builder = new V1ConfigMapProjectionBuilder(this); } - io.kubernetes.client.openapi.models.V1ConfigMapProjectionBuilder builder; + V1ConfigMapProjectionBuilder builder; public N and() { return (N) V1VolumeProjectionFluentImpl.this.withConfigMap(builder.build()); @@ -334,17 +316,16 @@ public N endConfigMap() { class DownwardAPINestedImpl extends V1DownwardAPIProjectionFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.DownwardAPINested, - io.kubernetes.client.fluent.Nested { + implements V1VolumeProjectionFluent.DownwardAPINested, Nested { DownwardAPINestedImpl(V1DownwardAPIProjection item) { this.builder = new V1DownwardAPIProjectionBuilder(this, item); } DownwardAPINestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1DownwardAPIProjectionBuilder(this); + this.builder = new V1DownwardAPIProjectionBuilder(this); } - io.kubernetes.client.openapi.models.V1DownwardAPIProjectionBuilder builder; + V1DownwardAPIProjectionBuilder builder; public N and() { return (N) V1VolumeProjectionFluentImpl.this.withDownwardAPI(builder.build()); @@ -357,17 +338,16 @@ public N endDownwardAPI() { class SecretNestedImpl extends V1SecretProjectionFluentImpl> - implements io.kubernetes.client.openapi.models.V1VolumeProjectionFluent.SecretNested, - io.kubernetes.client.fluent.Nested { - SecretNestedImpl(io.kubernetes.client.openapi.models.V1SecretProjection item) { + implements V1VolumeProjectionFluent.SecretNested, Nested { + SecretNestedImpl(V1SecretProjection item) { this.builder = new V1SecretProjectionBuilder(this, item); } SecretNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SecretProjectionBuilder(this); + this.builder = new V1SecretProjectionBuilder(this); } - io.kubernetes.client.openapi.models.V1SecretProjectionBuilder builder; + V1SecretProjectionBuilder builder; public N and() { return (N) V1VolumeProjectionFluentImpl.this.withSecret(builder.build()); @@ -381,21 +361,16 @@ public N endSecret() { class ServiceAccountTokenNestedImpl extends V1ServiceAccountTokenProjectionFluentImpl< V1VolumeProjectionFluent.ServiceAccountTokenNested> - implements io.kubernetes.client.openapi.models.V1VolumeProjectionFluent - .ServiceAccountTokenNested< - N>, - io.kubernetes.client.fluent.Nested { - ServiceAccountTokenNestedImpl( - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection item) { + implements V1VolumeProjectionFluent.ServiceAccountTokenNested, Nested { + ServiceAccountTokenNestedImpl(V1ServiceAccountTokenProjection item) { this.builder = new V1ServiceAccountTokenProjectionBuilder(this, item); } ServiceAccountTokenNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionBuilder(this); + this.builder = new V1ServiceAccountTokenProjectionBuilder(this); } - io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjectionBuilder builder; + V1ServiceAccountTokenProjectionBuilder builder; public N and() { return (N) V1VolumeProjectionFluentImpl.this.withServiceAccountToken(builder.build()); 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 b03999fc29..67090e2670 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 @@ -17,8 +17,7 @@ public class V1VsphereVirtualDiskVolumeSourceBuilder extends V1VsphereVirtualDiskVolumeSourceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource, - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceBuilder> { + V1VsphereVirtualDiskVolumeSource, V1VsphereVirtualDiskVolumeSourceBuilder> { public V1VsphereVirtualDiskVolumeSourceBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceF } public V1VsphereVirtualDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V1VsphereVirtualDiskVolumeSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V1VsphereVirtualDiskVolumeSource(), validationEnabled); } public V1VsphereVirtualDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource instance) { + V1VsphereVirtualDiskVolumeSourceFluent fluent, V1VsphereVirtualDiskVolumeSource instance) { this(fluent, instance, false); } public V1VsphereVirtualDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceFluent fluent, - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1VsphereVirtualDiskVolumeSourceFluent fluent, + V1VsphereVirtualDiskVolumeSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withFsType(instance.getFsType()); @@ -59,14 +56,12 @@ public V1VsphereVirtualDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - public V1VsphereVirtualDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource instance) { + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSource instance) { this(instance, false); } public V1VsphereVirtualDiskVolumeSourceBuilder( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource instance, - java.lang.Boolean validationEnabled) { + V1VsphereVirtualDiskVolumeSource instance, Boolean validationEnabled) { this.fluent = this; this.withFsType(instance.getFsType()); @@ -79,10 +74,10 @@ public V1VsphereVirtualDiskVolumeSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSourceFluent fluent; - java.lang.Boolean validationEnabled; + V1VsphereVirtualDiskVolumeSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource build() { + public V1VsphereVirtualDiskVolumeSource build() { V1VsphereVirtualDiskVolumeSource buildable = new V1VsphereVirtualDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); buildable.setStoragePolicyID(fluent.getStoragePolicyID()); 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 23f652709e..35d173ce60 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 @@ -20,25 +20,25 @@ public interface V1VsphereVirtualDiskVolumeSourceFluent< extends Fluent { public String getFsType(); - public A withFsType(java.lang.String fsType); + public A withFsType(String fsType); public Boolean hasFsType(); - public java.lang.String getStoragePolicyID(); + public String getStoragePolicyID(); - public A withStoragePolicyID(java.lang.String storagePolicyID); + public A withStoragePolicyID(String storagePolicyID); - public java.lang.Boolean hasStoragePolicyID(); + public Boolean hasStoragePolicyID(); - public java.lang.String getStoragePolicyName(); + public String getStoragePolicyName(); - public A withStoragePolicyName(java.lang.String storagePolicyName); + public A withStoragePolicyName(String storagePolicyName); - public java.lang.Boolean hasStoragePolicyName(); + public Boolean hasStoragePolicyName(); - public java.lang.String getVolumePath(); + public String getVolumePath(); - public A withVolumePath(java.lang.String volumePath); + public A withVolumePath(String volumePath); - public java.lang.Boolean hasVolumePath(); + public Boolean hasVolumePath(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java index 2d61a720bd..cf1d320754 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V1VsphereVirtualDiskVolumeSourceFluentImpl< extends BaseFluent implements V1VsphereVirtualDiskVolumeSourceFluent { public V1VsphereVirtualDiskVolumeSourceFluentImpl() {} - public V1VsphereVirtualDiskVolumeSourceFluentImpl( - io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource instance) { + public V1VsphereVirtualDiskVolumeSourceFluentImpl(V1VsphereVirtualDiskVolumeSource instance) { this.withFsType(instance.getFsType()); this.withStoragePolicyID(instance.getStoragePolicyID()); @@ -33,15 +32,15 @@ public V1VsphereVirtualDiskVolumeSourceFluentImpl( } private String fsType; - private java.lang.String storagePolicyID; - private java.lang.String storagePolicyName; - private java.lang.String volumePath; + private String storagePolicyID; + private String storagePolicyName; + private String volumePath; - public java.lang.String getFsType() { + public String getFsType() { return this.fsType; } - public A withFsType(java.lang.String fsType) { + public A withFsType(String fsType) { this.fsType = fsType; return (A) this; } @@ -50,42 +49,42 @@ public Boolean hasFsType() { return this.fsType != null; } - public java.lang.String getStoragePolicyID() { + public String getStoragePolicyID() { return this.storagePolicyID; } - public A withStoragePolicyID(java.lang.String storagePolicyID) { + public A withStoragePolicyID(String storagePolicyID) { this.storagePolicyID = storagePolicyID; return (A) this; } - public java.lang.Boolean hasStoragePolicyID() { + public Boolean hasStoragePolicyID() { return this.storagePolicyID != null; } - public java.lang.String getStoragePolicyName() { + public String getStoragePolicyName() { return this.storagePolicyName; } - public A withStoragePolicyName(java.lang.String storagePolicyName) { + public A withStoragePolicyName(String storagePolicyName) { this.storagePolicyName = storagePolicyName; return (A) this; } - public java.lang.Boolean hasStoragePolicyName() { + public Boolean hasStoragePolicyName() { return this.storagePolicyName != null; } - public java.lang.String getVolumePath() { + public String getVolumePath() { return this.volumePath; } - public A withVolumePath(java.lang.String volumePath) { + public A withVolumePath(String volumePath) { this.volumePath = volumePath; return (A) this; } - public java.lang.Boolean hasVolumePath() { + public Boolean hasVolumePath() { return this.volumePath != null; } @@ -111,7 +110,7 @@ public int hashCode() { fsType, storagePolicyID, storagePolicyName, volumePath, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (fsType != null) { 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 e5826faea9..8add7d3639 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1WatchEventBuilder extends V1WatchEventFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1WatchEvent, V1WatchEventBuilder> { + implements VisitableBuilder { public V1WatchEventBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1WatchEventBuilder(V1WatchEventFluent fluent) { this(fluent, false); } - public V1WatchEventBuilder( - io.kubernetes.client.openapi.models.V1WatchEventFluent fluent, - java.lang.Boolean validationEnabled) { + public V1WatchEventBuilder(V1WatchEventFluent fluent, Boolean validationEnabled) { this(fluent, new V1WatchEvent(), validationEnabled); } - public V1WatchEventBuilder( - io.kubernetes.client.openapi.models.V1WatchEventFluent fluent, - io.kubernetes.client.openapi.models.V1WatchEvent instance) { + public V1WatchEventBuilder(V1WatchEventFluent fluent, V1WatchEvent instance) { this(fluent, instance, false); } public V1WatchEventBuilder( - io.kubernetes.client.openapi.models.V1WatchEventFluent fluent, - io.kubernetes.client.openapi.models.V1WatchEvent instance, - java.lang.Boolean validationEnabled) { + V1WatchEventFluent fluent, V1WatchEvent instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withObject(instance.getObject()); @@ -53,13 +46,11 @@ public V1WatchEventBuilder( this.validationEnabled = validationEnabled; } - public V1WatchEventBuilder(io.kubernetes.client.openapi.models.V1WatchEvent instance) { + public V1WatchEventBuilder(V1WatchEvent instance) { this(instance, false); } - public V1WatchEventBuilder( - io.kubernetes.client.openapi.models.V1WatchEvent instance, - java.lang.Boolean validationEnabled) { + public V1WatchEventBuilder(V1WatchEvent instance, Boolean validationEnabled) { this.fluent = this; this.withObject(instance.getObject()); @@ -68,10 +59,10 @@ public V1WatchEventBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1WatchEventFluent fluent; - java.lang.Boolean validationEnabled; + V1WatchEventFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1WatchEvent build() { + public V1WatchEvent build() { V1WatchEvent buildable = new V1WatchEvent(); buildable.setObject(fluent.getObject()); buildable.setType(fluent.getType()); 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 be2b12cd0b..c1b69beca5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java @@ -18,13 +18,13 @@ public interface V1WatchEventFluent> extends Fluent { public Object getObject(); - public A withObject(java.lang.Object _object); + public A withObject(Object _object); public Boolean hasObject(); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java index 8803b3c54b..c3eaa13779 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluentImpl.java @@ -20,7 +20,7 @@ public class V1WatchEventFluentImpl> extends Bas implements V1WatchEventFluent { public V1WatchEventFluentImpl() {} - public V1WatchEventFluentImpl(io.kubernetes.client.openapi.models.V1WatchEvent instance) { + public V1WatchEventFluentImpl(V1WatchEvent instance) { this.withObject(instance.getObject()); this.withType(instance.getType()); @@ -29,11 +29,11 @@ public V1WatchEventFluentImpl(io.kubernetes.client.openapi.models.V1WatchEvent i private Object _object; private String type; - public java.lang.Object getObject() { + public Object getObject() { return this._object; } - public A withObject(java.lang.Object _object) { + public A withObject(Object _object) { this._object = _object; return (A) this; } @@ -42,20 +42,20 @@ public Boolean hasObject() { return this._object != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1WatchEventFluentImpl that = (V1WatchEventFluentImpl) o; @@ -68,7 +68,7 @@ public int hashCode() { return java.util.Objects.hash(_object, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (_object != null) { 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 4398c91ea9..2721393515 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 @@ -16,8 +16,7 @@ public class V1WebhookConversionBuilder extends V1WebhookConversionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1WebhookConversion, V1WebhookConversionBuilder> { + implements VisitableBuilder { public V1WebhookConversionBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent) { } public V1WebhookConversionBuilder( - io.kubernetes.client.openapi.models.V1WebhookConversionFluent fluent, - java.lang.Boolean validationEnabled) { + V1WebhookConversionFluent fluent, Boolean validationEnabled) { this(fluent, new V1WebhookConversion(), validationEnabled); } public V1WebhookConversionBuilder( - io.kubernetes.client.openapi.models.V1WebhookConversionFluent fluent, - io.kubernetes.client.openapi.models.V1WebhookConversion instance) { + V1WebhookConversionFluent fluent, V1WebhookConversion instance) { this(fluent, instance, false); } public V1WebhookConversionBuilder( - io.kubernetes.client.openapi.models.V1WebhookConversionFluent fluent, - io.kubernetes.client.openapi.models.V1WebhookConversion instance, - java.lang.Boolean validationEnabled) { + V1WebhookConversionFluent fluent, + V1WebhookConversion instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withClientConfig(instance.getClientConfig()); @@ -54,14 +51,11 @@ public V1WebhookConversionBuilder( this.validationEnabled = validationEnabled; } - public V1WebhookConversionBuilder( - io.kubernetes.client.openapi.models.V1WebhookConversion instance) { + public V1WebhookConversionBuilder(V1WebhookConversion instance) { this(instance, false); } - public V1WebhookConversionBuilder( - io.kubernetes.client.openapi.models.V1WebhookConversion instance, - java.lang.Boolean validationEnabled) { + public V1WebhookConversionBuilder(V1WebhookConversion instance, Boolean validationEnabled) { this.fluent = this; this.withClientConfig(instance.getClientConfig()); @@ -70,10 +64,10 @@ public V1WebhookConversionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1WebhookConversionFluent fluent; - java.lang.Boolean validationEnabled; + V1WebhookConversionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1WebhookConversion build() { + public V1WebhookConversion build() { V1WebhookConversion buildable = new V1WebhookConversion(); buildable.setClientConfig(fluent.getClientConfig()); buildable.setConversionReviewVersions(fluent.getConversionReviewVersions()); 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 06b19ed6f9..1cf436d1d2 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 @@ -30,59 +30,53 @@ public interface V1WebhookConversionFluent withNewClientConfig(); - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - withNewClientConfigLike( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig item); + public V1WebhookConversionFluent.ClientConfigNested withNewClientConfigLike( + ApiextensionsV1WebhookClientConfig item); - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - editClientConfig(); + public V1WebhookConversionFluent.ClientConfigNested editClientConfig(); - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - editOrNewClientConfig(); + public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfig(); - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - editOrNewClientConfigLike( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig item); + public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfigLike( + ApiextensionsV1WebhookClientConfig item); public A addToConversionReviewVersions(Integer index, String item); - public A setToConversionReviewVersions(java.lang.Integer index, java.lang.String item); + public A setToConversionReviewVersions(Integer index, String item); public A addToConversionReviewVersions(java.lang.String... items); - public A addAllToConversionReviewVersions(Collection items); + public A addAllToConversionReviewVersions(Collection items); public A removeFromConversionReviewVersions(java.lang.String... items); - public A removeAllFromConversionReviewVersions(java.util.Collection items); + public A removeAllFromConversionReviewVersions(Collection items); - public List getConversionReviewVersions(); + public List getConversionReviewVersions(); - public java.lang.String getConversionReviewVersion(java.lang.Integer index); + public String getConversionReviewVersion(Integer index); - public java.lang.String getFirstConversionReviewVersion(); + public String getFirstConversionReviewVersion(); - public java.lang.String getLastConversionReviewVersion(); + public String getLastConversionReviewVersion(); - public java.lang.String getMatchingConversionReviewVersion(Predicate predicate); + public String getMatchingConversionReviewVersion(Predicate predicate); - public java.lang.Boolean hasMatchingConversionReviewVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingConversionReviewVersion(Predicate predicate); - public A withConversionReviewVersions(java.util.List conversionReviewVersions); + public A withConversionReviewVersions(List conversionReviewVersions); public A withConversionReviewVersions(java.lang.String... conversionReviewVersions); - public java.lang.Boolean hasConversionReviewVersions(); + public Boolean hasConversionReviewVersions(); public interface ClientConfigNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java index d6af79221a..dc97a24dc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluentImpl.java @@ -25,8 +25,7 @@ public class V1WebhookConversionFluentImpl implements V1WebhookConversionFluent { public V1WebhookConversionFluentImpl() {} - public V1WebhookConversionFluentImpl( - io.kubernetes.client.openapi.models.V1WebhookConversion instance) { + public V1WebhookConversionFluentImpl(V1WebhookConversion instance) { this.withClientConfig(instance.getClientConfig()); this.withConversionReviewVersions(instance.getConversionReviewVersions()); @@ -45,19 +44,18 @@ public ApiextensionsV1WebhookClientConfig getClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig - buildClientConfig() { + public ApiextensionsV1WebhookClientConfig buildClientConfig() { return this.clientConfig != null ? this.clientConfig.build() : null; } - public A withClientConfig( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig clientConfig) { + public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { _visitables.get("clientConfig").remove(this.clientConfig); if (clientConfig != null) { - this.clientConfig = - new io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigBuilder( - clientConfig); + this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); _visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + _visitables.get("clientConfig").remove(this.clientConfig); } return (A) this; } @@ -70,43 +68,38 @@ public V1WebhookConversionFluent.ClientConfigNested withNewClientConfig() { return new V1WebhookConversionFluentImpl.ClientConfigNestedImpl(); } - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - withNewClientConfigLike( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig item) { + public V1WebhookConversionFluent.ClientConfigNested withNewClientConfigLike( + ApiextensionsV1WebhookClientConfig item) { return new V1WebhookConversionFluentImpl.ClientConfigNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - editClientConfig() { + public V1WebhookConversionFluent.ClientConfigNested editClientConfig() { return withNewClientConfigLike(getClientConfig()); } - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - editOrNewClientConfig() { + public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfig() { return withNewClientConfigLike( getClientConfig() != null ? getClientConfig() - : new io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigBuilder() - .build()); + : new ApiextensionsV1WebhookClientConfigBuilder().build()); } - public io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested - editOrNewClientConfigLike( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig item) { + public V1WebhookConversionFluent.ClientConfigNested editOrNewClientConfigLike( + ApiextensionsV1WebhookClientConfig item) { return withNewClientConfigLike(getClientConfig() != null ? getClientConfig() : item); } - public A addToConversionReviewVersions(Integer index, java.lang.String item) { + public A addToConversionReviewVersions(Integer index, String item) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new ArrayList(); + this.conversionReviewVersions = new ArrayList(); } this.conversionReviewVersions.add(index, item); return (A) this; } - public A setToConversionReviewVersions(java.lang.Integer index, java.lang.String item) { + public A setToConversionReviewVersions(Integer index, String item) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new java.util.ArrayList(); + this.conversionReviewVersions = new ArrayList(); } this.conversionReviewVersions.set(index, item); return (A) this; @@ -114,26 +107,26 @@ public A setToConversionReviewVersions(java.lang.Integer index, java.lang.String public A addToConversionReviewVersions(java.lang.String... items) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new java.util.ArrayList(); + this.conversionReviewVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.conversionReviewVersions.add(item); } return (A) this; } - public A addAllToConversionReviewVersions(Collection items) { + public A addAllToConversionReviewVersions(Collection items) { if (this.conversionReviewVersions == null) { - this.conversionReviewVersions = new java.util.ArrayList(); + this.conversionReviewVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.conversionReviewVersions.add(item); } return (A) this; } public A removeFromConversionReviewVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.conversionReviewVersions != null) { this.conversionReviewVersions.remove(item); } @@ -141,8 +134,8 @@ public A removeFromConversionReviewVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromConversionReviewVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromConversionReviewVersions(Collection items) { + for (String item : items) { if (this.conversionReviewVersions != null) { this.conversionReviewVersions.remove(item); } @@ -150,25 +143,24 @@ public A removeAllFromConversionReviewVersions(java.util.Collection getConversionReviewVersions() { + public List getConversionReviewVersions() { return this.conversionReviewVersions; } - public java.lang.String getConversionReviewVersion(java.lang.Integer index) { + public String getConversionReviewVersion(Integer index) { return this.conversionReviewVersions.get(index); } - public java.lang.String getFirstConversionReviewVersion() { + public String getFirstConversionReviewVersion() { return this.conversionReviewVersions.get(0); } - public java.lang.String getLastConversionReviewVersion() { + public String getLastConversionReviewVersion() { return this.conversionReviewVersions.get(conversionReviewVersions.size() - 1); } - public java.lang.String getMatchingConversionReviewVersion( - Predicate predicate) { - for (java.lang.String item : conversionReviewVersions) { + public String getMatchingConversionReviewVersion(Predicate predicate) { + for (String item : conversionReviewVersions) { if (predicate.test(item)) { return item; } @@ -176,9 +168,8 @@ public java.lang.String getMatchingConversionReviewVersion( return null; } - public java.lang.Boolean hasMatchingConversionReviewVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : conversionReviewVersions) { + public Boolean hasMatchingConversionReviewVersion(Predicate predicate) { + for (String item : conversionReviewVersions) { if (predicate.test(item)) { return true; } @@ -186,10 +177,10 @@ public java.lang.Boolean hasMatchingConversionReviewVersion( return false; } - public A withConversionReviewVersions(java.util.List conversionReviewVersions) { + public A withConversionReviewVersions(List conversionReviewVersions) { if (conversionReviewVersions != null) { - this.conversionReviewVersions = new java.util.ArrayList(); - for (java.lang.String item : conversionReviewVersions) { + this.conversionReviewVersions = new ArrayList(); + for (String item : conversionReviewVersions) { this.addToConversionReviewVersions(item); } } else { @@ -203,14 +194,14 @@ public A withConversionReviewVersions(java.lang.String... conversionReviewVersio this.conversionReviewVersions.clear(); } if (conversionReviewVersions != null) { - for (java.lang.String item : conversionReviewVersions) { + for (String item : conversionReviewVersions) { this.addToConversionReviewVersions(item); } } return (A) this; } - public java.lang.Boolean hasConversionReviewVersions() { + public Boolean hasConversionReviewVersions() { return conversionReviewVersions != null && !conversionReviewVersions.isEmpty(); } @@ -230,7 +221,7 @@ public int hashCode() { return java.util.Objects.hash(clientConfig, conversionReviewVersions, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (clientConfig != null) { @@ -248,20 +239,16 @@ public java.lang.String toString() { class ClientConfigNestedImpl extends ApiextensionsV1WebhookClientConfigFluentImpl< V1WebhookConversionFluent.ClientConfigNested> - implements io.kubernetes.client.openapi.models.V1WebhookConversionFluent.ClientConfigNested< - N>, - Nested { - ClientConfigNestedImpl( - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfig item) { + implements V1WebhookConversionFluent.ClientConfigNested, Nested { + ClientConfigNestedImpl(ApiextensionsV1WebhookClientConfig item) { this.builder = new ApiextensionsV1WebhookClientConfigBuilder(this, item); } ClientConfigNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigBuilder(this); + this.builder = new ApiextensionsV1WebhookClientConfigBuilder(this); } - io.kubernetes.client.openapi.models.ApiextensionsV1WebhookClientConfigBuilder builder; + ApiextensionsV1WebhookClientConfigBuilder builder; public N and() { return (N) V1WebhookConversionFluentImpl.this.withClientConfig(builder.build()); 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 a2a6ecfc8b..a633550638 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 @@ -16,9 +16,7 @@ public class V1WeightedPodAffinityTermBuilder extends V1WeightedPodAffinityTermFluentImpl - implements VisitableBuilder< - V1WeightedPodAffinityTerm, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermBuilder> { + implements VisitableBuilder { public V1WeightedPodAffinityTermBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1WeightedPodAffinityTermBuilder(Boolean validationEnabled) { this(new V1WeightedPodAffinityTerm(), validationEnabled); } - public V1WeightedPodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent fluent) { + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent) { this(fluent, false); } public V1WeightedPodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent fluent, - java.lang.Boolean validationEnabled) { + V1WeightedPodAffinityTermFluent fluent, Boolean validationEnabled) { this(fluent, new V1WeightedPodAffinityTerm(), validationEnabled); } public V1WeightedPodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent fluent, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm instance) { + V1WeightedPodAffinityTermFluent fluent, V1WeightedPodAffinityTerm instance) { this(fluent, instance, false); } public V1WeightedPodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent fluent, - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm instance, - java.lang.Boolean validationEnabled) { + V1WeightedPodAffinityTermFluent fluent, + V1WeightedPodAffinityTerm instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPodAffinityTerm(instance.getPodAffinityTerm()); @@ -56,14 +51,12 @@ public V1WeightedPodAffinityTermBuilder( this.validationEnabled = validationEnabled; } - public V1WeightedPodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm instance) { + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTerm instance) { this(instance, false); } public V1WeightedPodAffinityTermBuilder( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm instance, - java.lang.Boolean validationEnabled) { + V1WeightedPodAffinityTerm instance, Boolean validationEnabled) { this.fluent = this; this.withPodAffinityTerm(instance.getPodAffinityTerm()); @@ -72,10 +65,10 @@ public V1WeightedPodAffinityTermBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent fluent; - java.lang.Boolean validationEnabled; + V1WeightedPodAffinityTermFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm build() { + public V1WeightedPodAffinityTerm build() { V1WeightedPodAffinityTerm buildable = new V1WeightedPodAffinityTerm(); buildable.setPodAffinityTerm(fluent.getPodAffinityTerm()); buildable.setWeight(fluent.getWeight()); 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 651865055a..467ca45a09 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 @@ -27,36 +27,29 @@ public interface V1WeightedPodAffinityTermFluent withNewPodAffinityTerm(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - withNewPodAffinityTermLike(io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTermLike( + V1PodAffinityTerm item); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - editPodAffinityTerm(); + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editPodAffinityTerm(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - editOrNewPodAffinityTerm(); + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTerm(); - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - editOrNewPodAffinityTermLike(io.kubernetes.client.openapi.models.V1PodAffinityTerm item); + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTermLike( + V1PodAffinityTerm item); public Integer getWeight(); - public A withWeight(java.lang.Integer weight); + public A withWeight(Integer weight); - public java.lang.Boolean hasWeight(); + public Boolean hasWeight(); public interface PodAffinityTermNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java index 7e3a0e9ab7..470fc4b68b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluentImpl.java @@ -21,8 +21,7 @@ public class V1WeightedPodAffinityTermFluentImpl implements V1WeightedPodAffinityTermFluent { public V1WeightedPodAffinityTermFluentImpl() {} - public V1WeightedPodAffinityTermFluentImpl( - io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm instance) { + public V1WeightedPodAffinityTermFluentImpl(V1WeightedPodAffinityTerm instance) { this.withPodAffinityTerm(instance.getPodAffinityTerm()); this.withWeight(instance.getWeight()); @@ -41,17 +40,18 @@ public V1PodAffinityTerm getPodAffinityTerm() { return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; } - public io.kubernetes.client.openapi.models.V1PodAffinityTerm buildPodAffinityTerm() { + public V1PodAffinityTerm buildPodAffinityTerm() { return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; } - public A withPodAffinityTerm( - io.kubernetes.client.openapi.models.V1PodAffinityTerm podAffinityTerm) { + public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { _visitables.get("podAffinityTerm").remove(this.podAffinityTerm); if (podAffinityTerm != null) { - this.podAffinityTerm = - new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(podAffinityTerm); + this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); _visitables.get("podAffinityTerm").add(this.podAffinityTerm); + } else { + this.podAffinityTerm = null; + _visitables.get("podAffinityTerm").remove(this.podAffinityTerm); } return (A) this; } @@ -64,43 +64,37 @@ public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffini return new V1WeightedPodAffinityTermFluentImpl.PodAffinityTermNestedImpl(); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - withNewPodAffinityTermLike(io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested withNewPodAffinityTermLike( + V1PodAffinityTerm item) { return new V1WeightedPodAffinityTermFluentImpl.PodAffinityTermNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - editPodAffinityTerm() { + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editPodAffinityTerm() { return withNewPodAffinityTermLike(getPodAffinityTerm()); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - editOrNewPodAffinityTerm() { + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTerm() { return withNewPodAffinityTermLike( getPodAffinityTerm() != null ? getPodAffinityTerm() - : new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder().build()); + : new V1PodAffinityTermBuilder().build()); } - public io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent.PodAffinityTermNested< - A> - editOrNewPodAffinityTermLike(io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + public V1WeightedPodAffinityTermFluent.PodAffinityTermNested editOrNewPodAffinityTermLike( + V1PodAffinityTerm item) { return withNewPodAffinityTermLike(getPodAffinityTerm() != null ? getPodAffinityTerm() : item); } - public java.lang.Integer getWeight() { + public Integer getWeight() { return this.weight; } - public A withWeight(java.lang.Integer weight) { + public A withWeight(Integer weight) { this.weight = weight; return (A) this; } - public java.lang.Boolean hasWeight() { + public Boolean hasWeight() { return this.weight != null; } @@ -136,19 +130,16 @@ public String toString() { class PodAffinityTermNestedImpl extends V1PodAffinityTermFluentImpl> - implements io.kubernetes.client.openapi.models.V1WeightedPodAffinityTermFluent - .PodAffinityTermNested< - N>, - Nested { - PodAffinityTermNestedImpl(io.kubernetes.client.openapi.models.V1PodAffinityTerm item) { + implements V1WeightedPodAffinityTermFluent.PodAffinityTermNested, Nested { + PodAffinityTermNestedImpl(V1PodAffinityTerm item) { this.builder = new V1PodAffinityTermBuilder(this, item); } PodAffinityTermNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder(this); + this.builder = new V1PodAffinityTermBuilder(this); } - io.kubernetes.client.openapi.models.V1PodAffinityTermBuilder builder; + V1PodAffinityTermBuilder builder; public N and() { return (N) V1WeightedPodAffinityTermFluentImpl.this.withPodAffinityTerm(builder.build()); 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 0f5ab1f39a..74302fd165 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 @@ -17,8 +17,7 @@ public class V1WindowsSecurityContextOptionsBuilder extends V1WindowsSecurityContextOptionsFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions, - V1WindowsSecurityContextOptionsBuilder> { + V1WindowsSecurityContextOptions, V1WindowsSecurityContextOptionsBuilder> { public V1WindowsSecurityContextOptionsBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1WindowsSecurityContextOptionsBuilder(Boolean validationEnabled) { this(new V1WindowsSecurityContextOptions(), validationEnabled); } - public V1WindowsSecurityContextOptionsBuilder( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsFluent fluent) { + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent) { this(fluent, false); } public V1WindowsSecurityContextOptionsBuilder( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsFluent fluent, - java.lang.Boolean validationEnabled) { + V1WindowsSecurityContextOptionsFluent fluent, Boolean validationEnabled) { this(fluent, new V1WindowsSecurityContextOptions(), validationEnabled); } public V1WindowsSecurityContextOptionsBuilder( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions instance) { + V1WindowsSecurityContextOptionsFluent fluent, V1WindowsSecurityContextOptions instance) { this(fluent, instance, false); } public V1WindowsSecurityContextOptionsBuilder( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions instance, - java.lang.Boolean validationEnabled) { + V1WindowsSecurityContextOptionsFluent fluent, + V1WindowsSecurityContextOptions instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); @@ -60,14 +56,12 @@ public V1WindowsSecurityContextOptionsBuilder( this.validationEnabled = validationEnabled; } - public V1WindowsSecurityContextOptionsBuilder( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions instance) { + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptions instance) { this(instance, false); } public V1WindowsSecurityContextOptionsBuilder( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions instance, - java.lang.Boolean validationEnabled) { + V1WindowsSecurityContextOptions instance, Boolean validationEnabled) { this.fluent = this; this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); @@ -80,10 +74,10 @@ public V1WindowsSecurityContextOptionsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptionsFluent fluent; - java.lang.Boolean validationEnabled; + V1WindowsSecurityContextOptionsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions build() { + public V1WindowsSecurityContextOptions build() { V1WindowsSecurityContextOptions buildable = new V1WindowsSecurityContextOptions(); buildable.setGmsaCredentialSpec(fluent.getGmsaCredentialSpec()); buildable.setGmsaCredentialSpecName(fluent.getGmsaCredentialSpecName()); 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 8e687eb323..43bcae5ce5 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 @@ -20,27 +20,27 @@ public interface V1WindowsSecurityContextOptionsFluent< extends Fluent { public String getGmsaCredentialSpec(); - public A withGmsaCredentialSpec(java.lang.String gmsaCredentialSpec); + public A withGmsaCredentialSpec(String gmsaCredentialSpec); public Boolean hasGmsaCredentialSpec(); - public java.lang.String getGmsaCredentialSpecName(); + public String getGmsaCredentialSpecName(); - public A withGmsaCredentialSpecName(java.lang.String gmsaCredentialSpecName); + public A withGmsaCredentialSpecName(String gmsaCredentialSpecName); - public java.lang.Boolean hasGmsaCredentialSpecName(); + public Boolean hasGmsaCredentialSpecName(); - public java.lang.Boolean getHostProcess(); + public Boolean getHostProcess(); - public A withHostProcess(java.lang.Boolean hostProcess); + public A withHostProcess(Boolean hostProcess); - public java.lang.Boolean hasHostProcess(); + public Boolean hasHostProcess(); - public java.lang.String getRunAsUserName(); + public String getRunAsUserName(); - public A withRunAsUserName(java.lang.String runAsUserName); + public A withRunAsUserName(String runAsUserName); - public java.lang.Boolean hasRunAsUserName(); + public Boolean hasRunAsUserName(); public A withHostProcess(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java index 076a871f8b..5aa3d70e57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluentImpl.java @@ -21,8 +21,7 @@ public class V1WindowsSecurityContextOptionsFluentImpl< extends BaseFluent implements V1WindowsSecurityContextOptionsFluent { public V1WindowsSecurityContextOptionsFluentImpl() {} - public V1WindowsSecurityContextOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions instance) { + public V1WindowsSecurityContextOptionsFluentImpl(V1WindowsSecurityContextOptions instance) { this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); this.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); @@ -33,59 +32,59 @@ public V1WindowsSecurityContextOptionsFluentImpl( } private String gmsaCredentialSpec; - private java.lang.String gmsaCredentialSpecName; + private String gmsaCredentialSpecName; private Boolean hostProcess; - private java.lang.String runAsUserName; + private String runAsUserName; - public java.lang.String getGmsaCredentialSpec() { + public String getGmsaCredentialSpec() { return this.gmsaCredentialSpec; } - public A withGmsaCredentialSpec(java.lang.String gmsaCredentialSpec) { + public A withGmsaCredentialSpec(String gmsaCredentialSpec) { this.gmsaCredentialSpec = gmsaCredentialSpec; return (A) this; } - public java.lang.Boolean hasGmsaCredentialSpec() { + public Boolean hasGmsaCredentialSpec() { return this.gmsaCredentialSpec != null; } - public java.lang.String getGmsaCredentialSpecName() { + public String getGmsaCredentialSpecName() { return this.gmsaCredentialSpecName; } - public A withGmsaCredentialSpecName(java.lang.String gmsaCredentialSpecName) { + public A withGmsaCredentialSpecName(String gmsaCredentialSpecName) { this.gmsaCredentialSpecName = gmsaCredentialSpecName; return (A) this; } - public java.lang.Boolean hasGmsaCredentialSpecName() { + public Boolean hasGmsaCredentialSpecName() { return this.gmsaCredentialSpecName != null; } - public java.lang.Boolean getHostProcess() { + public Boolean getHostProcess() { return this.hostProcess; } - public A withHostProcess(java.lang.Boolean hostProcess) { + public A withHostProcess(Boolean hostProcess) { this.hostProcess = hostProcess; return (A) this; } - public java.lang.Boolean hasHostProcess() { + public Boolean hasHostProcess() { return this.hostProcess != null; } - public java.lang.String getRunAsUserName() { + public String getRunAsUserName() { return this.runAsUserName; } - public A withRunAsUserName(java.lang.String runAsUserName) { + public A withRunAsUserName(String runAsUserName) { this.runAsUserName = runAsUserName; return (A) this; } - public java.lang.Boolean hasRunAsUserName() { + public Boolean hasRunAsUserName() { return this.runAsUserName != null; } @@ -112,7 +111,7 @@ public int hashCode() { gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (gmsaCredentialSpec != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java new file mode 100644 index 0000000000..52c5e896d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRBuilder.java @@ -0,0 +1,86 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1alpha1ClusterCIDRBuilder + extends V1alpha1ClusterCIDRFluentImpl + implements VisitableBuilder { + public V1alpha1ClusterCIDRBuilder() { + this(false); + } + + public V1alpha1ClusterCIDRBuilder(Boolean validationEnabled) { + this(new V1alpha1ClusterCIDR(), validationEnabled); + } + + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDRFluent fluent) { + this(fluent, false); + } + + public V1alpha1ClusterCIDRBuilder( + V1alpha1ClusterCIDRFluent fluent, Boolean validationEnabled) { + this(fluent, new V1alpha1ClusterCIDR(), validationEnabled); + } + + public V1alpha1ClusterCIDRBuilder( + V1alpha1ClusterCIDRFluent fluent, V1alpha1ClusterCIDR instance) { + this(fluent, instance, false); + } + + public V1alpha1ClusterCIDRBuilder( + V1alpha1ClusterCIDRFluent fluent, + V1alpha1ClusterCIDR instance, + Boolean validationEnabled) { + this.fluent = fluent; + fluent.withApiVersion(instance.getApiVersion()); + + fluent.withKind(instance.getKind()); + + fluent.withMetadata(instance.getMetadata()); + + fluent.withSpec(instance.getSpec()); + + this.validationEnabled = validationEnabled; + } + + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance) { + this(instance, false); + } + + public V1alpha1ClusterCIDRBuilder(V1alpha1ClusterCIDR instance, Boolean validationEnabled) { + this.fluent = this; + this.withApiVersion(instance.getApiVersion()); + + this.withKind(instance.getKind()); + + this.withMetadata(instance.getMetadata()); + + this.withSpec(instance.getSpec()); + + this.validationEnabled = validationEnabled; + } + + V1alpha1ClusterCIDRFluent fluent; + Boolean validationEnabled; + + public V1alpha1ClusterCIDR build() { + V1alpha1ClusterCIDR buildable = new V1alpha1ClusterCIDR(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.getMetadata()); + buildable.setSpec(fluent.getSpec()); + return buildable; + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java new file mode 100644 index 0000000000..8267780c70 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluent.java @@ -0,0 +1,94 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.fluent.Nested; + +/** Generated */ +public interface V1alpha1ClusterCIDRFluent> + extends Fluent { + public String getApiVersion(); + + public A withApiVersion(String apiVersion); + + public Boolean hasApiVersion(); + + public String getKind(); + + public A withKind(String kind); + + public Boolean hasKind(); + + /** + * This method has been deprecated, please use method buildMetadata instead. + * + * @return The buildable object. + */ + @Deprecated + public V1ObjectMeta getMetadata(); + + public V1ObjectMeta buildMetadata(); + + public A withMetadata(V1ObjectMeta metadata); + + public Boolean hasMetadata(); + + public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadata(); + + public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); + + public V1alpha1ClusterCIDRFluent.MetadataNested editMetadata(); + + public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadata(); + + public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); + + /** + * This method has been deprecated, please use method buildSpec instead. + * + * @return The buildable object. + */ + @Deprecated + public V1alpha1ClusterCIDRSpec getSpec(); + + public V1alpha1ClusterCIDRSpec buildSpec(); + + public A withSpec(V1alpha1ClusterCIDRSpec spec); + + public Boolean hasSpec(); + + public V1alpha1ClusterCIDRFluent.SpecNested withNewSpec(); + + public V1alpha1ClusterCIDRFluent.SpecNested withNewSpecLike(V1alpha1ClusterCIDRSpec item); + + public V1alpha1ClusterCIDRFluent.SpecNested editSpec(); + + public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpec(); + + public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpecLike(V1alpha1ClusterCIDRSpec item); + + public interface MetadataNested + extends Nested, V1ObjectMetaFluent> { + public N and(); + + public N endMetadata(); + } + + public interface SpecNested + extends Nested, V1alpha1ClusterCIDRSpecFluent> { + public N and(); + + public N endSpec(); + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java new file mode 100644 index 0000000000..fadca907a6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRFluentImpl.java @@ -0,0 +1,249 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1alpha1ClusterCIDRFluentImpl> + extends BaseFluent implements V1alpha1ClusterCIDRFluent { + public V1alpha1ClusterCIDRFluentImpl() {} + + public V1alpha1ClusterCIDRFluentImpl(V1alpha1ClusterCIDR instance) { + this.withApiVersion(instance.getApiVersion()); + + this.withKind(instance.getKind()); + + this.withMetadata(instance.getMetadata()); + + this.withSpec(instance.getSpec()); + } + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1ClusterCIDRSpecBuilder spec; + + 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; + } + + /** + * This method has been deprecated, please use method buildMetadata instead. + * + * @return The buildable object. + */ + @Deprecated + public V1ObjectMeta getMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ObjectMeta metadata) { + _visitables.get("metadata").remove(this.metadata); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public Boolean hasMetadata() { + return this.metadata != null; + } + + public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadata() { + return new V1alpha1ClusterCIDRFluentImpl.MetadataNestedImpl(); + } + + public V1alpha1ClusterCIDRFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new V1alpha1ClusterCIDRFluentImpl.MetadataNestedImpl(item); + } + + public V1alpha1ClusterCIDRFluent.MetadataNested editMetadata() { + return withNewMetadataLike(getMetadata()); + } + + public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadata() { + return withNewMetadataLike( + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); + } + + public V1alpha1ClusterCIDRFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + } + + /** + * This method has been deprecated, please use method buildSpec instead. + * + * @return The buildable object. + */ + @Deprecated + public V1alpha1ClusterCIDRSpec getSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1alpha1ClusterCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public A withSpec(V1alpha1ClusterCIDRSpec spec) { + _visitables.get("spec").remove(this.spec); + if (spec != null) { + this.spec = new V1alpha1ClusterCIDRSpecBuilder(spec); + _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public Boolean hasSpec() { + return this.spec != null; + } + + public V1alpha1ClusterCIDRFluent.SpecNested withNewSpec() { + return new V1alpha1ClusterCIDRFluentImpl.SpecNestedImpl(); + } + + public V1alpha1ClusterCIDRFluent.SpecNested withNewSpecLike(V1alpha1ClusterCIDRSpec item) { + return new V1alpha1ClusterCIDRFluentImpl.SpecNestedImpl(item); + } + + public V1alpha1ClusterCIDRFluent.SpecNested editSpec() { + return withNewSpecLike(getSpec()); + } + + public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpec() { + return withNewSpecLike( + getSpec() != null ? getSpec() : new V1alpha1ClusterCIDRSpecBuilder().build()); + } + + public V1alpha1ClusterCIDRFluent.SpecNested editOrNewSpecLike(V1alpha1ClusterCIDRSpec item) { + return withNewSpecLike(getSpec() != null ? getSpec() : item); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1alpha1ClusterCIDRFluentImpl that = (V1alpha1ClusterCIDRFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) + return false; + if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; + if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (apiVersion != null) { + sb.append("apiVersion:"); + sb.append(apiVersion + ","); + } + if (kind != null) { + sb.append("kind:"); + sb.append(kind + ","); + } + if (metadata != null) { + sb.append("metadata:"); + sb.append(metadata + ","); + } + if (spec != null) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + class MetadataNestedImpl + extends V1ObjectMetaFluentImpl> + implements V1alpha1ClusterCIDRFluent.MetadataNested, Nested { + MetadataNestedImpl(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + MetadataNestedImpl() { + this.builder = new V1ObjectMetaBuilder(this); + } + + V1ObjectMetaBuilder builder; + + public N and() { + return (N) V1alpha1ClusterCIDRFluentImpl.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + } + + class SpecNestedImpl + extends V1alpha1ClusterCIDRSpecFluentImpl> + implements V1alpha1ClusterCIDRFluent.SpecNested, Nested { + SpecNestedImpl(V1alpha1ClusterCIDRSpec item) { + this.builder = new V1alpha1ClusterCIDRSpecBuilder(this, item); + } + + SpecNestedImpl() { + this.builder = new V1alpha1ClusterCIDRSpecBuilder(this); + } + + V1alpha1ClusterCIDRSpecBuilder builder; + + public N and() { + return (N) V1alpha1ClusterCIDRFluentImpl.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java new file mode 100644 index 0000000000..a5bd491abd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListBuilder.java @@ -0,0 +1,87 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1alpha1ClusterCIDRListBuilder + extends V1alpha1ClusterCIDRListFluentImpl + implements VisitableBuilder { + public V1alpha1ClusterCIDRListBuilder() { + this(false); + } + + public V1alpha1ClusterCIDRListBuilder(Boolean validationEnabled) { + this(new V1alpha1ClusterCIDRList(), validationEnabled); + } + + public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRListFluent fluent) { + this(fluent, false); + } + + public V1alpha1ClusterCIDRListBuilder( + V1alpha1ClusterCIDRListFluent fluent, Boolean validationEnabled) { + this(fluent, new V1alpha1ClusterCIDRList(), validationEnabled); + } + + public V1alpha1ClusterCIDRListBuilder( + V1alpha1ClusterCIDRListFluent fluent, V1alpha1ClusterCIDRList instance) { + this(fluent, instance, false); + } + + public V1alpha1ClusterCIDRListBuilder( + V1alpha1ClusterCIDRListFluent fluent, + V1alpha1ClusterCIDRList instance, + Boolean validationEnabled) { + this.fluent = fluent; + fluent.withApiVersion(instance.getApiVersion()); + + fluent.withItems(instance.getItems()); + + fluent.withKind(instance.getKind()); + + fluent.withMetadata(instance.getMetadata()); + + this.validationEnabled = validationEnabled; + } + + public V1alpha1ClusterCIDRListBuilder(V1alpha1ClusterCIDRList instance) { + this(instance, false); + } + + public V1alpha1ClusterCIDRListBuilder( + V1alpha1ClusterCIDRList instance, Boolean validationEnabled) { + this.fluent = this; + this.withApiVersion(instance.getApiVersion()); + + this.withItems(instance.getItems()); + + this.withKind(instance.getKind()); + + this.withMetadata(instance.getMetadata()); + + this.validationEnabled = validationEnabled; + } + + V1alpha1ClusterCIDRListFluent fluent; + Boolean validationEnabled; + + public V1alpha1ClusterCIDRList build() { + V1alpha1ClusterCIDRList buildable = new V1alpha1ClusterCIDRList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.getItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.getMetadata()); + return buildable; + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java new file mode 100644 index 0000000000..c83b98070b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluent.java @@ -0,0 +1,129 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.fluent.Nested; +import java.util.Collection; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +public interface V1alpha1ClusterCIDRListFluent> + extends Fluent { + public String getApiVersion(); + + public A withApiVersion(String apiVersion); + + public Boolean hasApiVersion(); + + public A addToItems(Integer index, V1alpha1ClusterCIDR item); + + public A setToItems(Integer index, V1alpha1ClusterCIDR item); + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items); + + public A addAllToItems(Collection items); + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items); + + public A removeAllFromItems(Collection items); + + public A removeMatchingFromItems(Predicate predicate); + + /** + * This method has been deprecated, please use method buildItems instead. + * + * @return The buildable object. + */ + @Deprecated + public List getItems(); + + public List buildItems(); + + public V1alpha1ClusterCIDR buildItem(Integer index); + + public V1alpha1ClusterCIDR buildFirstItem(); + + public V1alpha1ClusterCIDR buildLastItem(); + + public V1alpha1ClusterCIDR buildMatchingItem(Predicate predicate); + + public Boolean hasMatchingItem(Predicate predicate); + + public A withItems(List items); + + public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items); + + public Boolean hasItems(); + + public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItem(); + + public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItemLike(V1alpha1ClusterCIDR item); + + public V1alpha1ClusterCIDRListFluent.ItemsNested setNewItemLike( + Integer index, V1alpha1ClusterCIDR item); + + public V1alpha1ClusterCIDRListFluent.ItemsNested editItem(Integer index); + + public V1alpha1ClusterCIDRListFluent.ItemsNested editFirstItem(); + + public V1alpha1ClusterCIDRListFluent.ItemsNested editLastItem(); + + public V1alpha1ClusterCIDRListFluent.ItemsNested editMatchingItem( + Predicate predicate); + + public String getKind(); + + public A withKind(String kind); + + public Boolean hasKind(); + + /** + * This method has been deprecated, please use method buildMetadata instead. + * + * @return The buildable object. + */ + @Deprecated + public V1ListMeta getMetadata(); + + public V1ListMeta buildMetadata(); + + public A withMetadata(V1ListMeta metadata); + + public Boolean hasMetadata(); + + public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadata(); + + public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); + + public V1alpha1ClusterCIDRListFluent.MetadataNested editMetadata(); + + public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadata(); + + public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); + + public interface ItemsNested + extends Nested, V1alpha1ClusterCIDRFluent> { + public N and(); + + public N endItem(); + } + + public interface MetadataNested + extends Nested, V1ListMetaFluent> { + public N and(); + + public N endMetadata(); + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java new file mode 100644 index 0000000000..7cc32cac9c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRListFluentImpl.java @@ -0,0 +1,411 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.function.Predicate; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1alpha1ClusterCIDRListFluentImpl> + extends BaseFluent implements V1alpha1ClusterCIDRListFluent { + public V1alpha1ClusterCIDRListFluentImpl() {} + + public V1alpha1ClusterCIDRListFluentImpl(V1alpha1ClusterCIDRList instance) { + this.withApiVersion(instance.getApiVersion()); + + this.withItems(instance.getItems()); + + this.withKind(instance.getKind()); + + this.withMetadata(instance.getMetadata()); + } + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + 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(Integer index, V1alpha1ClusterCIDR item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); + _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); + this.items.add(index >= 0 ? index : items.size(), builder); + return (A) this; + } + + public A setToItems(Integer index, V1alpha1ClusterCIDR item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); + if (index < 0 || index >= _visitables.get("items").size()) { + _visitables.get("items").add(builder); + } else { + _visitables.get("items").set(index, builder); + } + if (index < 0 || index >= items.size()) { + items.add(builder); + } else { + items.set(index, builder); + } + return (A) this; + } + + public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1ClusterCIDR item : items) { + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(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 (V1alpha1ClusterCIDR item : items) { + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { + for (V1alpha1ClusterCIDR item : items) { + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); + _visitables.get("items").remove(builder); + if (this.items != null) { + this.items.remove(builder); + } + } + return (A) this; + } + + public A removeAllFromItems(Collection items) { + for (V1alpha1ClusterCIDR item : items) { + V1alpha1ClusterCIDRBuilder builder = new V1alpha1ClusterCIDRBuilder(item); + _visitables.get("items").remove(builder); + if (this.items != null) { + 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()) { + V1alpha1ClusterCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + /** + * This method has been deprecated, please use method buildItems instead. + * + * @return The buildable object. + */ + @Deprecated + public List getItems() { + return items != null ? build(items) : null; + } + + public List buildItems() { + return items != null ? build(items) : null; + } + + public V1alpha1ClusterCIDR buildItem(Integer index) { + return this.items.get(index).build(); + } + + public V1alpha1ClusterCIDR buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1ClusterCIDR buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1ClusterCIDR buildMatchingItem(Predicate predicate) { + for (V1alpha1ClusterCIDRBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public Boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1ClusterCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public A withItems(List items) { + if (this.items != null) { + _visitables.get("items").removeAll(this.items); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1ClusterCIDR item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR... items) { + if (this.items != null) { + this.items.clear(); + } + if (items != null) { + for (V1alpha1ClusterCIDR item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public Boolean hasItems() { + return items != null && !items.isEmpty(); + } + + public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItem() { + return new V1alpha1ClusterCIDRListFluentImpl.ItemsNestedImpl(); + } + + public V1alpha1ClusterCIDRListFluent.ItemsNested addNewItemLike(V1alpha1ClusterCIDR item) { + return new V1alpha1ClusterCIDRListFluentImpl.ItemsNestedImpl(-1, item); + } + + public V1alpha1ClusterCIDRListFluent.ItemsNested setNewItemLike( + Integer index, V1alpha1ClusterCIDR item) { + return new V1alpha1ClusterCIDRListFluentImpl.ItemsNestedImpl(index, item); + } + + public V1alpha1ClusterCIDRListFluent.ItemsNested editItem(Integer index) { + if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); + return setNewItemLike(index, buildItem(index)); + } + + public V1alpha1ClusterCIDRListFluent.ItemsNested editFirstItem() { + if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); + return setNewItemLike(0, buildItem(0)); + } + + public V1alpha1ClusterCIDRListFluent.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 V1alpha1ClusterCIDRListFluent.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("Can't edit matching items. No match found."); + return setNewItemLike(index, 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; + } + + /** + * This method has been deprecated, please use method buildMetadata instead. + * + * @return The buildable object. + */ + @Deprecated + public V1ListMeta getMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public A withMetadata(V1ListMeta metadata) { + _visitables.get("metadata").remove(this.metadata); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public Boolean hasMetadata() { + return this.metadata != null; + } + + public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadata() { + return new V1alpha1ClusterCIDRListFluentImpl.MetadataNestedImpl(); + } + + public V1alpha1ClusterCIDRListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1alpha1ClusterCIDRListFluentImpl.MetadataNestedImpl(item); + } + + public V1alpha1ClusterCIDRListFluent.MetadataNested editMetadata() { + return withNewMetadataLike(getMetadata()); + } + + public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadata() { + return withNewMetadataLike( + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); + } + + public V1alpha1ClusterCIDRListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1alpha1ClusterCIDRListFluentImpl that = (V1alpha1ClusterCIDRListFluentImpl) o; + if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) + return false; + if (items != null ? !items.equals(that.items) : that.items != null) return false; + if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; + if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) 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(); + } + + class ItemsNestedImpl + extends V1alpha1ClusterCIDRFluentImpl> + implements V1alpha1ClusterCIDRListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1alpha1ClusterCIDR item) { + this.index = index; + this.builder = new V1alpha1ClusterCIDRBuilder(this, item); + } + + ItemsNestedImpl() { + this.index = -1; + this.builder = new V1alpha1ClusterCIDRBuilder(this); + } + + V1alpha1ClusterCIDRBuilder builder; + Integer index; + + public N and() { + return (N) V1alpha1ClusterCIDRListFluentImpl.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + } + + class MetadataNestedImpl + extends V1ListMetaFluentImpl> + implements V1alpha1ClusterCIDRListFluent.MetadataNested, Nested { + MetadataNestedImpl(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + MetadataNestedImpl() { + this.builder = new V1ListMetaBuilder(this); + } + + V1ListMetaBuilder builder; + + public N and() { + return (N) V1alpha1ClusterCIDRListFluentImpl.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java new file mode 100644 index 0000000000..961c90c94b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecBuilder.java @@ -0,0 +1,87 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; + +public class V1alpha1ClusterCIDRSpecBuilder + extends V1alpha1ClusterCIDRSpecFluentImpl + implements VisitableBuilder { + public V1alpha1ClusterCIDRSpecBuilder() { + this(false); + } + + public V1alpha1ClusterCIDRSpecBuilder(Boolean validationEnabled) { + this(new V1alpha1ClusterCIDRSpec(), validationEnabled); + } + + public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpecFluent fluent) { + this(fluent, false); + } + + public V1alpha1ClusterCIDRSpecBuilder( + V1alpha1ClusterCIDRSpecFluent fluent, Boolean validationEnabled) { + this(fluent, new V1alpha1ClusterCIDRSpec(), validationEnabled); + } + + public V1alpha1ClusterCIDRSpecBuilder( + V1alpha1ClusterCIDRSpecFluent fluent, V1alpha1ClusterCIDRSpec instance) { + this(fluent, instance, false); + } + + public V1alpha1ClusterCIDRSpecBuilder( + V1alpha1ClusterCIDRSpecFluent fluent, + V1alpha1ClusterCIDRSpec instance, + Boolean validationEnabled) { + this.fluent = fluent; + fluent.withIpv4(instance.getIpv4()); + + fluent.withIpv6(instance.getIpv6()); + + fluent.withNodeSelector(instance.getNodeSelector()); + + fluent.withPerNodeHostBits(instance.getPerNodeHostBits()); + + this.validationEnabled = validationEnabled; + } + + public V1alpha1ClusterCIDRSpecBuilder(V1alpha1ClusterCIDRSpec instance) { + this(instance, false); + } + + public V1alpha1ClusterCIDRSpecBuilder( + V1alpha1ClusterCIDRSpec instance, Boolean validationEnabled) { + this.fluent = this; + this.withIpv4(instance.getIpv4()); + + this.withIpv6(instance.getIpv6()); + + this.withNodeSelector(instance.getNodeSelector()); + + this.withPerNodeHostBits(instance.getPerNodeHostBits()); + + this.validationEnabled = validationEnabled; + } + + V1alpha1ClusterCIDRSpecFluent fluent; + Boolean validationEnabled; + + public V1alpha1ClusterCIDRSpec build() { + V1alpha1ClusterCIDRSpec buildable = new V1alpha1ClusterCIDRSpec(); + buildable.setIpv4(fluent.getIpv4()); + buildable.setIpv6(fluent.getIpv6()); + buildable.setNodeSelector(fluent.getNodeSelector()); + buildable.setPerNodeHostBits(fluent.getPerNodeHostBits()); + return buildable; + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java new file mode 100644 index 0000000000..fe2a381b76 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluent.java @@ -0,0 +1,71 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.Fluent; +import io.kubernetes.client.fluent.Nested; + +/** Generated */ +public interface V1alpha1ClusterCIDRSpecFluent> + extends Fluent { + public String getIpv4(); + + public A withIpv4(String ipv4); + + public Boolean hasIpv4(); + + public String getIpv6(); + + public A withIpv6(String ipv6); + + public Boolean hasIpv6(); + + /** + * This method has been deprecated, please use method buildNodeSelector instead. + * + * @return The buildable object. + */ + @Deprecated + public V1NodeSelector getNodeSelector(); + + public V1NodeSelector buildNodeSelector(); + + public A withNodeSelector(V1NodeSelector nodeSelector); + + public Boolean hasNodeSelector(); + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelector(); + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelectorLike( + V1NodeSelector item); + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editNodeSelector(); + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelector(); + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelectorLike( + V1NodeSelector item); + + public Integer getPerNodeHostBits(); + + public A withPerNodeHostBits(Integer perNodeHostBits); + + public Boolean hasPerNodeHostBits(); + + public interface NodeSelectorNested + extends Nested, V1NodeSelectorFluent> { + public N and(); + + public N endNodeSelector(); + } +} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java new file mode 100644 index 0000000000..22403cf772 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpecFluentImpl.java @@ -0,0 +1,193 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; + +/** Generated */ +@SuppressWarnings(value = "unchecked") +public class V1alpha1ClusterCIDRSpecFluentImpl> + extends BaseFluent implements V1alpha1ClusterCIDRSpecFluent { + public V1alpha1ClusterCIDRSpecFluentImpl() {} + + public V1alpha1ClusterCIDRSpecFluentImpl(V1alpha1ClusterCIDRSpec instance) { + this.withIpv4(instance.getIpv4()); + + this.withIpv6(instance.getIpv6()); + + this.withNodeSelector(instance.getNodeSelector()); + + this.withPerNodeHostBits(instance.getPerNodeHostBits()); + } + + private String ipv4; + private String ipv6; + private V1NodeSelectorBuilder nodeSelector; + private Integer perNodeHostBits; + + public String getIpv4() { + return this.ipv4; + } + + public A withIpv4(String ipv4) { + this.ipv4 = ipv4; + return (A) this; + } + + public Boolean hasIpv4() { + return this.ipv4 != null; + } + + public String getIpv6() { + return this.ipv6; + } + + public A withIpv6(String ipv6) { + this.ipv6 = ipv6; + return (A) this; + } + + public Boolean hasIpv6() { + return this.ipv6 != null; + } + + /** + * This method has been deprecated, please use method buildNodeSelector instead. + * + * @return The buildable object. + */ + @Deprecated + public V1NodeSelector getNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public A withNodeSelector(V1NodeSelector nodeSelector) { + _visitables.get("nodeSelector").remove(this.nodeSelector); + if (nodeSelector != null) { + this.nodeSelector = new V1NodeSelectorBuilder(nodeSelector); + _visitables.get("nodeSelector").add(this.nodeSelector); + } else { + this.nodeSelector = null; + _visitables.get("nodeSelector").remove(this.nodeSelector); + } + return (A) this; + } + + public Boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelector() { + return new V1alpha1ClusterCIDRSpecFluentImpl.NodeSelectorNestedImpl(); + } + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested withNewNodeSelectorLike( + V1NodeSelector item) { + return new V1alpha1ClusterCIDRSpecFluentImpl.NodeSelectorNestedImpl(item); + } + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editNodeSelector() { + return withNewNodeSelectorLike(getNodeSelector()); + } + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelector() { + return withNewNodeSelectorLike( + getNodeSelector() != null ? getNodeSelector() : new V1NodeSelectorBuilder().build()); + } + + public V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested editOrNewNodeSelectorLike( + V1NodeSelector item) { + return withNewNodeSelectorLike(getNodeSelector() != null ? getNodeSelector() : item); + } + + public Integer getPerNodeHostBits() { + return this.perNodeHostBits; + } + + public A withPerNodeHostBits(Integer perNodeHostBits) { + this.perNodeHostBits = perNodeHostBits; + return (A) this; + } + + public Boolean hasPerNodeHostBits() { + return this.perNodeHostBits != null; + } + + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + V1alpha1ClusterCIDRSpecFluentImpl that = (V1alpha1ClusterCIDRSpecFluentImpl) o; + if (ipv4 != null ? !ipv4.equals(that.ipv4) : that.ipv4 != null) return false; + if (ipv6 != null ? !ipv6.equals(that.ipv6) : that.ipv6 != null) return false; + if (nodeSelector != null ? !nodeSelector.equals(that.nodeSelector) : that.nodeSelector != null) + return false; + if (perNodeHostBits != null + ? !perNodeHostBits.equals(that.perNodeHostBits) + : that.perNodeHostBits != null) return false; + return true; + } + + public int hashCode() { + return java.util.Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits, super.hashCode()); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (ipv4 != null) { + sb.append("ipv4:"); + sb.append(ipv4 + ","); + } + if (ipv6 != null) { + sb.append("ipv6:"); + sb.append(ipv6 + ","); + } + if (nodeSelector != null) { + sb.append("nodeSelector:"); + sb.append(nodeSelector + ","); + } + if (perNodeHostBits != null) { + sb.append("perNodeHostBits:"); + sb.append(perNodeHostBits); + } + sb.append("}"); + return sb.toString(); + } + + class NodeSelectorNestedImpl + extends V1NodeSelectorFluentImpl> + implements V1alpha1ClusterCIDRSpecFluent.NodeSelectorNested, Nested { + NodeSelectorNestedImpl(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + NodeSelectorNestedImpl() { + this.builder = new V1NodeSelectorBuilder(this); + } + + V1NodeSelectorBuilder builder; + + public N and() { + return (N) V1alpha1ClusterCIDRSpecFluentImpl.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + } +} 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 d96d547c08..684226f5a1 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 @@ -16,9 +16,7 @@ public class V1alpha1ServerStorageVersionBuilder extends V1alpha1ServerStorageVersionFluentImpl - implements VisitableBuilder< - V1alpha1ServerStorageVersion, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> { + implements VisitableBuilder { public V1alpha1ServerStorageVersionBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1alpha1ServerStorageVersionBuilder(Boolean validationEnabled) { this(new V1alpha1ServerStorageVersion(), validationEnabled); } - public V1alpha1ServerStorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionFluent fluent) { + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent) { this(fluent, false); } public V1alpha1ServerStorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionFluent fluent, - java.lang.Boolean validationEnabled) { + V1alpha1ServerStorageVersionFluent fluent, Boolean validationEnabled) { this(fluent, new V1alpha1ServerStorageVersion(), validationEnabled); } public V1alpha1ServerStorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion instance) { + V1alpha1ServerStorageVersionFluent fluent, V1alpha1ServerStorageVersion instance) { this(fluent, instance, false); } public V1alpha1ServerStorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion instance, - java.lang.Boolean validationEnabled) { + V1alpha1ServerStorageVersionFluent fluent, + V1alpha1ServerStorageVersion instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiServerID(instance.getApiServerID()); @@ -58,14 +53,12 @@ public V1alpha1ServerStorageVersionBuilder( this.validationEnabled = validationEnabled; } - public V1alpha1ServerStorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion instance) { + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersion instance) { this(instance, false); } public V1alpha1ServerStorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion instance, - java.lang.Boolean validationEnabled) { + V1alpha1ServerStorageVersion instance, Boolean validationEnabled) { this.fluent = this; this.withApiServerID(instance.getApiServerID()); @@ -76,10 +69,10 @@ public V1alpha1ServerStorageVersionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionFluent fluent; - java.lang.Boolean validationEnabled; + V1alpha1ServerStorageVersionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion build() { + public V1alpha1ServerStorageVersion build() { V1alpha1ServerStorageVersion buildable = new V1alpha1ServerStorageVersion(); buildable.setApiServerID(fluent.getApiServerID()); buildable.setDecodableVersions(fluent.getDecodableVersions()); 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 f885040a6f..770bf051c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java @@ -22,44 +22,43 @@ public interface V1alpha1ServerStorageVersionFluent { public String getApiServerID(); - public A withApiServerID(java.lang.String apiServerID); + public A withApiServerID(String apiServerID); public Boolean hasApiServerID(); - public A addToDecodableVersions(Integer index, java.lang.String item); + public A addToDecodableVersions(Integer index, String item); - public A setToDecodableVersions(java.lang.Integer index, java.lang.String item); + public A setToDecodableVersions(Integer index, String item); public A addToDecodableVersions(java.lang.String... items); - public A addAllToDecodableVersions(Collection items); + public A addAllToDecodableVersions(Collection items); public A removeFromDecodableVersions(java.lang.String... items); - public A removeAllFromDecodableVersions(java.util.Collection items); + public A removeAllFromDecodableVersions(Collection items); - public List getDecodableVersions(); + public List getDecodableVersions(); - public java.lang.String getDecodableVersion(java.lang.Integer index); + public String getDecodableVersion(Integer index); - public java.lang.String getFirstDecodableVersion(); + public String getFirstDecodableVersion(); - public java.lang.String getLastDecodableVersion(); + public String getLastDecodableVersion(); - public java.lang.String getMatchingDecodableVersion(Predicate predicate); + public String getMatchingDecodableVersion(Predicate predicate); - public java.lang.Boolean hasMatchingDecodableVersion( - java.util.function.Predicate predicate); + public Boolean hasMatchingDecodableVersion(Predicate predicate); - public A withDecodableVersions(java.util.List decodableVersions); + public A withDecodableVersions(List decodableVersions); public A withDecodableVersions(java.lang.String... decodableVersions); - public java.lang.Boolean hasDecodableVersions(); + public Boolean hasDecodableVersions(); - public java.lang.String getEncodingVersion(); + public String getEncodingVersion(); - public A withEncodingVersion(java.lang.String encodingVersion); + public A withEncodingVersion(String encodingVersion); - public java.lang.Boolean hasEncodingVersion(); + public Boolean hasEncodingVersion(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java index 4466c65952..18073e0d69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluentImpl.java @@ -24,8 +24,7 @@ public class V1alpha1ServerStorageVersionFluentImpl implements V1alpha1ServerStorageVersionFluent { public V1alpha1ServerStorageVersionFluentImpl() {} - public V1alpha1ServerStorageVersionFluentImpl( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion instance) { + public V1alpha1ServerStorageVersionFluentImpl(V1alpha1ServerStorageVersion instance) { this.withApiServerID(instance.getApiServerID()); this.withDecodableVersions(instance.getDecodableVersions()); @@ -34,14 +33,14 @@ public V1alpha1ServerStorageVersionFluentImpl( } private String apiServerID; - private List decodableVersions; - private java.lang.String encodingVersion; + private List decodableVersions; + private String encodingVersion; - public java.lang.String getApiServerID() { + public String getApiServerID() { return this.apiServerID; } - public A withApiServerID(java.lang.String apiServerID) { + public A withApiServerID(String apiServerID) { this.apiServerID = apiServerID; return (A) this; } @@ -50,17 +49,17 @@ public Boolean hasApiServerID() { return this.apiServerID != null; } - public A addToDecodableVersions(Integer index, java.lang.String item) { + public A addToDecodableVersions(Integer index, String item) { if (this.decodableVersions == null) { - this.decodableVersions = new ArrayList(); + this.decodableVersions = new ArrayList(); } this.decodableVersions.add(index, item); return (A) this; } - public A setToDecodableVersions(java.lang.Integer index, java.lang.String item) { + public A setToDecodableVersions(Integer index, String item) { if (this.decodableVersions == null) { - this.decodableVersions = new java.util.ArrayList(); + this.decodableVersions = new ArrayList(); } this.decodableVersions.set(index, item); return (A) this; @@ -68,26 +67,26 @@ public A setToDecodableVersions(java.lang.Integer index, java.lang.String item) public A addToDecodableVersions(java.lang.String... items) { if (this.decodableVersions == null) { - this.decodableVersions = new java.util.ArrayList(); + this.decodableVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.decodableVersions.add(item); } return (A) this; } - public A addAllToDecodableVersions(Collection items) { + public A addAllToDecodableVersions(Collection items) { if (this.decodableVersions == null) { - this.decodableVersions = new java.util.ArrayList(); + this.decodableVersions = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.decodableVersions.add(item); } return (A) this; } public A removeFromDecodableVersions(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.decodableVersions != null) { this.decodableVersions.remove(item); } @@ -95,8 +94,8 @@ public A removeFromDecodableVersions(java.lang.String... items) { return (A) this; } - public A removeAllFromDecodableVersions(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromDecodableVersions(Collection items) { + for (String item : items) { if (this.decodableVersions != null) { this.decodableVersions.remove(item); } @@ -104,24 +103,24 @@ public A removeAllFromDecodableVersions(java.util.Collection i return (A) this; } - public java.util.List getDecodableVersions() { + public List getDecodableVersions() { return this.decodableVersions; } - public java.lang.String getDecodableVersion(java.lang.Integer index) { + public String getDecodableVersion(Integer index) { return this.decodableVersions.get(index); } - public java.lang.String getFirstDecodableVersion() { + public String getFirstDecodableVersion() { return this.decodableVersions.get(0); } - public java.lang.String getLastDecodableVersion() { + public String getLastDecodableVersion() { return this.decodableVersions.get(decodableVersions.size() - 1); } - public java.lang.String getMatchingDecodableVersion(Predicate predicate) { - for (java.lang.String item : decodableVersions) { + public String getMatchingDecodableVersion(Predicate predicate) { + for (String item : decodableVersions) { if (predicate.test(item)) { return item; } @@ -129,9 +128,8 @@ public java.lang.String getMatchingDecodableVersion(Predicate return null; } - public java.lang.Boolean hasMatchingDecodableVersion( - java.util.function.Predicate predicate) { - for (java.lang.String item : decodableVersions) { + public Boolean hasMatchingDecodableVersion(Predicate predicate) { + for (String item : decodableVersions) { if (predicate.test(item)) { return true; } @@ -139,10 +137,10 @@ public java.lang.Boolean hasMatchingDecodableVersion( return false; } - public A withDecodableVersions(java.util.List decodableVersions) { + public A withDecodableVersions(List decodableVersions) { if (decodableVersions != null) { - this.decodableVersions = new java.util.ArrayList(); - for (java.lang.String item : decodableVersions) { + this.decodableVersions = new ArrayList(); + for (String item : decodableVersions) { this.addToDecodableVersions(item); } } else { @@ -156,27 +154,27 @@ public A withDecodableVersions(java.lang.String... decodableVersions) { this.decodableVersions.clear(); } if (decodableVersions != null) { - for (java.lang.String item : decodableVersions) { + for (String item : decodableVersions) { this.addToDecodableVersions(item); } } return (A) this; } - public java.lang.Boolean hasDecodableVersions() { + public Boolean hasDecodableVersions() { return decodableVersions != null && !decodableVersions.isEmpty(); } - public java.lang.String getEncodingVersion() { + public String getEncodingVersion() { return this.encodingVersion; } - public A withEncodingVersion(java.lang.String encodingVersion) { + public A withEncodingVersion(String encodingVersion) { this.encodingVersion = encodingVersion; return (A) this; } - public java.lang.Boolean hasEncodingVersion() { + public Boolean hasEncodingVersion() { return this.encodingVersion != null; } @@ -200,7 +198,7 @@ public int hashCode() { apiServerID, decodableVersions, encodingVersion, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiServerID != null) { 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 d8ae55a6be..cdf4a2e1e6 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 @@ -16,9 +16,7 @@ public class V1alpha1StorageVersionBuilder extends V1alpha1StorageVersionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1alpha1StorageVersion, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> { + implements VisitableBuilder { public V1alpha1StorageVersionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent) { } public V1alpha1StorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent fluent, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionFluent fluent, Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersion(), validationEnabled); } public V1alpha1StorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersion instance) { + V1alpha1StorageVersionFluent fluent, V1alpha1StorageVersion instance) { this(fluent, instance, false); } public V1alpha1StorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersion instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionFluent fluent, + V1alpha1StorageVersion instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,11 @@ public V1alpha1StorageVersionBuilder( this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersion instance) { + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance) { this(instance, false); } - public V1alpha1StorageVersionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersion instance, - java.lang.Boolean validationEnabled) { + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +76,10 @@ public V1alpha1StorageVersionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent fluent; - java.lang.Boolean validationEnabled; + V1alpha1StorageVersionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion build() { + public V1alpha1StorageVersion build() { V1alpha1StorageVersion buildable = new V1alpha1StorageVersion(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 d366c8e1af..5634886e72 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 @@ -17,8 +17,7 @@ public class V1alpha1StorageVersionConditionBuilder extends V1alpha1StorageVersionConditionFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition, - V1alpha1StorageVersionConditionBuilder> { + V1alpha1StorageVersionCondition, V1alpha1StorageVersionConditionBuilder> { public V1alpha1StorageVersionConditionBuilder() { this(false); } @@ -27,27 +26,24 @@ public V1alpha1StorageVersionConditionBuilder(Boolean validationEnabled) { this(new V1alpha1StorageVersionCondition(), validationEnabled); } - public V1alpha1StorageVersionConditionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionFluent fluent) { + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent) { this(fluent, false); } public V1alpha1StorageVersionConditionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersionCondition(), validationEnabled); } public V1alpha1StorageVersionConditionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition instance) { + V1alpha1StorageVersionConditionFluent fluent, V1alpha1StorageVersionCondition instance) { this(fluent, instance, false); } public V1alpha1StorageVersionConditionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionConditionFluent fluent, + V1alpha1StorageVersionCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -64,14 +60,12 @@ public V1alpha1StorageVersionConditionBuilder( this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionConditionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition instance) { + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionCondition instance) { this(instance, false); } public V1alpha1StorageVersionConditionBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -88,10 +82,10 @@ public V1alpha1StorageVersionConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1alpha1StorageVersionConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition build() { + public V1alpha1StorageVersionCondition build() { V1alpha1StorageVersionCondition buildable = new V1alpha1StorageVersionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 96b07d342f..3d184aa718 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 @@ -21,37 +21,37 @@ public interface V1alpha1StorageVersionConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java index 457280ba10..c062a56d7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluentImpl.java @@ -22,8 +22,7 @@ public class V1alpha1StorageVersionConditionFluentImpl< extends BaseFluent implements V1alpha1StorageVersionConditionFluent { public V1alpha1StorageVersionConditionFluentImpl() {} - public V1alpha1StorageVersionConditionFluentImpl( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition instance) { + public V1alpha1StorageVersionConditionFluentImpl(V1alpha1StorageVersionCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -40,15 +39,15 @@ public V1alpha1StorageVersionConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -57,68 +56,68 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -144,7 +143,7 @@ public int hashCode() { lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 ed64f8a52d..5efec1e41c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java @@ -20,15 +20,15 @@ public interface V1alpha1StorageVersionFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,59 +38,53 @@ public interface V1alpha1StorageVersionFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1alpha1StorageVersionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - editMetadata(); + public V1alpha1StorageVersionFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - editOrNewMetadata(); + public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); public Object getSpec(); - public A withSpec(java.lang.Object spec); + public A withSpec(Object spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1alpha1StorageVersionStatus getStatus(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus buildStatus(); + public V1alpha1StorageVersionStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus status); + public A withStatus(V1alpha1StorageVersionStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1alpha1StorageVersionFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus item); + public V1alpha1StorageVersionFluent.StatusNested withNewStatusLike( + V1alpha1StorageVersionStatus item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - editStatus(); + public V1alpha1StorageVersionFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - editOrNewStatus(); + public V1alpha1StorageVersionFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus item); + public V1alpha1StorageVersionFluent.StatusNested editOrNewStatusLike( + V1alpha1StorageVersionStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -100,7 +94,7 @@ public interface MetadataNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1alpha1StorageVersionStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java index 9be7806754..a36a14e007 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluentImpl.java @@ -21,8 +21,7 @@ public class V1alpha1StorageVersionFluentImpl implements V1alpha1StorageVersionFluent { public V1alpha1StorageVersionFluentImpl() {} - public V1alpha1StorageVersionFluentImpl( - io.kubernetes.client.openapi.models.V1alpha1StorageVersion instance) { + public V1alpha1StorageVersionFluentImpl(V1alpha1StorageVersion instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1alpha1StorageVersionFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private Object spec; private V1alpha1StorageVersionStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,39 +99,33 @@ public V1alpha1StorageVersionFluent.MetadataNested withNewMetadata() { return new V1alpha1StorageVersionFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1alpha1StorageVersionFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1alpha1StorageVersionFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - editMetadata() { + public V1alpha1StorageVersionFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - editOrNewMetadata() { + public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1alpha1StorageVersionFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } - public java.lang.Object getSpec() { + public Object getSpec() { return this.spec; } - public A withSpec(java.lang.Object spec) { + public A withSpec(Object spec) { this.spec = spec; return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -138,26 +134,28 @@ public java.lang.Boolean hasSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1alpha1StorageVersionStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus buildStatus() { + public V1alpha1StorageVersionStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus status) { + public A withStatus(V1alpha1StorageVersionStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusBuilder(status); + this.status = new V1alpha1StorageVersionStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -165,32 +163,26 @@ public V1alpha1StorageVersionFluent.StatusNested withNewStatus() { return new V1alpha1StorageVersionFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus item) { - return new io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluentImpl - .StatusNestedImpl(item); + public V1alpha1StorageVersionFluent.StatusNested withNewStatusLike( + V1alpha1StorageVersionStatus item) { + return new V1alpha1StorageVersionFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - editStatus() { + public V1alpha1StorageVersionFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - editOrNewStatus() { + public V1alpha1StorageVersionFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V1alpha1StorageVersionStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus item) { + public V1alpha1StorageVersionFluent.StatusNested editOrNewStatusLike( + V1alpha1StorageVersionStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } - public boolean equals(java.lang.Object o) { + public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; V1alpha1StorageVersionFluentImpl that = (V1alpha1StorageVersionFluentImpl) o; @@ -207,7 +199,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -236,17 +228,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.MetadataNested, - Nested { + implements V1alpha1StorageVersionFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1alpha1StorageVersionFluentImpl.this.withMetadata(builder.build()); @@ -259,18 +250,16 @@ public N endMetadata() { class StatusNestedImpl extends V1alpha1StorageVersionStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1alpha1StorageVersionFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1alpha1StorageVersionFluent.StatusNested, Nested { StatusNestedImpl(V1alpha1StorageVersionStatus item) { this.builder = new V1alpha1StorageVersionStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusBuilder(this); + this.builder = new V1alpha1StorageVersionStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusBuilder builder; + V1alpha1StorageVersionStatusBuilder builder; public N and() { return (N) V1alpha1StorageVersionFluentImpl.this.withStatus(builder.build()); 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 5fe649979c..acb9cd1b53 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 @@ -16,9 +16,7 @@ public class V1alpha1StorageVersionListBuilder extends V1alpha1StorageVersionListFluentImpl - implements VisitableBuilder< - V1alpha1StorageVersionList, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionListBuilder> { + implements VisitableBuilder { public V1alpha1StorageVersionListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent flu } public V1alpha1StorageVersionListBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent fluent, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionListFluent fluent, Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersionList(), validationEnabled); } public V1alpha1StorageVersionListBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionList instance) { + V1alpha1StorageVersionListFluent fluent, V1alpha1StorageVersionList instance) { this(fluent, instance, false); } public V1alpha1StorageVersionListBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionList instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionListFluent fluent, + V1alpha1StorageVersionList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,12 @@ public V1alpha1StorageVersionListBuilder( this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionListBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionList instance) { + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionList instance) { this(instance, false); } public V1alpha1StorageVersionListBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionList instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +73,10 @@ public V1alpha1StorageVersionListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent fluent; - java.lang.Boolean validationEnabled; + V1alpha1StorageVersionListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionList build() { + public V1alpha1StorageVersionList build() { V1alpha1StorageVersionList buildable = new V1alpha1StorageVersionList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 a20c6a10ed..9842c2c880 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 @@ -23,25 +23,21 @@ public interface V1alpha1StorageVersionListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1alpha1StorageVersion item); + public A addToItems(Integer index, V1alpha1StorageVersion item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1alpha1StorageVersion item); + public A setToItems(Integer index, V1alpha1StorageVersion item); public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,91 +47,73 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildItem( - java.lang.Integer index); + public V1alpha1StorageVersion buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildFirstItem(); + public V1alpha1StorageVersion buildFirstItem(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildLastItem(); + public V1alpha1StorageVersion buildLastItem(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> - predicate); + public V1alpha1StorageVersion buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1alpha1StorageVersionListFluent.ItemsNested addNewItem(); public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1alpha1StorageVersion item); + V1alpha1StorageVersion item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1alpha1StorageVersion item); + public V1alpha1StorageVersionListFluent.ItemsNested setNewItemLike( + Integer index, V1alpha1StorageVersion item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1alpha1StorageVersionListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editFirstItem(); + public V1alpha1StorageVersionListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editLastItem(); + public V1alpha1StorageVersionListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> - predicate); + public V1alpha1StorageVersionListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - editMetadata(); + public V1alpha1StorageVersionListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - editOrNewMetadata(); + public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, @@ -146,8 +124,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java index a37fde7b5f..b28ed290a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluentImpl.java @@ -26,8 +26,7 @@ public class V1alpha1StorageVersionListFluentImpl implements V1alpha1StorageVersionListFluent { public V1alpha1StorageVersionListFluentImpl() {} - public V1alpha1StorageVersionListFluentImpl( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionList instance) { + public V1alpha1StorageVersionListFluentImpl(V1alpha1StorageVersionList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1alpha1StorageVersionListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1alpha1StorageVersion item) { + public A addToItems(Integer index, V1alpha1StorageVersion item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(item); + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1alpha1StorageVersion item) { + public A setToItems(Integer index, V1alpha1StorageVersion item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(item); + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -93,29 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(item); + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -123,9 +107,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(item); + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -134,11 +117,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVers return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -147,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder = each.next(); + V1alpha1StorageVersionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,32 +148,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildItem( - java.lang.Integer index) { + public V1alpha1StorageVersion buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildFirstItem() { + public V1alpha1StorageVersion buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildLastItem() { + public V1alpha1StorageVersion buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder item : items) { + public V1alpha1StorageVersion buildMatchingItem( + Predicate predicate) { + for (V1alpha1StorageVersionBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -202,11 +178,8 @@ public io.kubernetes.client.openapi.models.V1alpha1StorageVersion buildMatchingI return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionBuilder item : items) { if (predicate.test(item)) { return true; } @@ -214,14 +187,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersion item : items) { + this.items = new ArrayList(); + for (V1alpha1StorageVersion item : items) { this.addToItems(item); } } else { @@ -235,14 +207,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersion item : items) { + for (V1alpha1StorageVersion item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -251,42 +223,33 @@ public V1alpha1StorageVersionListFluent.ItemsNested addNewItem() { } public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1alpha1StorageVersion item) { + V1alpha1StorageVersion item) { return new V1alpha1StorageVersionListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1StorageVersion item) { - return new io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluentImpl - .ItemsNestedImpl(index, item); + public V1alpha1StorageVersionListFluent.ItemsNested setNewItemLike( + Integer index, V1alpha1StorageVersion item) { + return new V1alpha1StorageVersionListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1alpha1StorageVersionListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editFirstItem() { + public V1alpha1StorageVersionListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editLastItem() { + public V1alpha1StorageVersionListFluent.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 io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder> - predicate) { + public V1alpha1StorageVersionListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -298,16 +261,16 @@ public V1alpha1StorageVersionListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -316,25 +279,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -342,27 +308,20 @@ public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadata() { return new V1alpha1StorageVersionListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluentImpl - .MetadataNestedImpl(item); + public V1alpha1StorageVersionListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1alpha1StorageVersionListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - editMetadata() { + public V1alpha1StorageVersionListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - editOrNewMetadata() { + public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1alpha1StorageVersionListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -382,7 +341,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -407,22 +366,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1alpha1StorageVersionFluentImpl> - implements io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent.ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1alpha1StorageVersion item) { + implements V1alpha1StorageVersionListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1alpha1StorageVersion item) { this.index = index; this.builder = new V1alpha1StorageVersionBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder(this); + this.builder = new V1alpha1StorageVersionBuilder(this); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionBuilder builder; - java.lang.Integer index; + V1alpha1StorageVersionBuilder builder; + Integer index; public N and() { return (N) V1alpha1StorageVersionListFluentImpl.this.setToItems(index, builder.build()); @@ -435,19 +391,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1alpha1StorageVersionListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1alpha1StorageVersionListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1alpha1StorageVersionListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java index e82101e89e..10f348c1ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java @@ -16,9 +16,7 @@ public class V1alpha1StorageVersionStatusBuilder extends V1alpha1StorageVersionStatusFluentImpl - implements VisitableBuilder< - V1alpha1StorageVersionStatus, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusBuilder> { + implements VisitableBuilder { public V1alpha1StorageVersionStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent } public V1alpha1StorageVersionStatusBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1alpha1StorageVersionStatus(), validationEnabled); } public V1alpha1StorageVersionStatusBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus instance) { + V1alpha1StorageVersionStatusFluent fluent, V1alpha1StorageVersionStatus instance) { this(fluent, instance, false); } public V1alpha1StorageVersionStatusBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent fluent, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionStatusFluent fluent, + V1alpha1StorageVersionStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCommonEncodingVersion(instance.getCommonEncodingVersion()); @@ -57,14 +53,12 @@ public V1alpha1StorageVersionStatusBuilder( this.validationEnabled = validationEnabled; } - public V1alpha1StorageVersionStatusBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus instance) { + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatus instance) { this(instance, false); } public V1alpha1StorageVersionStatusBuilder( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus instance, - java.lang.Boolean validationEnabled) { + V1alpha1StorageVersionStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); @@ -75,10 +69,10 @@ public V1alpha1StorageVersionStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1alpha1StorageVersionStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus build() { + public V1alpha1StorageVersionStatus build() { V1alpha1StorageVersionStatus buildable = new V1alpha1StorageVersionStatus(); buildable.setCommonEncodingVersion(fluent.getCommonEncodingVersion()); buildable.setConditions(fluent.getConditions()); 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 84bae767cc..def8a75aef 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 @@ -23,28 +23,23 @@ public interface V1alpha1StorageVersionStatusFluent { public String getCommonEncodingVersion(); - public A withCommonEncodingVersion(java.lang.String commonEncodingVersion); + public A withCommonEncodingVersion(String commonEncodingVersion); public Boolean hasCommonEncodingVersion(); public A addToConditions(Integer index, V1alpha1StorageVersionCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item); + public A setToConditions(Integer index, V1alpha1StorageVersionCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items); - public A removeAllFromConditions( - java.util.Collection - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -55,160 +50,108 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildCondition( - java.lang.Integer index); + public V1alpha1StorageVersionCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildFirstCondition(); + public V1alpha1StorageVersionCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildLastCondition(); + public V1alpha1StorageVersionCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder> - predicate); + public V1alpha1StorageVersionCondition buildMatchingCondition( + Predicate predicate); - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder> - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item); + public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewConditionLike( + V1alpha1StorageVersionCondition item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item); + public V1alpha1StorageVersionStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1alpha1StorageVersionCondition item); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1alpha1StorageVersionStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editFirstCondition(); + public V1alpha1StorageVersionStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editLastCondition(); + public V1alpha1StorageVersionStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder> - predicate); + public V1alpha1StorageVersionStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public A addToStorageVersions(java.lang.Integer index, V1alpha1ServerStorageVersion item); + public A addToStorageVersions(Integer index, V1alpha1ServerStorageVersion item); - public A setToStorageVersions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item); + public A setToStorageVersions(Integer index, V1alpha1ServerStorageVersion item); public A addToStorageVersions( io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items); - public A addAllToStorageVersions( - java.util.Collection items); + public A addAllToStorageVersions(Collection items); public A removeFromStorageVersions( io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items); - public A removeAllFromStorageVersions( - java.util.Collection items); + public A removeAllFromStorageVersions(Collection items); public A removeMatchingFromStorageVersions( - java.util.function.Predicate predicate); + Predicate predicate); /** * This method has been deprecated, please use method buildStorageVersions instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getStorageVersions(); + @Deprecated + public List getStorageVersions(); - public java.util.List - buildStorageVersions(); + public List buildStorageVersions(); - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion buildStorageVersion( - java.lang.Integer index); + public V1alpha1ServerStorageVersion buildStorageVersion(Integer index); - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion - buildFirstStorageVersion(); + public V1alpha1ServerStorageVersion buildFirstStorageVersion(); - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion buildLastStorageVersion(); + public V1alpha1ServerStorageVersion buildLastStorageVersion(); - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion - buildMatchingStorageVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate); + public V1alpha1ServerStorageVersion buildMatchingStorageVersion( + Predicate predicate); - public java.lang.Boolean hasMatchingStorageVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate); + public Boolean hasMatchingStorageVersion( + Predicate predicate); - public A withStorageVersions( - java.util.List - storageVersions); + public A withStorageVersions(List storageVersions); public A withStorageVersions( io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions); - public java.lang.Boolean hasStorageVersions(); + public Boolean hasStorageVersions(); public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersion(); - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - addNewStorageVersionLike( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item); - - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - setNewStorageVersionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item); - - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editStorageVersion(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editFirstStorageVersion(); - - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editLastStorageVersion(); - - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editMatchingStorageVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate); + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersionLike( + V1alpha1ServerStorageVersion item); + + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested setNewStorageVersionLike( + Integer index, V1alpha1ServerStorageVersion item); + + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editStorageVersion( + Integer index); + + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editFirstStorageVersion(); + + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editLastStorageVersion(); + + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editMatchingStorageVersion( + Predicate predicate); public interface ConditionsNested extends Nested, @@ -220,7 +163,7 @@ public interface ConditionsNested } public interface StorageVersionsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1alpha1ServerStorageVersionFluent< V1alpha1StorageVersionStatusFluent.StorageVersionsNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java index f5b76e0178..893230ea2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1alpha1StorageVersionStatusFluentImpl implements V1alpha1StorageVersionStatusFluent { public V1alpha1StorageVersionStatusFluentImpl() {} - public V1alpha1StorageVersionStatusFluentImpl( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus instance) { + public V1alpha1StorageVersionStatusFluentImpl(V1alpha1StorageVersionStatus instance) { this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); this.withConditions(instance.getConditions()); @@ -37,13 +36,13 @@ public V1alpha1StorageVersionStatusFluentImpl( private String commonEncodingVersion; private ArrayList conditions; - private java.util.ArrayList storageVersions; + private ArrayList storageVersions; - public java.lang.String getCommonEncodingVersion() { + public String getCommonEncodingVersion() { return this.commonEncodingVersion; } - public A withCommonEncodingVersion(java.lang.String commonEncodingVersion) { + public A withCommonEncodingVersion(String commonEncodingVersion) { this.commonEncodingVersion = commonEncodingVersion; return (A) this; } @@ -54,12 +53,10 @@ public Boolean hasCommonEncodingVersion() { public A addToConditions(Integer index, V1alpha1StorageVersionCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(item); + V1alpha1StorageVersionConditionBuilder builder = + new V1alpha1StorageVersionConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -67,16 +64,12 @@ public A addToConditions(Integer index, V1alpha1StorageVersionCondition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item) { + public A setToConditions(Integer index, V1alpha1StorageVersionCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(item); + V1alpha1StorageVersionConditionBuilder builder = + new V1alpha1StorageVersionConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -93,29 +86,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(item); + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = + new V1alpha1StorageVersionConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -124,9 +112,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(item); + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = + new V1alpha1StorageVersionConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -135,12 +123,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item : items) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = + new V1alpha1StorageVersionConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -150,15 +136,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder = - each.next(); + V1alpha1StorageVersionConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -173,34 +156,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildCondition( - java.lang.Integer index) { + public V1alpha1StorageVersionCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildFirstCondition() { + public V1alpha1StorageVersionCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildLastCondition() { + public V1alpha1StorageVersionCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder item : - conditions) { + public V1alpha1StorageVersionCondition buildMatchingCondition( + Predicate predicate) { + for (V1alpha1StorageVersionConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -208,12 +186,8 @@ public io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition build return null; } - public java.lang.Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder item : - conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1alpha1StorageVersionConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -221,15 +195,13 @@ public java.lang.Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1alpha1StorageVersionCondition item : conditions) { this.addToConditions(item); } } else { @@ -244,14 +216,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item : conditions) { + for (V1alpha1StorageVersionCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -259,46 +231,36 @@ public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewCondition() return new V1alpha1StorageVersionStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - addNewConditionLike( - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item) { + public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewConditionLike( + V1alpha1StorageVersionCondition item) { return new V1alpha1StorageVersionStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item) { - return new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1alpha1StorageVersionStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1alpha1StorageVersionCondition item) { + return new V1alpha1StorageVersionStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1alpha1StorageVersionStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editFirstCondition() { + public V1alpha1StorageVersionStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editLastCondition() { + public V1alpha1StorageVersionStatusFluent.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 io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder> - predicate) { + public V1alpha1StorageVersionStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -310,14 +272,11 @@ public V1alpha1StorageVersionStatusFluent.ConditionsNested addNewCondition() return setNewConditionLike(index, buildCondition(index)); } - public A addToStorageVersions(java.lang.Integer index, V1alpha1ServerStorageVersion item) { + public A addToStorageVersions(Integer index, V1alpha1ServerStorageVersion item) { if (this.storageVersions == null) { - this.storageVersions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder>(); + this.storageVersions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(item); + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); _visitables .get("storageVersions") .add(index >= 0 ? index : _visitables.get("storageVersions").size(), builder); @@ -325,16 +284,11 @@ public A addToStorageVersions(java.lang.Integer index, V1alpha1ServerStorageVers return (A) this; } - public A setToStorageVersions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item) { + public A setToStorageVersions(Integer index, V1alpha1ServerStorageVersion item) { if (this.storageVersions == null) { - this.storageVersions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder>(); + this.storageVersions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(item); + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); if (index < 0 || index >= _visitables.get("storageVersions").size()) { _visitables.get("storageVersions").add(builder); } else { @@ -351,30 +305,22 @@ public A setToStorageVersions( public A addToStorageVersions( io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { if (this.storageVersions == null) { - this.storageVersions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder>(); + this.storageVersions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(item); + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); _visitables.get("storageVersions").add(builder); this.storageVersions.add(builder); } return (A) this; } - public A addAllToStorageVersions( - java.util.Collection - items) { + public A addAllToStorageVersions(Collection items) { if (this.storageVersions == null) { - this.storageVersions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder>(); + this.storageVersions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(item); + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); _visitables.get("storageVersions").add(builder); this.storageVersions.add(builder); } @@ -383,9 +329,8 @@ public A addAllToStorageVersions( public A removeFromStorageVersions( io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(item); + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); _visitables.get("storageVersions").remove(builder); if (this.storageVersions != null) { this.storageVersions.remove(builder); @@ -394,12 +339,9 @@ public A removeFromStorageVersions( return (A) this; } - public A removeAllFromStorageVersions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item : items) { - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(item); + public A removeAllFromStorageVersions(Collection items) { + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); _visitables.get("storageVersions").remove(builder); if (this.storageVersions != null) { this.storageVersions.remove(builder); @@ -409,15 +351,12 @@ public A removeAllFromStorageVersions( } public A removeMatchingFromStorageVersions( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate) { + Predicate predicate) { if (storageVersions == null) return (A) this; - final Iterator each = - storageVersions.iterator(); + final Iterator each = storageVersions.iterator(); final List visitables = _visitables.get("storageVersions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder = each.next(); + V1alpha1ServerStorageVersionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -431,39 +370,30 @@ public A removeMatchingFromStorageVersions( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getStorageVersions() { + @Deprecated + public List getStorageVersions() { return storageVersions != null ? build(storageVersions) : null; } - public java.util.List - buildStorageVersions() { + public List buildStorageVersions() { return storageVersions != null ? build(storageVersions) : null; } - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion buildStorageVersion( - java.lang.Integer index) { + public V1alpha1ServerStorageVersion buildStorageVersion(Integer index) { return this.storageVersions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion - buildFirstStorageVersion() { + public V1alpha1ServerStorageVersion buildFirstStorageVersion() { return this.storageVersions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion - buildLastStorageVersion() { + public V1alpha1ServerStorageVersion buildLastStorageVersion() { return this.storageVersions.get(storageVersions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion - buildMatchingStorageVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder item : - storageVersions) { + public V1alpha1ServerStorageVersion buildMatchingStorageVersion( + Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { if (predicate.test(item)) { return item.build(); } @@ -471,12 +401,9 @@ public io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion buildSto return null; } - public java.lang.Boolean hasMatchingStorageVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder item : - storageVersions) { + public Boolean hasMatchingStorageVersion( + Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { if (predicate.test(item)) { return true; } @@ -484,16 +411,13 @@ public java.lang.Boolean hasMatchingStorageVersion( return false; } - public A withStorageVersions( - java.util.List - storageVersions) { + public A withStorageVersions(List storageVersions) { if (this.storageVersions != null) { _visitables.get("storageVersions").removeAll(this.storageVersions); } if (storageVersions != null) { - this.storageVersions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item : - storageVersions) { + this.storageVersions = new ArrayList(); + for (V1alpha1ServerStorageVersion item : storageVersions) { this.addToStorageVersions(item); } } else { @@ -508,15 +432,14 @@ public A withStorageVersions( this.storageVersions.clear(); } if (storageVersions != null) { - for (io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item : - storageVersions) { + for (V1alpha1ServerStorageVersion item : storageVersions) { this.addToStorageVersions(item); } } return (A) this; } - public java.lang.Boolean hasStorageVersions() { + public Boolean hasStorageVersions() { return storageVersions != null && !storageVersions.isEmpty(); } @@ -524,60 +447,38 @@ public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorage return new V1alpha1StorageVersionStatusFluentImpl.StorageVersionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - addNewStorageVersionLike( - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item) { - return new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluentImpl - .StorageVersionsNestedImpl(-1, item); + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested addNewStorageVersionLike( + V1alpha1ServerStorageVersion item) { + return new V1alpha1StorageVersionStatusFluentImpl.StorageVersionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - setNewStorageVersionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item) { - return new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluentImpl - .StorageVersionsNestedImpl(index, item); + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested setNewStorageVersionLike( + Integer index, V1alpha1ServerStorageVersion item) { + return new V1alpha1StorageVersionStatusFluentImpl.StorageVersionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editStorageVersion(java.lang.Integer index) { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editStorageVersion( + Integer index) { if (storageVersions.size() <= index) throw new RuntimeException("Can't edit storageVersions. Index exceeds size."); return setNewStorageVersionLike(index, buildStorageVersion(index)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editFirstStorageVersion() { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editFirstStorageVersion() { if (storageVersions.size() == 0) throw new RuntimeException("Can't edit first storageVersions. The list is empty."); return setNewStorageVersionLike(0, buildStorageVersion(0)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editLastStorageVersion() { + public V1alpha1StorageVersionStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - A> - editMatchingStorageVersion( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder> - predicate) { + public V1alpha1StorageVersionStatusFluent.StorageVersionsNested editMatchingStorageVersion( + Predicate predicate) { int index = -1; for (int i = 0; i < storageVersions.size(); i++) { if (predicate.test(storageVersions.get(i))) { @@ -610,7 +511,7 @@ public int hashCode() { commonEncodingVersion, conditions, storageVersions, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (commonEncodingVersion != null) { @@ -632,25 +533,19 @@ public java.lang.String toString() { class ConditionsNestedImpl extends V1alpha1StorageVersionConditionFluentImpl< V1alpha1StorageVersionStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition item) { + implements V1alpha1StorageVersionStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1alpha1StorageVersionCondition item) { this.index = index; this.builder = new V1alpha1StorageVersionConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder(this); + this.builder = new V1alpha1StorageVersionConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1alpha1StorageVersionConditionBuilder builder; - java.lang.Integer index; + V1alpha1StorageVersionConditionBuilder builder; + Integer index; public N and() { return (N) @@ -665,25 +560,19 @@ public N endCondition() { class StorageVersionsNestedImpl extends V1alpha1ServerStorageVersionFluentImpl< V1alpha1StorageVersionStatusFluent.StorageVersionsNested> - implements io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatusFluent - .StorageVersionsNested< - N>, - io.kubernetes.client.fluent.Nested { - StorageVersionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion item) { + implements V1alpha1StorageVersionStatusFluent.StorageVersionsNested, Nested { + StorageVersionsNestedImpl(Integer index, V1alpha1ServerStorageVersion item) { this.index = index; this.builder = new V1alpha1ServerStorageVersionBuilder(this, item); } StorageVersionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder(this); + this.builder = new V1alpha1ServerStorageVersionBuilder(this); } - io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersionBuilder builder; - java.lang.Integer index; + V1alpha1ServerStorageVersionBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverBuilder.java deleted file mode 100644 index 3b38e55553..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1AllowedCSIDriverBuilder - extends V1beta1AllowedCSIDriverFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver, - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> { - public V1beta1AllowedCSIDriverBuilder() { - this(false); - } - - public V1beta1AllowedCSIDriverBuilder(Boolean validationEnabled) { - this(new V1beta1AllowedCSIDriver(), validationEnabled); - } - - public V1beta1AllowedCSIDriverBuilder(V1beta1AllowedCSIDriverFluent fluent) { - this(fluent, false); - } - - public V1beta1AllowedCSIDriverBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1AllowedCSIDriver(), validationEnabled); - } - - public V1beta1AllowedCSIDriverBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverFluent fluent, - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver instance) { - this(fluent, instance, false); - } - - public V1beta1AllowedCSIDriverBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverFluent fluent, - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1AllowedCSIDriverBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver instance) { - this(instance, false); - } - - public V1beta1AllowedCSIDriverBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver build() { - V1beta1AllowedCSIDriver buildable = new V1beta1AllowedCSIDriver(); - buildable.setName(fluent.getName()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverFluent.java deleted file mode 100644 index 35d0ca9f09..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverFluent.java +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1AllowedCSIDriverFluent> - extends Fluent { - public String getName(); - - public A withName(java.lang.String name); - - public Boolean hasName(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverFluentImpl.java deleted file mode 100644 index af4e63681e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriverFluentImpl.java +++ /dev/null @@ -1,65 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1AllowedCSIDriverFluentImpl> - extends BaseFluent implements V1beta1AllowedCSIDriverFluent { - public V1beta1AllowedCSIDriverFluentImpl() {} - - public V1beta1AllowedCSIDriverFluentImpl( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver instance) { - this.withName(instance.getName()); - } - - private String name; - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.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; - V1beta1AllowedCSIDriverFluentImpl that = (V1beta1AllowedCSIDriverFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - 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/V1beta1AllowedFlexVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeBuilder.java deleted file mode 100644 index c4d68a7d6b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1AllowedFlexVolumeBuilder - extends V1beta1AllowedFlexVolumeFluentImpl - implements VisitableBuilder< - V1beta1AllowedFlexVolume, - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> { - public V1beta1AllowedFlexVolumeBuilder() { - this(false); - } - - public V1beta1AllowedFlexVolumeBuilder(Boolean validationEnabled) { - this(new V1beta1AllowedFlexVolume(), validationEnabled); - } - - public V1beta1AllowedFlexVolumeBuilder(V1beta1AllowedFlexVolumeFluent fluent) { - this(fluent, false); - } - - public V1beta1AllowedFlexVolumeBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1AllowedFlexVolume(), validationEnabled); - } - - public V1beta1AllowedFlexVolumeBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeFluent fluent, - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume instance) { - this(fluent, instance, false); - } - - public V1beta1AllowedFlexVolumeBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeFluent fluent, - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withDriver(instance.getDriver()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1AllowedFlexVolumeBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume instance) { - this(instance, false); - } - - public V1beta1AllowedFlexVolumeBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withDriver(instance.getDriver()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume build() { - V1beta1AllowedFlexVolume buildable = new V1beta1AllowedFlexVolume(); - buildable.setDriver(fluent.getDriver()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeFluent.java deleted file mode 100644 index be9adbb3ab..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeFluent.java +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1AllowedFlexVolumeFluent> - extends Fluent { - public String getDriver(); - - public A withDriver(java.lang.String driver); - - public Boolean hasDriver(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeFluentImpl.java deleted file mode 100644 index 50e8bd2948..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolumeFluentImpl.java +++ /dev/null @@ -1,65 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1AllowedFlexVolumeFluentImpl> - extends BaseFluent implements V1beta1AllowedFlexVolumeFluent { - public V1beta1AllowedFlexVolumeFluentImpl() {} - - public V1beta1AllowedFlexVolumeFluentImpl( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume instance) { - this.withDriver(instance.getDriver()); - } - - private String driver; - - public java.lang.String getDriver() { - return this.driver; - } - - public A withDriver(java.lang.String driver) { - this.driver = driver; - return (A) this; - } - - public Boolean hasDriver() { - return this.driver != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1AllowedFlexVolumeFluentImpl that = (V1beta1AllowedFlexVolumeFluentImpl) o; - if (driver != null ? !driver.equals(that.driver) : that.driver != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(driver, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driver != null) { - sb.append("driver:"); - sb.append(driver); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathBuilder.java deleted file mode 100644 index 37bc292d79..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1AllowedHostPathBuilder - extends V1beta1AllowedHostPathFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath, V1beta1AllowedHostPathBuilder> { - public V1beta1AllowedHostPathBuilder() { - this(false); - } - - public V1beta1AllowedHostPathBuilder(Boolean validationEnabled) { - this(new V1beta1AllowedHostPath(), validationEnabled); - } - - public V1beta1AllowedHostPathBuilder(V1beta1AllowedHostPathFluent fluent) { - this(fluent, false); - } - - public V1beta1AllowedHostPathBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1AllowedHostPath(), validationEnabled); - } - - public V1beta1AllowedHostPathBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathFluent fluent, - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath instance) { - this(fluent, instance, false); - } - - public V1beta1AllowedHostPathBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathFluent fluent, - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withPathPrefix(instance.getPathPrefix()); - - fluent.withReadOnly(instance.getReadOnly()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1AllowedHostPathBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath instance) { - this(instance, false); - } - - public V1beta1AllowedHostPathBuilder( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withPathPrefix(instance.getPathPrefix()); - - this.withReadOnly(instance.getReadOnly()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath build() { - V1beta1AllowedHostPath buildable = new V1beta1AllowedHostPath(); - buildable.setPathPrefix(fluent.getPathPrefix()); - buildable.setReadOnly(fluent.getReadOnly()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathFluent.java deleted file mode 100644 index f89952cc4e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathFluent.java +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1AllowedHostPathFluent> - extends Fluent { - public String getPathPrefix(); - - public A withPathPrefix(java.lang.String pathPrefix); - - public Boolean hasPathPrefix(); - - public java.lang.Boolean getReadOnly(); - - public A withReadOnly(java.lang.Boolean readOnly); - - public java.lang.Boolean hasReadOnly(); - - public A withReadOnly(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathFluentImpl.java deleted file mode 100644 index 5fb4900047..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPathFluentImpl.java +++ /dev/null @@ -1,91 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1AllowedHostPathFluentImpl> - extends BaseFluent implements V1beta1AllowedHostPathFluent { - public V1beta1AllowedHostPathFluentImpl() {} - - public V1beta1AllowedHostPathFluentImpl( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath instance) { - this.withPathPrefix(instance.getPathPrefix()); - - this.withReadOnly(instance.getReadOnly()); - } - - private String pathPrefix; - private Boolean readOnly; - - public java.lang.String getPathPrefix() { - return this.pathPrefix; - } - - public A withPathPrefix(java.lang.String pathPrefix) { - this.pathPrefix = pathPrefix; - return (A) this; - } - - public java.lang.Boolean hasPathPrefix() { - return this.pathPrefix != null; - } - - public java.lang.Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(java.lang.Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; - } - - public java.lang.Boolean hasReadOnly() { - return this.readOnly != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1AllowedHostPathFluentImpl that = (V1beta1AllowedHostPathFluentImpl) o; - if (pathPrefix != null ? !pathPrefix.equals(that.pathPrefix) : that.pathPrefix != null) - return false; - if (readOnly != null ? !readOnly.equals(that.readOnly) : that.readOnly != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(pathPrefix, readOnly, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (pathPrefix != null) { - sb.append("pathPrefix:"); - sb.append(pathPrefix + ","); - } - if (readOnly != null) { - sb.append("readOnly:"); - sb.append(readOnly); - } - sb.append("}"); - return sb.toString(); - } - - public A withReadOnly() { - return withReadOnly(true); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java index 4459d14e21..b02b87bd47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityBuilder.java @@ -16,9 +16,7 @@ public class V1beta1CSIStorageCapacityBuilder extends V1beta1CSIStorageCapacityFluentImpl - implements VisitableBuilder< - V1beta1CSIStorageCapacity, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> { + implements VisitableBuilder { public V1beta1CSIStorageCapacityBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacityFluent fluen } public V1beta1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1CSIStorageCapacityFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1CSIStorageCapacity(), validationEnabled); } public V1beta1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity instance) { + V1beta1CSIStorageCapacityFluent fluent, V1beta1CSIStorageCapacity instance) { this(fluent, instance, false); } public V1beta1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity instance, - java.lang.Boolean validationEnabled) { + V1beta1CSIStorageCapacityFluent fluent, + V1beta1CSIStorageCapacity instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -65,14 +61,12 @@ public V1beta1CSIStorageCapacityBuilder( this.validationEnabled = validationEnabled; } - public V1beta1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity instance) { + public V1beta1CSIStorageCapacityBuilder(V1beta1CSIStorageCapacity instance) { this(instance, false); } public V1beta1CSIStorageCapacityBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity instance, - java.lang.Boolean validationEnabled) { + V1beta1CSIStorageCapacity instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -91,10 +85,10 @@ public V1beta1CSIStorageCapacityBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1CSIStorageCapacityFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity build() { + public V1beta1CSIStorageCapacity build() { V1beta1CSIStorageCapacity buildable = new V1beta1CSIStorageCapacity(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setCapacity(fluent.getCapacity()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java index b7e68d7ca7..2fce2d414a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluent.java @@ -21,31 +21,31 @@ public interface V1beta1CSIStorageCapacityFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public Quantity getCapacity(); - public A withCapacity(io.kubernetes.client.custom.Quantity capacity); + public A withCapacity(Quantity capacity); - public java.lang.Boolean hasCapacity(); + public Boolean hasCapacity(); - public A withNewCapacity(java.lang.String value); + public A withNewCapacity(String value); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public io.kubernetes.client.custom.Quantity getMaximumVolumeSize(); + public Quantity getMaximumVolumeSize(); - public A withMaximumVolumeSize(io.kubernetes.client.custom.Quantity maximumVolumeSize); + public A withMaximumVolumeSize(Quantity maximumVolumeSize); - public java.lang.Boolean hasMaximumVolumeSize(); + public Boolean hasMaximumVolumeSize(); - public A withNewMaximumVolumeSize(java.lang.String value); + public A withNewMaximumVolumeSize(String value); /** * This method has been deprecated, please use method buildMetadata instead. @@ -55,59 +55,53 @@ public interface V1beta1CSIStorageCapacityFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - editMetadata(); + public V1beta1CSIStorageCapacityFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadata(); + public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildNodeTopology instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1LabelSelector getNodeTopology(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildNodeTopology(); + public V1LabelSelector buildNodeTopology(); - public A withNodeTopology(io.kubernetes.client.openapi.models.V1LabelSelector nodeTopology); + public A withNodeTopology(V1LabelSelector nodeTopology); - public java.lang.Boolean hasNodeTopology(); + public Boolean hasNodeTopology(); public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - withNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( + V1LabelSelector item); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - editNodeTopology(); + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopology(); + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( + V1LabelSelector item); - public java.lang.String getStorageClassName(); + public String getStorageClassName(); - public A withStorageClassName(java.lang.String storageClassName); + public A withStorageClassName(String storageClassName); - public java.lang.Boolean hasStorageClassName(); + public Boolean hasStorageClassName(); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -117,7 +111,7 @@ public interface MetadataNested } public interface NodeTopologyNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1LabelSelectorFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java index f9298d145d..65dd0e483d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityFluentImpl.java @@ -22,8 +22,7 @@ public class V1beta1CSIStorageCapacityFluentImpl implements V1beta1CSIStorageCapacityFluent { public V1beta1CSIStorageCapacityFluentImpl() {} - public V1beta1CSIStorageCapacityFluentImpl( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity instance) { + public V1beta1CSIStorageCapacityFluentImpl(V1beta1CSIStorageCapacity instance) { this.withApiVersion(instance.getApiVersion()); this.withCapacity(instance.getCapacity()); @@ -41,17 +40,17 @@ public V1beta1CSIStorageCapacityFluentImpl( private String apiVersion; private Quantity capacity; - private java.lang.String kind; - private io.kubernetes.client.custom.Quantity maximumVolumeSize; + private String kind; + private Quantity maximumVolumeSize; private V1ObjectMetaBuilder metadata; private V1LabelSelectorBuilder nodeTopology; - private java.lang.String storageClassName; + private String storageClassName; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -60,50 +59,50 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public io.kubernetes.client.custom.Quantity getCapacity() { + public Quantity getCapacity() { return this.capacity; } - public A withCapacity(io.kubernetes.client.custom.Quantity capacity) { + public A withCapacity(Quantity capacity) { this.capacity = capacity; return (A) this; } - public java.lang.Boolean hasCapacity() { + public Boolean hasCapacity() { return this.capacity != null; } - public A withNewCapacity(java.lang.String value) { + public A withNewCapacity(String value) { return (A) withCapacity(new Quantity(value)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public io.kubernetes.client.custom.Quantity getMaximumVolumeSize() { + public Quantity getMaximumVolumeSize() { return this.maximumVolumeSize; } - public A withMaximumVolumeSize(io.kubernetes.client.custom.Quantity maximumVolumeSize) { + public A withMaximumVolumeSize(Quantity maximumVolumeSize) { this.maximumVolumeSize = maximumVolumeSize; return (A) this; } - public java.lang.Boolean hasMaximumVolumeSize() { + public Boolean hasMaximumVolumeSize() { return this.maximumVolumeSize != null; } - public A withNewMaximumVolumeSize(java.lang.String value) { + public A withNewMaximumVolumeSize(String value) { return (A) withMaximumVolumeSize(new Quantity(value)); } @@ -113,24 +112,27 @@ public A withNewMaximumVolumeSize(java.lang.String value) { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -138,26 +140,21 @@ public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadata() { return new V1beta1CSIStorageCapacityFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta1CSIStorageCapacityFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - editMetadata() { + public V1beta1CSIStorageCapacityFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadata() { + public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta1CSIStorageCapacityFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -166,25 +163,28 @@ public V1beta1CSIStorageCapacityFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getNodeTopology() { + @Deprecated + public V1LabelSelector getNodeTopology() { return this.nodeTopology != null ? this.nodeTopology.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildNodeTopology() { + public V1LabelSelector buildNodeTopology() { return this.nodeTopology != null ? this.nodeTopology.build() : null; } - public A withNodeTopology(io.kubernetes.client.openapi.models.V1LabelSelector nodeTopology) { + public A withNodeTopology(V1LabelSelector nodeTopology) { _visitables.get("nodeTopology").remove(this.nodeTopology); if (nodeTopology != null) { this.nodeTopology = new V1LabelSelectorBuilder(nodeTopology); _visitables.get("nodeTopology").add(this.nodeTopology); + } else { + this.nodeTopology = null; + _visitables.get("nodeTopology").remove(this.nodeTopology); } return (A) this; } - public java.lang.Boolean hasNodeTopology() { + public Boolean hasNodeTopology() { return this.nodeTopology != null; } @@ -192,40 +192,35 @@ public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopology return new V1beta1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - withNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluentImpl - .NodeTopologyNestedImpl(item); + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested withNewNodeTopologyLike( + V1LabelSelector item) { + return new V1beta1CSIStorageCapacityFluentImpl.NodeTopologyNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - editNodeTopology() { + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editNodeTopology() { return withNewNodeTopologyLike(getNodeTopology()); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopology() { + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopology() { return withNewNodeTopologyLike( - getNodeTopology() != null - ? getNodeTopology() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getNodeTopology() != null ? getNodeTopology() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.NodeTopologyNested - editOrNewNodeTopologyLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V1beta1CSIStorageCapacityFluent.NodeTopologyNested editOrNewNodeTopologyLike( + V1LabelSelector item) { return withNewNodeTopologyLike(getNodeTopology() != null ? getNodeTopology() : item); } - public java.lang.String getStorageClassName() { + public String getStorageClassName() { return this.storageClassName; } - public A withStorageClassName(java.lang.String storageClassName) { + public A withStorageClassName(String storageClassName) { this.storageClassName = storageClassName; return (A) this; } - public java.lang.Boolean hasStorageClassName() { + public Boolean hasStorageClassName() { return this.storageClassName != null; } @@ -261,7 +256,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -298,18 +293,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent.MetadataNested< - N>, - Nested { + implements V1beta1CSIStorageCapacityFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1beta1CSIStorageCapacityFluentImpl.this.withMetadata(builder.build()); @@ -322,19 +315,16 @@ public N endMetadata() { class NodeTopologyNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityFluent - .NodeTopologyNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta1CSIStorageCapacityFluent.NodeTopologyNested, Nested { NodeTopologyNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } NodeTopologyNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V1beta1CSIStorageCapacityFluentImpl.this.withNodeTopology(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java index 19934ac2df..890fd119ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListBuilder.java @@ -17,8 +17,7 @@ public class V1beta1CSIStorageCapacityListBuilder extends V1beta1CSIStorageCapacityListFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityList, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListBuilder> { + V1beta1CSIStorageCapacityList, V1beta1CSIStorageCapacityListBuilder> { public V1beta1CSIStorageCapacityListBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityListFluent< } public V1beta1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1CSIStorageCapacityListFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1CSIStorageCapacityList(), validationEnabled); } public V1beta1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityList instance) { + V1beta1CSIStorageCapacityListFluent fluent, V1beta1CSIStorageCapacityList instance) { this(fluent, instance, false); } public V1beta1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityList instance, - java.lang.Boolean validationEnabled) { + V1beta1CSIStorageCapacityListFluent fluent, + V1beta1CSIStorageCapacityList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +56,12 @@ public V1beta1CSIStorageCapacityListBuilder( this.validationEnabled = validationEnabled; } - public V1beta1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityList instance) { + public V1beta1CSIStorageCapacityListBuilder(V1beta1CSIStorageCapacityList instance) { this(instance, false); } public V1beta1CSIStorageCapacityListBuilder( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityList instance, - java.lang.Boolean validationEnabled) { + V1beta1CSIStorageCapacityList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +74,10 @@ public V1beta1CSIStorageCapacityListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1CSIStorageCapacityListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityList build() { + public V1beta1CSIStorageCapacityList build() { V1beta1CSIStorageCapacityList buildable = new V1beta1CSIStorageCapacityList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java index 04ab67796a..0862289474 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluent.java @@ -24,25 +24,21 @@ public interface V1beta1CSIStorageCapacityListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item); + public A addToItems(Integer index, V1beta1CSIStorageCapacity item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item); + public A setToItems(Integer index, V1beta1CSIStorageCapacity item); public A addToItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -52,92 +48,74 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildItem( - java.lang.Integer index); + public V1beta1CSIStorageCapacity buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildFirstItem(); + public V1beta1CSIStorageCapacity buildFirstItem(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildLastItem(); + public V1beta1CSIStorageCapacity buildLastItem(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> - predicate); + public V1beta1CSIStorageCapacity buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItem(); public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item); + V1beta1CSIStorageCapacity item); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item); + public V1beta1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( + Integer index, V1beta1CSIStorageCapacity item); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editItem(java.lang.Integer index); + public V1beta1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editFirstItem(); + public V1beta1CSIStorageCapacityListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editLastItem(); + public V1beta1CSIStorageCapacityListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> - predicate); + public V1beta1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - editMetadata(); + public V1beta1CSIStorageCapacityListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadata(); + public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -148,8 +126,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java index 972cee19b4..efc882af47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityListFluentImpl.java @@ -39,14 +39,14 @@ public V1beta1CSIStorageCapacityListFluentImpl(V1beta1CSIStorageCapacityList ins private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,29 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item) { + public A addToItems(Integer index, V1beta1CSIStorageCapacity item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(item); + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item) { + public A setToItems(Integer index, V1beta1CSIStorageCapacity item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(item); + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -93,29 +85,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(item); + for (V1beta1CSIStorageCapacity item : items) { + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addAllToItems( - Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(item); + for (V1beta1CSIStorageCapacity item : items) { + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -123,9 +108,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity... items) { - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(item); + for (V1beta1CSIStorageCapacity item : items) { + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -134,11 +118,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCa return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item : items) { - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1beta1CSIStorageCapacity item : items) { + V1beta1CSIStorageCapacityBuilder builder = new V1beta1CSIStorageCapacityBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -147,14 +129,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder = each.next(); + V1beta1CSIStorageCapacityBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -169,33 +149,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildItem( - java.lang.Integer index) { + public V1beta1CSIStorageCapacity buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildFirstItem() { + public V1beta1CSIStorageCapacity buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildLastItem() { + public V1beta1CSIStorageCapacity buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder item : items) { + public V1beta1CSIStorageCapacity buildMatchingItem( + Predicate predicate) { + for (V1beta1CSIStorageCapacityBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -203,11 +179,8 @@ public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity buildMatchi return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1beta1CSIStorageCapacityBuilder item : items) { if (predicate.test(item)) { return true; } @@ -215,14 +188,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item : items) { + this.items = new ArrayList(); + for (V1beta1CSIStorageCapacity item : items) { this.addToItems(item); } } else { @@ -236,14 +208,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item : items) { + for (V1beta1CSIStorageCapacity item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -251,43 +223,34 @@ public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItem() { return new V1beta1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item) { + public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItemLike( + V1beta1CSIStorageCapacity item) { return new V1beta1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item) { - return new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluentImpl - .ItemsNestedImpl(index, item); + public V1beta1CSIStorageCapacityListFluent.ItemsNested setNewItemLike( + Integer index, V1beta1CSIStorageCapacity item) { + return new V1beta1CSIStorageCapacityListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V1beta1CSIStorageCapacityListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editFirstItem() { + public V1beta1CSIStorageCapacityListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editLastItem() { + public V1beta1CSIStorageCapacityListFluent.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 io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder> - predicate) { + public V1beta1CSIStorageCapacityListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -299,16 +262,16 @@ public V1beta1CSIStorageCapacityListFluent.ItemsNested addNewItem() { return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -317,25 +280,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -343,27 +309,22 @@ public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadata() { return new V1beta1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluentImpl - .MetadataNestedImpl(item); + public V1beta1CSIStorageCapacityListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1beta1CSIStorageCapacityListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - editMetadata() { + public V1beta1CSIStorageCapacityListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadata() { + public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1beta1CSIStorageCapacityListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -383,7 +344,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -410,20 +371,18 @@ class ItemsNestedImpl extends V1beta1CSIStorageCapacityFluentImpl< V1beta1CSIStorageCapacityListFluent.ItemsNested> implements V1beta1CSIStorageCapacityListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacity item) { + ItemsNestedImpl(Integer index, V1beta1CSIStorageCapacity item) { this.index = index; this.builder = new V1beta1CSIStorageCapacityBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder(this); + this.builder = new V1beta1CSIStorageCapacityBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityBuilder builder; - java.lang.Integer index; + V1beta1CSIStorageCapacityBuilder builder; + Integer index; public N and() { return (N) V1beta1CSIStorageCapacityListFluentImpl.this.setToItems(index, builder.build()); @@ -436,19 +395,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CSIStorageCapacityListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta1CSIStorageCapacityListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1beta1CSIStorageCapacityListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobBuilder.java deleted file mode 100644 index a6cb5b935e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1CronJobBuilder extends V1beta1CronJobFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1CronJob, - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder> { - public V1beta1CronJobBuilder() { - this(false); - } - - public V1beta1CronJobBuilder(Boolean validationEnabled) { - this(new V1beta1CronJob(), validationEnabled); - } - - public V1beta1CronJobBuilder(V1beta1CronJobFluent fluent) { - this(fluent, false); - } - - public V1beta1CronJobBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1CronJob(), validationEnabled); - } - - public V1beta1CronJobBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJob instance) { - this(fluent, instance, false); - } - - public V1beta1CronJobBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJob instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withSpec(instance.getSpec()); - - fluent.withStatus(instance.getStatus()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1CronJobBuilder(io.kubernetes.client.openapi.models.V1beta1CronJob instance) { - this(instance, false); - } - - public V1beta1CronJobBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJob instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.withStatus(instance.getStatus()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1CronJobFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1CronJob build() { - V1beta1CronJob buildable = new V1beta1CronJob(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setSpec(fluent.getSpec()); - buildable.setStatus(fluent.getStatus()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobFluent.java deleted file mode 100644 index 930e2bfd5d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobFluent.java +++ /dev/null @@ -1,133 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1CronJobFluent> extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1CronJobFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1CronJobSpec getSpec(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpec buildSpec(); - - public A withSpec(io.kubernetes.client.openapi.models.V1beta1CronJobSpec spec); - - public java.lang.Boolean hasSpec(); - - public V1beta1CronJobFluent.SpecNested withNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested editSpec(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested editOrNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec item); - - /** - * This method has been deprecated, please use method buildStatus instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1CronJobStatus getStatus(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatus buildStatus(); - - public A withStatus(io.kubernetes.client.openapi.models.V1beta1CronJobStatus status); - - public java.lang.Boolean hasStatus(); - - public V1beta1CronJobFluent.StatusNested withNewStatus(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1CronJobStatus item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested editStatus(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested editOrNewStatus(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1beta1CronJobStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1beta1CronJobSpecFluent> { - public N and(); - - public N endSpec(); - } - - public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1beta1CronJobStatusFluent> { - public N and(); - - public N endStatus(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobFluentImpl.java deleted file mode 100644 index 978ba8e49c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobFluentImpl.java +++ /dev/null @@ -1,336 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1CronJobFluentImpl> extends BaseFluent - implements V1beta1CronJobFluent { - public V1beta1CronJobFluentImpl() {} - - public V1beta1CronJobFluentImpl(io.kubernetes.client.openapi.models.V1beta1CronJob instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.withStatus(instance.getStatus()); - } - - private String apiVersion; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1CronJobSpecBuilder spec; - private V1beta1CronJobStatusBuilder status; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1CronJobFluent.MetadataNested withNewMetadata() { - return new V1beta1CronJobFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new V1beta1CronJobFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1CronJobSpec getSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(io.kubernetes.client.openapi.models.V1beta1CronJobSpec spec) { - _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1beta1CronJobSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } - return (A) this; - } - - public java.lang.Boolean hasSpec() { - return this.spec != null; - } - - public V1beta1CronJobFluent.SpecNested withNewSpec() { - return new V1beta1CronJobFluentImpl.SpecNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec item) { - return new io.kubernetes.client.openapi.models.V1beta1CronJobFluentImpl.SpecNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested editSpec() { - return withNewSpecLike(getSpec()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta1CronJobSpecBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); - } - - /** - * This method has been deprecated, please use method buildStatus instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1CronJobStatus getStatus() { - return this.status != null ? this.status.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(io.kubernetes.client.openapi.models.V1beta1CronJobStatus status) { - _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1beta1CronJobStatusBuilder(status); - _visitables.get("status").add(this.status); - } - return (A) this; - } - - public java.lang.Boolean hasStatus() { - return this.status != null; - } - - public V1beta1CronJobFluent.StatusNested withNewStatus() { - return new V1beta1CronJobFluentImpl.StatusNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested withNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1CronJobStatus item) { - return new io.kubernetes.client.openapi.models.V1beta1CronJobFluentImpl.StatusNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested editStatus() { - return withNewStatusLike(getStatus()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested - editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1beta1CronJobStatusBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1beta1CronJobStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1CronJobFluentImpl that = (V1beta1CronJobFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public java.lang.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(); - } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobFluent.MetadataNested, - Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1CronJobFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class SpecNestedImpl extends V1beta1CronJobSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1beta1CronJobSpec item) { - this.builder = new V1beta1CronJobSpecBuilder(this, item); - } - - SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1CronJobSpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1CronJobSpecBuilder builder; - - public N and() { - return (N) V1beta1CronJobFluentImpl.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - } - - class StatusNestedImpl - extends V1beta1CronJobStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobFluent.StatusNested, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(V1beta1CronJobStatus item) { - this.builder = new V1beta1CronJobStatusBuilder(this, item); - } - - StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1CronJobStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1CronJobStatusBuilder builder; - - public N and() { - return (N) V1beta1CronJobFluentImpl.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListBuilder.java deleted file mode 100644 index f90ae6bdc7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1CronJobListBuilder - extends V1beta1CronJobListFluentImpl - implements VisitableBuilder< - V1beta1CronJobList, io.kubernetes.client.openapi.models.V1beta1CronJobListBuilder> { - public V1beta1CronJobListBuilder() { - this(false); - } - - public V1beta1CronJobListBuilder(Boolean validationEnabled) { - this(new V1beta1CronJobList(), validationEnabled); - } - - public V1beta1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobListFluent fluent) { - this(fluent, false); - } - - public V1beta1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1CronJobList(), validationEnabled); - } - - public V1beta1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJobList instance) { - this(fluent, instance, false); - } - - public V1beta1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJobList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobList instance) { - this(instance, false); - } - - public V1beta1CronJobListBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1CronJobListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1CronJobList build() { - V1beta1CronJobList buildable = new V1beta1CronJobList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListFluent.java deleted file mode 100644 index 61b3ba5f7e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListFluent.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1CronJobListFluent> extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1CronJob item); - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CronJob item); - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1CronJob... items); - - public A addAllToItems(Collection items); - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CronJob... items); - - public A removeAllFromItems( - java.util.Collection items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List buildItems(); - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildItem(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildMatchingItem( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); - - public A withItems(java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V1beta1CronJob... items); - - public java.lang.Boolean hasItems(); - - public V1beta1CronJobListFluent.ItemsNested addNewItem(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1CronJob item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CronJob item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested editItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested - editFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested editLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1CronJobListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, V1beta1CronJobFluent> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListFluentImpl.java deleted file mode 100644 index ac45ec73bc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobListFluentImpl.java +++ /dev/null @@ -1,442 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1CronJobListFluentImpl> - extends BaseFluent implements V1beta1CronJobListFluent { - public V1beta1CronJobListFluentImpl() {} - - public V1beta1CronJobListFluentImpl(V1beta1CronJobList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1CronJob item) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CronJob item) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1CronJob... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1CronJob item : items) { - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1CronJob item : items) { - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1CronJob... items) { - for (io.kubernetes.client.openapi.models.V1beta1CronJob item : items) { - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1CronJob item : items) { - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildItem(java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJob buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1CronJobBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1CronJobBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1CronJob item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1CronJob... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1CronJob item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V1beta1CronJobListFluent.ItemsNested addNewItem() { - return new V1beta1CronJobListFluentImpl.ItemsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1CronJob item) { - return new V1beta1CronJobListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CronJob item) { - return new io.kubernetes.client.openapi.models.V1beta1CronJobListFluentImpl.ItemsNestedImpl( - index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested editItem( - java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested - editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.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 io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested - editMatchingItem( - java.util.function.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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1CronJobListFluent.MetadataNested withNewMetadata() { - return new V1beta1CronJobListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1CronJobListFluentImpl.MetadataNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1CronJobListFluentImpl that = (V1beta1CronJobListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl extends V1beta1CronJobFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1CronJob item) { - this.index = index; - this.builder = new V1beta1CronJobBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1CronJobBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1CronJobBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1CronJobListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1CronJobListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecBuilder.java deleted file mode 100644 index 25e13cf759..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1CronJobSpecBuilder - extends V1beta1CronJobSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1CronJobSpec, - io.kubernetes.client.openapi.models.V1beta1CronJobSpecBuilder> { - public V1beta1CronJobSpecBuilder() { - this(false); - } - - public V1beta1CronJobSpecBuilder(Boolean validationEnabled) { - this(new V1beta1CronJobSpec(), validationEnabled); - } - - public V1beta1CronJobSpecBuilder(V1beta1CronJobSpecFluent fluent) { - this(fluent, false); - } - - public V1beta1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1CronJobSpec(), validationEnabled); - } - - public V1beta1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJobSpec instance) { - this(fluent, instance, false); - } - - public V1beta1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJobSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withConcurrencyPolicy(instance.getConcurrencyPolicy()); - - fluent.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); - - fluent.withJobTemplate(instance.getJobTemplate()); - - fluent.withSchedule(instance.getSchedule()); - - fluent.withStartingDeadlineSeconds(instance.getStartingDeadlineSeconds()); - - fluent.withSuccessfulJobsHistoryLimit(instance.getSuccessfulJobsHistoryLimit()); - - fluent.withSuspend(instance.getSuspend()); - - fluent.withTimeZone(instance.getTimeZone()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec instance) { - this(instance, false); - } - - public V1beta1CronJobSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpec build() { - V1beta1CronJobSpec buildable = new V1beta1CronJobSpec(); - buildable.setConcurrencyPolicy(fluent.getConcurrencyPolicy()); - buildable.setFailedJobsHistoryLimit(fluent.getFailedJobsHistoryLimit()); - buildable.setJobTemplate(fluent.getJobTemplate()); - buildable.setSchedule(fluent.getSchedule()); - buildable.setStartingDeadlineSeconds(fluent.getStartingDeadlineSeconds()); - buildable.setSuccessfulJobsHistoryLimit(fluent.getSuccessfulJobsHistoryLimit()); - buildable.setSuspend(fluent.getSuspend()); - buildable.setTimeZone(fluent.getTimeZone()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluent.java deleted file mode 100644 index e9c9682841..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluent.java +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1CronJobSpecFluent> extends Fluent { - public String getConcurrencyPolicy(); - - public A withConcurrencyPolicy(java.lang.String concurrencyPolicy); - - public Boolean hasConcurrencyPolicy(); - - public Integer getFailedJobsHistoryLimit(); - - public A withFailedJobsHistoryLimit(java.lang.Integer failedJobsHistoryLimit); - - public java.lang.Boolean hasFailedJobsHistoryLimit(); - - /** - * This method has been deprecated, please use method buildJobTemplate instead. - * - * @return The buildable object. - */ - @Deprecated - public V1beta1JobTemplateSpec getJobTemplate(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec buildJobTemplate(); - - public A withJobTemplate(io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec jobTemplate); - - public java.lang.Boolean hasJobTemplate(); - - public V1beta1CronJobSpecFluent.JobTemplateNested withNewJobTemplate(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - withNewJobTemplateLike(io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - editJobTemplate(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplate(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplateLike(io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec item); - - public java.lang.String getSchedule(); - - public A withSchedule(java.lang.String schedule); - - public java.lang.Boolean hasSchedule(); - - public Long getStartingDeadlineSeconds(); - - public A withStartingDeadlineSeconds(java.lang.Long startingDeadlineSeconds); - - public java.lang.Boolean hasStartingDeadlineSeconds(); - - public java.lang.Integer getSuccessfulJobsHistoryLimit(); - - public A withSuccessfulJobsHistoryLimit(java.lang.Integer successfulJobsHistoryLimit); - - public java.lang.Boolean hasSuccessfulJobsHistoryLimit(); - - public java.lang.Boolean getSuspend(); - - public A withSuspend(java.lang.Boolean suspend); - - public java.lang.Boolean hasSuspend(); - - public java.lang.String getTimeZone(); - - public A withTimeZone(java.lang.String timeZone); - - public java.lang.Boolean hasTimeZone(); - - public A withSuspend(); - - public interface JobTemplateNested - extends Nested, - V1beta1JobTemplateSpecFluent> { - public N and(); - - public N endJobTemplate(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluentImpl.java deleted file mode 100644 index e6f0cb2c46..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpecFluentImpl.java +++ /dev/null @@ -1,300 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1CronJobSpecFluentImpl> - extends BaseFluent implements V1beta1CronJobSpecFluent { - public V1beta1CronJobSpecFluentImpl() {} - - public V1beta1CronJobSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta1CronJobSpec instance) { - 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()); - } - - private String concurrencyPolicy; - private Integer failedJobsHistoryLimit; - private V1beta1JobTemplateSpecBuilder jobTemplate; - private java.lang.String schedule; - private Long startingDeadlineSeconds; - private java.lang.Integer successfulJobsHistoryLimit; - private Boolean suspend; - private java.lang.String timeZone; - - public java.lang.String getConcurrencyPolicy() { - return this.concurrencyPolicy; - } - - public A withConcurrencyPolicy(java.lang.String concurrencyPolicy) { - this.concurrencyPolicy = concurrencyPolicy; - return (A) this; - } - - public java.lang.Boolean hasConcurrencyPolicy() { - return this.concurrencyPolicy != null; - } - - public java.lang.Integer getFailedJobsHistoryLimit() { - return this.failedJobsHistoryLimit; - } - - public A withFailedJobsHistoryLimit(java.lang.Integer failedJobsHistoryLimit) { - this.failedJobsHistoryLimit = failedJobsHistoryLimit; - return (A) this; - } - - public java.lang.Boolean hasFailedJobsHistoryLimit() { - return this.failedJobsHistoryLimit != null; - } - - /** - * This method has been deprecated, please use method buildJobTemplate instead. - * - * @return The buildable object. - */ - @Deprecated - public V1beta1JobTemplateSpec getJobTemplate() { - return this.jobTemplate != null ? this.jobTemplate.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec buildJobTemplate() { - return this.jobTemplate != null ? this.jobTemplate.build() : null; - } - - public A withJobTemplate(io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec jobTemplate) { - _visitables.get("jobTemplate").remove(this.jobTemplate); - if (jobTemplate != null) { - this.jobTemplate = - new io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecBuilder(jobTemplate); - _visitables.get("jobTemplate").add(this.jobTemplate); - } - return (A) this; - } - - public java.lang.Boolean hasJobTemplate() { - return this.jobTemplate != null; - } - - public V1beta1CronJobSpecFluent.JobTemplateNested withNewJobTemplate() { - return new V1beta1CronJobSpecFluentImpl.JobTemplateNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - withNewJobTemplateLike(io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec item) { - return new V1beta1CronJobSpecFluentImpl.JobTemplateNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - editJobTemplate() { - return withNewJobTemplateLike(getJobTemplate()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplate() { - return withNewJobTemplateLike( - getJobTemplate() != null - ? getJobTemplate() - : new io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested - editOrNewJobTemplateLike(io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec item) { - return withNewJobTemplateLike(getJobTemplate() != null ? getJobTemplate() : item); - } - - public java.lang.String getSchedule() { - return this.schedule; - } - - public A withSchedule(java.lang.String schedule) { - this.schedule = schedule; - return (A) this; - } - - public java.lang.Boolean hasSchedule() { - return this.schedule != null; - } - - public java.lang.Long getStartingDeadlineSeconds() { - return this.startingDeadlineSeconds; - } - - public A withStartingDeadlineSeconds(java.lang.Long startingDeadlineSeconds) { - this.startingDeadlineSeconds = startingDeadlineSeconds; - return (A) this; - } - - public java.lang.Boolean hasStartingDeadlineSeconds() { - return this.startingDeadlineSeconds != null; - } - - public java.lang.Integer getSuccessfulJobsHistoryLimit() { - return this.successfulJobsHistoryLimit; - } - - public A withSuccessfulJobsHistoryLimit(java.lang.Integer successfulJobsHistoryLimit) { - this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - return (A) this; - } - - public java.lang.Boolean hasSuccessfulJobsHistoryLimit() { - return this.successfulJobsHistoryLimit != null; - } - - public java.lang.Boolean getSuspend() { - return this.suspend; - } - - public A withSuspend(java.lang.Boolean suspend) { - this.suspend = suspend; - return (A) this; - } - - public java.lang.Boolean hasSuspend() { - return this.suspend != null; - } - - public java.lang.String getTimeZone() { - return this.timeZone; - } - - public A withTimeZone(java.lang.String timeZone) { - this.timeZone = timeZone; - return (A) this; - } - - public java.lang.Boolean hasTimeZone() { - return this.timeZone != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1CronJobSpecFluentImpl that = (V1beta1CronJobSpecFluentImpl) o; - if (concurrencyPolicy != null - ? !concurrencyPolicy.equals(that.concurrencyPolicy) - : that.concurrencyPolicy != null) return false; - if (failedJobsHistoryLimit != null - ? !failedJobsHistoryLimit.equals(that.failedJobsHistoryLimit) - : that.failedJobsHistoryLimit != null) return false; - if (jobTemplate != null ? !jobTemplate.equals(that.jobTemplate) : that.jobTemplate != null) - return false; - if (schedule != null ? !schedule.equals(that.schedule) : that.schedule != null) return false; - if (startingDeadlineSeconds != null - ? !startingDeadlineSeconds.equals(that.startingDeadlineSeconds) - : that.startingDeadlineSeconds != null) return false; - if (successfulJobsHistoryLimit != null - ? !successfulJobsHistoryLimit.equals(that.successfulJobsHistoryLimit) - : that.successfulJobsHistoryLimit != null) return false; - if (suspend != null ? !suspend.equals(that.suspend) : that.suspend != null) return false; - if (timeZone != null ? !timeZone.equals(that.timeZone) : that.timeZone != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - concurrencyPolicy, - failedJobsHistoryLimit, - jobTemplate, - schedule, - startingDeadlineSeconds, - successfulJobsHistoryLimit, - suspend, - timeZone, - super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - public A withSuspend() { - return withSuspend(true); - } - - class JobTemplateNestedImpl - extends V1beta1JobTemplateSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobSpecFluent.JobTemplateNested, - Nested { - JobTemplateNestedImpl(V1beta1JobTemplateSpec item) { - this.builder = new V1beta1JobTemplateSpecBuilder(this, item); - } - - JobTemplateNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecBuilder builder; - - public N and() { - return (N) V1beta1CronJobSpecFluentImpl.this.withJobTemplate(builder.build()); - } - - public N endJobTemplate() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusBuilder.java deleted file mode 100644 index ff3c5c5a8c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1CronJobStatusBuilder - extends V1beta1CronJobStatusFluentImpl - implements VisitableBuilder< - V1beta1CronJobStatus, io.kubernetes.client.openapi.models.V1beta1CronJobStatusBuilder> { - public V1beta1CronJobStatusBuilder() { - this(false); - } - - public V1beta1CronJobStatusBuilder(Boolean validationEnabled) { - this(new V1beta1CronJobStatus(), validationEnabled); - } - - public V1beta1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent fluent) { - this(fluent, false); - } - - public V1beta1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1CronJobStatus(), validationEnabled); - } - - public V1beta1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJobStatus instance) { - this(fluent, instance, false); - } - - public V1beta1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1CronJobStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withActive(instance.getActive()); - - fluent.withLastScheduleTime(instance.getLastScheduleTime()); - - fluent.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobStatus instance) { - this(instance, false); - } - - public V1beta1CronJobStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1CronJobStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withActive(instance.getActive()); - - this.withLastScheduleTime(instance.getLastScheduleTime()); - - this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatus build() { - V1beta1CronJobStatus buildable = new V1beta1CronJobStatus(); - buildable.setActive(fluent.getActive()); - buildable.setLastScheduleTime(fluent.getLastScheduleTime()); - buildable.setLastSuccessfulTime(fluent.getLastSuccessfulTime()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusFluent.java deleted file mode 100644 index d1127b6443..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusFluent.java +++ /dev/null @@ -1,112 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1CronJobStatusFluent> - extends Fluent { - public A addToActive(Integer index, V1ObjectReference item); - - public A setToActive( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item); - - public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items); - - public A addAllToActive(Collection items); - - public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items); - - public A removeAllFromActive( - java.util.Collection items); - - public A removeMatchingFromActive(Predicate predicate); - - /** - * This method has been deprecated, please use method buildActive instead. - * - * @return The buildable object. - */ - @Deprecated - public List getActive(); - - public java.util.List buildActive(); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildActive(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildFirstActive(); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildLastActive(); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingActive( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingActive( - java.util.function.Predicate - predicate); - - public A withActive(java.util.List active); - - public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active); - - public java.lang.Boolean hasActive(); - - public V1beta1CronJobStatusFluent.ActiveNested addNewActive(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - addNewActiveLike(io.kubernetes.client.openapi.models.V1ObjectReference item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - setNewActiveLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested editActive( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - editFirstActive(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - editLastActive(); - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - editMatchingActive( - java.util.function.Predicate - predicate); - - public OffsetDateTime getLastScheduleTime(); - - public A withLastScheduleTime(java.time.OffsetDateTime lastScheduleTime); - - public java.lang.Boolean hasLastScheduleTime(); - - public java.time.OffsetDateTime getLastSuccessfulTime(); - - public A withLastSuccessfulTime(java.time.OffsetDateTime lastSuccessfulTime); - - public java.lang.Boolean hasLastSuccessfulTime(); - - public interface ActiveNested - extends Nested, V1ObjectReferenceFluent> { - public N and(); - - public N endActive(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusFluentImpl.java deleted file mode 100644 index d518aa0040..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatusFluentImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1CronJobStatusFluentImpl> - extends BaseFluent implements V1beta1CronJobStatusFluent { - public V1beta1CronJobStatusFluentImpl() {} - - public V1beta1CronJobStatusFluentImpl( - io.kubernetes.client.openapi.models.V1beta1CronJobStatus instance) { - this.withActive(instance.getActive()); - - this.withLastScheduleTime(instance.getLastScheduleTime()); - - this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - } - - private ArrayList active; - private OffsetDateTime lastScheduleTime; - private java.time.OffsetDateTime lastSuccessfulTime; - - public A addToActive(Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { - if (this.active == null) { - this.active = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); - _visitables.get("active").add(index >= 0 ? index : _visitables.get("active").size(), builder); - this.active.add(index >= 0 ? index : active.size(), builder); - return (A) this; - } - - public A setToActive( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { - if (this.active == null) { - this.active = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); - if (index < 0 || index >= _visitables.get("active").size()) { - _visitables.get("active").add(builder); - } else { - _visitables.get("active").set(index, builder); - } - if (index < 0 || index >= active.size()) { - active.add(builder); - } else { - active.set(index, builder); - } - return (A) this; - } - - public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.active == null) { - this.active = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); - _visitables.get("active").add(builder); - this.active.add(builder); - } - return (A) this; - } - - public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); - _visitables.get("active").remove(builder); - if (this.active != null) { - this.active.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromActive( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : items) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = - new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(item); - _visitables.get("active").remove(builder); - if (this.active != null) { - 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"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildActive instead. - * - * @return The buildable object. - */ - @Deprecated - public List getActive() { - return active != null ? build(active) : null; - } - - public java.util.List buildActive() { - return active != null ? build(active) : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildActive( - java.lang.Integer index) { - return this.active.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildFirstActive() { - return this.active.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildLastActive() { - return this.active.get(active.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildMatchingActive( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder item : active) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingActive( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder item : active) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withActive( - java.util.List active) { - if (this.active != null) { - _visitables.get("active").removeAll(this.active); - } - if (active != null) { - this.active = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1ObjectReference item : active) { - this.addToActive(item); - } - } else { - this.active = null; - } - return (A) this; - } - - public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active) { - if (this.active != null) { - this.active.clear(); - } - if (active != null) { - for (io.kubernetes.client.openapi.models.V1ObjectReference item : active) { - this.addToActive(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasActive() { - return active != null && !active.isEmpty(); - } - - public V1beta1CronJobStatusFluent.ActiveNested addNewActive() { - return new V1beta1CronJobStatusFluentImpl.ActiveNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - addNewActiveLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new V1beta1CronJobStatusFluentImpl.ActiveNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - setNewActiveLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluentImpl.ActiveNestedImpl( - index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested editActive( - java.lang.Integer index) { - if (active.size() <= index) - throw new RuntimeException("Can't edit active. Index exceeds size."); - return setNewActiveLike(index, buildActive(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - editFirstActive() { - if (active.size() == 0) - throw new RuntimeException("Can't edit first active. The list is empty."); - return setNewActiveLike(0, buildActive(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.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)); - } - - public io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested - editMatchingActive( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < active.size(); i++) { - if (predicate.test(active.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching active. No match found."); - return setNewActiveLike(index, buildActive(index)); - } - - public java.time.OffsetDateTime getLastScheduleTime() { - return this.lastScheduleTime; - } - - public A withLastScheduleTime(java.time.OffsetDateTime lastScheduleTime) { - this.lastScheduleTime = lastScheduleTime; - return (A) this; - } - - public java.lang.Boolean hasLastScheduleTime() { - return this.lastScheduleTime != null; - } - - public java.time.OffsetDateTime getLastSuccessfulTime() { - return this.lastSuccessfulTime; - } - - public A withLastSuccessfulTime(java.time.OffsetDateTime lastSuccessfulTime) { - this.lastSuccessfulTime = lastSuccessfulTime; - return (A) this; - } - - public java.lang.Boolean hasLastSuccessfulTime() { - return this.lastSuccessfulTime != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1CronJobStatusFluentImpl that = (V1beta1CronJobStatusFluentImpl) o; - if (active != null ? !active.equals(that.active) : that.active != null) return false; - if (lastScheduleTime != null - ? !lastScheduleTime.equals(that.lastScheduleTime) - : that.lastScheduleTime != null) return false; - if (lastSuccessfulTime != null - ? !lastSuccessfulTime.equals(that.lastSuccessfulTime) - : that.lastSuccessfulTime != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(active, lastScheduleTime, lastSuccessfulTime, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (active != null && !active.isEmpty()) { - sb.append("active:"); - sb.append(active + ","); - } - if (lastScheduleTime != null) { - sb.append("lastScheduleTime:"); - sb.append(lastScheduleTime + ","); - } - if (lastSuccessfulTime != null) { - sb.append("lastSuccessfulTime:"); - sb.append(lastSuccessfulTime); - } - sb.append("}"); - return sb.toString(); - } - - class ActiveNestedImpl - extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1CronJobStatusFluent.ActiveNested, - Nested { - ActiveNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1ObjectReference item) { - this.index = index; - this.builder = new V1ObjectReferenceBuilder(this, item); - } - - ActiveNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1CronJobStatusFluentImpl.this.setToActive(index, builder.build()); - } - - public N endActive() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointBuilder.java deleted file mode 100644 index 3488e92fdd..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EndpointBuilder extends V1beta1EndpointFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1Endpoint, V1beta1EndpointBuilder> { - public V1beta1EndpointBuilder() { - this(false); - } - - public V1beta1EndpointBuilder(Boolean validationEnabled) { - this(new V1beta1Endpoint(), validationEnabled); - } - - public V1beta1EndpointBuilder(V1beta1EndpointFluent fluent) { - this(fluent, false); - } - - public V1beta1EndpointBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1Endpoint(), validationEnabled); - } - - public V1beta1EndpointBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Endpoint instance) { - this(fluent, instance, false); - } - - public V1beta1EndpointBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Endpoint instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAddresses(instance.getAddresses()); - - fluent.withConditions(instance.getConditions()); - - fluent.withHints(instance.getHints()); - - fluent.withHostname(instance.getHostname()); - - fluent.withNodeName(instance.getNodeName()); - - fluent.withTargetRef(instance.getTargetRef()); - - fluent.withTopology(instance.getTopology()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EndpointBuilder(io.kubernetes.client.openapi.models.V1beta1Endpoint instance) { - this(instance, false); - } - - public V1beta1EndpointBuilder( - io.kubernetes.client.openapi.models.V1beta1Endpoint instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withAddresses(instance.getAddresses()); - - this.withConditions(instance.getConditions()); - - this.withHints(instance.getHints()); - - this.withHostname(instance.getHostname()); - - this.withNodeName(instance.getNodeName()); - - this.withTargetRef(instance.getTargetRef()); - - this.withTopology(instance.getTopology()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EndpointFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1Endpoint build() { - V1beta1Endpoint buildable = new V1beta1Endpoint(); - buildable.setAddresses(fluent.getAddresses()); - buildable.setConditions(fluent.getConditions()); - buildable.setHints(fluent.getHints()); - buildable.setHostname(fluent.getHostname()); - buildable.setNodeName(fluent.getNodeName()); - buildable.setTargetRef(fluent.getTargetRef()); - buildable.setTopology(fluent.getTopology()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsBuilder.java deleted file mode 100644 index 24a41ac9c4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EndpointConditionsBuilder - extends V1beta1EndpointConditionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1EndpointConditions, - V1beta1EndpointConditionsBuilder> { - public V1beta1EndpointConditionsBuilder() { - this(false); - } - - public V1beta1EndpointConditionsBuilder(Boolean validationEnabled) { - this(new V1beta1EndpointConditions(), validationEnabled); - } - - public V1beta1EndpointConditionsBuilder(V1beta1EndpointConditionsFluent fluent) { - this(fluent, false); - } - - public V1beta1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointConditionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EndpointConditions(), validationEnabled); - } - - public V1beta1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointConditionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointConditions instance) { - this(fluent, instance, false); - } - - public V1beta1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointConditionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointConditions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withReady(instance.getReady()); - - fluent.withServing(instance.getServing()); - - fluent.withTerminating(instance.getTerminating()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointConditions instance) { - this(instance, false); - } - - public V1beta1EndpointConditionsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointConditions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withReady(instance.getReady()); - - this.withServing(instance.getServing()); - - this.withTerminating(instance.getTerminating()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EndpointConditionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EndpointConditions build() { - V1beta1EndpointConditions buildable = new V1beta1EndpointConditions(); - buildable.setReady(fluent.getReady()); - buildable.setServing(fluent.getServing()); - buildable.setTerminating(fluent.getTerminating()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsFluent.java deleted file mode 100644 index 55d4166810..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsFluent.java +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1EndpointConditionsFluent> - extends Fluent { - public Boolean getReady(); - - public A withReady(java.lang.Boolean ready); - - public java.lang.Boolean hasReady(); - - public java.lang.Boolean getServing(); - - public A withServing(java.lang.Boolean serving); - - public java.lang.Boolean hasServing(); - - public java.lang.Boolean getTerminating(); - - public A withTerminating(java.lang.Boolean terminating); - - public java.lang.Boolean hasTerminating(); - - public A withReady(); - - public A withServing(); - - public A withTerminating(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsFluentImpl.java deleted file mode 100644 index 84002e1f06..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditionsFluentImpl.java +++ /dev/null @@ -1,120 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EndpointConditionsFluentImpl> - extends BaseFluent implements V1beta1EndpointConditionsFluent { - public V1beta1EndpointConditionsFluentImpl() {} - - public V1beta1EndpointConditionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1EndpointConditions instance) { - this.withReady(instance.getReady()); - - this.withServing(instance.getServing()); - - this.withTerminating(instance.getTerminating()); - } - - private Boolean ready; - private java.lang.Boolean serving; - private java.lang.Boolean terminating; - - public java.lang.Boolean getReady() { - return this.ready; - } - - public A withReady(java.lang.Boolean ready) { - this.ready = ready; - return (A) this; - } - - public java.lang.Boolean hasReady() { - return this.ready != null; - } - - public java.lang.Boolean getServing() { - return this.serving; - } - - public A withServing(java.lang.Boolean serving) { - this.serving = serving; - return (A) this; - } - - public java.lang.Boolean hasServing() { - return this.serving != null; - } - - public java.lang.Boolean getTerminating() { - return this.terminating; - } - - public A withTerminating(java.lang.Boolean terminating) { - this.terminating = terminating; - return (A) this; - } - - public java.lang.Boolean hasTerminating() { - return this.terminating != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EndpointConditionsFluentImpl that = (V1beta1EndpointConditionsFluentImpl) o; - if (ready != null ? !ready.equals(that.ready) : that.ready != null) return false; - if (serving != null ? !serving.equals(that.serving) : that.serving != null) return false; - if (terminating != null ? !terminating.equals(that.terminating) : that.terminating != null) - return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ready, serving, terminating, super.hashCode()); - } - - 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); - } - sb.append("}"); - return sb.toString(); - } - - public A withReady() { - return withReady(true); - } - - public A withServing() { - return withServing(true); - } - - public A withTerminating() { - return withTerminating(true); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointFluent.java deleted file mode 100644 index f89745f0fe..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointFluent.java +++ /dev/null @@ -1,185 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1EndpointFluent> extends Fluent { - public A addToAddresses(Integer index, String item); - - public A setToAddresses(java.lang.Integer index, java.lang.String item); - - public A addToAddresses(java.lang.String... items); - - public A addAllToAddresses(Collection items); - - public A removeFromAddresses(java.lang.String... items); - - public A removeAllFromAddresses(java.util.Collection items); - - public List getAddresses(); - - public java.lang.String getAddress(java.lang.Integer index); - - public java.lang.String getFirstAddress(); - - public java.lang.String getLastAddress(); - - public java.lang.String getMatchingAddress(Predicate predicate); - - public Boolean hasMatchingAddress(java.util.function.Predicate predicate); - - public A withAddresses(java.util.List addresses); - - public A withAddresses(java.lang.String... addresses); - - public java.lang.Boolean hasAddresses(); - - /** - * This method has been deprecated, please use method buildConditions instead. - * - * @return The buildable object. - */ - @Deprecated - public V1beta1EndpointConditions getConditions(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointConditions buildConditions(); - - public A withConditions(io.kubernetes.client.openapi.models.V1beta1EndpointConditions conditions); - - public java.lang.Boolean hasConditions(); - - public V1beta1EndpointFluent.ConditionsNested withNewConditions(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - withNewConditionsLike(io.kubernetes.client.openapi.models.V1beta1EndpointConditions item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - editConditions(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - editOrNewConditions(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - editOrNewConditionsLike(io.kubernetes.client.openapi.models.V1beta1EndpointConditions item); - - /** - * This method has been deprecated, please use method buildHints instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1EndpointHints getHints(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHints buildHints(); - - public A withHints(io.kubernetes.client.openapi.models.V1beta1EndpointHints hints); - - public java.lang.Boolean hasHints(); - - public V1beta1EndpointFluent.HintsNested withNewHints(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested withNewHintsLike( - io.kubernetes.client.openapi.models.V1beta1EndpointHints item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested editHints(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested editOrNewHints(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested - editOrNewHintsLike(io.kubernetes.client.openapi.models.V1beta1EndpointHints item); - - public java.lang.String getHostname(); - - public A withHostname(java.lang.String hostname); - - public java.lang.Boolean hasHostname(); - - public java.lang.String getNodeName(); - - public A withNodeName(java.lang.String nodeName); - - public java.lang.Boolean hasNodeName(); - - /** - * This method has been deprecated, please use method buildTargetRef instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ObjectReference getTargetRef(); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildTargetRef(); - - public A withTargetRef(io.kubernetes.client.openapi.models.V1ObjectReference targetRef); - - public java.lang.Boolean hasTargetRef(); - - public V1beta1EndpointFluent.TargetRefNested withNewTargetRef(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - withNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - editTargetRef(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - editOrNewTargetRef(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - editOrNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item); - - public A addToTopology(java.lang.String key, java.lang.String value); - - public A addToTopology(Map map); - - public A removeFromTopology(java.lang.String key); - - public A removeFromTopology(java.util.Map map); - - public java.util.Map getTopology(); - - public A withTopology(java.util.Map topology); - - public java.lang.Boolean hasTopology(); - - public interface ConditionsNested - extends Nested, - V1beta1EndpointConditionsFluent> { - public N and(); - - public N endConditions(); - } - - public interface HintsNested - extends io.kubernetes.client.fluent.Nested, - V1beta1EndpointHintsFluent> { - public N and(); - - public N endHints(); - } - - public interface TargetRefNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { - public N and(); - - public N endTargetRef(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointFluentImpl.java deleted file mode 100644 index 0f4e6ca8ca..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointFluentImpl.java +++ /dev/null @@ -1,545 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EndpointFluentImpl> extends BaseFluent - implements V1beta1EndpointFluent { - public V1beta1EndpointFluentImpl() {} - - public V1beta1EndpointFluentImpl(io.kubernetes.client.openapi.models.V1beta1Endpoint instance) { - this.withAddresses(instance.getAddresses()); - - this.withConditions(instance.getConditions()); - - this.withHints(instance.getHints()); - - this.withHostname(instance.getHostname()); - - this.withNodeName(instance.getNodeName()); - - this.withTargetRef(instance.getTargetRef()); - - this.withTopology(instance.getTopology()); - } - - private List addresses; - private V1beta1EndpointConditionsBuilder conditions; - private V1beta1EndpointHintsBuilder hints; - private java.lang.String hostname; - private java.lang.String nodeName; - private V1ObjectReferenceBuilder targetRef; - private Map topology; - - public A addToAddresses(Integer index, java.lang.String item) { - if (this.addresses == null) { - this.addresses = new ArrayList(); - } - this.addresses.add(index, item); - return (A) this; - } - - public A setToAddresses(java.lang.Integer index, java.lang.String item) { - if (this.addresses == null) { - this.addresses = new java.util.ArrayList(); - } - this.addresses.set(index, item); - return (A) this; - } - - public A addToAddresses(java.lang.String... items) { - if (this.addresses == null) { - this.addresses = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.addresses.add(item); - } - return (A) this; - } - - public A addAllToAddresses(Collection items) { - if (this.addresses == null) { - this.addresses = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.addresses.add(item); - } - return (A) this; - } - - public A removeFromAddresses(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.addresses != null) { - this.addresses.remove(item); - } - } - return (A) this; - } - - public A removeAllFromAddresses(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.addresses != null) { - this.addresses.remove(item); - } - } - return (A) this; - } - - public java.util.List getAddresses() { - return this.addresses; - } - - public java.lang.String getAddress(java.lang.Integer index) { - return this.addresses.get(index); - } - - public java.lang.String getFirstAddress() { - return this.addresses.get(0); - } - - public java.lang.String getLastAddress() { - return this.addresses.get(addresses.size() - 1); - } - - public java.lang.String getMatchingAddress(Predicate predicate) { - for (java.lang.String item : addresses) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public Boolean hasMatchingAddress(java.util.function.Predicate predicate) { - for (java.lang.String item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAddresses(java.util.List addresses) { - if (addresses != null) { - this.addresses = new java.util.ArrayList(); - for (java.lang.String item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; - } - return (A) this; - } - - public A withAddresses(java.lang.String... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - } - if (addresses != null) { - for (java.lang.String item : addresses) { - this.addToAddresses(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAddresses() { - return addresses != null && !addresses.isEmpty(); - } - - /** - * This method has been deprecated, please use method buildConditions instead. - * - * @return The buildable object. - */ - @Deprecated - public V1beta1EndpointConditions getConditions() { - return this.conditions != null ? this.conditions.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointConditions buildConditions() { - return this.conditions != null ? this.conditions.build() : null; - } - - public A withConditions( - io.kubernetes.client.openapi.models.V1beta1EndpointConditions conditions) { - _visitables.get("conditions").remove(this.conditions); - if (conditions != null) { - this.conditions = - new io.kubernetes.client.openapi.models.V1beta1EndpointConditionsBuilder(conditions); - _visitables.get("conditions").add(this.conditions); - } - return (A) this; - } - - public java.lang.Boolean hasConditions() { - return this.conditions != null; - } - - public V1beta1EndpointFluent.ConditionsNested withNewConditions() { - return new V1beta1EndpointFluentImpl.ConditionsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - withNewConditionsLike(io.kubernetes.client.openapi.models.V1beta1EndpointConditions item) { - return new V1beta1EndpointFluentImpl.ConditionsNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - editConditions() { - return withNewConditionsLike(getConditions()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - editOrNewConditions() { - return withNewConditionsLike( - getConditions() != null - ? getConditions() - : new io.kubernetes.client.openapi.models.V1beta1EndpointConditionsBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested - editOrNewConditionsLike(io.kubernetes.client.openapi.models.V1beta1EndpointConditions item) { - return withNewConditionsLike(getConditions() != null ? getConditions() : item); - } - - /** - * This method has been deprecated, please use method buildHints instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1EndpointHints getHints() { - return this.hints != null ? this.hints.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHints buildHints() { - return this.hints != null ? this.hints.build() : null; - } - - public A withHints(io.kubernetes.client.openapi.models.V1beta1EndpointHints hints) { - _visitables.get("hints").remove(this.hints); - if (hints != null) { - this.hints = new io.kubernetes.client.openapi.models.V1beta1EndpointHintsBuilder(hints); - _visitables.get("hints").add(this.hints); - } - return (A) this; - } - - public java.lang.Boolean hasHints() { - return this.hints != null; - } - - public V1beta1EndpointFluent.HintsNested withNewHints() { - return new V1beta1EndpointFluentImpl.HintsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested withNewHintsLike( - io.kubernetes.client.openapi.models.V1beta1EndpointHints item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointFluentImpl.HintsNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested editHints() { - return withNewHintsLike(getHints()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested editOrNewHints() { - return withNewHintsLike( - getHints() != null - ? getHints() - : new io.kubernetes.client.openapi.models.V1beta1EndpointHintsBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested - editOrNewHintsLike(io.kubernetes.client.openapi.models.V1beta1EndpointHints item) { - return withNewHintsLike(getHints() != null ? getHints() : item); - } - - public java.lang.String getHostname() { - return this.hostname; - } - - public A withHostname(java.lang.String hostname) { - this.hostname = hostname; - return (A) this; - } - - public java.lang.Boolean hasHostname() { - return this.hostname != null; - } - - public java.lang.String getNodeName() { - return this.nodeName; - } - - public A withNodeName(java.lang.String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public java.lang.Boolean hasNodeName() { - return this.nodeName != null; - } - - /** - * This method has been deprecated, please use method buildTargetRef instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; - } - - public A withTargetRef(io.kubernetes.client.openapi.models.V1ObjectReference targetRef) { - _visitables.get("targetRef").remove(this.targetRef); - if (targetRef != null) { - this.targetRef = new V1ObjectReferenceBuilder(targetRef); - _visitables.get("targetRef").add(this.targetRef); - } - return (A) this; - } - - public java.lang.Boolean hasTargetRef() { - return this.targetRef != null; - } - - public V1beta1EndpointFluent.TargetRefNested withNewTargetRef() { - return new V1beta1EndpointFluentImpl.TargetRefNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - withNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointFluentImpl.TargetRefNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - editTargetRef() { - return withNewTargetRefLike(getTargetRef()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - editOrNewTargetRef() { - return withNewTargetRefLike( - getTargetRef() != null - ? getTargetRef() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested - editOrNewTargetRefLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return withNewTargetRefLike(getTargetRef() != null ? getTargetRef() : item); - } - - public A addToTopology(java.lang.String key, java.lang.String value) { - if (this.topology == null && key != null && value != null) { - this.topology = new LinkedHashMap(); - } - if (key != null && value != null) { - this.topology.put(key, value); - } - return (A) this; - } - - public A addToTopology(java.util.Map map) { - if (this.topology == null && map != null) { - this.topology = new java.util.LinkedHashMap(); - } - if (map != null) { - this.topology.putAll(map); - } - return (A) this; - } - - public A removeFromTopology(java.lang.String key) { - if (this.topology == null) { - return (A) this; - } - if (key != null && this.topology != null) { - this.topology.remove(key); - } - return (A) this; - } - - public A removeFromTopology(java.util.Map map) { - if (this.topology == null) { - return (A) this; - } - if (map != null) { - for (Object key : map.keySet()) { - if (this.topology != null) { - this.topology.remove(key); - } - } - } - return (A) this; - } - - public java.util.Map getTopology() { - return this.topology; - } - - public A withTopology(java.util.Map topology) { - if (topology == null) { - this.topology = null; - } else { - this.topology = new java.util.LinkedHashMap(topology); - } - return (A) this; - } - - public java.lang.Boolean hasTopology() { - return this.topology != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EndpointFluentImpl that = (V1beta1EndpointFluentImpl) o; - if (addresses != null ? !addresses.equals(that.addresses) : that.addresses != null) - return false; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (hints != null ? !hints.equals(that.hints) : that.hints != null) return false; - if (hostname != null ? !hostname.equals(that.hostname) : that.hostname != null) return false; - if (nodeName != null ? !nodeName.equals(that.nodeName) : that.nodeName != null) return false; - if (targetRef != null ? !targetRef.equals(that.targetRef) : that.targetRef != null) - return false; - if (topology != null ? !topology.equals(that.topology) : that.topology != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - addresses, conditions, hints, hostname, nodeName, targetRef, topology, super.hashCode()); - } - - public java.lang.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 (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 (topology != null && !topology.isEmpty()) { - sb.append("topology:"); - sb.append(topology); - } - sb.append("}"); - return sb.toString(); - } - - class ConditionsNestedImpl - extends V1beta1EndpointConditionsFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointFluent.ConditionsNested, - Nested { - ConditionsNestedImpl(V1beta1EndpointConditions item) { - this.builder = new V1beta1EndpointConditionsBuilder(this, item); - } - - ConditionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1EndpointConditionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EndpointConditionsBuilder builder; - - public N and() { - return (N) V1beta1EndpointFluentImpl.this.withConditions(builder.build()); - } - - public N endConditions() { - return and(); - } - } - - class HintsNestedImpl - extends V1beta1EndpointHintsFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointFluent.HintsNested, - io.kubernetes.client.fluent.Nested { - HintsNestedImpl(io.kubernetes.client.openapi.models.V1beta1EndpointHints item) { - this.builder = new V1beta1EndpointHintsBuilder(this, item); - } - - HintsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1EndpointHintsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EndpointHintsBuilder builder; - - public N and() { - return (N) V1beta1EndpointFluentImpl.this.withHints(builder.build()); - } - - public N endHints() { - return and(); - } - } - - class TargetRefNestedImpl - extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointFluent.TargetRefNested, - io.kubernetes.client.fluent.Nested { - TargetRefNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { - this.builder = new V1ObjectReferenceBuilder(this, item); - } - - TargetRefNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; - - public N and() { - return (N) V1beta1EndpointFluentImpl.this.withTargetRef(builder.build()); - } - - public N endTargetRef() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsBuilder.java deleted file mode 100644 index 68ab4db62b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EndpointHintsBuilder - extends V1beta1EndpointHintsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1EndpointHints, - io.kubernetes.client.openapi.models.V1beta1EndpointHintsBuilder> { - public V1beta1EndpointHintsBuilder() { - this(false); - } - - public V1beta1EndpointHintsBuilder(Boolean validationEnabled) { - this(new V1beta1EndpointHints(), validationEnabled); - } - - public V1beta1EndpointHintsBuilder(V1beta1EndpointHintsFluent fluent) { - this(fluent, false); - } - - public V1beta1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EndpointHints(), validationEnabled); - } - - public V1beta1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointHints instance) { - this(fluent, instance, false); - } - - public V1beta1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointHints instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withForZones(instance.getForZones()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointHints instance) { - this(instance, false); - } - - public V1beta1EndpointHintsBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointHints instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withForZones(instance.getForZones()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EndpointHints build() { - V1beta1EndpointHints buildable = new V1beta1EndpointHints(); - buildable.setForZones(fluent.getForZones()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsFluent.java deleted file mode 100644 index c76481937c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsFluent.java +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1EndpointHintsFluent> - extends Fluent { - public A addToForZones(Integer index, V1beta1ForZone item); - - public A setToForZones( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ForZone item); - - public A addToForZones(io.kubernetes.client.openapi.models.V1beta1ForZone... items); - - public A addAllToForZones(Collection items); - - public A removeFromForZones(io.kubernetes.client.openapi.models.V1beta1ForZone... items); - - public A removeAllFromForZones( - java.util.Collection items); - - public A removeMatchingFromForZones(Predicate predicate); - - /** - * This method has been deprecated, please use method buildForZones instead. - * - * @return The buildable object. - */ - @Deprecated - public List getForZones(); - - public java.util.List buildForZones(); - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildForZone(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildFirstForZone(); - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildLastForZone(); - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildMatchingForZone( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingForZone( - java.util.function.Predicate - predicate); - - public A withForZones( - java.util.List forZones); - - public A withForZones(io.kubernetes.client.openapi.models.V1beta1ForZone... forZones); - - public java.lang.Boolean hasForZones(); - - public V1beta1EndpointHintsFluent.ForZonesNested addNewForZone(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - addNewForZoneLike(io.kubernetes.client.openapi.models.V1beta1ForZone item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - setNewForZoneLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ForZone item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editForZone(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editFirstForZone(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editLastForZone(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editMatchingForZone( - java.util.function.Predicate - predicate); - - public interface ForZonesNested - extends Nested, V1beta1ForZoneFluent> { - public N and(); - - public N endForZone(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsFluentImpl.java deleted file mode 100644 index 6933233882..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHintsFluentImpl.java +++ /dev/null @@ -1,320 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EndpointHintsFluentImpl> - extends BaseFluent implements V1beta1EndpointHintsFluent { - public V1beta1EndpointHintsFluentImpl() {} - - public V1beta1EndpointHintsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1EndpointHints instance) { - this.withForZones(instance.getForZones()); - } - - private ArrayList forZones; - - public A addToForZones(Integer index, io.kubernetes.client.openapi.models.V1beta1ForZone item) { - if (this.forZones == null) { - this.forZones = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(item); - _visitables - .get("forZones") - .add(index >= 0 ? index : _visitables.get("forZones").size(), builder); - this.forZones.add(index >= 0 ? index : forZones.size(), builder); - return (A) this; - } - - public A setToForZones( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ForZone item) { - if (this.forZones == null) { - this.forZones = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(item); - if (index < 0 || index >= _visitables.get("forZones").size()) { - _visitables.get("forZones").add(builder); - } else { - _visitables.get("forZones").set(index, builder); - } - if (index < 0 || index >= forZones.size()) { - forZones.add(builder); - } else { - forZones.set(index, builder); - } - return (A) this; - } - - public A addToForZones(io.kubernetes.client.openapi.models.V1beta1ForZone... items) { - if (this.forZones == null) { - this.forZones = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1ForZone item : items) { - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1ForZone item : items) { - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); - this.forZones.add(builder); - } - return (A) this; - } - - public A removeFromForZones(io.kubernetes.client.openapi.models.V1beta1ForZone... items) { - for (io.kubernetes.client.openapi.models.V1beta1ForZone item : items) { - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(item); - _visitables.get("forZones").remove(builder); - if (this.forZones != null) { - this.forZones.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromForZones( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1ForZone item : items) { - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(item); - _visitables.get("forZones").remove(builder); - if (this.forZones != null) { - 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"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildForZones instead. - * - * @return The buildable object. - */ - @Deprecated - public List getForZones() { - return forZones != null ? build(forZones) : null; - } - - public java.util.List buildForZones() { - return forZones != null ? build(forZones) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildForZone(java.lang.Integer index) { - return this.forZones.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildFirstForZone() { - return this.forZones.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildLastForZone() { - return this.forZones.get(forZones.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1ForZone buildMatchingForZone( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder item : forZones) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingForZone( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder item : forZones) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withForZones( - java.util.List forZones) { - if (this.forZones != null) { - _visitables.get("forZones").removeAll(this.forZones); - } - if (forZones != null) { - this.forZones = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1ForZone item : forZones) { - this.addToForZones(item); - } - } else { - this.forZones = null; - } - return (A) this; - } - - public A withForZones(io.kubernetes.client.openapi.models.V1beta1ForZone... forZones) { - if (this.forZones != null) { - this.forZones.clear(); - } - if (forZones != null) { - for (io.kubernetes.client.openapi.models.V1beta1ForZone item : forZones) { - this.addToForZones(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasForZones() { - return forZones != null && !forZones.isEmpty(); - } - - public V1beta1EndpointHintsFluent.ForZonesNested addNewForZone() { - return new V1beta1EndpointHintsFluentImpl.ForZonesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - addNewForZoneLike(io.kubernetes.client.openapi.models.V1beta1ForZone item) { - return new V1beta1EndpointHintsFluentImpl.ForZonesNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - setNewForZoneLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ForZone item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluentImpl - .ForZonesNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editForZone(java.lang.Integer index) { - if (forZones.size() <= index) - throw new RuntimeException("Can't edit forZones. Index exceeds size."); - return setNewForZoneLike(index, buildForZone(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editFirstForZone() { - if (forZones.size() == 0) - throw new RuntimeException("Can't edit first forZones. The list is empty."); - return setNewForZoneLike(0, buildForZone(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.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)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested - editMatchingForZone( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < forZones.size(); i++) { - if (predicate.test(forZones.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching forZones. No match found."); - return setNewForZoneLike(index, buildForZone(index)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EndpointHintsFluentImpl that = (V1beta1EndpointHintsFluentImpl) o; - if (forZones != null ? !forZones.equals(that.forZones) : that.forZones != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(forZones, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (forZones != null && !forZones.isEmpty()) { - sb.append("forZones:"); - sb.append(forZones); - } - sb.append("}"); - return sb.toString(); - } - - class ForZonesNestedImpl - extends V1beta1ForZoneFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointHintsFluent.ForZonesNested, - Nested { - ForZonesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ForZone item) { - this.index = index; - this.builder = new V1beta1ForZoneBuilder(this, item); - } - - ForZonesNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1EndpointHintsFluentImpl.this.setToForZones(index, builder.build()); - } - - public N endForZone() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortBuilder.java deleted file mode 100644 index 6f7d3c4e0d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EndpointPortBuilder - extends V1beta1EndpointPortFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1EndpointPort, - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder> { - public V1beta1EndpointPortBuilder() { - this(false); - } - - public V1beta1EndpointPortBuilder(Boolean validationEnabled) { - this(new V1beta1EndpointPort(), validationEnabled); - } - - public V1beta1EndpointPortBuilder(V1beta1EndpointPortFluent fluent) { - this(fluent, false); - } - - public V1beta1EndpointPortBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointPortFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EndpointPort(), validationEnabled); - } - - public V1beta1EndpointPortBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointPortFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointPort instance) { - this(fluent, instance, false); - } - - public V1beta1EndpointPortBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointPortFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointPort instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAppProtocol(instance.getAppProtocol()); - - fluent.withName(instance.getName()); - - fluent.withPort(instance.getPort()); - - fluent.withProtocol(instance.getProtocol()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EndpointPortBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointPort instance) { - this(instance, false); - } - - public V1beta1EndpointPortBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointPort instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withAppProtocol(instance.getAppProtocol()); - - this.withName(instance.getName()); - - this.withPort(instance.getPort()); - - this.withProtocol(instance.getProtocol()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EndpointPortFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort build() { - V1beta1EndpointPort buildable = new V1beta1EndpointPort(); - buildable.setAppProtocol(fluent.getAppProtocol()); - buildable.setName(fluent.getName()); - buildable.setPort(fluent.getPort()); - buildable.setProtocol(fluent.getProtocol()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortFluent.java deleted file mode 100644 index 9fa7d38976..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortFluent.java +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1EndpointPortFluent> - extends Fluent { - public String getAppProtocol(); - - public A withAppProtocol(java.lang.String appProtocol); - - public Boolean hasAppProtocol(); - - public java.lang.String getName(); - - public A withName(java.lang.String name); - - public java.lang.Boolean hasName(); - - public Integer getPort(); - - public A withPort(java.lang.Integer port); - - public java.lang.Boolean hasPort(); - - public java.lang.String getProtocol(); - - public A withProtocol(java.lang.String protocol); - - public java.lang.Boolean hasProtocol(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortFluentImpl.java deleted file mode 100644 index 61ba22bacb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPortFluentImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EndpointPortFluentImpl> - extends BaseFluent implements V1beta1EndpointPortFluent { - public V1beta1EndpointPortFluentImpl() {} - - public V1beta1EndpointPortFluentImpl( - io.kubernetes.client.openapi.models.V1beta1EndpointPort instance) { - this.withAppProtocol(instance.getAppProtocol()); - - this.withName(instance.getName()); - - this.withPort(instance.getPort()); - - this.withProtocol(instance.getProtocol()); - } - - private String appProtocol; - private java.lang.String name; - private Integer port; - private java.lang.String protocol; - - public java.lang.String getAppProtocol() { - return this.appProtocol; - } - - public A withAppProtocol(java.lang.String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; - } - - public Boolean hasAppProtocol() { - return this.appProtocol != null; - } - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.String name) { - this.name = name; - return (A) this; - } - - public java.lang.Boolean hasName() { - return this.name != null; - } - - public java.lang.Integer getPort() { - return this.port; - } - - public A withPort(java.lang.Integer port) { - this.port = port; - return (A) this; - } - - public java.lang.Boolean hasPort() { - return this.port != null; - } - - public java.lang.String getProtocol() { - return this.protocol; - } - - public A withProtocol(java.lang.String protocol) { - this.protocol = protocol; - return (A) this; - } - - public java.lang.Boolean hasProtocol() { - return this.protocol != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EndpointPortFluentImpl that = (V1beta1EndpointPortFluentImpl) o; - if (appProtocol != null ? !appProtocol.equals(that.appProtocol) : that.appProtocol != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (port != null ? !port.equals(that.port) : that.port != null) return false; - if (protocol != null ? !protocol.equals(that.protocol) : that.protocol != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceBuilder.java deleted file mode 100644 index 8e136f03cf..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EndpointSliceBuilder - extends V1beta1EndpointSliceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1EndpointSlice, - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder> { - public V1beta1EndpointSliceBuilder() { - this(false); - } - - public V1beta1EndpointSliceBuilder(Boolean validationEnabled) { - this(new V1beta1EndpointSlice(), validationEnabled); - } - - public V1beta1EndpointSliceBuilder(V1beta1EndpointSliceFluent fluent) { - this(fluent, false); - } - - public V1beta1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EndpointSlice(), validationEnabled); - } - - public V1beta1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointSlice instance) { - this(fluent, instance, false); - } - - public V1beta1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointSlice instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAddressType(instance.getAddressType()); - - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withEndpoints(instance.getEndpoints()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withPorts(instance.getPorts()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSlice instance) { - this(instance, false); - } - - public V1beta1EndpointSliceBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSlice instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice build() { - V1beta1EndpointSlice buildable = new V1beta1EndpointSlice(); - buildable.setAddressType(fluent.getAddressType()); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setEndpoints(fluent.getEndpoints()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setPorts(fluent.getPorts()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceFluent.java deleted file mode 100644 index a26a7e5cca..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceFluent.java +++ /dev/null @@ -1,234 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1EndpointSliceFluent> - extends Fluent { - public String getAddressType(); - - public A withAddressType(java.lang.String addressType); - - public Boolean hasAddressType(); - - public java.lang.String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public java.lang.Boolean hasApiVersion(); - - public A addToEndpoints(Integer index, V1beta1Endpoint item); - - public A setToEndpoints( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Endpoint item); - - public A addToEndpoints(io.kubernetes.client.openapi.models.V1beta1Endpoint... items); - - public A addAllToEndpoints(Collection items); - - public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1beta1Endpoint... items); - - public A removeAllFromEndpoints( - java.util.Collection items); - - public A removeMatchingFromEndpoints(Predicate predicate); - - /** - * This method has been deprecated, please use method buildEndpoints instead. - * - * @return The buildable object. - */ - @Deprecated - public List getEndpoints(); - - public java.util.List buildEndpoints(); - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildEndpoint(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildFirstEndpoint(); - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildLastEndpoint(); - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildMatchingEndpoint( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingEndpoint( - java.util.function.Predicate - predicate); - - public A withEndpoints( - java.util.List endpoints); - - public A withEndpoints(io.kubernetes.client.openapi.models.V1beta1Endpoint... endpoints); - - public java.lang.Boolean hasEndpoints(); - - public V1beta1EndpointSliceFluent.EndpointsNested addNewEndpoint(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - addNewEndpointLike(io.kubernetes.client.openapi.models.V1beta1Endpoint item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - setNewEndpointLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Endpoint item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editEndpoint(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editFirstEndpoint(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editLastEndpoint(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editMatchingEndpoint( - java.util.function.Predicate - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1EndpointSliceFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public A addToPorts(java.lang.Integer index, V1beta1EndpointPort item); - - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointPort item); - - public A addToPorts(io.kubernetes.client.openapi.models.V1beta1EndpointPort... items); - - public A addAllToPorts( - java.util.Collection items); - - public A removeFromPorts(io.kubernetes.client.openapi.models.V1beta1EndpointPort... items); - - public A removeAllFromPorts( - java.util.Collection items); - - public A removeMatchingFromPorts( - java.util.function.Predicate predicate); - - /** - * This method has been deprecated, please use method buildPorts instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List getPorts(); - - public java.util.List buildPorts(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildPort(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildFirstPort(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildLastPort(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildMatchingPort( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate); - - public A withPorts(java.util.List ports); - - public A withPorts(io.kubernetes.client.openapi.models.V1beta1EndpointPort... ports); - - public java.lang.Boolean hasPorts(); - - public V1beta1EndpointSliceFluent.PortsNested addNewPort(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1beta1EndpointPort item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointPort item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested editPort( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - editFirstPort(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - editLastPort(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder> - predicate); - - public interface EndpointsNested - extends Nested, V1beta1EndpointFluent> { - public N and(); - - public N endEndpoint(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface PortsNested - extends io.kubernetes.client.fluent.Nested, - V1beta1EndpointPortFluent> { - public N and(); - - public N endPort(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceFluentImpl.java deleted file mode 100644 index baf16c1839..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceFluentImpl.java +++ /dev/null @@ -1,746 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EndpointSliceFluentImpl> - extends BaseFluent implements V1beta1EndpointSliceFluent { - public V1beta1EndpointSliceFluentImpl() {} - - public V1beta1EndpointSliceFluentImpl(V1beta1EndpointSlice instance) { - this.withAddressType(instance.getAddressType()); - - this.withApiVersion(instance.getApiVersion()); - - this.withEndpoints(instance.getEndpoints()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withPorts(instance.getPorts()); - } - - private String addressType; - private java.lang.String apiVersion; - private ArrayList endpoints; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private java.util.ArrayList ports; - - public java.lang.String getAddressType() { - return this.addressType; - } - - public A withAddressType(java.lang.String addressType) { - this.addressType = addressType; - return (A) this; - } - - public Boolean hasAddressType() { - return this.addressType != null; - } - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public java.lang.Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToEndpoints(Integer index, io.kubernetes.client.openapi.models.V1beta1Endpoint item) { - if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(item); - _visitables - .get("endpoints") - .add(index >= 0 ? index : _visitables.get("endpoints").size(), builder); - this.endpoints.add(index >= 0 ? index : endpoints.size(), builder); - return (A) this; - } - - public A setToEndpoints( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Endpoint item) { - if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(item); - if (index < 0 || index >= _visitables.get("endpoints").size()) { - _visitables.get("endpoints").add(builder); - } else { - _visitables.get("endpoints").set(index, builder); - } - if (index < 0 || index >= endpoints.size()) { - endpoints.add(builder); - } else { - endpoints.set(index, builder); - } - return (A) this; - } - - public A addToEndpoints(io.kubernetes.client.openapi.models.V1beta1Endpoint... items) { - if (this.endpoints == null) { - this.endpoints = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(item); - _visitables.get("endpoints").add(builder); - this.endpoints.add(builder); - } - return (A) this; - } - - public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1beta1Endpoint... items) { - for (io.kubernetes.client.openapi.models.V1beta1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(item); - _visitables.get("endpoints").remove(builder); - if (this.endpoints != null) { - this.endpoints.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromEndpoints( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1Endpoint item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(item); - _visitables.get("endpoints").remove(builder); - if (this.endpoints != null) { - 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"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildEndpoints instead. - * - * @return The buildable object. - */ - @Deprecated - public List getEndpoints() { - return endpoints != null ? build(endpoints) : null; - } - - public java.util.List buildEndpoints() { - return endpoints != null ? build(endpoints) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildEndpoint( - java.lang.Integer index) { - return this.endpoints.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildFirstEndpoint() { - return this.endpoints.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildLastEndpoint() { - return this.endpoints.get(endpoints.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1Endpoint buildMatchingEndpoint( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointBuilder item : endpoints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingEndpoint( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointBuilder item : endpoints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withEndpoints( - java.util.List endpoints) { - if (this.endpoints != null) { - _visitables.get("endpoints").removeAll(this.endpoints); - } - if (endpoints != null) { - this.endpoints = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1Endpoint item : endpoints) { - this.addToEndpoints(item); - } - } else { - this.endpoints = null; - } - return (A) this; - } - - public A withEndpoints(io.kubernetes.client.openapi.models.V1beta1Endpoint... endpoints) { - if (this.endpoints != null) { - this.endpoints.clear(); - } - if (endpoints != null) { - for (io.kubernetes.client.openapi.models.V1beta1Endpoint item : endpoints) { - this.addToEndpoints(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasEndpoints() { - return endpoints != null && !endpoints.isEmpty(); - } - - public V1beta1EndpointSliceFluent.EndpointsNested addNewEndpoint() { - return new V1beta1EndpointSliceFluentImpl.EndpointsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - addNewEndpointLike(io.kubernetes.client.openapi.models.V1beta1Endpoint item) { - return new V1beta1EndpointSliceFluentImpl.EndpointsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - setNewEndpointLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Endpoint item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluentImpl - .EndpointsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editEndpoint(java.lang.Integer index) { - if (endpoints.size() <= index) - throw new RuntimeException("Can't edit endpoints. Index exceeds size."); - return setNewEndpointLike(index, buildEndpoint(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editFirstEndpoint() { - if (endpoints.size() == 0) - throw new RuntimeException("Can't edit first endpoints. The list is empty."); - return setNewEndpointLike(0, buildEndpoint(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.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)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.EndpointsNested - editMatchingEndpoint( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < endpoints.size(); i++) { - if (predicate.test(endpoints.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching endpoints. No match found."); - return setNewEndpointLike(index, buildEndpoint(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1EndpointSliceFluent.MetadataNested withNewMetadata() { - return new V1beta1EndpointSliceFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluentImpl - .MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public A addToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointPort item) { - if (this.ports == null) { - this.ports = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(item); - _visitables.get("ports").add(index >= 0 ? index : _visitables.get("ports").size(), builder); - this.ports.add(index >= 0 ? index : ports.size(), builder); - return (A) this; - } - - public A setToPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointPort item) { - if (this.ports == null) { - this.ports = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(item); - if (index < 0 || index >= _visitables.get("ports").size()) { - _visitables.get("ports").add(builder); - } else { - _visitables.get("ports").set(index, builder); - } - if (index < 0 || index >= ports.size()) { - ports.add(builder); - } else { - ports.set(index, builder); - } - return (A) this; - } - - public A addToPorts(io.kubernetes.client.openapi.models.V1beta1EndpointPort... items) { - if (this.ports == null) { - this.ports = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1EndpointPort item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; - } - - public A addAllToPorts( - java.util.Collection items) { - if (this.ports == null) { - this.ports = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1EndpointPort item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); - this.ports.add(builder); - } - return (A) this; - } - - public A removeFromPorts(io.kubernetes.client.openapi.models.V1beta1EndpointPort... items) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointPort item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointPort item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(item); - _visitables.get("ports").remove(builder); - if (this.ports != null) { - this.ports.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromPorts( - java.util.function.Predicate - predicate) { - if (ports == null) return (A) this; - final Iterator each = - ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildPorts instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List getPorts() { - return ports != null ? build(ports) : null; - } - - public java.util.List buildPorts() { - return ports != null ? build(ports) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildPort( - java.lang.Integer index) { - return this.ports.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildFirstPort() { - return this.ports.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointPort buildMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withPorts( - java.util.List ports) { - if (this.ports != null) { - _visitables.get("ports").removeAll(this.ports); - } - if (ports != null) { - this.ports = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1EndpointPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; - } - return (A) this; - } - - public A withPorts(io.kubernetes.client.openapi.models.V1beta1EndpointPort... ports) { - if (this.ports != null) { - this.ports.clear(); - } - if (ports != null) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointPort item : ports) { - this.addToPorts(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasPorts() { - return ports != null && !ports.isEmpty(); - } - - public V1beta1EndpointSliceFluent.PortsNested addNewPort() { - return new V1beta1EndpointSliceFluentImpl.PortsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - addNewPortLike(io.kubernetes.client.openapi.models.V1beta1EndpointPort item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluentImpl.PortsNestedImpl( - -1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - setNewPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointPort item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluentImpl.PortsNestedImpl( - index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested editPort( - java.lang.Integer index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.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)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested - editMatchingPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder> - predicate) { - int index = -1; - for (int i = 0; i < ports.size(); i++) { - if (predicate.test(ports.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching ports. No match found."); - return setNewPortLike(index, buildPort(index)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EndpointSliceFluentImpl that = (V1beta1EndpointSliceFluentImpl) o; - if (addressType != null ? !addressType.equals(that.addressType) : that.addressType != null) - return false; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (endpoints != null ? !endpoints.equals(that.endpoints) : that.endpoints != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (ports != null ? !ports.equals(that.ports) : that.ports != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - addressType, apiVersion, endpoints, kind, metadata, ports, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (addressType != null) { - sb.append("addressType:"); - sb.append(addressType + ","); - } - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (endpoints != null && !endpoints.isEmpty()) { - sb.append("endpoints:"); - sb.append(endpoints + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (ports != null && !ports.isEmpty()) { - sb.append("ports:"); - sb.append(ports); - } - sb.append("}"); - return sb.toString(); - } - - class EndpointsNestedImpl - extends V1beta1EndpointFluentImpl> - implements V1beta1EndpointSliceFluent.EndpointsNested, Nested { - EndpointsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Endpoint item) { - this.index = index; - this.builder = new V1beta1EndpointBuilder(this, item); - } - - EndpointsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1EndpointBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EndpointBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1EndpointSliceFluentImpl.this.setToEndpoints(index, builder.build()); - } - - public N endEndpoint() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1EndpointSliceFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class PortsNestedImpl - extends V1beta1EndpointPortFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointSliceFluent.PortsNested, - io.kubernetes.client.fluent.Nested { - PortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointPort item) { - this.index = index; - this.builder = new V1beta1EndpointPortBuilder(this, item); - } - - PortsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EndpointPortBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1EndpointSliceFluentImpl.this.setToPorts(index, builder.build()); - } - - public N endPort() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListBuilder.java deleted file mode 100644 index 70a965bb12..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EndpointSliceListBuilder - extends V1beta1EndpointSliceListFluentImpl - implements VisitableBuilder< - V1beta1EndpointSliceList, - io.kubernetes.client.openapi.models.V1beta1EndpointSliceListBuilder> { - public V1beta1EndpointSliceListBuilder() { - this(false); - } - - public V1beta1EndpointSliceListBuilder(Boolean validationEnabled) { - this(new V1beta1EndpointSliceList(), validationEnabled); - } - - public V1beta1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent fluent) { - this(fluent, false); - } - - public V1beta1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EndpointSliceList(), validationEnabled); - } - - public V1beta1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointSliceList instance) { - this(fluent, instance, false); - } - - public V1beta1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EndpointSliceList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceList instance) { - this(instance, false); - } - - public V1beta1EndpointSliceListBuilder( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceList build() { - V1beta1EndpointSliceList buildable = new V1beta1EndpointSliceList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListFluent.java deleted file mode 100644 index 865350c1cb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListFluent.java +++ /dev/null @@ -1,151 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1EndpointSliceListFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1EndpointSlice item); - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointSlice item); - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1EndpointSlice... items); - - public A addAllToItems( - Collection items); - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1EndpointSlice... items); - - public A removeAllFromItems( - java.util.Collection items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List buildItems(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildMatchingItem( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); - - public A withItems( - java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V1beta1EndpointSlice... items); - - public java.lang.Boolean hasItems(); - - public V1beta1EndpointSliceListFluent.ItemsNested addNewItem(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1beta1EndpointSlice item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointSlice item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested editItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - editFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - editLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder> - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1EndpointSliceListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, V1beta1EndpointSliceFluent> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListFluentImpl.java deleted file mode 100644 index cd94f8ac02..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceListFluentImpl.java +++ /dev/null @@ -1,455 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EndpointSliceListFluentImpl> - extends BaseFluent implements V1beta1EndpointSliceListFluent { - public V1beta1EndpointSliceListFluentImpl() {} - - public V1beta1EndpointSliceListFluentImpl( - io.kubernetes.client.openapi.models.V1beta1EndpointSliceList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointSlice item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointSlice item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1EndpointSlice... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(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 java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1EndpointSlice... items) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointSlice item : items) { - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildItem( - java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSlice buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems( - java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1EndpointSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1EndpointSlice... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1EndpointSlice item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V1beta1EndpointSliceListFluent.ItemsNested addNewItem() { - return new V1beta1EndpointSliceListFluentImpl.ItemsNestedImpl(); - } - - public V1beta1EndpointSliceListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1EndpointSlice item) { - return new V1beta1EndpointSliceListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointSlice item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluentImpl - .ItemsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested editItem( - java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.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 io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder> - 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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1EndpointSliceListFluent.MetadataNested withNewMetadata() { - return new V1beta1EndpointSliceListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluentImpl - .MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EndpointSliceListFluentImpl that = (V1beta1EndpointSliceListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl - extends V1beta1EndpointSliceFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1EndpointSlice item) { - this.index = index; - this.builder = new V1beta1EndpointSliceBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EndpointSliceBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1EndpointSliceListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EndpointSliceListFluent.MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1EndpointSliceListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventBuilder.java deleted file mode 100644 index 4313aa730b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventBuilder.java +++ /dev/null @@ -1,155 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EventBuilder extends V1beta1EventFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1Event, V1beta1EventBuilder> { - public V1beta1EventBuilder() { - this(false); - } - - public V1beta1EventBuilder(Boolean validationEnabled) { - this(new V1beta1Event(), validationEnabled); - } - - public V1beta1EventBuilder(io.kubernetes.client.openapi.models.V1beta1EventFluent fluent) { - this(fluent, false); - } - - public V1beta1EventBuilder( - io.kubernetes.client.openapi.models.V1beta1EventFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1Event(), validationEnabled); - } - - public V1beta1EventBuilder( - io.kubernetes.client.openapi.models.V1beta1EventFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Event instance) { - this(fluent, instance, false); - } - - public V1beta1EventBuilder( - io.kubernetes.client.openapi.models.V1beta1EventFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Event instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAction(instance.getAction()); - - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withDeprecatedCount(instance.getDeprecatedCount()); - - fluent.withDeprecatedFirstTimestamp(instance.getDeprecatedFirstTimestamp()); - - fluent.withDeprecatedLastTimestamp(instance.getDeprecatedLastTimestamp()); - - fluent.withDeprecatedSource(instance.getDeprecatedSource()); - - fluent.withEventTime(instance.getEventTime()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withNote(instance.getNote()); - - fluent.withReason(instance.getReason()); - - fluent.withRegarding(instance.getRegarding()); - - fluent.withRelated(instance.getRelated()); - - fluent.withReportingController(instance.getReportingController()); - - fluent.withReportingInstance(instance.getReportingInstance()); - - fluent.withSeries(instance.getSeries()); - - fluent.withType(instance.getType()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EventBuilder(io.kubernetes.client.openapi.models.V1beta1Event instance) { - this(instance, false); - } - - public V1beta1EventBuilder( - io.kubernetes.client.openapi.models.V1beta1Event instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EventFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1Event build() { - V1beta1Event buildable = new V1beta1Event(); - buildable.setAction(fluent.getAction()); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setDeprecatedCount(fluent.getDeprecatedCount()); - buildable.setDeprecatedFirstTimestamp(fluent.getDeprecatedFirstTimestamp()); - buildable.setDeprecatedLastTimestamp(fluent.getDeprecatedLastTimestamp()); - buildable.setDeprecatedSource(fluent.getDeprecatedSource()); - buildable.setEventTime(fluent.getEventTime()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setNote(fluent.getNote()); - buildable.setReason(fluent.getReason()); - buildable.setRegarding(fluent.getRegarding()); - buildable.setRelated(fluent.getRelated()); - buildable.setReportingController(fluent.getReportingController()); - buildable.setReportingInstance(fluent.getReportingInstance()); - buildable.setSeries(fluent.getSeries()); - buildable.setType(fluent.getType()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventFluent.java deleted file mode 100644 index f297850862..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventFluent.java +++ /dev/null @@ -1,265 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; - -/** Generated */ -public interface V1beta1EventFluent> extends Fluent { - public String getAction(); - - public A withAction(java.lang.String action); - - public Boolean hasAction(); - - public java.lang.String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public java.lang.Boolean hasApiVersion(); - - public Integer getDeprecatedCount(); - - public A withDeprecatedCount(java.lang.Integer deprecatedCount); - - public java.lang.Boolean hasDeprecatedCount(); - - public OffsetDateTime getDeprecatedFirstTimestamp(); - - public A withDeprecatedFirstTimestamp(java.time.OffsetDateTime deprecatedFirstTimestamp); - - public java.lang.Boolean hasDeprecatedFirstTimestamp(); - - public java.time.OffsetDateTime getDeprecatedLastTimestamp(); - - public A withDeprecatedLastTimestamp(java.time.OffsetDateTime deprecatedLastTimestamp); - - public java.lang.Boolean hasDeprecatedLastTimestamp(); - - /** - * This method has been deprecated, please use method buildDeprecatedSource instead. - * - * @return The buildable object. - */ - @Deprecated - public V1EventSource getDeprecatedSource(); - - public io.kubernetes.client.openapi.models.V1EventSource buildDeprecatedSource(); - - public A withDeprecatedSource(io.kubernetes.client.openapi.models.V1EventSource deprecatedSource); - - public java.lang.Boolean hasDeprecatedSource(); - - public V1beta1EventFluent.DeprecatedSourceNested withNewDeprecatedSource(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - withNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - editDeprecatedSource(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSource(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item); - - public java.time.OffsetDateTime getEventTime(); - - public A withEventTime(java.time.OffsetDateTime eventTime); - - public java.lang.Boolean hasEventTime(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1EventFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public java.lang.String getNote(); - - public A withNote(java.lang.String note); - - public java.lang.Boolean hasNote(); - - public java.lang.String getReason(); - - public A withReason(java.lang.String reason); - - public java.lang.Boolean hasReason(); - - /** - * This method has been deprecated, please use method buildRegarding instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ObjectReference getRegarding(); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildRegarding(); - - public A withRegarding(io.kubernetes.client.openapi.models.V1ObjectReference regarding); - - public java.lang.Boolean hasRegarding(); - - public V1beta1EventFluent.RegardingNested withNewRegarding(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested - withNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested editRegarding(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested - editOrNewRegarding(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested - editOrNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item); - - /** - * This method has been deprecated, please use method buildRelated instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRelated(); - - public io.kubernetes.client.openapi.models.V1ObjectReference buildRelated(); - - public A withRelated(io.kubernetes.client.openapi.models.V1ObjectReference related); - - public java.lang.Boolean hasRelated(); - - public V1beta1EventFluent.RelatedNested withNewRelated(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested withNewRelatedLike( - io.kubernetes.client.openapi.models.V1ObjectReference item); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested editRelated(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested editOrNewRelated(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested - editOrNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item); - - public java.lang.String getReportingController(); - - public A withReportingController(java.lang.String reportingController); - - public java.lang.Boolean hasReportingController(); - - public java.lang.String getReportingInstance(); - - public A withReportingInstance(java.lang.String reportingInstance); - - public java.lang.Boolean hasReportingInstance(); - - /** - * This method has been deprecated, please use method buildSeries instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1EventSeries getSeries(); - - public io.kubernetes.client.openapi.models.V1beta1EventSeries buildSeries(); - - public A withSeries(io.kubernetes.client.openapi.models.V1beta1EventSeries series); - - public java.lang.Boolean hasSeries(); - - public V1beta1EventFluent.SeriesNested withNewSeries(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested withNewSeriesLike( - io.kubernetes.client.openapi.models.V1beta1EventSeries item); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested editSeries(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested editOrNewSeries(); - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested editOrNewSeriesLike( - io.kubernetes.client.openapi.models.V1beta1EventSeries item); - - public java.lang.String getType(); - - public A withType(java.lang.String type); - - public java.lang.Boolean hasType(); - - public interface DeprecatedSourceNested - extends Nested, V1EventSourceFluent> { - public N and(); - - public N endDeprecatedSource(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface RegardingNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { - public N and(); - - public N endRegarding(); - } - - public interface RelatedNested - extends io.kubernetes.client.fluent.Nested, - V1ObjectReferenceFluent> { - public N and(); - - public N endRelated(); - } - - public interface SeriesNested - extends io.kubernetes.client.fluent.Nested, - V1beta1EventSeriesFluent> { - public N and(); - - public N endSeries(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventFluentImpl.java deleted file mode 100644 index 1d6b1e020a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventFluentImpl.java +++ /dev/null @@ -1,751 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EventFluentImpl> extends BaseFluent - implements V1beta1EventFluent { - public V1beta1EventFluentImpl() {} - - public V1beta1EventFluentImpl(io.kubernetes.client.openapi.models.V1beta1Event instance) { - 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()); - } - - private String action; - private java.lang.String apiVersion; - private Integer deprecatedCount; - private OffsetDateTime deprecatedFirstTimestamp; - private java.time.OffsetDateTime deprecatedLastTimestamp; - private V1EventSourceBuilder deprecatedSource; - private java.time.OffsetDateTime eventTime; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private java.lang.String note; - private java.lang.String reason; - private V1ObjectReferenceBuilder regarding; - private V1ObjectReferenceBuilder related; - private java.lang.String reportingController; - private java.lang.String reportingInstance; - private V1beta1EventSeriesBuilder series; - private java.lang.String type; - - public java.lang.String getAction() { - return this.action; - } - - public A withAction(java.lang.String action) { - this.action = action; - return (A) this; - } - - public Boolean hasAction() { - return this.action != null; - } - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public java.lang.Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.Integer getDeprecatedCount() { - return this.deprecatedCount; - } - - public A withDeprecatedCount(java.lang.Integer deprecatedCount) { - this.deprecatedCount = deprecatedCount; - return (A) this; - } - - public java.lang.Boolean hasDeprecatedCount() { - return this.deprecatedCount != null; - } - - public java.time.OffsetDateTime getDeprecatedFirstTimestamp() { - return this.deprecatedFirstTimestamp; - } - - public A withDeprecatedFirstTimestamp(java.time.OffsetDateTime deprecatedFirstTimestamp) { - this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - return (A) this; - } - - public java.lang.Boolean hasDeprecatedFirstTimestamp() { - return this.deprecatedFirstTimestamp != null; - } - - public java.time.OffsetDateTime getDeprecatedLastTimestamp() { - return this.deprecatedLastTimestamp; - } - - public A withDeprecatedLastTimestamp(java.time.OffsetDateTime deprecatedLastTimestamp) { - this.deprecatedLastTimestamp = deprecatedLastTimestamp; - return (A) this; - } - - public java.lang.Boolean hasDeprecatedLastTimestamp() { - return this.deprecatedLastTimestamp != null; - } - - /** - * This method has been deprecated, please use method buildDeprecatedSource instead. - * - * @return The buildable object. - */ - @Deprecated - public V1EventSource getDeprecatedSource() { - return this.deprecatedSource != null ? this.deprecatedSource.build() : null; - } - - public io.kubernetes.client.openapi.models.V1EventSource buildDeprecatedSource() { - return this.deprecatedSource != null ? this.deprecatedSource.build() : null; - } - - public A withDeprecatedSource( - io.kubernetes.client.openapi.models.V1EventSource deprecatedSource) { - _visitables.get("deprecatedSource").remove(this.deprecatedSource); - if (deprecatedSource != null) { - this.deprecatedSource = - new io.kubernetes.client.openapi.models.V1EventSourceBuilder(deprecatedSource); - _visitables.get("deprecatedSource").add(this.deprecatedSource); - } - return (A) this; - } - - public java.lang.Boolean hasDeprecatedSource() { - return this.deprecatedSource != null; - } - - public V1beta1EventFluent.DeprecatedSourceNested withNewDeprecatedSource() { - return new V1beta1EventFluentImpl.DeprecatedSourceNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - withNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item) { - return new V1beta1EventFluentImpl.DeprecatedSourceNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - editDeprecatedSource() { - return withNewDeprecatedSourceLike(getDeprecatedSource()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSource() { - return withNewDeprecatedSourceLike( - getDeprecatedSource() != null - ? getDeprecatedSource() - : new io.kubernetes.client.openapi.models.V1EventSourceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested - editOrNewDeprecatedSourceLike(io.kubernetes.client.openapi.models.V1EventSource item) { - return withNewDeprecatedSourceLike( - getDeprecatedSource() != null ? getDeprecatedSource() : item); - } - - public java.time.OffsetDateTime getEventTime() { - return this.eventTime; - } - - public A withEventTime(java.time.OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; - } - - public java.lang.Boolean hasEventTime() { - return this.eventTime != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1EventFluent.MetadataNested withNewMetadata() { - return new V1beta1EventFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1EventFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public java.lang.String getNote() { - return this.note; - } - - public A withNote(java.lang.String note) { - this.note = note; - return (A) this; - } - - public java.lang.Boolean hasNote() { - return this.note != null; - } - - public java.lang.String getReason() { - return this.reason; - } - - public A withReason(java.lang.String reason) { - this.reason = reason; - return (A) this; - } - - public java.lang.Boolean hasReason() { - return this.reason != null; - } - - /** - * This method has been deprecated, please use method buildRegarding instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRegarding() { - return this.regarding != null ? this.regarding.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildRegarding() { - return this.regarding != null ? this.regarding.build() : null; - } - - public A withRegarding(io.kubernetes.client.openapi.models.V1ObjectReference regarding) { - _visitables.get("regarding").remove(this.regarding); - if (regarding != null) { - this.regarding = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(regarding); - _visitables.get("regarding").add(this.regarding); - } - return (A) this; - } - - public java.lang.Boolean hasRegarding() { - return this.regarding != null; - } - - public V1beta1EventFluent.RegardingNested withNewRegarding() { - return new V1beta1EventFluentImpl.RegardingNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested - withNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1beta1EventFluentImpl.RegardingNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested editRegarding() { - return withNewRegardingLike(getRegarding()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested - editOrNewRegarding() { - return withNewRegardingLike( - getRegarding() != null - ? getRegarding() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested - editOrNewRegardingLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return withNewRegardingLike(getRegarding() != null ? getRegarding() : item); - } - - /** - * This method has been deprecated, please use method buildRelated instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ObjectReference getRelated() { - return this.related != null ? this.related.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; - } - - public A withRelated(io.kubernetes.client.openapi.models.V1ObjectReference related) { - _visitables.get("related").remove(this.related); - if (related != null) { - this.related = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(related); - _visitables.get("related").add(this.related); - } - return (A) this; - } - - public java.lang.Boolean hasRelated() { - return this.related != null; - } - - public V1beta1EventFluent.RelatedNested withNewRelated() { - return new V1beta1EventFluentImpl.RelatedNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested withNewRelatedLike( - io.kubernetes.client.openapi.models.V1ObjectReference item) { - return new io.kubernetes.client.openapi.models.V1beta1EventFluentImpl.RelatedNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested editRelated() { - return withNewRelatedLike(getRelated()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested - editOrNewRelated() { - return withNewRelatedLike( - getRelated() != null - ? getRelated() - : new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested - editOrNewRelatedLike(io.kubernetes.client.openapi.models.V1ObjectReference item) { - return withNewRelatedLike(getRelated() != null ? getRelated() : item); - } - - public java.lang.String getReportingController() { - return this.reportingController; - } - - public A withReportingController(java.lang.String reportingController) { - this.reportingController = reportingController; - return (A) this; - } - - public java.lang.Boolean hasReportingController() { - return this.reportingController != null; - } - - public java.lang.String getReportingInstance() { - return this.reportingInstance; - } - - public A withReportingInstance(java.lang.String reportingInstance) { - this.reportingInstance = reportingInstance; - return (A) this; - } - - public java.lang.Boolean hasReportingInstance() { - return this.reportingInstance != null; - } - - /** - * This method has been deprecated, please use method buildSeries instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1EventSeries getSeries() { - return this.series != null ? this.series.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; - } - - public A withSeries(io.kubernetes.client.openapi.models.V1beta1EventSeries series) { - _visitables.get("series").remove(this.series); - if (series != null) { - this.series = new V1beta1EventSeriesBuilder(series); - _visitables.get("series").add(this.series); - } - return (A) this; - } - - public java.lang.Boolean hasSeries() { - return this.series != null; - } - - public V1beta1EventFluent.SeriesNested withNewSeries() { - return new V1beta1EventFluentImpl.SeriesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested withNewSeriesLike( - io.kubernetes.client.openapi.models.V1beta1EventSeries item) { - return new io.kubernetes.client.openapi.models.V1beta1EventFluentImpl.SeriesNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested editSeries() { - return withNewSeriesLike(getSeries()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested editOrNewSeries() { - return withNewSeriesLike( - getSeries() != null - ? getSeries() - : new io.kubernetes.client.openapi.models.V1beta1EventSeriesBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested editOrNewSeriesLike( - io.kubernetes.client.openapi.models.V1beta1EventSeries item) { - return withNewSeriesLike(getSeries() != null ? getSeries() : item); - } - - public java.lang.String getType() { - return this.type; - } - - public A withType(java.lang.String type) { - this.type = type; - return (A) this; - } - - public java.lang.Boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EventFluentImpl that = (V1beta1EventFluentImpl) o; - if (action != null ? !action.equals(that.action) : that.action != null) return false; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (deprecatedCount != null - ? !deprecatedCount.equals(that.deprecatedCount) - : that.deprecatedCount != null) return false; - if (deprecatedFirstTimestamp != null - ? !deprecatedFirstTimestamp.equals(that.deprecatedFirstTimestamp) - : that.deprecatedFirstTimestamp != null) return false; - if (deprecatedLastTimestamp != null - ? !deprecatedLastTimestamp.equals(that.deprecatedLastTimestamp) - : that.deprecatedLastTimestamp != null) return false; - if (deprecatedSource != null - ? !deprecatedSource.equals(that.deprecatedSource) - : that.deprecatedSource != null) return false; - if (eventTime != null ? !eventTime.equals(that.eventTime) : that.eventTime != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (note != null ? !note.equals(that.note) : that.note != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (regarding != null ? !regarding.equals(that.regarding) : that.regarding != null) - return false; - if (related != null ? !related.equals(that.related) : that.related != null) return false; - if (reportingController != null - ? !reportingController.equals(that.reportingController) - : that.reportingController != null) return false; - if (reportingInstance != null - ? !reportingInstance.equals(that.reportingInstance) - : that.reportingInstance != null) return false; - if (series != null ? !series.equals(that.series) : that.series != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) 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()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - class DeprecatedSourceNestedImpl - extends V1EventSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventFluent.DeprecatedSourceNested, - Nested { - DeprecatedSourceNestedImpl(V1EventSource item) { - this.builder = new V1EventSourceBuilder(this, item); - } - - DeprecatedSourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1EventSourceBuilder(this); - } - - io.kubernetes.client.openapi.models.V1EventSourceBuilder builder; - - public N and() { - return (N) V1beta1EventFluentImpl.this.withDeprecatedSource(builder.build()); - } - - public N endDeprecatedSource() { - return and(); - } - } - - class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1EventFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class RegardingNestedImpl - extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventFluent.RegardingNested, - io.kubernetes.client.fluent.Nested { - RegardingNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { - this.builder = new V1ObjectReferenceBuilder(this, item); - } - - RegardingNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; - - public N and() { - return (N) V1beta1EventFluentImpl.this.withRegarding(builder.build()); - } - - public N endRegarding() { - return and(); - } - } - - class RelatedNestedImpl - extends V1ObjectReferenceFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventFluent.RelatedNested, - io.kubernetes.client.fluent.Nested { - RelatedNestedImpl(io.kubernetes.client.openapi.models.V1ObjectReference item) { - this.builder = new V1ObjectReferenceBuilder(this, item); - } - - RelatedNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectReferenceBuilder builder; - - public N and() { - return (N) V1beta1EventFluentImpl.this.withRelated(builder.build()); - } - - public N endRelated() { - return and(); - } - } - - class SeriesNestedImpl extends V1beta1EventSeriesFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventFluent.SeriesNested, - io.kubernetes.client.fluent.Nested { - SeriesNestedImpl(io.kubernetes.client.openapi.models.V1beta1EventSeries item) { - this.builder = new V1beta1EventSeriesBuilder(this, item); - } - - SeriesNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1EventSeriesBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EventSeriesBuilder builder; - - public N and() { - return (N) V1beta1EventFluentImpl.this.withSeries(builder.build()); - } - - public N endSeries() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListBuilder.java deleted file mode 100644 index 793eb7e8b9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EventListBuilder extends V1beta1EventListFluentImpl - implements VisitableBuilder< - V1beta1EventList, io.kubernetes.client.openapi.models.V1beta1EventListBuilder> { - public V1beta1EventListBuilder() { - this(false); - } - - public V1beta1EventListBuilder(Boolean validationEnabled) { - this(new V1beta1EventList(), validationEnabled); - } - - public V1beta1EventListBuilder( - io.kubernetes.client.openapi.models.V1beta1EventListFluent fluent) { - this(fluent, false); - } - - public V1beta1EventListBuilder( - io.kubernetes.client.openapi.models.V1beta1EventListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EventList(), validationEnabled); - } - - public V1beta1EventListBuilder( - io.kubernetes.client.openapi.models.V1beta1EventListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EventList instance) { - this(fluent, instance, false); - } - - public V1beta1EventListBuilder( - io.kubernetes.client.openapi.models.V1beta1EventListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EventList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EventListBuilder(io.kubernetes.client.openapi.models.V1beta1EventList instance) { - this(instance, false); - } - - public V1beta1EventListBuilder( - io.kubernetes.client.openapi.models.V1beta1EventList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EventListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EventList build() { - V1beta1EventList buildable = new V1beta1EventList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListFluent.java deleted file mode 100644 index e3f2713ac1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListFluent.java +++ /dev/null @@ -1,142 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1EventListFluent> extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1Event item); - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Event item); - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1Event... items); - - public A addAllToItems(Collection items); - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1Event... items); - - public A removeAllFromItems( - java.util.Collection items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List buildItems(); - - public io.kubernetes.client.openapi.models.V1beta1Event buildItem(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1Event buildFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1Event buildLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1Event buildMatchingItem( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); - - public A withItems(java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V1beta1Event... items); - - public java.lang.Boolean hasItems(); - - public V1beta1EventListFluent.ItemsNested addNewItem(); - - public V1beta1EventListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1Event item); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Event item); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editMatchingItem( - java.util.function.Predicate - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1EventListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, V1beta1EventFluent> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListFluentImpl.java deleted file mode 100644 index f6e3083913..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventListFluentImpl.java +++ /dev/null @@ -1,437 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EventListFluentImpl> extends BaseFluent - implements V1beta1EventListFluent { - public V1beta1EventListFluentImpl() {} - - public V1beta1EventListFluentImpl(V1beta1EventList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1Event item) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EventBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Event item) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EventBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1Event... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1Event item : items) { - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EventBuilder(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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1Event item : items) { - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EventBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1Event... items) { - for (io.kubernetes.client.openapi.models.V1beta1Event item : items) { - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EventBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1Event item : items) { - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1EventBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1Event buildItem(java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1Event buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1Event buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1Event buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EventBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1EventBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems(java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1Event item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1Event... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1Event item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V1beta1EventListFluent.ItemsNested addNewItem() { - return new V1beta1EventListFluentImpl.ItemsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1Event item) { - return new V1beta1EventListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Event item) { - return new io.kubernetes.client.openapi.models.V1beta1EventListFluentImpl.ItemsNestedImpl( - index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editItem( - java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.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 io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested editMatchingItem( - java.util.function.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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1EventListFluent.MetadataNested withNewMetadata() { - return new V1beta1EventListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1EventListFluentImpl.MetadataNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EventListFluentImpl that = (V1beta1EventListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl extends V1beta1EventFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Event item) { - this.index = index; - this.builder = new V1beta1EventBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1EventBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1EventBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1EventListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1EventListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1EventListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesBuilder.java deleted file mode 100644 index 32d3d938ef..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1EventSeriesBuilder - extends V1beta1EventSeriesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1EventSeries, - io.kubernetes.client.openapi.models.V1beta1EventSeriesBuilder> { - public V1beta1EventSeriesBuilder() { - this(false); - } - - public V1beta1EventSeriesBuilder(Boolean validationEnabled) { - this(new V1beta1EventSeries(), validationEnabled); - } - - public V1beta1EventSeriesBuilder(V1beta1EventSeriesFluent fluent) { - this(fluent, false); - } - - public V1beta1EventSeriesBuilder( - io.kubernetes.client.openapi.models.V1beta1EventSeriesFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1EventSeries(), validationEnabled); - } - - public V1beta1EventSeriesBuilder( - io.kubernetes.client.openapi.models.V1beta1EventSeriesFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EventSeries instance) { - this(fluent, instance, false); - } - - public V1beta1EventSeriesBuilder( - io.kubernetes.client.openapi.models.V1beta1EventSeriesFluent fluent, - io.kubernetes.client.openapi.models.V1beta1EventSeries instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withCount(instance.getCount()); - - fluent.withLastObservedTime(instance.getLastObservedTime()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1EventSeriesBuilder( - io.kubernetes.client.openapi.models.V1beta1EventSeries instance) { - this(instance, false); - } - - public V1beta1EventSeriesBuilder( - io.kubernetes.client.openapi.models.V1beta1EventSeries instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withCount(instance.getCount()); - - this.withLastObservedTime(instance.getLastObservedTime()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1EventSeriesFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1EventSeries build() { - V1beta1EventSeries buildable = new V1beta1EventSeries(); - buildable.setCount(fluent.getCount()); - buildable.setLastObservedTime(fluent.getLastObservedTime()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesFluent.java deleted file mode 100644 index c34a8e0a4c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesFluent.java +++ /dev/null @@ -1,31 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import java.time.OffsetDateTime; - -/** Generated */ -public interface V1beta1EventSeriesFluent> extends Fluent { - public Integer getCount(); - - public A withCount(java.lang.Integer count); - - public Boolean hasCount(); - - public OffsetDateTime getLastObservedTime(); - - public A withLastObservedTime(java.time.OffsetDateTime lastObservedTime); - - public java.lang.Boolean hasLastObservedTime(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesFluentImpl.java deleted file mode 100644 index 0bac4ac855..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeriesFluentImpl.java +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1EventSeriesFluentImpl> - extends BaseFluent implements V1beta1EventSeriesFluent { - public V1beta1EventSeriesFluentImpl() {} - - public V1beta1EventSeriesFluentImpl( - io.kubernetes.client.openapi.models.V1beta1EventSeries instance) { - this.withCount(instance.getCount()); - - this.withLastObservedTime(instance.getLastObservedTime()); - } - - private Integer count; - private OffsetDateTime lastObservedTime; - - public java.lang.Integer getCount() { - return this.count; - } - - public A withCount(java.lang.Integer count) { - this.count = count; - return (A) this; - } - - public Boolean hasCount() { - return this.count != null; - } - - public java.time.OffsetDateTime getLastObservedTime() { - return this.lastObservedTime; - } - - public A withLastObservedTime(java.time.OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; - } - - public java.lang.Boolean hasLastObservedTime() { - return this.lastObservedTime != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1EventSeriesFluentImpl that = (V1beta1EventSeriesFluentImpl) o; - if (count != null ? !count.equals(that.count) : that.count != null) return false; - if (lastObservedTime != null - ? !lastObservedTime.equals(that.lastObservedTime) - : that.lastObservedTime != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); - } - - 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); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsBuilder.java deleted file mode 100644 index 344a162eb4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1FSGroupStrategyOptionsBuilder - extends V1beta1FSGroupStrategyOptionsFluentImpl - implements VisitableBuilder< - V1beta1FSGroupStrategyOptions, - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsBuilder> { - public V1beta1FSGroupStrategyOptionsBuilder() { - this(false); - } - - public V1beta1FSGroupStrategyOptionsBuilder(Boolean validationEnabled) { - this(new V1beta1FSGroupStrategyOptions(), validationEnabled); - } - - public V1beta1FSGroupStrategyOptionsBuilder(V1beta1FSGroupStrategyOptionsFluent fluent) { - this(fluent, false); - } - - public V1beta1FSGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1FSGroupStrategyOptions(), validationEnabled); - } - - public V1beta1FSGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions instance) { - this(fluent, instance, false); - } - - public V1beta1FSGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withRanges(instance.getRanges()); - - fluent.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1FSGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions instance) { - this(instance, false); - } - - public V1beta1FSGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions build() { - V1beta1FSGroupStrategyOptions buildable = new V1beta1FSGroupStrategyOptions(); - buildable.setRanges(fluent.getRanges()); - buildable.setRule(fluent.getRule()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsFluent.java deleted file mode 100644 index f48a3aafaa..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsFluent.java +++ /dev/null @@ -1,106 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1FSGroupStrategyOptionsFluent< - A extends V1beta1FSGroupStrategyOptionsFluent> - extends Fluent { - public A addToRanges(Integer index, V1beta1IDRange item); - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A addAllToRanges(Collection items); - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A removeAllFromRanges( - java.util.Collection items); - - public A removeMatchingFromRanges(Predicate predicate); - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges(); - - public java.util.List buildRanges(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate); - - public A withRanges(java.util.List ranges); - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges); - - public java.lang.Boolean hasRanges(); - - public V1beta1FSGroupStrategyOptionsFluent.RangesNested addNewRange(); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editMatchingRange( - java.util.function.Predicate - predicate); - - public String getRule(); - - public A withRule(java.lang.String rule); - - public java.lang.Boolean hasRule(); - - public interface RangesNested - extends Nested, V1beta1IDRangeFluent> { - public N and(); - - public N endRange(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsFluentImpl.java deleted file mode 100644 index 4ba71c4477..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptionsFluentImpl.java +++ /dev/null @@ -1,341 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1FSGroupStrategyOptionsFluentImpl< - A extends V1beta1FSGroupStrategyOptionsFluent> - extends BaseFluent implements V1beta1FSGroupStrategyOptionsFluent { - public V1beta1FSGroupStrategyOptionsFluentImpl() {} - - public V1beta1FSGroupStrategyOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions instance) { - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - } - - private ArrayList ranges; - private String rule; - - public A addToRanges(Integer index, V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(index >= 0 ? index : _visitables.get("ranges").size(), builder); - this.ranges.add(index >= 0 ? index : ranges.size(), builder); - return (A) this; - } - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - if (index < 0 || index >= _visitables.get("ranges").size()) { - _visitables.get("ranges").add(builder); - } else { - _visitables.get("ranges").set(index, builder); - } - if (index < 0 || index >= ranges.size()) { - ranges.add(builder); - } else { - ranges.set(index, builder); - } - return (A) this; - } - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A addAllToRanges(Collection items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromRanges( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromRanges( - Predicate predicate) { - if (ranges == null) return (A) this; - final Iterator each = - ranges.iterator(); - final List visitables = _visitables.get("ranges"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges() { - return ranges != null ? build(ranges) : null; - } - - public java.util.List buildRanges() { - return ranges != null ? build(ranges) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index) { - return this.ranges.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange() { - return this.ranges.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange() { - return this.ranges.get(ranges.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRanges(java.util.List ranges) { - if (this.ranges != null) { - _visitables.get("ranges").removeAll(this.ranges); - } - if (ranges != null) { - this.ranges = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } else { - this.ranges = null; - } - return (A) this; - } - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges) { - if (this.ranges != null) { - this.ranges.clear(); - } - if (ranges != null) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasRanges() { - return ranges != null && !ranges.isEmpty(); - } - - public V1beta1FSGroupStrategyOptionsFluent.RangesNested addNewRange() { - return new V1beta1FSGroupStrategyOptionsFluentImpl.RangesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new V1beta1FSGroupStrategyOptionsFluentImpl.RangesNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluentImpl - .RangesNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editRange(java.lang.Integer index) { - if (ranges.size() <= index) - throw new RuntimeException("Can't edit ranges. Index exceeds size."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editFirstRange() { - if (ranges.size() == 0) - throw new RuntimeException("Can't edit first ranges. The list is empty."); - return setNewRangeLike(0, buildRange(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editLastRange() { - int index = ranges.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ranges. The list is empty."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent.RangesNested - editMatchingRange( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < ranges.size(); i++) { - if (predicate.test(ranges.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching ranges. No match found."); - return setNewRangeLike(index, buildRange(index)); - } - - public java.lang.String getRule() { - return this.rule; - } - - public A withRule(java.lang.String rule) { - this.rule = rule; - return (A) this; - } - - public java.lang.Boolean hasRule() { - return this.rule != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1FSGroupStrategyOptionsFluentImpl that = (V1beta1FSGroupStrategyOptionsFluentImpl) o; - if (ranges != null ? !ranges.equals(that.ranges) : that.ranges != null) return false; - if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ranges, rule, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ranges != null && !ranges.isEmpty()) { - sb.append("ranges:"); - sb.append(ranges + ","); - } - if (rule != null) { - sb.append("rule:"); - sb.append(rule); - } - sb.append("}"); - return sb.toString(); - } - - class RangesNestedImpl - extends V1beta1IDRangeFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsFluent - .RangesNested< - N>, - Nested { - RangesNestedImpl(java.lang.Integer index, V1beta1IDRange item) { - this.index = index; - this.builder = new V1beta1IDRangeBuilder(this, item); - } - - RangesNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1FSGroupStrategyOptionsFluentImpl.this.setToRanges(index, builder.build()); - } - - public N endRange() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java index e5e1767c1d..896b6b6104 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodBuilder.java @@ -17,8 +17,7 @@ public class V1beta1FlowDistinguisherMethodBuilder extends V1beta1FlowDistinguisherMethodFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod, - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodBuilder> { + V1beta1FlowDistinguisherMethod, V1beta1FlowDistinguisherMethodBuilder> { public V1beta1FlowDistinguisherMethodBuilder() { this(false); } @@ -32,45 +31,41 @@ public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethodFluen } public V1beta1FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1FlowDistinguisherMethodFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1FlowDistinguisherMethod(), validationEnabled); } public V1beta1FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod instance) { + V1beta1FlowDistinguisherMethodFluent fluent, V1beta1FlowDistinguisherMethod instance) { this(fluent, instance, false); } public V1beta1FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowDistinguisherMethodFluent fluent, + V1beta1FlowDistinguisherMethod instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withType(instance.getType()); this.validationEnabled = validationEnabled; } - public V1beta1FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod instance) { + public V1beta1FlowDistinguisherMethodBuilder(V1beta1FlowDistinguisherMethod instance) { this(instance, false); } public V1beta1FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowDistinguisherMethod instance, Boolean validationEnabled) { this.fluent = this; this.withType(instance.getType()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1FlowDistinguisherMethodFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod build() { + public V1beta1FlowDistinguisherMethod build() { V1beta1FlowDistinguisherMethod buildable = new V1beta1FlowDistinguisherMethod(); buildable.setType(fluent.getType()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java index ebd7b8d369..126677e7c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluent.java @@ -20,7 +20,7 @@ public interface V1beta1FlowDistinguisherMethodFluent< extends Fluent { public String getType(); - public A withType(java.lang.String type); + public A withType(String type); public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java index a30ab7fa60..4c918563b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethodFluentImpl.java @@ -21,18 +21,17 @@ public class V1beta1FlowDistinguisherMethodFluentImpl< extends BaseFluent implements V1beta1FlowDistinguisherMethodFluent { public V1beta1FlowDistinguisherMethodFluentImpl() {} - public V1beta1FlowDistinguisherMethodFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod instance) { + public V1beta1FlowDistinguisherMethodFluentImpl(V1beta1FlowDistinguisherMethod instance) { this.withType(instance.getType()); } private String type; - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } @@ -53,7 +52,7 @@ public int hashCode() { return java.util.Objects.hash(type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (type != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java index b4f01ac0c6..129e2f9184 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1beta1FlowSchemaBuilder extends V1beta1FlowSchemaFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1FlowSchema, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder> { + implements VisitableBuilder { public V1beta1FlowSchemaBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent) { this(fluent, false); } - public V1beta1FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent fluent, - java.lang.Boolean validationEnabled) { + public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1FlowSchema(), validationEnabled); } - public V1beta1FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchema instance) { + public V1beta1FlowSchemaBuilder(V1beta1FlowSchemaFluent fluent, V1beta1FlowSchema instance) { this(fluent, instance, false); } public V1beta1FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchema instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaFluent fluent, V1beta1FlowSchema instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1beta1FlowSchemaBuilder( this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaBuilder(io.kubernetes.client.openapi.models.V1beta1FlowSchema instance) { + public V1beta1FlowSchemaBuilder(V1beta1FlowSchema instance) { this(instance, false); } - public V1beta1FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchema instance, - java.lang.Boolean validationEnabled) { + public V1beta1FlowSchemaBuilder(V1beta1FlowSchema instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1beta1FlowSchemaBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1FlowSchemaFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1FlowSchema build() { + public V1beta1FlowSchema build() { V1beta1FlowSchema buildable = new V1beta1FlowSchema(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java index 37237f3d0a..42b1e6ed0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionBuilder.java @@ -16,9 +16,7 @@ public class V1beta1FlowSchemaConditionBuilder extends V1beta1FlowSchemaConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> { + implements VisitableBuilder { public V1beta1FlowSchemaConditionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaConditionFluent flu } public V1beta1FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaCondition(), validationEnabled); } public V1beta1FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition instance) { + V1beta1FlowSchemaConditionFluent fluent, V1beta1FlowSchemaCondition instance) { this(fluent, instance, false); } public V1beta1FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaConditionFluent fluent, + V1beta1FlowSchemaCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +57,12 @@ public V1beta1FlowSchemaConditionBuilder( this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition instance) { + public V1beta1FlowSchemaConditionBuilder(V1beta1FlowSchemaCondition instance) { this(instance, false); } public V1beta1FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +77,10 @@ public V1beta1FlowSchemaConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1FlowSchemaConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition build() { + public V1beta1FlowSchemaCondition build() { V1beta1FlowSchemaCondition buildable = new V1beta1FlowSchemaCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java index b4097c51dc..7b9af4bf5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluent.java @@ -20,31 +20,31 @@ public interface V1beta1FlowSchemaConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java index f53915ba4e..3ec56e2707 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1beta1FlowSchemaConditionFluentImpl implements V1beta1FlowSchemaConditionFluent { public V1beta1FlowSchemaConditionFluentImpl() {} - public V1beta1FlowSchemaConditionFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition instance) { + public V1beta1FlowSchemaConditionFluentImpl(V1beta1FlowSchemaCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1beta1FlowSchemaConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java index 7e0fb8b687..5900d92769 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluent.java @@ -19,15 +19,15 @@ public interface V1beta1FlowSchemaFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,78 +37,69 @@ public interface V1beta1FlowSchemaFluent> e @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta1FlowSchemaFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta1FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - editMetadata(); + public V1beta1FlowSchemaFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - editOrNewMetadata(); + public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1FlowSchemaSpec getSpec(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec buildSpec(); + public V1beta1FlowSchemaSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec spec); + public A withSpec(V1beta1FlowSchemaSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1beta1FlowSchemaFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec item); + public V1beta1FlowSchemaFluent.SpecNested withNewSpecLike(V1beta1FlowSchemaSpec item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested editSpec(); + public V1beta1FlowSchemaFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested editOrNewSpec(); + public V1beta1FlowSchemaFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec item); + public V1beta1FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta1FlowSchemaSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1FlowSchemaStatus getStatus(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus buildStatus(); + public V1beta1FlowSchemaStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus status); + public A withStatus(V1beta1FlowSchemaStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1beta1FlowSchemaFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus item); + public V1beta1FlowSchemaFluent.StatusNested withNewStatusLike(V1beta1FlowSchemaStatus item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested editStatus(); + public V1beta1FlowSchemaFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested - editOrNewStatus(); + public V1beta1FlowSchemaFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus item); + public V1beta1FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta1FlowSchemaStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -118,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1beta1FlowSchemaSpecFluent> { + extends Nested, V1beta1FlowSchemaSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1beta1FlowSchemaStatusFluent> { + extends Nested, V1beta1FlowSchemaStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java index b4ee352196..fb3f9194f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaFluentImpl.java @@ -21,8 +21,7 @@ public class V1beta1FlowSchemaFluentImpl> e implements V1beta1FlowSchemaFluent { public V1beta1FlowSchemaFluentImpl() {} - public V1beta1FlowSchemaFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FlowSchema instance) { + public V1beta1FlowSchemaFluentImpl(V1beta1FlowSchema instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1beta1FlowSchemaFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1beta1FlowSchemaSpecBuilder spec; private V1beta1FlowSchemaStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1beta1FlowSchemaFluent.MetadataNested withNewMetadata() { return new V1beta1FlowSchemaFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta1FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta1FlowSchemaFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - editMetadata() { + public V1beta1FlowSchemaFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - editOrNewMetadata() { + public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta1FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1beta1FlowSchemaFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec getSpec() { + @Deprecated + public V1beta1FlowSchemaSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec buildSpec() { + public V1beta1FlowSchemaSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec spec) { + public A withSpec(V1beta1FlowSchemaSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1beta1FlowSchemaSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,24 +150,20 @@ public V1beta1FlowSchemaFluent.SpecNested withNewSpec() { return new V1beta1FlowSchemaFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluentImpl.SpecNestedImpl(item); + public V1beta1FlowSchemaFluent.SpecNested withNewSpecLike(V1beta1FlowSchemaSpec item) { + return new V1beta1FlowSchemaFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested editSpec() { + public V1beta1FlowSchemaFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested editOrNewSpec() { + public V1beta1FlowSchemaFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1beta1FlowSchemaSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec item) { + public V1beta1FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta1FlowSchemaSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -177,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1FlowSchemaStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus buildStatus() { + public V1beta1FlowSchemaStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus status) { + public A withStatus(V1beta1FlowSchemaStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = new io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusBuilder(status); + this.status = new V1beta1FlowSchemaStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -203,26 +201,20 @@ public V1beta1FlowSchemaFluent.StatusNested withNewStatus() { return new V1beta1FlowSchemaFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluentImpl.StatusNestedImpl( - item); + public V1beta1FlowSchemaFluent.StatusNested withNewStatusLike(V1beta1FlowSchemaStatus item) { + return new V1beta1FlowSchemaFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested editStatus() { + public V1beta1FlowSchemaFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested - editOrNewStatus() { + public V1beta1FlowSchemaFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1beta1FlowSchemaStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus item) { + public V1beta1FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta1FlowSchemaStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -243,7 +235,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -272,17 +264,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.MetadataNested, - Nested { + implements V1beta1FlowSchemaFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1beta1FlowSchemaFluentImpl.this.withMetadata(builder.build()); @@ -295,17 +286,16 @@ public N endMetadata() { class SpecNestedImpl extends V1beta1FlowSchemaSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec item) { + implements V1beta1FlowSchemaFluent.SpecNested, Nested { + SpecNestedImpl(V1beta1FlowSchemaSpec item) { this.builder = new V1beta1FlowSchemaSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecBuilder(this); + this.builder = new V1beta1FlowSchemaSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecBuilder builder; + V1beta1FlowSchemaSpecBuilder builder; public N and() { return (N) V1beta1FlowSchemaFluentImpl.this.withSpec(builder.build()); @@ -318,17 +308,16 @@ public N endSpec() { class StatusNestedImpl extends V1beta1FlowSchemaStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1beta1FlowSchemaFluent.StatusNested, Nested { StatusNestedImpl(V1beta1FlowSchemaStatus item) { this.builder = new V1beta1FlowSchemaStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusBuilder(this); + this.builder = new V1beta1FlowSchemaStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusBuilder builder; + V1beta1FlowSchemaStatusBuilder builder; public N and() { return (N) V1beta1FlowSchemaFluentImpl.this.withStatus(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java index c09e2f6cc5..5513fd59e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListBuilder.java @@ -16,9 +16,7 @@ public class V1beta1FlowSchemaListBuilder extends V1beta1FlowSchemaListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaList, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaListBuilder> { + implements VisitableBuilder { public V1beta1FlowSchemaListBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaListFluent fluent) { } public V1beta1FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaListFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaList(), validationEnabled); } public V1beta1FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaList instance) { + V1beta1FlowSchemaListFluent fluent, V1beta1FlowSchemaList instance) { this(fluent, instance, false); } public V1beta1FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaList instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaListFluent fluent, + V1beta1FlowSchemaList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +55,11 @@ public V1beta1FlowSchemaListBuilder( this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaList instance) { + public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaList instance) { this(instance, false); } - public V1beta1FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaList instance, - java.lang.Boolean validationEnabled) { + public V1beta1FlowSchemaListBuilder(V1beta1FlowSchemaList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +72,10 @@ public V1beta1FlowSchemaListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1FlowSchemaListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaList build() { + public V1beta1FlowSchemaList build() { V1beta1FlowSchemaList buildable = new V1beta1FlowSchemaList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java index 0dfbf450d6..47c45d5d55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluent.java @@ -23,23 +23,21 @@ public interface V1beta1FlowSchemaListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item); + public A addToItems(Integer index, V1beta1FlowSchema item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item); + public A setToItems(Integer index, V1beta1FlowSchema item); public A addToItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildItem(java.lang.Integer index); + public V1beta1FlowSchema buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildFirstItem(); + public V1beta1FlowSchema buildFirstItem(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildLastItem(); + public V1beta1FlowSchema buildLastItem(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildMatchingItem( - java.util.function.Predicate - predicate); + public V1beta1FlowSchema buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1beta1FlowSchemaListFluent.ItemsNested addNewItem(); - public V1beta1FlowSchemaListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1FlowSchema item); + public V1beta1FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta1FlowSchema item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item); + public V1beta1FlowSchemaListFluent.ItemsNested setNewItemLike( + Integer index, V1beta1FlowSchema item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1beta1FlowSchemaListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - editFirstItem(); + public V1beta1FlowSchemaListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - editLastItem(); + public V1beta1FlowSchemaListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1beta1FlowSchemaListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - editMetadata(); + public V1beta1FlowSchemaListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - editOrNewMetadata(); + public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1beta1FlowSchemaFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java index cd6665ba08..57ba161a40 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaListFluentImpl.java @@ -26,8 +26,7 @@ public class V1beta1FlowSchemaListFluentImpl implements V1beta1FlowSchemaListFluent { public V1beta1FlowSchemaListFluentImpl() {} - public V1beta1FlowSchemaListFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaList instance) { + public V1beta1FlowSchemaListFluentImpl(V1beta1FlowSchemaList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1beta1FlowSchemaListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item) { + public A addToItems(Integer index, V1beta1FlowSchema item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder(item); + V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item) { + public A setToItems(Integer index, V1beta1FlowSchema item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder(item); + V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1FlowSchema item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder(item); + for (V1beta1FlowSchema item : items) { + V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1FlowSchema item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder(item); + for (V1beta1FlowSchema item : items) { + V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchema item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1beta1FlowSchema item : items) { + V1beta1FlowSchemaBuilder builder = new V1beta1FlowSchemaBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder = each.next(); + V1beta1FlowSchemaBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildItem(java.lang.Integer index) { + public V1beta1FlowSchema buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildFirstItem() { + public V1beta1FlowSchema buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildLastItem() { + public V1beta1FlowSchema buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder item : items) { + public V1beta1FlowSchema buildMatchingItem(Predicate predicate) { + for (V1beta1FlowSchemaBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1beta1FlowSchema buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1beta1FlowSchemaBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1FlowSchema item : items) { + this.items = new ArrayList(); + for (V1beta1FlowSchema item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta1FlowSchema... item this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchema item : items) { + for (V1beta1FlowSchema item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,41 +221,33 @@ public V1beta1FlowSchemaListFluent.ItemsNested addNewItem() { return new V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl(); } - public V1beta1FlowSchemaListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1FlowSchema item) { + public V1beta1FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta1FlowSchema item) { return new V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl( - index, item); + public V1beta1FlowSchemaListFluent.ItemsNested setNewItemLike( + Integer index, V1beta1FlowSchema item) { + return new V1beta1FlowSchemaListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1beta1FlowSchemaListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - editFirstItem() { + public V1beta1FlowSchemaListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - editLastItem() { + public V1beta1FlowSchemaListFluent.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 io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1beta1FlowSchemaListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -286,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNest return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -304,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -330,27 +306,20 @@ public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadata() { return new V1beta1FlowSchemaListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluentImpl - .MetadataNestedImpl(item); + public V1beta1FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1beta1FlowSchemaListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - editMetadata() { + public V1beta1FlowSchemaListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - editOrNewMetadata() { + public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1beta1FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -370,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -395,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1beta1FlowSchemaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchema item) { + implements V1beta1FlowSchemaListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1beta1FlowSchema item) { this.index = index; this.builder = new V1beta1FlowSchemaBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder(this); + this.builder = new V1beta1FlowSchemaBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaBuilder builder; - java.lang.Integer index; + V1beta1FlowSchemaBuilder builder; + Integer index; public N and() { return (N) V1beta1FlowSchemaListFluentImpl.this.setToItems(index, builder.build()); @@ -422,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1beta1FlowSchemaListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1beta1FlowSchemaListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java index f8cafff7e1..e3a23f4872 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecBuilder.java @@ -16,9 +16,7 @@ public class V1beta1FlowSchemaSpecBuilder extends V1beta1FlowSchemaSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecBuilder> { + implements VisitableBuilder { public V1beta1FlowSchemaSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpecFluent fluent) { } public V1beta1FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaSpec(), validationEnabled); } public V1beta1FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec instance) { + V1beta1FlowSchemaSpecFluent fluent, V1beta1FlowSchemaSpec instance) { this(fluent, instance, false); } public V1beta1FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaSpecFluent fluent, + V1beta1FlowSchemaSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDistinguisherMethod(instance.getDistinguisherMethod()); @@ -59,14 +55,11 @@ public V1beta1FlowSchemaSpecBuilder( this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec instance) { + public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpec instance) { this(instance, false); } - public V1beta1FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec instance, - java.lang.Boolean validationEnabled) { + public V1beta1FlowSchemaSpecBuilder(V1beta1FlowSchemaSpec instance, Boolean validationEnabled) { this.fluent = this; this.withDistinguisherMethod(instance.getDistinguisherMethod()); @@ -79,10 +72,10 @@ public V1beta1FlowSchemaSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1FlowSchemaSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec build() { + public V1beta1FlowSchemaSpec build() { V1beta1FlowSchemaSpec buildable = new V1beta1FlowSchemaSpec(); buildable.setDistinguisherMethod(fluent.getDistinguisherMethod()); buildable.setMatchingPrecedence(fluent.getMatchingPrecedence()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java index 98f562690e..3a2f73d92d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluent.java @@ -30,99 +30,72 @@ public interface V1beta1FlowSchemaSpecFluent withNewDistinguisherMethod(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - withNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod item); + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( + V1beta1FlowDistinguisherMethod item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editDistinguisherMethod(); + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethod(); + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod item); + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( + V1beta1FlowDistinguisherMethod item); public Integer getMatchingPrecedence(); - public A withMatchingPrecedence(java.lang.Integer matchingPrecedence); + public A withMatchingPrecedence(Integer matchingPrecedence); - public java.lang.Boolean hasMatchingPrecedence(); + public Boolean hasMatchingPrecedence(); /** * This method has been deprecated, please use method buildPriorityLevelConfiguration instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1PriorityLevelConfigurationReference getPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference - buildPriorityLevelConfiguration(); + public V1beta1PriorityLevelConfigurationReference buildPriorityLevelConfiguration(); public A withPriorityLevelConfiguration( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference - priorityLevelConfiguration); + V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration); - public java.lang.Boolean hasPriorityLevelConfiguration(); + public Boolean hasPriorityLevelConfiguration(); public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - withNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference item); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested + withNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - editOrNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference item); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested + editOrNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item); - public A addToRules(java.lang.Integer index, V1beta1PolicyRulesWithSubjects item); + public A addToRules(Integer index, V1beta1PolicyRulesWithSubjects item); - public A setToRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item); + public A setToRules(Integer index, V1beta1PolicyRulesWithSubjects item); public A addToRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items); - public A addAllToRules( - Collection items); + public A addAllToRules(Collection items); public A removeFromRules( io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items); - public A removeAllFromRules( - java.util.Collection - items); + public A removeAllFromRules(Collection items); public A removeMatchingFromRules(Predicate predicate); @@ -131,60 +104,44 @@ public A removeAllFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules(); + @Deprecated + public List getRules(); - public java.util.List - buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildRule( - java.lang.Integer index); + public V1beta1PolicyRulesWithSubjects buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildFirstRule(); + public V1beta1PolicyRulesWithSubjects buildFirstRule(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildLastRule(); + public V1beta1PolicyRulesWithSubjects buildLastRule(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> - predicate); + public V1beta1PolicyRulesWithSubjects buildMatchingRule( + Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules( - java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1beta1FlowSchemaSpecFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - addNewRuleLike(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item); + public V1beta1FlowSchemaSpecFluent.RulesNested addNewRuleLike( + V1beta1PolicyRulesWithSubjects item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - setNewRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item); + public V1beta1FlowSchemaSpecFluent.RulesNested setNewRuleLike( + Integer index, V1beta1PolicyRulesWithSubjects item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested editRule( - java.lang.Integer index); + public V1beta1FlowSchemaSpecFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - editFirstRule(); + public V1beta1FlowSchemaSpecFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - editLastRule(); + public V1beta1FlowSchemaSpecFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> - predicate); + public V1beta1FlowSchemaSpecFluent.RulesNested editMatchingRule( + Predicate predicate); public interface DistinguisherMethodNested extends Nested, @@ -196,7 +153,7 @@ public interface DistinguisherMethodNested } public interface PriorityLevelConfigurationNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1PriorityLevelConfigurationReferenceFluent< V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested> { public N and(); @@ -205,7 +162,7 @@ public interface PriorityLevelConfigurationNested } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1PolicyRulesWithSubjectsFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java index 06cd64da67..dd7557b5d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpecFluentImpl.java @@ -26,8 +26,7 @@ public class V1beta1FlowSchemaSpecFluentImpl implements V1beta1FlowSchemaSpecFluent { public V1beta1FlowSchemaSpecFluentImpl() {} - public V1beta1FlowSchemaSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpec instance) { + public V1beta1FlowSchemaSpecFluentImpl(V1beta1FlowSchemaSpec instance) { this.withDistinguisherMethod(instance.getDistinguisherMethod()); this.withMatchingPrecedence(instance.getMatchingPrecedence()); @@ -52,19 +51,18 @@ public V1beta1FlowDistinguisherMethod getDistinguisherMethod() { return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod - buildDistinguisherMethod() { + public V1beta1FlowDistinguisherMethod buildDistinguisherMethod() { return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; } - public A withDistinguisherMethod( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod distinguisherMethod) { + public A withDistinguisherMethod(V1beta1FlowDistinguisherMethod distinguisherMethod) { _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); if (distinguisherMethod != null) { - this.distinguisherMethod = - new io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodBuilder( - distinguisherMethod); + this.distinguisherMethod = new V1beta1FlowDistinguisherMethodBuilder(distinguisherMethod); _visitables.get("distinguisherMethod").add(this.distinguisherMethod); + } else { + this.distinguisherMethod = null; + _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); } return (A) this; } @@ -77,47 +75,38 @@ public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistingui return new V1beta1FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - withNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod item) { + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( + V1beta1FlowDistinguisherMethod item) { return new V1beta1FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editDistinguisherMethod() { + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod() { return withNewDistinguisherMethodLike(getDistinguisherMethod()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethod() { + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod() { return withNewDistinguisherMethodLike( getDistinguisherMethod() != null ? getDistinguisherMethod() - : new io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodBuilder() - .build()); + : new V1beta1FlowDistinguisherMethodBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod item) { + public V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( + V1beta1FlowDistinguisherMethod item) { return withNewDistinguisherMethodLike( getDistinguisherMethod() != null ? getDistinguisherMethod() : item); } - public java.lang.Integer getMatchingPrecedence() { + public Integer getMatchingPrecedence() { return this.matchingPrecedence; } - public A withMatchingPrecedence(java.lang.Integer matchingPrecedence) { + public A withMatchingPrecedence(Integer matchingPrecedence) { this.matchingPrecedence = matchingPrecedence; return (A) this; } - public java.lang.Boolean hasMatchingPrecedence() { + public Boolean hasMatchingPrecedence() { return this.matchingPrecedence != null; } @@ -126,30 +115,30 @@ public java.lang.Boolean hasMatchingPrecedence() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference - buildPriorityLevelConfiguration() { + public V1beta1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; } public A withPriorityLevelConfiguration( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference - priorityLevelConfiguration) { + V1beta1PriorityLevelConfigurationReference priorityLevelConfiguration) { _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); if (priorityLevelConfiguration != null) { this.priorityLevelConfiguration = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceBuilder( - priorityLevelConfiguration); + new V1beta1PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); _visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); + } else { + this.priorityLevelConfiguration = null; + _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); } return (A) this; } - public java.lang.Boolean hasPriorityLevelConfiguration() { + public Boolean hasPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null; } @@ -158,66 +147,45 @@ public java.lang.Boolean hasPriorityLevelConfiguration() { return new V1beta1FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - withNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluentImpl - .PriorityLevelConfigurationNestedImpl(item); + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested + withNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item) { + return new V1beta1FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration() { return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { return withNewPriorityLevelConfigurationLike( getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration() - : new io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationReferenceBuilder() - .build()); + : new V1beta1PriorityLevelConfigurationReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - editOrNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference item) { + public V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested + editOrNewPriorityLevelConfigurationLike(V1beta1PriorityLevelConfigurationReference item) { return withNewPriorityLevelConfigurationLike( getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration() : item); } - public A addToRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item) { + public A addToRules(Integer index, V1beta1PolicyRulesWithSubjects item) { if (this.rules == null) { - this.rules = new java.util.ArrayList(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(item); + V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item) { + public A setToRules(Integer index, V1beta1PolicyRulesWithSubjects item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(item); + V1beta1PolicyRulesWithSubjectsBuilder builder = new V1beta1PolicyRulesWithSubjectsBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -233,29 +201,24 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(item); + for (V1beta1PolicyRulesWithSubjects item : items) { + V1beta1PolicyRulesWithSubjectsBuilder builder = + new V1beta1PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; } - public A addAllToRules( - Collection items) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(item); + for (V1beta1PolicyRulesWithSubjects item : items) { + V1beta1PolicyRulesWithSubjectsBuilder builder = + new V1beta1PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -264,9 +227,9 @@ public A addAllToRules( public A removeFromRules( io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects... items) { - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(item); + for (V1beta1PolicyRulesWithSubjects item : items) { + V1beta1PolicyRulesWithSubjectsBuilder builder = + new V1beta1PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -275,12 +238,10 @@ public A removeFromRules( return (A) this; } - public A removeAllFromRules( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1beta1PolicyRulesWithSubjects item : items) { + V1beta1PolicyRulesWithSubjectsBuilder builder = + new V1beta1PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -289,16 +250,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - Predicate - predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = - rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder = - each.next(); + V1beta1PolicyRulesWithSubjectsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -312,34 +269,30 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List - buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildRule( - java.lang.Integer index) { + public V1beta1PolicyRulesWithSubjects buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildFirstRule() { + public V1beta1PolicyRulesWithSubjects buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildLastRule() { + public V1beta1PolicyRulesWithSubjects buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder item : rules) { + public V1beta1PolicyRulesWithSubjects buildMatchingRule( + Predicate predicate) { + for (V1beta1PolicyRulesWithSubjectsBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -347,11 +300,8 @@ public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects buildM return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1beta1PolicyRulesWithSubjectsBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -359,14 +309,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules( - java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item : rules) { + this.rules = new ArrayList(); + for (V1beta1PolicyRulesWithSubjects item : rules) { this.addToRules(item); } } else { @@ -380,14 +329,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSub this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item : rules) { + for (V1beta1PolicyRulesWithSubjects item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -395,44 +344,34 @@ public V1beta1FlowSchemaSpecFluent.RulesNested addNewRule() { return new V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - addNewRuleLike(io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl( - -1, item); + public V1beta1FlowSchemaSpecFluent.RulesNested addNewRuleLike( + V1beta1PolicyRulesWithSubjects item) { + return new V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - setNewRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl( - index, item); + public V1beta1FlowSchemaSpecFluent.RulesNested setNewRuleLike( + Integer index, V1beta1PolicyRulesWithSubjects item) { + return new V1beta1FlowSchemaSpecFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested editRule( - java.lang.Integer index) { + public V1beta1FlowSchemaSpecFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - editFirstRule() { + public V1beta1FlowSchemaSpecFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - editLastRule() { + public V1beta1FlowSchemaSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> - predicate) { + public V1beta1FlowSchemaSpecFluent.RulesNested editMatchingRule( + Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -496,21 +435,16 @@ public String toString() { class DistinguisherMethodNestedImpl extends V1beta1FlowDistinguisherMethodFluentImpl< V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .DistinguisherMethodNested< - N>, - Nested { - DistinguisherMethodNestedImpl( - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethod item) { + implements V1beta1FlowSchemaSpecFluent.DistinguisherMethodNested, Nested { + DistinguisherMethodNestedImpl(V1beta1FlowDistinguisherMethod item) { this.builder = new V1beta1FlowDistinguisherMethodBuilder(this, item); } DistinguisherMethodNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodBuilder(this); + this.builder = new V1beta1FlowDistinguisherMethodBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1FlowDistinguisherMethodBuilder builder; + V1beta1FlowDistinguisherMethodBuilder builder; public N and() { return (N) V1beta1FlowSchemaSpecFluentImpl.this.withDistinguisherMethod(builder.build()); @@ -524,21 +458,16 @@ public N endDistinguisherMethod() { class PriorityLevelConfigurationNestedImpl extends V1beta1PriorityLevelConfigurationReferenceFluentImpl< V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta1FlowSchemaSpecFluent.PriorityLevelConfigurationNested, Nested { PriorityLevelConfigurationNestedImpl(V1beta1PriorityLevelConfigurationReference item) { this.builder = new V1beta1PriorityLevelConfigurationReferenceBuilder(this, item); } PriorityLevelConfigurationNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceBuilder( - this); + this.builder = new V1beta1PriorityLevelConfigurationReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceBuilder builder; + V1beta1PriorityLevelConfigurationReferenceBuilder builder; public N and() { return (N) @@ -552,23 +481,19 @@ public N endPriorityLevelConfiguration() { class RulesNestedImpl extends V1beta1PolicyRulesWithSubjectsFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaSpecFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects item) { + implements V1beta1FlowSchemaSpecFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1beta1PolicyRulesWithSubjects item) { this.index = index; this.builder = new V1beta1PolicyRulesWithSubjectsBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder(this); + this.builder = new V1beta1PolicyRulesWithSubjectsBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder builder; - java.lang.Integer index; + V1beta1PolicyRulesWithSubjectsBuilder builder; + Integer index; public N and() { return (N) V1beta1FlowSchemaSpecFluentImpl.this.setToRules(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java index 251b152997..d04bd8f9e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusBuilder.java @@ -16,9 +16,7 @@ public class V1beta1FlowSchemaStatusBuilder extends V1beta1FlowSchemaStatusFluentImpl - implements VisitableBuilder< - V1beta1FlowSchemaStatus, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusBuilder> { + implements VisitableBuilder { public V1beta1FlowSchemaStatusBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatusFluent fluent) { } public V1beta1FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1FlowSchemaStatus(), validationEnabled); } public V1beta1FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus instance) { + V1beta1FlowSchemaStatusFluent fluent, V1beta1FlowSchemaStatus instance) { this(fluent, instance, false); } public V1beta1FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaStatusFluent fluent, + V1beta1FlowSchemaStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - public V1beta1FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus instance) { + public V1beta1FlowSchemaStatusBuilder(V1beta1FlowSchemaStatus instance) { this(instance, false); } public V1beta1FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus instance, - java.lang.Boolean validationEnabled) { + V1beta1FlowSchemaStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1FlowSchemaStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus build() { + public V1beta1FlowSchemaStatus build() { V1beta1FlowSchemaStatus buildable = new V1beta1FlowSchemaStatus(); buildable.setConditions(fluent.getConditions()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java index 9329675214..af002ae8a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluent.java @@ -23,19 +23,16 @@ public interface V1beta1FlowSchemaStatusFluent { public A addToConditions(Integer index, V1beta1FlowSchemaCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item); + public A setToConditions(Integer index, V1beta1FlowSchemaCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -45,60 +42,44 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildCondition( - java.lang.Integer index); + public V1beta1FlowSchemaCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildFirstCondition(); + public V1beta1FlowSchemaCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildLastCondition(); + public V1beta1FlowSchemaCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> - predicate); + public V1beta1FlowSchemaCondition buildMatchingCondition( + Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item); + public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( + V1beta1FlowSchemaCondition item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item); + public V1beta1FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta1FlowSchemaCondition item); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1beta1FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editFirstCondition(); + public V1beta1FlowSchemaStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editLastCondition(); + public V1beta1FlowSchemaStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> - predicate); + public V1beta1FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java index 69af71df34..92d01302d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatusFluentImpl.java @@ -26,20 +26,17 @@ public class V1beta1FlowSchemaStatusFluentImpl implements V1beta1FlowSchemaStatusFluent { public V1beta1FlowSchemaStatusFluentImpl() {} - public V1beta1FlowSchemaStatusFluentImpl( - io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatus instance) { + public V1beta1FlowSchemaStatusFluentImpl(V1beta1FlowSchemaStatus instance) { this.withConditions(instance.getConditions()); } private ArrayList conditions; - public A addToConditions( - Integer index, io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item) { + public A addToConditions(Integer index, V1beta1FlowSchemaCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(item); + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -47,16 +44,11 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item) { + public A setToConditions(Integer index, V1beta1FlowSchemaCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(item); + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -73,29 +65,22 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(item); + for (V1beta1FlowSchemaCondition item : items) { + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - Collection items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(item); + for (V1beta1FlowSchemaCondition item : items) { + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -104,9 +89,8 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition... items) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(item); + for (V1beta1FlowSchemaCondition item : items) { + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -115,11 +99,9 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1beta1FlowSchemaCondition item : items) { + V1beta1FlowSchemaConditionBuilder builder = new V1beta1FlowSchemaConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -128,14 +110,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder = each.next(); + V1beta1FlowSchemaConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -150,33 +130,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildCondition( - java.lang.Integer index) { + public V1beta1FlowSchemaCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildFirstCondition() { + public V1beta1FlowSchemaCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildLastCondition() { + public V1beta1FlowSchemaCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder item : conditions) { + public V1beta1FlowSchemaCondition buildMatchingCondition( + Predicate predicate) { + for (V1beta1FlowSchemaConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -184,11 +160,8 @@ public io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition buildMatch return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1beta1FlowSchemaConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -196,14 +169,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1beta1FlowSchemaCondition item : conditions) { this.addToConditions(item); } } else { @@ -218,14 +190,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item : conditions) { + for (V1beta1FlowSchemaCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -233,45 +205,36 @@ public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewCondition() { return new V1beta1FlowSchemaStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item) { + public V1beta1FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( + V1beta1FlowSchemaCondition item) { return new V1beta1FlowSchemaStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item) { - return new io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1beta1FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta1FlowSchemaCondition item) { + return new V1beta1FlowSchemaStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1beta1FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editFirstCondition() { + public V1beta1FlowSchemaStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editLastCondition() { + public V1beta1FlowSchemaStatusFluent.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 io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder> - predicate) { + public V1beta1FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -310,24 +273,19 @@ public String toString() { class ConditionsNestedImpl extends V1beta1FlowSchemaConditionFluentImpl< V1beta1FlowSchemaStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1beta1FlowSchemaStatusFluent.ConditionsNested< - N>, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1FlowSchemaCondition item) { + implements V1beta1FlowSchemaStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1beta1FlowSchemaCondition item) { this.index = index; this.builder = new V1beta1FlowSchemaConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder(this); + this.builder = new V1beta1FlowSchemaConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1FlowSchemaConditionBuilder builder; - java.lang.Integer index; + V1beta1FlowSchemaConditionBuilder builder; + Integer index; public N and() { return (N) V1beta1FlowSchemaStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneBuilder.java deleted file mode 100644 index 424ae546cf..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1ForZoneBuilder extends V1beta1ForZoneFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1ForZone, - io.kubernetes.client.openapi.models.V1beta1ForZoneBuilder> { - public V1beta1ForZoneBuilder() { - this(false); - } - - public V1beta1ForZoneBuilder(Boolean validationEnabled) { - this(new V1beta1ForZone(), validationEnabled); - } - - public V1beta1ForZoneBuilder(V1beta1ForZoneFluent fluent) { - this(fluent, false); - } - - public V1beta1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1beta1ForZoneFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1ForZone(), validationEnabled); - } - - public V1beta1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1beta1ForZoneFluent fluent, - io.kubernetes.client.openapi.models.V1beta1ForZone instance) { - this(fluent, instance, false); - } - - public V1beta1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1beta1ForZoneFluent fluent, - io.kubernetes.client.openapi.models.V1beta1ForZone instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1ForZoneBuilder(io.kubernetes.client.openapi.models.V1beta1ForZone instance) { - this(instance, false); - } - - public V1beta1ForZoneBuilder( - io.kubernetes.client.openapi.models.V1beta1ForZone instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1ForZoneFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1ForZone build() { - V1beta1ForZone buildable = new V1beta1ForZone(); - buildable.setName(fluent.getName()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneFluent.java deleted file mode 100644 index b1ae4c72ae..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneFluent.java +++ /dev/null @@ -1,24 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1ForZoneFluent> extends Fluent { - public String getName(); - - public A withName(java.lang.String name); - - public Boolean hasName(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneFluentImpl.java deleted file mode 100644 index 9171f21e42..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZoneFluentImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1ForZoneFluentImpl> extends BaseFluent - implements V1beta1ForZoneFluent { - public V1beta1ForZoneFluentImpl() {} - - public V1beta1ForZoneFluentImpl(io.kubernetes.client.openapi.models.V1beta1ForZone instance) { - this.withName(instance.getName()); - } - - private String name; - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.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; - V1beta1ForZoneFluentImpl that = (V1beta1ForZoneFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - 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/V1beta1GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java index d407540391..845901bd92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectBuilder.java @@ -16,8 +16,7 @@ public class V1beta1GroupSubjectBuilder extends V1beta1GroupSubjectFluentImpl - implements VisitableBuilder< - V1beta1GroupSubject, io.kubernetes.client.openapi.models.V1beta1GroupSubjectBuilder> { + implements VisitableBuilder { public V1beta1GroupSubjectBuilder() { this(false); } @@ -31,45 +30,40 @@ public V1beta1GroupSubjectBuilder(V1beta1GroupSubjectFluent fluent) { } public V1beta1GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1GroupSubjectFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1GroupSubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1GroupSubject(), validationEnabled); } public V1beta1GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1GroupSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1GroupSubject instance) { + V1beta1GroupSubjectFluent fluent, V1beta1GroupSubject instance) { this(fluent, instance, false); } public V1beta1GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1GroupSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1GroupSubject instance, - java.lang.Boolean validationEnabled) { + V1beta1GroupSubjectFluent fluent, + V1beta1GroupSubject instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1beta1GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1GroupSubject instance) { + public V1beta1GroupSubjectBuilder(V1beta1GroupSubject instance) { this(instance, false); } - public V1beta1GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1GroupSubject instance, - java.lang.Boolean validationEnabled) { + public V1beta1GroupSubjectBuilder(V1beta1GroupSubject instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1GroupSubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1GroupSubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1GroupSubject build() { + public V1beta1GroupSubject build() { V1beta1GroupSubject buildable = new V1beta1GroupSubject(); buildable.setName(fluent.getName()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java index aa5ac77c23..1e48bb5a59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluent.java @@ -19,7 +19,7 @@ public interface V1beta1GroupSubjectFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java index 97ae354788..cb7cd30a5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubjectFluentImpl.java @@ -20,18 +20,17 @@ public class V1beta1GroupSubjectFluentImpl implements V1beta1GroupSubjectFluent { public V1beta1GroupSubjectFluentImpl() {} - public V1beta1GroupSubjectFluentImpl( - io.kubernetes.client.openapi.models.V1beta1GroupSubject instance) { + public V1beta1GroupSubjectFluentImpl(V1beta1GroupSubject instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -52,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeBuilder.java deleted file mode 100644 index 781431188b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1HostPortRangeBuilder - extends V1beta1HostPortRangeFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1HostPortRange, - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder> { - public V1beta1HostPortRangeBuilder() { - this(false); - } - - public V1beta1HostPortRangeBuilder(Boolean validationEnabled) { - this(new V1beta1HostPortRange(), validationEnabled); - } - - public V1beta1HostPortRangeBuilder(V1beta1HostPortRangeFluent fluent) { - this(fluent, false); - } - - public V1beta1HostPortRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1HostPortRangeFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1HostPortRange(), validationEnabled); - } - - public V1beta1HostPortRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1HostPortRangeFluent fluent, - io.kubernetes.client.openapi.models.V1beta1HostPortRange instance) { - this(fluent, instance, false); - } - - public V1beta1HostPortRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1HostPortRangeFluent fluent, - io.kubernetes.client.openapi.models.V1beta1HostPortRange instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMax(instance.getMax()); - - fluent.withMin(instance.getMin()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1HostPortRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1HostPortRange instance) { - this(instance, false); - } - - public V1beta1HostPortRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1HostPortRange instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMax(instance.getMax()); - - this.withMin(instance.getMin()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1HostPortRangeFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange build() { - V1beta1HostPortRange buildable = new V1beta1HostPortRange(); - buildable.setMax(fluent.getMax()); - buildable.setMin(fluent.getMin()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeFluentImpl.java deleted file mode 100644 index 9272e452fe..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRangeFluentImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1HostPortRangeFluentImpl> - extends BaseFluent implements V1beta1HostPortRangeFluent { - public V1beta1HostPortRangeFluentImpl() {} - - public V1beta1HostPortRangeFluentImpl( - io.kubernetes.client.openapi.models.V1beta1HostPortRange instance) { - this.withMax(instance.getMax()); - - this.withMin(instance.getMin()); - } - - private Integer max; - private java.lang.Integer min; - - public java.lang.Integer getMax() { - return this.max; - } - - public A withMax(java.lang.Integer max) { - this.max = max; - return (A) this; - } - - public Boolean hasMax() { - return this.max != null; - } - - public java.lang.Integer getMin() { - return this.min; - } - - public A withMin(java.lang.Integer min) { - this.min = min; - return (A) this; - } - - public java.lang.Boolean hasMin() { - return this.min != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1HostPortRangeFluentImpl that = (V1beta1HostPortRangeFluentImpl) o; - if (max != null ? !max.equals(that.max) : that.max != null) return false; - if (min != null ? !min.equals(that.min) : that.min != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(max, min, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (max != null) { - sb.append("max:"); - sb.append(max + ","); - } - if (min != null) { - sb.append("min:"); - sb.append(min); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeBuilder.java deleted file mode 100644 index 7db07841fe..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1IDRangeBuilder extends V1beta1IDRangeFluentImpl - implements VisitableBuilder< - V1beta1IDRange, io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder> { - public V1beta1IDRangeBuilder() { - this(false); - } - - public V1beta1IDRangeBuilder(Boolean validationEnabled) { - this(new V1beta1IDRange(), validationEnabled); - } - - public V1beta1IDRangeBuilder(io.kubernetes.client.openapi.models.V1beta1IDRangeFluent fluent) { - this(fluent, false); - } - - public V1beta1IDRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1IDRangeFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1IDRange(), validationEnabled); - } - - public V1beta1IDRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1IDRangeFluent fluent, - io.kubernetes.client.openapi.models.V1beta1IDRange instance) { - this(fluent, instance, false); - } - - public V1beta1IDRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1IDRangeFluent fluent, - io.kubernetes.client.openapi.models.V1beta1IDRange instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMax(instance.getMax()); - - fluent.withMin(instance.getMin()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1IDRangeBuilder(io.kubernetes.client.openapi.models.V1beta1IDRange instance) { - this(instance, false); - } - - public V1beta1IDRangeBuilder( - io.kubernetes.client.openapi.models.V1beta1IDRange instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMax(instance.getMax()); - - this.withMin(instance.getMin()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1IDRangeFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1IDRange build() { - V1beta1IDRange buildable = new V1beta1IDRange(); - buildable.setMax(fluent.getMax()); - buildable.setMin(fluent.getMin()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeFluent.java deleted file mode 100644 index ef1935b77a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeFluent.java +++ /dev/null @@ -1,30 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V1beta1IDRangeFluent> extends Fluent { - public Long getMax(); - - public A withMax(java.lang.Long max); - - public Boolean hasMax(); - - public java.lang.Long getMin(); - - public A withMin(java.lang.Long min); - - public java.lang.Boolean hasMin(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeFluentImpl.java deleted file mode 100644 index c3898251e3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRangeFluentImpl.java +++ /dev/null @@ -1,85 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1IDRangeFluentImpl> extends BaseFluent - implements V1beta1IDRangeFluent { - public V1beta1IDRangeFluentImpl() {} - - public V1beta1IDRangeFluentImpl(io.kubernetes.client.openapi.models.V1beta1IDRange instance) { - this.withMax(instance.getMax()); - - this.withMin(instance.getMin()); - } - - private Long max; - private java.lang.Long min; - - public java.lang.Long getMax() { - return this.max; - } - - public A withMax(java.lang.Long max) { - this.max = max; - return (A) this; - } - - public Boolean hasMax() { - return this.max != null; - } - - public java.lang.Long getMin() { - return this.min; - } - - public A withMin(java.lang.Long min) { - this.min = min; - return (A) this; - } - - public java.lang.Boolean hasMin() { - return this.min != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1IDRangeFluentImpl that = (V1beta1IDRangeFluentImpl) o; - if (max != null ? !max.equals(that.max) : that.max != null) return false; - if (min != null ? !min.equals(that.min) : that.min != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(max, min, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (max != null) { - sb.append("max:"); - sb.append(max + ","); - } - if (min != null) { - sb.append("min:"); - sb.append(min); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecBuilder.java deleted file mode 100644 index 024607703c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1JobTemplateSpecBuilder - extends V1beta1JobTemplateSpecFluentImpl - implements VisitableBuilder< - V1beta1JobTemplateSpec, io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecBuilder> { - public V1beta1JobTemplateSpecBuilder() { - this(false); - } - - public V1beta1JobTemplateSpecBuilder(Boolean validationEnabled) { - this(new V1beta1JobTemplateSpec(), validationEnabled); - } - - public V1beta1JobTemplateSpecBuilder(V1beta1JobTemplateSpecFluent fluent) { - this(fluent, false); - } - - public V1beta1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1JobTemplateSpec(), validationEnabled); - } - - public V1beta1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec instance) { - this(fluent, instance, false); - } - - public V1beta1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMetadata(instance.getMetadata()); - - fluent.withSpec(instance.getSpec()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec instance) { - this(instance, false); - } - - public V1beta1JobTemplateSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec build() { - V1beta1JobTemplateSpec buildable = new V1beta1JobTemplateSpec(); - buildable.setMetadata(fluent.getMetadata()); - buildable.setSpec(fluent.getSpec()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecFluent.java deleted file mode 100644 index 38742588a3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecFluent.java +++ /dev/null @@ -1,91 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1JobTemplateSpecFluent> - extends Fluent { - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public Boolean hasMetadata(); - - public V1beta1JobTemplateSpecFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1JobSpec getSpec(); - - public io.kubernetes.client.openapi.models.V1JobSpec buildSpec(); - - public A withSpec(io.kubernetes.client.openapi.models.V1JobSpec spec); - - public java.lang.Boolean hasSpec(); - - public V1beta1JobTemplateSpecFluent.SpecNested withNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1JobSpec item); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested editSpec(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested - editOrNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1JobSpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1JobSpecFluent> { - public N and(); - - public N endSpec(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecFluentImpl.java deleted file mode 100644 index ab39c10ed8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpecFluentImpl.java +++ /dev/null @@ -1,214 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1JobTemplateSpecFluentImpl> - extends BaseFluent implements V1beta1JobTemplateSpecFluent { - public V1beta1JobTemplateSpecFluentImpl() {} - - public V1beta1JobTemplateSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta1JobTemplateSpec instance) { - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - } - - private V1ObjectMetaBuilder metadata; - private V1JobSpecBuilder spec; - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1JobTemplateSpecFluent.MetadataNested withNewMetadata() { - return new V1beta1JobTemplateSpecFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new V1beta1JobTemplateSpecFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1JobSpec getSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public io.kubernetes.client.openapi.models.V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(io.kubernetes.client.openapi.models.V1JobSpec spec) { - _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1JobSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } - return (A) this; - } - - public java.lang.Boolean hasSpec() { - return this.spec != null; - } - - public V1beta1JobTemplateSpecFluent.SpecNested withNewSpec() { - return new V1beta1JobTemplateSpecFluentImpl.SpecNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1JobSpec item) { - return new io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluentImpl.SpecNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested editSpec() { - return withNewSpecLike(getSpec()); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested - editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1JobSpecBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1JobSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1JobTemplateSpecFluentImpl that = (V1beta1JobTemplateSpecFluentImpl) o; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(metadata, spec, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } - sb.append("}"); - return sb.toString(); - } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.MetadataNested, - Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1JobTemplateSpecFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class SpecNestedImpl extends V1JobSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1JobTemplateSpecFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1JobSpec item) { - this.builder = new V1JobSpecBuilder(this, item); - } - - SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1JobSpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V1JobSpecBuilder builder; - - public N and() { - return (N) V1beta1JobTemplateSpecFluentImpl.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java index 1a4eb8cedf..2ca48b9c4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseBuilder.java @@ -16,8 +16,7 @@ public class V1beta1LimitResponseBuilder extends V1beta1LimitResponseFluentImpl - implements VisitableBuilder< - V1beta1LimitResponse, io.kubernetes.client.openapi.models.V1beta1LimitResponseBuilder> { + implements VisitableBuilder { public V1beta1LimitResponseBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1beta1LimitResponseBuilder(Boolean validationEnabled) { this(new V1beta1LimitResponse(), validationEnabled); } - public V1beta1LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent fluent) { + public V1beta1LimitResponseBuilder(V1beta1LimitResponseFluent fluent) { this(fluent, false); } public V1beta1LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1LimitResponseFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1LimitResponse(), validationEnabled); } public V1beta1LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent fluent, - io.kubernetes.client.openapi.models.V1beta1LimitResponse instance) { + V1beta1LimitResponseFluent fluent, V1beta1LimitResponse instance) { this(fluent, instance, false); } public V1beta1LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent fluent, - io.kubernetes.client.openapi.models.V1beta1LimitResponse instance, - java.lang.Boolean validationEnabled) { + V1beta1LimitResponseFluent fluent, + V1beta1LimitResponse instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withQueuing(instance.getQueuing()); @@ -55,14 +51,11 @@ public V1beta1LimitResponseBuilder( this.validationEnabled = validationEnabled; } - public V1beta1LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitResponse instance) { + public V1beta1LimitResponseBuilder(V1beta1LimitResponse instance) { this(instance, false); } - public V1beta1LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitResponse instance, - java.lang.Boolean validationEnabled) { + public V1beta1LimitResponseBuilder(V1beta1LimitResponse instance, Boolean validationEnabled) { this.fluent = this; this.withQueuing(instance.getQueuing()); @@ -71,10 +64,10 @@ public V1beta1LimitResponseBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1LimitResponseFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1LimitResponse build() { + public V1beta1LimitResponse build() { V1beta1LimitResponse buildable = new V1beta1LimitResponse(); buildable.setQueuing(fluent.getQueuing()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java index 482b4f1f90..e220443c0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluent.java @@ -27,31 +27,29 @@ public interface V1beta1LimitResponseFluent withNewQueuing(); - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - withNewQueuingLike(io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration item); + public V1beta1LimitResponseFluent.QueuingNested withNewQueuingLike( + V1beta1QueuingConfiguration item); - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - editQueuing(); + public V1beta1LimitResponseFluent.QueuingNested editQueuing(); - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - editOrNewQueuing(); + public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuing(); - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - editOrNewQueuingLike(io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration item); + public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuingLike( + V1beta1QueuingConfiguration item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface QueuingNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java index de80cfe902..e2fe524957 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponseFluentImpl.java @@ -21,8 +21,7 @@ public class V1beta1LimitResponseFluentImpl implements V1beta1LimitResponseFluent { public V1beta1LimitResponseFluentImpl() {} - public V1beta1LimitResponseFluentImpl( - io.kubernetes.client.openapi.models.V1beta1LimitResponse instance) { + public V1beta1LimitResponseFluentImpl(V1beta1LimitResponse instance) { this.withQueuing(instance.getQueuing()); this.withType(instance.getType()); @@ -37,19 +36,22 @@ public V1beta1LimitResponseFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration getQueuing() { + public V1beta1QueuingConfiguration getQueuing() { return this.queuing != null ? this.queuing.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration buildQueuing() { + public V1beta1QueuingConfiguration buildQueuing() { return this.queuing != null ? this.queuing.build() : null; } - public A withQueuing(io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration queuing) { + public A withQueuing(V1beta1QueuingConfiguration queuing) { _visitables.get("queuing").remove(this.queuing); if (queuing != null) { this.queuing = new V1beta1QueuingConfigurationBuilder(queuing); _visitables.get("queuing").add(this.queuing); + } else { + this.queuing = null; + _visitables.get("queuing").remove(this.queuing); } return (A) this; } @@ -62,39 +64,35 @@ public V1beta1LimitResponseFluent.QueuingNested withNewQueuing() { return new V1beta1LimitResponseFluentImpl.QueuingNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - withNewQueuingLike(io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration item) { + public V1beta1LimitResponseFluent.QueuingNested withNewQueuingLike( + V1beta1QueuingConfiguration item) { return new V1beta1LimitResponseFluentImpl.QueuingNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - editQueuing() { + public V1beta1LimitResponseFluent.QueuingNested editQueuing() { return withNewQueuingLike(getQueuing()); } - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - editOrNewQueuing() { + public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuing() { return withNewQueuingLike( - getQueuing() != null - ? getQueuing() - : new io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationBuilder().build()); + getQueuing() != null ? getQueuing() : new V1beta1QueuingConfigurationBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested - editOrNewQueuingLike(io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration item) { + public V1beta1LimitResponseFluent.QueuingNested editOrNewQueuingLike( + V1beta1QueuingConfiguration item) { return withNewQueuingLike(getQueuing() != null ? getQueuing() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -111,7 +109,7 @@ public int hashCode() { return java.util.Objects.hash(queuing, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (queuing != null) { @@ -128,18 +126,16 @@ public java.lang.String toString() { class QueuingNestedImpl extends V1beta1QueuingConfigurationFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1LimitResponseFluent.QueuingNested, - Nested { - QueuingNestedImpl(io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration item) { + implements V1beta1LimitResponseFluent.QueuingNested, Nested { + QueuingNestedImpl(V1beta1QueuingConfiguration item) { this.builder = new V1beta1QueuingConfigurationBuilder(this, item); } QueuingNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationBuilder(this); + this.builder = new V1beta1QueuingConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationBuilder builder; + V1beta1QueuingConfigurationBuilder builder; public N and() { return (N) V1beta1LimitResponseFluentImpl.this.withQueuing(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java index 8629f77aea..cc3ce00cf3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationBuilder.java @@ -18,8 +18,7 @@ public class V1beta1LimitedPriorityLevelConfigurationBuilder extends V1beta1LimitedPriorityLevelConfigurationFluentImpl< V1beta1LimitedPriorityLevelConfigurationBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration, - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationBuilder> { + V1beta1LimitedPriorityLevelConfiguration, V1beta1LimitedPriorityLevelConfigurationBuilder> { public V1beta1LimitedPriorityLevelConfigurationBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta1LimitedPriorityLevelConfigurationBuilder( } public V1beta1LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1LimitedPriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1LimitedPriorityLevelConfiguration(), validationEnabled); } public V1beta1LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration instance) { + V1beta1LimitedPriorityLevelConfigurationFluent fluent, + V1beta1LimitedPriorityLevelConfiguration instance) { this(fluent, instance, false); } public V1beta1LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta1LimitedPriorityLevelConfigurationFluent fluent, + V1beta1LimitedPriorityLevelConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); @@ -58,13 +56,12 @@ public V1beta1LimitedPriorityLevelConfigurationBuilder( } public V1beta1LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration instance) { + V1beta1LimitedPriorityLevelConfiguration instance) { this(instance, false); } public V1beta1LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta1LimitedPriorityLevelConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); @@ -73,10 +70,10 @@ public V1beta1LimitedPriorityLevelConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1LimitedPriorityLevelConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration build() { + public V1beta1LimitedPriorityLevelConfiguration build() { V1beta1LimitedPriorityLevelConfiguration buildable = new V1beta1LimitedPriorityLevelConfiguration(); buildable.setAssuredConcurrencyShares(fluent.getAssuredConcurrencyShares()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java index 851c0e30f5..f765e42962 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluent.java @@ -21,7 +21,7 @@ public interface V1beta1LimitedPriorityLevelConfigurationFluent< extends Fluent { public Integer getAssuredConcurrencyShares(); - public A withAssuredConcurrencyShares(java.lang.Integer assuredConcurrencyShares); + public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares); public Boolean hasAssuredConcurrencyShares(); @@ -33,35 +33,25 @@ public interface V1beta1LimitedPriorityLevelConfigurationFluent< @Deprecated public V1beta1LimitResponse getLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta1LimitResponse buildLimitResponse(); + public V1beta1LimitResponse buildLimitResponse(); - public A withLimitResponse( - io.kubernetes.client.openapi.models.V1beta1LimitResponse limitResponse); + public A withLimitResponse(V1beta1LimitResponse limitResponse); - public java.lang.Boolean hasLimitResponse(); + public Boolean hasLimitResponse(); public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - withNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta1LimitResponse item); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested + withNewLimitResponseLike(V1beta1LimitResponse item); - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editLimitResponse(); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editOrNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta1LimitResponse item); + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested + editOrNewLimitResponseLike(V1beta1LimitResponse item); public interface LimitResponseNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java index c1836fed51..97ee9a4751 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfigurationFluentImpl.java @@ -23,7 +23,7 @@ public class V1beta1LimitedPriorityLevelConfigurationFluentImpl< public V1beta1LimitedPriorityLevelConfigurationFluentImpl() {} public V1beta1LimitedPriorityLevelConfigurationFluentImpl( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration instance) { + V1beta1LimitedPriorityLevelConfiguration instance) { this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); this.withLimitResponse(instance.getLimitResponse()); @@ -32,11 +32,11 @@ public V1beta1LimitedPriorityLevelConfigurationFluentImpl( private Integer assuredConcurrencyShares; private V1beta1LimitResponseBuilder limitResponse; - public java.lang.Integer getAssuredConcurrencyShares() { + public Integer getAssuredConcurrencyShares() { return this.assuredConcurrencyShares; } - public A withAssuredConcurrencyShares(java.lang.Integer assuredConcurrencyShares) { + public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares) { this.assuredConcurrencyShares = assuredConcurrencyShares; return (A) this; } @@ -51,25 +51,27 @@ public Boolean hasAssuredConcurrencyShares() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1beta1LimitResponse getLimitResponse() { + public V1beta1LimitResponse getLimitResponse() { return this.limitResponse != null ? this.limitResponse.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1LimitResponse buildLimitResponse() { + public V1beta1LimitResponse buildLimitResponse() { return this.limitResponse != null ? this.limitResponse.build() : null; } - public A withLimitResponse( - io.kubernetes.client.openapi.models.V1beta1LimitResponse limitResponse) { + public A withLimitResponse(V1beta1LimitResponse limitResponse) { _visitables.get("limitResponse").remove(this.limitResponse); if (limitResponse != null) { this.limitResponse = new V1beta1LimitResponseBuilder(limitResponse); _visitables.get("limitResponse").add(this.limitResponse); + } else { + this.limitResponse = null; + _visitables.get("limitResponse").remove(this.limitResponse); } return (A) this; } - public java.lang.Boolean hasLimitResponse() { + public Boolean hasLimitResponse() { return this.limitResponse != null; } @@ -78,34 +80,25 @@ public java.lang.Boolean hasLimitResponse() { return new V1beta1LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - withNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta1LimitResponse item) { + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested + withNewLimitResponseLike(V1beta1LimitResponse item) { return new V1beta1LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editLimitResponse() { + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse() { return withNewLimitResponseLike(getLimitResponse()); } - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse() { return withNewLimitResponseLike( getLimitResponse() != null ? getLimitResponse() - : new io.kubernetes.client.openapi.models.V1beta1LimitResponseBuilder().build()); + : new V1beta1LimitResponseBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editOrNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta1LimitResponse item) { + public V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested + editOrNewLimitResponseLike(V1beta1LimitResponse item) { return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse() : item); } @@ -145,19 +138,16 @@ public String toString() { class LimitResponseNestedImpl extends V1beta1LimitResponseFluentImpl< V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested> - implements io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - N>, - Nested { - LimitResponseNestedImpl(io.kubernetes.client.openapi.models.V1beta1LimitResponse item) { + implements V1beta1LimitedPriorityLevelConfigurationFluent.LimitResponseNested, Nested { + LimitResponseNestedImpl(V1beta1LimitResponse item) { this.builder = new V1beta1LimitResponseBuilder(this, item); } LimitResponseNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1LimitResponseBuilder(this); + this.builder = new V1beta1LimitResponseBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1LimitResponseBuilder builder; + V1beta1LimitResponseBuilder builder; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java index 2d7d335f60..dd898d2cbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleBuilder.java @@ -16,9 +16,7 @@ public class V1beta1NonResourcePolicyRuleBuilder extends V1beta1NonResourcePolicyRuleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> { + implements VisitableBuilder { public V1beta1NonResourcePolicyRuleBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRuleFluent } public V1beta1NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1NonResourcePolicyRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1NonResourcePolicyRule(), validationEnabled); } public V1beta1NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule instance) { + V1beta1NonResourcePolicyRuleFluent fluent, V1beta1NonResourcePolicyRule instance) { this(fluent, instance, false); } public V1beta1NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta1NonResourcePolicyRuleFluent fluent, + V1beta1NonResourcePolicyRule instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withNonResourceURLs(instance.getNonResourceURLs()); @@ -55,14 +51,12 @@ public V1beta1NonResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - public V1beta1NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule instance) { + public V1beta1NonResourcePolicyRuleBuilder(V1beta1NonResourcePolicyRule instance) { this(instance, false); } public V1beta1NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta1NonResourcePolicyRule instance, Boolean validationEnabled) { this.fluent = this; this.withNonResourceURLs(instance.getNonResourceURLs()); @@ -71,10 +65,10 @@ public V1beta1NonResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1NonResourcePolicyRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule build() { + public V1beta1NonResourcePolicyRule build() { V1beta1NonResourcePolicyRule buildable = new V1beta1NonResourcePolicyRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); buildable.setVerbs(fluent.getVerbs()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java index e029776132..8d0066ddd9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluent.java @@ -22,63 +22,61 @@ public interface V1beta1NonResourcePolicyRuleFluent { public A addToNonResourceURLs(Integer index, String item); - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item); + public A setToNonResourceURLs(Integer index, String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); + public A addAllToNonResourceURLs(Collection items); public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(java.util.Collection items); + public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); + public List getNonResourceURLs(); - public java.lang.String getNonResourceURL(java.lang.Integer index); + public String getNonResourceURL(Integer index); - public java.lang.String getFirstNonResourceURL(); + public String getFirstNonResourceURL(); - public java.lang.String getLastNonResourceURL(); + public String getLastNonResourceURL(); - public java.lang.String getMatchingNonResourceURL(Predicate predicate); + public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate); + public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(java.util.List nonResourceURLs); + public A withNonResourceURLs(List nonResourceURLs); public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public java.lang.Boolean hasNonResourceURLs(); + public Boolean hasNonResourceURLs(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java index 39333851bb..50454c3cd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRuleFluentImpl.java @@ -24,27 +24,26 @@ public class V1beta1NonResourcePolicyRuleFluentImpl implements V1beta1NonResourcePolicyRuleFluent { public V1beta1NonResourcePolicyRuleFluentImpl() {} - public V1beta1NonResourcePolicyRuleFluentImpl( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule instance) { + public V1beta1NonResourcePolicyRuleFluentImpl(V1beta1NonResourcePolicyRule instance) { this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); } private List nonResourceURLs; - private java.util.List verbs; + private List verbs; - public A addToNonResourceURLs(Integer index, java.lang.String item) { + public A addToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.add(index, item); return (A) this; } - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { + public A setToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -52,26 +51,26 @@ public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { public A addToNonResourceURLs(java.lang.String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } - public A addAllToNonResourceURLs(Collection items) { + public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } public A removeFromNonResourceURLs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -79,8 +78,8 @@ public A removeFromNonResourceURLs(java.lang.String... items) { return (A) this; } - public A removeAllFromNonResourceURLs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNonResourceURLs(Collection items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -88,24 +87,24 @@ public A removeAllFromNonResourceURLs(java.util.Collection ite return (A) this; } - public java.util.List getNonResourceURLs() { + public List getNonResourceURLs() { return this.nonResourceURLs; } - public java.lang.String getNonResourceURL(java.lang.Integer index) { + public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public java.lang.String getFirstNonResourceURL() { + public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public java.lang.String getLastNonResourceURL() { + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public java.lang.String getMatchingNonResourceURL(Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public String getMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return item; } @@ -113,9 +112,8 @@ public java.lang.String getMatchingNonResourceURL(Predicate pr return null; } - public Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public Boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return true; } @@ -123,10 +121,10 @@ public Boolean hasMatchingNonResourceURL( return false; } - public A withNonResourceURLs(java.util.List nonResourceURLs) { + public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new java.util.ArrayList(); - for (java.lang.String item : nonResourceURLs) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } else { @@ -140,28 +138,28 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { this.nonResourceURLs.clear(); } if (nonResourceURLs != null) { - for (java.lang.String item : nonResourceURLs) { + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceURLs() { + public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -169,26 +167,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -196,8 +194,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -205,25 +203,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -231,9 +228,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -241,10 +237,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -258,14 +254,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -284,7 +280,7 @@ public int hashCode() { return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadBuilder.java deleted file mode 100644 index 3ac63ad134..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1OverheadBuilder extends V1beta1OverheadFluentImpl - implements VisitableBuilder< - V1beta1Overhead, io.kubernetes.client.openapi.models.V1beta1OverheadBuilder> { - public V1beta1OverheadBuilder() { - this(false); - } - - public V1beta1OverheadBuilder(Boolean validationEnabled) { - this(new V1beta1Overhead(), validationEnabled); - } - - public V1beta1OverheadBuilder( - io.kubernetes.client.openapi.models.V1beta1OverheadFluent fluent) { - this(fluent, false); - } - - public V1beta1OverheadBuilder( - io.kubernetes.client.openapi.models.V1beta1OverheadFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1Overhead(), validationEnabled); - } - - public V1beta1OverheadBuilder( - io.kubernetes.client.openapi.models.V1beta1OverheadFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Overhead instance) { - this(fluent, instance, false); - } - - public V1beta1OverheadBuilder( - io.kubernetes.client.openapi.models.V1beta1OverheadFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Overhead instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withPodFixed(instance.getPodFixed()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1OverheadBuilder(io.kubernetes.client.openapi.models.V1beta1Overhead instance) { - this(instance, false); - } - - public V1beta1OverheadBuilder( - io.kubernetes.client.openapi.models.V1beta1Overhead instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withPodFixed(instance.getPodFixed()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1OverheadFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1Overhead build() { - V1beta1Overhead buildable = new V1beta1Overhead(); - buildable.setPodFixed(fluent.getPodFixed()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadFluent.java deleted file mode 100644 index dc905b4a07..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadFluent.java +++ /dev/null @@ -1,36 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import java.util.Map; - -/** Generated */ -public interface V1beta1OverheadFluent> extends Fluent { - public A addToPodFixed(String key, Quantity value); - - public A addToPodFixed(Map map); - - public A removeFromPodFixed(java.lang.String key); - - public A removeFromPodFixed( - java.util.Map map); - - public java.util.Map getPodFixed(); - - public A withPodFixed( - java.util.Map podFixed); - - public Boolean hasPodFixed(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadFluentImpl.java deleted file mode 100644 index cbe34f7f97..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OverheadFluentImpl.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.LinkedHashMap; -import java.util.Map; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1OverheadFluentImpl> extends BaseFluent - implements V1beta1OverheadFluent { - public V1beta1OverheadFluentImpl() {} - - public V1beta1OverheadFluentImpl(io.kubernetes.client.openapi.models.V1beta1Overhead instance) { - this.withPodFixed(instance.getPodFixed()); - } - - private Map podFixed; - - public A addToPodFixed(java.lang.String key, io.kubernetes.client.custom.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; - } - - public A addToPodFixed( - java.util.Map map) { - if (this.podFixed == null && map != null) { - this.podFixed = new java.util.LinkedHashMap(); - } - if (map != null) { - this.podFixed.putAll(map); - } - return (A) this; - } - - public A removeFromPodFixed(java.lang.String key) { - if (this.podFixed == null) { - return (A) this; - } - if (key != null && this.podFixed != null) { - this.podFixed.remove(key); - } - return (A) this; - } - - public A removeFromPodFixed( - java.util.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; - } - - public java.util.Map getPodFixed() { - return this.podFixed; - } - - public A withPodFixed( - java.util.Map podFixed) { - if (podFixed == null) { - this.podFixed = null; - } else { - this.podFixed = new java.util.LinkedHashMap(podFixed); - } - return (A) this; - } - - public Boolean hasPodFixed() { - return this.podFixed != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1OverheadFluentImpl that = (V1beta1OverheadFluentImpl) o; - if (podFixed != null ? !podFixed.equals(that.podFixed) : that.podFixed != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(podFixed, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - 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/V1beta1PodDisruptionBudgetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetBuilder.java deleted file mode 100644 index b20f34b425..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodDisruptionBudgetBuilder - extends V1beta1PodDisruptionBudgetFluentImpl - implements VisitableBuilder< - V1beta1PodDisruptionBudget, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> { - public V1beta1PodDisruptionBudgetBuilder() { - this(false); - } - - public V1beta1PodDisruptionBudgetBuilder(Boolean validationEnabled) { - this(new V1beta1PodDisruptionBudget(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent fluent) { - this(fluent, false); - } - - public V1beta1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodDisruptionBudget(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget instance) { - this(fluent, instance, false); - } - - public V1beta1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withSpec(instance.getSpec()); - - fluent.withStatus(instance.getStatus()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget instance) { - this(instance, false); - } - - public V1beta1PodDisruptionBudgetBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.withStatus(instance.getStatus()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget build() { - V1beta1PodDisruptionBudget buildable = new V1beta1PodDisruptionBudget(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setSpec(fluent.getSpec()); - buildable.setStatus(fluent.getStatus()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetFluent.java deleted file mode 100644 index e8a71fc1b1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetFluent.java +++ /dev/null @@ -1,140 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1PodDisruptionBudgetFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1PodDisruptionBudgetFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1PodDisruptionBudgetSpec getSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec buildSpec(); - - public A withSpec(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec spec); - - public java.lang.Boolean hasSpec(); - - public V1beta1PodDisruptionBudgetFluent.SpecNested withNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - editSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - editOrNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec item); - - /** - * This method has been deprecated, please use method buildStatus instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1PodDisruptionBudgetStatus getStatus(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus buildStatus(); - - public A withStatus(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus status); - - public java.lang.Boolean hasStatus(); - - public V1beta1PodDisruptionBudgetFluent.StatusNested withNewStatus(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - editStatus(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - editOrNewStatus(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1beta1PodDisruptionBudgetSpecFluent> { - public N and(); - - public N endSpec(); - } - - public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1beta1PodDisruptionBudgetStatusFluent> { - public N and(); - - public N endStatus(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetFluentImpl.java deleted file mode 100644 index 06770c5406..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetFluentImpl.java +++ /dev/null @@ -1,355 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodDisruptionBudgetFluentImpl> - extends BaseFluent implements V1beta1PodDisruptionBudgetFluent { - public V1beta1PodDisruptionBudgetFluentImpl() {} - - public V1beta1PodDisruptionBudgetFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.withStatus(instance.getStatus()); - } - - private String apiVersion; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1PodDisruptionBudgetSpecBuilder spec; - private V1beta1PodDisruptionBudgetStatusBuilder status; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1PodDisruptionBudgetFluent.MetadataNested withNewMetadata() { - return new V1beta1PodDisruptionBudgetFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new V1beta1PodDisruptionBudgetFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec getSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec spec) { - _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new V1beta1PodDisruptionBudgetSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } - return (A) this; - } - - public java.lang.Boolean hasSpec() { - return this.spec != null; - } - - public V1beta1PodDisruptionBudgetFluent.SpecNested withNewSpec() { - return new V1beta1PodDisruptionBudgetFluentImpl.SpecNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec item) { - return new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluentImpl - .SpecNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - editSpec() { - return withNewSpecLike(getSpec()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); - } - - /** - * This method has been deprecated, please use method buildStatus instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus getStatus() { - return this.status != null ? this.status.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus status) { - _visitables.get("status").remove(this.status); - if (status != null) { - this.status = new V1beta1PodDisruptionBudgetStatusBuilder(status); - _visitables.get("status").add(this.status); - } - return (A) this; - } - - public java.lang.Boolean hasStatus() { - return this.status != null; - } - - public V1beta1PodDisruptionBudgetFluent.StatusNested withNewStatus() { - return new V1beta1PodDisruptionBudgetFluentImpl.StatusNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus item) { - return new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluentImpl - .StatusNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - editStatus() { - return withNewStatusLike(getStatus()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodDisruptionBudgetFluentImpl that = (V1beta1PodDisruptionBudgetFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public java.lang.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(); - } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent - .MetadataNested< - N>, - Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1PodDisruptionBudgetFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class SpecNestedImpl - extends V1beta1PodDisruptionBudgetSpecFluentImpl< - V1beta1PodDisruptionBudgetFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec item) { - this.builder = new V1beta1PodDisruptionBudgetSpecBuilder(this, item); - } - - SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecBuilder builder; - - public N and() { - return (N) V1beta1PodDisruptionBudgetFluentImpl.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - } - - class StatusNestedImpl - extends V1beta1PodDisruptionBudgetStatusFluentImpl< - V1beta1PodDisruptionBudgetFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl(V1beta1PodDisruptionBudgetStatus item) { - this.builder = new V1beta1PodDisruptionBudgetStatusBuilder(this, item); - } - - StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusBuilder builder; - - public N and() { - return (N) V1beta1PodDisruptionBudgetFluentImpl.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListBuilder.java deleted file mode 100644 index ba85c0039c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodDisruptionBudgetListBuilder - extends V1beta1PodDisruptionBudgetListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListBuilder> { - public V1beta1PodDisruptionBudgetListBuilder() { - this(false); - } - - public V1beta1PodDisruptionBudgetListBuilder(Boolean validationEnabled) { - this(new V1beta1PodDisruptionBudgetList(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetListBuilder(V1beta1PodDisruptionBudgetListFluent fluent) { - this(fluent, false); - } - - public V1beta1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodDisruptionBudgetList(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList instance) { - this(fluent, instance, false); - } - - public V1beta1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList instance) { - this(instance, false); - } - - public V1beta1PodDisruptionBudgetListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList build() { - V1beta1PodDisruptionBudgetList buildable = new V1beta1PodDisruptionBudgetList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListFluent.java deleted file mode 100644 index 0733ac7439..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListFluent.java +++ /dev/null @@ -1,157 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1PodDisruptionBudgetListFluent< - A extends V1beta1PodDisruptionBudgetListFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1PodDisruptionBudget item); - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item); - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget... items); - - public A addAllToItems( - Collection items); - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget... items); - - public A removeAllFromItems( - java.util.Collection items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List - buildItems(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> - predicate); - - public A withItems( - java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget... items); - - public java.lang.Boolean hasItems(); - - public V1beta1PodDisruptionBudgetListFluent.ItemsNested addNewItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editItem(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1PodDisruptionBudgetListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1beta1PodDisruptionBudgetFluent> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListFluentImpl.java deleted file mode 100644 index 83983044d3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetListFluentImpl.java +++ /dev/null @@ -1,464 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodDisruptionBudgetListFluentImpl< - A extends V1beta1PodDisruptionBudgetListFluent> - extends BaseFluent implements V1beta1PodDisruptionBudgetListFluent { - public V1beta1PodDisruptionBudgetListFluentImpl() {} - - public V1beta1PodDisruptionBudgetListFluentImpl(V1beta1PodDisruptionBudgetList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(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 java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget... items) { - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item : items) { - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List - buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildItem( - java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems( - java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V1beta1PodDisruptionBudgetListFluent.ItemsNested addNewItem() { - return new V1beta1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item) { - return new V1beta1PodDisruptionBudgetListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item) { - return new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluentImpl - .ItemsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editItem(java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.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 io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder> - 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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1PodDisruptionBudgetListFluent.MetadataNested withNewMetadata() { - return new V1beta1PodDisruptionBudgetListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluentImpl - .MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodDisruptionBudgetListFluentImpl that = (V1beta1PodDisruptionBudgetListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl - extends V1beta1PodDisruptionBudgetFluentImpl< - V1beta1PodDisruptionBudgetListFluent.ItemsNested> - implements V1beta1PodDisruptionBudgetListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget item) { - this.index = index; - this.builder = new V1beta1PodDisruptionBudgetBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1PodDisruptionBudgetListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1PodDisruptionBudgetListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecBuilder.java deleted file mode 100644 index 7fd1d34622..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodDisruptionBudgetSpecBuilder - extends V1beta1PodDisruptionBudgetSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecBuilder> { - public V1beta1PodDisruptionBudgetSpecBuilder() { - this(false); - } - - public V1beta1PodDisruptionBudgetSpecBuilder(Boolean validationEnabled) { - this(new V1beta1PodDisruptionBudgetSpec(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetSpecBuilder(V1beta1PodDisruptionBudgetSpecFluent fluent) { - this(fluent, false); - } - - public V1beta1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodDisruptionBudgetSpec(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec instance) { - this(fluent, instance, false); - } - - public V1beta1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMaxUnavailable(instance.getMaxUnavailable()); - - fluent.withMinAvailable(instance.getMinAvailable()); - - fluent.withSelector(instance.getSelector()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec instance) { - this(instance, false); - } - - public V1beta1PodDisruptionBudgetSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMaxUnavailable(instance.getMaxUnavailable()); - - this.withMinAvailable(instance.getMinAvailable()); - - this.withSelector(instance.getSelector()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec build() { - V1beta1PodDisruptionBudgetSpec buildable = new V1beta1PodDisruptionBudgetSpec(); - buildable.setMaxUnavailable(fluent.getMaxUnavailable()); - buildable.setMinAvailable(fluent.getMinAvailable()); - buildable.setSelector(fluent.getSelector()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecFluent.java deleted file mode 100644 index 14331cae5a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecFluent.java +++ /dev/null @@ -1,78 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1PodDisruptionBudgetSpecFluent< - A extends V1beta1PodDisruptionBudgetSpecFluent> - extends Fluent { - public IntOrString getMaxUnavailable(); - - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable); - - public Boolean hasMaxUnavailable(); - - public A withNewMaxUnavailable(int value); - - public A withNewMaxUnavailable(String value); - - public io.kubernetes.client.custom.IntOrString getMinAvailable(); - - public A withMinAvailable(io.kubernetes.client.custom.IntOrString minAvailable); - - public java.lang.Boolean hasMinAvailable(); - - public A withNewMinAvailable(int value); - - public A withNewMinAvailable(java.lang.String value); - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); - - public java.lang.Boolean hasSelector(); - - public V1beta1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelector(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - editSelector(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelector(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public interface SelectorNested - extends Nested, - V1LabelSelectorFluent> { - public N and(); - - public N endSelector(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecFluentImpl.java deleted file mode 100644 index bf89769a5b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpecFluentImpl.java +++ /dev/null @@ -1,195 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodDisruptionBudgetSpecFluentImpl< - A extends V1beta1PodDisruptionBudgetSpecFluent> - extends BaseFluent implements V1beta1PodDisruptionBudgetSpecFluent { - public V1beta1PodDisruptionBudgetSpecFluentImpl() {} - - public V1beta1PodDisruptionBudgetSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpec instance) { - this.withMaxUnavailable(instance.getMaxUnavailable()); - - this.withMinAvailable(instance.getMinAvailable()); - - this.withSelector(instance.getSelector()); - } - - private IntOrString maxUnavailable; - private io.kubernetes.client.custom.IntOrString minAvailable; - private V1LabelSelectorBuilder selector; - - public io.kubernetes.client.custom.IntOrString getMaxUnavailable() { - return this.maxUnavailable; - } - - public A withMaxUnavailable(io.kubernetes.client.custom.IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; - } - - public Boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A) withMaxUnavailable(new IntOrString(value)); - } - - public A withNewMaxUnavailable(String value) { - return (A) withMaxUnavailable(new IntOrString(value)); - } - - public io.kubernetes.client.custom.IntOrString getMinAvailable() { - return this.minAvailable; - } - - public A withMinAvailable(io.kubernetes.client.custom.IntOrString minAvailable) { - this.minAvailable = minAvailable; - return (A) this; - } - - public java.lang.Boolean hasMinAvailable() { - return this.minAvailable != null; - } - - public A withNewMinAvailable(int value) { - return (A) withMinAvailable(new IntOrString(value)); - } - - public A withNewMinAvailable(java.lang.String value) { - return (A) withMinAvailable(new IntOrString(value)); - } - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { - _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } - return (A) this; - } - - public java.lang.Boolean hasSelector() { - return this.selector != null; - } - - public V1beta1PodDisruptionBudgetSpecFluent.SelectorNested withNewSelector() { - return new V1beta1PodDisruptionBudgetSpecFluentImpl.SelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V1beta1PodDisruptionBudgetSpecFluentImpl.SelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - editSelector() { - return withNewSelectorLike(getSelector()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodDisruptionBudgetSpecFluentImpl that = (V1beta1PodDisruptionBudgetSpecFluentImpl) o; - if (maxUnavailable != null - ? !maxUnavailable.equals(that.maxUnavailable) - : that.maxUnavailable != null) return false; - if (minAvailable != null ? !minAvailable.equals(that.minAvailable) : that.minAvailable != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(maxUnavailable, minAvailable, selector, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetSpecFluent - .SelectorNested< - N>, - Nested { - SelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V1beta1PodDisruptionBudgetSpecFluentImpl.this.withSelector(builder.build()); - } - - public N endSelector() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusBuilder.java deleted file mode 100644 index 290050070e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodDisruptionBudgetStatusBuilder - extends V1beta1PodDisruptionBudgetStatusFluentImpl - implements VisitableBuilder< - V1beta1PodDisruptionBudgetStatus, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusBuilder> { - public V1beta1PodDisruptionBudgetStatusBuilder() { - this(false); - } - - public V1beta1PodDisruptionBudgetStatusBuilder(Boolean validationEnabled) { - this(new V1beta1PodDisruptionBudgetStatus(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent fluent) { - this(fluent, false); - } - - public V1beta1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodDisruptionBudgetStatus(), validationEnabled); - } - - public V1beta1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus instance) { - this(fluent, instance, false); - } - - public V1beta1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withConditions(instance.getConditions()); - - fluent.withCurrentHealthy(instance.getCurrentHealthy()); - - fluent.withDesiredHealthy(instance.getDesiredHealthy()); - - fluent.withDisruptedPods(instance.getDisruptedPods()); - - fluent.withDisruptionsAllowed(instance.getDisruptionsAllowed()); - - fluent.withExpectedPods(instance.getExpectedPods()); - - fluent.withObservedGeneration(instance.getObservedGeneration()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus instance) { - this(instance, false); - } - - public V1beta1PodDisruptionBudgetStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus build() { - V1beta1PodDisruptionBudgetStatus buildable = new V1beta1PodDisruptionBudgetStatus(); - buildable.setConditions(fluent.getConditions()); - buildable.setCurrentHealthy(fluent.getCurrentHealthy()); - buildable.setDesiredHealthy(fluent.getDesiredHealthy()); - buildable.setDisruptedPods(fluent.getDisruptedPods()); - buildable.setDisruptionsAllowed(fluent.getDisruptionsAllowed()); - buildable.setExpectedPods(fluent.getExpectedPods()); - buildable.setObservedGeneration(fluent.getObservedGeneration()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusFluent.java deleted file mode 100644 index 56a29543e1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusFluent.java +++ /dev/null @@ -1,161 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1PodDisruptionBudgetStatusFluent< - A extends V1beta1PodDisruptionBudgetStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V1Condition item); - - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); - - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items); - - public A addAllToConditions(Collection items); - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items); - - public A removeAllFromConditions( - java.util.Collection items); - - public A removeMatchingFromConditions(Predicate predicate); - - /** - * This method has been deprecated, please use method buildConditions instead. - * - * @return The buildable object. - */ - @Deprecated - public List getConditions(); - - public java.util.List buildConditions(); - - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition(); - - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition(); - - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate); - - public A withConditions( - java.util.List conditions); - - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions); - - public java.lang.Boolean hasConditions(); - - public V1beta1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate - predicate); - - public java.lang.Integer getCurrentHealthy(); - - public A withCurrentHealthy(java.lang.Integer currentHealthy); - - public java.lang.Boolean hasCurrentHealthy(); - - public java.lang.Integer getDesiredHealthy(); - - public A withDesiredHealthy(java.lang.Integer desiredHealthy); - - public java.lang.Boolean hasDesiredHealthy(); - - public A addToDisruptedPods(String key, OffsetDateTime value); - - public A addToDisruptedPods(Map map); - - public A removeFromDisruptedPods(java.lang.String key); - - public A removeFromDisruptedPods(java.util.Map map); - - public java.util.Map getDisruptedPods(); - - public A withDisruptedPods( - java.util.Map disruptedPods); - - public java.lang.Boolean hasDisruptedPods(); - - public java.lang.Integer getDisruptionsAllowed(); - - public A withDisruptionsAllowed(java.lang.Integer disruptionsAllowed); - - public java.lang.Boolean hasDisruptionsAllowed(); - - public java.lang.Integer getExpectedPods(); - - public A withExpectedPods(java.lang.Integer expectedPods); - - public java.lang.Boolean hasExpectedPods(); - - public Long getObservedGeneration(); - - public A withObservedGeneration(java.lang.Long observedGeneration); - - public java.lang.Boolean hasObservedGeneration(); - - public interface ConditionsNested - extends Nested, - V1ConditionFluent> { - public N and(); - - public N endCondition(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusFluentImpl.java deleted file mode 100644 index 0f2cb669f3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatusFluentImpl.java +++ /dev/null @@ -1,535 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodDisruptionBudgetStatusFluentImpl< - A extends V1beta1PodDisruptionBudgetStatusFluent> - extends BaseFluent implements V1beta1PodDisruptionBudgetStatusFluent { - public V1beta1PodDisruptionBudgetStatusFluentImpl() {} - - public V1beta1PodDisruptionBudgetStatusFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatus instance) { - 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()); - } - - private ArrayList conditions; - private Integer currentHealthy; - private java.lang.Integer desiredHealthy; - private Map disruptedPods; - private java.lang.Integer disruptionsAllowed; - private java.lang.Integer expectedPods; - private Long observedGeneration; - - public A addToConditions(java.lang.Integer index, V1Condition item) { - if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); - _visitables - .get("conditions") - .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); - this.conditions.add(index >= 0 ? index : conditions.size(), builder); - return (A) this; - } - - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { - if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); - if (index < 0 || index >= _visitables.get("conditions").size()) { - _visitables.get("conditions").add(builder); - } else { - _visitables.get("conditions").set(index, builder); - } - if (index < 0 || index >= conditions.size()) { - conditions.add(builder); - } else { - conditions.set(index, builder); - } - return (A) this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - if (this.conditions == null) { - this.conditions = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1Condition... items) { - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Condition item : items) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1ConditionBuilder(item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - 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()) { - io.kubernetes.client.openapi.models.V1ConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildConditions instead. - * - * @return The buildable object. - */ - @Deprecated - public List getConditions() { - return conditions != null ? build(conditions) : null; - } - - public java.util.List buildConditions() { - return conditions != null ? build(conditions) : null; - } - - public io.kubernetes.client.openapi.models.V1Condition buildCondition(java.lang.Integer index) { - return this.conditions.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1Condition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1Condition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1Condition buildMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingCondition( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions( - java.util.List conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.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(); - } - if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1Condition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasConditions() { - return conditions != null && !conditions.isEmpty(); - } - - public V1beta1PodDisruptionBudgetStatusFluent.ConditionsNested addNewCondition() { - return new V1beta1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - addNewConditionLike(io.kubernetes.client.openapi.models.V1Condition item) { - return new V1beta1PodDisruptionBudgetStatusFluentImpl.ConditionsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Condition item) { - return new io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluentImpl - .ConditionsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - 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 io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.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("Can't edit matching conditions. No match found."); - return setNewConditionLike(index, buildCondition(index)); - } - - public java.lang.Integer getCurrentHealthy() { - return this.currentHealthy; - } - - public A withCurrentHealthy(java.lang.Integer currentHealthy) { - this.currentHealthy = currentHealthy; - return (A) this; - } - - public java.lang.Boolean hasCurrentHealthy() { - return this.currentHealthy != null; - } - - public java.lang.Integer getDesiredHealthy() { - return this.desiredHealthy; - } - - public A withDesiredHealthy(java.lang.Integer desiredHealthy) { - this.desiredHealthy = desiredHealthy; - return (A) this; - } - - public java.lang.Boolean hasDesiredHealthy() { - return this.desiredHealthy != null; - } - - public A addToDisruptedPods(java.lang.String key, java.time.OffsetDateTime value) { - if (this.disruptedPods == null && key != null && value != null) { - this.disruptedPods = new LinkedHashMap(); - } - if (key != null && value != null) { - this.disruptedPods.put(key, value); - } - return (A) this; - } - - public A addToDisruptedPods(java.util.Map map) { - if (this.disruptedPods == null && map != null) { - this.disruptedPods = new java.util.LinkedHashMap(); - } - if (map != null) { - this.disruptedPods.putAll(map); - } - return (A) this; - } - - public A removeFromDisruptedPods(java.lang.String key) { - if (this.disruptedPods == null) { - return (A) this; - } - if (key != null && this.disruptedPods != null) { - this.disruptedPods.remove(key); - } - return (A) this; - } - - public A removeFromDisruptedPods(java.util.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; - } - - public java.util.Map getDisruptedPods() { - return this.disruptedPods; - } - - public A withDisruptedPods( - java.util.Map disruptedPods) { - if (disruptedPods == null) { - this.disruptedPods = null; - } else { - this.disruptedPods = new java.util.LinkedHashMap(disruptedPods); - } - return (A) this; - } - - public java.lang.Boolean hasDisruptedPods() { - return this.disruptedPods != null; - } - - public java.lang.Integer getDisruptionsAllowed() { - return this.disruptionsAllowed; - } - - public A withDisruptionsAllowed(java.lang.Integer disruptionsAllowed) { - this.disruptionsAllowed = disruptionsAllowed; - return (A) this; - } - - public java.lang.Boolean hasDisruptionsAllowed() { - return this.disruptionsAllowed != null; - } - - public java.lang.Integer getExpectedPods() { - return this.expectedPods; - } - - public A withExpectedPods(java.lang.Integer expectedPods) { - this.expectedPods = expectedPods; - return (A) this; - } - - public java.lang.Boolean hasExpectedPods() { - return this.expectedPods != null; - } - - public java.lang.Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(java.lang.Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public java.lang.Boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodDisruptionBudgetStatusFluentImpl that = - (V1beta1PodDisruptionBudgetStatusFluentImpl) o; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (currentHealthy != null - ? !currentHealthy.equals(that.currentHealthy) - : that.currentHealthy != null) return false; - if (desiredHealthy != null - ? !desiredHealthy.equals(that.desiredHealthy) - : that.desiredHealthy != null) return false; - if (disruptedPods != null - ? !disruptedPods.equals(that.disruptedPods) - : that.disruptedPods != null) return false; - if (disruptionsAllowed != null - ? !disruptionsAllowed.equals(that.disruptionsAllowed) - : that.disruptionsAllowed != null) return false; - if (expectedPods != null ? !expectedPods.equals(that.expectedPods) : that.expectedPods != null) - return false; - if (observedGeneration != null - ? !observedGeneration.equals(that.observedGeneration) - : that.observedGeneration != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - conditions, - currentHealthy, - desiredHealthy, - disruptedPods, - disruptionsAllowed, - expectedPods, - observedGeneration, - super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - class ConditionsNestedImpl - extends V1ConditionFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1Condition item) { - this.index = index; - this.builder = new V1ConditionBuilder(this, item); - } - - ConditionsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1ConditionBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ConditionBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V1beta1PodDisruptionBudgetStatusFluentImpl.this.setToConditions(index, builder.build()); - } - - public N endCondition() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyBuilder.java deleted file mode 100644 index 755fabadc7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodSecurityPolicyBuilder - extends V1beta1PodSecurityPolicyFluentImpl - implements VisitableBuilder< - V1beta1PodSecurityPolicy, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> { - public V1beta1PodSecurityPolicyBuilder() { - this(false); - } - - public V1beta1PodSecurityPolicyBuilder(Boolean validationEnabled) { - this(new V1beta1PodSecurityPolicy(), validationEnabled); - } - - public V1beta1PodSecurityPolicyBuilder(V1beta1PodSecurityPolicyFluent fluent) { - this(fluent, false); - } - - public V1beta1PodSecurityPolicyBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodSecurityPolicy(), validationEnabled); - } - - public V1beta1PodSecurityPolicyBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy instance) { - this(fluent, instance, false); - } - - public V1beta1PodSecurityPolicyBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withSpec(instance.getSpec()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodSecurityPolicyBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy instance) { - this(instance, false); - } - - public V1beta1PodSecurityPolicyBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy build() { - V1beta1PodSecurityPolicy buildable = new V1beta1PodSecurityPolicy(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setSpec(fluent.getSpec()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyFluent.java deleted file mode 100644 index ab899d894d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyFluent.java +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1PodSecurityPolicyFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1PodSecurityPolicyFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1PodSecurityPolicySpec getSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec buildSpec(); - - public A withSpec(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec spec); - - public java.lang.Boolean hasSpec(); - - public V1beta1PodSecurityPolicyFluent.SpecNested withNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - editSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - editOrNewSpec(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1beta1PodSecurityPolicySpecFluent> { - public N and(); - - public N endSpec(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyFluentImpl.java deleted file mode 100644 index a50d7025b7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyFluentImpl.java +++ /dev/null @@ -1,262 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodSecurityPolicyFluentImpl> - extends BaseFluent implements V1beta1PodSecurityPolicyFluent { - public V1beta1PodSecurityPolicyFluentImpl() {} - - public V1beta1PodSecurityPolicyFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - } - - private String apiVersion; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1PodSecurityPolicySpecBuilder spec; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1PodSecurityPolicyFluent.MetadataNested withNewMetadata() { - return new V1beta1PodSecurityPolicyFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new V1beta1PodSecurityPolicyFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1PodSecurityPolicySpec getSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec spec) { - _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } - return (A) this; - } - - public java.lang.Boolean hasSpec() { - return this.spec != null; - } - - public V1beta1PodSecurityPolicyFluent.SpecNested withNewSpec() { - return new V1beta1PodSecurityPolicyFluentImpl.SpecNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluentImpl - .SpecNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - editSpec() { - return withNewSpecLike(getSpec()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodSecurityPolicyFluentImpl that = (V1beta1PodSecurityPolicyFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { - sb.append("apiVersion:"); - sb.append(apiVersion + ","); - } - if (kind != null) { - sb.append("kind:"); - sb.append(kind + ","); - } - if (metadata != null) { - sb.append("metadata:"); - sb.append(metadata + ","); - } - if (spec != null) { - sb.append("spec:"); - sb.append(spec); - } - sb.append("}"); - return sb.toString(); - } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.MetadataNested< - N>, - Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicyFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class SpecNestedImpl - extends V1beta1PodSecurityPolicySpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(V1beta1PodSecurityPolicySpec item) { - this.builder = new V1beta1PodSecurityPolicySpecBuilder(this, item); - } - - SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicyFluentImpl.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListBuilder.java deleted file mode 100644 index e55ca15010..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodSecurityPolicyListBuilder - extends V1beta1PodSecurityPolicyListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList, - V1beta1PodSecurityPolicyListBuilder> { - public V1beta1PodSecurityPolicyListBuilder() { - this(false); - } - - public V1beta1PodSecurityPolicyListBuilder(Boolean validationEnabled) { - this(new V1beta1PodSecurityPolicyList(), validationEnabled); - } - - public V1beta1PodSecurityPolicyListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent fluent) { - this(fluent, false); - } - - public V1beta1PodSecurityPolicyListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodSecurityPolicyList(), validationEnabled); - } - - public V1beta1PodSecurityPolicyListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList instance) { - this(fluent, instance, false); - } - - public V1beta1PodSecurityPolicyListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodSecurityPolicyListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList instance) { - this(instance, false); - } - - public V1beta1PodSecurityPolicyListBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList build() { - V1beta1PodSecurityPolicyList buildable = new V1beta1PodSecurityPolicyList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListFluent.java deleted file mode 100644 index 957222f6e4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListFluent.java +++ /dev/null @@ -1,155 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1PodSecurityPolicyListFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems(Integer index, V1beta1PodSecurityPolicy item); - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item); - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy... items); - - public A addAllToItems( - Collection items); - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy... items); - - public A removeAllFromItems( - java.util.Collection items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List buildItems(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> - predicate); - - public A withItems( - java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy... items); - - public java.lang.Boolean hasItems(); - - public V1beta1PodSecurityPolicyListFluent.ItemsNested addNewItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editItem(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1PodSecurityPolicyListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, - V1beta1PodSecurityPolicyFluent> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListFluentImpl.java deleted file mode 100644 index d99e1b857f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyListFluentImpl.java +++ /dev/null @@ -1,458 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodSecurityPolicyListFluentImpl> - extends BaseFluent implements V1beta1PodSecurityPolicyListFluent { - public V1beta1PodSecurityPolicyListFluentImpl() {} - - public V1beta1PodSecurityPolicyListFluentImpl(V1beta1PodSecurityPolicyList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item : items) { - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(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 java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item : items) { - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy... items) { - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item : items) { - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item : items) { - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildItem( - java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems( - java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V1beta1PodSecurityPolicyListFluent.ItemsNested addNewItem() { - return new V1beta1PodSecurityPolicyListFluentImpl.ItemsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item) { - return new V1beta1PodSecurityPolicyListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluentImpl - .ItemsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editItem(java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.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 io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder> - 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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1PodSecurityPolicyListFluent.MetadataNested withNewMetadata() { - return new V1beta1PodSecurityPolicyListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluentImpl - .MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodSecurityPolicyListFluentImpl that = (V1beta1PodSecurityPolicyListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl - extends V1beta1PodSecurityPolicyFluentImpl> - implements V1beta1PodSecurityPolicyListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy item) { - this.index = index; - this.builder = new V1beta1PodSecurityPolicyBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1PodSecurityPolicyListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicyListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecBuilder.java deleted file mode 100644 index 51d9a0cff8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecBuilder.java +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1PodSecurityPolicySpecBuilder - extends V1beta1PodSecurityPolicySpecFluentImpl - implements VisitableBuilder< - V1beta1PodSecurityPolicySpec, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecBuilder> { - public V1beta1PodSecurityPolicySpecBuilder() { - this(false); - } - - public V1beta1PodSecurityPolicySpecBuilder(Boolean validationEnabled) { - this(new V1beta1PodSecurityPolicySpec(), validationEnabled); - } - - public V1beta1PodSecurityPolicySpecBuilder(V1beta1PodSecurityPolicySpecFluent fluent) { - this(fluent, false); - } - - public V1beta1PodSecurityPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1PodSecurityPolicySpec(), validationEnabled); - } - - public V1beta1PodSecurityPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec instance) { - this(fluent, instance, false); - } - - public V1beta1PodSecurityPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); - - fluent.withAllowedCSIDrivers(instance.getAllowedCSIDrivers()); - - fluent.withAllowedCapabilities(instance.getAllowedCapabilities()); - - fluent.withAllowedFlexVolumes(instance.getAllowedFlexVolumes()); - - fluent.withAllowedHostPaths(instance.getAllowedHostPaths()); - - fluent.withAllowedProcMountTypes(instance.getAllowedProcMountTypes()); - - fluent.withAllowedUnsafeSysctls(instance.getAllowedUnsafeSysctls()); - - fluent.withDefaultAddCapabilities(instance.getDefaultAddCapabilities()); - - fluent.withDefaultAllowPrivilegeEscalation(instance.getDefaultAllowPrivilegeEscalation()); - - fluent.withForbiddenSysctls(instance.getForbiddenSysctls()); - - fluent.withFsGroup(instance.getFsGroup()); - - fluent.withHostIPC(instance.getHostIPC()); - - fluent.withHostNetwork(instance.getHostNetwork()); - - fluent.withHostPID(instance.getHostPID()); - - fluent.withHostPorts(instance.getHostPorts()); - - fluent.withPrivileged(instance.getPrivileged()); - - fluent.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); - - fluent.withRequiredDropCapabilities(instance.getRequiredDropCapabilities()); - - fluent.withRunAsGroup(instance.getRunAsGroup()); - - fluent.withRunAsUser(instance.getRunAsUser()); - - fluent.withRuntimeClass(instance.getRuntimeClass()); - - fluent.withSeLinux(instance.getSeLinux()); - - fluent.withSupplementalGroups(instance.getSupplementalGroups()); - - fluent.withVolumes(instance.getVolumes()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1PodSecurityPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec instance) { - this(instance, false); - } - - public V1beta1PodSecurityPolicySpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); - - this.withAllowedCSIDrivers(instance.getAllowedCSIDrivers()); - - this.withAllowedCapabilities(instance.getAllowedCapabilities()); - - this.withAllowedFlexVolumes(instance.getAllowedFlexVolumes()); - - this.withAllowedHostPaths(instance.getAllowedHostPaths()); - - this.withAllowedProcMountTypes(instance.getAllowedProcMountTypes()); - - this.withAllowedUnsafeSysctls(instance.getAllowedUnsafeSysctls()); - - this.withDefaultAddCapabilities(instance.getDefaultAddCapabilities()); - - this.withDefaultAllowPrivilegeEscalation(instance.getDefaultAllowPrivilegeEscalation()); - - this.withForbiddenSysctls(instance.getForbiddenSysctls()); - - this.withFsGroup(instance.getFsGroup()); - - this.withHostIPC(instance.getHostIPC()); - - this.withHostNetwork(instance.getHostNetwork()); - - this.withHostPID(instance.getHostPID()); - - this.withHostPorts(instance.getHostPorts()); - - this.withPrivileged(instance.getPrivileged()); - - this.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); - - this.withRequiredDropCapabilities(instance.getRequiredDropCapabilities()); - - this.withRunAsGroup(instance.getRunAsGroup()); - - this.withRunAsUser(instance.getRunAsUser()); - - this.withRuntimeClass(instance.getRuntimeClass()); - - this.withSeLinux(instance.getSeLinux()); - - this.withSupplementalGroups(instance.getSupplementalGroups()); - - this.withVolumes(instance.getVolumes()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec build() { - V1beta1PodSecurityPolicySpec buildable = new V1beta1PodSecurityPolicySpec(); - buildable.setAllowPrivilegeEscalation(fluent.getAllowPrivilegeEscalation()); - buildable.setAllowedCSIDrivers(fluent.getAllowedCSIDrivers()); - buildable.setAllowedCapabilities(fluent.getAllowedCapabilities()); - buildable.setAllowedFlexVolumes(fluent.getAllowedFlexVolumes()); - buildable.setAllowedHostPaths(fluent.getAllowedHostPaths()); - buildable.setAllowedProcMountTypes(fluent.getAllowedProcMountTypes()); - buildable.setAllowedUnsafeSysctls(fluent.getAllowedUnsafeSysctls()); - buildable.setDefaultAddCapabilities(fluent.getDefaultAddCapabilities()); - buildable.setDefaultAllowPrivilegeEscalation(fluent.getDefaultAllowPrivilegeEscalation()); - buildable.setForbiddenSysctls(fluent.getForbiddenSysctls()); - buildable.setFsGroup(fluent.getFsGroup()); - buildable.setHostIPC(fluent.getHostIPC()); - buildable.setHostNetwork(fluent.getHostNetwork()); - buildable.setHostPID(fluent.getHostPID()); - buildable.setHostPorts(fluent.getHostPorts()); - buildable.setPrivileged(fluent.getPrivileged()); - buildable.setReadOnlyRootFilesystem(fluent.getReadOnlyRootFilesystem()); - buildable.setRequiredDropCapabilities(fluent.getRequiredDropCapabilities()); - buildable.setRunAsGroup(fluent.getRunAsGroup()); - buildable.setRunAsUser(fluent.getRunAsUser()); - buildable.setRuntimeClass(fluent.getRuntimeClass()); - buildable.setSeLinux(fluent.getSeLinux()); - buildable.setSupplementalGroups(fluent.getSupplementalGroups()); - buildable.setVolumes(fluent.getVolumes()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecFluent.java deleted file mode 100644 index df4f47a384..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecFluent.java +++ /dev/null @@ -1,941 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1PodSecurityPolicySpecFluent> - extends Fluent { - public Boolean getAllowPrivilegeEscalation(); - - public A withAllowPrivilegeEscalation(java.lang.Boolean allowPrivilegeEscalation); - - public java.lang.Boolean hasAllowPrivilegeEscalation(); - - public A addToAllowedCSIDrivers(Integer index, V1beta1AllowedCSIDriver item); - - public A setToAllowedCSIDrivers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item); - - public A addToAllowedCSIDrivers( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver... items); - - public A addAllToAllowedCSIDrivers( - Collection items); - - public A removeFromAllowedCSIDrivers( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver... items); - - public A removeAllFromAllowedCSIDrivers( - java.util.Collection items); - - public A removeMatchingFromAllowedCSIDrivers(Predicate predicate); - - /** - * This method has been deprecated, please use method buildAllowedCSIDrivers instead. - * - * @return The buildable object. - */ - @Deprecated - public List getAllowedCSIDrivers(); - - public java.util.List - buildAllowedCSIDrivers(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildAllowedCSIDriver( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildFirstAllowedCSIDriver(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildLastAllowedCSIDriver(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildMatchingAllowedCSIDriver( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> - predicate); - - public java.lang.Boolean hasMatchingAllowedCSIDriver( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> - predicate); - - public A withAllowedCSIDrivers( - java.util.List - allowedCSIDrivers); - - public A withAllowedCSIDrivers( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver... allowedCSIDrivers); - - public java.lang.Boolean hasAllowedCSIDrivers(); - - public V1beta1PodSecurityPolicySpecFluent.AllowedCSIDriversNested addNewAllowedCSIDriver(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - addNewAllowedCSIDriverLike(io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - setNewAllowedCSIDriverLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editAllowedCSIDriver(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editFirstAllowedCSIDriver(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editLastAllowedCSIDriver(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editMatchingAllowedCSIDriver( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> - predicate); - - public A addToAllowedCapabilities(java.lang.Integer index, String item); - - public A setToAllowedCapabilities(java.lang.Integer index, java.lang.String item); - - public A addToAllowedCapabilities(java.lang.String... items); - - public A addAllToAllowedCapabilities(java.util.Collection items); - - public A removeFromAllowedCapabilities(java.lang.String... items); - - public A removeAllFromAllowedCapabilities(java.util.Collection items); - - public java.util.List getAllowedCapabilities(); - - public java.lang.String getAllowedCapability(java.lang.Integer index); - - public java.lang.String getFirstAllowedCapability(); - - public java.lang.String getLastAllowedCapability(); - - public java.lang.String getMatchingAllowedCapability( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingAllowedCapability( - java.util.function.Predicate predicate); - - public A withAllowedCapabilities(java.util.List allowedCapabilities); - - public A withAllowedCapabilities(java.lang.String... allowedCapabilities); - - public java.lang.Boolean hasAllowedCapabilities(); - - public A addToAllowedFlexVolumes(java.lang.Integer index, V1beta1AllowedFlexVolume item); - - public A setToAllowedFlexVolumes( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item); - - public A addToAllowedFlexVolumes( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume... items); - - public A addAllToAllowedFlexVolumes( - java.util.Collection items); - - public A removeFromAllowedFlexVolumes( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume... items); - - public A removeAllFromAllowedFlexVolumes( - java.util.Collection items); - - public A removeMatchingFromAllowedFlexVolumes( - java.util.function.Predicate predicate); - - /** - * This method has been deprecated, please use method buildAllowedFlexVolumes instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List - getAllowedFlexVolumes(); - - public java.util.List - buildAllowedFlexVolumes(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume buildAllowedFlexVolume( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume buildFirstAllowedFlexVolume(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume buildLastAllowedFlexVolume(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume - buildMatchingAllowedFlexVolume( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate); - - public java.lang.Boolean hasMatchingAllowedFlexVolume( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate); - - public A withAllowedFlexVolumes( - java.util.List - allowedFlexVolumes); - - public A withAllowedFlexVolumes( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume... allowedFlexVolumes); - - public java.lang.Boolean hasAllowedFlexVolumes(); - - public V1beta1PodSecurityPolicySpecFluent.AllowedFlexVolumesNested addNewAllowedFlexVolume(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - addNewAllowedFlexVolumeLike( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - setNewAllowedFlexVolumeLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editAllowedFlexVolume(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editFirstAllowedFlexVolume(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editLastAllowedFlexVolume(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editMatchingAllowedFlexVolume( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate); - - public A addToAllowedHostPaths(java.lang.Integer index, V1beta1AllowedHostPath item); - - public A setToAllowedHostPaths( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item); - - public A addToAllowedHostPaths( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath... items); - - public A addAllToAllowedHostPaths( - java.util.Collection items); - - public A removeFromAllowedHostPaths( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath... items); - - public A removeAllFromAllowedHostPaths( - java.util.Collection items); - - public A removeMatchingFromAllowedHostPaths( - java.util.function.Predicate predicate); - - /** - * This method has been deprecated, please use method buildAllowedHostPaths instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List - getAllowedHostPaths(); - - public java.util.List - buildAllowedHostPaths(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildAllowedHostPath( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildFirstAllowedHostPath(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildLastAllowedHostPath(); - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildMatchingAllowedHostPath( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate); - - public java.lang.Boolean hasMatchingAllowedHostPath( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate); - - public A withAllowedHostPaths( - java.util.List allowedHostPaths); - - public A withAllowedHostPaths( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath... allowedHostPaths); - - public java.lang.Boolean hasAllowedHostPaths(); - - public V1beta1PodSecurityPolicySpecFluent.AllowedHostPathsNested addNewAllowedHostPath(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - addNewAllowedHostPathLike(io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - setNewAllowedHostPathLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editAllowedHostPath(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editFirstAllowedHostPath(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editLastAllowedHostPath(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editMatchingAllowedHostPath( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate); - - public A addToAllowedProcMountTypes(java.lang.Integer index, java.lang.String item); - - public A setToAllowedProcMountTypes(java.lang.Integer index, java.lang.String item); - - public A addToAllowedProcMountTypes(java.lang.String... items); - - public A addAllToAllowedProcMountTypes(java.util.Collection items); - - public A removeFromAllowedProcMountTypes(java.lang.String... items); - - public A removeAllFromAllowedProcMountTypes(java.util.Collection items); - - public java.util.List getAllowedProcMountTypes(); - - public java.lang.String getAllowedProcMountType(java.lang.Integer index); - - public java.lang.String getFirstAllowedProcMountType(); - - public java.lang.String getLastAllowedProcMountType(); - - public java.lang.String getMatchingAllowedProcMountType( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingAllowedProcMountType( - java.util.function.Predicate predicate); - - public A withAllowedProcMountTypes(java.util.List allowedProcMountTypes); - - public A withAllowedProcMountTypes(java.lang.String... allowedProcMountTypes); - - public java.lang.Boolean hasAllowedProcMountTypes(); - - public A addToAllowedUnsafeSysctls(java.lang.Integer index, java.lang.String item); - - public A setToAllowedUnsafeSysctls(java.lang.Integer index, java.lang.String item); - - public A addToAllowedUnsafeSysctls(java.lang.String... items); - - public A addAllToAllowedUnsafeSysctls(java.util.Collection items); - - public A removeFromAllowedUnsafeSysctls(java.lang.String... items); - - public A removeAllFromAllowedUnsafeSysctls(java.util.Collection items); - - public java.util.List getAllowedUnsafeSysctls(); - - public java.lang.String getAllowedUnsafeSysctl(java.lang.Integer index); - - public java.lang.String getFirstAllowedUnsafeSysctl(); - - public java.lang.String getLastAllowedUnsafeSysctl(); - - public java.lang.String getMatchingAllowedUnsafeSysctl( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingAllowedUnsafeSysctl( - java.util.function.Predicate predicate); - - public A withAllowedUnsafeSysctls(java.util.List allowedUnsafeSysctls); - - public A withAllowedUnsafeSysctls(java.lang.String... allowedUnsafeSysctls); - - public java.lang.Boolean hasAllowedUnsafeSysctls(); - - public A addToDefaultAddCapabilities(java.lang.Integer index, java.lang.String item); - - public A setToDefaultAddCapabilities(java.lang.Integer index, java.lang.String item); - - public A addToDefaultAddCapabilities(java.lang.String... items); - - public A addAllToDefaultAddCapabilities(java.util.Collection items); - - public A removeFromDefaultAddCapabilities(java.lang.String... items); - - public A removeAllFromDefaultAddCapabilities(java.util.Collection items); - - public java.util.List getDefaultAddCapabilities(); - - public java.lang.String getDefaultAddCapability(java.lang.Integer index); - - public java.lang.String getFirstDefaultAddCapability(); - - public java.lang.String getLastDefaultAddCapability(); - - public java.lang.String getMatchingDefaultAddCapability( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingDefaultAddCapability( - java.util.function.Predicate predicate); - - public A withDefaultAddCapabilities(java.util.List defaultAddCapabilities); - - public A withDefaultAddCapabilities(java.lang.String... defaultAddCapabilities); - - public java.lang.Boolean hasDefaultAddCapabilities(); - - public java.lang.Boolean getDefaultAllowPrivilegeEscalation(); - - public A withDefaultAllowPrivilegeEscalation(java.lang.Boolean defaultAllowPrivilegeEscalation); - - public java.lang.Boolean hasDefaultAllowPrivilegeEscalation(); - - public A addToForbiddenSysctls(java.lang.Integer index, java.lang.String item); - - public A setToForbiddenSysctls(java.lang.Integer index, java.lang.String item); - - public A addToForbiddenSysctls(java.lang.String... items); - - public A addAllToForbiddenSysctls(java.util.Collection items); - - public A removeFromForbiddenSysctls(java.lang.String... items); - - public A removeAllFromForbiddenSysctls(java.util.Collection items); - - public java.util.List getForbiddenSysctls(); - - public java.lang.String getForbiddenSysctl(java.lang.Integer index); - - public java.lang.String getFirstForbiddenSysctl(); - - public java.lang.String getLastForbiddenSysctl(); - - public java.lang.String getMatchingForbiddenSysctl( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingForbiddenSysctl( - java.util.function.Predicate predicate); - - public A withForbiddenSysctls(java.util.List forbiddenSysctls); - - public A withForbiddenSysctls(java.lang.String... forbiddenSysctls); - - public java.lang.Boolean hasForbiddenSysctls(); - - /** - * This method has been deprecated, please use method buildFsGroup instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1FSGroupStrategyOptions getFsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions buildFsGroup(); - - public A withFsGroup(io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions fsGroup); - - public java.lang.Boolean hasFsGroup(); - - public V1beta1PodSecurityPolicySpecFluent.FsGroupNested withNewFsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - withNewFsGroupLike(io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - editFsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - editOrNewFsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - editOrNewFsGroupLike(io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions item); - - public java.lang.Boolean getHostIPC(); - - public A withHostIPC(java.lang.Boolean hostIPC); - - public java.lang.Boolean hasHostIPC(); - - public java.lang.Boolean getHostNetwork(); - - public A withHostNetwork(java.lang.Boolean hostNetwork); - - public java.lang.Boolean hasHostNetwork(); - - public java.lang.Boolean getHostPID(); - - public A withHostPID(java.lang.Boolean hostPID); - - public java.lang.Boolean hasHostPID(); - - public A addToHostPorts(java.lang.Integer index, V1beta1HostPortRange item); - - public A setToHostPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1HostPortRange item); - - public A addToHostPorts(io.kubernetes.client.openapi.models.V1beta1HostPortRange... items); - - public A addAllToHostPorts( - java.util.Collection items); - - public A removeFromHostPorts(io.kubernetes.client.openapi.models.V1beta1HostPortRange... items); - - public A removeAllFromHostPorts( - java.util.Collection items); - - public A removeMatchingFromHostPorts( - java.util.function.Predicate predicate); - - /** - * This method has been deprecated, please use method buildHostPorts instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List getHostPorts(); - - public java.util.List buildHostPorts(); - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildHostPort( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildFirstHostPort(); - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildLastHostPort(); - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildMatchingHostPort( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingHostPort( - java.util.function.Predicate - predicate); - - public A withHostPorts( - java.util.List hostPorts); - - public A withHostPorts(io.kubernetes.client.openapi.models.V1beta1HostPortRange... hostPorts); - - public java.lang.Boolean hasHostPorts(); - - public V1beta1PodSecurityPolicySpecFluent.HostPortsNested addNewHostPort(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - addNewHostPortLike(io.kubernetes.client.openapi.models.V1beta1HostPortRange item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - setNewHostPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1HostPortRange item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editHostPort(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editFirstHostPort(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editLastHostPort(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editMatchingHostPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder> - predicate); - - public java.lang.Boolean getPrivileged(); - - public A withPrivileged(java.lang.Boolean privileged); - - public java.lang.Boolean hasPrivileged(); - - public java.lang.Boolean getReadOnlyRootFilesystem(); - - public A withReadOnlyRootFilesystem(java.lang.Boolean readOnlyRootFilesystem); - - public java.lang.Boolean hasReadOnlyRootFilesystem(); - - public A addToRequiredDropCapabilities(java.lang.Integer index, java.lang.String item); - - public A setToRequiredDropCapabilities(java.lang.Integer index, java.lang.String item); - - public A addToRequiredDropCapabilities(java.lang.String... items); - - public A addAllToRequiredDropCapabilities(java.util.Collection items); - - public A removeFromRequiredDropCapabilities(java.lang.String... items); - - public A removeAllFromRequiredDropCapabilities(java.util.Collection items); - - public java.util.List getRequiredDropCapabilities(); - - public java.lang.String getRequiredDropCapability(java.lang.Integer index); - - public java.lang.String getFirstRequiredDropCapability(); - - public java.lang.String getLastRequiredDropCapability(); - - public java.lang.String getMatchingRequiredDropCapability( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingRequiredDropCapability( - java.util.function.Predicate predicate); - - public A withRequiredDropCapabilities(java.util.List requiredDropCapabilities); - - public A withRequiredDropCapabilities(java.lang.String... requiredDropCapabilities); - - public java.lang.Boolean hasRequiredDropCapabilities(); - - /** - * This method has been deprecated, please use method buildRunAsGroup instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1RunAsGroupStrategyOptions getRunAsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions buildRunAsGroup(); - - public A withRunAsGroup( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions runAsGroup); - - public java.lang.Boolean hasRunAsGroup(); - - public V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested withNewRunAsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - withNewRunAsGroupLike( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - editRunAsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - editOrNewRunAsGroup(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - editOrNewRunAsGroupLike( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions item); - - /** - * This method has been deprecated, please use method buildRunAsUser instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1RunAsUserStrategyOptions getRunAsUser(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions buildRunAsUser(); - - public A withRunAsUser( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions runAsUser); - - public java.lang.Boolean hasRunAsUser(); - - public V1beta1PodSecurityPolicySpecFluent.RunAsUserNested withNewRunAsUser(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - withNewRunAsUserLike( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - editRunAsUser(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - editOrNewRunAsUser(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - editOrNewRunAsUserLike( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions item); - - /** - * This method has been deprecated, please use method buildRuntimeClass instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1RuntimeClassStrategyOptions getRuntimeClass(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions buildRuntimeClass(); - - public A withRuntimeClass( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions runtimeClass); - - public java.lang.Boolean hasRuntimeClass(); - - public V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested withNewRuntimeClass(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - withNewRuntimeClassLike( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - editRuntimeClass(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - editOrNewRuntimeClass(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - editOrNewRuntimeClassLike( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions item); - - /** - * This method has been deprecated, please use method buildSeLinux instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1SELinuxStrategyOptions getSeLinux(); - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions buildSeLinux(); - - public A withSeLinux(io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions seLinux); - - public java.lang.Boolean hasSeLinux(); - - public V1beta1PodSecurityPolicySpecFluent.SeLinuxNested withNewSeLinux(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - withNewSeLinuxLike(io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - editSeLinux(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - editOrNewSeLinux(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - editOrNewSeLinuxLike(io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions item); - - /** - * This method has been deprecated, please use method buildSupplementalGroups instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1SupplementalGroupsStrategyOptions getSupplementalGroups(); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions - buildSupplementalGroups(); - - public A withSupplementalGroups( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions - supplementalGroups); - - public java.lang.Boolean hasSupplementalGroups(); - - public V1beta1PodSecurityPolicySpecFluent.SupplementalGroupsNested withNewSupplementalGroups(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - withNewSupplementalGroupsLike( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions item); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - editSupplementalGroups(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - editOrNewSupplementalGroups(); - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - editOrNewSupplementalGroupsLike( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions item); - - public A addToVolumes(java.lang.Integer index, java.lang.String item); - - public A setToVolumes(java.lang.Integer index, java.lang.String item); - - public A addToVolumes(java.lang.String... items); - - public A addAllToVolumes(java.util.Collection items); - - public A removeFromVolumes(java.lang.String... items); - - public A removeAllFromVolumes(java.util.Collection items); - - public java.util.List getVolumes(); - - public java.lang.String getVolume(java.lang.Integer index); - - public java.lang.String getFirstVolume(); - - public java.lang.String getLastVolume(); - - public java.lang.String getMatchingVolume( - java.util.function.Predicate predicate); - - public java.lang.Boolean hasMatchingVolume( - java.util.function.Predicate predicate); - - public A withVolumes(java.util.List volumes); - - public A withVolumes(java.lang.String... volumes); - - public java.lang.Boolean hasVolumes(); - - public A withAllowPrivilegeEscalation(); - - public A withDefaultAllowPrivilegeEscalation(); - - public A withHostIPC(); - - public A withHostNetwork(); - - public A withHostPID(); - - public A withPrivileged(); - - public A withReadOnlyRootFilesystem(); - - public interface AllowedCSIDriversNested - extends Nested, - V1beta1AllowedCSIDriverFluent< - V1beta1PodSecurityPolicySpecFluent.AllowedCSIDriversNested> { - public N and(); - - public N endAllowedCSIDriver(); - } - - public interface AllowedFlexVolumesNested - extends io.kubernetes.client.fluent.Nested, - V1beta1AllowedFlexVolumeFluent< - V1beta1PodSecurityPolicySpecFluent.AllowedFlexVolumesNested> { - public N and(); - - public N endAllowedFlexVolume(); - } - - public interface AllowedHostPathsNested - extends io.kubernetes.client.fluent.Nested, - V1beta1AllowedHostPathFluent< - V1beta1PodSecurityPolicySpecFluent.AllowedHostPathsNested> { - public N and(); - - public N endAllowedHostPath(); - } - - public interface FsGroupNested - extends io.kubernetes.client.fluent.Nested, - V1beta1FSGroupStrategyOptionsFluent> { - public N and(); - - public N endFsGroup(); - } - - public interface HostPortsNested - extends io.kubernetes.client.fluent.Nested, - V1beta1HostPortRangeFluent> { - public N and(); - - public N endHostPort(); - } - - public interface RunAsGroupNested - extends io.kubernetes.client.fluent.Nested, - V1beta1RunAsGroupStrategyOptionsFluent< - V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested> { - public N and(); - - public N endRunAsGroup(); - } - - public interface RunAsUserNested - extends io.kubernetes.client.fluent.Nested, - V1beta1RunAsUserStrategyOptionsFluent< - V1beta1PodSecurityPolicySpecFluent.RunAsUserNested> { - public N and(); - - public N endRunAsUser(); - } - - public interface RuntimeClassNested - extends io.kubernetes.client.fluent.Nested, - V1beta1RuntimeClassStrategyOptionsFluent< - V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested> { - public N and(); - - public N endRuntimeClass(); - } - - public interface SeLinuxNested - extends io.kubernetes.client.fluent.Nested, - V1beta1SELinuxStrategyOptionsFluent> { - public N and(); - - public N endSeLinux(); - } - - public interface SupplementalGroupsNested - extends io.kubernetes.client.fluent.Nested, - V1beta1SupplementalGroupsStrategyOptionsFluent< - V1beta1PodSecurityPolicySpecFluent.SupplementalGroupsNested> { - public N and(); - - public N endSupplementalGroups(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecFluentImpl.java deleted file mode 100644 index ac0012463b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpecFluentImpl.java +++ /dev/null @@ -1,2956 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1PodSecurityPolicySpecFluentImpl> - extends BaseFluent implements V1beta1PodSecurityPolicySpecFluent { - public V1beta1PodSecurityPolicySpecFluentImpl() {} - - public V1beta1PodSecurityPolicySpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpec instance) { - this.withAllowPrivilegeEscalation(instance.getAllowPrivilegeEscalation()); - - this.withAllowedCSIDrivers(instance.getAllowedCSIDrivers()); - - this.withAllowedCapabilities(instance.getAllowedCapabilities()); - - this.withAllowedFlexVolumes(instance.getAllowedFlexVolumes()); - - this.withAllowedHostPaths(instance.getAllowedHostPaths()); - - this.withAllowedProcMountTypes(instance.getAllowedProcMountTypes()); - - this.withAllowedUnsafeSysctls(instance.getAllowedUnsafeSysctls()); - - this.withDefaultAddCapabilities(instance.getDefaultAddCapabilities()); - - this.withDefaultAllowPrivilegeEscalation(instance.getDefaultAllowPrivilegeEscalation()); - - this.withForbiddenSysctls(instance.getForbiddenSysctls()); - - this.withFsGroup(instance.getFsGroup()); - - this.withHostIPC(instance.getHostIPC()); - - this.withHostNetwork(instance.getHostNetwork()); - - this.withHostPID(instance.getHostPID()); - - this.withHostPorts(instance.getHostPorts()); - - this.withPrivileged(instance.getPrivileged()); - - this.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); - - this.withRequiredDropCapabilities(instance.getRequiredDropCapabilities()); - - this.withRunAsGroup(instance.getRunAsGroup()); - - this.withRunAsUser(instance.getRunAsUser()); - - this.withRuntimeClass(instance.getRuntimeClass()); - - this.withSeLinux(instance.getSeLinux()); - - this.withSupplementalGroups(instance.getSupplementalGroups()); - - this.withVolumes(instance.getVolumes()); - } - - private Boolean allowPrivilegeEscalation; - private ArrayList allowedCSIDrivers; - private List allowedCapabilities; - private java.util.ArrayList allowedFlexVolumes; - private java.util.ArrayList allowedHostPaths; - private java.util.List allowedProcMountTypes; - private java.util.List allowedUnsafeSysctls; - private java.util.List defaultAddCapabilities; - private java.lang.Boolean defaultAllowPrivilegeEscalation; - private java.util.List forbiddenSysctls; - private V1beta1FSGroupStrategyOptionsBuilder fsGroup; - private java.lang.Boolean hostIPC; - private java.lang.Boolean hostNetwork; - private java.lang.Boolean hostPID; - private java.util.ArrayList hostPorts; - private java.lang.Boolean privileged; - private java.lang.Boolean readOnlyRootFilesystem; - private java.util.List requiredDropCapabilities; - private V1beta1RunAsGroupStrategyOptionsBuilder runAsGroup; - private V1beta1RunAsUserStrategyOptionsBuilder runAsUser; - private V1beta1RuntimeClassStrategyOptionsBuilder runtimeClass; - private V1beta1SELinuxStrategyOptionsBuilder seLinux; - private V1beta1SupplementalGroupsStrategyOptionsBuilder supplementalGroups; - private java.util.List volumes; - - public java.lang.Boolean getAllowPrivilegeEscalation() { - return this.allowPrivilegeEscalation; - } - - public A withAllowPrivilegeEscalation(java.lang.Boolean allowPrivilegeEscalation) { - this.allowPrivilegeEscalation = allowPrivilegeEscalation; - return (A) this; - } - - public java.lang.Boolean hasAllowPrivilegeEscalation() { - return this.allowPrivilegeEscalation != null; - } - - public A addToAllowedCSIDrivers(Integer index, V1beta1AllowedCSIDriver item) { - if (this.allowedCSIDrivers == null) { - this.allowedCSIDrivers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(item); - _visitables - .get("allowedCSIDrivers") - .add(index >= 0 ? index : _visitables.get("allowedCSIDrivers").size(), builder); - this.allowedCSIDrivers.add(index >= 0 ? index : allowedCSIDrivers.size(), builder); - return (A) this; - } - - public A setToAllowedCSIDrivers( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item) { - if (this.allowedCSIDrivers == null) { - this.allowedCSIDrivers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(item); - if (index < 0 || index >= _visitables.get("allowedCSIDrivers").size()) { - _visitables.get("allowedCSIDrivers").add(builder); - } else { - _visitables.get("allowedCSIDrivers").set(index, builder); - } - if (index < 0 || index >= allowedCSIDrivers.size()) { - allowedCSIDrivers.add(builder); - } else { - allowedCSIDrivers.set(index, builder); - } - return (A) this; - } - - public A addToAllowedCSIDrivers( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver... items) { - if (this.allowedCSIDrivers == null) { - this.allowedCSIDrivers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(item); - _visitables.get("allowedCSIDrivers").add(builder); - this.allowedCSIDrivers.add(builder); - } - return (A) this; - } - - public A addAllToAllowedCSIDrivers( - Collection items) { - if (this.allowedCSIDrivers == null) { - this.allowedCSIDrivers = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(item); - _visitables.get("allowedCSIDrivers").add(builder); - this.allowedCSIDrivers.add(builder); - } - return (A) this; - } - - public A removeFromAllowedCSIDrivers( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver... items) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(item); - _visitables.get("allowedCSIDrivers").remove(builder); - if (this.allowedCSIDrivers != null) { - this.allowedCSIDrivers.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromAllowedCSIDrivers( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(item); - _visitables.get("allowedCSIDrivers").remove(builder); - if (this.allowedCSIDrivers != null) { - this.allowedCSIDrivers.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromAllowedCSIDrivers( - Predicate predicate) { - if (allowedCSIDrivers == null) return (A) this; - final Iterator each = - allowedCSIDrivers.iterator(); - final List visitables = _visitables.get("allowedCSIDrivers"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildAllowedCSIDrivers instead. - * - * @return The buildable object. - */ - @Deprecated - public java.util.List - getAllowedCSIDrivers() { - return allowedCSIDrivers != null ? build(allowedCSIDrivers) : null; - } - - public java.util.List - buildAllowedCSIDrivers() { - return allowedCSIDrivers != null ? build(allowedCSIDrivers) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildAllowedCSIDriver( - java.lang.Integer index) { - return this.allowedCSIDrivers.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildFirstAllowedCSIDriver() { - return this.allowedCSIDrivers.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildLastAllowedCSIDriver() { - return this.allowedCSIDrivers.get(allowedCSIDrivers.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver buildMatchingAllowedCSIDriver( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder item : - allowedCSIDrivers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingAllowedCSIDriver( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder item : - allowedCSIDrivers) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedCSIDrivers( - java.util.List - allowedCSIDrivers) { - if (this.allowedCSIDrivers != null) { - _visitables.get("allowedCSIDrivers").removeAll(this.allowedCSIDrivers); - } - if (allowedCSIDrivers != null) { - this.allowedCSIDrivers = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item : allowedCSIDrivers) { - this.addToAllowedCSIDrivers(item); - } - } else { - this.allowedCSIDrivers = null; - } - return (A) this; - } - - public A withAllowedCSIDrivers( - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver... allowedCSIDrivers) { - if (this.allowedCSIDrivers != null) { - this.allowedCSIDrivers.clear(); - } - if (allowedCSIDrivers != null) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item : allowedCSIDrivers) { - this.addToAllowedCSIDrivers(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedCSIDrivers() { - return allowedCSIDrivers != null && !allowedCSIDrivers.isEmpty(); - } - - public V1beta1PodSecurityPolicySpecFluent.AllowedCSIDriversNested addNewAllowedCSIDriver() { - return new V1beta1PodSecurityPolicySpecFluentImpl.AllowedCSIDriversNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - addNewAllowedCSIDriverLike(io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item) { - return new V1beta1PodSecurityPolicySpecFluentImpl.AllowedCSIDriversNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - setNewAllowedCSIDriverLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .AllowedCSIDriversNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editAllowedCSIDriver(java.lang.Integer index) { - if (allowedCSIDrivers.size() <= index) - throw new RuntimeException("Can't edit allowedCSIDrivers. Index exceeds size."); - return setNewAllowedCSIDriverLike(index, buildAllowedCSIDriver(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editFirstAllowedCSIDriver() { - if (allowedCSIDrivers.size() == 0) - throw new RuntimeException("Can't edit first allowedCSIDrivers. The list is empty."); - return setNewAllowedCSIDriverLike(0, buildAllowedCSIDriver(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editLastAllowedCSIDriver() { - int index = allowedCSIDrivers.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last allowedCSIDrivers. The list is empty."); - return setNewAllowedCSIDriverLike(index, buildAllowedCSIDriver(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - A> - editMatchingAllowedCSIDriver( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder> - predicate) { - int index = -1; - for (int i = 0; i < allowedCSIDrivers.size(); i++) { - if (predicate.test(allowedCSIDrivers.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching allowedCSIDrivers. No match found."); - return setNewAllowedCSIDriverLike(index, buildAllowedCSIDriver(index)); - } - - public A addToAllowedCapabilities(java.lang.Integer index, java.lang.String item) { - if (this.allowedCapabilities == null) { - this.allowedCapabilities = new java.util.ArrayList(); - } - this.allowedCapabilities.add(index, item); - return (A) this; - } - - public A setToAllowedCapabilities(java.lang.Integer index, java.lang.String item) { - if (this.allowedCapabilities == null) { - this.allowedCapabilities = new java.util.ArrayList(); - } - this.allowedCapabilities.set(index, item); - return (A) this; - } - - public A addToAllowedCapabilities(java.lang.String... items) { - if (this.allowedCapabilities == null) { - this.allowedCapabilities = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedCapabilities.add(item); - } - return (A) this; - } - - public A addAllToAllowedCapabilities(java.util.Collection items) { - if (this.allowedCapabilities == null) { - this.allowedCapabilities = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedCapabilities.add(item); - } - return (A) this; - } - - public A removeFromAllowedCapabilities(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.allowedCapabilities != null) { - this.allowedCapabilities.remove(item); - } - } - return (A) this; - } - - public A removeAllFromAllowedCapabilities(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.allowedCapabilities != null) { - this.allowedCapabilities.remove(item); - } - } - return (A) this; - } - - public java.util.List getAllowedCapabilities() { - return this.allowedCapabilities; - } - - public java.lang.String getAllowedCapability(java.lang.Integer index) { - return this.allowedCapabilities.get(index); - } - - public java.lang.String getFirstAllowedCapability() { - return this.allowedCapabilities.get(0); - } - - public java.lang.String getLastAllowedCapability() { - return this.allowedCapabilities.get(allowedCapabilities.size() - 1); - } - - public java.lang.String getMatchingAllowedCapability( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedCapabilities) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingAllowedCapability( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedCapabilities) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedCapabilities(java.util.List allowedCapabilities) { - if (allowedCapabilities != null) { - this.allowedCapabilities = new java.util.ArrayList(); - for (java.lang.String item : allowedCapabilities) { - this.addToAllowedCapabilities(item); - } - } else { - this.allowedCapabilities = null; - } - return (A) this; - } - - public A withAllowedCapabilities(java.lang.String... allowedCapabilities) { - if (this.allowedCapabilities != null) { - this.allowedCapabilities.clear(); - } - if (allowedCapabilities != null) { - for (java.lang.String item : allowedCapabilities) { - this.addToAllowedCapabilities(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedCapabilities() { - return allowedCapabilities != null && !allowedCapabilities.isEmpty(); - } - - public A addToAllowedFlexVolumes( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item) { - if (this.allowedFlexVolumes == null) { - this.allowedFlexVolumes = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(item); - _visitables - .get("allowedFlexVolumes") - .add(index >= 0 ? index : _visitables.get("allowedFlexVolumes").size(), builder); - this.allowedFlexVolumes.add(index >= 0 ? index : allowedFlexVolumes.size(), builder); - return (A) this; - } - - public A setToAllowedFlexVolumes( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item) { - if (this.allowedFlexVolumes == null) { - this.allowedFlexVolumes = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(item); - if (index < 0 || index >= _visitables.get("allowedFlexVolumes").size()) { - _visitables.get("allowedFlexVolumes").add(builder); - } else { - _visitables.get("allowedFlexVolumes").set(index, builder); - } - if (index < 0 || index >= allowedFlexVolumes.size()) { - allowedFlexVolumes.add(builder); - } else { - allowedFlexVolumes.set(index, builder); - } - return (A) this; - } - - public A addToAllowedFlexVolumes( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume... items) { - if (this.allowedFlexVolumes == null) { - this.allowedFlexVolumes = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(item); - _visitables.get("allowedFlexVolumes").add(builder); - this.allowedFlexVolumes.add(builder); - } - return (A) this; - } - - public A addAllToAllowedFlexVolumes( - java.util.Collection items) { - if (this.allowedFlexVolumes == null) { - this.allowedFlexVolumes = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(item); - _visitables.get("allowedFlexVolumes").add(builder); - this.allowedFlexVolumes.add(builder); - } - return (A) this; - } - - public A removeFromAllowedFlexVolumes( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume... items) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(item); - _visitables.get("allowedFlexVolumes").remove(builder); - if (this.allowedFlexVolumes != null) { - this.allowedFlexVolumes.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromAllowedFlexVolumes( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(item); - _visitables.get("allowedFlexVolumes").remove(builder); - if (this.allowedFlexVolumes != null) { - this.allowedFlexVolumes.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromAllowedFlexVolumes( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate) { - if (allowedFlexVolumes == null) return (A) this; - final Iterator each = - allowedFlexVolumes.iterator(); - final List visitables = _visitables.get("allowedFlexVolumes"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildAllowedFlexVolumes instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List - getAllowedFlexVolumes() { - return allowedFlexVolumes != null ? build(allowedFlexVolumes) : null; - } - - public java.util.List - buildAllowedFlexVolumes() { - return allowedFlexVolumes != null ? build(allowedFlexVolumes) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume buildAllowedFlexVolume( - java.lang.Integer index) { - return this.allowedFlexVolumes.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume - buildFirstAllowedFlexVolume() { - return this.allowedFlexVolumes.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume buildLastAllowedFlexVolume() { - return this.allowedFlexVolumes.get(allowedFlexVolumes.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume - buildMatchingAllowedFlexVolume( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder item : - allowedFlexVolumes) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingAllowedFlexVolume( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder item : - allowedFlexVolumes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedFlexVolumes( - java.util.List - allowedFlexVolumes) { - if (this.allowedFlexVolumes != null) { - _visitables.get("allowedFlexVolumes").removeAll(this.allowedFlexVolumes); - } - if (allowedFlexVolumes != null) { - this.allowedFlexVolumes = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item : allowedFlexVolumes) { - this.addToAllowedFlexVolumes(item); - } - } else { - this.allowedFlexVolumes = null; - } - return (A) this; - } - - public A withAllowedFlexVolumes( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume... allowedFlexVolumes) { - if (this.allowedFlexVolumes != null) { - this.allowedFlexVolumes.clear(); - } - if (allowedFlexVolumes != null) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item : allowedFlexVolumes) { - this.addToAllowedFlexVolumes(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedFlexVolumes() { - return allowedFlexVolumes != null && !allowedFlexVolumes.isEmpty(); - } - - public V1beta1PodSecurityPolicySpecFluent.AllowedFlexVolumesNested addNewAllowedFlexVolume() { - return new V1beta1PodSecurityPolicySpecFluentImpl.AllowedFlexVolumesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - addNewAllowedFlexVolumeLike( - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .AllowedFlexVolumesNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - setNewAllowedFlexVolumeLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolume item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .AllowedFlexVolumesNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editAllowedFlexVolume(java.lang.Integer index) { - if (allowedFlexVolumes.size() <= index) - throw new RuntimeException("Can't edit allowedFlexVolumes. Index exceeds size."); - return setNewAllowedFlexVolumeLike(index, buildAllowedFlexVolume(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editFirstAllowedFlexVolume() { - if (allowedFlexVolumes.size() == 0) - throw new RuntimeException("Can't edit first allowedFlexVolumes. The list is empty."); - return setNewAllowedFlexVolumeLike(0, buildAllowedFlexVolume(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editLastAllowedFlexVolume() { - int index = allowedFlexVolumes.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last allowedFlexVolumes. The list is empty."); - return setNewAllowedFlexVolumeLike(index, buildAllowedFlexVolume(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - A> - editMatchingAllowedFlexVolume( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder> - predicate) { - int index = -1; - for (int i = 0; i < allowedFlexVolumes.size(); i++) { - if (predicate.test(allowedFlexVolumes.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching allowedFlexVolumes. No match found."); - return setNewAllowedFlexVolumeLike(index, buildAllowedFlexVolume(index)); - } - - public A addToAllowedHostPaths( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item) { - if (this.allowedHostPaths == null) { - this.allowedHostPaths = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(item); - _visitables - .get("allowedHostPaths") - .add(index >= 0 ? index : _visitables.get("allowedHostPaths").size(), builder); - this.allowedHostPaths.add(index >= 0 ? index : allowedHostPaths.size(), builder); - return (A) this; - } - - public A setToAllowedHostPaths( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item) { - if (this.allowedHostPaths == null) { - this.allowedHostPaths = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(item); - if (index < 0 || index >= _visitables.get("allowedHostPaths").size()) { - _visitables.get("allowedHostPaths").add(builder); - } else { - _visitables.get("allowedHostPaths").set(index, builder); - } - if (index < 0 || index >= allowedHostPaths.size()) { - allowedHostPaths.add(builder); - } else { - allowedHostPaths.set(index, builder); - } - return (A) this; - } - - public A addToAllowedHostPaths( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath... items) { - if (this.allowedHostPaths == null) { - this.allowedHostPaths = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(item); - _visitables.get("allowedHostPaths").add(builder); - this.allowedHostPaths.add(builder); - } - return (A) this; - } - - public A addAllToAllowedHostPaths( - java.util.Collection items) { - if (this.allowedHostPaths == null) { - this.allowedHostPaths = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(item); - _visitables.get("allowedHostPaths").add(builder); - this.allowedHostPaths.add(builder); - } - return (A) this; - } - - public A removeFromAllowedHostPaths( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath... items) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(item); - _visitables.get("allowedHostPaths").remove(builder); - if (this.allowedHostPaths != null) { - this.allowedHostPaths.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromAllowedHostPaths( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item : items) { - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(item); - _visitables.get("allowedHostPaths").remove(builder); - if (this.allowedHostPaths != null) { - this.allowedHostPaths.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromAllowedHostPaths( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate) { - if (allowedHostPaths == null) return (A) this; - final Iterator each = - allowedHostPaths.iterator(); - final List visitables = _visitables.get("allowedHostPaths"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildAllowedHostPaths instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List - getAllowedHostPaths() { - return allowedHostPaths != null ? build(allowedHostPaths) : null; - } - - public java.util.List - buildAllowedHostPaths() { - return allowedHostPaths != null ? build(allowedHostPaths) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildAllowedHostPath( - java.lang.Integer index) { - return this.allowedHostPaths.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildFirstAllowedHostPath() { - return this.allowedHostPaths.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildLastAllowedHostPath() { - return this.allowedHostPaths.get(allowedHostPaths.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1AllowedHostPath buildMatchingAllowedHostPath( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder item : - allowedHostPaths) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingAllowedHostPath( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder item : - allowedHostPaths) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedHostPaths( - java.util.List allowedHostPaths) { - if (this.allowedHostPaths != null) { - _visitables.get("allowedHostPaths").removeAll(this.allowedHostPaths); - } - if (allowedHostPaths != null) { - this.allowedHostPaths = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item : allowedHostPaths) { - this.addToAllowedHostPaths(item); - } - } else { - this.allowedHostPaths = null; - } - return (A) this; - } - - public A withAllowedHostPaths( - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath... allowedHostPaths) { - if (this.allowedHostPaths != null) { - this.allowedHostPaths.clear(); - } - if (allowedHostPaths != null) { - for (io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item : allowedHostPaths) { - this.addToAllowedHostPaths(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedHostPaths() { - return allowedHostPaths != null && !allowedHostPaths.isEmpty(); - } - - public V1beta1PodSecurityPolicySpecFluent.AllowedHostPathsNested addNewAllowedHostPath() { - return new V1beta1PodSecurityPolicySpecFluentImpl.AllowedHostPathsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - addNewAllowedHostPathLike(io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .AllowedHostPathsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - setNewAllowedHostPathLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1AllowedHostPath item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .AllowedHostPathsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editAllowedHostPath(java.lang.Integer index) { - if (allowedHostPaths.size() <= index) - throw new RuntimeException("Can't edit allowedHostPaths. Index exceeds size."); - return setNewAllowedHostPathLike(index, buildAllowedHostPath(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editFirstAllowedHostPath() { - if (allowedHostPaths.size() == 0) - throw new RuntimeException("Can't edit first allowedHostPaths. The list is empty."); - return setNewAllowedHostPathLike(0, buildAllowedHostPath(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editLastAllowedHostPath() { - int index = allowedHostPaths.size() - 1; - if (index < 0) - throw new RuntimeException("Can't edit last allowedHostPaths. The list is empty."); - return setNewAllowedHostPathLike(index, buildAllowedHostPath(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - A> - editMatchingAllowedHostPath( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder> - predicate) { - int index = -1; - for (int i = 0; i < allowedHostPaths.size(); i++) { - if (predicate.test(allowedHostPaths.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching allowedHostPaths. No match found."); - return setNewAllowedHostPathLike(index, buildAllowedHostPath(index)); - } - - public A addToAllowedProcMountTypes(java.lang.Integer index, java.lang.String item) { - if (this.allowedProcMountTypes == null) { - this.allowedProcMountTypes = new java.util.ArrayList(); - } - this.allowedProcMountTypes.add(index, item); - return (A) this; - } - - public A setToAllowedProcMountTypes(java.lang.Integer index, java.lang.String item) { - if (this.allowedProcMountTypes == null) { - this.allowedProcMountTypes = new java.util.ArrayList(); - } - this.allowedProcMountTypes.set(index, item); - return (A) this; - } - - public A addToAllowedProcMountTypes(java.lang.String... items) { - if (this.allowedProcMountTypes == null) { - this.allowedProcMountTypes = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedProcMountTypes.add(item); - } - return (A) this; - } - - public A addAllToAllowedProcMountTypes(java.util.Collection items) { - if (this.allowedProcMountTypes == null) { - this.allowedProcMountTypes = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedProcMountTypes.add(item); - } - return (A) this; - } - - public A removeFromAllowedProcMountTypes(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.allowedProcMountTypes != null) { - this.allowedProcMountTypes.remove(item); - } - } - return (A) this; - } - - public A removeAllFromAllowedProcMountTypes(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.allowedProcMountTypes != null) { - this.allowedProcMountTypes.remove(item); - } - } - return (A) this; - } - - public java.util.List getAllowedProcMountTypes() { - return this.allowedProcMountTypes; - } - - public java.lang.String getAllowedProcMountType(java.lang.Integer index) { - return this.allowedProcMountTypes.get(index); - } - - public java.lang.String getFirstAllowedProcMountType() { - return this.allowedProcMountTypes.get(0); - } - - public java.lang.String getLastAllowedProcMountType() { - return this.allowedProcMountTypes.get(allowedProcMountTypes.size() - 1); - } - - public java.lang.String getMatchingAllowedProcMountType( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedProcMountTypes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingAllowedProcMountType( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedProcMountTypes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedProcMountTypes(java.util.List allowedProcMountTypes) { - if (allowedProcMountTypes != null) { - this.allowedProcMountTypes = new java.util.ArrayList(); - for (java.lang.String item : allowedProcMountTypes) { - this.addToAllowedProcMountTypes(item); - } - } else { - this.allowedProcMountTypes = null; - } - return (A) this; - } - - public A withAllowedProcMountTypes(java.lang.String... allowedProcMountTypes) { - if (this.allowedProcMountTypes != null) { - this.allowedProcMountTypes.clear(); - } - if (allowedProcMountTypes != null) { - for (java.lang.String item : allowedProcMountTypes) { - this.addToAllowedProcMountTypes(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedProcMountTypes() { - return allowedProcMountTypes != null && !allowedProcMountTypes.isEmpty(); - } - - public A addToAllowedUnsafeSysctls(java.lang.Integer index, java.lang.String item) { - if (this.allowedUnsafeSysctls == null) { - this.allowedUnsafeSysctls = new java.util.ArrayList(); - } - this.allowedUnsafeSysctls.add(index, item); - return (A) this; - } - - public A setToAllowedUnsafeSysctls(java.lang.Integer index, java.lang.String item) { - if (this.allowedUnsafeSysctls == null) { - this.allowedUnsafeSysctls = new java.util.ArrayList(); - } - this.allowedUnsafeSysctls.set(index, item); - return (A) this; - } - - public A addToAllowedUnsafeSysctls(java.lang.String... items) { - if (this.allowedUnsafeSysctls == null) { - this.allowedUnsafeSysctls = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedUnsafeSysctls.add(item); - } - return (A) this; - } - - public A addAllToAllowedUnsafeSysctls(java.util.Collection items) { - if (this.allowedUnsafeSysctls == null) { - this.allowedUnsafeSysctls = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedUnsafeSysctls.add(item); - } - return (A) this; - } - - public A removeFromAllowedUnsafeSysctls(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.allowedUnsafeSysctls != null) { - this.allowedUnsafeSysctls.remove(item); - } - } - return (A) this; - } - - public A removeAllFromAllowedUnsafeSysctls(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.allowedUnsafeSysctls != null) { - this.allowedUnsafeSysctls.remove(item); - } - } - return (A) this; - } - - public java.util.List getAllowedUnsafeSysctls() { - return this.allowedUnsafeSysctls; - } - - public java.lang.String getAllowedUnsafeSysctl(java.lang.Integer index) { - return this.allowedUnsafeSysctls.get(index); - } - - public java.lang.String getFirstAllowedUnsafeSysctl() { - return this.allowedUnsafeSysctls.get(0); - } - - public java.lang.String getLastAllowedUnsafeSysctl() { - return this.allowedUnsafeSysctls.get(allowedUnsafeSysctls.size() - 1); - } - - public java.lang.String getMatchingAllowedUnsafeSysctl( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedUnsafeSysctls) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingAllowedUnsafeSysctl( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedUnsafeSysctls) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedUnsafeSysctls(java.util.List allowedUnsafeSysctls) { - if (allowedUnsafeSysctls != null) { - this.allowedUnsafeSysctls = new java.util.ArrayList(); - for (java.lang.String item : allowedUnsafeSysctls) { - this.addToAllowedUnsafeSysctls(item); - } - } else { - this.allowedUnsafeSysctls = null; - } - return (A) this; - } - - public A withAllowedUnsafeSysctls(java.lang.String... allowedUnsafeSysctls) { - if (this.allowedUnsafeSysctls != null) { - this.allowedUnsafeSysctls.clear(); - } - if (allowedUnsafeSysctls != null) { - for (java.lang.String item : allowedUnsafeSysctls) { - this.addToAllowedUnsafeSysctls(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedUnsafeSysctls() { - return allowedUnsafeSysctls != null && !allowedUnsafeSysctls.isEmpty(); - } - - public A addToDefaultAddCapabilities(java.lang.Integer index, java.lang.String item) { - if (this.defaultAddCapabilities == null) { - this.defaultAddCapabilities = new java.util.ArrayList(); - } - this.defaultAddCapabilities.add(index, item); - return (A) this; - } - - public A setToDefaultAddCapabilities(java.lang.Integer index, java.lang.String item) { - if (this.defaultAddCapabilities == null) { - this.defaultAddCapabilities = new java.util.ArrayList(); - } - this.defaultAddCapabilities.set(index, item); - return (A) this; - } - - public A addToDefaultAddCapabilities(java.lang.String... items) { - if (this.defaultAddCapabilities == null) { - this.defaultAddCapabilities = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.defaultAddCapabilities.add(item); - } - return (A) this; - } - - public A addAllToDefaultAddCapabilities(java.util.Collection items) { - if (this.defaultAddCapabilities == null) { - this.defaultAddCapabilities = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.defaultAddCapabilities.add(item); - } - return (A) this; - } - - public A removeFromDefaultAddCapabilities(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.defaultAddCapabilities != null) { - this.defaultAddCapabilities.remove(item); - } - } - return (A) this; - } - - public A removeAllFromDefaultAddCapabilities(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.defaultAddCapabilities != null) { - this.defaultAddCapabilities.remove(item); - } - } - return (A) this; - } - - public java.util.List getDefaultAddCapabilities() { - return this.defaultAddCapabilities; - } - - public java.lang.String getDefaultAddCapability(java.lang.Integer index) { - return this.defaultAddCapabilities.get(index); - } - - public java.lang.String getFirstDefaultAddCapability() { - return this.defaultAddCapabilities.get(0); - } - - public java.lang.String getLastDefaultAddCapability() { - return this.defaultAddCapabilities.get(defaultAddCapabilities.size() - 1); - } - - public java.lang.String getMatchingDefaultAddCapability( - java.util.function.Predicate predicate) { - for (java.lang.String item : defaultAddCapabilities) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingDefaultAddCapability( - java.util.function.Predicate predicate) { - for (java.lang.String item : defaultAddCapabilities) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDefaultAddCapabilities(java.util.List defaultAddCapabilities) { - if (defaultAddCapabilities != null) { - this.defaultAddCapabilities = new java.util.ArrayList(); - for (java.lang.String item : defaultAddCapabilities) { - this.addToDefaultAddCapabilities(item); - } - } else { - this.defaultAddCapabilities = null; - } - return (A) this; - } - - public A withDefaultAddCapabilities(java.lang.String... defaultAddCapabilities) { - if (this.defaultAddCapabilities != null) { - this.defaultAddCapabilities.clear(); - } - if (defaultAddCapabilities != null) { - for (java.lang.String item : defaultAddCapabilities) { - this.addToDefaultAddCapabilities(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasDefaultAddCapabilities() { - return defaultAddCapabilities != null && !defaultAddCapabilities.isEmpty(); - } - - public java.lang.Boolean getDefaultAllowPrivilegeEscalation() { - return this.defaultAllowPrivilegeEscalation; - } - - public A withDefaultAllowPrivilegeEscalation(java.lang.Boolean defaultAllowPrivilegeEscalation) { - this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - return (A) this; - } - - public java.lang.Boolean hasDefaultAllowPrivilegeEscalation() { - return this.defaultAllowPrivilegeEscalation != null; - } - - public A addToForbiddenSysctls(java.lang.Integer index, java.lang.String item) { - if (this.forbiddenSysctls == null) { - this.forbiddenSysctls = new java.util.ArrayList(); - } - this.forbiddenSysctls.add(index, item); - return (A) this; - } - - public A setToForbiddenSysctls(java.lang.Integer index, java.lang.String item) { - if (this.forbiddenSysctls == null) { - this.forbiddenSysctls = new java.util.ArrayList(); - } - this.forbiddenSysctls.set(index, item); - return (A) this; - } - - public A addToForbiddenSysctls(java.lang.String... items) { - if (this.forbiddenSysctls == null) { - this.forbiddenSysctls = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.forbiddenSysctls.add(item); - } - return (A) this; - } - - public A addAllToForbiddenSysctls(java.util.Collection items) { - if (this.forbiddenSysctls == null) { - this.forbiddenSysctls = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.forbiddenSysctls.add(item); - } - return (A) this; - } - - public A removeFromForbiddenSysctls(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.forbiddenSysctls != null) { - this.forbiddenSysctls.remove(item); - } - } - return (A) this; - } - - public A removeAllFromForbiddenSysctls(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.forbiddenSysctls != null) { - this.forbiddenSysctls.remove(item); - } - } - return (A) this; - } - - public java.util.List getForbiddenSysctls() { - return this.forbiddenSysctls; - } - - public java.lang.String getForbiddenSysctl(java.lang.Integer index) { - return this.forbiddenSysctls.get(index); - } - - public java.lang.String getFirstForbiddenSysctl() { - return this.forbiddenSysctls.get(0); - } - - public java.lang.String getLastForbiddenSysctl() { - return this.forbiddenSysctls.get(forbiddenSysctls.size() - 1); - } - - public java.lang.String getMatchingForbiddenSysctl( - java.util.function.Predicate predicate) { - for (java.lang.String item : forbiddenSysctls) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingForbiddenSysctl( - java.util.function.Predicate predicate) { - for (java.lang.String item : forbiddenSysctls) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withForbiddenSysctls(java.util.List forbiddenSysctls) { - if (forbiddenSysctls != null) { - this.forbiddenSysctls = new java.util.ArrayList(); - for (java.lang.String item : forbiddenSysctls) { - this.addToForbiddenSysctls(item); - } - } else { - this.forbiddenSysctls = null; - } - return (A) this; - } - - public A withForbiddenSysctls(java.lang.String... forbiddenSysctls) { - if (this.forbiddenSysctls != null) { - this.forbiddenSysctls.clear(); - } - if (forbiddenSysctls != null) { - for (java.lang.String item : forbiddenSysctls) { - this.addToForbiddenSysctls(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasForbiddenSysctls() { - return forbiddenSysctls != null && !forbiddenSysctls.isEmpty(); - } - - /** - * This method has been deprecated, please use method buildFsGroup instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions getFsGroup() { - return this.fsGroup != null ? this.fsGroup.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions buildFsGroup() { - return this.fsGroup != null ? this.fsGroup.build() : null; - } - - public A withFsGroup(io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions fsGroup) { - _visitables.get("fsGroup").remove(this.fsGroup); - if (fsGroup != null) { - this.fsGroup = new V1beta1FSGroupStrategyOptionsBuilder(fsGroup); - _visitables.get("fsGroup").add(this.fsGroup); - } - return (A) this; - } - - public java.lang.Boolean hasFsGroup() { - return this.fsGroup != null; - } - - public V1beta1PodSecurityPolicySpecFluent.FsGroupNested withNewFsGroup() { - return new V1beta1PodSecurityPolicySpecFluentImpl.FsGroupNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - withNewFsGroupLike(io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .FsGroupNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - editFsGroup() { - return withNewFsGroupLike(getFsGroup()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - editOrNewFsGroup() { - return withNewFsGroupLike( - getFsGroup() != null - ? getFsGroup() - : new io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.FsGroupNested - editOrNewFsGroupLike(io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptions item) { - return withNewFsGroupLike(getFsGroup() != null ? getFsGroup() : item); - } - - public java.lang.Boolean getHostIPC() { - return this.hostIPC; - } - - public A withHostIPC(java.lang.Boolean hostIPC) { - this.hostIPC = hostIPC; - return (A) this; - } - - public java.lang.Boolean hasHostIPC() { - return this.hostIPC != null; - } - - public java.lang.Boolean getHostNetwork() { - return this.hostNetwork; - } - - public A withHostNetwork(java.lang.Boolean hostNetwork) { - this.hostNetwork = hostNetwork; - return (A) this; - } - - public java.lang.Boolean hasHostNetwork() { - return this.hostNetwork != null; - } - - public java.lang.Boolean getHostPID() { - return this.hostPID; - } - - public A withHostPID(java.lang.Boolean hostPID) { - this.hostPID = hostPID; - return (A) this; - } - - public java.lang.Boolean hasHostPID() { - return this.hostPID != null; - } - - public A addToHostPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1HostPortRange item) { - if (this.hostPorts == null) { - this.hostPorts = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(item); - _visitables - .get("hostPorts") - .add(index >= 0 ? index : _visitables.get("hostPorts").size(), builder); - this.hostPorts.add(index >= 0 ? index : hostPorts.size(), builder); - return (A) this; - } - - public A setToHostPorts( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1HostPortRange item) { - if (this.hostPorts == null) { - this.hostPorts = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder>(); - } - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(item); - if (index < 0 || index >= _visitables.get("hostPorts").size()) { - _visitables.get("hostPorts").add(builder); - } else { - _visitables.get("hostPorts").set(index, builder); - } - if (index < 0 || index >= hostPorts.size()) { - hostPorts.add(builder); - } else { - hostPorts.set(index, builder); - } - return (A) this; - } - - public A addToHostPorts(io.kubernetes.client.openapi.models.V1beta1HostPortRange... items) { - if (this.hostPorts == null) { - this.hostPorts = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1HostPortRange item : items) { - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(item); - _visitables.get("hostPorts").add(builder); - this.hostPorts.add(builder); - } - return (A) this; - } - - public A addAllToHostPorts( - java.util.Collection items) { - if (this.hostPorts == null) { - this.hostPorts = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder>(); - } - for (io.kubernetes.client.openapi.models.V1beta1HostPortRange item : items) { - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(item); - _visitables.get("hostPorts").add(builder); - this.hostPorts.add(builder); - } - return (A) this; - } - - public A removeFromHostPorts(io.kubernetes.client.openapi.models.V1beta1HostPortRange... items) { - for (io.kubernetes.client.openapi.models.V1beta1HostPortRange item : items) { - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(item); - _visitables.get("hostPorts").remove(builder); - if (this.hostPorts != null) { - this.hostPorts.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromHostPorts( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1HostPortRange item : items) { - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(item); - _visitables.get("hostPorts").remove(builder); - if (this.hostPorts != null) { - this.hostPorts.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromHostPorts( - java.util.function.Predicate - predicate) { - if (hostPorts == null) return (A) this; - final Iterator each = - hostPorts.iterator(); - final List visitables = _visitables.get("hostPorts"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildHostPorts instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List getHostPorts() { - return hostPorts != null ? build(hostPorts) : null; - } - - public java.util.List buildHostPorts() { - return hostPorts != null ? build(hostPorts) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildHostPort( - java.lang.Integer index) { - return this.hostPorts.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildFirstHostPort() { - return this.hostPorts.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildLastHostPort() { - return this.hostPorts.get(hostPorts.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1HostPortRange buildMatchingHostPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder item : hostPorts) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingHostPort( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder item : hostPorts) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withHostPorts( - java.util.List hostPorts) { - if (this.hostPorts != null) { - _visitables.get("hostPorts").removeAll(this.hostPorts); - } - if (hostPorts != null) { - this.hostPorts = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1HostPortRange item : hostPorts) { - this.addToHostPorts(item); - } - } else { - this.hostPorts = null; - } - return (A) this; - } - - public A withHostPorts(io.kubernetes.client.openapi.models.V1beta1HostPortRange... hostPorts) { - if (this.hostPorts != null) { - this.hostPorts.clear(); - } - if (hostPorts != null) { - for (io.kubernetes.client.openapi.models.V1beta1HostPortRange item : hostPorts) { - this.addToHostPorts(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasHostPorts() { - return hostPorts != null && !hostPorts.isEmpty(); - } - - public V1beta1PodSecurityPolicySpecFluent.HostPortsNested addNewHostPort() { - return new V1beta1PodSecurityPolicySpecFluentImpl.HostPortsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - addNewHostPortLike(io.kubernetes.client.openapi.models.V1beta1HostPortRange item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .HostPortsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - setNewHostPortLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1HostPortRange item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .HostPortsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editHostPort(java.lang.Integer index) { - if (hostPorts.size() <= index) - throw new RuntimeException("Can't edit hostPorts. Index exceeds size."); - return setNewHostPortLike(index, buildHostPort(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editFirstHostPort() { - if (hostPorts.size() == 0) - throw new RuntimeException("Can't edit first hostPorts. The list is empty."); - return setNewHostPortLike(0, buildHostPort(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editLastHostPort() { - int index = hostPorts.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last hostPorts. The list is empty."); - return setNewHostPortLike(index, buildHostPort(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.HostPortsNested - editMatchingHostPort( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder> - predicate) { - int index = -1; - for (int i = 0; i < hostPorts.size(); i++) { - if (predicate.test(hostPorts.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching hostPorts. No match found."); - return setNewHostPortLike(index, buildHostPort(index)); - } - - public java.lang.Boolean getPrivileged() { - return this.privileged; - } - - public A withPrivileged(java.lang.Boolean privileged) { - this.privileged = privileged; - return (A) this; - } - - public java.lang.Boolean hasPrivileged() { - return this.privileged != null; - } - - public java.lang.Boolean getReadOnlyRootFilesystem() { - return this.readOnlyRootFilesystem; - } - - public A withReadOnlyRootFilesystem(java.lang.Boolean readOnlyRootFilesystem) { - this.readOnlyRootFilesystem = readOnlyRootFilesystem; - return (A) this; - } - - public java.lang.Boolean hasReadOnlyRootFilesystem() { - return this.readOnlyRootFilesystem != null; - } - - public A addToRequiredDropCapabilities(java.lang.Integer index, java.lang.String item) { - if (this.requiredDropCapabilities == null) { - this.requiredDropCapabilities = new java.util.ArrayList(); - } - this.requiredDropCapabilities.add(index, item); - return (A) this; - } - - public A setToRequiredDropCapabilities(java.lang.Integer index, java.lang.String item) { - if (this.requiredDropCapabilities == null) { - this.requiredDropCapabilities = new java.util.ArrayList(); - } - this.requiredDropCapabilities.set(index, item); - return (A) this; - } - - public A addToRequiredDropCapabilities(java.lang.String... items) { - if (this.requiredDropCapabilities == null) { - this.requiredDropCapabilities = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.requiredDropCapabilities.add(item); - } - return (A) this; - } - - public A addAllToRequiredDropCapabilities(java.util.Collection items) { - if (this.requiredDropCapabilities == null) { - this.requiredDropCapabilities = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.requiredDropCapabilities.add(item); - } - return (A) this; - } - - public A removeFromRequiredDropCapabilities(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.requiredDropCapabilities != null) { - this.requiredDropCapabilities.remove(item); - } - } - return (A) this; - } - - public A removeAllFromRequiredDropCapabilities(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.requiredDropCapabilities != null) { - this.requiredDropCapabilities.remove(item); - } - } - return (A) this; - } - - public java.util.List getRequiredDropCapabilities() { - return this.requiredDropCapabilities; - } - - public java.lang.String getRequiredDropCapability(java.lang.Integer index) { - return this.requiredDropCapabilities.get(index); - } - - public java.lang.String getFirstRequiredDropCapability() { - return this.requiredDropCapabilities.get(0); - } - - public java.lang.String getLastRequiredDropCapability() { - return this.requiredDropCapabilities.get(requiredDropCapabilities.size() - 1); - } - - public java.lang.String getMatchingRequiredDropCapability( - java.util.function.Predicate predicate) { - for (java.lang.String item : requiredDropCapabilities) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingRequiredDropCapability( - java.util.function.Predicate predicate) { - for (java.lang.String item : requiredDropCapabilities) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRequiredDropCapabilities(java.util.List requiredDropCapabilities) { - if (requiredDropCapabilities != null) { - this.requiredDropCapabilities = new java.util.ArrayList(); - for (java.lang.String item : requiredDropCapabilities) { - this.addToRequiredDropCapabilities(item); - } - } else { - this.requiredDropCapabilities = null; - } - return (A) this; - } - - public A withRequiredDropCapabilities(java.lang.String... requiredDropCapabilities) { - if (this.requiredDropCapabilities != null) { - this.requiredDropCapabilities.clear(); - } - if (requiredDropCapabilities != null) { - for (java.lang.String item : requiredDropCapabilities) { - this.addToRequiredDropCapabilities(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasRequiredDropCapabilities() { - return requiredDropCapabilities != null && !requiredDropCapabilities.isEmpty(); - } - - /** - * This method has been deprecated, please use method buildRunAsGroup instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions getRunAsGroup() { - return this.runAsGroup != null ? this.runAsGroup.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions buildRunAsGroup() { - return this.runAsGroup != null ? this.runAsGroup.build() : null; - } - - public A withRunAsGroup( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions runAsGroup) { - _visitables.get("runAsGroup").remove(this.runAsGroup); - if (runAsGroup != null) { - this.runAsGroup = new V1beta1RunAsGroupStrategyOptionsBuilder(runAsGroup); - _visitables.get("runAsGroup").add(this.runAsGroup); - } - return (A) this; - } - - public java.lang.Boolean hasRunAsGroup() { - return this.runAsGroup != null; - } - - public V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested withNewRunAsGroup() { - return new V1beta1PodSecurityPolicySpecFluentImpl.RunAsGroupNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - withNewRunAsGroupLike( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .RunAsGroupNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - editRunAsGroup() { - return withNewRunAsGroupLike(getRunAsGroup()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - editOrNewRunAsGroup() { - return withNewRunAsGroupLike( - getRunAsGroup() != null - ? getRunAsGroup() - : new io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested - editOrNewRunAsGroupLike( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions item) { - return withNewRunAsGroupLike(getRunAsGroup() != null ? getRunAsGroup() : item); - } - - /** - * This method has been deprecated, please use method buildRunAsUser instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1RunAsUserStrategyOptions getRunAsUser() { - return this.runAsUser != null ? this.runAsUser.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions buildRunAsUser() { - return this.runAsUser != null ? this.runAsUser.build() : null; - } - - public A withRunAsUser( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions runAsUser) { - _visitables.get("runAsUser").remove(this.runAsUser); - if (runAsUser != null) { - this.runAsUser = - new io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsBuilder(runAsUser); - _visitables.get("runAsUser").add(this.runAsUser); - } - return (A) this; - } - - public java.lang.Boolean hasRunAsUser() { - return this.runAsUser != null; - } - - public V1beta1PodSecurityPolicySpecFluent.RunAsUserNested withNewRunAsUser() { - return new V1beta1PodSecurityPolicySpecFluentImpl.RunAsUserNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - withNewRunAsUserLike( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .RunAsUserNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - editRunAsUser() { - return withNewRunAsUserLike(getRunAsUser()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - editOrNewRunAsUser() { - return withNewRunAsUserLike( - getRunAsUser() != null - ? getRunAsUser() - : new io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RunAsUserNested - editOrNewRunAsUserLike( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions item) { - return withNewRunAsUserLike(getRunAsUser() != null ? getRunAsUser() : item); - } - - /** - * This method has been deprecated, please use method buildRuntimeClass instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions getRuntimeClass() { - return this.runtimeClass != null ? this.runtimeClass.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions - buildRuntimeClass() { - return this.runtimeClass != null ? this.runtimeClass.build() : null; - } - - public A withRuntimeClass( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions runtimeClass) { - _visitables.get("runtimeClass").remove(this.runtimeClass); - if (runtimeClass != null) { - this.runtimeClass = new V1beta1RuntimeClassStrategyOptionsBuilder(runtimeClass); - _visitables.get("runtimeClass").add(this.runtimeClass); - } - return (A) this; - } - - public java.lang.Boolean hasRuntimeClass() { - return this.runtimeClass != null; - } - - public V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested withNewRuntimeClass() { - return new V1beta1PodSecurityPolicySpecFluentImpl.RuntimeClassNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - withNewRuntimeClassLike( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .RuntimeClassNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - editRuntimeClass() { - return withNewRuntimeClassLike(getRuntimeClass()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - editOrNewRuntimeClass() { - return withNewRuntimeClassLike( - getRuntimeClass() != null - ? getRuntimeClass() - : new io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested< - A> - editOrNewRuntimeClassLike( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions item) { - return withNewRuntimeClassLike(getRuntimeClass() != null ? getRuntimeClass() : item); - } - - /** - * This method has been deprecated, please use method buildSeLinux instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1SELinuxStrategyOptions getSeLinux() { - return this.seLinux != null ? this.seLinux.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions buildSeLinux() { - return this.seLinux != null ? this.seLinux.build() : null; - } - - public A withSeLinux(io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions seLinux) { - _visitables.get("seLinux").remove(this.seLinux); - if (seLinux != null) { - this.seLinux = - new io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsBuilder(seLinux); - _visitables.get("seLinux").add(this.seLinux); - } - return (A) this; - } - - public java.lang.Boolean hasSeLinux() { - return this.seLinux != null; - } - - public V1beta1PodSecurityPolicySpecFluent.SeLinuxNested withNewSeLinux() { - return new V1beta1PodSecurityPolicySpecFluentImpl.SeLinuxNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - withNewSeLinuxLike(io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .SeLinuxNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - editSeLinux() { - return withNewSeLinuxLike(getSeLinux()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - editOrNewSeLinux() { - return withNewSeLinuxLike( - getSeLinux() != null - ? getSeLinux() - : new io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent.SeLinuxNested - editOrNewSeLinuxLike(io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions item) { - return withNewSeLinuxLike(getSeLinux() != null ? getSeLinux() : item); - } - - /** - * This method has been deprecated, please use method buildSupplementalGroups instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1SupplementalGroupsStrategyOptions getSupplementalGroups() { - return this.supplementalGroups != null ? this.supplementalGroups.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions - buildSupplementalGroups() { - return this.supplementalGroups != null ? this.supplementalGroups.build() : null; - } - - public A withSupplementalGroups( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions - supplementalGroups) { - _visitables.get("supplementalGroups").remove(this.supplementalGroups); - if (supplementalGroups != null) { - this.supplementalGroups = - new io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsBuilder( - supplementalGroups); - _visitables.get("supplementalGroups").add(this.supplementalGroups); - } - return (A) this; - } - - public java.lang.Boolean hasSupplementalGroups() { - return this.supplementalGroups != null; - } - - public V1beta1PodSecurityPolicySpecFluent.SupplementalGroupsNested - withNewSupplementalGroups() { - return new V1beta1PodSecurityPolicySpecFluentImpl.SupplementalGroupsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - withNewSupplementalGroupsLike( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions item) { - return new io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluentImpl - .SupplementalGroupsNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - editSupplementalGroups() { - return withNewSupplementalGroupsLike(getSupplementalGroups()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - editOrNewSupplementalGroups() { - return withNewSupplementalGroupsLike( - getSupplementalGroups() != null - ? getSupplementalGroups() - : new io.kubernetes.client.openapi.models - .V1beta1SupplementalGroupsStrategyOptionsBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - A> - editOrNewSupplementalGroupsLike( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions item) { - return withNewSupplementalGroupsLike( - getSupplementalGroups() != null ? getSupplementalGroups() : item); - } - - public A addToVolumes(java.lang.Integer index, java.lang.String item) { - if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); - } - this.volumes.add(index, item); - return (A) this; - } - - public A setToVolumes(java.lang.Integer index, java.lang.String item) { - if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); - } - this.volumes.set(index, item); - return (A) this; - } - - public A addToVolumes(java.lang.String... items) { - if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.volumes.add(item); - } - return (A) this; - } - - public A addAllToVolumes(java.util.Collection items) { - if (this.volumes == null) { - this.volumes = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.volumes.add(item); - } - return (A) this; - } - - public A removeFromVolumes(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.volumes != null) { - this.volumes.remove(item); - } - } - return (A) this; - } - - public A removeAllFromVolumes(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.volumes != null) { - this.volumes.remove(item); - } - } - return (A) this; - } - - public java.util.List getVolumes() { - return this.volumes; - } - - public java.lang.String getVolume(java.lang.Integer index) { - return this.volumes.get(index); - } - - public java.lang.String getFirstVolume() { - return this.volumes.get(0); - } - - public java.lang.String getLastVolume() { - return this.volumes.get(volumes.size() - 1); - } - - public java.lang.String getMatchingVolume( - java.util.function.Predicate predicate) { - for (java.lang.String item : volumes) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public java.lang.Boolean hasMatchingVolume( - java.util.function.Predicate predicate) { - for (java.lang.String item : volumes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVolumes(java.util.List volumes) { - if (volumes != null) { - this.volumes = new java.util.ArrayList(); - for (java.lang.String item : volumes) { - this.addToVolumes(item); - } - } else { - this.volumes = null; - } - return (A) this; - } - - public A withVolumes(java.lang.String... volumes) { - if (this.volumes != null) { - this.volumes.clear(); - } - if (volumes != null) { - for (java.lang.String item : volumes) { - this.addToVolumes(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasVolumes() { - return volumes != null && !volumes.isEmpty(); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1PodSecurityPolicySpecFluentImpl that = (V1beta1PodSecurityPolicySpecFluentImpl) o; - if (allowPrivilegeEscalation != null - ? !allowPrivilegeEscalation.equals(that.allowPrivilegeEscalation) - : that.allowPrivilegeEscalation != null) return false; - if (allowedCSIDrivers != null - ? !allowedCSIDrivers.equals(that.allowedCSIDrivers) - : that.allowedCSIDrivers != null) return false; - if (allowedCapabilities != null - ? !allowedCapabilities.equals(that.allowedCapabilities) - : that.allowedCapabilities != null) return false; - if (allowedFlexVolumes != null - ? !allowedFlexVolumes.equals(that.allowedFlexVolumes) - : that.allowedFlexVolumes != null) return false; - if (allowedHostPaths != null - ? !allowedHostPaths.equals(that.allowedHostPaths) - : that.allowedHostPaths != null) return false; - if (allowedProcMountTypes != null - ? !allowedProcMountTypes.equals(that.allowedProcMountTypes) - : that.allowedProcMountTypes != null) return false; - if (allowedUnsafeSysctls != null - ? !allowedUnsafeSysctls.equals(that.allowedUnsafeSysctls) - : that.allowedUnsafeSysctls != null) return false; - if (defaultAddCapabilities != null - ? !defaultAddCapabilities.equals(that.defaultAddCapabilities) - : that.defaultAddCapabilities != null) return false; - if (defaultAllowPrivilegeEscalation != null - ? !defaultAllowPrivilegeEscalation.equals(that.defaultAllowPrivilegeEscalation) - : that.defaultAllowPrivilegeEscalation != null) return false; - if (forbiddenSysctls != null - ? !forbiddenSysctls.equals(that.forbiddenSysctls) - : that.forbiddenSysctls != null) return false; - if (fsGroup != null ? !fsGroup.equals(that.fsGroup) : that.fsGroup != null) return false; - if (hostIPC != null ? !hostIPC.equals(that.hostIPC) : that.hostIPC != null) return false; - if (hostNetwork != null ? !hostNetwork.equals(that.hostNetwork) : that.hostNetwork != null) - return false; - if (hostPID != null ? !hostPID.equals(that.hostPID) : that.hostPID != null) return false; - if (hostPorts != null ? !hostPorts.equals(that.hostPorts) : that.hostPorts != null) - return false; - if (privileged != null ? !privileged.equals(that.privileged) : that.privileged != null) - return false; - if (readOnlyRootFilesystem != null - ? !readOnlyRootFilesystem.equals(that.readOnlyRootFilesystem) - : that.readOnlyRootFilesystem != null) return false; - if (requiredDropCapabilities != null - ? !requiredDropCapabilities.equals(that.requiredDropCapabilities) - : that.requiredDropCapabilities != null) return false; - if (runAsGroup != null ? !runAsGroup.equals(that.runAsGroup) : that.runAsGroup != null) - return false; - if (runAsUser != null ? !runAsUser.equals(that.runAsUser) : that.runAsUser != null) - return false; - if (runtimeClass != null ? !runtimeClass.equals(that.runtimeClass) : that.runtimeClass != null) - return false; - if (seLinux != null ? !seLinux.equals(that.seLinux) : that.seLinux != null) return false; - if (supplementalGroups != null - ? !supplementalGroups.equals(that.supplementalGroups) - : that.supplementalGroups != null) return false; - if (volumes != null ? !volumes.equals(that.volumes) : that.volumes != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - allowPrivilegeEscalation, - allowedCSIDrivers, - allowedCapabilities, - allowedFlexVolumes, - allowedHostPaths, - allowedProcMountTypes, - allowedUnsafeSysctls, - defaultAddCapabilities, - defaultAllowPrivilegeEscalation, - forbiddenSysctls, - fsGroup, - hostIPC, - hostNetwork, - hostPID, - hostPorts, - privileged, - readOnlyRootFilesystem, - requiredDropCapabilities, - runAsGroup, - runAsUser, - runtimeClass, - seLinux, - supplementalGroups, - volumes, - super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (allowPrivilegeEscalation != null) { - sb.append("allowPrivilegeEscalation:"); - sb.append(allowPrivilegeEscalation + ","); - } - if (allowedCSIDrivers != null && !allowedCSIDrivers.isEmpty()) { - sb.append("allowedCSIDrivers:"); - sb.append(allowedCSIDrivers + ","); - } - if (allowedCapabilities != null && !allowedCapabilities.isEmpty()) { - sb.append("allowedCapabilities:"); - sb.append(allowedCapabilities + ","); - } - if (allowedFlexVolumes != null && !allowedFlexVolumes.isEmpty()) { - sb.append("allowedFlexVolumes:"); - sb.append(allowedFlexVolumes + ","); - } - if (allowedHostPaths != null && !allowedHostPaths.isEmpty()) { - sb.append("allowedHostPaths:"); - sb.append(allowedHostPaths + ","); - } - if (allowedProcMountTypes != null && !allowedProcMountTypes.isEmpty()) { - sb.append("allowedProcMountTypes:"); - sb.append(allowedProcMountTypes + ","); - } - if (allowedUnsafeSysctls != null && !allowedUnsafeSysctls.isEmpty()) { - sb.append("allowedUnsafeSysctls:"); - sb.append(allowedUnsafeSysctls + ","); - } - if (defaultAddCapabilities != null && !defaultAddCapabilities.isEmpty()) { - sb.append("defaultAddCapabilities:"); - sb.append(defaultAddCapabilities + ","); - } - if (defaultAllowPrivilegeEscalation != null) { - sb.append("defaultAllowPrivilegeEscalation:"); - sb.append(defaultAllowPrivilegeEscalation + ","); - } - if (forbiddenSysctls != null && !forbiddenSysctls.isEmpty()) { - sb.append("forbiddenSysctls:"); - sb.append(forbiddenSysctls + ","); - } - if (fsGroup != null) { - sb.append("fsGroup:"); - sb.append(fsGroup + ","); - } - if (hostIPC != null) { - sb.append("hostIPC:"); - sb.append(hostIPC + ","); - } - if (hostNetwork != null) { - sb.append("hostNetwork:"); - sb.append(hostNetwork + ","); - } - if (hostPID != null) { - sb.append("hostPID:"); - sb.append(hostPID + ","); - } - if (hostPorts != null && !hostPorts.isEmpty()) { - sb.append("hostPorts:"); - sb.append(hostPorts + ","); - } - if (privileged != null) { - sb.append("privileged:"); - sb.append(privileged + ","); - } - if (readOnlyRootFilesystem != null) { - sb.append("readOnlyRootFilesystem:"); - sb.append(readOnlyRootFilesystem + ","); - } - if (requiredDropCapabilities != null && !requiredDropCapabilities.isEmpty()) { - sb.append("requiredDropCapabilities:"); - sb.append(requiredDropCapabilities + ","); - } - if (runAsGroup != null) { - sb.append("runAsGroup:"); - sb.append(runAsGroup + ","); - } - if (runAsUser != null) { - sb.append("runAsUser:"); - sb.append(runAsUser + ","); - } - if (runtimeClass != null) { - sb.append("runtimeClass:"); - sb.append(runtimeClass + ","); - } - if (seLinux != null) { - sb.append("seLinux:"); - sb.append(seLinux + ","); - } - if (supplementalGroups != null) { - sb.append("supplementalGroups:"); - sb.append(supplementalGroups + ","); - } - if (volumes != null && !volumes.isEmpty()) { - sb.append("volumes:"); - sb.append(volumes); - } - sb.append("}"); - return sb.toString(); - } - - public A withAllowPrivilegeEscalation() { - return withAllowPrivilegeEscalation(true); - } - - public A withDefaultAllowPrivilegeEscalation() { - return withDefaultAllowPrivilegeEscalation(true); - } - - public A withHostIPC() { - return withHostIPC(true); - } - - public A withHostNetwork() { - return withHostNetwork(true); - } - - public A withHostPID() { - return withHostPID(true); - } - - public A withPrivileged() { - return withPrivileged(true); - } - - public A withReadOnlyRootFilesystem() { - return withReadOnlyRootFilesystem(true); - } - - class AllowedCSIDriversNestedImpl - extends V1beta1AllowedCSIDriverFluentImpl< - V1beta1PodSecurityPolicySpecFluent.AllowedCSIDriversNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedCSIDriversNested< - N>, - Nested { - AllowedCSIDriversNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriver item) { - this.index = index; - this.builder = new V1beta1AllowedCSIDriverBuilder(this, item); - } - - AllowedCSIDriversNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1AllowedCSIDriverBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V1beta1PodSecurityPolicySpecFluentImpl.this.setToAllowedCSIDrivers( - index, builder.build()); - } - - public N endAllowedCSIDriver() { - return and(); - } - } - - class AllowedFlexVolumesNestedImpl - extends V1beta1AllowedFlexVolumeFluentImpl< - V1beta1PodSecurityPolicySpecFluent.AllowedFlexVolumesNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedFlexVolumesNested< - N>, - io.kubernetes.client.fluent.Nested { - AllowedFlexVolumesNestedImpl(java.lang.Integer index, V1beta1AllowedFlexVolume item) { - this.index = index; - this.builder = new V1beta1AllowedFlexVolumeBuilder(this, item); - } - - AllowedFlexVolumesNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1AllowedFlexVolumeBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V1beta1PodSecurityPolicySpecFluentImpl.this.setToAllowedFlexVolumes( - index, builder.build()); - } - - public N endAllowedFlexVolume() { - return and(); - } - } - - class AllowedHostPathsNestedImpl - extends V1beta1AllowedHostPathFluentImpl< - V1beta1PodSecurityPolicySpecFluent.AllowedHostPathsNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .AllowedHostPathsNested< - N>, - io.kubernetes.client.fluent.Nested { - AllowedHostPathsNestedImpl(java.lang.Integer index, V1beta1AllowedHostPath item) { - this.index = index; - this.builder = new V1beta1AllowedHostPathBuilder(this, item); - } - - AllowedHostPathsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1AllowedHostPathBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V1beta1PodSecurityPolicySpecFluentImpl.this.setToAllowedHostPaths(index, builder.build()); - } - - public N endAllowedHostPath() { - return and(); - } - } - - class FsGroupNestedImpl - extends V1beta1FSGroupStrategyOptionsFluentImpl< - V1beta1PodSecurityPolicySpecFluent.FsGroupNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .FsGroupNested< - N>, - io.kubernetes.client.fluent.Nested { - FsGroupNestedImpl(V1beta1FSGroupStrategyOptions item) { - this.builder = new V1beta1FSGroupStrategyOptionsBuilder(this, item); - } - - FsGroupNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1FSGroupStrategyOptionsBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicySpecFluentImpl.this.withFsGroup(builder.build()); - } - - public N endFsGroup() { - return and(); - } - } - - class HostPortsNestedImpl - extends V1beta1HostPortRangeFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .HostPortsNested< - N>, - io.kubernetes.client.fluent.Nested { - HostPortsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1HostPortRange item) { - this.index = index; - this.builder = new V1beta1HostPortRangeBuilder(this, item); - } - - HostPortsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1HostPortRangeBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1PodSecurityPolicySpecFluentImpl.this.setToHostPorts(index, builder.build()); - } - - public N endHostPort() { - return and(); - } - } - - class RunAsGroupNestedImpl - extends V1beta1RunAsGroupStrategyOptionsFluentImpl< - V1beta1PodSecurityPolicySpecFluent.RunAsGroupNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .RunAsGroupNested< - N>, - io.kubernetes.client.fluent.Nested { - RunAsGroupNestedImpl( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions item) { - this.builder = new V1beta1RunAsGroupStrategyOptionsBuilder(this, item); - } - - RunAsGroupNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicySpecFluentImpl.this.withRunAsGroup(builder.build()); - } - - public N endRunAsGroup() { - return and(); - } - } - - class RunAsUserNestedImpl - extends V1beta1RunAsUserStrategyOptionsFluentImpl< - V1beta1PodSecurityPolicySpecFluent.RunAsUserNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .RunAsUserNested< - N>, - io.kubernetes.client.fluent.Nested { - RunAsUserNestedImpl(io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions item) { - this.builder = new V1beta1RunAsUserStrategyOptionsBuilder(this, item); - } - - RunAsUserNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicySpecFluentImpl.this.withRunAsUser(builder.build()); - } - - public N endRunAsUser() { - return and(); - } - } - - class RuntimeClassNestedImpl - extends V1beta1RuntimeClassStrategyOptionsFluentImpl< - V1beta1PodSecurityPolicySpecFluent.RuntimeClassNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .RuntimeClassNested< - N>, - io.kubernetes.client.fluent.Nested { - RuntimeClassNestedImpl( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions item) { - this.builder = new V1beta1RuntimeClassStrategyOptionsBuilder(this, item); - } - - RuntimeClassNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicySpecFluentImpl.this.withRuntimeClass(builder.build()); - } - - public N endRuntimeClass() { - return and(); - } - } - - class SeLinuxNestedImpl - extends V1beta1SELinuxStrategyOptionsFluentImpl< - V1beta1PodSecurityPolicySpecFluent.SeLinuxNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SeLinuxNested< - N>, - io.kubernetes.client.fluent.Nested { - SeLinuxNestedImpl(V1beta1SELinuxStrategyOptions item) { - this.builder = new V1beta1SELinuxStrategyOptionsBuilder(this, item); - } - - SeLinuxNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsBuilder builder; - - public N and() { - return (N) V1beta1PodSecurityPolicySpecFluentImpl.this.withSeLinux(builder.build()); - } - - public N endSeLinux() { - return and(); - } - } - - class SupplementalGroupsNestedImpl - extends V1beta1SupplementalGroupsStrategyOptionsFluentImpl< - V1beta1PodSecurityPolicySpecFluent.SupplementalGroupsNested> - implements io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicySpecFluent - .SupplementalGroupsNested< - N>, - io.kubernetes.client.fluent.Nested { - SupplementalGroupsNestedImpl(V1beta1SupplementalGroupsStrategyOptions item) { - this.builder = new V1beta1SupplementalGroupsStrategyOptionsBuilder(this, item); - } - - SupplementalGroupsNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsBuilder( - this); - } - - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsBuilder builder; - - public N and() { - return (N) - V1beta1PodSecurityPolicySpecFluentImpl.this.withSupplementalGroups(builder.build()); - } - - public N endSupplementalGroups() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java index b79d0e8b81..a80b7daf0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsBuilder.java @@ -17,8 +17,7 @@ public class V1beta1PolicyRulesWithSubjectsBuilder extends V1beta1PolicyRulesWithSubjectsFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsBuilder> { + V1beta1PolicyRulesWithSubjects, V1beta1PolicyRulesWithSubjectsBuilder> { public V1beta1PolicyRulesWithSubjectsBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjectsFluen } public V1beta1PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1PolicyRulesWithSubjectsFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PolicyRulesWithSubjects(), validationEnabled); } public V1beta1PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects instance) { + V1beta1PolicyRulesWithSubjectsFluent fluent, V1beta1PolicyRulesWithSubjects instance) { this(fluent, instance, false); } public V1beta1PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects instance, - java.lang.Boolean validationEnabled) { + V1beta1PolicyRulesWithSubjectsFluent fluent, + V1beta1PolicyRulesWithSubjects instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withNonResourceRules(instance.getNonResourceRules()); @@ -57,14 +54,12 @@ public V1beta1PolicyRulesWithSubjectsBuilder( this.validationEnabled = validationEnabled; } - public V1beta1PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects instance) { + public V1beta1PolicyRulesWithSubjectsBuilder(V1beta1PolicyRulesWithSubjects instance) { this(instance, false); } public V1beta1PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects instance, - java.lang.Boolean validationEnabled) { + V1beta1PolicyRulesWithSubjects instance, Boolean validationEnabled) { this.fluent = this; this.withNonResourceRules(instance.getNonResourceRules()); @@ -75,10 +70,10 @@ public V1beta1PolicyRulesWithSubjectsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PolicyRulesWithSubjectsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects build() { + public V1beta1PolicyRulesWithSubjects build() { V1beta1PolicyRulesWithSubjects buildable = new V1beta1PolicyRulesWithSubjects(); buildable.setNonResourceRules(fluent.getNonResourceRules()); buildable.setResourceRules(fluent.getResourceRules()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java index 28f130effd..4e3a8977ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluent.java @@ -24,21 +24,17 @@ public interface V1beta1PolicyRulesWithSubjectsFluent< extends Fluent { public A addToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item); - public A setToNonResourceRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item); + public A setToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item); public A addToNonResourceRules( io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items); - public A addAllToNonResourceRules( - Collection items); + public A addAllToNonResourceRules(Collection items); public A removeFromNonResourceRules( io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items); - public A removeAllFromNonResourceRules( - java.util.Collection items); + public A removeAllFromNonResourceRules(Collection items); public A removeMatchingFromNonResourceRules( Predicate predicate); @@ -49,244 +45,165 @@ public A removeMatchingFromNonResourceRules( * @return The buildable object. */ @Deprecated - public List - getNonResourceRules(); + public List getNonResourceRules(); - public java.util.List - buildNonResourceRules(); + public List buildNonResourceRules(); - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule buildNonResourceRule( - java.lang.Integer index); + public V1beta1NonResourcePolicyRule buildNonResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule - buildFirstNonResourceRule(); + public V1beta1NonResourcePolicyRule buildFirstNonResourceRule(); - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule - buildLastNonResourceRule(); + public V1beta1NonResourcePolicyRule buildLastNonResourceRule(); - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule - buildMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> - predicate); + public V1beta1NonResourcePolicyRule buildMatchingNonResourceRule( + Predicate predicate); public Boolean hasMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> - predicate); + Predicate predicate); - public A withNonResourceRules( - java.util.List - nonResourceRules); + public A withNonResourceRules(List nonResourceRules); public A withNonResourceRules( io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... nonResourceRules); - public java.lang.Boolean hasNonResourceRules(); + public Boolean hasNonResourceRules(); public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRule(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - addNewNonResourceRuleLike( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - setNewNonResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editNonResourceRule(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editFirstNonResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editLastNonResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> - predicate); - - public A addToResourceRules(java.lang.Integer index, V1beta1ResourcePolicyRule item); - - public A setToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item); + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( + V1beta1NonResourcePolicyRule item); + + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( + Integer index, V1beta1NonResourcePolicyRule item); + + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( + Integer index); + + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule(); + + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editLastNonResourceRule(); + + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( + Predicate predicate); + + public A addToResourceRules(Integer index, V1beta1ResourcePolicyRule item); + + public A setToResourceRules(Integer index, V1beta1ResourcePolicyRule item); public A addToResourceRules( io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items); - public A addAllToResourceRules( - java.util.Collection items); + public A addAllToResourceRules(Collection items); public A removeFromResourceRules( io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items); - public A removeAllFromResourceRules( - java.util.Collection items); + public A removeAllFromResourceRules(Collection items); - public A removeMatchingFromResourceRules( - java.util.function.Predicate predicate); + public A removeMatchingFromResourceRules(Predicate predicate); /** * This method has been deprecated, please use method buildResourceRules instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getResourceRules(); + @Deprecated + public List getResourceRules(); - public java.util.List - buildResourceRules(); + public List buildResourceRules(); - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildResourceRule( - java.lang.Integer index); + public V1beta1ResourcePolicyRule buildResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildFirstResourceRule(); + public V1beta1ResourcePolicyRule buildFirstResourceRule(); - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildLastResourceRule(); + public V1beta1ResourcePolicyRule buildLastResourceRule(); - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate); + public V1beta1ResourcePolicyRule buildMatchingResourceRule( + Predicate predicate); - public java.lang.Boolean hasMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate); + public Boolean hasMatchingResourceRule(Predicate predicate); - public A withResourceRules( - java.util.List resourceRules); + public A withResourceRules(List resourceRules); public A withResourceRules( io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... resourceRules); - public java.lang.Boolean hasResourceRules(); + public Boolean hasResourceRules(); public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRule(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - addNewResourceRuleLike(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - setNewResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editResourceRule(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editFirstResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editLastResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate); - - public A addToSubjects(java.lang.Integer index, V1beta1Subject item); - - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Subject item); + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( + V1beta1ResourcePolicyRule item); + + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( + Integer index, V1beta1ResourcePolicyRule item); + + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( + Integer index); + + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule(); + + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editLastResourceRule(); + + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( + Predicate predicate); + + public A addToSubjects(Integer index, V1beta1Subject item); + + public A setToSubjects(Integer index, V1beta1Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items); - public A addAllToSubjects( - java.util.Collection items); + public A addAllToSubjects(Collection items); public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items); - public A removeAllFromSubjects( - java.util.Collection items); + public A removeAllFromSubjects(Collection items); - public A removeMatchingFromSubjects( - java.util.function.Predicate predicate); + public A removeMatchingFromSubjects(Predicate predicate); /** * This method has been deprecated, please use method buildSubjects instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSubjects(); + @Deprecated + public List getSubjects(); - public java.util.List buildSubjects(); + public List buildSubjects(); - public io.kubernetes.client.openapi.models.V1beta1Subject buildSubject(java.lang.Integer index); + public V1beta1Subject buildSubject(Integer index); - public io.kubernetes.client.openapi.models.V1beta1Subject buildFirstSubject(); + public V1beta1Subject buildFirstSubject(); - public io.kubernetes.client.openapi.models.V1beta1Subject buildLastSubject(); + public V1beta1Subject buildLastSubject(); - public io.kubernetes.client.openapi.models.V1beta1Subject buildMatchingSubject( - java.util.function.Predicate - predicate); + public V1beta1Subject buildMatchingSubject(Predicate predicate); - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate - predicate); + public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects( - java.util.List subjects); + public A withSubjects(List subjects); public A withSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... subjects); - public java.lang.Boolean hasSubjects(); + public Boolean hasSubjects(); public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1beta1Subject item); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( + V1beta1Subject item); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Subject item); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( + Integer index, V1beta1Subject item); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editSubject(java.lang.Integer index); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editFirstSubject(); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editLastSubject(); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editLastSubject(); - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( + Predicate predicate); public interface NonResourceRulesNested extends Nested, @@ -298,7 +215,7 @@ public interface NonResourceRulesNested } public interface ResourceRulesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1ResourcePolicyRuleFluent< V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested> { public N and(); @@ -307,7 +224,7 @@ public interface ResourceRulesNested } public interface SubjectsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1SubjectFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java index c88aa3d646..bffdc721d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjectsFluentImpl.java @@ -27,8 +27,7 @@ public class V1beta1PolicyRulesWithSubjectsFluentImpl< extends BaseFluent implements V1beta1PolicyRulesWithSubjectsFluent { public V1beta1PolicyRulesWithSubjectsFluentImpl() {} - public V1beta1PolicyRulesWithSubjectsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjects instance) { + public V1beta1PolicyRulesWithSubjectsFluentImpl(V1beta1PolicyRulesWithSubjects instance) { this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); @@ -37,17 +36,14 @@ public V1beta1PolicyRulesWithSubjectsFluentImpl( } private ArrayList nonResourceRules; - private java.util.ArrayList resourceRules; - private java.util.ArrayList subjects; + private ArrayList resourceRules; + private ArrayList subjects; public A addToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(item); + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); _visitables .get("nonResourceRules") .add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder); @@ -55,16 +51,11 @@ public A addToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item) return (A) this; } - public A setToNonResourceRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item) { + public A setToNonResourceRules(Integer index, V1beta1NonResourcePolicyRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(item); + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { _visitables.get("nonResourceRules").add(builder); } else { @@ -81,29 +72,22 @@ public A setToNonResourceRules( public A addToNonResourceRules( io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(item); + for (V1beta1NonResourcePolicyRule item : items) { + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } return (A) this; } - public A addAllToNonResourceRules( - Collection items) { + public A addAllToNonResourceRules(Collection items) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(item); + for (V1beta1NonResourcePolicyRule item : items) { + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } @@ -112,9 +96,8 @@ public A addAllToNonResourceRules( public A removeFromNonResourceRules( io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule... items) { - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(item); + for (V1beta1NonResourcePolicyRule item : items) { + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").remove(builder); if (this.nonResourceRules != null) { this.nonResourceRules.remove(builder); @@ -123,12 +106,9 @@ public A removeFromNonResourceRules( return (A) this; } - public A removeAllFromNonResourceRules( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(item); + public A removeAllFromNonResourceRules(Collection items) { + for (V1beta1NonResourcePolicyRule item : items) { + V1beta1NonResourcePolicyRuleBuilder builder = new V1beta1NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").remove(builder); if (this.nonResourceRules != null) { this.nonResourceRules.remove(builder); @@ -138,14 +118,12 @@ public A removeAllFromNonResourceRules( } public A removeMatchingFromNonResourceRules( - Predicate - predicate) { + Predicate predicate) { if (nonResourceRules == null) return (A) this; - final Iterator each = - nonResourceRules.iterator(); + final Iterator each = nonResourceRules.iterator(); final List visitables = _visitables.get("nonResourceRules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder = each.next(); + V1beta1NonResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -160,38 +138,29 @@ public A removeMatchingFromNonResourceRules( * @return The buildable object. */ @Deprecated - public List - getNonResourceRules() { + public List getNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public java.util.List - buildNonResourceRules() { + public List buildNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule buildNonResourceRule( - java.lang.Integer index) { + public V1beta1NonResourcePolicyRule buildNonResourceRule(Integer index) { return this.nonResourceRules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule - buildFirstNonResourceRule() { + public V1beta1NonResourcePolicyRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule - buildLastNonResourceRule() { + public V1beta1NonResourcePolicyRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule - buildMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder item : - nonResourceRules) { + public V1beta1NonResourcePolicyRule buildMatchingNonResourceRule( + Predicate predicate) { + for (V1beta1NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { return item.build(); } @@ -200,11 +169,8 @@ public io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule buildNon } public Boolean hasMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder item : - nonResourceRules) { + Predicate predicate) { + for (V1beta1NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { return true; } @@ -212,16 +178,13 @@ public Boolean hasMatchingNonResourceRule( return false; } - public A withNonResourceRules( - java.util.List - nonResourceRules) { + public A withNonResourceRules(List nonResourceRules) { if (this.nonResourceRules != null) { _visitables.get("nonResourceRules").removeAll(this.nonResourceRules); } if (nonResourceRules != null) { - this.nonResourceRules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item : - nonResourceRules) { + this.nonResourceRules = new ArrayList(); + for (V1beta1NonResourcePolicyRule item : nonResourceRules) { this.addToNonResourceRules(item); } } else { @@ -236,15 +199,14 @@ public A withNonResourceRules( this.nonResourceRules.clear(); } if (nonResourceRules != null) { - for (io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item : - nonResourceRules) { + for (V1beta1NonResourcePolicyRule item : nonResourceRules) { this.addToNonResourceRules(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceRules() { + public Boolean hasNonResourceRules() { return nonResourceRules != null && !nonResourceRules.isEmpty(); } @@ -252,59 +214,38 @@ public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonR return new V1beta1PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - addNewNonResourceRuleLike( - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item) { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( + V1beta1NonResourcePolicyRule item) { return new V1beta1PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - setNewNonResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item) { - return new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluentImpl - .NonResourceRulesNestedImpl(index, item); + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( + Integer index, V1beta1NonResourcePolicyRule item) { + return new V1beta1PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editNonResourceRule(java.lang.Integer index) { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( + Integer index) { if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editFirstNonResourceRule() { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule() { if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editLastNonResourceRule() { + public V1beta1PolicyRulesWithSubjectsFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder> - predicate) { + public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( + Predicate predicate) { int index = -1; for (int i = 0; i < nonResourceRules.size(); i++) { if (predicate.test(nonResourceRules.get(i))) { @@ -317,14 +258,11 @@ public V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonR return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public A addToResourceRules(java.lang.Integer index, V1beta1ResourcePolicyRule item) { + public A addToResourceRules(Integer index, V1beta1ResourcePolicyRule item) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(item); + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); _visitables .get("resourceRules") .add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder); @@ -332,15 +270,11 @@ public A addToResourceRules(java.lang.Integer index, V1beta1ResourcePolicyRule i return (A) this; } - public A setToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item) { + public A setToResourceRules(Integer index, V1beta1ResourcePolicyRule item) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(item); + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); if (index < 0 || index >= _visitables.get("resourceRules").size()) { _visitables.get("resourceRules").add(builder); } else { @@ -357,29 +291,22 @@ public A setToResourceRules( public A addToResourceRules( io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(item); + for (V1beta1ResourcePolicyRule item : items) { + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; } - public A addAllToResourceRules( - java.util.Collection items) { + public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(item); + for (V1beta1ResourcePolicyRule item : items) { + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } @@ -388,9 +315,8 @@ public A addAllToResourceRules( public A removeFromResourceRules( io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule... items) { - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(item); + for (V1beta1ResourcePolicyRule item : items) { + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").remove(builder); if (this.resourceRules != null) { this.resourceRules.remove(builder); @@ -399,11 +325,9 @@ public A removeFromResourceRules( return (A) this; } - public A removeAllFromResourceRules( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(item); + public A removeAllFromResourceRules(Collection items) { + for (V1beta1ResourcePolicyRule item : items) { + V1beta1ResourcePolicyRuleBuilder builder = new V1beta1ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").remove(builder); if (this.resourceRules != null) { this.resourceRules.remove(builder); @@ -412,16 +336,12 @@ public A removeAllFromResourceRules( return (A) this; } - public A removeMatchingFromResourceRules( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate) { + public A removeMatchingFromResourceRules(Predicate predicate) { if (resourceRules == null) return (A) this; - final Iterator each = - resourceRules.iterator(); + final Iterator each = resourceRules.iterator(); final List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder = each.next(); + V1beta1ResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -435,36 +355,30 @@ public A removeMatchingFromResourceRules( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getResourceRules() { + @Deprecated + public List getResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public java.util.List - buildResourceRules() { + public List buildResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildResourceRule( - java.lang.Integer index) { + public V1beta1ResourcePolicyRule buildResourceRule(Integer index) { return this.resourceRules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildFirstResourceRule() { + public V1beta1ResourcePolicyRule buildFirstResourceRule() { return this.resourceRules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildLastResourceRule() { + public V1beta1ResourcePolicyRule buildLastResourceRule() { return this.resourceRules.get(resourceRules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder item : - resourceRules) { + public V1beta1ResourcePolicyRule buildMatchingResourceRule( + Predicate predicate) { + for (V1beta1ResourcePolicyRuleBuilder item : resourceRules) { if (predicate.test(item)) { return item.build(); } @@ -472,12 +386,8 @@ public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule buildMatchi return null; } - public java.lang.Boolean hasMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder item : - resourceRules) { + public Boolean hasMatchingResourceRule(Predicate predicate) { + for (V1beta1ResourcePolicyRuleBuilder item : resourceRules) { if (predicate.test(item)) { return true; } @@ -485,14 +395,13 @@ public java.lang.Boolean hasMatchingResourceRule( return false; } - public A withResourceRules( - java.util.List resourceRules) { + public A withResourceRules(List resourceRules) { if (this.resourceRules != null) { _visitables.get("resourceRules").removeAll(this.resourceRules); } if (resourceRules != null) { - this.resourceRules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item : resourceRules) { + this.resourceRules = new ArrayList(); + for (V1beta1ResourcePolicyRule item : resourceRules) { this.addToResourceRules(item); } } else { @@ -507,14 +416,14 @@ public A withResourceRules( this.resourceRules.clear(); } if (resourceRules != null) { - for (io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item : resourceRules) { + for (V1beta1ResourcePolicyRule item : resourceRules) { this.addToResourceRules(item); } } return (A) this; } - public java.lang.Boolean hasResourceRules() { + public Boolean hasResourceRules() { return resourceRules != null && !resourceRules.isEmpty(); } @@ -522,58 +431,37 @@ public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourc return new V1beta1PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - addNewResourceRuleLike(io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item) { - return new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluentImpl - .ResourceRulesNestedImpl(-1, item); + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( + V1beta1ResourcePolicyRule item) { + return new V1beta1PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - setNewResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule item) { - return new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluentImpl - .ResourceRulesNestedImpl(index, item); + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( + Integer index, V1beta1ResourcePolicyRule item) { + return new V1beta1PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editResourceRule(java.lang.Integer index) { + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( + Integer index) { if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editFirstResourceRule() { + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule() { if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); return setNewResourceRuleLike(0, buildResourceRule(0)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editLastResourceRule() { + public V1beta1PolicyRulesWithSubjectsFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> - predicate) { + public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( + Predicate predicate) { int index = -1; for (int i = 0; i < resourceRules.size(); i++) { if (predicate.test(resourceRules.get(i))) { @@ -585,13 +473,11 @@ public V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourc return setNewResourceRuleLike(index, buildResourceRule(index)); } - public A addToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Subject item) { + public A addToSubjects(Integer index, V1beta1Subject item) { if (this.subjects == null) { - this.subjects = new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(item); + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); _visitables .get("subjects") .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); @@ -599,14 +485,11 @@ public A addToSubjects( return (A) this; } - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Subject item) { + public A setToSubjects(Integer index, V1beta1Subject item) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(item); + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { @@ -622,27 +505,22 @@ public A setToSubjects( public A addToSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1Subject item : items) { - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(item); + for (V1beta1Subject item : items) { + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; } - public A addAllToSubjects( - java.util.Collection items) { + public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1Subject item : items) { - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(item); + for (V1beta1Subject item : items) { + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } @@ -650,9 +528,8 @@ public A addAllToSubjects( } public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... items) { - for (io.kubernetes.client.openapi.models.V1beta1Subject item : items) { - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(item); + for (V1beta1Subject item : items) { + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); _visitables.get("subjects").remove(builder); if (this.subjects != null) { this.subjects.remove(builder); @@ -661,11 +538,9 @@ public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta1Subject.. return (A) this; } - public A removeAllFromSubjects( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1Subject item : items) { - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(item); + public A removeAllFromSubjects(Collection items) { + for (V1beta1Subject item : items) { + V1beta1SubjectBuilder builder = new V1beta1SubjectBuilder(item); _visitables.get("subjects").remove(builder); if (this.subjects != null) { this.subjects.remove(builder); @@ -674,15 +549,12 @@ public A removeAllFromSubjects( return (A) this; } - public A removeMatchingFromSubjects( - java.util.function.Predicate - predicate) { + public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; - final Iterator each = - subjects.iterator(); + final Iterator each = subjects.iterator(); final List visitables = _visitables.get("subjects"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder = each.next(); + V1beta1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -696,31 +568,29 @@ public A removeMatchingFromSubjects( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSubjects() { + @Deprecated + public List getSubjects() { return subjects != null ? build(subjects) : null; } - public java.util.List buildSubjects() { + public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public io.kubernetes.client.openapi.models.V1beta1Subject buildSubject(java.lang.Integer index) { + public V1beta1Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1Subject buildFirstSubject() { + public V1beta1Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1Subject buildLastSubject() { + public V1beta1Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1Subject buildMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1SubjectBuilder item : subjects) { + public V1beta1Subject buildMatchingSubject(Predicate predicate) { + for (V1beta1SubjectBuilder item : subjects) { if (predicate.test(item)) { return item.build(); } @@ -728,10 +598,8 @@ public io.kubernetes.client.openapi.models.V1beta1Subject buildMatchingSubject( return null; } - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1SubjectBuilder item : subjects) { + public Boolean hasMatchingSubject(Predicate predicate) { + for (V1beta1SubjectBuilder item : subjects) { if (predicate.test(item)) { return true; } @@ -739,14 +607,13 @@ public java.lang.Boolean hasMatchingSubject( return false; } - public A withSubjects( - java.util.List subjects) { + public A withSubjects(List subjects) { if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects); } if (subjects != null) { - this.subjects = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1Subject item : subjects) { + this.subjects = new ArrayList(); + for (V1beta1Subject item : subjects) { this.addToSubjects(item); } } else { @@ -760,14 +627,14 @@ public A withSubjects(io.kubernetes.client.openapi.models.V1beta1Subject... subj this.subjects.clear(); } if (subjects != null) { - for (io.kubernetes.client.openapi.models.V1beta1Subject item : subjects) { + for (V1beta1Subject item : subjects) { this.addToSubjects(item); } } return (A) this; } - public java.lang.Boolean hasSubjects() { + public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } @@ -775,44 +642,36 @@ public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject() { return new V1beta1PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1beta1Subject item) { - return new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluentImpl - .SubjectsNestedImpl(-1, item); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( + V1beta1Subject item) { + return new V1beta1PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1Subject item) { - return new io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluentImpl - .SubjectsNestedImpl(index, item); + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( + Integer index, V1beta1Subject item) { + return new V1beta1PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editSubject(java.lang.Integer index) { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index) { if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editFirstSubject() { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject() { if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editLastSubject() { + public V1beta1PolicyRulesWithSubjectsFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate) { + public V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( + Predicate predicate) { int index = -1; for (int i = 0; i < subjects.size(); i++) { if (predicate.test(subjects.get(i))) { @@ -864,25 +723,19 @@ public String toString() { class NonResourceRulesNestedImpl extends V1beta1NonResourcePolicyRuleFluentImpl< V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested> - implements io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - N>, - Nested { - NonResourceRulesNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRule item) { + implements V1beta1PolicyRulesWithSubjectsFluent.NonResourceRulesNested, Nested { + NonResourceRulesNestedImpl(Integer index, V1beta1NonResourcePolicyRule item) { this.index = index; this.builder = new V1beta1NonResourcePolicyRuleBuilder(this, item); } NonResourceRulesNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder(this); + this.builder = new V1beta1NonResourcePolicyRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1NonResourcePolicyRuleBuilder builder; - java.lang.Integer index; + V1beta1NonResourcePolicyRuleBuilder builder; + Integer index; public N and() { return (N) @@ -898,22 +751,19 @@ public N endNonResourceRule() { class ResourceRulesNestedImpl extends V1beta1ResourcePolicyRuleFluentImpl< V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested> - implements io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - N>, - io.kubernetes.client.fluent.Nested { - ResourceRulesNestedImpl(java.lang.Integer index, V1beta1ResourcePolicyRule item) { + implements V1beta1PolicyRulesWithSubjectsFluent.ResourceRulesNested, Nested { + ResourceRulesNestedImpl(Integer index, V1beta1ResourcePolicyRule item) { this.index = index; this.builder = new V1beta1ResourcePolicyRuleBuilder(this, item); } ResourceRulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder(this); + this.builder = new V1beta1ResourcePolicyRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder builder; - java.lang.Integer index; + V1beta1ResourcePolicyRuleBuilder builder; + Integer index; public N and() { return (N) @@ -927,22 +777,19 @@ public N endResourceRule() { class SubjectsNestedImpl extends V1beta1SubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PolicyRulesWithSubjectsFluent - .SubjectsNested< - N>, - io.kubernetes.client.fluent.Nested { - SubjectsNestedImpl(java.lang.Integer index, V1beta1Subject item) { + implements V1beta1PolicyRulesWithSubjectsFluent.SubjectsNested, Nested { + SubjectsNestedImpl(Integer index, V1beta1Subject item) { this.index = index; this.builder = new V1beta1SubjectBuilder(this, item); } SubjectsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1SubjectBuilder(this); + this.builder = new V1beta1SubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1SubjectBuilder builder; - java.lang.Integer index; + V1beta1SubjectBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java index ed2543234b..31937b81d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationBuilder.java @@ -17,8 +17,7 @@ public class V1beta1PriorityLevelConfigurationBuilder extends V1beta1PriorityLevelConfigurationFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration, - V1beta1PriorityLevelConfigurationBuilder> { + V1beta1PriorityLevelConfiguration, V1beta1PriorityLevelConfigurationBuilder> { public V1beta1PriorityLevelConfigurationBuilder() { this(false); } @@ -28,26 +27,25 @@ public V1beta1PriorityLevelConfigurationBuilder(Boolean validationEnabled) { } public V1beta1PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent fluent) { + V1beta1PriorityLevelConfigurationFluent fluent) { this(fluent, false); } public V1beta1PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfiguration(), validationEnabled); } public V1beta1PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration instance) { + V1beta1PriorityLevelConfigurationFluent fluent, + V1beta1PriorityLevelConfiguration instance) { this(fluent, instance, false); } public V1beta1PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationFluent fluent, + V1beta1PriorityLevelConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,14 +60,12 @@ public V1beta1PriorityLevelConfigurationBuilder( this.validationEnabled = validationEnabled; } - public V1beta1PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration instance) { + public V1beta1PriorityLevelConfigurationBuilder(V1beta1PriorityLevelConfiguration instance) { this(instance, false); } public V1beta1PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -84,10 +80,10 @@ public V1beta1PriorityLevelConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PriorityLevelConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration build() { + public V1beta1PriorityLevelConfiguration build() { V1beta1PriorityLevelConfiguration buildable = new V1beta1PriorityLevelConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java index 74410c1117..aeb70600b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionBuilder.java @@ -18,7 +18,7 @@ public class V1beta1PriorityLevelConfigurationConditionBuilder extends V1beta1PriorityLevelConfigurationConditionFluentImpl< V1beta1PriorityLevelConfigurationConditionBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition, + V1beta1PriorityLevelConfigurationCondition, V1beta1PriorityLevelConfigurationConditionBuilder> { public V1beta1PriorityLevelConfigurationConditionBuilder() { this(false); @@ -34,24 +34,20 @@ public V1beta1PriorityLevelConfigurationConditionBuilder( } public V1beta1PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionFluent - fluent, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationCondition(), validationEnabled); } public V1beta1PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionFluent - fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition instance) { + V1beta1PriorityLevelConfigurationConditionFluent fluent, + V1beta1PriorityLevelConfigurationCondition instance) { this(fluent, instance, false); } public V1beta1PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionFluent - fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationConditionFluent fluent, + V1beta1PriorityLevelConfigurationCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -67,13 +63,12 @@ public V1beta1PriorityLevelConfigurationConditionBuilder( } public V1beta1PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition instance) { + V1beta1PriorityLevelConfigurationCondition instance) { this(instance, false); } public V1beta1PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -88,10 +83,10 @@ public V1beta1PriorityLevelConfigurationConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PriorityLevelConfigurationConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition build() { + public V1beta1PriorityLevelConfigurationCondition build() { V1beta1PriorityLevelConfigurationCondition buildable = new V1beta1PriorityLevelConfigurationCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java index fc430168b6..72236b5411 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluent.java @@ -21,31 +21,31 @@ public interface V1beta1PriorityLevelConfigurationConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java index 90df5a43c2..b4bfce9646 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationConditionFluentImpl.java @@ -23,7 +23,7 @@ public class V1beta1PriorityLevelConfigurationConditionFluentImpl< public V1beta1PriorityLevelConfigurationConditionFluentImpl() {} public V1beta1PriorityLevelConfigurationConditionFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition instance) { + V1beta1PriorityLevelConfigurationCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -37,15 +37,15 @@ public V1beta1PriorityLevelConfigurationConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -54,55 +54,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -126,7 +126,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java index dc459aced1..7b461c9c90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluent.java @@ -21,15 +21,15 @@ public interface V1beta1PriorityLevelConfigurationFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -39,90 +39,75 @@ public interface V1beta1PriorityLevelConfigurationFluent< @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - editMetadata(); + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadata(); + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1PriorityLevelConfigurationSpec getSpec(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec buildSpec(); + public V1beta1PriorityLevelConfigurationSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec spec); + public A withSpec(V1beta1PriorityLevelConfigurationSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec item); + public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( + V1beta1PriorityLevelConfigurationSpec item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - editSpec(); + public V1beta1PriorityLevelConfigurationFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - editOrNewSpec(); + public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec item); + public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( + V1beta1PriorityLevelConfigurationSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1PriorityLevelConfigurationStatus getStatus(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus buildStatus(); + public V1beta1PriorityLevelConfigurationStatus buildStatus(); - public A withStatus( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus status); + public A withStatus(V1beta1PriorityLevelConfigurationStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus item); + public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( + V1beta1PriorityLevelConfigurationStatus item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - editStatus(); + public V1beta1PriorityLevelConfigurationFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - editOrNewStatus(); + public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus item); + public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( + V1beta1PriorityLevelConfigurationStatus item); public interface MetadataNested extends Nested, @@ -133,7 +118,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1PriorityLevelConfigurationSpecFluent< V1beta1PriorityLevelConfigurationFluent.SpecNested> { public N and(); @@ -142,7 +127,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1PriorityLevelConfigurationStatusFluent< V1beta1PriorityLevelConfigurationFluent.StatusNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java index 8ca8ff57a3..7740db8c7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationFluentImpl.java @@ -22,8 +22,7 @@ public class V1beta1PriorityLevelConfigurationFluentImpl< extends BaseFluent implements V1beta1PriorityLevelConfigurationFluent { public V1beta1PriorityLevelConfigurationFluentImpl() {} - public V1beta1PriorityLevelConfigurationFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration instance) { + public V1beta1PriorityLevelConfigurationFluentImpl(V1beta1PriorityLevelConfiguration instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -36,16 +35,16 @@ public V1beta1PriorityLevelConfigurationFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1beta1PriorityLevelConfigurationSpecBuilder spec; private V1beta1PriorityLevelConfigurationStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,16 +53,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -73,24 +72,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -98,30 +100,22 @@ public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadata return new V1beta1PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V1beta1PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - editMetadata() { + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadata() { + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta1PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -130,26 +124,28 @@ public V1beta1PriorityLevelConfigurationFluent.MetadataNested withNewMetadata * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec getSpec() { + @Deprecated + public V1beta1PriorityLevelConfigurationSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec buildSpec() { + public V1beta1PriorityLevelConfigurationSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec spec) { + public A withSpec(V1beta1PriorityLevelConfigurationSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1beta1PriorityLevelConfigurationSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -157,30 +153,22 @@ public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpec() { return new V1beta1PriorityLevelConfigurationFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec item) { - return new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluentImpl - .SpecNestedImpl(item); + public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( + V1beta1PriorityLevelConfigurationSpec item) { + return new V1beta1PriorityLevelConfigurationFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - editSpec() { + public V1beta1PriorityLevelConfigurationFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - editOrNewSpec() { + public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1beta1PriorityLevelConfigurationSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec item) { + public V1beta1PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( + V1beta1PriorityLevelConfigurationSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -189,28 +177,28 @@ public V1beta1PriorityLevelConfigurationFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1PriorityLevelConfigurationStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus buildStatus() { + public V1beta1PriorityLevelConfigurationStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus status) { + public A withStatus(V1beta1PriorityLevelConfigurationStatus status) { _visitables.get("status").remove(this.status); if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusBuilder( - status); + this.status = new V1beta1PriorityLevelConfigurationStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -218,31 +206,24 @@ public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatus() { return new V1beta1PriorityLevelConfigurationFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus item) { - return new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluentImpl - .StatusNestedImpl(item); + public V1beta1PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( + V1beta1PriorityLevelConfigurationStatus item) { + return new V1beta1PriorityLevelConfigurationFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - editStatus() { + public V1beta1PriorityLevelConfigurationFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - editOrNewStatus() { + public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatus() { return withNewStatusLike( getStatus() != null ? getStatus() - : new io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationStatusBuilder() - .build()); + : new V1beta1PriorityLevelConfigurationStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus item) { + public V1beta1PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( + V1beta1PriorityLevelConfigurationStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -264,7 +245,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -293,19 +274,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent - .MetadataNested< - N>, - Nested { + implements V1beta1PriorityLevelConfigurationFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1beta1PriorityLevelConfigurationFluentImpl.this.withMetadata(builder.build()); @@ -319,21 +297,16 @@ public N endMetadata() { class SpecNestedImpl extends V1beta1PriorityLevelConfigurationSpecFluentImpl< V1beta1PriorityLevelConfigurationFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent - .SpecNested< - N>, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec item) { + implements V1beta1PriorityLevelConfigurationFluent.SpecNested, Nested { + SpecNestedImpl(V1beta1PriorityLevelConfigurationSpec item) { this.builder = new V1beta1PriorityLevelConfigurationSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecBuilder( - this); + this.builder = new V1beta1PriorityLevelConfigurationSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecBuilder builder; + V1beta1PriorityLevelConfigurationSpecBuilder builder; public N and() { return (N) V1beta1PriorityLevelConfigurationFluentImpl.this.withSpec(builder.build()); @@ -347,21 +320,16 @@ public N endSpec() { class StatusNestedImpl extends V1beta1PriorityLevelConfigurationStatusFluentImpl< V1beta1PriorityLevelConfigurationFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationFluent - .StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta1PriorityLevelConfigurationFluent.StatusNested, Nested { StatusNestedImpl(V1beta1PriorityLevelConfigurationStatus item) { this.builder = new V1beta1PriorityLevelConfigurationStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusBuilder( - this); + this.builder = new V1beta1PriorityLevelConfigurationStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusBuilder builder; + V1beta1PriorityLevelConfigurationStatusBuilder builder; public N and() { return (N) V1beta1PriorityLevelConfigurationFluentImpl.this.withStatus(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java index be8b185e06..d0e55cb8a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListBuilder.java @@ -18,8 +18,7 @@ public class V1beta1PriorityLevelConfigurationListBuilder extends V1beta1PriorityLevelConfigurationListFluentImpl< V1beta1PriorityLevelConfigurationListBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList, - V1beta1PriorityLevelConfigurationListBuilder> { + V1beta1PriorityLevelConfigurationList, V1beta1PriorityLevelConfigurationListBuilder> { public V1beta1PriorityLevelConfigurationListBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta1PriorityLevelConfigurationListBuilder( } public V1beta1PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationListFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationList(), validationEnabled); } public V1beta1PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList instance) { + V1beta1PriorityLevelConfigurationListFluent fluent, + V1beta1PriorityLevelConfigurationList instance) { this(fluent, instance, false); } public V1beta1PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationListFluent fluent, + V1beta1PriorityLevelConfigurationList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,13 +60,12 @@ public V1beta1PriorityLevelConfigurationListBuilder( } public V1beta1PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList instance) { + V1beta1PriorityLevelConfigurationList instance) { this(instance, false); } public V1beta1PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +78,10 @@ public V1beta1PriorityLevelConfigurationListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PriorityLevelConfigurationListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList build() { + public V1beta1PriorityLevelConfigurationList build() { V1beta1PriorityLevelConfigurationList buildable = new V1beta1PriorityLevelConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java index 974f4e2688..465bcecb9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluent.java @@ -24,29 +24,23 @@ public interface V1beta1PriorityLevelConfigurationListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item); + public A addToItems(Integer index, V1beta1PriorityLevelConfiguration item); - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item); + public A setToItems(Integer index, V1beta1PriorityLevelConfiguration item); public A addToItems( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); - public A removeAllFromItems( - java.util.Collection - items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -56,112 +50,76 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildItem( - java.lang.Integer index); + public V1beta1PriorityLevelConfiguration buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildFirstItem(); + public V1beta1PriorityLevelConfiguration buildFirstItem(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildLastItem(); + public V1beta1PriorityLevelConfiguration buildLastItem(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder> - predicate); + public V1beta1PriorityLevelConfiguration buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItem(); public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item); + V1beta1PriorityLevelConfiguration item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1beta1PriorityLevelConfiguration item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editItem(java.lang.Integer index); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editFirstItem(); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editLastItem(); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder> - predicate); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editMetadata(); + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata(); + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -173,7 +131,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ListMetaFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java index 0b6d628429..aad58e4c55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationListFluentImpl.java @@ -28,7 +28,7 @@ public class V1beta1PriorityLevelConfigurationListFluentImpl< public V1beta1PriorityLevelConfigurationListFluentImpl() {} public V1beta1PriorityLevelConfigurationListFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationList instance) { + V1beta1PriorityLevelConfigurationList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -40,14 +40,14 @@ public V1beta1PriorityLevelConfigurationListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -56,30 +56,23 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item) { + public A addToItems(Integer index, V1beta1PriorityLevelConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(item); + V1beta1PriorityLevelConfigurationBuilder builder = + new V1beta1PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item) { + public A setToItems(Integer index, V1beta1PriorityLevelConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(item); + V1beta1PriorityLevelConfigurationBuilder builder = + new V1beta1PriorityLevelConfigurationBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -96,29 +89,24 @@ public A setToItems( public A addToItems( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(item); + for (V1beta1PriorityLevelConfiguration item : items) { + V1beta1PriorityLevelConfigurationBuilder builder = + new V1beta1PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addAllToItems( - Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(item); + for (V1beta1PriorityLevelConfiguration item : items) { + V1beta1PriorityLevelConfigurationBuilder builder = + new V1beta1PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -127,9 +115,9 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration... items) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(item); + for (V1beta1PriorityLevelConfiguration item : items) { + V1beta1PriorityLevelConfigurationBuilder builder = + new V1beta1PriorityLevelConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -138,12 +126,10 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1beta1PriorityLevelConfiguration item : items) { + V1beta1PriorityLevelConfigurationBuilder builder = + new V1beta1PriorityLevelConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -152,16 +138,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate - predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator - each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder = - each.next(); + V1beta1PriorityLevelConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -176,34 +158,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildItem( - java.lang.Integer index) { + public V1beta1PriorityLevelConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildFirstItem() { + public V1beta1PriorityLevelConfiguration buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildLastItem() { + public V1beta1PriorityLevelConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder item : - items) { + public V1beta1PriorityLevelConfiguration buildMatchingItem( + Predicate predicate) { + for (V1beta1PriorityLevelConfigurationBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -211,12 +188,8 @@ public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration bui return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder item : - items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1beta1PriorityLevelConfigurationBuilder item : items) { if (predicate.test(item)) { return true; } @@ -224,14 +197,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item : items) { + this.items = new ArrayList(); + for (V1beta1PriorityLevelConfiguration item : items) { this.addToItems(item); } } else { @@ -246,14 +218,14 @@ public A withItems( this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item : items) { + for (V1beta1PriorityLevelConfiguration item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -262,52 +234,33 @@ public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItem() { } public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item) { + V1beta1PriorityLevelConfiguration item) { return new V1beta1PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item) { - return new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluentImpl - .ItemsNestedImpl(index, item); + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1beta1PriorityLevelConfiguration item) { + return new V1beta1PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editItem(java.lang.Integer index) { + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editFirstItem() { + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editLastItem() { + public V1beta1PriorityLevelConfigurationListFluent.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 io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder> - predicate) { + public V1beta1PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -319,16 +272,16 @@ public V1beta1PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -337,25 +290,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -363,35 +319,22 @@ public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMeta return new V1beta1PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluentImpl - .MetadataNestedImpl(item); + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1beta1PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editMetadata() { + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata() { + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1beta1PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -412,7 +355,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -438,25 +381,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1beta1PriorityLevelConfigurationFluentImpl< V1beta1PriorityLevelConfigurationListFluent.ItemsNested> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfiguration item) { + implements V1beta1PriorityLevelConfigurationListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1beta1PriorityLevelConfiguration item) { this.index = index; this.builder = new V1beta1PriorityLevelConfigurationBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder(this); + this.builder = new V1beta1PriorityLevelConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationBuilder builder; - java.lang.Integer index; + V1beta1PriorityLevelConfigurationBuilder builder; + Integer index; public N and() { return (N) @@ -470,19 +407,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta1PriorityLevelConfigurationListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1beta1PriorityLevelConfigurationListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java index b9f6b7c3c2..ca09e7b646 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceBuilder.java @@ -19,7 +19,7 @@ public class V1beta1PriorityLevelConfigurationReferenceBuilder V1beta1PriorityLevelConfigurationReferenceBuilder> implements VisitableBuilder< V1beta1PriorityLevelConfigurationReference, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceBuilder> { + V1beta1PriorityLevelConfigurationReferenceBuilder> { public V1beta1PriorityLevelConfigurationReferenceBuilder() { this(false); } @@ -34,24 +34,20 @@ public V1beta1PriorityLevelConfigurationReferenceBuilder( } public V1beta1PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceFluent - fluent, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationReference(), validationEnabled); } public V1beta1PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceFluent - fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference instance) { + V1beta1PriorityLevelConfigurationReferenceFluent fluent, + V1beta1PriorityLevelConfigurationReference instance) { this(fluent, instance, false); } public V1beta1PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceFluent - fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationReferenceFluent fluent, + V1beta1PriorityLevelConfigurationReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -59,23 +55,22 @@ public V1beta1PriorityLevelConfigurationReferenceBuilder( } public V1beta1PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference instance) { + V1beta1PriorityLevelConfigurationReference instance) { this(instance, false); } public V1beta1PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PriorityLevelConfigurationReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference build() { + public V1beta1PriorityLevelConfigurationReference build() { V1beta1PriorityLevelConfigurationReference buildable = new V1beta1PriorityLevelConfigurationReference(); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java index 09e51737d2..3e131d26e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluent.java @@ -20,7 +20,7 @@ public interface V1beta1PriorityLevelConfigurationReferenceFluent< extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java index 0fdd132256..3c6ee258cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReferenceFluentImpl.java @@ -22,17 +22,17 @@ public class V1beta1PriorityLevelConfigurationReferenceFluentImpl< public V1beta1PriorityLevelConfigurationReferenceFluentImpl() {} public V1beta1PriorityLevelConfigurationReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationReference instance) { + V1beta1PriorityLevelConfigurationReference instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -54,7 +54,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java index 2567065259..03a678d129 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecBuilder.java @@ -18,8 +18,7 @@ public class V1beta1PriorityLevelConfigurationSpecBuilder extends V1beta1PriorityLevelConfigurationSpecFluentImpl< V1beta1PriorityLevelConfigurationSpecBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec, - V1beta1PriorityLevelConfigurationSpecBuilder> { + V1beta1PriorityLevelConfigurationSpec, V1beta1PriorityLevelConfigurationSpecBuilder> { public V1beta1PriorityLevelConfigurationSpecBuilder() { this(false); } @@ -29,26 +28,25 @@ public V1beta1PriorityLevelConfigurationSpecBuilder(Boolean validationEnabled) { } public V1beta1PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent fluent) { + V1beta1PriorityLevelConfigurationSpecFluent fluent) { this(fluent, false); } public V1beta1PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationSpec(), validationEnabled); } public V1beta1PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec instance) { + V1beta1PriorityLevelConfigurationSpecFluent fluent, + V1beta1PriorityLevelConfigurationSpec instance) { this(fluent, instance, false); } public V1beta1PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationSpecFluent fluent, + V1beta1PriorityLevelConfigurationSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLimited(instance.getLimited()); @@ -58,13 +56,12 @@ public V1beta1PriorityLevelConfigurationSpecBuilder( } public V1beta1PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec instance) { + V1beta1PriorityLevelConfigurationSpec instance) { this(instance, false); } public V1beta1PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationSpec instance, Boolean validationEnabled) { this.fluent = this; this.withLimited(instance.getLimited()); @@ -73,10 +70,10 @@ public V1beta1PriorityLevelConfigurationSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PriorityLevelConfigurationSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec build() { + public V1beta1PriorityLevelConfigurationSpec build() { V1beta1PriorityLevelConfigurationSpec buildable = new V1beta1PriorityLevelConfigurationSpec(); buildable.setLimited(fluent.getLimited()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java index 43d4c05a2f..ecb25223c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluent.java @@ -28,43 +28,29 @@ public interface V1beta1PriorityLevelConfigurationSpecFluent< @Deprecated public V1beta1LimitedPriorityLevelConfiguration getLimited(); - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration - buildLimited(); + public V1beta1LimitedPriorityLevelConfiguration buildLimited(); - public A withLimited( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration limited); + public A withLimited(V1beta1LimitedPriorityLevelConfiguration limited); public Boolean hasLimited(); public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimited(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - withNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration item); + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( + V1beta1LimitedPriorityLevelConfiguration item); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editLimited(); + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editLimited(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimited(); + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration item); + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( + V1beta1LimitedPriorityLevelConfiguration item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface LimitedNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java index 92e1af83a2..ba3859f699 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpecFluentImpl.java @@ -23,7 +23,7 @@ public class V1beta1PriorityLevelConfigurationSpecFluentImpl< public V1beta1PriorityLevelConfigurationSpecFluentImpl() {} public V1beta1PriorityLevelConfigurationSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpec instance) { + V1beta1PriorityLevelConfigurationSpec instance) { this.withLimited(instance.getLimited()); this.withType(instance.getType()); @@ -38,21 +38,22 @@ public V1beta1PriorityLevelConfigurationSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration getLimited() { + public V1beta1LimitedPriorityLevelConfiguration getLimited() { return this.limited != null ? this.limited.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration - buildLimited() { + public V1beta1LimitedPriorityLevelConfiguration buildLimited() { return this.limited != null ? this.limited.build() : null; } - public A withLimited( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration limited) { + public A withLimited(V1beta1LimitedPriorityLevelConfiguration limited) { _visitables.get("limited").remove(this.limited); if (limited != null) { this.limited = new V1beta1LimitedPriorityLevelConfigurationBuilder(limited); _visitables.get("limited").add(this.limited); + } else { + this.limited = null; + _visitables.get("limited").remove(this.limited); } return (A) this; } @@ -65,51 +66,37 @@ public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimit return new V1beta1PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - withNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration item) { + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( + V1beta1LimitedPriorityLevelConfiguration item) { return new V1beta1PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editLimited() { + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editLimited() { return withNewLimitedLike(getLimited()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimited() { + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited() { return withNewLimitedLike( getLimited() != null ? getLimited() - : new io.kubernetes.client.openapi.models - .V1beta1LimitedPriorityLevelConfigurationBuilder() - .build()); + : new V1beta1LimitedPriorityLevelConfigurationBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration item) { + public V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( + V1beta1LimitedPriorityLevelConfiguration item) { return withNewLimitedLike(getLimited() != null ? getLimited() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -127,7 +114,7 @@ public int hashCode() { return java.util.Objects.hash(limited, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (limited != null) { @@ -145,22 +132,16 @@ public java.lang.String toString() { class LimitedNestedImpl extends V1beta1LimitedPriorityLevelConfigurationFluentImpl< V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationSpecFluent - .LimitedNested< - N>, - Nested { - LimitedNestedImpl( - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfiguration item) { + implements V1beta1PriorityLevelConfigurationSpecFluent.LimitedNested, Nested { + LimitedNestedImpl(V1beta1LimitedPriorityLevelConfiguration item) { this.builder = new V1beta1LimitedPriorityLevelConfigurationBuilder(this, item); } LimitedNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationBuilder( - this); + this.builder = new V1beta1LimitedPriorityLevelConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1LimitedPriorityLevelConfigurationBuilder builder; + V1beta1LimitedPriorityLevelConfigurationBuilder builder; public N and() { return (N) V1beta1PriorityLevelConfigurationSpecFluentImpl.this.withLimited(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java index dd5cc5021e..c63fbb22fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusBuilder.java @@ -18,8 +18,7 @@ public class V1beta1PriorityLevelConfigurationStatusBuilder extends V1beta1PriorityLevelConfigurationStatusFluentImpl< V1beta1PriorityLevelConfigurationStatusBuilder> implements VisitableBuilder< - V1beta1PriorityLevelConfigurationStatus, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusBuilder> { + V1beta1PriorityLevelConfigurationStatus, V1beta1PriorityLevelConfigurationStatusBuilder> { public V1beta1PriorityLevelConfigurationStatusBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta1PriorityLevelConfigurationStatusBuilder( } public V1beta1PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1PriorityLevelConfigurationStatus(), validationEnabled); } public V1beta1PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus instance) { + V1beta1PriorityLevelConfigurationStatusFluent fluent, + V1beta1PriorityLevelConfigurationStatus instance) { this(fluent, instance, false); } public V1beta1PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationStatusFluent fluent, + V1beta1PriorityLevelConfigurationStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -56,23 +54,22 @@ public V1beta1PriorityLevelConfigurationStatusBuilder( } public V1beta1PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus instance) { + V1beta1PriorityLevelConfigurationStatus instance) { this(instance, false); } public V1beta1PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus instance, - java.lang.Boolean validationEnabled) { + V1beta1PriorityLevelConfigurationStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1PriorityLevelConfigurationStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus build() { + public V1beta1PriorityLevelConfigurationStatus build() { V1beta1PriorityLevelConfigurationStatus buildable = new V1beta1PriorityLevelConfigurationStatus(); buildable.setConditions(fluent.getConditions()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java index 18dd68fe0d..8401d818f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluent.java @@ -24,24 +24,17 @@ public interface V1beta1PriorityLevelConfigurationStatusFluent< extends Fluent { public A addToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item); + public A setToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items); - public A addAllToConditions( - Collection - items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items); - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition> - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -52,81 +45,46 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions(); + public List getConditions(); - public java.util.List< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition> - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildCondition(java.lang.Integer index); + public V1beta1PriorityLevelConfigurationCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildFirstCondition(); + public V1beta1PriorityLevelConfigurationCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildLastCondition(); + public V1beta1PriorityLevelConfigurationCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder> - predicate); + public V1beta1PriorityLevelConfigurationCondition buildMatchingCondition( + Predicate predicate); public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder> - predicate); + Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item); - - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item); - - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder> - predicate); + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( + V1beta1PriorityLevelConfigurationCondition item); + + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta1PriorityLevelConfigurationCondition item); + + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( + Integer index); + + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition(); + + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editLastCondition(); + + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java index a3811e18c4..4f276d5220 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatusFluentImpl.java @@ -28,7 +28,7 @@ public class V1beta1PriorityLevelConfigurationStatusFluentImpl< public V1beta1PriorityLevelConfigurationStatusFluentImpl() {} public V1beta1PriorityLevelConfigurationStatusFluentImpl( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatus instance) { + V1beta1PriorityLevelConfigurationStatus instance) { this.withConditions(instance.getConditions()); } @@ -36,14 +36,10 @@ public V1beta1PriorityLevelConfigurationStatusFluentImpl( public A addToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder( - item); + V1beta1PriorityLevelConfigurationConditionBuilder builder = + new V1beta1PriorityLevelConfigurationConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -51,18 +47,12 @@ public A addToConditions(Integer index, V1beta1PriorityLevelConfigurationConditi return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item) { + public A setToConditions(Integer index, V1beta1PriorityLevelConfigurationCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder( - item); + V1beta1PriorityLevelConfigurationConditionBuilder builder = + new V1beta1PriorityLevelConfigurationConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -79,38 +69,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder(item); + for (V1beta1PriorityLevelConfigurationCondition item : items) { + V1beta1PriorityLevelConfigurationConditionBuilder builder = + new V1beta1PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - Collection - items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder(item); + for (V1beta1PriorityLevelConfigurationCondition item : items) { + V1beta1PriorityLevelConfigurationConditionBuilder builder = + new V1beta1PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -119,12 +95,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition... items) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder(item); + for (V1beta1PriorityLevelConfigurationCondition item : items) { + V1beta1PriorityLevelConfigurationConditionBuilder builder = + new V1beta1PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -133,16 +106,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition> - items) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1beta1PriorityLevelConfigurationCondition item : items) { + V1beta1PriorityLevelConfigurationConditionBuilder builder = + new V1beta1PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -152,17 +119,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder> - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder> - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - builder = each.next(); + V1beta1PriorityLevelConfigurationConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -177,40 +139,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition> - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildCondition(java.lang.Integer index) { + public V1beta1PriorityLevelConfigurationCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildFirstCondition() { + public V1beta1PriorityLevelConfigurationCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildLastCondition() { + public V1beta1PriorityLevelConfigurationCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - item : conditions) { + public V1beta1PriorityLevelConfigurationCondition buildMatchingCondition( + Predicate predicate) { + for (V1beta1PriorityLevelConfigurationConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -219,11 +170,8 @@ public A removeMatchingFromConditions( } public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder - item : conditions) { + Predicate predicate) { + for (V1beta1PriorityLevelConfigurationConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -231,16 +179,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item : - conditions) { + this.conditions = new ArrayList(); + for (V1beta1PriorityLevelConfigurationCondition item : conditions) { this.addToConditions(item); } } else { @@ -256,15 +201,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item : - conditions) { + for (V1beta1PriorityLevelConfigurationCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -272,59 +216,37 @@ public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewC return new V1beta1PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item) { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( + V1beta1PriorityLevelConfigurationCondition item) { return new V1beta1PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationCondition item) { - return new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta1PriorityLevelConfigurationCondition item) { + return new V1beta1PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( + Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editFirstCondition() { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editLastCondition() { + public V1beta1PriorityLevelConfigurationStatusFluent.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 io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta1PriorityLevelConfigurationConditionBuilder> - predicate) { + public V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -364,24 +286,19 @@ public String toString() { class ConditionsNestedImpl extends V1beta1PriorityLevelConfigurationConditionFluentImpl< V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1beta1PriorityLevelConfigurationCondition item) { + implements V1beta1PriorityLevelConfigurationStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1beta1PriorityLevelConfigurationCondition item) { this.index = index; this.builder = new V1beta1PriorityLevelConfigurationConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder( - this); + this.builder = new V1beta1PriorityLevelConfigurationConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1PriorityLevelConfigurationConditionBuilder builder; - java.lang.Integer index; + V1beta1PriorityLevelConfigurationConditionBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java index 745ab8c028..9f79a3ab2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationBuilder.java @@ -16,9 +16,7 @@ public class V1beta1QueuingConfigurationBuilder extends V1beta1QueuingConfigurationFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration, - io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationBuilder> { + implements VisitableBuilder { public V1beta1QueuingConfigurationBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfigurationFluent f } public V1beta1QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1QueuingConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1QueuingConfiguration(), validationEnabled); } public V1beta1QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration instance) { + V1beta1QueuingConfigurationFluent fluent, V1beta1QueuingConfiguration instance) { this(fluent, instance, false); } public V1beta1QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta1QueuingConfigurationFluent fluent, + V1beta1QueuingConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withHandSize(instance.getHandSize()); @@ -57,14 +53,12 @@ public V1beta1QueuingConfigurationBuilder( this.validationEnabled = validationEnabled; } - public V1beta1QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration instance) { + public V1beta1QueuingConfigurationBuilder(V1beta1QueuingConfiguration instance) { this(instance, false); } public V1beta1QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta1QueuingConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withHandSize(instance.getHandSize()); @@ -75,10 +69,10 @@ public V1beta1QueuingConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1QueuingConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1QueuingConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration build() { + public V1beta1QueuingConfiguration build() { V1beta1QueuingConfiguration buildable = new V1beta1QueuingConfiguration(); buildable.setHandSize(fluent.getHandSize()); buildable.setQueueLengthLimit(fluent.getQueueLengthLimit()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java index 642dc00a23..c98cbcdbfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluent.java @@ -19,19 +19,19 @@ public interface V1beta1QueuingConfigurationFluent { public Integer getHandSize(); - public A withHandSize(java.lang.Integer handSize); + public A withHandSize(Integer handSize); public Boolean hasHandSize(); - public java.lang.Integer getQueueLengthLimit(); + public Integer getQueueLengthLimit(); - public A withQueueLengthLimit(java.lang.Integer queueLengthLimit); + public A withQueueLengthLimit(Integer queueLengthLimit); - public java.lang.Boolean hasQueueLengthLimit(); + public Boolean hasQueueLengthLimit(); - public java.lang.Integer getQueues(); + public Integer getQueues(); - public A withQueues(java.lang.Integer queues); + public A withQueues(Integer queues); - public java.lang.Boolean hasQueues(); + public Boolean hasQueues(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java index fcce7200e8..09a66ccd47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfigurationFluentImpl.java @@ -20,8 +20,7 @@ public class V1beta1QueuingConfigurationFluentImpl implements V1beta1QueuingConfigurationFluent { public V1beta1QueuingConfigurationFluentImpl() {} - public V1beta1QueuingConfigurationFluentImpl( - io.kubernetes.client.openapi.models.V1beta1QueuingConfiguration instance) { + public V1beta1QueuingConfigurationFluentImpl(V1beta1QueuingConfiguration instance) { this.withHandSize(instance.getHandSize()); this.withQueueLengthLimit(instance.getQueueLengthLimit()); @@ -30,14 +29,14 @@ public V1beta1QueuingConfigurationFluentImpl( } private Integer handSize; - private java.lang.Integer queueLengthLimit; - private java.lang.Integer queues; + private Integer queueLengthLimit; + private Integer queues; - public java.lang.Integer getHandSize() { + public Integer getHandSize() { return this.handSize; } - public A withHandSize(java.lang.Integer handSize) { + public A withHandSize(Integer handSize) { this.handSize = handSize; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasHandSize() { return this.handSize != null; } - public java.lang.Integer getQueueLengthLimit() { + public Integer getQueueLengthLimit() { return this.queueLengthLimit; } - public A withQueueLengthLimit(java.lang.Integer queueLengthLimit) { + public A withQueueLengthLimit(Integer queueLengthLimit) { this.queueLengthLimit = queueLengthLimit; return (A) this; } - public java.lang.Boolean hasQueueLengthLimit() { + public Boolean hasQueueLengthLimit() { return this.queueLengthLimit != null; } - public java.lang.Integer getQueues() { + public Integer getQueues() { return this.queues; } - public A withQueues(java.lang.Integer queues) { + public A withQueues(Integer queues) { this.queues = queues; return (A) this; } - public java.lang.Boolean hasQueues() { + public Boolean hasQueues() { return this.queues != null; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java index b78bbba18b..1720abf527 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleBuilder.java @@ -16,9 +16,7 @@ public class V1beta1ResourcePolicyRuleBuilder extends V1beta1ResourcePolicyRuleFluentImpl - implements VisitableBuilder< - V1beta1ResourcePolicyRule, - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleBuilder> { + implements VisitableBuilder { public V1beta1ResourcePolicyRuleBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1beta1ResourcePolicyRuleBuilder(Boolean validationEnabled) { this(new V1beta1ResourcePolicyRule(), validationEnabled); } - public V1beta1ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleFluent fluent) { + public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRuleFluent fluent) { this(fluent, false); } public V1beta1ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1ResourcePolicyRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1ResourcePolicyRule(), validationEnabled); } public V1beta1ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule instance) { + V1beta1ResourcePolicyRuleFluent fluent, V1beta1ResourcePolicyRule instance) { this(fluent, instance, false); } public V1beta1ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta1ResourcePolicyRuleFluent fluent, + V1beta1ResourcePolicyRule instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); @@ -62,14 +57,12 @@ public V1beta1ResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - public V1beta1ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule instance) { + public V1beta1ResourcePolicyRuleBuilder(V1beta1ResourcePolicyRule instance) { this(instance, false); } public V1beta1ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta1ResourcePolicyRule instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroups(instance.getApiGroups()); @@ -84,10 +77,10 @@ public V1beta1ResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1ResourcePolicyRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule build() { + public V1beta1ResourcePolicyRule build() { V1beta1ResourcePolicyRule buildable = new V1beta1ResourcePolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); buildable.setClusterScope(fluent.getClusterScope()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java index 69d01280a1..495275cfbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluent.java @@ -22,134 +22,129 @@ public interface V1beta1ResourcePolicyRuleFluent { public A addToApiGroups(Integer index, String item); - public A setToApiGroups(java.lang.Integer index, java.lang.String item); + public A setToApiGroups(Integer index, String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); + public A addAllToApiGroups(Collection items); public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(java.util.Collection items); + public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); + public List getApiGroups(); - public java.lang.String getApiGroup(java.lang.Integer index); + public String getApiGroup(Integer index); - public java.lang.String getFirstApiGroup(); + public String getFirstApiGroup(); - public java.lang.String getLastApiGroup(); + public String getLastApiGroup(); - public java.lang.String getMatchingApiGroup(Predicate predicate); + public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate); + public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(java.util.List apiGroups); + public A withApiGroups(List apiGroups); public A withApiGroups(java.lang.String... apiGroups); - public java.lang.Boolean hasApiGroups(); + public Boolean hasApiGroups(); - public java.lang.Boolean getClusterScope(); + public Boolean getClusterScope(); - public A withClusterScope(java.lang.Boolean clusterScope); + public A withClusterScope(Boolean clusterScope); - public java.lang.Boolean hasClusterScope(); + public Boolean hasClusterScope(); - public A addToNamespaces(java.lang.Integer index, java.lang.String item); + public A addToNamespaces(Integer index, String item); - public A setToNamespaces(java.lang.Integer index, java.lang.String item); + public A setToNamespaces(Integer index, String item); public A addToNamespaces(java.lang.String... items); - public A addAllToNamespaces(java.util.Collection items); + public A addAllToNamespaces(Collection items); public A removeFromNamespaces(java.lang.String... items); - public A removeAllFromNamespaces(java.util.Collection items); + public A removeAllFromNamespaces(Collection items); - public java.util.List getNamespaces(); + public List getNamespaces(); - public java.lang.String getNamespace(java.lang.Integer index); + public String getNamespace(Integer index); - public java.lang.String getFirstNamespace(); + public String getFirstNamespace(); - public java.lang.String getLastNamespace(); + public String getLastNamespace(); - public java.lang.String getMatchingNamespace( - java.util.function.Predicate predicate); + public String getMatchingNamespace(Predicate predicate); - public java.lang.Boolean hasMatchingNamespace( - java.util.function.Predicate predicate); + public Boolean hasMatchingNamespace(Predicate predicate); - public A withNamespaces(java.util.List namespaces); + public A withNamespaces(List namespaces); public A withNamespaces(java.lang.String... namespaces); - public java.lang.Boolean hasNamespaces(); + public Boolean hasNamespaces(); - public A addToResources(java.lang.Integer index, java.lang.String item); + public A addToResources(Integer index, String item); - public A setToResources(java.lang.Integer index, java.lang.String item); + public A setToResources(Integer index, String item); public A addToResources(java.lang.String... items); - public A addAllToResources(java.util.Collection items); + public A addAllToResources(Collection items); public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(java.util.Collection items); + public A removeAllFromResources(Collection items); - public java.util.List getResources(); + public List getResources(); - public java.lang.String getResource(java.lang.Integer index); + public String getResource(Integer index); - public java.lang.String getFirstResource(); + public String getFirstResource(); - public java.lang.String getLastResource(); + public String getLastResource(); - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate); + public String getMatchingResource(Predicate predicate); - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate); + public Boolean hasMatchingResource(Predicate predicate); - public A withResources(java.util.List resources); + public A withResources(List resources); public A withResources(java.lang.String... resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); public A withClusterScope(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java index 84e131b0aa..2c7ee2c8ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRuleFluentImpl.java @@ -24,8 +24,7 @@ public class V1beta1ResourcePolicyRuleFluentImpl implements V1beta1ResourcePolicyRuleFluent { public V1beta1ResourcePolicyRuleFluentImpl() {} - public V1beta1ResourcePolicyRuleFluentImpl( - io.kubernetes.client.openapi.models.V1beta1ResourcePolicyRule instance) { + public V1beta1ResourcePolicyRuleFluentImpl(V1beta1ResourcePolicyRule instance) { this.withApiGroups(instance.getApiGroups()); this.withClusterScope(instance.getClusterScope()); @@ -39,21 +38,21 @@ public V1beta1ResourcePolicyRuleFluentImpl( private List apiGroups; private Boolean clusterScope; - private java.util.List namespaces; - private java.util.List resources; - private java.util.List verbs; + private List namespaces; + private List resources; + private List verbs; - public A addToApiGroups(Integer index, java.lang.String item) { + public A addToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.add(index, item); return (A) this; } - public A setToApiGroups(java.lang.Integer index, java.lang.String item) { + public A setToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.set(index, item); return (A) this; @@ -61,26 +60,26 @@ public A setToApiGroups(java.lang.Integer index, java.lang.String item) { public A addToApiGroups(java.lang.String... items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } public A removeFromApiGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -88,8 +87,8 @@ public A removeFromApiGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromApiGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromApiGroups(Collection items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -97,24 +96,24 @@ public A removeAllFromApiGroups(java.util.Collection items) { return (A) this; } - public java.util.List getApiGroups() { + public List getApiGroups() { return this.apiGroups; } - public java.lang.String getApiGroup(java.lang.Integer index) { + public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public java.lang.String getFirstApiGroup() { + public String getFirstApiGroup() { return this.apiGroups.get(0); } - public java.lang.String getLastApiGroup() { + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public java.lang.String getMatchingApiGroup(Predicate predicate) { - for (java.lang.String item : apiGroups) { + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -122,9 +121,8 @@ public java.lang.String getMatchingApiGroup(Predicate predicat return null; } - public java.lang.Boolean hasMatchingApiGroup( - java.util.function.Predicate predicate) { - for (java.lang.String item : apiGroups) { + public Boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return true; } @@ -132,10 +130,10 @@ public java.lang.Boolean hasMatchingApiGroup( return false; } - public A withApiGroups(java.util.List apiGroups) { + public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new java.util.ArrayList(); - for (java.lang.String item : apiGroups) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { this.addToApiGroups(item); } } else { @@ -149,41 +147,41 @@ public A withApiGroups(java.lang.String... apiGroups) { this.apiGroups.clear(); } if (apiGroups != null) { - for (java.lang.String item : apiGroups) { + for (String item : apiGroups) { this.addToApiGroups(item); } } return (A) this; } - public java.lang.Boolean hasApiGroups() { + public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public java.lang.Boolean getClusterScope() { + public Boolean getClusterScope() { return this.clusterScope; } - public A withClusterScope(java.lang.Boolean clusterScope) { + public A withClusterScope(Boolean clusterScope) { this.clusterScope = clusterScope; return (A) this; } - public java.lang.Boolean hasClusterScope() { + public Boolean hasClusterScope() { return this.clusterScope != null; } - public A addToNamespaces(java.lang.Integer index, java.lang.String item) { + public A addToNamespaces(Integer index, String item) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } this.namespaces.add(index, item); return (A) this; } - public A setToNamespaces(java.lang.Integer index, java.lang.String item) { + public A setToNamespaces(Integer index, String item) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } this.namespaces.set(index, item); return (A) this; @@ -191,26 +189,26 @@ public A setToNamespaces(java.lang.Integer index, java.lang.String item) { public A addToNamespaces(java.lang.String... items) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.namespaces.add(item); } return (A) this; } - public A addAllToNamespaces(java.util.Collection items) { + public A addAllToNamespaces(Collection items) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.namespaces.add(item); } return (A) this; } public A removeFromNamespaces(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.namespaces != null) { this.namespaces.remove(item); } @@ -218,8 +216,8 @@ public A removeFromNamespaces(java.lang.String... items) { return (A) this; } - public A removeAllFromNamespaces(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNamespaces(Collection items) { + for (String item : items) { if (this.namespaces != null) { this.namespaces.remove(item); } @@ -227,25 +225,24 @@ public A removeAllFromNamespaces(java.util.Collection items) { return (A) this; } - public java.util.List getNamespaces() { + public List getNamespaces() { return this.namespaces; } - public java.lang.String getNamespace(java.lang.Integer index) { + public String getNamespace(Integer index) { return this.namespaces.get(index); } - public java.lang.String getFirstNamespace() { + public String getFirstNamespace() { return this.namespaces.get(0); } - public java.lang.String getLastNamespace() { + public String getLastNamespace() { return this.namespaces.get(namespaces.size() - 1); } - public java.lang.String getMatchingNamespace( - java.util.function.Predicate predicate) { - for (java.lang.String item : namespaces) { + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { return item; } @@ -253,9 +250,8 @@ public java.lang.String getMatchingNamespace( return null; } - public java.lang.Boolean hasMatchingNamespace( - java.util.function.Predicate predicate) { - for (java.lang.String item : namespaces) { + public Boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { return true; } @@ -263,10 +259,10 @@ public java.lang.Boolean hasMatchingNamespace( return false; } - public A withNamespaces(java.util.List namespaces) { + public A withNamespaces(List namespaces) { if (namespaces != null) { - this.namespaces = new java.util.ArrayList(); - for (java.lang.String item : namespaces) { + this.namespaces = new ArrayList(); + for (String item : namespaces) { this.addToNamespaces(item); } } else { @@ -280,28 +276,28 @@ public A withNamespaces(java.lang.String... namespaces) { this.namespaces.clear(); } if (namespaces != null) { - for (java.lang.String item : namespaces) { + for (String item : namespaces) { this.addToNamespaces(item); } } return (A) this; } - public java.lang.Boolean hasNamespaces() { + public Boolean hasNamespaces() { return namespaces != null && !namespaces.isEmpty(); } - public A addToResources(java.lang.Integer index, java.lang.String item) { + public A addToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.add(index, item); return (A) this; } - public A setToResources(java.lang.Integer index, java.lang.String item) { + public A setToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.set(index, item); return (A) this; @@ -309,26 +305,26 @@ public A setToResources(java.lang.Integer index, java.lang.String item) { public A addToResources(java.lang.String... items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } - public A addAllToResources(java.util.Collection items) { + public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } public A removeFromResources(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -336,8 +332,8 @@ public A removeFromResources(java.lang.String... items) { return (A) this; } - public A removeAllFromResources(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResources(Collection items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -345,25 +341,24 @@ public A removeAllFromResources(java.util.Collection items) { return (A) this; } - public java.util.List getResources() { + public List getResources() { return this.resources; } - public java.lang.String getResource(java.lang.Integer index) { + public String getResource(Integer index) { return this.resources.get(index); } - public java.lang.String getFirstResource() { + public String getFirstResource() { return this.resources.get(0); } - public java.lang.String getLastResource() { + public String getLastResource() { return this.resources.get(resources.size() - 1); } - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return item; } @@ -371,9 +366,8 @@ public java.lang.String getMatchingResource( return null; } - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public Boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return true; } @@ -381,10 +375,10 @@ public java.lang.Boolean hasMatchingResource( return false; } - public A withResources(java.util.List resources) { + public A withResources(List resources) { if (resources != null) { - this.resources = new java.util.ArrayList(); - for (java.lang.String item : resources) { + this.resources = new ArrayList(); + for (String item : resources) { this.addToResources(item); } } else { @@ -398,28 +392,28 @@ public A withResources(java.lang.String... resources) { this.resources.clear(); } if (resources != null) { - for (java.lang.String item : resources) { + for (String item : resources) { this.addToResources(item); } } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -427,26 +421,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -454,8 +448,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -463,25 +457,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -489,9 +482,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -499,10 +491,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -516,14 +508,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -548,7 +540,7 @@ public int hashCode() { apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroups != null && !apiGroups.isEmpty()) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsBuilder.java deleted file mode 100644 index da79c1676d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1RunAsGroupStrategyOptionsBuilder - extends V1beta1RunAsGroupStrategyOptionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions, - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsBuilder> { - public V1beta1RunAsGroupStrategyOptionsBuilder() { - this(false); - } - - public V1beta1RunAsGroupStrategyOptionsBuilder(Boolean validationEnabled) { - this(new V1beta1RunAsGroupStrategyOptions(), validationEnabled); - } - - public V1beta1RunAsGroupStrategyOptionsBuilder(V1beta1RunAsGroupStrategyOptionsFluent fluent) { - this(fluent, false); - } - - public V1beta1RunAsGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1RunAsGroupStrategyOptions(), validationEnabled); - } - - public V1beta1RunAsGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions instance) { - this(fluent, instance, false); - } - - public V1beta1RunAsGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withRanges(instance.getRanges()); - - fluent.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1RunAsGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions instance) { - this(instance, false); - } - - public V1beta1RunAsGroupStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions build() { - V1beta1RunAsGroupStrategyOptions buildable = new V1beta1RunAsGroupStrategyOptions(); - buildable.setRanges(fluent.getRanges()); - buildable.setRule(fluent.getRule()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsFluent.java deleted file mode 100644 index f6f11e30b3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsFluent.java +++ /dev/null @@ -1,107 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1RunAsGroupStrategyOptionsFluent< - A extends V1beta1RunAsGroupStrategyOptionsFluent> - extends Fluent { - public A addToRanges(Integer index, V1beta1IDRange item); - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A addAllToRanges(Collection items); - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A removeAllFromRanges( - java.util.Collection items); - - public A removeMatchingFromRanges(Predicate predicate); - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges(); - - public java.util.List buildRanges(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate); - - public A withRanges(java.util.List ranges); - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges); - - public java.lang.Boolean hasRanges(); - - public V1beta1RunAsGroupStrategyOptionsFluent.RangesNested addNewRange(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editMatchingRange( - java.util.function.Predicate - predicate); - - public String getRule(); - - public A withRule(java.lang.String rule); - - public java.lang.Boolean hasRule(); - - public interface RangesNested - extends Nested, - V1beta1IDRangeFluent> { - public N and(); - - public N endRange(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsFluentImpl.java deleted file mode 100644 index 355c645ca8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptionsFluentImpl.java +++ /dev/null @@ -1,343 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1RunAsGroupStrategyOptionsFluentImpl< - A extends V1beta1RunAsGroupStrategyOptionsFluent> - extends BaseFluent implements V1beta1RunAsGroupStrategyOptionsFluent { - public V1beta1RunAsGroupStrategyOptionsFluentImpl() {} - - public V1beta1RunAsGroupStrategyOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptions instance) { - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - } - - private ArrayList ranges; - private String rule; - - public A addToRanges(Integer index, V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(index >= 0 ? index : _visitables.get("ranges").size(), builder); - this.ranges.add(index >= 0 ? index : ranges.size(), builder); - return (A) this; - } - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - if (index < 0 || index >= _visitables.get("ranges").size()) { - _visitables.get("ranges").add(builder); - } else { - _visitables.get("ranges").set(index, builder); - } - if (index < 0 || index >= ranges.size()) { - ranges.add(builder); - } else { - ranges.set(index, builder); - } - return (A) this; - } - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A addAllToRanges(Collection items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromRanges( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromRanges( - Predicate predicate) { - if (ranges == null) return (A) this; - final Iterator each = - ranges.iterator(); - final List visitables = _visitables.get("ranges"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges() { - return ranges != null ? build(ranges) : null; - } - - public java.util.List buildRanges() { - return ranges != null ? build(ranges) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index) { - return this.ranges.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange() { - return this.ranges.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange() { - return this.ranges.get(ranges.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRanges(java.util.List ranges) { - if (this.ranges != null) { - _visitables.get("ranges").removeAll(this.ranges); - } - if (ranges != null) { - this.ranges = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } else { - this.ranges = null; - } - return (A) this; - } - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges) { - if (this.ranges != null) { - this.ranges.clear(); - } - if (ranges != null) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasRanges() { - return ranges != null && !ranges.isEmpty(); - } - - public V1beta1RunAsGroupStrategyOptionsFluent.RangesNested addNewRange() { - return new V1beta1RunAsGroupStrategyOptionsFluentImpl.RangesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new V1beta1RunAsGroupStrategyOptionsFluentImpl.RangesNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluentImpl - .RangesNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editRange(java.lang.Integer index) { - if (ranges.size() <= index) - throw new RuntimeException("Can't edit ranges. Index exceeds size."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editFirstRange() { - if (ranges.size() == 0) - throw new RuntimeException("Can't edit first ranges. The list is empty."); - return setNewRangeLike(0, buildRange(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editLastRange() { - int index = ranges.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ranges. The list is empty."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent.RangesNested - editMatchingRange( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < ranges.size(); i++) { - if (predicate.test(ranges.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching ranges. No match found."); - return setNewRangeLike(index, buildRange(index)); - } - - public java.lang.String getRule() { - return this.rule; - } - - public A withRule(java.lang.String rule) { - this.rule = rule; - return (A) this; - } - - public java.lang.Boolean hasRule() { - return this.rule != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1RunAsGroupStrategyOptionsFluentImpl that = - (V1beta1RunAsGroupStrategyOptionsFluentImpl) o; - if (ranges != null ? !ranges.equals(that.ranges) : that.ranges != null) return false; - if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ranges, rule, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ranges != null && !ranges.isEmpty()) { - sb.append("ranges:"); - sb.append(ranges + ","); - } - if (rule != null) { - sb.append("rule:"); - sb.append(rule); - } - sb.append("}"); - return sb.toString(); - } - - class RangesNestedImpl - extends V1beta1IDRangeFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RunAsGroupStrategyOptionsFluent - .RangesNested< - N>, - Nested { - RangesNestedImpl(java.lang.Integer index, V1beta1IDRange item) { - this.index = index; - this.builder = new V1beta1IDRangeBuilder(this, item); - } - - RangesNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V1beta1RunAsGroupStrategyOptionsFluentImpl.this.setToRanges(index, builder.build()); - } - - public N endRange() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsBuilder.java deleted file mode 100644 index 2e248867e0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1RunAsUserStrategyOptionsBuilder - extends V1beta1RunAsUserStrategyOptionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions, - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsBuilder> { - public V1beta1RunAsUserStrategyOptionsBuilder() { - this(false); - } - - public V1beta1RunAsUserStrategyOptionsBuilder(Boolean validationEnabled) { - this(new V1beta1RunAsUserStrategyOptions(), validationEnabled); - } - - public V1beta1RunAsUserStrategyOptionsBuilder(V1beta1RunAsUserStrategyOptionsFluent fluent) { - this(fluent, false); - } - - public V1beta1RunAsUserStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1RunAsUserStrategyOptions(), validationEnabled); - } - - public V1beta1RunAsUserStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions instance) { - this(fluent, instance, false); - } - - public V1beta1RunAsUserStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withRanges(instance.getRanges()); - - fluent.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1RunAsUserStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions instance) { - this(instance, false); - } - - public V1beta1RunAsUserStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions build() { - V1beta1RunAsUserStrategyOptions buildable = new V1beta1RunAsUserStrategyOptions(); - buildable.setRanges(fluent.getRanges()); - buildable.setRule(fluent.getRule()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsFluent.java deleted file mode 100644 index 8d1d11187d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsFluent.java +++ /dev/null @@ -1,107 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1RunAsUserStrategyOptionsFluent< - A extends V1beta1RunAsUserStrategyOptionsFluent> - extends Fluent { - public A addToRanges(Integer index, V1beta1IDRange item); - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A addAllToRanges(Collection items); - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A removeAllFromRanges( - java.util.Collection items); - - public A removeMatchingFromRanges(Predicate predicate); - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges(); - - public java.util.List buildRanges(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate); - - public A withRanges(java.util.List ranges); - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges); - - public java.lang.Boolean hasRanges(); - - public V1beta1RunAsUserStrategyOptionsFluent.RangesNested addNewRange(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editMatchingRange( - java.util.function.Predicate - predicate); - - public String getRule(); - - public A withRule(java.lang.String rule); - - public java.lang.Boolean hasRule(); - - public interface RangesNested - extends Nested, - V1beta1IDRangeFluent> { - public N and(); - - public N endRange(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsFluentImpl.java deleted file mode 100644 index 84e151b459..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptionsFluentImpl.java +++ /dev/null @@ -1,341 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1RunAsUserStrategyOptionsFluentImpl< - A extends V1beta1RunAsUserStrategyOptionsFluent> - extends BaseFluent implements V1beta1RunAsUserStrategyOptionsFluent { - public V1beta1RunAsUserStrategyOptionsFluentImpl() {} - - public V1beta1RunAsUserStrategyOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptions instance) { - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - } - - private ArrayList ranges; - private String rule; - - public A addToRanges(Integer index, V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(index >= 0 ? index : _visitables.get("ranges").size(), builder); - this.ranges.add(index >= 0 ? index : ranges.size(), builder); - return (A) this; - } - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - if (index < 0 || index >= _visitables.get("ranges").size()) { - _visitables.get("ranges").add(builder); - } else { - _visitables.get("ranges").set(index, builder); - } - if (index < 0 || index >= ranges.size()) { - ranges.add(builder); - } else { - ranges.set(index, builder); - } - return (A) this; - } - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A addAllToRanges(Collection items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromRanges( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromRanges( - Predicate predicate) { - if (ranges == null) return (A) this; - final Iterator each = - ranges.iterator(); - final List visitables = _visitables.get("ranges"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges() { - return ranges != null ? build(ranges) : null; - } - - public java.util.List buildRanges() { - return ranges != null ? build(ranges) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index) { - return this.ranges.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange() { - return this.ranges.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange() { - return this.ranges.get(ranges.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRanges(java.util.List ranges) { - if (this.ranges != null) { - _visitables.get("ranges").removeAll(this.ranges); - } - if (ranges != null) { - this.ranges = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } else { - this.ranges = null; - } - return (A) this; - } - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges) { - if (this.ranges != null) { - this.ranges.clear(); - } - if (ranges != null) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasRanges() { - return ranges != null && !ranges.isEmpty(); - } - - public V1beta1RunAsUserStrategyOptionsFluent.RangesNested addNewRange() { - return new V1beta1RunAsUserStrategyOptionsFluentImpl.RangesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new V1beta1RunAsUserStrategyOptionsFluentImpl.RangesNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluentImpl - .RangesNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editRange(java.lang.Integer index) { - if (ranges.size() <= index) - throw new RuntimeException("Can't edit ranges. Index exceeds size."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editFirstRange() { - if (ranges.size() == 0) - throw new RuntimeException("Can't edit first ranges. The list is empty."); - return setNewRangeLike(0, buildRange(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editLastRange() { - int index = ranges.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ranges. The list is empty."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent.RangesNested - editMatchingRange( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < ranges.size(); i++) { - if (predicate.test(ranges.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching ranges. No match found."); - return setNewRangeLike(index, buildRange(index)); - } - - public java.lang.String getRule() { - return this.rule; - } - - public A withRule(java.lang.String rule) { - this.rule = rule; - return (A) this; - } - - public java.lang.Boolean hasRule() { - return this.rule != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1RunAsUserStrategyOptionsFluentImpl that = (V1beta1RunAsUserStrategyOptionsFluentImpl) o; - if (ranges != null ? !ranges.equals(that.ranges) : that.ranges != null) return false; - if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ranges, rule, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ranges != null && !ranges.isEmpty()) { - sb.append("ranges:"); - sb.append(ranges + ","); - } - if (rule != null) { - sb.append("rule:"); - sb.append(rule); - } - sb.append("}"); - return sb.toString(); - } - - class RangesNestedImpl - extends V1beta1IDRangeFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RunAsUserStrategyOptionsFluent - .RangesNested< - N>, - Nested { - RangesNestedImpl(java.lang.Integer index, V1beta1IDRange item) { - this.index = index; - this.builder = new V1beta1IDRangeBuilder(this, item); - } - - RangesNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1RunAsUserStrategyOptionsFluentImpl.this.setToRanges(index, builder.build()); - } - - public N endRange() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassBuilder.java deleted file mode 100644 index ac299e0f9e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1RuntimeClassBuilder - extends V1beta1RuntimeClassFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1RuntimeClass, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder> { - public V1beta1RuntimeClassBuilder() { - this(false); - } - - public V1beta1RuntimeClassBuilder(Boolean validationEnabled) { - this(new V1beta1RuntimeClass(), validationEnabled); - } - - public V1beta1RuntimeClassBuilder(V1beta1RuntimeClassFluent fluent) { - this(fluent, false); - } - - public V1beta1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1RuntimeClass(), validationEnabled); - } - - public V1beta1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RuntimeClass instance) { - this(fluent, instance, false); - } - - public V1beta1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RuntimeClass instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withHandler(instance.getHandler()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withOverhead(instance.getOverhead()); - - fluent.withScheduling(instance.getScheduling()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClass instance) { - this(instance, false); - } - - public V1beta1RuntimeClassBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClass instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass build() { - V1beta1RuntimeClass buildable = new V1beta1RuntimeClass(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setHandler(fluent.getHandler()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setOverhead(fluent.getOverhead()); - buildable.setScheduling(fluent.getScheduling()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassFluent.java deleted file mode 100644 index 6eb430e73a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassFluent.java +++ /dev/null @@ -1,145 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1RuntimeClassFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public java.lang.String getHandler(); - - public A withHandler(java.lang.String handler); - - public java.lang.Boolean hasHandler(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1RuntimeClassFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - /** - * This method has been deprecated, please use method buildOverhead instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1Overhead getOverhead(); - - public io.kubernetes.client.openapi.models.V1beta1Overhead buildOverhead(); - - public A withOverhead(io.kubernetes.client.openapi.models.V1beta1Overhead overhead); - - public java.lang.Boolean hasOverhead(); - - public V1beta1RuntimeClassFluent.OverheadNested withNewOverhead(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - withNewOverheadLike(io.kubernetes.client.openapi.models.V1beta1Overhead item); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - editOverhead(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - editOrNewOverhead(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - editOrNewOverheadLike(io.kubernetes.client.openapi.models.V1beta1Overhead item); - - /** - * This method has been deprecated, please use method buildScheduling instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1Scheduling getScheduling(); - - public io.kubernetes.client.openapi.models.V1beta1Scheduling buildScheduling(); - - public A withScheduling(io.kubernetes.client.openapi.models.V1beta1Scheduling scheduling); - - public java.lang.Boolean hasScheduling(); - - public V1beta1RuntimeClassFluent.SchedulingNested withNewScheduling(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - withNewSchedulingLike(io.kubernetes.client.openapi.models.V1beta1Scheduling item); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - editScheduling(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - editOrNewScheduling(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - editOrNewSchedulingLike(io.kubernetes.client.openapi.models.V1beta1Scheduling item); - - public interface MetadataNested - extends Nested, V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface OverheadNested - extends io.kubernetes.client.fluent.Nested, - V1beta1OverheadFluent> { - public N and(); - - public N endOverhead(); - } - - public interface SchedulingNested - extends io.kubernetes.client.fluent.Nested, - V1beta1SchedulingFluent> { - public N and(); - - public N endScheduling(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassFluentImpl.java deleted file mode 100644 index a738869b58..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassFluentImpl.java +++ /dev/null @@ -1,368 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1RuntimeClassFluentImpl> - extends BaseFluent implements V1beta1RuntimeClassFluent { - public V1beta1RuntimeClassFluentImpl() {} - - public V1beta1RuntimeClassFluentImpl( - io.kubernetes.client.openapi.models.V1beta1RuntimeClass instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withHandler(instance.getHandler()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withOverhead(instance.getOverhead()); - - this.withScheduling(instance.getScheduling()); - } - - private String apiVersion; - private java.lang.String handler; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1OverheadBuilder overhead; - private V1beta1SchedulingBuilder scheduling; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.String getHandler() { - return this.handler; - } - - public A withHandler(java.lang.String handler) { - this.handler = handler; - return (A) this; - } - - public java.lang.Boolean hasHandler() { - return this.handler != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1RuntimeClassFluent.MetadataNested withNewMetadata() { - return new V1beta1RuntimeClassFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new V1beta1RuntimeClassFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - /** - * This method has been deprecated, please use method buildOverhead instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1beta1Overhead getOverhead() { - return this.overhead != null ? this.overhead.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1Overhead buildOverhead() { - return this.overhead != null ? this.overhead.build() : null; - } - - public A withOverhead(io.kubernetes.client.openapi.models.V1beta1Overhead overhead) { - _visitables.get("overhead").remove(this.overhead); - if (overhead != null) { - this.overhead = new io.kubernetes.client.openapi.models.V1beta1OverheadBuilder(overhead); - _visitables.get("overhead").add(this.overhead); - } - return (A) this; - } - - public java.lang.Boolean hasOverhead() { - return this.overhead != null; - } - - public V1beta1RuntimeClassFluent.OverheadNested withNewOverhead() { - return new V1beta1RuntimeClassFluentImpl.OverheadNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - withNewOverheadLike(io.kubernetes.client.openapi.models.V1beta1Overhead item) { - return new io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluentImpl.OverheadNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - editOverhead() { - return withNewOverheadLike(getOverhead()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - editOrNewOverhead() { - return withNewOverheadLike( - getOverhead() != null - ? getOverhead() - : new io.kubernetes.client.openapi.models.V1beta1OverheadBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested - editOrNewOverheadLike(io.kubernetes.client.openapi.models.V1beta1Overhead item) { - return withNewOverheadLike(getOverhead() != null ? getOverhead() : item); - } - - /** - * This method has been deprecated, please use method buildScheduling instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1Scheduling getScheduling() { - return this.scheduling != null ? this.scheduling.build() : null; - } - - public io.kubernetes.client.openapi.models.V1beta1Scheduling buildScheduling() { - return this.scheduling != null ? this.scheduling.build() : null; - } - - public A withScheduling(io.kubernetes.client.openapi.models.V1beta1Scheduling scheduling) { - _visitables.get("scheduling").remove(this.scheduling); - if (scheduling != null) { - this.scheduling = new V1beta1SchedulingBuilder(scheduling); - _visitables.get("scheduling").add(this.scheduling); - } - return (A) this; - } - - public java.lang.Boolean hasScheduling() { - return this.scheduling != null; - } - - public V1beta1RuntimeClassFluent.SchedulingNested withNewScheduling() { - return new V1beta1RuntimeClassFluentImpl.SchedulingNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - withNewSchedulingLike(io.kubernetes.client.openapi.models.V1beta1Scheduling item) { - return new io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluentImpl - .SchedulingNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - editScheduling() { - return withNewSchedulingLike(getScheduling()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - editOrNewScheduling() { - return withNewSchedulingLike( - getScheduling() != null - ? getScheduling() - : new io.kubernetes.client.openapi.models.V1beta1SchedulingBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested - editOrNewSchedulingLike(io.kubernetes.client.openapi.models.V1beta1Scheduling item) { - return withNewSchedulingLike(getScheduling() != null ? getScheduling() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1RuntimeClassFluentImpl that = (V1beta1RuntimeClassFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (handler != null ? !handler.equals(that.handler) : that.handler != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (overhead != null ? !overhead.equals(that.overhead) : that.overhead != null) return false; - if (scheduling != null ? !scheduling.equals(that.scheduling) : that.scheduling != null) - return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - apiVersion, handler, kind, metadata, overhead, scheduling, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.MetadataNested, - Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1beta1RuntimeClassFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class OverheadNestedImpl - extends V1beta1OverheadFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.OverheadNested, - io.kubernetes.client.fluent.Nested { - OverheadNestedImpl(V1beta1Overhead item) { - this.builder = new V1beta1OverheadBuilder(this, item); - } - - OverheadNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1OverheadBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1OverheadBuilder builder; - - public N and() { - return (N) V1beta1RuntimeClassFluentImpl.this.withOverhead(builder.build()); - } - - public N endOverhead() { - return and(); - } - } - - class SchedulingNestedImpl - extends V1beta1SchedulingFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RuntimeClassFluent.SchedulingNested, - io.kubernetes.client.fluent.Nested { - SchedulingNestedImpl(V1beta1Scheduling item) { - this.builder = new V1beta1SchedulingBuilder(this, item); - } - - SchedulingNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1SchedulingBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1SchedulingBuilder builder; - - public N and() { - return (N) V1beta1RuntimeClassFluentImpl.this.withScheduling(builder.build()); - } - - public N endScheduling() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListBuilder.java deleted file mode 100644 index a86a06d0e4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1RuntimeClassListBuilder - extends V1beta1RuntimeClassListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1RuntimeClassList, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassListBuilder> { - public V1beta1RuntimeClassListBuilder() { - this(false); - } - - public V1beta1RuntimeClassListBuilder(Boolean validationEnabled) { - this(new V1beta1RuntimeClassList(), validationEnabled); - } - - public V1beta1RuntimeClassListBuilder(V1beta1RuntimeClassListFluent fluent) { - this(fluent, false); - } - - public V1beta1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1RuntimeClassList(), validationEnabled); - } - - public V1beta1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassList instance) { - this(fluent, instance, false); - } - - public V1beta1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassList instance) { - this(instance, false); - } - - public V1beta1RuntimeClassListBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassList build() { - V1beta1RuntimeClassList buildable = new V1beta1RuntimeClassList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListFluent.java deleted file mode 100644 index 666bf71a18..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListFluent.java +++ /dev/null @@ -1,148 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1RuntimeClassListFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item); - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item); - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1RuntimeClass... items); - - public A addAllToItems(Collection items); - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1RuntimeClass... items); - - public A removeAllFromItems( - java.util.Collection items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List buildItems(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildItem(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildMatchingItem( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); - - public A withItems(java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V1beta1RuntimeClass... items); - - public java.lang.Boolean hasItems(); - - public V1beta1RuntimeClassListFluent.ItemsNested addNewItem(); - - public V1beta1RuntimeClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1RuntimeClass item); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested editItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - editFirstItem(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - editLastItem(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder> - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V1beta1RuntimeClassListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, V1beta1RuntimeClassFluent> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListFluentImpl.java deleted file mode 100644 index 12fafcc6ab..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassListFluentImpl.java +++ /dev/null @@ -1,450 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1RuntimeClassListFluentImpl> - extends BaseFluent implements V1beta1RuntimeClassListFluent { - public V1beta1RuntimeClassListFluentImpl() {} - - public V1beta1RuntimeClassListFluentImpl( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1RuntimeClass... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1RuntimeClass... items) { - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClass item : items) { - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildItem( - java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClass buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems( - java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClass item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1RuntimeClass... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta1RuntimeClass item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V1beta1RuntimeClassListFluent.ItemsNested addNewItem() { - return new V1beta1RuntimeClassListFluentImpl.ItemsNestedImpl(); - } - - public V1beta1RuntimeClassListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta1RuntimeClass item) { - return new V1beta1RuntimeClassListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item) { - return new io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluentImpl - .ItemsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested editItem( - java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.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 io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder> - 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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V1beta1RuntimeClassListFluent.MetadataNested withNewMetadata() { - return new V1beta1RuntimeClassListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluentImpl - .MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1RuntimeClassListFluentImpl that = (V1beta1RuntimeClassListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl - extends V1beta1RuntimeClassFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1RuntimeClass item) { - this.index = index; - this.builder = new V1beta1RuntimeClassBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1RuntimeClassBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1RuntimeClassListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1RuntimeClassListFluent.MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V1beta1RuntimeClassListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsBuilder.java deleted file mode 100644 index e8315f8c18..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1RuntimeClassStrategyOptionsBuilder - extends V1beta1RuntimeClassStrategyOptionsFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsBuilder> { - public V1beta1RuntimeClassStrategyOptionsBuilder() { - this(false); - } - - public V1beta1RuntimeClassStrategyOptionsBuilder(Boolean validationEnabled) { - this(new V1beta1RuntimeClassStrategyOptions(), validationEnabled); - } - - public V1beta1RuntimeClassStrategyOptionsBuilder( - V1beta1RuntimeClassStrategyOptionsFluent fluent) { - this(fluent, false); - } - - public V1beta1RuntimeClassStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1RuntimeClassStrategyOptions(), validationEnabled); - } - - public V1beta1RuntimeClassStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions instance) { - this(fluent, instance, false); - } - - public V1beta1RuntimeClassStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAllowedRuntimeClassNames(instance.getAllowedRuntimeClassNames()); - - fluent.withDefaultRuntimeClassName(instance.getDefaultRuntimeClassName()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1RuntimeClassStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions instance) { - this(instance, false); - } - - public V1beta1RuntimeClassStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withAllowedRuntimeClassNames(instance.getAllowedRuntimeClassNames()); - - this.withDefaultRuntimeClassName(instance.getDefaultRuntimeClassName()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions build() { - V1beta1RuntimeClassStrategyOptions buildable = new V1beta1RuntimeClassStrategyOptions(); - buildable.setAllowedRuntimeClassNames(fluent.getAllowedRuntimeClassNames()); - buildable.setDefaultRuntimeClassName(fluent.getDefaultRuntimeClassName()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsFluent.java deleted file mode 100644 index 22089336a0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsFluent.java +++ /dev/null @@ -1,60 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1RuntimeClassStrategyOptionsFluent< - A extends V1beta1RuntimeClassStrategyOptionsFluent> - extends Fluent { - public A addToAllowedRuntimeClassNames(Integer index, String item); - - public A setToAllowedRuntimeClassNames(java.lang.Integer index, java.lang.String item); - - public A addToAllowedRuntimeClassNames(java.lang.String... items); - - public A addAllToAllowedRuntimeClassNames(Collection items); - - public A removeFromAllowedRuntimeClassNames(java.lang.String... items); - - public A removeAllFromAllowedRuntimeClassNames(java.util.Collection items); - - public List getAllowedRuntimeClassNames(); - - public java.lang.String getAllowedRuntimeClassName(java.lang.Integer index); - - public java.lang.String getFirstAllowedRuntimeClassName(); - - public java.lang.String getLastAllowedRuntimeClassName(); - - public java.lang.String getMatchingAllowedRuntimeClassName(Predicate predicate); - - public Boolean hasMatchingAllowedRuntimeClassName( - java.util.function.Predicate predicate); - - public A withAllowedRuntimeClassNames(java.util.List allowedRuntimeClassNames); - - public A withAllowedRuntimeClassNames(java.lang.String... allowedRuntimeClassNames); - - public java.lang.Boolean hasAllowedRuntimeClassNames(); - - public java.lang.String getDefaultRuntimeClassName(); - - public A withDefaultRuntimeClassName(java.lang.String defaultRuntimeClassName); - - public java.lang.Boolean hasDefaultRuntimeClassName(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsFluentImpl.java deleted file mode 100644 index 10b68fe287..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptionsFluentImpl.java +++ /dev/null @@ -1,202 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1RuntimeClassStrategyOptionsFluentImpl< - A extends V1beta1RuntimeClassStrategyOptionsFluent> - extends BaseFluent implements V1beta1RuntimeClassStrategyOptionsFluent { - public V1beta1RuntimeClassStrategyOptionsFluentImpl() {} - - public V1beta1RuntimeClassStrategyOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1RuntimeClassStrategyOptions instance) { - this.withAllowedRuntimeClassNames(instance.getAllowedRuntimeClassNames()); - - this.withDefaultRuntimeClassName(instance.getDefaultRuntimeClassName()); - } - - private List allowedRuntimeClassNames; - private java.lang.String defaultRuntimeClassName; - - public A addToAllowedRuntimeClassNames(Integer index, java.lang.String item) { - if (this.allowedRuntimeClassNames == null) { - this.allowedRuntimeClassNames = new ArrayList(); - } - this.allowedRuntimeClassNames.add(index, item); - return (A) this; - } - - public A setToAllowedRuntimeClassNames(java.lang.Integer index, java.lang.String item) { - if (this.allowedRuntimeClassNames == null) { - this.allowedRuntimeClassNames = new java.util.ArrayList(); - } - this.allowedRuntimeClassNames.set(index, item); - return (A) this; - } - - public A addToAllowedRuntimeClassNames(java.lang.String... items) { - if (this.allowedRuntimeClassNames == null) { - this.allowedRuntimeClassNames = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedRuntimeClassNames.add(item); - } - return (A) this; - } - - public A addAllToAllowedRuntimeClassNames(Collection items) { - if (this.allowedRuntimeClassNames == null) { - this.allowedRuntimeClassNames = new java.util.ArrayList(); - } - for (java.lang.String item : items) { - this.allowedRuntimeClassNames.add(item); - } - return (A) this; - } - - public A removeFromAllowedRuntimeClassNames(java.lang.String... items) { - for (java.lang.String item : items) { - if (this.allowedRuntimeClassNames != null) { - this.allowedRuntimeClassNames.remove(item); - } - } - return (A) this; - } - - public A removeAllFromAllowedRuntimeClassNames(java.util.Collection items) { - for (java.lang.String item : items) { - if (this.allowedRuntimeClassNames != null) { - this.allowedRuntimeClassNames.remove(item); - } - } - return (A) this; - } - - public java.util.List getAllowedRuntimeClassNames() { - return this.allowedRuntimeClassNames; - } - - public java.lang.String getAllowedRuntimeClassName(java.lang.Integer index) { - return this.allowedRuntimeClassNames.get(index); - } - - public java.lang.String getFirstAllowedRuntimeClassName() { - return this.allowedRuntimeClassNames.get(0); - } - - public java.lang.String getLastAllowedRuntimeClassName() { - return this.allowedRuntimeClassNames.get(allowedRuntimeClassNames.size() - 1); - } - - public java.lang.String getMatchingAllowedRuntimeClassName( - Predicate predicate) { - for (java.lang.String item : allowedRuntimeClassNames) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public Boolean hasMatchingAllowedRuntimeClassName( - java.util.function.Predicate predicate) { - for (java.lang.String item : allowedRuntimeClassNames) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAllowedRuntimeClassNames(java.util.List allowedRuntimeClassNames) { - if (allowedRuntimeClassNames != null) { - this.allowedRuntimeClassNames = new java.util.ArrayList(); - for (java.lang.String item : allowedRuntimeClassNames) { - this.addToAllowedRuntimeClassNames(item); - } - } else { - this.allowedRuntimeClassNames = null; - } - return (A) this; - } - - public A withAllowedRuntimeClassNames(java.lang.String... allowedRuntimeClassNames) { - if (this.allowedRuntimeClassNames != null) { - this.allowedRuntimeClassNames.clear(); - } - if (allowedRuntimeClassNames != null) { - for (java.lang.String item : allowedRuntimeClassNames) { - this.addToAllowedRuntimeClassNames(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasAllowedRuntimeClassNames() { - return allowedRuntimeClassNames != null && !allowedRuntimeClassNames.isEmpty(); - } - - public java.lang.String getDefaultRuntimeClassName() { - return this.defaultRuntimeClassName; - } - - public A withDefaultRuntimeClassName(java.lang.String defaultRuntimeClassName) { - this.defaultRuntimeClassName = defaultRuntimeClassName; - return (A) this; - } - - public java.lang.Boolean hasDefaultRuntimeClassName() { - return this.defaultRuntimeClassName != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1RuntimeClassStrategyOptionsFluentImpl that = - (V1beta1RuntimeClassStrategyOptionsFluentImpl) o; - if (allowedRuntimeClassNames != null - ? !allowedRuntimeClassNames.equals(that.allowedRuntimeClassNames) - : that.allowedRuntimeClassNames != null) return false; - if (defaultRuntimeClassName != null - ? !defaultRuntimeClassName.equals(that.defaultRuntimeClassName) - : that.defaultRuntimeClassName != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - allowedRuntimeClassNames, defaultRuntimeClassName, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (allowedRuntimeClassNames != null && !allowedRuntimeClassNames.isEmpty()) { - sb.append("allowedRuntimeClassNames:"); - sb.append(allowedRuntimeClassNames + ","); - } - if (defaultRuntimeClassName != null) { - sb.append("defaultRuntimeClassName:"); - sb.append(defaultRuntimeClassName); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsBuilder.java deleted file mode 100644 index b52c3ee38b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1SELinuxStrategyOptionsBuilder - extends V1beta1SELinuxStrategyOptionsFluentImpl - implements VisitableBuilder< - V1beta1SELinuxStrategyOptions, - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsBuilder> { - public V1beta1SELinuxStrategyOptionsBuilder() { - this(false); - } - - public V1beta1SELinuxStrategyOptionsBuilder(Boolean validationEnabled) { - this(new V1beta1SELinuxStrategyOptions(), validationEnabled); - } - - public V1beta1SELinuxStrategyOptionsBuilder(V1beta1SELinuxStrategyOptionsFluent fluent) { - this(fluent, false); - } - - public V1beta1SELinuxStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1SELinuxStrategyOptions(), validationEnabled); - } - - public V1beta1SELinuxStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions instance) { - this(fluent, instance, false); - } - - public V1beta1SELinuxStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withRule(instance.getRule()); - - fluent.withSeLinuxOptions(instance.getSeLinuxOptions()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1SELinuxStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions instance) { - this(instance, false); - } - - public V1beta1SELinuxStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withRule(instance.getRule()); - - this.withSeLinuxOptions(instance.getSeLinuxOptions()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions build() { - V1beta1SELinuxStrategyOptions buildable = new V1beta1SELinuxStrategyOptions(); - buildable.setRule(fluent.getRule()); - buildable.setSeLinuxOptions(fluent.getSeLinuxOptions()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsFluent.java deleted file mode 100644 index 566da28f28..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsFluent.java +++ /dev/null @@ -1,71 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V1beta1SELinuxStrategyOptionsFluent< - A extends V1beta1SELinuxStrategyOptionsFluent> - extends Fluent { - public String getRule(); - - public A withRule(java.lang.String rule); - - public Boolean hasRule(); - - /** - * This method has been deprecated, please use method buildSeLinuxOptions instead. - * - * @return The buildable object. - */ - @Deprecated - public V1SELinuxOptions getSeLinuxOptions(); - - public io.kubernetes.client.openapi.models.V1SELinuxOptions buildSeLinuxOptions(); - - public A withSeLinuxOptions(io.kubernetes.client.openapi.models.V1SELinuxOptions seLinuxOptions); - - public java.lang.Boolean hasSeLinuxOptions(); - - public V1beta1SELinuxStrategyOptionsFluent.SeLinuxOptionsNested withNewSeLinuxOptions(); - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - withNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item); - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - editSeLinuxOptions(); - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - editOrNewSeLinuxOptions(); - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - editOrNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item); - - public interface SeLinuxOptionsNested - extends Nested, - V1SELinuxOptionsFluent> { - public N and(); - - public N endSeLinuxOptions(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsFluentImpl.java deleted file mode 100644 index d0d75d8b73..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptionsFluentImpl.java +++ /dev/null @@ -1,165 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1SELinuxStrategyOptionsFluentImpl< - A extends V1beta1SELinuxStrategyOptionsFluent> - extends BaseFluent implements V1beta1SELinuxStrategyOptionsFluent { - public V1beta1SELinuxStrategyOptionsFluentImpl() {} - - public V1beta1SELinuxStrategyOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptions instance) { - this.withRule(instance.getRule()); - - this.withSeLinuxOptions(instance.getSeLinuxOptions()); - } - - private String rule; - private V1SELinuxOptionsBuilder seLinuxOptions; - - public java.lang.String getRule() { - return this.rule; - } - - public A withRule(java.lang.String rule) { - this.rule = rule; - return (A) this; - } - - public Boolean hasRule() { - return this.rule != null; - } - - /** - * This method has been deprecated, please use method buildSeLinuxOptions instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1SELinuxOptions getSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; - } - - public io.kubernetes.client.openapi.models.V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; - } - - public A withSeLinuxOptions(io.kubernetes.client.openapi.models.V1SELinuxOptions seLinuxOptions) { - _visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - _visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } - return (A) this; - } - - public java.lang.Boolean hasSeLinuxOptions() { - return this.seLinuxOptions != null; - } - - public V1beta1SELinuxStrategyOptionsFluent.SeLinuxOptionsNested withNewSeLinuxOptions() { - return new V1beta1SELinuxStrategyOptionsFluentImpl.SeLinuxOptionsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - withNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { - return new V1beta1SELinuxStrategyOptionsFluentImpl.SeLinuxOptionsNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - editSeLinuxOptions() { - return withNewSeLinuxOptionsLike(getSeLinuxOptions()); - } - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike( - getSeLinuxOptions() != null - ? getSeLinuxOptions() - : new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - A> - editOrNewSeLinuxOptionsLike(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(getSeLinuxOptions() != null ? getSeLinuxOptions() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1SELinuxStrategyOptionsFluentImpl that = (V1beta1SELinuxStrategyOptionsFluentImpl) o; - if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false; - if (seLinuxOptions != null - ? !seLinuxOptions.equals(that.seLinuxOptions) - : that.seLinuxOptions != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(rule, seLinuxOptions, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (rule != null) { - sb.append("rule:"); - sb.append(rule + ","); - } - if (seLinuxOptions != null) { - sb.append("seLinuxOptions:"); - sb.append(seLinuxOptions); - } - sb.append("}"); - return sb.toString(); - } - - class SeLinuxOptionsNestedImpl - extends V1SELinuxOptionsFluentImpl< - V1beta1SELinuxStrategyOptionsFluent.SeLinuxOptionsNested> - implements io.kubernetes.client.openapi.models.V1beta1SELinuxStrategyOptionsFluent - .SeLinuxOptionsNested< - N>, - Nested { - SeLinuxOptionsNestedImpl(io.kubernetes.client.openapi.models.V1SELinuxOptions item) { - this.builder = new V1SELinuxOptionsBuilder(this, item); - } - - SeLinuxOptionsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder(this); - } - - io.kubernetes.client.openapi.models.V1SELinuxOptionsBuilder builder; - - public N and() { - return (N) V1beta1SELinuxStrategyOptionsFluentImpl.this.withSeLinuxOptions(builder.build()); - } - - public N endSeLinuxOptions() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingBuilder.java deleted file mode 100644 index d647891e50..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1SchedulingBuilder extends V1beta1SchedulingFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1Scheduling, V1beta1SchedulingBuilder> { - public V1beta1SchedulingBuilder() { - this(false); - } - - public V1beta1SchedulingBuilder(Boolean validationEnabled) { - this(new V1beta1Scheduling(), validationEnabled); - } - - public V1beta1SchedulingBuilder(V1beta1SchedulingFluent fluent) { - this(fluent, false); - } - - public V1beta1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1beta1SchedulingFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1Scheduling(), validationEnabled); - } - - public V1beta1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1beta1SchedulingFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Scheduling instance) { - this(fluent, instance, false); - } - - public V1beta1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1beta1SchedulingFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Scheduling instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withNodeSelector(instance.getNodeSelector()); - - fluent.withTolerations(instance.getTolerations()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1SchedulingBuilder(io.kubernetes.client.openapi.models.V1beta1Scheduling instance) { - this(instance, false); - } - - public V1beta1SchedulingBuilder( - io.kubernetes.client.openapi.models.V1beta1Scheduling instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withNodeSelector(instance.getNodeSelector()); - - this.withTolerations(instance.getTolerations()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1SchedulingFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1Scheduling build() { - V1beta1Scheduling buildable = new V1beta1Scheduling(); - buildable.setNodeSelector(fluent.getNodeSelector()); - buildable.setTolerations(fluent.getTolerations()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingFluent.java deleted file mode 100644 index 2694cee089..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingFluent.java +++ /dev/null @@ -1,114 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1SchedulingFluent> extends Fluent { - public A addToNodeSelector(String key, java.lang.String value); - - public A addToNodeSelector(Map map); - - public A removeFromNodeSelector(java.lang.String key); - - public A removeFromNodeSelector(java.util.Map map); - - public java.util.Map getNodeSelector(); - - public A withNodeSelector(java.util.Map nodeSelector); - - public Boolean hasNodeSelector(); - - public A addToTolerations(Integer index, V1Toleration item); - - public A setToTolerations( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item); - - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - - public A addAllToTolerations(Collection items); - - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items); - - public A removeAllFromTolerations( - java.util.Collection items); - - public A removeMatchingFromTolerations(Predicate predicate); - - /** - * This method has been deprecated, please use method buildTolerations instead. - * - * @return The buildable object. - */ - @Deprecated - public List getTolerations(); - - public java.util.List buildTolerations(); - - public io.kubernetes.client.openapi.models.V1Toleration buildToleration(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1Toleration buildFirstToleration(); - - public io.kubernetes.client.openapi.models.V1Toleration buildLastToleration(); - - public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingToleration( - java.util.function.Predicate - predicate); - - public A withTolerations( - java.util.List tolerations); - - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations); - - public java.lang.Boolean hasTolerations(); - - public V1beta1SchedulingFluent.TolerationsNested addNewToleration(); - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - addNewTolerationLike(io.kubernetes.client.openapi.models.V1Toleration item); - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - setNewTolerationLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item); - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editToleration(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editFirstToleration(); - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editLastToleration(); - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editMatchingToleration( - java.util.function.Predicate - predicate); - - public interface TolerationsNested - extends Nested, V1TolerationFluent> { - public N and(); - - public N endToleration(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingFluentImpl.java deleted file mode 100644 index 2c9e8bb4fd..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SchedulingFluentImpl.java +++ /dev/null @@ -1,394 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1SchedulingFluentImpl> extends BaseFluent - implements V1beta1SchedulingFluent { - public V1beta1SchedulingFluentImpl() {} - - public V1beta1SchedulingFluentImpl( - io.kubernetes.client.openapi.models.V1beta1Scheduling instance) { - this.withNodeSelector(instance.getNodeSelector()); - - this.withTolerations(instance.getTolerations()); - } - - private Map nodeSelector; - private ArrayList tolerations; - - public A addToNodeSelector(java.lang.String key, java.lang.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; - } - - public A addToNodeSelector(java.util.Map map) { - if (this.nodeSelector == null && map != null) { - this.nodeSelector = new java.util.LinkedHashMap(); - } - if (map != null) { - this.nodeSelector.putAll(map); - } - return (A) this; - } - - public A removeFromNodeSelector(java.lang.String key) { - if (this.nodeSelector == null) { - return (A) this; - } - if (key != null && this.nodeSelector != null) { - this.nodeSelector.remove(key); - } - return (A) this; - } - - public A removeFromNodeSelector(java.util.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; - } - - public java.util.Map getNodeSelector() { - return this.nodeSelector; - } - - public A withNodeSelector(java.util.Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; - } else { - this.nodeSelector = new java.util.LinkedHashMap(nodeSelector); - } - return (A) this; - } - - public Boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - public A addToTolerations(Integer index, V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); - _visitables - .get("tolerations") - .add(index >= 0 ? index : _visitables.get("tolerations").size(), builder); - this.tolerations.add(index >= 0 ? index : tolerations.size(), builder); - return (A) this; - } - - public A setToTolerations( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { - if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); - if (index < 0 || index >= _visitables.get("tolerations").size()) { - _visitables.get("tolerations").add(builder); - } else { - _visitables.get("tolerations").set(index, builder); - } - if (index < 0 || index >= tolerations.size()) { - tolerations.add(builder); - } else { - tolerations.set(index, builder); - } - return (A) this; - } - - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) { - this.tolerations = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); - this.tolerations.add(builder); - } - return (A) this; - } - - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - if (this.tolerations != null) { - this.tolerations.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromTolerations( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1Toleration item : items) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = - new io.kubernetes.client.openapi.models.V1TolerationBuilder(item); - _visitables.get("tolerations").remove(builder); - if (this.tolerations != null) { - 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()) { - io.kubernetes.client.openapi.models.V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildTolerations instead. - * - * @return The buildable object. - */ - @Deprecated - public List getTolerations() { - return tolerations != null ? build(tolerations) : null; - } - - public java.util.List buildTolerations() { - return tolerations != null ? build(tolerations) : null; - } - - public io.kubernetes.client.openapi.models.V1Toleration buildToleration(java.lang.Integer index) { - return this.tolerations.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1Toleration buildFirstToleration() { - return this.tolerations.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1Toleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1Toleration buildMatchingToleration( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingToleration( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withTolerations( - java.util.List tolerations) { - if (this.tolerations != null) { - _visitables.get("tolerations").removeAll(this.tolerations); - } - if (tolerations != null) { - this.tolerations = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; - } - return (A) this; - } - - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - } - if (tolerations != null) { - for (io.kubernetes.client.openapi.models.V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasTolerations() { - return tolerations != null && !tolerations.isEmpty(); - } - - public V1beta1SchedulingFluent.TolerationsNested addNewToleration() { - return new V1beta1SchedulingFluentImpl.TolerationsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - addNewTolerationLike(io.kubernetes.client.openapi.models.V1Toleration item) { - return new V1beta1SchedulingFluentImpl.TolerationsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - setNewTolerationLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { - return new io.kubernetes.client.openapi.models.V1beta1SchedulingFluentImpl - .TolerationsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editToleration(java.lang.Integer index) { - if (tolerations.size() <= index) - throw new RuntimeException("Can't edit tolerations. Index exceeds size."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editFirstToleration() { - if (tolerations.size() == 0) - throw new RuntimeException("Can't edit first tolerations. The list is empty."); - return setNewTolerationLike(0, buildToleration(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.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 io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested - editMatchingToleration( - java.util.function.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("Can't edit matching tolerations. No match found."); - return setNewTolerationLike(index, buildToleration(index)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1SchedulingFluentImpl that = (V1beta1SchedulingFluentImpl) o; - if (nodeSelector != null ? !nodeSelector.equals(that.nodeSelector) : that.nodeSelector != null) - return false; - if (tolerations != null ? !tolerations.equals(that.tolerations) : that.tolerations != null) - return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(nodeSelector, tolerations, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nodeSelector != null && !nodeSelector.isEmpty()) { - sb.append("nodeSelector:"); - sb.append(nodeSelector + ","); - } - if (tolerations != null && !tolerations.isEmpty()) { - sb.append("tolerations:"); - sb.append(tolerations); - } - sb.append("}"); - return sb.toString(); - } - - class TolerationsNestedImpl - extends V1TolerationFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1SchedulingFluent.TolerationsNested, - Nested { - TolerationsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1Toleration item) { - this.index = index; - this.builder = new V1TolerationBuilder(this, item); - } - - TolerationsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1TolerationBuilder(this); - } - - io.kubernetes.client.openapi.models.V1TolerationBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) V1beta1SchedulingFluentImpl.this.setToTolerations(index, builder.build()); - } - - public N endToleration() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java index 18948e2b58..ad5f287a3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectBuilder.java @@ -16,9 +16,7 @@ public class V1beta1ServiceAccountSubjectBuilder extends V1beta1ServiceAccountSubjectFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject, - V1beta1ServiceAccountSubjectBuilder> { + implements VisitableBuilder { public V1beta1ServiceAccountSubjectBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubjectFluent } public V1beta1ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta1ServiceAccountSubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1ServiceAccountSubject(), validationEnabled); } public V1beta1ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject instance) { + V1beta1ServiceAccountSubjectFluent fluent, V1beta1ServiceAccountSubject instance) { this(fluent, instance, false); } public V1beta1ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject instance, - java.lang.Boolean validationEnabled) { + V1beta1ServiceAccountSubjectFluent fluent, + V1beta1ServiceAccountSubject instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,12 @@ public V1beta1ServiceAccountSubjectBuilder( this.validationEnabled = validationEnabled; } - public V1beta1ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject instance) { + public V1beta1ServiceAccountSubjectBuilder(V1beta1ServiceAccountSubject instance) { this(instance, false); } public V1beta1ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject instance, - java.lang.Boolean validationEnabled) { + V1beta1ServiceAccountSubject instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +65,10 @@ public V1beta1ServiceAccountSubjectBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1ServiceAccountSubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject build() { + public V1beta1ServiceAccountSubject build() { V1beta1ServiceAccountSubject buildable = new V1beta1ServiceAccountSubject(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java index e31175f5fa..7f99691759 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluent.java @@ -19,13 +19,13 @@ public interface V1beta1ServiceAccountSubjectFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java index ced978cd30..c356cc1391 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubjectFluentImpl.java @@ -20,21 +20,20 @@ public class V1beta1ServiceAccountSubjectFluentImpl implements V1beta1ServiceAccountSubjectFluent { public V1beta1ServiceAccountSubjectFluentImpl() {} - public V1beta1ServiceAccountSubjectFluentImpl( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject instance) { + public V1beta1ServiceAccountSubjectFluentImpl(V1beta1ServiceAccountSubject instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); } private String name; - private java.lang.String namespace; + private String namespace; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } @@ -70,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(name, namespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java index f7adfb7467..fb2e041979 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectBuilder.java @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1beta1SubjectBuilder extends V1beta1SubjectFluentImpl - implements VisitableBuilder< - V1beta1Subject, io.kubernetes.client.openapi.models.V1beta1SubjectBuilder> { + implements VisitableBuilder { public V1beta1SubjectBuilder() { this(false); } @@ -29,22 +28,16 @@ public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent) { this(fluent, false); } - public V1beta1SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1SubjectFluent fluent, - java.lang.Boolean validationEnabled) { + public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1Subject(), validationEnabled); } - public V1beta1SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1SubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Subject instance) { + public V1beta1SubjectBuilder(V1beta1SubjectFluent fluent, V1beta1Subject instance) { this(fluent, instance, false); } public V1beta1SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1SubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1Subject instance, - java.lang.Boolean validationEnabled) { + V1beta1SubjectFluent fluent, V1beta1Subject instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withGroup(instance.getGroup()); @@ -57,13 +50,11 @@ public V1beta1SubjectBuilder( this.validationEnabled = validationEnabled; } - public V1beta1SubjectBuilder(io.kubernetes.client.openapi.models.V1beta1Subject instance) { + public V1beta1SubjectBuilder(V1beta1Subject instance) { this(instance, false); } - public V1beta1SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1Subject instance, - java.lang.Boolean validationEnabled) { + public V1beta1SubjectBuilder(V1beta1Subject instance, Boolean validationEnabled) { this.fluent = this; this.withGroup(instance.getGroup()); @@ -76,10 +67,10 @@ public V1beta1SubjectBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1SubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1SubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1Subject build() { + public V1beta1Subject build() { V1beta1Subject buildable = new V1beta1Subject(); buildable.setGroup(fluent.getGroup()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java index d9a915fd4d..8cc86b965a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluent.java @@ -26,86 +26,77 @@ public interface V1beta1SubjectFluent> extends @Deprecated public V1beta1GroupSubject getGroup(); - public io.kubernetes.client.openapi.models.V1beta1GroupSubject buildGroup(); + public V1beta1GroupSubject buildGroup(); - public A withGroup(io.kubernetes.client.openapi.models.V1beta1GroupSubject group); + public A withGroup(V1beta1GroupSubject group); public Boolean hasGroup(); public V1beta1SubjectFluent.GroupNested withNewGroup(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested withNewGroupLike( - io.kubernetes.client.openapi.models.V1beta1GroupSubject item); + public V1beta1SubjectFluent.GroupNested withNewGroupLike(V1beta1GroupSubject item); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested editGroup(); + public V1beta1SubjectFluent.GroupNested editGroup(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested editOrNewGroup(); + public V1beta1SubjectFluent.GroupNested editOrNewGroup(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested editOrNewGroupLike( - io.kubernetes.client.openapi.models.V1beta1GroupSubject item); + public V1beta1SubjectFluent.GroupNested editOrNewGroupLike(V1beta1GroupSubject item); public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildServiceAccount instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1ServiceAccountSubject getServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject buildServiceAccount(); + public V1beta1ServiceAccountSubject buildServiceAccount(); - public A withServiceAccount( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject serviceAccount); + public A withServiceAccount(V1beta1ServiceAccountSubject serviceAccount); - public java.lang.Boolean hasServiceAccount(); + public Boolean hasServiceAccount(); public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - withNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject item); + public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccountLike( + V1beta1ServiceAccountSubject item); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - editServiceAccount(); + public V1beta1SubjectFluent.ServiceAccountNested editServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - editOrNewServiceAccount(); + public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - editOrNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject item); + public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( + V1beta1ServiceAccountSubject item); /** * This method has been deprecated, please use method buildUser instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1UserSubject getUser(); - public io.kubernetes.client.openapi.models.V1beta1UserSubject buildUser(); + public V1beta1UserSubject buildUser(); - public A withUser(io.kubernetes.client.openapi.models.V1beta1UserSubject user); + public A withUser(V1beta1UserSubject user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public V1beta1SubjectFluent.UserNested withNewUser(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested withNewUserLike( - io.kubernetes.client.openapi.models.V1beta1UserSubject item); + public V1beta1SubjectFluent.UserNested withNewUserLike(V1beta1UserSubject item); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested editUser(); + public V1beta1SubjectFluent.UserNested editUser(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested editOrNewUser(); + public V1beta1SubjectFluent.UserNested editOrNewUser(); - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested editOrNewUserLike( - io.kubernetes.client.openapi.models.V1beta1UserSubject item); + public V1beta1SubjectFluent.UserNested editOrNewUserLike(V1beta1UserSubject item); public interface GroupNested extends Nested, V1beta1GroupSubjectFluent> { @@ -115,7 +106,7 @@ public interface GroupNested } public interface ServiceAccountNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta1ServiceAccountSubjectFluent> { public N and(); @@ -123,8 +114,7 @@ public interface ServiceAccountNested } public interface UserNested - extends io.kubernetes.client.fluent.Nested, - V1beta1UserSubjectFluent> { + extends Nested, V1beta1UserSubjectFluent> { public N and(); public N endUser(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java index c3e6ea3f5b..4faa4631c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SubjectFluentImpl.java @@ -21,7 +21,7 @@ public class V1beta1SubjectFluentImpl> extends implements V1beta1SubjectFluent { public V1beta1SubjectFluentImpl() {} - public V1beta1SubjectFluentImpl(io.kubernetes.client.openapi.models.V1beta1Subject instance) { + public V1beta1SubjectFluentImpl(V1beta1Subject instance) { this.withGroup(instance.getGroup()); this.withKind(instance.getKind()); @@ -46,15 +46,18 @@ public V1beta1GroupSubject getGroup() { return this.group != null ? this.group.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1GroupSubject buildGroup() { + public V1beta1GroupSubject buildGroup() { return this.group != null ? this.group.build() : null; } - public A withGroup(io.kubernetes.client.openapi.models.V1beta1GroupSubject group) { + public A withGroup(V1beta1GroupSubject group) { _visitables.get("group").remove(this.group); if (group != null) { - this.group = new io.kubernetes.client.openapi.models.V1beta1GroupSubjectBuilder(group); + this.group = new V1beta1GroupSubjectBuilder(group); _visitables.get("group").add(this.group); + } else { + this.group = null; + _visitables.get("group").remove(this.group); } return (A) this; } @@ -67,37 +70,33 @@ public V1beta1SubjectFluent.GroupNested withNewGroup() { return new V1beta1SubjectFluentImpl.GroupNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested withNewGroupLike( - io.kubernetes.client.openapi.models.V1beta1GroupSubject item) { + public V1beta1SubjectFluent.GroupNested withNewGroupLike(V1beta1GroupSubject item) { return new V1beta1SubjectFluentImpl.GroupNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested editGroup() { + public V1beta1SubjectFluent.GroupNested editGroup() { return withNewGroupLike(getGroup()); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested editOrNewGroup() { + public V1beta1SubjectFluent.GroupNested editOrNewGroup() { return withNewGroupLike( - getGroup() != null - ? getGroup() - : new io.kubernetes.client.openapi.models.V1beta1GroupSubjectBuilder().build()); + getGroup() != null ? getGroup() : new V1beta1GroupSubjectBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested editOrNewGroupLike( - io.kubernetes.client.openapi.models.V1beta1GroupSubject item) { + public V1beta1SubjectFluent.GroupNested editOrNewGroupLike(V1beta1GroupSubject item) { return withNewGroupLike(getGroup() != null ? getGroup() : item); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -106,28 +105,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta1ServiceAccountSubject getServiceAccount() { return this.serviceAccount != null ? this.serviceAccount.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject buildServiceAccount() { + public V1beta1ServiceAccountSubject buildServiceAccount() { return this.serviceAccount != null ? this.serviceAccount.build() : null; } - public A withServiceAccount( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject serviceAccount) { + public A withServiceAccount(V1beta1ServiceAccountSubject serviceAccount) { _visitables.get("serviceAccount").remove(this.serviceAccount); if (serviceAccount != null) { - this.serviceAccount = - new io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectBuilder( - serviceAccount); + this.serviceAccount = new V1beta1ServiceAccountSubjectBuilder(serviceAccount); _visitables.get("serviceAccount").add(this.serviceAccount); + } else { + this.serviceAccount = null; + _visitables.get("serviceAccount").remove(this.serviceAccount); } return (A) this; } - public java.lang.Boolean hasServiceAccount() { + public Boolean hasServiceAccount() { return this.serviceAccount != null; } @@ -135,30 +134,24 @@ public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccount() { return new V1beta1SubjectFluentImpl.ServiceAccountNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - withNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject item) { - return new io.kubernetes.client.openapi.models.V1beta1SubjectFluentImpl - .ServiceAccountNestedImpl(item); + public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccountLike( + V1beta1ServiceAccountSubject item) { + return new V1beta1SubjectFluentImpl.ServiceAccountNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - editServiceAccount() { + public V1beta1SubjectFluent.ServiceAccountNested editServiceAccount() { return withNewServiceAccountLike(getServiceAccount()); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - editOrNewServiceAccount() { + public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccount() { return withNewServiceAccountLike( getServiceAccount() != null ? getServiceAccount() - : new io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectBuilder() - .build()); + : new V1beta1ServiceAccountSubjectBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested - editOrNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubject item) { + public V1beta1SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( + V1beta1ServiceAccountSubject item) { return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount() : item); } @@ -167,25 +160,28 @@ public V1beta1SubjectFluent.ServiceAccountNested withNewServiceAccount() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta1UserSubject getUser() { + @Deprecated + public V1beta1UserSubject getUser() { return this.user != null ? this.user.build() : null; } - public io.kubernetes.client.openapi.models.V1beta1UserSubject buildUser() { + public V1beta1UserSubject buildUser() { return this.user != null ? this.user.build() : null; } - public A withUser(io.kubernetes.client.openapi.models.V1beta1UserSubject user) { + public A withUser(V1beta1UserSubject user) { _visitables.get("user").remove(this.user); if (user != null) { this.user = new V1beta1UserSubjectBuilder(user); _visitables.get("user").add(this.user); + } else { + this.user = null; + _visitables.get("user").remove(this.user); } return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -193,24 +189,19 @@ public V1beta1SubjectFluent.UserNested withNewUser() { return new V1beta1SubjectFluentImpl.UserNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested withNewUserLike( - io.kubernetes.client.openapi.models.V1beta1UserSubject item) { - return new io.kubernetes.client.openapi.models.V1beta1SubjectFluentImpl.UserNestedImpl(item); + public V1beta1SubjectFluent.UserNested withNewUserLike(V1beta1UserSubject item) { + return new V1beta1SubjectFluentImpl.UserNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested editUser() { + public V1beta1SubjectFluent.UserNested editUser() { return withNewUserLike(getUser()); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested editOrNewUser() { - return withNewUserLike( - getUser() != null - ? getUser() - : new io.kubernetes.client.openapi.models.V1beta1UserSubjectBuilder().build()); + public V1beta1SubjectFluent.UserNested editOrNewUser() { + return withNewUserLike(getUser() != null ? getUser() : new V1beta1UserSubjectBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested editOrNewUserLike( - io.kubernetes.client.openapi.models.V1beta1UserSubject item) { + public V1beta1SubjectFluent.UserNested editOrNewUserLike(V1beta1UserSubject item) { return withNewUserLike(getUser() != null ? getUser() : item); } @@ -231,7 +222,7 @@ public int hashCode() { return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (group != null) { @@ -256,17 +247,16 @@ public java.lang.String toString() { class GroupNestedImpl extends V1beta1GroupSubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1SubjectFluent.GroupNested, - Nested { + implements V1beta1SubjectFluent.GroupNested, Nested { GroupNestedImpl(V1beta1GroupSubject item) { this.builder = new V1beta1GroupSubjectBuilder(this, item); } GroupNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1GroupSubjectBuilder(this); + this.builder = new V1beta1GroupSubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1GroupSubjectBuilder builder; + V1beta1GroupSubjectBuilder builder; public N and() { return (N) V1beta1SubjectFluentImpl.this.withGroup(builder.build()); @@ -279,18 +269,16 @@ public N endGroup() { class ServiceAccountNestedImpl extends V1beta1ServiceAccountSubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1SubjectFluent.ServiceAccountNested, - io.kubernetes.client.fluent.Nested { + implements V1beta1SubjectFluent.ServiceAccountNested, Nested { ServiceAccountNestedImpl(V1beta1ServiceAccountSubject item) { this.builder = new V1beta1ServiceAccountSubjectBuilder(this, item); } ServiceAccountNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectBuilder(this); + this.builder = new V1beta1ServiceAccountSubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1ServiceAccountSubjectBuilder builder; + V1beta1ServiceAccountSubjectBuilder builder; public N and() { return (N) V1beta1SubjectFluentImpl.this.withServiceAccount(builder.build()); @@ -302,17 +290,16 @@ public N endServiceAccount() { } class UserNestedImpl extends V1beta1UserSubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta1SubjectFluent.UserNested, - io.kubernetes.client.fluent.Nested { + implements V1beta1SubjectFluent.UserNested, Nested { UserNestedImpl(V1beta1UserSubject item) { this.builder = new V1beta1UserSubjectBuilder(this, item); } UserNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta1UserSubjectBuilder(this); + this.builder = new V1beta1UserSubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta1UserSubjectBuilder builder; + V1beta1UserSubjectBuilder builder; public N and() { return (N) V1beta1SubjectFluentImpl.this.withUser(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsBuilder.java deleted file mode 100644 index bd5c937179..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V1beta1SupplementalGroupsStrategyOptionsBuilder - extends V1beta1SupplementalGroupsStrategyOptionsFluentImpl< - V1beta1SupplementalGroupsStrategyOptionsBuilder> - implements VisitableBuilder< - V1beta1SupplementalGroupsStrategyOptions, - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsBuilder> { - public V1beta1SupplementalGroupsStrategyOptionsBuilder() { - this(false); - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder(Boolean validationEnabled) { - this(new V1beta1SupplementalGroupsStrategyOptions(), validationEnabled); - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder( - V1beta1SupplementalGroupsStrategyOptionsFluent fluent) { - this(fluent, false); - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V1beta1SupplementalGroupsStrategyOptions(), validationEnabled); - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions instance) { - this(fluent, instance, false); - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent fluent, - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withRanges(instance.getRanges()); - - fluent.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions instance) { - this(instance, false); - } - - public V1beta1SupplementalGroupsStrategyOptionsBuilder( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions build() { - V1beta1SupplementalGroupsStrategyOptions buildable = - new V1beta1SupplementalGroupsStrategyOptions(); - buildable.setRanges(fluent.getRanges()); - buildable.setRule(fluent.getRule()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsFluent.java deleted file mode 100644 index 520ef59d93..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsFluent.java +++ /dev/null @@ -1,119 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V1beta1SupplementalGroupsStrategyOptionsFluent< - A extends V1beta1SupplementalGroupsStrategyOptionsFluent> - extends Fluent { - public A addToRanges(Integer index, V1beta1IDRange item); - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A addAllToRanges(Collection items); - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items); - - public A removeAllFromRanges( - java.util.Collection items); - - public A removeMatchingFromRanges(Predicate predicate); - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges(); - - public java.util.List buildRanges(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate); - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate); - - public A withRanges(java.util.List ranges); - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges); - - public java.lang.Boolean hasRanges(); - - public V1beta1SupplementalGroupsStrategyOptionsFluent.RangesNested addNewRange(); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editRange(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editFirstRange(); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editLastRange(); - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editMatchingRange( - java.util.function.Predicate - predicate); - - public String getRule(); - - public A withRule(java.lang.String rule); - - public java.lang.Boolean hasRule(); - - public interface RangesNested - extends Nested, - V1beta1IDRangeFluent> { - public N and(); - - public N endRange(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsFluentImpl.java deleted file mode 100644 index 83058a2834..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptionsFluentImpl.java +++ /dev/null @@ -1,357 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V1beta1SupplementalGroupsStrategyOptionsFluentImpl< - A extends V1beta1SupplementalGroupsStrategyOptionsFluent> - extends BaseFluent implements V1beta1SupplementalGroupsStrategyOptionsFluent { - public V1beta1SupplementalGroupsStrategyOptionsFluentImpl() {} - - public V1beta1SupplementalGroupsStrategyOptionsFluentImpl( - io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptions instance) { - this.withRanges(instance.getRanges()); - - this.withRule(instance.getRule()); - } - - private ArrayList ranges; - private String rule; - - public A addToRanges(Integer index, V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(index >= 0 ? index : _visitables.get("ranges").size(), builder); - this.ranges.add(index >= 0 ? index : ranges.size(), builder); - return (A) this; - } - - public A setToRanges( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - if (index < 0 || index >= _visitables.get("ranges").size()) { - _visitables.get("ranges").add(builder); - } else { - _visitables.get("ranges").set(index, builder); - } - if (index < 0 || index >= ranges.size()) { - ranges.add(builder); - } else { - ranges.set(index, builder); - } - return (A) this; - } - - public A addToRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A addAllToRanges(Collection items) { - if (this.ranges == null) { - this.ranges = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").add(builder); - this.ranges.add(builder); - } - return (A) this; - } - - public A removeFromRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromRanges( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : items) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = - new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(item); - _visitables.get("ranges").remove(builder); - if (this.ranges != null) { - this.ranges.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromRanges( - Predicate predicate) { - if (ranges == null) return (A) this; - final Iterator each = - ranges.iterator(); - final List visitables = _visitables.get("ranges"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildRanges instead. - * - * @return The buildable object. - */ - @Deprecated - public List getRanges() { - return ranges != null ? build(ranges) : null; - } - - public java.util.List buildRanges() { - return ranges != null ? build(ranges) : null; - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildRange(java.lang.Integer index) { - return this.ranges.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildFirstRange() { - return this.ranges.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildLastRange() { - return this.ranges.get(ranges.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V1beta1IDRange buildMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingRange( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder item : ranges) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withRanges(java.util.List ranges) { - if (this.ranges != null) { - _visitables.get("ranges").removeAll(this.ranges); - } - if (ranges != null) { - this.ranges = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } else { - this.ranges = null; - } - return (A) this; - } - - public A withRanges(io.kubernetes.client.openapi.models.V1beta1IDRange... ranges) { - if (this.ranges != null) { - this.ranges.clear(); - } - if (ranges != null) { - for (io.kubernetes.client.openapi.models.V1beta1IDRange item : ranges) { - this.addToRanges(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasRanges() { - return ranges != null && !ranges.isEmpty(); - } - - public V1beta1SupplementalGroupsStrategyOptionsFluent.RangesNested addNewRange() { - return new V1beta1SupplementalGroupsStrategyOptionsFluentImpl.RangesNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - addNewRangeLike(io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new V1beta1SupplementalGroupsStrategyOptionsFluentImpl.RangesNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - setNewRangeLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta1IDRange item) { - return new io.kubernetes.client.openapi.models - .V1beta1SupplementalGroupsStrategyOptionsFluentImpl.RangesNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editRange(java.lang.Integer index) { - if (ranges.size() <= index) - throw new RuntimeException("Can't edit ranges. Index exceeds size."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editFirstRange() { - if (ranges.size() == 0) - throw new RuntimeException("Can't edit first ranges. The list is empty."); - return setNewRangeLike(0, buildRange(0)); - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editLastRange() { - int index = ranges.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ranges. The list is empty."); - return setNewRangeLike(index, buildRange(index)); - } - - public io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - A> - editMatchingRange( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < ranges.size(); i++) { - if (predicate.test(ranges.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching ranges. No match found."); - return setNewRangeLike(index, buildRange(index)); - } - - public java.lang.String getRule() { - return this.rule; - } - - public A withRule(java.lang.String rule) { - this.rule = rule; - return (A) this; - } - - public java.lang.Boolean hasRule() { - return this.rule != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V1beta1SupplementalGroupsStrategyOptionsFluentImpl that = - (V1beta1SupplementalGroupsStrategyOptionsFluentImpl) o; - if (ranges != null ? !ranges.equals(that.ranges) : that.ranges != null) return false; - if (rule != null ? !rule.equals(that.rule) : that.rule != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ranges, rule, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ranges != null && !ranges.isEmpty()) { - sb.append("ranges:"); - sb.append(ranges + ","); - } - if (rule != null) { - sb.append("rule:"); - sb.append(rule); - } - sb.append("}"); - return sb.toString(); - } - - class RangesNestedImpl - extends V1beta1IDRangeFluentImpl< - V1beta1SupplementalGroupsStrategyOptionsFluent.RangesNested> - implements io.kubernetes.client.openapi.models.V1beta1SupplementalGroupsStrategyOptionsFluent - .RangesNested< - N>, - Nested { - RangesNestedImpl(java.lang.Integer index, V1beta1IDRange item) { - this.index = index; - this.builder = new V1beta1IDRangeBuilder(this, item); - } - - RangesNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder(this); - } - - io.kubernetes.client.openapi.models.V1beta1IDRangeBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V1beta1SupplementalGroupsStrategyOptionsFluentImpl.this.setToRanges( - index, builder.build()); - } - - public N endRange() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java index 323852fccd..6594ceb55d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectBuilder.java @@ -16,8 +16,7 @@ public class V1beta1UserSubjectBuilder extends V1beta1UserSubjectFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta1UserSubject, V1beta1UserSubjectBuilder> { + implements VisitableBuilder { public V1beta1UserSubjectBuilder() { this(false); } @@ -30,46 +29,38 @@ public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent) { this(fluent, false); } - public V1beta1UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1UserSubjectFluent fluent, - java.lang.Boolean validationEnabled) { + public V1beta1UserSubjectBuilder(V1beta1UserSubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta1UserSubject(), validationEnabled); } public V1beta1UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1UserSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1UserSubject instance) { + V1beta1UserSubjectFluent fluent, V1beta1UserSubject instance) { this(fluent, instance, false); } public V1beta1UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1UserSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta1UserSubject instance, - java.lang.Boolean validationEnabled) { + V1beta1UserSubjectFluent fluent, V1beta1UserSubject instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1beta1UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1UserSubject instance) { + public V1beta1UserSubjectBuilder(V1beta1UserSubject instance) { this(instance, false); } - public V1beta1UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta1UserSubject instance, - java.lang.Boolean validationEnabled) { + public V1beta1UserSubjectBuilder(V1beta1UserSubject instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta1UserSubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta1UserSubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta1UserSubject build() { + public V1beta1UserSubject build() { V1beta1UserSubject buildable = new V1beta1UserSubject(); buildable.setName(fluent.getName()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java index 1f78b0ecd1..b826d33022 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluent.java @@ -18,7 +18,7 @@ public interface V1beta1UserSubjectFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java index cd5f20f050..9c20b7aa23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubjectFluentImpl.java @@ -20,18 +20,17 @@ public class V1beta1UserSubjectFluentImpl> extends BaseFluent implements V1beta1UserSubjectFluent { public V1beta1UserSubjectFluentImpl() {} - public V1beta1UserSubjectFluentImpl( - io.kubernetes.client.openapi.models.V1beta1UserSubject instance) { + public V1beta1UserSubjectFluentImpl(V1beta1UserSubject instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -52,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java index e034bf3e0f..c6f7ceb446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodBuilder.java @@ -17,8 +17,7 @@ public class V1beta2FlowDistinguisherMethodBuilder extends V1beta2FlowDistinguisherMethodFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod, - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodBuilder> { + V1beta2FlowDistinguisherMethod, V1beta2FlowDistinguisherMethodBuilder> { public V1beta2FlowDistinguisherMethodBuilder() { this(false); } @@ -32,45 +31,41 @@ public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethodFluen } public V1beta2FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2FlowDistinguisherMethodFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2FlowDistinguisherMethod(), validationEnabled); } public V1beta2FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod instance) { + V1beta2FlowDistinguisherMethodFluent fluent, V1beta2FlowDistinguisherMethod instance) { this(fluent, instance, false); } public V1beta2FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowDistinguisherMethodFluent fluent, + V1beta2FlowDistinguisherMethod instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withType(instance.getType()); this.validationEnabled = validationEnabled; } - public V1beta2FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod instance) { + public V1beta2FlowDistinguisherMethodBuilder(V1beta2FlowDistinguisherMethod instance) { this(instance, false); } public V1beta2FlowDistinguisherMethodBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowDistinguisherMethod instance, Boolean validationEnabled) { this.fluent = this; this.withType(instance.getType()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2FlowDistinguisherMethodFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod build() { + public V1beta2FlowDistinguisherMethod build() { V1beta2FlowDistinguisherMethod buildable = new V1beta2FlowDistinguisherMethod(); buildable.setType(fluent.getType()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java index 1a1ff982af..36d4eb3470 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluent.java @@ -20,7 +20,7 @@ public interface V1beta2FlowDistinguisherMethodFluent< extends Fluent { public String getType(); - public A withType(java.lang.String type); + public A withType(String type); public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java index 35c750b825..c793cde710 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethodFluentImpl.java @@ -21,18 +21,17 @@ public class V1beta2FlowDistinguisherMethodFluentImpl< extends BaseFluent implements V1beta2FlowDistinguisherMethodFluent { public V1beta2FlowDistinguisherMethodFluentImpl() {} - public V1beta2FlowDistinguisherMethodFluentImpl( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod instance) { + public V1beta2FlowDistinguisherMethodFluentImpl(V1beta2FlowDistinguisherMethod instance) { this.withType(instance.getType()); } private String type; - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } @@ -53,7 +52,7 @@ public int hashCode() { return java.util.Objects.hash(type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (type != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java index 458be6f9e7..37d484e50b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1beta2FlowSchemaBuilder extends V1beta2FlowSchemaFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2FlowSchema, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder> { + implements VisitableBuilder { public V1beta2FlowSchemaBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent) { this(fluent, false); } - public V1beta2FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent fluent, - java.lang.Boolean validationEnabled) { + public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2FlowSchema(), validationEnabled); } - public V1beta2FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchema instance) { + public V1beta2FlowSchemaBuilder(V1beta2FlowSchemaFluent fluent, V1beta2FlowSchema instance) { this(fluent, instance, false); } public V1beta2FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchema instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaFluent fluent, V1beta2FlowSchema instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,13 +52,11 @@ public V1beta2FlowSchemaBuilder( this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaBuilder(io.kubernetes.client.openapi.models.V1beta2FlowSchema instance) { + public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance) { this(instance, false); } - public V1beta2FlowSchemaBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchema instance, - java.lang.Boolean validationEnabled) { + public V1beta2FlowSchemaBuilder(V1beta2FlowSchema instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +71,10 @@ public V1beta2FlowSchemaBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2FlowSchemaFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2FlowSchema build() { + public V1beta2FlowSchema build() { V1beta2FlowSchema buildable = new V1beta2FlowSchema(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java index e7004ef683..8ee9286597 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionBuilder.java @@ -16,9 +16,7 @@ public class V1beta2FlowSchemaConditionBuilder extends V1beta2FlowSchemaConditionFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition, - V1beta2FlowSchemaConditionBuilder> { + implements VisitableBuilder { public V1beta2FlowSchemaConditionBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaConditionFluent flu } public V1beta2FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaCondition(), validationEnabled); } public V1beta2FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition instance) { + V1beta2FlowSchemaConditionFluent fluent, V1beta2FlowSchemaCondition instance) { this(fluent, instance, false); } public V1beta2FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaConditionFluent fluent, + V1beta2FlowSchemaCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -61,14 +57,12 @@ public V1beta2FlowSchemaConditionBuilder( this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition instance) { + public V1beta2FlowSchemaConditionBuilder(V1beta2FlowSchemaCondition instance) { this(instance, false); } public V1beta2FlowSchemaConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -83,10 +77,10 @@ public V1beta2FlowSchemaConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2FlowSchemaConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition build() { + public V1beta2FlowSchemaCondition build() { V1beta2FlowSchemaCondition buildable = new V1beta2FlowSchemaCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java index 46f322a2bc..5cd6137483 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluent.java @@ -20,31 +20,31 @@ public interface V1beta2FlowSchemaConditionFluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java index 0ae403ff40..4c7345221e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaConditionFluentImpl.java @@ -21,8 +21,7 @@ public class V1beta2FlowSchemaConditionFluentImpl implements V1beta2FlowSchemaConditionFluent { public V1beta2FlowSchemaConditionFluentImpl() {} - public V1beta2FlowSchemaConditionFluentImpl( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition instance) { + public V1beta2FlowSchemaConditionFluentImpl(V1beta2FlowSchemaCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -36,15 +35,15 @@ public V1beta2FlowSchemaConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -53,55 +52,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -124,7 +123,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java index ce8ed2b46c..3250959b5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluent.java @@ -19,15 +19,15 @@ public interface V1beta2FlowSchemaFluent> extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -37,78 +37,69 @@ public interface V1beta2FlowSchemaFluent> e @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta2FlowSchemaFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta2FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - editMetadata(); + public V1beta2FlowSchemaFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - editOrNewMetadata(); + public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2FlowSchemaSpec getSpec(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec buildSpec(); + public V1beta2FlowSchemaSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec spec); + public A withSpec(V1beta2FlowSchemaSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1beta2FlowSchemaFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec item); + public V1beta2FlowSchemaFluent.SpecNested withNewSpecLike(V1beta2FlowSchemaSpec item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested editSpec(); + public V1beta2FlowSchemaFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested editOrNewSpec(); + public V1beta2FlowSchemaFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec item); + public V1beta2FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta2FlowSchemaSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2FlowSchemaStatus getStatus(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus buildStatus(); + public V1beta2FlowSchemaStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus status); + public A withStatus(V1beta2FlowSchemaStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1beta2FlowSchemaFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus item); + public V1beta2FlowSchemaFluent.StatusNested withNewStatusLike(V1beta2FlowSchemaStatus item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested editStatus(); + public V1beta2FlowSchemaFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested - editOrNewStatus(); + public V1beta2FlowSchemaFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus item); + public V1beta2FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta2FlowSchemaStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -118,16 +109,14 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V1beta2FlowSchemaSpecFluent> { + extends Nested, V1beta2FlowSchemaSpecFluent> { public N and(); public N endSpec(); } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V1beta2FlowSchemaStatusFluent> { + extends Nested, V1beta2FlowSchemaStatusFluent> { public N and(); public N endStatus(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java index 31e63801fb..f3843f11bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaFluentImpl.java @@ -21,8 +21,7 @@ public class V1beta2FlowSchemaFluentImpl> e implements V1beta2FlowSchemaFluent { public V1beta2FlowSchemaFluentImpl() {} - public V1beta2FlowSchemaFluentImpl( - io.kubernetes.client.openapi.models.V1beta2FlowSchema instance) { + public V1beta2FlowSchemaFluentImpl(V1beta2FlowSchema instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V1beta2FlowSchemaFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1beta2FlowSchemaSpecBuilder spec; private V1beta2FlowSchemaStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,20 @@ public V1beta2FlowSchemaFluent.MetadataNested withNewMetadata() { return new V1beta2FlowSchemaFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta2FlowSchemaFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V1beta2FlowSchemaFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - editMetadata() { + public V1beta2FlowSchemaFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - editOrNewMetadata() { + public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta2FlowSchemaFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,25 +121,28 @@ public V1beta2FlowSchemaFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2FlowSchemaSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec buildSpec() { + public V1beta2FlowSchemaSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec spec) { + public A withSpec(V1beta2FlowSchemaSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = new io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecBuilder(spec); + this.spec = new V1beta2FlowSchemaSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -151,24 +150,20 @@ public V1beta2FlowSchemaFluent.SpecNested withNewSpec() { return new V1beta2FlowSchemaFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluentImpl.SpecNestedImpl(item); + public V1beta2FlowSchemaFluent.SpecNested withNewSpecLike(V1beta2FlowSchemaSpec item) { + return new V1beta2FlowSchemaFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested editSpec() { + public V1beta2FlowSchemaFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested editOrNewSpec() { + public V1beta2FlowSchemaFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecBuilder().build()); + getSpec() != null ? getSpec() : new V1beta2FlowSchemaSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec item) { + public V1beta2FlowSchemaFluent.SpecNested editOrNewSpecLike(V1beta2FlowSchemaSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -177,25 +172,28 @@ public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus getStatus() { + @Deprecated + public V1beta2FlowSchemaStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus buildStatus() { + public V1beta2FlowSchemaStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus status) { + public A withStatus(V1beta2FlowSchemaStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1beta2FlowSchemaStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -203,26 +201,20 @@ public V1beta2FlowSchemaFluent.StatusNested withNewStatus() { return new V1beta2FlowSchemaFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluentImpl.StatusNestedImpl( - item); + public V1beta2FlowSchemaFluent.StatusNested withNewStatusLike(V1beta2FlowSchemaStatus item) { + return new V1beta2FlowSchemaFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested editStatus() { + public V1beta2FlowSchemaFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested - editOrNewStatus() { + public V1beta2FlowSchemaFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusBuilder().build()); + getStatus() != null ? getStatus() : new V1beta2FlowSchemaStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus item) { + public V1beta2FlowSchemaFluent.StatusNested editOrNewStatusLike(V1beta2FlowSchemaStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -243,7 +235,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -272,17 +264,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.MetadataNested, - Nested { + implements V1beta2FlowSchemaFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1beta2FlowSchemaFluentImpl.this.withMetadata(builder.build()); @@ -295,17 +286,16 @@ public N endMetadata() { class SpecNestedImpl extends V1beta2FlowSchemaSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec item) { + implements V1beta2FlowSchemaFluent.SpecNested, Nested { + SpecNestedImpl(V1beta2FlowSchemaSpec item) { this.builder = new V1beta2FlowSchemaSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecBuilder(this); + this.builder = new V1beta2FlowSchemaSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecBuilder builder; + V1beta2FlowSchemaSpecBuilder builder; public N and() { return (N) V1beta2FlowSchemaFluentImpl.this.withSpec(builder.build()); @@ -318,17 +308,16 @@ public N endSpec() { class StatusNestedImpl extends V1beta2FlowSchemaStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaFluent.StatusNested, - io.kubernetes.client.fluent.Nested { + implements V1beta2FlowSchemaFluent.StatusNested, Nested { StatusNestedImpl(V1beta2FlowSchemaStatus item) { this.builder = new V1beta2FlowSchemaStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusBuilder(this); + this.builder = new V1beta2FlowSchemaStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusBuilder builder; + V1beta2FlowSchemaStatusBuilder builder; public N and() { return (N) V1beta2FlowSchemaFluentImpl.this.withStatus(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java index c2ed83e315..ff0a90f99b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListBuilder.java @@ -16,8 +16,7 @@ public class V1beta2FlowSchemaListBuilder extends V1beta2FlowSchemaListFluentImpl - implements VisitableBuilder< - V1beta2FlowSchemaList, io.kubernetes.client.openapi.models.V1beta2FlowSchemaListBuilder> { + implements VisitableBuilder { public V1beta2FlowSchemaListBuilder() { this(false); } @@ -31,21 +30,19 @@ public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaListFluent fluent) { } public V1beta2FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaListFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaList(), validationEnabled); } public V1beta2FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaList instance) { + V1beta2FlowSchemaListFluent fluent, V1beta2FlowSchemaList instance) { this(fluent, instance, false); } public V1beta2FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaList instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaListFluent fluent, + V1beta2FlowSchemaList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,14 +55,11 @@ public V1beta2FlowSchemaListBuilder( this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaList instance) { + public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance) { this(instance, false); } - public V1beta2FlowSchemaListBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaList instance, - java.lang.Boolean validationEnabled) { + public V1beta2FlowSchemaListBuilder(V1beta2FlowSchemaList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -78,10 +72,10 @@ public V1beta2FlowSchemaListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2FlowSchemaListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaList build() { + public V1beta2FlowSchemaList build() { V1beta2FlowSchemaList buildable = new V1beta2FlowSchemaList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java index beec342dc3..a5752a66e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluent.java @@ -23,23 +23,21 @@ public interface V1beta2FlowSchemaListFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item); + public A addToItems(Integer index, V1beta2FlowSchema item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item); + public A setToItems(Integer index, V1beta2FlowSchema item); public A addToItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items); - public A addAllToItems(Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -49,86 +47,71 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildItem(java.lang.Integer index); + public V1beta2FlowSchema buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildFirstItem(); + public V1beta2FlowSchema buildFirstItem(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildLastItem(); + public V1beta2FlowSchema buildLastItem(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildMatchingItem( - java.util.function.Predicate - predicate); + public V1beta2FlowSchema buildMatchingItem(Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems(java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1beta2FlowSchemaListFluent.ItemsNested addNewItem(); - public V1beta2FlowSchemaListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta2FlowSchema item); + public V1beta2FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta2FlowSchema item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item); + public V1beta2FlowSchemaListFluent.ItemsNested setNewItemLike( + Integer index, V1beta2FlowSchema item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested editItem( - java.lang.Integer index); + public V1beta2FlowSchemaListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - editFirstItem(); + public V1beta2FlowSchemaListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - editLastItem(); + public V1beta2FlowSchemaListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate); + public V1beta2FlowSchemaListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - editMetadata(); + public V1beta2FlowSchemaListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - editOrNewMetadata(); + public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item); public interface ItemsNested extends Nested, V1beta2FlowSchemaFluent> { @@ -138,8 +121,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java index 5503215528..22ee69206c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaListFluentImpl.java @@ -26,8 +26,7 @@ public class V1beta2FlowSchemaListFluentImpl implements V1beta2FlowSchemaListFluent { public V1beta2FlowSchemaListFluentImpl() {} - public V1beta2FlowSchemaListFluentImpl( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaList instance) { + public V1beta2FlowSchemaListFluentImpl(V1beta2FlowSchemaList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -39,14 +38,14 @@ public V1beta2FlowSchemaListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,26 +54,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems(Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item) { + public A addToItems(Integer index, V1beta2FlowSchema item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder(item); + V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item) { + public A setToItems(Integer index, V1beta2FlowSchema item) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder(item); + V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -90,26 +84,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2FlowSchema item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder(item); + for (V1beta2FlowSchema item : items) { + V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2FlowSchema item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder(item); + for (V1beta2FlowSchema item : items) { + V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -117,9 +107,8 @@ public A addAllToItems(Collection items) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchema item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1beta2FlowSchema item : items) { + V1beta2FlowSchemaBuilder builder = new V1beta2FlowSchemaBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -141,14 +128,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder = each.next(); + V1beta2FlowSchemaBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -163,30 +148,28 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildItem(java.lang.Integer index) { + public V1beta2FlowSchema buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildFirstItem() { + public V1beta2FlowSchema buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildLastItem() { + public V1beta2FlowSchema buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder item : items) { + public V1beta2FlowSchema buildMatchingItem(Predicate predicate) { + for (V1beta2FlowSchemaBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -194,10 +177,8 @@ public io.kubernetes.client.openapi.models.V1beta2FlowSchema buildMatchingItem( return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1beta2FlowSchemaBuilder item : items) { if (predicate.test(item)) { return true; } @@ -205,13 +186,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems(java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2FlowSchema item : items) { + this.items = new ArrayList(); + for (V1beta2FlowSchema item : items) { this.addToItems(item); } } else { @@ -225,14 +206,14 @@ public A withItems(io.kubernetes.client.openapi.models.V1beta2FlowSchema... item this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchema item : items) { + for (V1beta2FlowSchema item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -240,41 +221,33 @@ public V1beta2FlowSchemaListFluent.ItemsNested addNewItem() { return new V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl(); } - public V1beta2FlowSchemaListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V1beta2FlowSchema item) { + public V1beta2FlowSchemaListFluent.ItemsNested addNewItemLike(V1beta2FlowSchema item) { return new V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl( - index, item); + public V1beta2FlowSchemaListFluent.ItemsNested setNewItemLike( + Integer index, V1beta2FlowSchema item) { + return new V1beta2FlowSchemaListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested editItem( - java.lang.Integer index) { + public V1beta2FlowSchemaListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - editFirstItem() { + public V1beta2FlowSchemaListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - editLastItem() { + public V1beta2FlowSchemaListFluent.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 io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate - predicate) { + public V1beta2FlowSchemaListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -286,16 +259,16 @@ public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNest return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -304,25 +277,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -330,27 +306,20 @@ public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadata() { return new V1beta2FlowSchemaListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluentImpl - .MetadataNestedImpl(item); + public V1beta2FlowSchemaListFluent.MetadataNested withNewMetadataLike(V1ListMeta item) { + return new V1beta2FlowSchemaListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - editMetadata() { + public V1beta2FlowSchemaListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - editOrNewMetadata() { + public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1beta2FlowSchemaListFluent.MetadataNested editOrNewMetadataLike(V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -370,7 +339,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -395,21 +364,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V1beta2FlowSchemaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.ItemsNested, - Nested { - ItemsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchema item) { + implements V1beta2FlowSchemaListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V1beta2FlowSchema item) { this.index = index; this.builder = new V1beta2FlowSchemaBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder(this); + this.builder = new V1beta2FlowSchemaBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaBuilder builder; - java.lang.Integer index; + V1beta2FlowSchemaBuilder builder; + Integer index; public N and() { return (N) V1beta2FlowSchemaListFluentImpl.this.setToItems(index, builder.build()); @@ -422,17 +389,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaListFluent.MetadataNested, - io.kubernetes.client.fluent.Nested { + implements V1beta2FlowSchemaListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1beta2FlowSchemaListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java index f91537ae23..3c8a6f2e80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecBuilder.java @@ -16,9 +16,7 @@ public class V1beta2FlowSchemaSpecBuilder extends V1beta2FlowSchemaSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecBuilder> { + implements VisitableBuilder { public V1beta2FlowSchemaSpecBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpecFluent fluent) { } public V1beta2FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaSpec(), validationEnabled); } public V1beta2FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec instance) { + V1beta2FlowSchemaSpecFluent fluent, V1beta2FlowSchemaSpec instance) { this(fluent, instance, false); } public V1beta2FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaSpecFluent fluent, + V1beta2FlowSchemaSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDistinguisherMethod(instance.getDistinguisherMethod()); @@ -59,14 +55,11 @@ public V1beta2FlowSchemaSpecBuilder( this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec instance) { + public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance) { this(instance, false); } - public V1beta2FlowSchemaSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec instance, - java.lang.Boolean validationEnabled) { + public V1beta2FlowSchemaSpecBuilder(V1beta2FlowSchemaSpec instance, Boolean validationEnabled) { this.fluent = this; this.withDistinguisherMethod(instance.getDistinguisherMethod()); @@ -79,10 +72,10 @@ public V1beta2FlowSchemaSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2FlowSchemaSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec build() { + public V1beta2FlowSchemaSpec build() { V1beta2FlowSchemaSpec buildable = new V1beta2FlowSchemaSpec(); buildable.setDistinguisherMethod(fluent.getDistinguisherMethod()); buildable.setMatchingPrecedence(fluent.getMatchingPrecedence()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java index 4b31be6128..21e1aa2c3c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluent.java @@ -30,99 +30,72 @@ public interface V1beta2FlowSchemaSpecFluent withNewDistinguisherMethod(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - withNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod item); + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( + V1beta2FlowDistinguisherMethod item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editDistinguisherMethod(); + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethod(); + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod item); + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( + V1beta2FlowDistinguisherMethod item); public Integer getMatchingPrecedence(); - public A withMatchingPrecedence(java.lang.Integer matchingPrecedence); + public A withMatchingPrecedence(Integer matchingPrecedence); - public java.lang.Boolean hasMatchingPrecedence(); + public Boolean hasMatchingPrecedence(); /** * This method has been deprecated, please use method buildPriorityLevelConfiguration instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2PriorityLevelConfigurationReference getPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference - buildPriorityLevelConfiguration(); + public V1beta2PriorityLevelConfigurationReference buildPriorityLevelConfiguration(); public A withPriorityLevelConfiguration( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference - priorityLevelConfiguration); + V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration); - public java.lang.Boolean hasPriorityLevelConfiguration(); + public Boolean hasPriorityLevelConfiguration(); public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested withNewPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - withNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference item); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested + withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - editOrNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference item); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested + editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item); - public A addToRules(java.lang.Integer index, V1beta2PolicyRulesWithSubjects item); + public A addToRules(Integer index, V1beta2PolicyRulesWithSubjects item); - public A setToRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item); + public A setToRules(Integer index, V1beta2PolicyRulesWithSubjects item); public A addToRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items); - public A addAllToRules( - Collection items); + public A addAllToRules(Collection items); public A removeFromRules( io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items); - public A removeAllFromRules( - java.util.Collection - items); + public A removeAllFromRules(Collection items); public A removeMatchingFromRules(Predicate predicate); @@ -131,60 +104,44 @@ public A removeAllFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules(); + @Deprecated + public List getRules(); - public java.util.List - buildRules(); + public List buildRules(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildRule( - java.lang.Integer index); + public V1beta2PolicyRulesWithSubjects buildRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildFirstRule(); + public V1beta2PolicyRulesWithSubjects buildFirstRule(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildLastRule(); + public V1beta2PolicyRulesWithSubjects buildLastRule(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> - predicate); + public V1beta2PolicyRulesWithSubjects buildMatchingRule( + Predicate predicate); - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> - predicate); + public Boolean hasMatchingRule(Predicate predicate); - public A withRules( - java.util.List rules); + public A withRules(List rules); public A withRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... rules); - public java.lang.Boolean hasRules(); + public Boolean hasRules(); public V1beta2FlowSchemaSpecFluent.RulesNested addNewRule(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - addNewRuleLike(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item); + public V1beta2FlowSchemaSpecFluent.RulesNested addNewRuleLike( + V1beta2PolicyRulesWithSubjects item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - setNewRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item); + public V1beta2FlowSchemaSpecFluent.RulesNested setNewRuleLike( + Integer index, V1beta2PolicyRulesWithSubjects item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested editRule( - java.lang.Integer index); + public V1beta2FlowSchemaSpecFluent.RulesNested editRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - editFirstRule(); + public V1beta2FlowSchemaSpecFluent.RulesNested editFirstRule(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - editLastRule(); + public V1beta2FlowSchemaSpecFluent.RulesNested editLastRule(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> - predicate); + public V1beta2FlowSchemaSpecFluent.RulesNested editMatchingRule( + Predicate predicate); public interface DistinguisherMethodNested extends Nested, @@ -196,7 +153,7 @@ public interface DistinguisherMethodNested } public interface PriorityLevelConfigurationNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2PriorityLevelConfigurationReferenceFluent< V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested> { public N and(); @@ -205,7 +162,7 @@ public interface PriorityLevelConfigurationNested } public interface RulesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2PolicyRulesWithSubjectsFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java index 0d731e44ba..54a87aec07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpecFluentImpl.java @@ -26,8 +26,7 @@ public class V1beta2FlowSchemaSpecFluentImpl implements V1beta2FlowSchemaSpecFluent { public V1beta2FlowSchemaSpecFluentImpl() {} - public V1beta2FlowSchemaSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpec instance) { + public V1beta2FlowSchemaSpecFluentImpl(V1beta2FlowSchemaSpec instance) { this.withDistinguisherMethod(instance.getDistinguisherMethod()); this.withMatchingPrecedence(instance.getMatchingPrecedence()); @@ -48,22 +47,22 @@ public V1beta2FlowSchemaSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod - getDistinguisherMethod() { + public V1beta2FlowDistinguisherMethod getDistinguisherMethod() { return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod - buildDistinguisherMethod() { + public V1beta2FlowDistinguisherMethod buildDistinguisherMethod() { return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; } - public A withDistinguisherMethod( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod distinguisherMethod) { + public A withDistinguisherMethod(V1beta2FlowDistinguisherMethod distinguisherMethod) { _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); if (distinguisherMethod != null) { this.distinguisherMethod = new V1beta2FlowDistinguisherMethodBuilder(distinguisherMethod); _visitables.get("distinguisherMethod").add(this.distinguisherMethod); + } else { + this.distinguisherMethod = null; + _visitables.get("distinguisherMethod").remove(this.distinguisherMethod); } return (A) this; } @@ -76,47 +75,38 @@ public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistingui return new V1beta2FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - withNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod item) { + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested withNewDistinguisherMethodLike( + V1beta2FlowDistinguisherMethod item) { return new V1beta2FlowSchemaSpecFluentImpl.DistinguisherMethodNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editDistinguisherMethod() { + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editDistinguisherMethod() { return withNewDistinguisherMethodLike(getDistinguisherMethod()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethod() { + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethod() { return withNewDistinguisherMethodLike( getDistinguisherMethod() != null ? getDistinguisherMethod() - : new io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodBuilder() - .build()); + : new V1beta2FlowDistinguisherMethodBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested< - A> - editOrNewDistinguisherMethodLike( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod item) { + public V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested editOrNewDistinguisherMethodLike( + V1beta2FlowDistinguisherMethod item) { return withNewDistinguisherMethodLike( getDistinguisherMethod() != null ? getDistinguisherMethod() : item); } - public java.lang.Integer getMatchingPrecedence() { + public Integer getMatchingPrecedence() { return this.matchingPrecedence; } - public A withMatchingPrecedence(java.lang.Integer matchingPrecedence) { + public A withMatchingPrecedence(Integer matchingPrecedence) { this.matchingPrecedence = matchingPrecedence; return (A) this; } - public java.lang.Boolean hasMatchingPrecedence() { + public Boolean hasMatchingPrecedence() { return this.matchingPrecedence != null; } @@ -125,30 +115,30 @@ public java.lang.Boolean hasMatchingPrecedence() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference - getPriorityLevelConfiguration() { + @Deprecated + public V1beta2PriorityLevelConfigurationReference getPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference - buildPriorityLevelConfiguration() { + public V1beta2PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; } public A withPriorityLevelConfiguration( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference - priorityLevelConfiguration) { + V1beta2PriorityLevelConfigurationReference priorityLevelConfiguration) { _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); if (priorityLevelConfiguration != null) { this.priorityLevelConfiguration = new V1beta2PriorityLevelConfigurationReferenceBuilder(priorityLevelConfiguration); _visitables.get("priorityLevelConfiguration").add(this.priorityLevelConfiguration); + } else { + this.priorityLevelConfiguration = null; + _visitables.get("priorityLevelConfiguration").remove(this.priorityLevelConfiguration); } return (A) this; } - public java.lang.Boolean hasPriorityLevelConfiguration() { + public Boolean hasPriorityLevelConfiguration() { return this.priorityLevelConfiguration != null; } @@ -157,66 +147,45 @@ public java.lang.Boolean hasPriorityLevelConfiguration() { return new V1beta2FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - withNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluentImpl - .PriorityLevelConfigurationNestedImpl(item); + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested + withNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { + return new V1beta2FlowSchemaSpecFluentImpl.PriorityLevelConfigurationNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editPriorityLevelConfiguration() { return withNewPriorityLevelConfigurationLike(getPriorityLevelConfiguration()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { return withNewPriorityLevelConfigurationLike( getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration() - : new io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationReferenceBuilder() - .build()); + : new V1beta2PriorityLevelConfigurationReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - A> - editOrNewPriorityLevelConfigurationLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference item) { + public V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested + editOrNewPriorityLevelConfigurationLike(V1beta2PriorityLevelConfigurationReference item) { return withNewPriorityLevelConfigurationLike( getPriorityLevelConfiguration() != null ? getPriorityLevelConfiguration() : item); } - public A addToRules(java.lang.Integer index, V1beta2PolicyRulesWithSubjects item) { + public A addToRules(Integer index, V1beta2PolicyRulesWithSubjects item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(item); + V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(index >= 0 ? index : _visitables.get("rules").size(), builder); this.rules.add(index >= 0 ? index : rules.size(), builder); return (A) this; } - public A setToRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item) { + public A setToRules(Integer index, V1beta2PolicyRulesWithSubjects item) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(item); + V1beta2PolicyRulesWithSubjectsBuilder builder = new V1beta2PolicyRulesWithSubjectsBuilder(item); if (index < 0 || index >= _visitables.get("rules").size()) { _visitables.get("rules").add(builder); } else { @@ -232,29 +201,24 @@ public A setToRules( public A addToRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(item); + for (V1beta2PolicyRulesWithSubjects item : items) { + V1beta2PolicyRulesWithSubjectsBuilder builder = + new V1beta2PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; } - public A addAllToRules( - Collection items) { + public A addAllToRules(Collection items) { if (this.rules == null) { - this.rules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder>(); + this.rules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(item); + for (V1beta2PolicyRulesWithSubjects item : items) { + V1beta2PolicyRulesWithSubjectsBuilder builder = + new V1beta2PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").add(builder); this.rules.add(builder); } @@ -263,9 +227,9 @@ public A addAllToRules( public A removeFromRules( io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects... items) { - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(item); + for (V1beta2PolicyRulesWithSubjects item : items) { + V1beta2PolicyRulesWithSubjectsBuilder builder = + new V1beta2PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -274,12 +238,10 @@ public A removeFromRules( return (A) this; } - public A removeAllFromRules( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item : items) { - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(item); + public A removeAllFromRules(Collection items) { + for (V1beta2PolicyRulesWithSubjects item : items) { + V1beta2PolicyRulesWithSubjectsBuilder builder = + new V1beta2PolicyRulesWithSubjectsBuilder(item); _visitables.get("rules").remove(builder); if (this.rules != null) { this.rules.remove(builder); @@ -288,16 +250,12 @@ public A removeAllFromRules( return (A) this; } - public A removeMatchingFromRules( - Predicate - predicate) { + public A removeMatchingFromRules(Predicate predicate) { if (rules == null) return (A) this; - final Iterator each = - rules.iterator(); + final Iterator each = rules.iterator(); final List visitables = _visitables.get("rules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder = - each.next(); + V1beta2PolicyRulesWithSubjectsBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -311,34 +269,30 @@ public A removeMatchingFromRules( * * @return The buildable object. */ - @java.lang.Deprecated - public List getRules() { + @Deprecated + public List getRules() { return rules != null ? build(rules) : null; } - public java.util.List - buildRules() { + public List buildRules() { return rules != null ? build(rules) : null; } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildRule( - java.lang.Integer index) { + public V1beta2PolicyRulesWithSubjects buildRule(Integer index) { return this.rules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildFirstRule() { + public V1beta2PolicyRulesWithSubjects buildFirstRule() { return this.rules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildLastRule() { + public V1beta2PolicyRulesWithSubjects buildLastRule() { return this.rules.get(rules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder item : rules) { + public V1beta2PolicyRulesWithSubjects buildMatchingRule( + Predicate predicate) { + for (V1beta2PolicyRulesWithSubjectsBuilder item : rules) { if (predicate.test(item)) { return item.build(); } @@ -346,11 +300,8 @@ public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects buildM return null; } - public java.lang.Boolean hasMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder item : rules) { + public Boolean hasMatchingRule(Predicate predicate) { + for (V1beta2PolicyRulesWithSubjectsBuilder item : rules) { if (predicate.test(item)) { return true; } @@ -358,14 +309,13 @@ public java.lang.Boolean hasMatchingRule( return false; } - public A withRules( - java.util.List rules) { + public A withRules(List rules) { if (this.rules != null) { _visitables.get("rules").removeAll(this.rules); } if (rules != null) { - this.rules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item : rules) { + this.rules = new ArrayList(); + for (V1beta2PolicyRulesWithSubjects item : rules) { this.addToRules(item); } } else { @@ -379,14 +329,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSub this.rules.clear(); } if (rules != null) { - for (io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item : rules) { + for (V1beta2PolicyRulesWithSubjects item : rules) { this.addToRules(item); } } return (A) this; } - public java.lang.Boolean hasRules() { + public Boolean hasRules() { return rules != null && !rules.isEmpty(); } @@ -394,44 +344,34 @@ public V1beta2FlowSchemaSpecFluent.RulesNested addNewRule() { return new V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - addNewRuleLike(io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl( - -1, item); + public V1beta2FlowSchemaSpecFluent.RulesNested addNewRuleLike( + V1beta2PolicyRulesWithSubjects item) { + return new V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - setNewRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl( - index, item); + public V1beta2FlowSchemaSpecFluent.RulesNested setNewRuleLike( + Integer index, V1beta2PolicyRulesWithSubjects item) { + return new V1beta2FlowSchemaSpecFluentImpl.RulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested editRule( - java.lang.Integer index) { + public V1beta2FlowSchemaSpecFluent.RulesNested editRule(Integer index) { if (rules.size() <= index) throw new RuntimeException("Can't edit rules. Index exceeds size."); return setNewRuleLike(index, buildRule(index)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - editFirstRule() { + public V1beta2FlowSchemaSpecFluent.RulesNested editFirstRule() { if (rules.size() == 0) throw new RuntimeException("Can't edit first rules. The list is empty."); return setNewRuleLike(0, buildRule(0)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - editLastRule() { + public V1beta2FlowSchemaSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested - editMatchingRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> - predicate) { + public V1beta2FlowSchemaSpecFluent.RulesNested editMatchingRule( + Predicate predicate) { int index = -1; for (int i = 0; i < rules.size(); i++) { if (predicate.test(rules.get(i))) { @@ -495,21 +435,16 @@ public String toString() { class DistinguisherMethodNestedImpl extends V1beta2FlowDistinguisherMethodFluentImpl< V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .DistinguisherMethodNested< - N>, - Nested { - DistinguisherMethodNestedImpl( - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethod item) { + implements V1beta2FlowSchemaSpecFluent.DistinguisherMethodNested, Nested { + DistinguisherMethodNestedImpl(V1beta2FlowDistinguisherMethod item) { this.builder = new V1beta2FlowDistinguisherMethodBuilder(this, item); } DistinguisherMethodNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodBuilder(this); + this.builder = new V1beta2FlowDistinguisherMethodBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2FlowDistinguisherMethodBuilder builder; + V1beta2FlowDistinguisherMethodBuilder builder; public N and() { return (N) V1beta2FlowSchemaSpecFluentImpl.this.withDistinguisherMethod(builder.build()); @@ -523,22 +458,16 @@ public N endDistinguisherMethod() { class PriorityLevelConfigurationNestedImpl extends V1beta2PriorityLevelConfigurationReferenceFluentImpl< V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent - .PriorityLevelConfigurationNested< - N>, - io.kubernetes.client.fluent.Nested { - PriorityLevelConfigurationNestedImpl( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference item) { + implements V1beta2FlowSchemaSpecFluent.PriorityLevelConfigurationNested, Nested { + PriorityLevelConfigurationNestedImpl(V1beta2PriorityLevelConfigurationReference item) { this.builder = new V1beta2PriorityLevelConfigurationReferenceBuilder(this, item); } PriorityLevelConfigurationNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceBuilder( - this); + this.builder = new V1beta2PriorityLevelConfigurationReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceBuilder builder; + V1beta2PriorityLevelConfigurationReferenceBuilder builder; public N and() { return (N) @@ -552,23 +481,19 @@ public N endPriorityLevelConfiguration() { class RulesNestedImpl extends V1beta2PolicyRulesWithSubjectsFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaSpecFluent.RulesNested, - io.kubernetes.client.fluent.Nested { - RulesNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects item) { + implements V1beta2FlowSchemaSpecFluent.RulesNested, Nested { + RulesNestedImpl(Integer index, V1beta2PolicyRulesWithSubjects item) { this.index = index; this.builder = new V1beta2PolicyRulesWithSubjectsBuilder(this, item); } RulesNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder(this); + this.builder = new V1beta2PolicyRulesWithSubjectsBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder builder; - java.lang.Integer index; + V1beta2PolicyRulesWithSubjectsBuilder builder; + Integer index; public N and() { return (N) V1beta2FlowSchemaSpecFluentImpl.this.setToRules(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java index 1b0f55a983..303d70dee0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusBuilder.java @@ -16,9 +16,7 @@ public class V1beta2FlowSchemaStatusBuilder extends V1beta2FlowSchemaStatusFluentImpl - implements VisitableBuilder< - V1beta2FlowSchemaStatus, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusBuilder> { + implements VisitableBuilder { public V1beta2FlowSchemaStatusBuilder() { this(false); } @@ -32,45 +30,41 @@ public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatusFluent fluent) { } public V1beta2FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2FlowSchemaStatus(), validationEnabled); } public V1beta2FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus instance) { + V1beta2FlowSchemaStatusFluent fluent, V1beta2FlowSchemaStatus instance) { this(fluent, instance, false); } public V1beta2FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaStatusFluent fluent, + V1beta2FlowSchemaStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - public V1beta2FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus instance) { + public V1beta2FlowSchemaStatusBuilder(V1beta2FlowSchemaStatus instance) { this(instance, false); } public V1beta2FlowSchemaStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus instance, - java.lang.Boolean validationEnabled) { + V1beta2FlowSchemaStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2FlowSchemaStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus build() { + public V1beta2FlowSchemaStatus build() { V1beta2FlowSchemaStatus buildable = new V1beta2FlowSchemaStatus(); buildable.setConditions(fluent.getConditions()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java index 9de3220799..af76f5c93e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluent.java @@ -23,19 +23,16 @@ public interface V1beta2FlowSchemaStatusFluent { public A addToConditions(Integer index, V1beta2FlowSchemaCondition item); - public A setToConditions( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item); + public A setToConditions(Integer index, V1beta2FlowSchemaCondition item); public A addToConditions(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items); - public A removeAllFromConditions( - java.util.Collection items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions(Predicate predicate); @@ -45,60 +42,44 @@ public A removeAllFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildCondition( - java.lang.Integer index); + public V1beta2FlowSchemaCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildFirstCondition(); + public V1beta2FlowSchemaCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildLastCondition(); + public V1beta2FlowSchemaCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder> - predicate); + public V1beta2FlowSchemaCondition buildMatchingCondition( + Predicate predicate); - public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder> - predicate); + public Boolean hasMatchingCondition(Predicate predicate); - public A withConditions( - java.util.List conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item); + public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( + V1beta2FlowSchemaCondition item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item); + public V1beta2FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta2FlowSchemaCondition item); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editCondition(java.lang.Integer index); + public V1beta2FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editFirstCondition(); + public V1beta2FlowSchemaStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editLastCondition(); + public V1beta2FlowSchemaStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder> - predicate); + public V1beta2FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java index a1c48d87c4..388342e5d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatusFluentImpl.java @@ -26,8 +26,7 @@ public class V1beta2FlowSchemaStatusFluentImpl implements V1beta2FlowSchemaStatusFluent { public V1beta2FlowSchemaStatusFluentImpl() {} - public V1beta2FlowSchemaStatusFluentImpl( - io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatus instance) { + public V1beta2FlowSchemaStatusFluentImpl(V1beta2FlowSchemaStatus instance) { this.withConditions(instance.getConditions()); } @@ -35,12 +34,9 @@ public V1beta2FlowSchemaStatusFluentImpl( public A addToConditions(Integer index, V1beta2FlowSchemaCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(item); + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -48,16 +44,11 @@ public A addToConditions(Integer index, V1beta2FlowSchemaCondition item) { return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item) { + public A setToConditions(Integer index, V1beta2FlowSchemaCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(item); + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -74,29 +65,22 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(item); + for (V1beta2FlowSchemaCondition item : items) { + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - Collection items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(item); + for (V1beta2FlowSchemaCondition item : items) { + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -105,9 +89,8 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition... items) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(item); + for (V1beta2FlowSchemaCondition item : items) { + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -116,11 +99,9 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item : items) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1beta2FlowSchemaCondition item : items) { + V1beta2FlowSchemaConditionBuilder builder = new V1beta2FlowSchemaConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -129,14 +110,12 @@ public A removeAllFromConditions( return (A) this; } - public A removeMatchingFromConditions( - Predicate predicate) { + public A removeMatchingFromConditions(Predicate predicate) { if (conditions == null) return (A) this; - final Iterator each = - conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder = each.next(); + V1beta2FlowSchemaConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -151,33 +130,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildCondition( - java.lang.Integer index) { + public V1beta2FlowSchemaCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildFirstCondition() { + public V1beta2FlowSchemaCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildLastCondition() { + public V1beta2FlowSchemaCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder item : conditions) { + public V1beta2FlowSchemaCondition buildMatchingCondition( + Predicate predicate) { + for (V1beta2FlowSchemaConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -185,11 +160,8 @@ public io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition buildMatch return null; } - public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder item : conditions) { + public Boolean hasMatchingCondition(Predicate predicate) { + for (V1beta2FlowSchemaConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -197,14 +169,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item : conditions) { + this.conditions = new ArrayList(); + for (V1beta2FlowSchemaCondition item : conditions) { this.addToConditions(item); } } else { @@ -219,14 +190,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item : conditions) { + for (V1beta2FlowSchemaCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -234,45 +205,36 @@ public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewCondition() { return new V1beta2FlowSchemaStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - addNewConditionLike(io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item) { + public V1beta2FlowSchemaStatusFluent.ConditionsNested addNewConditionLike( + V1beta2FlowSchemaCondition item) { return new V1beta2FlowSchemaStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2FlowSchemaCondition item) { - return new io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1beta2FlowSchemaStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta2FlowSchemaCondition item) { + return new V1beta2FlowSchemaStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editCondition(java.lang.Integer index) { + public V1beta2FlowSchemaStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editFirstCondition() { + public V1beta2FlowSchemaStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editLastCondition() { + public V1beta2FlowSchemaStatusFluent.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 io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder> - predicate) { + public V1beta2FlowSchemaStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -311,22 +273,19 @@ public String toString() { class ConditionsNestedImpl extends V1beta2FlowSchemaConditionFluentImpl< V1beta2FlowSchemaStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1beta2FlowSchemaStatusFluent.ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1beta2FlowSchemaCondition item) { + implements V1beta2FlowSchemaStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1beta2FlowSchemaCondition item) { this.index = index; this.builder = new V1beta2FlowSchemaConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder(this); + this.builder = new V1beta2FlowSchemaConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2FlowSchemaConditionBuilder builder; - java.lang.Integer index; + V1beta2FlowSchemaConditionBuilder builder; + Integer index; public N and() { return (N) V1beta2FlowSchemaStatusFluentImpl.this.setToConditions(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java index 4e69fe20ce..b0bf139a54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectBuilder.java @@ -16,8 +16,7 @@ public class V1beta2GroupSubjectBuilder extends V1beta2GroupSubjectFluentImpl - implements VisitableBuilder< - V1beta2GroupSubject, io.kubernetes.client.openapi.models.V1beta2GroupSubjectBuilder> { + implements VisitableBuilder { public V1beta2GroupSubjectBuilder() { this(false); } @@ -26,51 +25,45 @@ public V1beta2GroupSubjectBuilder(Boolean validationEnabled) { this(new V1beta2GroupSubject(), validationEnabled); } - public V1beta2GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2GroupSubjectFluent fluent) { + public V1beta2GroupSubjectBuilder(V1beta2GroupSubjectFluent fluent) { this(fluent, false); } public V1beta2GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2GroupSubjectFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2GroupSubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2GroupSubject(), validationEnabled); } public V1beta2GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2GroupSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2GroupSubject instance) { + V1beta2GroupSubjectFluent fluent, V1beta2GroupSubject instance) { this(fluent, instance, false); } public V1beta2GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2GroupSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2GroupSubject instance, - java.lang.Boolean validationEnabled) { + V1beta2GroupSubjectFluent fluent, + V1beta2GroupSubject instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1beta2GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2GroupSubject instance) { + public V1beta2GroupSubjectBuilder(V1beta2GroupSubject instance) { this(instance, false); } - public V1beta2GroupSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2GroupSubject instance, - java.lang.Boolean validationEnabled) { + public V1beta2GroupSubjectBuilder(V1beta2GroupSubject instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2GroupSubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2GroupSubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2GroupSubject build() { + public V1beta2GroupSubject build() { V1beta2GroupSubject buildable = new V1beta2GroupSubject(); buildable.setName(fluent.getName()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java index d0ebd4ed08..d8cc6dcae7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluent.java @@ -19,7 +19,7 @@ public interface V1beta2GroupSubjectFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java index fa498644b4..22ff6af076 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubjectFluentImpl.java @@ -20,18 +20,17 @@ public class V1beta2GroupSubjectFluentImpl implements V1beta2GroupSubjectFluent { public V1beta2GroupSubjectFluentImpl() {} - public V1beta2GroupSubjectFluentImpl( - io.kubernetes.client.openapi.models.V1beta2GroupSubject instance) { + public V1beta2GroupSubjectFluentImpl(V1beta2GroupSubject instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -52,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java index 2ad974f7c8..534b396875 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseBuilder.java @@ -16,8 +16,7 @@ public class V1beta2LimitResponseBuilder extends V1beta2LimitResponseFluentImpl - implements VisitableBuilder< - V1beta2LimitResponse, io.kubernetes.client.openapi.models.V1beta2LimitResponseBuilder> { + implements VisitableBuilder { public V1beta2LimitResponseBuilder() { this(false); } @@ -26,27 +25,24 @@ public V1beta2LimitResponseBuilder(Boolean validationEnabled) { this(new V1beta2LimitResponse(), validationEnabled); } - public V1beta2LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent fluent) { + public V1beta2LimitResponseBuilder(V1beta2LimitResponseFluent fluent) { this(fluent, false); } public V1beta2LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2LimitResponseFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2LimitResponse(), validationEnabled); } public V1beta2LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent fluent, - io.kubernetes.client.openapi.models.V1beta2LimitResponse instance) { + V1beta2LimitResponseFluent fluent, V1beta2LimitResponse instance) { this(fluent, instance, false); } public V1beta2LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent fluent, - io.kubernetes.client.openapi.models.V1beta2LimitResponse instance, - java.lang.Boolean validationEnabled) { + V1beta2LimitResponseFluent fluent, + V1beta2LimitResponse instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withQueuing(instance.getQueuing()); @@ -55,14 +51,11 @@ public V1beta2LimitResponseBuilder( this.validationEnabled = validationEnabled; } - public V1beta2LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitResponse instance) { + public V1beta2LimitResponseBuilder(V1beta2LimitResponse instance) { this(instance, false); } - public V1beta2LimitResponseBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitResponse instance, - java.lang.Boolean validationEnabled) { + public V1beta2LimitResponseBuilder(V1beta2LimitResponse instance, Boolean validationEnabled) { this.fluent = this; this.withQueuing(instance.getQueuing()); @@ -71,10 +64,10 @@ public V1beta2LimitResponseBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2LimitResponseFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2LimitResponse build() { + public V1beta2LimitResponse build() { V1beta2LimitResponse buildable = new V1beta2LimitResponse(); buildable.setQueuing(fluent.getQueuing()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java index c0713dedbf..3eab0bb295 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluent.java @@ -27,31 +27,29 @@ public interface V1beta2LimitResponseFluent withNewQueuing(); - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - withNewQueuingLike(io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration item); + public V1beta2LimitResponseFluent.QueuingNested withNewQueuingLike( + V1beta2QueuingConfiguration item); - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - editQueuing(); + public V1beta2LimitResponseFluent.QueuingNested editQueuing(); - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - editOrNewQueuing(); + public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuing(); - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - editOrNewQueuingLike(io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration item); + public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuingLike( + V1beta2QueuingConfiguration item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface QueuingNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java index 4de36caea1..9057b5f9f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponseFluentImpl.java @@ -21,8 +21,7 @@ public class V1beta2LimitResponseFluentImpl implements V1beta2LimitResponseFluent { public V1beta2LimitResponseFluentImpl() {} - public V1beta2LimitResponseFluentImpl( - io.kubernetes.client.openapi.models.V1beta2LimitResponse instance) { + public V1beta2LimitResponseFluentImpl(V1beta2LimitResponse instance) { this.withQueuing(instance.getQueuing()); this.withType(instance.getType()); @@ -37,19 +36,22 @@ public V1beta2LimitResponseFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration getQueuing() { + public V1beta2QueuingConfiguration getQueuing() { return this.queuing != null ? this.queuing.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration buildQueuing() { + public V1beta2QueuingConfiguration buildQueuing() { return this.queuing != null ? this.queuing.build() : null; } - public A withQueuing(io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration queuing) { + public A withQueuing(V1beta2QueuingConfiguration queuing) { _visitables.get("queuing").remove(this.queuing); if (queuing != null) { this.queuing = new V1beta2QueuingConfigurationBuilder(queuing); _visitables.get("queuing").add(this.queuing); + } else { + this.queuing = null; + _visitables.get("queuing").remove(this.queuing); } return (A) this; } @@ -62,39 +64,35 @@ public V1beta2LimitResponseFluent.QueuingNested withNewQueuing() { return new V1beta2LimitResponseFluentImpl.QueuingNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - withNewQueuingLike(io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration item) { + public V1beta2LimitResponseFluent.QueuingNested withNewQueuingLike( + V1beta2QueuingConfiguration item) { return new V1beta2LimitResponseFluentImpl.QueuingNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - editQueuing() { + public V1beta2LimitResponseFluent.QueuingNested editQueuing() { return withNewQueuingLike(getQueuing()); } - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - editOrNewQueuing() { + public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuing() { return withNewQueuingLike( - getQueuing() != null - ? getQueuing() - : new io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationBuilder().build()); + getQueuing() != null ? getQueuing() : new V1beta2QueuingConfigurationBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested - editOrNewQueuingLike(io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration item) { + public V1beta2LimitResponseFluent.QueuingNested editOrNewQueuingLike( + V1beta2QueuingConfiguration item) { return withNewQueuingLike(getQueuing() != null ? getQueuing() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -111,7 +109,7 @@ public int hashCode() { return java.util.Objects.hash(queuing, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (queuing != null) { @@ -128,18 +126,16 @@ public java.lang.String toString() { class QueuingNestedImpl extends V1beta2QueuingConfigurationFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2LimitResponseFluent.QueuingNested, - Nested { + implements V1beta2LimitResponseFluent.QueuingNested, Nested { QueuingNestedImpl(V1beta2QueuingConfiguration item) { this.builder = new V1beta2QueuingConfigurationBuilder(this, item); } QueuingNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationBuilder(this); + this.builder = new V1beta2QueuingConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationBuilder builder; + V1beta2QueuingConfigurationBuilder builder; public N and() { return (N) V1beta2LimitResponseFluentImpl.this.withQueuing(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java index 22add1d78b..30b42112e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationBuilder.java @@ -18,8 +18,7 @@ public class V1beta2LimitedPriorityLevelConfigurationBuilder extends V1beta2LimitedPriorityLevelConfigurationFluentImpl< V1beta2LimitedPriorityLevelConfigurationBuilder> implements VisitableBuilder< - V1beta2LimitedPriorityLevelConfiguration, - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationBuilder> { + V1beta2LimitedPriorityLevelConfiguration, V1beta2LimitedPriorityLevelConfigurationBuilder> { public V1beta2LimitedPriorityLevelConfigurationBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta2LimitedPriorityLevelConfigurationBuilder( } public V1beta2LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2LimitedPriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2LimitedPriorityLevelConfiguration(), validationEnabled); } public V1beta2LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration instance) { + V1beta2LimitedPriorityLevelConfigurationFluent fluent, + V1beta2LimitedPriorityLevelConfiguration instance) { this(fluent, instance, false); } public V1beta2LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta2LimitedPriorityLevelConfigurationFluent fluent, + V1beta2LimitedPriorityLevelConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); @@ -58,13 +56,12 @@ public V1beta2LimitedPriorityLevelConfigurationBuilder( } public V1beta2LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration instance) { + V1beta2LimitedPriorityLevelConfiguration instance) { this(instance, false); } public V1beta2LimitedPriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta2LimitedPriorityLevelConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); @@ -73,10 +70,10 @@ public V1beta2LimitedPriorityLevelConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2LimitedPriorityLevelConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration build() { + public V1beta2LimitedPriorityLevelConfiguration build() { V1beta2LimitedPriorityLevelConfiguration buildable = new V1beta2LimitedPriorityLevelConfiguration(); buildable.setAssuredConcurrencyShares(fluent.getAssuredConcurrencyShares()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java index 2b3029555c..8530e45f48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluent.java @@ -21,7 +21,7 @@ public interface V1beta2LimitedPriorityLevelConfigurationFluent< extends Fluent { public Integer getAssuredConcurrencyShares(); - public A withAssuredConcurrencyShares(java.lang.Integer assuredConcurrencyShares); + public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares); public Boolean hasAssuredConcurrencyShares(); @@ -33,35 +33,25 @@ public interface V1beta2LimitedPriorityLevelConfigurationFluent< @Deprecated public V1beta2LimitResponse getLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta2LimitResponse buildLimitResponse(); + public V1beta2LimitResponse buildLimitResponse(); - public A withLimitResponse( - io.kubernetes.client.openapi.models.V1beta2LimitResponse limitResponse); + public A withLimitResponse(V1beta2LimitResponse limitResponse); - public java.lang.Boolean hasLimitResponse(); + public Boolean hasLimitResponse(); public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested withNewLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - withNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta2LimitResponse item); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested + withNewLimitResponseLike(V1beta2LimitResponse item); - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editLimitResponse(); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse(); - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editOrNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta2LimitResponse item); + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested + editOrNewLimitResponseLike(V1beta2LimitResponse item); public interface LimitResponseNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java index 3de723bf7e..bab96d0102 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfigurationFluentImpl.java @@ -23,7 +23,7 @@ public class V1beta2LimitedPriorityLevelConfigurationFluentImpl< public V1beta2LimitedPriorityLevelConfigurationFluentImpl() {} public V1beta2LimitedPriorityLevelConfigurationFluentImpl( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration instance) { + V1beta2LimitedPriorityLevelConfiguration instance) { this.withAssuredConcurrencyShares(instance.getAssuredConcurrencyShares()); this.withLimitResponse(instance.getLimitResponse()); @@ -32,11 +32,11 @@ public V1beta2LimitedPriorityLevelConfigurationFluentImpl( private Integer assuredConcurrencyShares; private V1beta2LimitResponseBuilder limitResponse; - public java.lang.Integer getAssuredConcurrencyShares() { + public Integer getAssuredConcurrencyShares() { return this.assuredConcurrencyShares; } - public A withAssuredConcurrencyShares(java.lang.Integer assuredConcurrencyShares) { + public A withAssuredConcurrencyShares(Integer assuredConcurrencyShares) { this.assuredConcurrencyShares = assuredConcurrencyShares; return (A) this; } @@ -55,22 +55,23 @@ public V1beta2LimitResponse getLimitResponse() { return this.limitResponse != null ? this.limitResponse.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2LimitResponse buildLimitResponse() { + public V1beta2LimitResponse buildLimitResponse() { return this.limitResponse != null ? this.limitResponse.build() : null; } - public A withLimitResponse( - io.kubernetes.client.openapi.models.V1beta2LimitResponse limitResponse) { + public A withLimitResponse(V1beta2LimitResponse limitResponse) { _visitables.get("limitResponse").remove(this.limitResponse); if (limitResponse != null) { - this.limitResponse = - new io.kubernetes.client.openapi.models.V1beta2LimitResponseBuilder(limitResponse); + this.limitResponse = new V1beta2LimitResponseBuilder(limitResponse); _visitables.get("limitResponse").add(this.limitResponse); + } else { + this.limitResponse = null; + _visitables.get("limitResponse").remove(this.limitResponse); } return (A) this; } - public java.lang.Boolean hasLimitResponse() { + public Boolean hasLimitResponse() { return this.limitResponse != null; } @@ -79,34 +80,25 @@ public java.lang.Boolean hasLimitResponse() { return new V1beta2LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - withNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta2LimitResponse item) { + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested + withNewLimitResponseLike(V1beta2LimitResponse item) { return new V1beta2LimitedPriorityLevelConfigurationFluentImpl.LimitResponseNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editLimitResponse() { + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editLimitResponse() { return withNewLimitResponseLike(getLimitResponse()); } - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested editOrNewLimitResponse() { return withNewLimitResponseLike( getLimitResponse() != null ? getLimitResponse() - : new io.kubernetes.client.openapi.models.V1beta2LimitResponseBuilder().build()); + : new V1beta2LimitResponseBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - A> - editOrNewLimitResponseLike(io.kubernetes.client.openapi.models.V1beta2LimitResponse item) { + public V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested + editOrNewLimitResponseLike(V1beta2LimitResponse item) { return withNewLimitResponseLike(getLimitResponse() != null ? getLimitResponse() : item); } @@ -146,19 +138,16 @@ public String toString() { class LimitResponseNestedImpl extends V1beta2LimitResponseFluentImpl< V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested> - implements io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationFluent - .LimitResponseNested< - N>, - Nested { + implements V1beta2LimitedPriorityLevelConfigurationFluent.LimitResponseNested, Nested { LimitResponseNestedImpl(V1beta2LimitResponse item) { this.builder = new V1beta2LimitResponseBuilder(this, item); } LimitResponseNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta2LimitResponseBuilder(this); + this.builder = new V1beta2LimitResponseBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2LimitResponseBuilder builder; + V1beta2LimitResponseBuilder builder; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java index 1067c42b16..655c496390 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleBuilder.java @@ -16,9 +16,7 @@ public class V1beta2NonResourcePolicyRuleBuilder extends V1beta2NonResourcePolicyRuleFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> { + implements VisitableBuilder { public V1beta2NonResourcePolicyRuleBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRuleFluent } public V1beta2NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2NonResourcePolicyRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2NonResourcePolicyRule(), validationEnabled); } public V1beta2NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule instance) { + V1beta2NonResourcePolicyRuleFluent fluent, V1beta2NonResourcePolicyRule instance) { this(fluent, instance, false); } public V1beta2NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta2NonResourcePolicyRuleFluent fluent, + V1beta2NonResourcePolicyRule instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withNonResourceURLs(instance.getNonResourceURLs()); @@ -55,14 +51,12 @@ public V1beta2NonResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - public V1beta2NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule instance) { + public V1beta2NonResourcePolicyRuleBuilder(V1beta2NonResourcePolicyRule instance) { this(instance, false); } public V1beta2NonResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta2NonResourcePolicyRule instance, Boolean validationEnabled) { this.fluent = this; this.withNonResourceURLs(instance.getNonResourceURLs()); @@ -71,10 +65,10 @@ public V1beta2NonResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2NonResourcePolicyRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule build() { + public V1beta2NonResourcePolicyRule build() { V1beta2NonResourcePolicyRule buildable = new V1beta2NonResourcePolicyRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); buildable.setVerbs(fluent.getVerbs()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java index e848a6df3c..893dc75343 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluent.java @@ -22,63 +22,61 @@ public interface V1beta2NonResourcePolicyRuleFluent { public A addToNonResourceURLs(Integer index, String item); - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item); + public A setToNonResourceURLs(Integer index, String item); public A addToNonResourceURLs(java.lang.String... items); - public A addAllToNonResourceURLs(Collection items); + public A addAllToNonResourceURLs(Collection items); public A removeFromNonResourceURLs(java.lang.String... items); - public A removeAllFromNonResourceURLs(java.util.Collection items); + public A removeAllFromNonResourceURLs(Collection items); - public List getNonResourceURLs(); + public List getNonResourceURLs(); - public java.lang.String getNonResourceURL(java.lang.Integer index); + public String getNonResourceURL(Integer index); - public java.lang.String getFirstNonResourceURL(); + public String getFirstNonResourceURL(); - public java.lang.String getLastNonResourceURL(); + public String getLastNonResourceURL(); - public java.lang.String getMatchingNonResourceURL(Predicate predicate); + public String getMatchingNonResourceURL(Predicate predicate); - public Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate); + public Boolean hasMatchingNonResourceURL(Predicate predicate); - public A withNonResourceURLs(java.util.List nonResourceURLs); + public A withNonResourceURLs(List nonResourceURLs); public A withNonResourceURLs(java.lang.String... nonResourceURLs); - public java.lang.Boolean hasNonResourceURLs(); + public Boolean hasNonResourceURLs(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java index dda2f9ed64..62ea1a22d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRuleFluentImpl.java @@ -24,27 +24,26 @@ public class V1beta2NonResourcePolicyRuleFluentImpl implements V1beta2NonResourcePolicyRuleFluent { public V1beta2NonResourcePolicyRuleFluentImpl() {} - public V1beta2NonResourcePolicyRuleFluentImpl( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule instance) { + public V1beta2NonResourcePolicyRuleFluentImpl(V1beta2NonResourcePolicyRule instance) { this.withNonResourceURLs(instance.getNonResourceURLs()); this.withVerbs(instance.getVerbs()); } private List nonResourceURLs; - private java.util.List verbs; + private List verbs; - public A addToNonResourceURLs(Integer index, java.lang.String item) { + public A addToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.add(index, item); return (A) this; } - public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { + public A setToNonResourceURLs(Integer index, String item) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } this.nonResourceURLs.set(index, item); return (A) this; @@ -52,26 +51,26 @@ public A setToNonResourceURLs(java.lang.Integer index, java.lang.String item) { public A addToNonResourceURLs(java.lang.String... items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } - public A addAllToNonResourceURLs(Collection items) { + public A addAllToNonResourceURLs(Collection items) { if (this.nonResourceURLs == null) { - this.nonResourceURLs = new java.util.ArrayList(); + this.nonResourceURLs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.nonResourceURLs.add(item); } return (A) this; } public A removeFromNonResourceURLs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -79,8 +78,8 @@ public A removeFromNonResourceURLs(java.lang.String... items) { return (A) this; } - public A removeAllFromNonResourceURLs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNonResourceURLs(Collection items) { + for (String item : items) { if (this.nonResourceURLs != null) { this.nonResourceURLs.remove(item); } @@ -88,24 +87,24 @@ public A removeAllFromNonResourceURLs(java.util.Collection ite return (A) this; } - public java.util.List getNonResourceURLs() { + public List getNonResourceURLs() { return this.nonResourceURLs; } - public java.lang.String getNonResourceURL(java.lang.Integer index) { + public String getNonResourceURL(Integer index) { return this.nonResourceURLs.get(index); } - public java.lang.String getFirstNonResourceURL() { + public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } - public java.lang.String getLastNonResourceURL() { + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } - public java.lang.String getMatchingNonResourceURL(Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public String getMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return item; } @@ -113,9 +112,8 @@ public java.lang.String getMatchingNonResourceURL(Predicate pr return null; } - public Boolean hasMatchingNonResourceURL( - java.util.function.Predicate predicate) { - for (java.lang.String item : nonResourceURLs) { + public Boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { if (predicate.test(item)) { return true; } @@ -123,10 +121,10 @@ public Boolean hasMatchingNonResourceURL( return false; } - public A withNonResourceURLs(java.util.List nonResourceURLs) { + public A withNonResourceURLs(List nonResourceURLs) { if (nonResourceURLs != null) { - this.nonResourceURLs = new java.util.ArrayList(); - for (java.lang.String item : nonResourceURLs) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } else { @@ -140,28 +138,28 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { this.nonResourceURLs.clear(); } if (nonResourceURLs != null) { - for (java.lang.String item : nonResourceURLs) { + for (String item : nonResourceURLs) { this.addToNonResourceURLs(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceURLs() { + public Boolean hasNonResourceURLs() { return nonResourceURLs != null && !nonResourceURLs.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -169,26 +167,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -196,8 +194,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -205,25 +203,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -231,9 +228,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -241,10 +237,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -258,14 +254,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -284,7 +280,7 @@ public int hashCode() { return java.util.Objects.hash(nonResourceURLs, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java index 2a0acac3a9..76f76a21b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsBuilder.java @@ -17,8 +17,7 @@ public class V1beta2PolicyRulesWithSubjectsBuilder extends V1beta2PolicyRulesWithSubjectsFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsBuilder> { + V1beta2PolicyRulesWithSubjects, V1beta2PolicyRulesWithSubjectsBuilder> { public V1beta2PolicyRulesWithSubjectsBuilder() { this(false); } @@ -32,21 +31,19 @@ public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjectsFluen } public V1beta2PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2PolicyRulesWithSubjectsFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PolicyRulesWithSubjects(), validationEnabled); } public V1beta2PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects instance) { + V1beta2PolicyRulesWithSubjectsFluent fluent, V1beta2PolicyRulesWithSubjects instance) { this(fluent, instance, false); } public V1beta2PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects instance, - java.lang.Boolean validationEnabled) { + V1beta2PolicyRulesWithSubjectsFluent fluent, + V1beta2PolicyRulesWithSubjects instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withNonResourceRules(instance.getNonResourceRules()); @@ -57,14 +54,12 @@ public V1beta2PolicyRulesWithSubjectsBuilder( this.validationEnabled = validationEnabled; } - public V1beta2PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects instance) { + public V1beta2PolicyRulesWithSubjectsBuilder(V1beta2PolicyRulesWithSubjects instance) { this(instance, false); } public V1beta2PolicyRulesWithSubjectsBuilder( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects instance, - java.lang.Boolean validationEnabled) { + V1beta2PolicyRulesWithSubjects instance, Boolean validationEnabled) { this.fluent = this; this.withNonResourceRules(instance.getNonResourceRules()); @@ -75,10 +70,10 @@ public V1beta2PolicyRulesWithSubjectsBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PolicyRulesWithSubjectsFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects build() { + public V1beta2PolicyRulesWithSubjects build() { V1beta2PolicyRulesWithSubjects buildable = new V1beta2PolicyRulesWithSubjects(); buildable.setNonResourceRules(fluent.getNonResourceRules()); buildable.setResourceRules(fluent.getResourceRules()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java index bdebc9b4fc..f248086364 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluent.java @@ -24,21 +24,17 @@ public interface V1beta2PolicyRulesWithSubjectsFluent< extends Fluent { public A addToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item); - public A setToNonResourceRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item); + public A setToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item); public A addToNonResourceRules( io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items); - public A addAllToNonResourceRules( - Collection items); + public A addAllToNonResourceRules(Collection items); public A removeFromNonResourceRules( io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items); - public A removeAllFromNonResourceRules( - java.util.Collection items); + public A removeAllFromNonResourceRules(Collection items); public A removeMatchingFromNonResourceRules( Predicate predicate); @@ -49,244 +45,165 @@ public A removeMatchingFromNonResourceRules( * @return The buildable object. */ @Deprecated - public List - getNonResourceRules(); + public List getNonResourceRules(); - public java.util.List - buildNonResourceRules(); + public List buildNonResourceRules(); - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule buildNonResourceRule( - java.lang.Integer index); + public V1beta2NonResourcePolicyRule buildNonResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule - buildFirstNonResourceRule(); + public V1beta2NonResourcePolicyRule buildFirstNonResourceRule(); - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule - buildLastNonResourceRule(); + public V1beta2NonResourcePolicyRule buildLastNonResourceRule(); - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule - buildMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> - predicate); + public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule( + Predicate predicate); public Boolean hasMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> - predicate); + Predicate predicate); - public A withNonResourceRules( - java.util.List - nonResourceRules); + public A withNonResourceRules(List nonResourceRules); public A withNonResourceRules( io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... nonResourceRules); - public java.lang.Boolean hasNonResourceRules(); + public Boolean hasNonResourceRules(); public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRule(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - addNewNonResourceRuleLike( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - setNewNonResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editNonResourceRule(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editFirstNonResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editLastNonResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> - predicate); - - public A addToResourceRules(java.lang.Integer index, V1beta2ResourcePolicyRule item); - - public A setToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item); + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( + V1beta2NonResourcePolicyRule item); + + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( + Integer index, V1beta2NonResourcePolicyRule item); + + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( + Integer index); + + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule(); + + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editLastNonResourceRule(); + + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( + Predicate predicate); + + public A addToResourceRules(Integer index, V1beta2ResourcePolicyRule item); + + public A setToResourceRules(Integer index, V1beta2ResourcePolicyRule item); public A addToResourceRules( io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items); - public A addAllToResourceRules( - java.util.Collection items); + public A addAllToResourceRules(Collection items); public A removeFromResourceRules( io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items); - public A removeAllFromResourceRules( - java.util.Collection items); + public A removeAllFromResourceRules(Collection items); - public A removeMatchingFromResourceRules( - java.util.function.Predicate predicate); + public A removeMatchingFromResourceRules(Predicate predicate); /** * This method has been deprecated, please use method buildResourceRules instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getResourceRules(); + @Deprecated + public List getResourceRules(); - public java.util.List - buildResourceRules(); + public List buildResourceRules(); - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildResourceRule( - java.lang.Integer index); + public V1beta2ResourcePolicyRule buildResourceRule(Integer index); - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildFirstResourceRule(); + public V1beta2ResourcePolicyRule buildFirstResourceRule(); - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildLastResourceRule(); + public V1beta2ResourcePolicyRule buildLastResourceRule(); - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate); + public V1beta2ResourcePolicyRule buildMatchingResourceRule( + Predicate predicate); - public java.lang.Boolean hasMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate); + public Boolean hasMatchingResourceRule(Predicate predicate); - public A withResourceRules( - java.util.List resourceRules); + public A withResourceRules(List resourceRules); public A withResourceRules( io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... resourceRules); - public java.lang.Boolean hasResourceRules(); + public Boolean hasResourceRules(); public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRule(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - addNewResourceRuleLike(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - setNewResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editResourceRule(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editFirstResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editLastResourceRule(); - - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate); - - public A addToSubjects(java.lang.Integer index, V1beta2Subject item); - - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2Subject item); + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( + V1beta2ResourcePolicyRule item); + + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( + Integer index, V1beta2ResourcePolicyRule item); + + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( + Integer index); + + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule(); + + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editLastResourceRule(); + + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( + Predicate predicate); + + public A addToSubjects(Integer index, V1beta2Subject item); + + public A setToSubjects(Integer index, V1beta2Subject item); public A addToSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items); - public A addAllToSubjects( - java.util.Collection items); + public A addAllToSubjects(Collection items); public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items); - public A removeAllFromSubjects( - java.util.Collection items); + public A removeAllFromSubjects(Collection items); - public A removeMatchingFromSubjects( - java.util.function.Predicate predicate); + public A removeMatchingFromSubjects(Predicate predicate); /** * This method has been deprecated, please use method buildSubjects instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSubjects(); + @Deprecated + public List getSubjects(); - public java.util.List buildSubjects(); + public List buildSubjects(); - public io.kubernetes.client.openapi.models.V1beta2Subject buildSubject(java.lang.Integer index); + public V1beta2Subject buildSubject(Integer index); - public io.kubernetes.client.openapi.models.V1beta2Subject buildFirstSubject(); + public V1beta2Subject buildFirstSubject(); - public io.kubernetes.client.openapi.models.V1beta2Subject buildLastSubject(); + public V1beta2Subject buildLastSubject(); - public io.kubernetes.client.openapi.models.V1beta2Subject buildMatchingSubject( - java.util.function.Predicate - predicate); + public V1beta2Subject buildMatchingSubject(Predicate predicate); - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate - predicate); + public Boolean hasMatchingSubject(Predicate predicate); - public A withSubjects( - java.util.List subjects); + public A withSubjects(List subjects); public A withSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... subjects); - public java.lang.Boolean hasSubjects(); + public Boolean hasSubjects(); public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1beta2Subject item); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( + V1beta2Subject item); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2Subject item); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( + Integer index, V1beta2Subject item); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editSubject(java.lang.Integer index); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editFirstSubject(); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editLastSubject(); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editLastSubject(); - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( + Predicate predicate); public interface NonResourceRulesNested extends Nested, @@ -298,7 +215,7 @@ public interface NonResourceRulesNested } public interface ResourceRulesNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2ResourcePolicyRuleFluent< V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested> { public N and(); @@ -307,7 +224,7 @@ public interface ResourceRulesNested } public interface SubjectsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2SubjectFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java index a3ec9a6515..7c0ea55aad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjectsFluentImpl.java @@ -27,8 +27,7 @@ public class V1beta2PolicyRulesWithSubjectsFluentImpl< extends BaseFluent implements V1beta2PolicyRulesWithSubjectsFluent { public V1beta2PolicyRulesWithSubjectsFluentImpl() {} - public V1beta2PolicyRulesWithSubjectsFluentImpl( - io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjects instance) { + public V1beta2PolicyRulesWithSubjectsFluentImpl(V1beta2PolicyRulesWithSubjects instance) { this.withNonResourceRules(instance.getNonResourceRules()); this.withResourceRules(instance.getResourceRules()); @@ -37,17 +36,14 @@ public V1beta2PolicyRulesWithSubjectsFluentImpl( } private ArrayList nonResourceRules; - private java.util.ArrayList resourceRules; - private java.util.ArrayList subjects; + private ArrayList resourceRules; + private ArrayList subjects; public A addToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(item); + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); _visitables .get("nonResourceRules") .add(index >= 0 ? index : _visitables.get("nonResourceRules").size(), builder); @@ -55,16 +51,11 @@ public A addToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item) return (A) this; } - public A setToNonResourceRules( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item) { + public A setToNonResourceRules(Integer index, V1beta2NonResourcePolicyRule item) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(item); + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); if (index < 0 || index >= _visitables.get("nonResourceRules").size()) { _visitables.get("nonResourceRules").add(builder); } else { @@ -81,29 +72,22 @@ public A setToNonResourceRules( public A addToNonResourceRules( io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(item); + for (V1beta2NonResourcePolicyRule item : items) { + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } return (A) this; } - public A addAllToNonResourceRules( - Collection items) { + public A addAllToNonResourceRules(Collection items) { if (this.nonResourceRules == null) { - this.nonResourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder>(); + this.nonResourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(item); + for (V1beta2NonResourcePolicyRule item : items) { + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } @@ -112,9 +96,8 @@ public A addAllToNonResourceRules( public A removeFromNonResourceRules( io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule... items) { - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(item); + for (V1beta2NonResourcePolicyRule item : items) { + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").remove(builder); if (this.nonResourceRules != null) { this.nonResourceRules.remove(builder); @@ -123,12 +106,9 @@ public A removeFromNonResourceRules( return (A) this; } - public A removeAllFromNonResourceRules( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(item); + public A removeAllFromNonResourceRules(Collection items) { + for (V1beta2NonResourcePolicyRule item : items) { + V1beta2NonResourcePolicyRuleBuilder builder = new V1beta2NonResourcePolicyRuleBuilder(item); _visitables.get("nonResourceRules").remove(builder); if (this.nonResourceRules != null) { this.nonResourceRules.remove(builder); @@ -138,14 +118,12 @@ public A removeAllFromNonResourceRules( } public A removeMatchingFromNonResourceRules( - Predicate - predicate) { + Predicate predicate) { if (nonResourceRules == null) return (A) this; - final Iterator each = - nonResourceRules.iterator(); + final Iterator each = nonResourceRules.iterator(); final List visitables = _visitables.get("nonResourceRules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder = each.next(); + V1beta2NonResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -160,38 +138,29 @@ public A removeMatchingFromNonResourceRules( * @return The buildable object. */ @Deprecated - public List - getNonResourceRules() { + public List getNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public java.util.List - buildNonResourceRules() { + public List buildNonResourceRules() { return nonResourceRules != null ? build(nonResourceRules) : null; } - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule buildNonResourceRule( - java.lang.Integer index) { + public V1beta2NonResourcePolicyRule buildNonResourceRule(Integer index) { return this.nonResourceRules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule - buildFirstNonResourceRule() { + public V1beta2NonResourcePolicyRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule - buildLastNonResourceRule() { + public V1beta2NonResourcePolicyRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule - buildMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder item : - nonResourceRules) { + public V1beta2NonResourcePolicyRule buildMatchingNonResourceRule( + Predicate predicate) { + for (V1beta2NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { return item.build(); } @@ -200,11 +169,8 @@ public io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule buildNon } public Boolean hasMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder item : - nonResourceRules) { + Predicate predicate) { + for (V1beta2NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { return true; } @@ -212,16 +178,13 @@ public Boolean hasMatchingNonResourceRule( return false; } - public A withNonResourceRules( - java.util.List - nonResourceRules) { + public A withNonResourceRules(List nonResourceRules) { if (this.nonResourceRules != null) { _visitables.get("nonResourceRules").removeAll(this.nonResourceRules); } if (nonResourceRules != null) { - this.nonResourceRules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item : - nonResourceRules) { + this.nonResourceRules = new ArrayList(); + for (V1beta2NonResourcePolicyRule item : nonResourceRules) { this.addToNonResourceRules(item); } } else { @@ -236,15 +199,14 @@ public A withNonResourceRules( this.nonResourceRules.clear(); } if (nonResourceRules != null) { - for (io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item : - nonResourceRules) { + for (V1beta2NonResourcePolicyRule item : nonResourceRules) { this.addToNonResourceRules(item); } } return (A) this; } - public java.lang.Boolean hasNonResourceRules() { + public Boolean hasNonResourceRules() { return nonResourceRules != null && !nonResourceRules.isEmpty(); } @@ -252,59 +214,38 @@ public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonR return new V1beta2PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - addNewNonResourceRuleLike( - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item) { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonResourceRuleLike( + V1beta2NonResourcePolicyRule item) { return new V1beta2PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - setNewNonResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item) { - return new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluentImpl - .NonResourceRulesNestedImpl(index, item); + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested setNewNonResourceRuleLike( + Integer index, V1beta2NonResourcePolicyRule item) { + return new V1beta2PolicyRulesWithSubjectsFluentImpl.NonResourceRulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editNonResourceRule(java.lang.Integer index) { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editNonResourceRule( + Integer index) { if (nonResourceRules.size() <= index) throw new RuntimeException("Can't edit nonResourceRules. Index exceeds size."); return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editFirstNonResourceRule() { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editFirstNonResourceRule() { if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editLastNonResourceRule() { + public V1beta2PolicyRulesWithSubjectsFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - A> - editMatchingNonResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder> - predicate) { + public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested editMatchingNonResourceRule( + Predicate predicate) { int index = -1; for (int i = 0; i < nonResourceRules.size(); i++) { if (predicate.test(nonResourceRules.get(i))) { @@ -317,13 +258,11 @@ public V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested addNewNonR return setNewNonResourceRuleLike(index, buildNonResourceRule(index)); } - public A addToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item) { + public A addToResourceRules(Integer index, V1beta2ResourcePolicyRule item) { if (this.resourceRules == null) { - this.resourceRules = new java.util.ArrayList(); + this.resourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(item); + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); _visitables .get("resourceRules") .add(index >= 0 ? index : _visitables.get("resourceRules").size(), builder); @@ -331,15 +270,11 @@ public A addToResourceRules( return (A) this; } - public A setToResourceRules( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item) { + public A setToResourceRules(Integer index, V1beta2ResourcePolicyRule item) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(item); + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); if (index < 0 || index >= _visitables.get("resourceRules").size()) { _visitables.get("resourceRules").add(builder); } else { @@ -356,29 +291,22 @@ public A setToResourceRules( public A addToResourceRules( io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(item); + for (V1beta2ResourcePolicyRule item : items) { + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; } - public A addAllToResourceRules( - java.util.Collection items) { + public A addAllToResourceRules(Collection items) { if (this.resourceRules == null) { - this.resourceRules = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder>(); + this.resourceRules = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(item); + for (V1beta2ResourcePolicyRule item : items) { + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } @@ -387,9 +315,8 @@ public A addAllToResourceRules( public A removeFromResourceRules( io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule... items) { - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(item); + for (V1beta2ResourcePolicyRule item : items) { + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").remove(builder); if (this.resourceRules != null) { this.resourceRules.remove(builder); @@ -398,11 +325,9 @@ public A removeFromResourceRules( return (A) this; } - public A removeAllFromResourceRules( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item : items) { - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(item); + public A removeAllFromResourceRules(Collection items) { + for (V1beta2ResourcePolicyRule item : items) { + V1beta2ResourcePolicyRuleBuilder builder = new V1beta2ResourcePolicyRuleBuilder(item); _visitables.get("resourceRules").remove(builder); if (this.resourceRules != null) { this.resourceRules.remove(builder); @@ -411,16 +336,12 @@ public A removeAllFromResourceRules( return (A) this; } - public A removeMatchingFromResourceRules( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate) { + public A removeMatchingFromResourceRules(Predicate predicate) { if (resourceRules == null) return (A) this; - final Iterator each = - resourceRules.iterator(); + final Iterator each = resourceRules.iterator(); final List visitables = _visitables.get("resourceRules"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder = each.next(); + V1beta2ResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -434,36 +355,30 @@ public A removeMatchingFromResourceRules( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getResourceRules() { + @Deprecated + public List getResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public java.util.List - buildResourceRules() { + public List buildResourceRules() { return resourceRules != null ? build(resourceRules) : null; } - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildResourceRule( - java.lang.Integer index) { + public V1beta2ResourcePolicyRule buildResourceRule(Integer index) { return this.resourceRules.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildFirstResourceRule() { + public V1beta2ResourcePolicyRule buildFirstResourceRule() { return this.resourceRules.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildLastResourceRule() { + public V1beta2ResourcePolicyRule buildLastResourceRule() { return this.resourceRules.get(resourceRules.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder item : - resourceRules) { + public V1beta2ResourcePolicyRule buildMatchingResourceRule( + Predicate predicate) { + for (V1beta2ResourcePolicyRuleBuilder item : resourceRules) { if (predicate.test(item)) { return item.build(); } @@ -471,12 +386,8 @@ public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule buildMatchi return null; } - public java.lang.Boolean hasMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder item : - resourceRules) { + public Boolean hasMatchingResourceRule(Predicate predicate) { + for (V1beta2ResourcePolicyRuleBuilder item : resourceRules) { if (predicate.test(item)) { return true; } @@ -484,14 +395,13 @@ public java.lang.Boolean hasMatchingResourceRule( return false; } - public A withResourceRules( - java.util.List resourceRules) { + public A withResourceRules(List resourceRules) { if (this.resourceRules != null) { _visitables.get("resourceRules").removeAll(this.resourceRules); } if (resourceRules != null) { - this.resourceRules = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item : resourceRules) { + this.resourceRules = new ArrayList(); + for (V1beta2ResourcePolicyRule item : resourceRules) { this.addToResourceRules(item); } } else { @@ -506,14 +416,14 @@ public A withResourceRules( this.resourceRules.clear(); } if (resourceRules != null) { - for (io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item : resourceRules) { + for (V1beta2ResourcePolicyRule item : resourceRules) { this.addToResourceRules(item); } } return (A) this; } - public java.lang.Boolean hasResourceRules() { + public Boolean hasResourceRules() { return resourceRules != null && !resourceRules.isEmpty(); } @@ -521,58 +431,37 @@ public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourc return new V1beta2PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - addNewResourceRuleLike(io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item) { - return new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluentImpl - .ResourceRulesNestedImpl(-1, item); + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourceRuleLike( + V1beta2ResourcePolicyRule item) { + return new V1beta2PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - setNewResourceRuleLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item) { - return new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluentImpl - .ResourceRulesNestedImpl(index, item); + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested setNewResourceRuleLike( + Integer index, V1beta2ResourcePolicyRule item) { + return new V1beta2PolicyRulesWithSubjectsFluentImpl.ResourceRulesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editResourceRule(java.lang.Integer index) { + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editResourceRule( + Integer index) { if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); return setNewResourceRuleLike(index, buildResourceRule(index)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editFirstResourceRule() { + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editFirstResourceRule() { if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); return setNewResourceRuleLike(0, buildResourceRule(0)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editLastResourceRule() { + public V1beta2PolicyRulesWithSubjectsFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - A> - editMatchingResourceRule( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> - predicate) { + public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested editMatchingResourceRule( + Predicate predicate) { int index = -1; for (int i = 0; i < resourceRules.size(); i++) { if (predicate.test(resourceRules.get(i))) { @@ -584,13 +473,11 @@ public V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested addNewResourc return setNewResourceRuleLike(index, buildResourceRule(index)); } - public A addToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2Subject item) { + public A addToSubjects(Integer index, V1beta2Subject item) { if (this.subjects == null) { - this.subjects = new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(item); + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); _visitables .get("subjects") .add(index >= 0 ? index : _visitables.get("subjects").size(), builder); @@ -598,14 +485,11 @@ public A addToSubjects( return (A) this; } - public A setToSubjects( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2Subject item) { + public A setToSubjects(Integer index, V1beta2Subject item) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(item); + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); if (index < 0 || index >= _visitables.get("subjects").size()) { _visitables.get("subjects").add(builder); } else { @@ -621,27 +505,22 @@ public A setToSubjects( public A addToSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2Subject item : items) { - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(item); + for (V1beta2Subject item : items) { + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; } - public A addAllToSubjects( - java.util.Collection items) { + public A addAllToSubjects(Collection items) { if (this.subjects == null) { - this.subjects = - new java.util.ArrayList(); + this.subjects = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2Subject item : items) { - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(item); + for (V1beta2Subject item : items) { + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); _visitables.get("subjects").add(builder); this.subjects.add(builder); } @@ -649,9 +528,8 @@ public A addAllToSubjects( } public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... items) { - for (io.kubernetes.client.openapi.models.V1beta2Subject item : items) { - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(item); + for (V1beta2Subject item : items) { + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); _visitables.get("subjects").remove(builder); if (this.subjects != null) { this.subjects.remove(builder); @@ -660,11 +538,9 @@ public A removeFromSubjects(io.kubernetes.client.openapi.models.V1beta2Subject.. return (A) this; } - public A removeAllFromSubjects( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V1beta2Subject item : items) { - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(item); + public A removeAllFromSubjects(Collection items) { + for (V1beta2Subject item : items) { + V1beta2SubjectBuilder builder = new V1beta2SubjectBuilder(item); _visitables.get("subjects").remove(builder); if (this.subjects != null) { this.subjects.remove(builder); @@ -673,15 +549,12 @@ public A removeAllFromSubjects( return (A) this; } - public A removeMatchingFromSubjects( - java.util.function.Predicate - predicate) { + public A removeMatchingFromSubjects(Predicate predicate) { if (subjects == null) return (A) this; - final Iterator each = - subjects.iterator(); + final Iterator each = subjects.iterator(); final List visitables = _visitables.get("subjects"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder = each.next(); + V1beta2SubjectBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -695,31 +568,29 @@ public A removeMatchingFromSubjects( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getSubjects() { + @Deprecated + public List getSubjects() { return subjects != null ? build(subjects) : null; } - public java.util.List buildSubjects() { + public List buildSubjects() { return subjects != null ? build(subjects) : null; } - public io.kubernetes.client.openapi.models.V1beta2Subject buildSubject(java.lang.Integer index) { + public V1beta2Subject buildSubject(Integer index) { return this.subjects.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2Subject buildFirstSubject() { + public V1beta2Subject buildFirstSubject() { return this.subjects.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2Subject buildLastSubject() { + public V1beta2Subject buildLastSubject() { return this.subjects.get(subjects.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2Subject buildMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2SubjectBuilder item : subjects) { + public V1beta2Subject buildMatchingSubject(Predicate predicate) { + for (V1beta2SubjectBuilder item : subjects) { if (predicate.test(item)) { return item.build(); } @@ -727,10 +598,8 @@ public io.kubernetes.client.openapi.models.V1beta2Subject buildMatchingSubject( return null; } - public java.lang.Boolean hasMatchingSubject( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2SubjectBuilder item : subjects) { + public Boolean hasMatchingSubject(Predicate predicate) { + for (V1beta2SubjectBuilder item : subjects) { if (predicate.test(item)) { return true; } @@ -738,14 +607,13 @@ public java.lang.Boolean hasMatchingSubject( return false; } - public A withSubjects( - java.util.List subjects) { + public A withSubjects(List subjects) { if (this.subjects != null) { _visitables.get("subjects").removeAll(this.subjects); } if (subjects != null) { - this.subjects = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2Subject item : subjects) { + this.subjects = new ArrayList(); + for (V1beta2Subject item : subjects) { this.addToSubjects(item); } } else { @@ -759,14 +627,14 @@ public A withSubjects(io.kubernetes.client.openapi.models.V1beta2Subject... subj this.subjects.clear(); } if (subjects != null) { - for (io.kubernetes.client.openapi.models.V1beta2Subject item : subjects) { + for (V1beta2Subject item : subjects) { this.addToSubjects(item); } } return (A) this; } - public java.lang.Boolean hasSubjects() { + public Boolean hasSubjects() { return subjects != null && !subjects.isEmpty(); } @@ -774,44 +642,36 @@ public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubject() { return new V1beta2PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - addNewSubjectLike(io.kubernetes.client.openapi.models.V1beta2Subject item) { - return new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluentImpl - .SubjectsNestedImpl(-1, item); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested addNewSubjectLike( + V1beta2Subject item) { + return new V1beta2PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - setNewSubjectLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2Subject item) { - return new io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluentImpl - .SubjectsNestedImpl(index, item); + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested setNewSubjectLike( + Integer index, V1beta2Subject item) { + return new V1beta2PolicyRulesWithSubjectsFluentImpl.SubjectsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editSubject(java.lang.Integer index) { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editSubject(Integer index) { if (subjects.size() <= index) throw new RuntimeException("Can't edit subjects. Index exceeds size."); return setNewSubjectLike(index, buildSubject(index)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editFirstSubject() { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editFirstSubject() { if (subjects.size() == 0) throw new RuntimeException("Can't edit first subjects. The list is empty."); return setNewSubjectLike(0, buildSubject(0)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editLastSubject() { + public V1beta2PolicyRulesWithSubjectsFluent.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)); } - public io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested - editMatchingSubject( - java.util.function.Predicate - predicate) { + public V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested editMatchingSubject( + Predicate predicate) { int index = -1; for (int i = 0; i < subjects.size(); i++) { if (predicate.test(subjects.get(i))) { @@ -863,25 +723,19 @@ public String toString() { class NonResourceRulesNestedImpl extends V1beta2NonResourcePolicyRuleFluentImpl< V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested> - implements io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .NonResourceRulesNested< - N>, - Nested { - NonResourceRulesNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRule item) { + implements V1beta2PolicyRulesWithSubjectsFluent.NonResourceRulesNested, Nested { + NonResourceRulesNestedImpl(Integer index, V1beta2NonResourcePolicyRule item) { this.index = index; this.builder = new V1beta2NonResourcePolicyRuleBuilder(this, item); } NonResourceRulesNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder(this); + this.builder = new V1beta2NonResourcePolicyRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2NonResourcePolicyRuleBuilder builder; - java.lang.Integer index; + V1beta2NonResourcePolicyRuleBuilder builder; + Integer index; public N and() { return (N) @@ -897,24 +751,19 @@ public N endNonResourceRule() { class ResourceRulesNestedImpl extends V1beta2ResourcePolicyRuleFluentImpl< V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested> - implements io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .ResourceRulesNested< - N>, - io.kubernetes.client.fluent.Nested { - ResourceRulesNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule item) { + implements V1beta2PolicyRulesWithSubjectsFluent.ResourceRulesNested, Nested { + ResourceRulesNestedImpl(Integer index, V1beta2ResourcePolicyRule item) { this.index = index; this.builder = new V1beta2ResourcePolicyRuleBuilder(this, item); } ResourceRulesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder(this); + this.builder = new V1beta2ResourcePolicyRuleBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder builder; - java.lang.Integer index; + V1beta2ResourcePolicyRuleBuilder builder; + Integer index; public N and() { return (N) @@ -928,23 +777,19 @@ public N endResourceRule() { class SubjectsNestedImpl extends V1beta2SubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2PolicyRulesWithSubjectsFluent - .SubjectsNested< - N>, - io.kubernetes.client.fluent.Nested { - SubjectsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V1beta2Subject item) { + implements V1beta2PolicyRulesWithSubjectsFluent.SubjectsNested, Nested { + SubjectsNestedImpl(Integer index, V1beta2Subject item) { this.index = index; this.builder = new V1beta2SubjectBuilder(this, item); } SubjectsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V1beta2SubjectBuilder(this); + this.builder = new V1beta2SubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder builder; - java.lang.Integer index; + V1beta2SubjectBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java index 6be73d70e5..54f0cadcbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationBuilder.java @@ -17,8 +17,7 @@ public class V1beta2PriorityLevelConfigurationBuilder extends V1beta2PriorityLevelConfigurationFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration, - V1beta2PriorityLevelConfigurationBuilder> { + V1beta2PriorityLevelConfiguration, V1beta2PriorityLevelConfigurationBuilder> { public V1beta2PriorityLevelConfigurationBuilder() { this(false); } @@ -33,21 +32,20 @@ public V1beta2PriorityLevelConfigurationBuilder( } public V1beta2PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfiguration(), validationEnabled); } public V1beta2PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration instance) { + V1beta2PriorityLevelConfigurationFluent fluent, + V1beta2PriorityLevelConfiguration instance) { this(fluent, instance, false); } public V1beta2PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationFluent fluent, + V1beta2PriorityLevelConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,14 +60,12 @@ public V1beta2PriorityLevelConfigurationBuilder( this.validationEnabled = validationEnabled; } - public V1beta2PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration instance) { + public V1beta2PriorityLevelConfigurationBuilder(V1beta2PriorityLevelConfiguration instance) { this(instance, false); } public V1beta2PriorityLevelConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -84,10 +80,10 @@ public V1beta2PriorityLevelConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PriorityLevelConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration build() { + public V1beta2PriorityLevelConfiguration build() { V1beta2PriorityLevelConfiguration buildable = new V1beta2PriorityLevelConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java index 9321a4fb8c..3341be13c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionBuilder.java @@ -19,7 +19,7 @@ public class V1beta2PriorityLevelConfigurationConditionBuilder V1beta2PriorityLevelConfigurationConditionBuilder> implements VisitableBuilder< V1beta2PriorityLevelConfigurationCondition, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder> { + V1beta2PriorityLevelConfigurationConditionBuilder> { public V1beta2PriorityLevelConfigurationConditionBuilder() { this(false); } @@ -34,24 +34,20 @@ public V1beta2PriorityLevelConfigurationConditionBuilder( } public V1beta2PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionFluent - fluent, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationCondition(), validationEnabled); } public V1beta2PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionFluent - fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition instance) { + V1beta2PriorityLevelConfigurationConditionFluent fluent, + V1beta2PriorityLevelConfigurationCondition instance) { this(fluent, instance, false); } public V1beta2PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionFluent - fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationConditionFluent fluent, + V1beta2PriorityLevelConfigurationCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -67,13 +63,12 @@ public V1beta2PriorityLevelConfigurationConditionBuilder( } public V1beta2PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition instance) { + V1beta2PriorityLevelConfigurationCondition instance) { this(instance, false); } public V1beta2PriorityLevelConfigurationConditionBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -88,10 +83,10 @@ public V1beta2PriorityLevelConfigurationConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PriorityLevelConfigurationConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition build() { + public V1beta2PriorityLevelConfigurationCondition build() { V1beta2PriorityLevelConfigurationCondition buildable = new V1beta2PriorityLevelConfigurationCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java index 3726aa92f2..f5f9d19488 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluent.java @@ -21,31 +21,31 @@ public interface V1beta2PriorityLevelConfigurationConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java index fd0f103dfa..97f18ebe95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationConditionFluentImpl.java @@ -23,7 +23,7 @@ public class V1beta2PriorityLevelConfigurationConditionFluentImpl< public V1beta2PriorityLevelConfigurationConditionFluentImpl() {} public V1beta2PriorityLevelConfigurationConditionFluentImpl( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition instance) { + V1beta2PriorityLevelConfigurationCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -37,15 +37,15 @@ public V1beta2PriorityLevelConfigurationConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -54,55 +54,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -126,7 +126,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java index 9456b010f0..d6b9fc8ab1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluent.java @@ -21,15 +21,15 @@ public interface V1beta2PriorityLevelConfigurationFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -39,90 +39,75 @@ public interface V1beta2PriorityLevelConfigurationFluent< @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - editMetadata(); + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadata(); + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2PriorityLevelConfigurationSpec getSpec(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec buildSpec(); + public V1beta2PriorityLevelConfigurationSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec spec); + public A withSpec(V1beta2PriorityLevelConfigurationSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec item); + public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( + V1beta2PriorityLevelConfigurationSpec item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - editSpec(); + public V1beta2PriorityLevelConfigurationFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - editOrNewSpec(); + public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec item); + public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( + V1beta2PriorityLevelConfigurationSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2PriorityLevelConfigurationStatus getStatus(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus buildStatus(); + public V1beta2PriorityLevelConfigurationStatus buildStatus(); - public A withStatus( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus status); + public A withStatus(V1beta2PriorityLevelConfigurationStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus item); + public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( + V1beta2PriorityLevelConfigurationStatus item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - editStatus(); + public V1beta2PriorityLevelConfigurationFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - editOrNewStatus(); + public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus item); + public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( + V1beta2PriorityLevelConfigurationStatus item); public interface MetadataNested extends Nested, @@ -133,7 +118,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2PriorityLevelConfigurationSpecFluent< V1beta2PriorityLevelConfigurationFluent.SpecNested> { public N and(); @@ -142,7 +127,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2PriorityLevelConfigurationStatusFluent< V1beta2PriorityLevelConfigurationFluent.StatusNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java index 082ca95a91..337b49bc01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationFluentImpl.java @@ -22,8 +22,7 @@ public class V1beta2PriorityLevelConfigurationFluentImpl< extends BaseFluent implements V1beta2PriorityLevelConfigurationFluent { public V1beta2PriorityLevelConfigurationFluentImpl() {} - public V1beta2PriorityLevelConfigurationFluentImpl( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration instance) { + public V1beta2PriorityLevelConfigurationFluentImpl(V1beta2PriorityLevelConfiguration instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -36,16 +35,16 @@ public V1beta2PriorityLevelConfigurationFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V1beta2PriorityLevelConfigurationSpecBuilder spec; private V1beta2PriorityLevelConfigurationStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,16 +53,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -73,24 +72,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -98,30 +100,22 @@ public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadata return new V1beta2PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V1beta2PriorityLevelConfigurationFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - editMetadata() { + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadata() { + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V1beta2PriorityLevelConfigurationFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -130,26 +124,28 @@ public V1beta2PriorityLevelConfigurationFluent.MetadataNested withNewMetadata * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec getSpec() { + @Deprecated + public V1beta2PriorityLevelConfigurationSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec buildSpec() { + public V1beta2PriorityLevelConfigurationSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec spec) { + public A withSpec(V1beta2PriorityLevelConfigurationSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { this.spec = new V1beta2PriorityLevelConfigurationSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -157,30 +153,22 @@ public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpec() { return new V1beta2PriorityLevelConfigurationFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - withNewSpecLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec item) { - return new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluentImpl - .SpecNestedImpl(item); + public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpecLike( + V1beta2PriorityLevelConfigurationSpec item) { + return new V1beta2PriorityLevelConfigurationFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - editSpec() { + public V1beta2PriorityLevelConfigurationFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - editOrNewSpec() { + public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V1beta2PriorityLevelConfigurationSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec item) { + public V1beta2PriorityLevelConfigurationFluent.SpecNested editOrNewSpecLike( + V1beta2PriorityLevelConfigurationSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -189,26 +177,28 @@ public V1beta2PriorityLevelConfigurationFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus getStatus() { + @Deprecated + public V1beta2PriorityLevelConfigurationStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus buildStatus() { + public V1beta2PriorityLevelConfigurationStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus status) { + public A withStatus(V1beta2PriorityLevelConfigurationStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V1beta2PriorityLevelConfigurationStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -216,31 +206,24 @@ public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatus() { return new V1beta2PriorityLevelConfigurationFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus item) { - return new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluentImpl - .StatusNestedImpl(item); + public V1beta2PriorityLevelConfigurationFluent.StatusNested withNewStatusLike( + V1beta2PriorityLevelConfigurationStatus item) { + return new V1beta2PriorityLevelConfigurationFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - editStatus() { + public V1beta2PriorityLevelConfigurationFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - editOrNewStatus() { + public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatus() { return withNewStatusLike( getStatus() != null ? getStatus() - : new io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationStatusBuilder() - .build()); + : new V1beta2PriorityLevelConfigurationStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus item) { + public V1beta2PriorityLevelConfigurationFluent.StatusNested editOrNewStatusLike( + V1beta2PriorityLevelConfigurationStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -262,7 +245,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -291,19 +274,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent - .MetadataNested< - N>, - Nested { + implements V1beta2PriorityLevelConfigurationFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V1beta2PriorityLevelConfigurationFluentImpl.this.withMetadata(builder.build()); @@ -317,21 +297,16 @@ public N endMetadata() { class SpecNestedImpl extends V1beta2PriorityLevelConfigurationSpecFluentImpl< V1beta2PriorityLevelConfigurationFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent - .SpecNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta2PriorityLevelConfigurationFluent.SpecNested, Nested { SpecNestedImpl(V1beta2PriorityLevelConfigurationSpec item) { this.builder = new V1beta2PriorityLevelConfigurationSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecBuilder( - this); + this.builder = new V1beta2PriorityLevelConfigurationSpecBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecBuilder builder; + V1beta2PriorityLevelConfigurationSpecBuilder builder; public N and() { return (N) V1beta2PriorityLevelConfigurationFluentImpl.this.withSpec(builder.build()); @@ -345,21 +320,16 @@ public N endSpec() { class StatusNestedImpl extends V1beta2PriorityLevelConfigurationStatusFluentImpl< V1beta2PriorityLevelConfigurationFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationFluent - .StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta2PriorityLevelConfigurationFluent.StatusNested, Nested { StatusNestedImpl(V1beta2PriorityLevelConfigurationStatus item) { this.builder = new V1beta2PriorityLevelConfigurationStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusBuilder( - this); + this.builder = new V1beta2PriorityLevelConfigurationStatusBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusBuilder builder; + V1beta2PriorityLevelConfigurationStatusBuilder builder; public N and() { return (N) V1beta2PriorityLevelConfigurationFluentImpl.this.withStatus(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java index 88a691d3f2..c746dd4236 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListBuilder.java @@ -18,8 +18,7 @@ public class V1beta2PriorityLevelConfigurationListBuilder extends V1beta2PriorityLevelConfigurationListFluentImpl< V1beta2PriorityLevelConfigurationListBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListBuilder> { + V1beta2PriorityLevelConfigurationList, V1beta2PriorityLevelConfigurationListBuilder> { public V1beta2PriorityLevelConfigurationListBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta2PriorityLevelConfigurationListBuilder( } public V1beta2PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationListFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationList(), validationEnabled); } public V1beta2PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList instance) { + V1beta2PriorityLevelConfigurationListFluent fluent, + V1beta2PriorityLevelConfigurationList instance) { this(fluent, instance, false); } public V1beta2PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationListFluent fluent, + V1beta2PriorityLevelConfigurationList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -62,13 +60,12 @@ public V1beta2PriorityLevelConfigurationListBuilder( } public V1beta2PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList instance) { + V1beta2PriorityLevelConfigurationList instance) { this(instance, false); } public V1beta2PriorityLevelConfigurationListBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -81,10 +78,10 @@ public V1beta2PriorityLevelConfigurationListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PriorityLevelConfigurationListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationList build() { + public V1beta2PriorityLevelConfigurationList build() { V1beta2PriorityLevelConfigurationList buildable = new V1beta2PriorityLevelConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java index 9089084a35..41d0780aa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluent.java @@ -24,28 +24,23 @@ public interface V1beta2PriorityLevelConfigurationListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V1beta2PriorityLevelConfiguration item); - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item); + public A setToItems(Integer index, V1beta2PriorityLevelConfiguration item); public A addToItems( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); - public A removeAllFromItems( - java.util.Collection - items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -55,114 +50,76 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildItem( - java.lang.Integer index); + public V1beta2PriorityLevelConfiguration buildItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildFirstItem(); + public V1beta2PriorityLevelConfiguration buildFirstItem(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildLastItem(); + public V1beta2PriorityLevelConfiguration buildLastItem(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder> - predicate); + public V1beta2PriorityLevelConfiguration buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - addNewItemLike(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( + V1beta2PriorityLevelConfiguration item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1beta2PriorityLevelConfiguration item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editItem(java.lang.Integer index); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editFirstItem(); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editLastItem(); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder> - predicate); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editMetadata(); + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata(); + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -174,7 +131,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ListMetaFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java index 781db5ed69..12dea2cbfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationListFluentImpl.java @@ -40,14 +40,14 @@ public V1beta2PriorityLevelConfigurationListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -56,30 +56,23 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item) { + public A addToItems(Integer index, V1beta2PriorityLevelConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(item); + V1beta2PriorityLevelConfigurationBuilder builder = + new V1beta2PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item) { + public A setToItems(Integer index, V1beta2PriorityLevelConfiguration item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(item); + V1beta2PriorityLevelConfigurationBuilder builder = + new V1beta2PriorityLevelConfigurationBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -96,29 +89,24 @@ public A setToItems( public A addToItems( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(item); + for (V1beta2PriorityLevelConfiguration item : items) { + V1beta2PriorityLevelConfigurationBuilder builder = + new V1beta2PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addAllToItems( - Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(item); + for (V1beta2PriorityLevelConfiguration item : items) { + V1beta2PriorityLevelConfigurationBuilder builder = + new V1beta2PriorityLevelConfigurationBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -127,9 +115,9 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration... items) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(item); + for (V1beta2PriorityLevelConfiguration item : items) { + V1beta2PriorityLevelConfigurationBuilder builder = + new V1beta2PriorityLevelConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -138,12 +126,10 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item : items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(item); + public A removeAllFromItems(Collection items) { + for (V1beta2PriorityLevelConfiguration item : items) { + V1beta2PriorityLevelConfigurationBuilder builder = + new V1beta2PriorityLevelConfigurationBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -152,16 +138,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate - predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator - each = items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder = - each.next(); + V1beta2PriorityLevelConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -176,34 +158,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildItem( - java.lang.Integer index) { + public V1beta2PriorityLevelConfiguration buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildFirstItem() { + public V1beta2PriorityLevelConfiguration buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildLastItem() { + public V1beta2PriorityLevelConfiguration buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder item : - items) { + public V1beta2PriorityLevelConfiguration buildMatchingItem( + Predicate predicate) { + for (V1beta2PriorityLevelConfigurationBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -211,12 +188,8 @@ public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration bui return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder item : - items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V1beta2PriorityLevelConfigurationBuilder item : items) { if (predicate.test(item)) { return true; } @@ -224,14 +197,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item : items) { + this.items = new ArrayList(); + for (V1beta2PriorityLevelConfiguration item : items) { this.addToItems(item); } } else { @@ -246,14 +218,14 @@ public A withItems( this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item : items) { + for (V1beta2PriorityLevelConfiguration item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -261,55 +233,34 @@ public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItem() { return new V1beta2PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - addNewItemLike(io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item) { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItemLike( + V1beta2PriorityLevelConfiguration item) { return new V1beta2PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item) { - return new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluentImpl - .ItemsNestedImpl(index, item); + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested setNewItemLike( + Integer index, V1beta2PriorityLevelConfiguration item) { + return new V1beta2PriorityLevelConfigurationListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editItem(java.lang.Integer index) { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editFirstItem() { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editLastItem() { + public V1beta2PriorityLevelConfigurationListFluent.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 io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .ItemsNested< - A> - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder> - predicate) { + public V1beta2PriorityLevelConfigurationListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -321,16 +272,16 @@ public V1beta2PriorityLevelConfigurationListFluent.ItemsNested addNewItem() { return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -339,25 +290,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -365,35 +319,22 @@ public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMeta return new V1beta2PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluentImpl - .MetadataNestedImpl(item); + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V1beta2PriorityLevelConfigurationListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editMetadata() { + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadata() { + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V1beta2PriorityLevelConfigurationListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -414,7 +355,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -441,21 +382,18 @@ class ItemsNestedImpl extends V1beta2PriorityLevelConfigurationFluentImpl< V1beta2PriorityLevelConfigurationListFluent.ItemsNested> implements V1beta2PriorityLevelConfigurationListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfiguration item) { + ItemsNestedImpl(Integer index, V1beta2PriorityLevelConfiguration item) { this.index = index; this.builder = new V1beta2PriorityLevelConfigurationBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder(this); + this.builder = new V1beta2PriorityLevelConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationBuilder builder; - java.lang.Integer index; + V1beta2PriorityLevelConfigurationBuilder builder; + Integer index; public N and() { return (N) @@ -469,19 +407,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V1beta2PriorityLevelConfigurationListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V1beta2PriorityLevelConfigurationListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java index b9ae300f1c..8e5012a4bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceBuilder.java @@ -19,7 +19,7 @@ public class V1beta2PriorityLevelConfigurationReferenceBuilder V1beta2PriorityLevelConfigurationReferenceBuilder> implements VisitableBuilder< V1beta2PriorityLevelConfigurationReference, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceBuilder> { + V1beta2PriorityLevelConfigurationReferenceBuilder> { public V1beta2PriorityLevelConfigurationReferenceBuilder() { this(false); } @@ -29,30 +29,25 @@ public V1beta2PriorityLevelConfigurationReferenceBuilder(Boolean validationEnabl } public V1beta2PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceFluent - fluent) { + V1beta2PriorityLevelConfigurationReferenceFluent fluent) { this(fluent, false); } public V1beta2PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceFluent - fluent, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationReference(), validationEnabled); } public V1beta2PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceFluent - fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference instance) { + V1beta2PriorityLevelConfigurationReferenceFluent fluent, + V1beta2PriorityLevelConfigurationReference instance) { this(fluent, instance, false); } public V1beta2PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceFluent - fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationReferenceFluent fluent, + V1beta2PriorityLevelConfigurationReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -60,23 +55,22 @@ public V1beta2PriorityLevelConfigurationReferenceBuilder( } public V1beta2PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference instance) { + V1beta2PriorityLevelConfigurationReference instance) { this(instance, false); } public V1beta2PriorityLevelConfigurationReferenceBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationReference instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PriorityLevelConfigurationReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference build() { + public V1beta2PriorityLevelConfigurationReference build() { V1beta2PriorityLevelConfigurationReference buildable = new V1beta2PriorityLevelConfigurationReference(); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java index 2662c26a0e..8300bce70c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluent.java @@ -20,7 +20,7 @@ public interface V1beta2PriorityLevelConfigurationReferenceFluent< extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java index 8bb3c75462..94d1dd1f3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReferenceFluentImpl.java @@ -22,17 +22,17 @@ public class V1beta2PriorityLevelConfigurationReferenceFluentImpl< public V1beta2PriorityLevelConfigurationReferenceFluentImpl() {} public V1beta2PriorityLevelConfigurationReferenceFluentImpl( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationReference instance) { + V1beta2PriorityLevelConfigurationReference instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -54,7 +54,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java index 907d494d95..70f06a1991 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecBuilder.java @@ -18,8 +18,7 @@ public class V1beta2PriorityLevelConfigurationSpecBuilder extends V1beta2PriorityLevelConfigurationSpecFluentImpl< V1beta2PriorityLevelConfigurationSpecBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec, - V1beta2PriorityLevelConfigurationSpecBuilder> { + V1beta2PriorityLevelConfigurationSpec, V1beta2PriorityLevelConfigurationSpecBuilder> { public V1beta2PriorityLevelConfigurationSpecBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta2PriorityLevelConfigurationSpecBuilder( } public V1beta2PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationSpec(), validationEnabled); } public V1beta2PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec instance) { + V1beta2PriorityLevelConfigurationSpecFluent fluent, + V1beta2PriorityLevelConfigurationSpec instance) { this(fluent, instance, false); } public V1beta2PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationSpecFluent fluent, + V1beta2PriorityLevelConfigurationSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLimited(instance.getLimited()); @@ -58,13 +56,12 @@ public V1beta2PriorityLevelConfigurationSpecBuilder( } public V1beta2PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec instance) { + V1beta2PriorityLevelConfigurationSpec instance) { this(instance, false); } public V1beta2PriorityLevelConfigurationSpecBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationSpec instance, Boolean validationEnabled) { this.fluent = this; this.withLimited(instance.getLimited()); @@ -73,10 +70,10 @@ public V1beta2PriorityLevelConfigurationSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PriorityLevelConfigurationSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec build() { + public V1beta2PriorityLevelConfigurationSpec build() { V1beta2PriorityLevelConfigurationSpec buildable = new V1beta2PriorityLevelConfigurationSpec(); buildable.setLimited(fluent.getLimited()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java index 210de68049..b6f7f525cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluent.java @@ -28,43 +28,29 @@ public interface V1beta2PriorityLevelConfigurationSpecFluent< @Deprecated public V1beta2LimitedPriorityLevelConfiguration getLimited(); - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration - buildLimited(); + public V1beta2LimitedPriorityLevelConfiguration buildLimited(); - public A withLimited( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration limited); + public A withLimited(V1beta2LimitedPriorityLevelConfiguration limited); public Boolean hasLimited(); public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimited(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - withNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration item); + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( + V1beta2LimitedPriorityLevelConfiguration item); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editLimited(); + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editLimited(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimited(); + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration item); + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( + V1beta2LimitedPriorityLevelConfiguration item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface LimitedNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java index e0df2e0da9..8c627de0fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpecFluentImpl.java @@ -23,7 +23,7 @@ public class V1beta2PriorityLevelConfigurationSpecFluentImpl< public V1beta2PriorityLevelConfigurationSpecFluentImpl() {} public V1beta2PriorityLevelConfigurationSpecFluentImpl( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpec instance) { + V1beta2PriorityLevelConfigurationSpec instance) { this.withLimited(instance.getLimited()); this.withType(instance.getType()); @@ -38,21 +38,22 @@ public V1beta2PriorityLevelConfigurationSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration getLimited() { + public V1beta2LimitedPriorityLevelConfiguration getLimited() { return this.limited != null ? this.limited.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration - buildLimited() { + public V1beta2LimitedPriorityLevelConfiguration buildLimited() { return this.limited != null ? this.limited.build() : null; } - public A withLimited( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration limited) { + public A withLimited(V1beta2LimitedPriorityLevelConfiguration limited) { _visitables.get("limited").remove(this.limited); if (limited != null) { this.limited = new V1beta2LimitedPriorityLevelConfigurationBuilder(limited); _visitables.get("limited").add(this.limited); + } else { + this.limited = null; + _visitables.get("limited").remove(this.limited); } return (A) this; } @@ -65,51 +66,37 @@ public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimit return new V1beta2PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - withNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration item) { + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested withNewLimitedLike( + V1beta2LimitedPriorityLevelConfiguration item) { return new V1beta2PriorityLevelConfigurationSpecFluentImpl.LimitedNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editLimited() { + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editLimited() { return withNewLimitedLike(getLimited()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimited() { + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimited() { return withNewLimitedLike( getLimited() != null ? getLimited() - : new io.kubernetes.client.openapi.models - .V1beta2LimitedPriorityLevelConfigurationBuilder() - .build()); + : new V1beta2LimitedPriorityLevelConfigurationBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - A> - editOrNewLimitedLike( - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfiguration item) { + public V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested editOrNewLimitedLike( + V1beta2LimitedPriorityLevelConfiguration item) { return withNewLimitedLike(getLimited() != null ? getLimited() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -127,7 +114,7 @@ public int hashCode() { return java.util.Objects.hash(limited, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (limited != null) { @@ -145,21 +132,16 @@ public java.lang.String toString() { class LimitedNestedImpl extends V1beta2LimitedPriorityLevelConfigurationFluentImpl< V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested> - implements io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationSpecFluent - .LimitedNested< - N>, - Nested { + implements V1beta2PriorityLevelConfigurationSpecFluent.LimitedNested, Nested { LimitedNestedImpl(V1beta2LimitedPriorityLevelConfiguration item) { this.builder = new V1beta2LimitedPriorityLevelConfigurationBuilder(this, item); } LimitedNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationBuilder( - this); + this.builder = new V1beta2LimitedPriorityLevelConfigurationBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2LimitedPriorityLevelConfigurationBuilder builder; + V1beta2LimitedPriorityLevelConfigurationBuilder builder; public N and() { return (N) V1beta2PriorityLevelConfigurationSpecFluentImpl.this.withLimited(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java index 64b4bf0eaf..7d25403f88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusBuilder.java @@ -18,8 +18,7 @@ public class V1beta2PriorityLevelConfigurationStatusBuilder extends V1beta2PriorityLevelConfigurationStatusFluentImpl< V1beta2PriorityLevelConfigurationStatusBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus, - V1beta2PriorityLevelConfigurationStatusBuilder> { + V1beta2PriorityLevelConfigurationStatus, V1beta2PriorityLevelConfigurationStatusBuilder> { public V1beta2PriorityLevelConfigurationStatusBuilder() { this(false); } @@ -34,21 +33,20 @@ public V1beta2PriorityLevelConfigurationStatusBuilder( } public V1beta2PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2PriorityLevelConfigurationStatus(), validationEnabled); } public V1beta2PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus instance) { + V1beta2PriorityLevelConfigurationStatusFluent fluent, + V1beta2PriorityLevelConfigurationStatus instance) { this(fluent, instance, false); } public V1beta2PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent fluent, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationStatusFluent fluent, + V1beta2PriorityLevelConfigurationStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -56,23 +54,22 @@ public V1beta2PriorityLevelConfigurationStatusBuilder( } public V1beta2PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus instance) { + V1beta2PriorityLevelConfigurationStatus instance) { this(instance, false); } public V1beta2PriorityLevelConfigurationStatusBuilder( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus instance, - java.lang.Boolean validationEnabled) { + V1beta2PriorityLevelConfigurationStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2PriorityLevelConfigurationStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus build() { + public V1beta2PriorityLevelConfigurationStatus build() { V1beta2PriorityLevelConfigurationStatus buildable = new V1beta2PriorityLevelConfigurationStatus(); buildable.setConditions(fluent.getConditions()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java index 6d0d67fcd1..1c1c1f063f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluent.java @@ -24,24 +24,17 @@ public interface V1beta2PriorityLevelConfigurationStatusFluent< extends Fluent { public A addToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item); + public A setToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items); - public A addAllToConditions( - Collection - items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items); - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition> - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -52,81 +45,46 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions(); + public List getConditions(); - public java.util.List< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition> - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildCondition(java.lang.Integer index); + public V1beta2PriorityLevelConfigurationCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildFirstCondition(); + public V1beta2PriorityLevelConfigurationCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildLastCondition(); + public V1beta2PriorityLevelConfigurationCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder> - predicate); + public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition( + Predicate predicate); public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder> - predicate); + Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item); - - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item); - - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder> - predicate); + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( + V1beta2PriorityLevelConfigurationCondition item); + + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta2PriorityLevelConfigurationCondition item); + + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( + Integer index); + + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition(); + + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editLastCondition(); + + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); public interface ConditionsNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java index 0b1ecf38c5..0a3c2730f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatusFluentImpl.java @@ -28,7 +28,7 @@ public class V1beta2PriorityLevelConfigurationStatusFluentImpl< public V1beta2PriorityLevelConfigurationStatusFluentImpl() {} public V1beta2PriorityLevelConfigurationStatusFluentImpl( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatus instance) { + V1beta2PriorityLevelConfigurationStatus instance) { this.withConditions(instance.getConditions()); } @@ -36,14 +36,10 @@ public V1beta2PriorityLevelConfigurationStatusFluentImpl( public A addToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder( - item); + V1beta2PriorityLevelConfigurationConditionBuilder builder = + new V1beta2PriorityLevelConfigurationConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -51,18 +47,12 @@ public A addToConditions(Integer index, V1beta2PriorityLevelConfigurationConditi return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item) { + public A setToConditions(Integer index, V1beta2PriorityLevelConfigurationCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder( - item); + V1beta2PriorityLevelConfigurationConditionBuilder builder = + new V1beta2PriorityLevelConfigurationConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -79,38 +69,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder(item); + for (V1beta2PriorityLevelConfigurationCondition item : items) { + V1beta2PriorityLevelConfigurationConditionBuilder builder = + new V1beta2PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - Collection - items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder(item); + for (V1beta2PriorityLevelConfigurationCondition item : items) { + V1beta2PriorityLevelConfigurationConditionBuilder builder = + new V1beta2PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -119,12 +95,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition... items) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder(item); + for (V1beta2PriorityLevelConfigurationCondition item : items) { + V1beta2PriorityLevelConfigurationConditionBuilder builder = + new V1beta2PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -133,16 +106,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition> - items) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item : - items) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - builder = - new io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V1beta2PriorityLevelConfigurationCondition item : items) { + V1beta2PriorityLevelConfigurationConditionBuilder builder = + new V1beta2PriorityLevelConfigurationConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -152,17 +119,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder> - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder> - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - builder = each.next(); + V1beta2PriorityLevelConfigurationConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -177,40 +139,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition> - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildCondition(java.lang.Integer index) { + public V1beta2PriorityLevelConfigurationCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildFirstCondition() { + public V1beta2PriorityLevelConfigurationCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildLastCondition() { + public V1beta2PriorityLevelConfigurationCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - item : conditions) { + public V1beta2PriorityLevelConfigurationCondition buildMatchingCondition( + Predicate predicate) { + for (V1beta2PriorityLevelConfigurationConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -219,11 +170,8 @@ public A removeMatchingFromConditions( } public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder - item : conditions) { + Predicate predicate) { + for (V1beta2PriorityLevelConfigurationConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -231,16 +179,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item : - conditions) { + this.conditions = new ArrayList(); + for (V1beta2PriorityLevelConfigurationCondition item : conditions) { this.addToConditions(item); } } else { @@ -256,15 +201,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item : - conditions) { + for (V1beta2PriorityLevelConfigurationCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -272,59 +216,37 @@ public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewC return new V1beta2PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item) { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested addNewConditionLike( + V1beta2PriorityLevelConfigurationCondition item) { return new V1beta2PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationCondition item) { - return new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V1beta2PriorityLevelConfigurationCondition item) { + return new V1beta2PriorityLevelConfigurationStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editCondition( + Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editFirstCondition() { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editLastCondition() { + public V1beta2PriorityLevelConfigurationStatusFluent.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 io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V1beta2PriorityLevelConfigurationConditionBuilder> - predicate) { + public V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -364,24 +286,19 @@ public String toString() { class ConditionsNestedImpl extends V1beta2PriorityLevelConfigurationConditionFluentImpl< V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V1beta2PriorityLevelConfigurationCondition item) { + implements V1beta2PriorityLevelConfigurationStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V1beta2PriorityLevelConfigurationCondition item) { this.index = index; this.builder = new V1beta2PriorityLevelConfigurationConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder( - this); + this.builder = new V1beta2PriorityLevelConfigurationConditionBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2PriorityLevelConfigurationConditionBuilder builder; - java.lang.Integer index; + V1beta2PriorityLevelConfigurationConditionBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java index 1660c253c0..39954db970 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationBuilder.java @@ -16,9 +16,7 @@ public class V1beta2QueuingConfigurationBuilder extends V1beta2QueuingConfigurationFluentImpl - implements VisitableBuilder< - V1beta2QueuingConfiguration, - io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationBuilder> { + implements VisitableBuilder { public V1beta2QueuingConfigurationBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfigurationFluent f } public V1beta2QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2QueuingConfigurationFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2QueuingConfiguration(), validationEnabled); } public V1beta2QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration instance) { + V1beta2QueuingConfigurationFluent fluent, V1beta2QueuingConfiguration instance) { this(fluent, instance, false); } public V1beta2QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationFluent fluent, - io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta2QueuingConfigurationFluent fluent, + V1beta2QueuingConfiguration instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withHandSize(instance.getHandSize()); @@ -57,14 +53,12 @@ public V1beta2QueuingConfigurationBuilder( this.validationEnabled = validationEnabled; } - public V1beta2QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration instance) { + public V1beta2QueuingConfigurationBuilder(V1beta2QueuingConfiguration instance) { this(instance, false); } public V1beta2QueuingConfigurationBuilder( - io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration instance, - java.lang.Boolean validationEnabled) { + V1beta2QueuingConfiguration instance, Boolean validationEnabled) { this.fluent = this; this.withHandSize(instance.getHandSize()); @@ -75,10 +69,10 @@ public V1beta2QueuingConfigurationBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2QueuingConfigurationFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2QueuingConfigurationFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration build() { + public V1beta2QueuingConfiguration build() { V1beta2QueuingConfiguration buildable = new V1beta2QueuingConfiguration(); buildable.setHandSize(fluent.getHandSize()); buildable.setQueueLengthLimit(fluent.getQueueLengthLimit()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java index f65d363602..749f69e72a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluent.java @@ -19,19 +19,19 @@ public interface V1beta2QueuingConfigurationFluent { public Integer getHandSize(); - public A withHandSize(java.lang.Integer handSize); + public A withHandSize(Integer handSize); public Boolean hasHandSize(); - public java.lang.Integer getQueueLengthLimit(); + public Integer getQueueLengthLimit(); - public A withQueueLengthLimit(java.lang.Integer queueLengthLimit); + public A withQueueLengthLimit(Integer queueLengthLimit); - public java.lang.Boolean hasQueueLengthLimit(); + public Boolean hasQueueLengthLimit(); - public java.lang.Integer getQueues(); + public Integer getQueues(); - public A withQueues(java.lang.Integer queues); + public A withQueues(Integer queues); - public java.lang.Boolean hasQueues(); + public Boolean hasQueues(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java index 8c461cf464..130ea63584 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfigurationFluentImpl.java @@ -20,8 +20,7 @@ public class V1beta2QueuingConfigurationFluentImpl implements V1beta2QueuingConfigurationFluent { public V1beta2QueuingConfigurationFluentImpl() {} - public V1beta2QueuingConfigurationFluentImpl( - io.kubernetes.client.openapi.models.V1beta2QueuingConfiguration instance) { + public V1beta2QueuingConfigurationFluentImpl(V1beta2QueuingConfiguration instance) { this.withHandSize(instance.getHandSize()); this.withQueueLengthLimit(instance.getQueueLengthLimit()); @@ -30,14 +29,14 @@ public V1beta2QueuingConfigurationFluentImpl( } private Integer handSize; - private java.lang.Integer queueLengthLimit; - private java.lang.Integer queues; + private Integer queueLengthLimit; + private Integer queues; - public java.lang.Integer getHandSize() { + public Integer getHandSize() { return this.handSize; } - public A withHandSize(java.lang.Integer handSize) { + public A withHandSize(Integer handSize) { this.handSize = handSize; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasHandSize() { return this.handSize != null; } - public java.lang.Integer getQueueLengthLimit() { + public Integer getQueueLengthLimit() { return this.queueLengthLimit; } - public A withQueueLengthLimit(java.lang.Integer queueLengthLimit) { + public A withQueueLengthLimit(Integer queueLengthLimit) { this.queueLengthLimit = queueLengthLimit; return (A) this; } - public java.lang.Boolean hasQueueLengthLimit() { + public Boolean hasQueueLengthLimit() { return this.queueLengthLimit != null; } - public java.lang.Integer getQueues() { + public Integer getQueues() { return this.queues; } - public A withQueues(java.lang.Integer queues) { + public A withQueues(Integer queues) { this.queues = queues; return (A) this; } - public java.lang.Boolean hasQueues() { + public Boolean hasQueues() { return this.queues != null; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java index 6c490c9648..5bdbe05607 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleBuilder.java @@ -16,9 +16,7 @@ public class V1beta2ResourcePolicyRuleBuilder extends V1beta2ResourcePolicyRuleFluentImpl - implements VisitableBuilder< - V1beta2ResourcePolicyRule, - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleBuilder> { + implements VisitableBuilder { public V1beta2ResourcePolicyRuleBuilder() { this(false); } @@ -27,27 +25,24 @@ public V1beta2ResourcePolicyRuleBuilder(Boolean validationEnabled) { this(new V1beta2ResourcePolicyRule(), validationEnabled); } - public V1beta2ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleFluent fluent) { + public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRuleFluent fluent) { this(fluent, false); } public V1beta2ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2ResourcePolicyRuleFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2ResourcePolicyRule(), validationEnabled); } public V1beta2ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule instance) { + V1beta2ResourcePolicyRuleFluent fluent, V1beta2ResourcePolicyRule instance) { this(fluent, instance, false); } public V1beta2ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleFluent fluent, - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta2ResourcePolicyRuleFluent fluent, + V1beta2ResourcePolicyRule instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiGroups(instance.getApiGroups()); @@ -62,14 +57,12 @@ public V1beta2ResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - public V1beta2ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule instance) { + public V1beta2ResourcePolicyRuleBuilder(V1beta2ResourcePolicyRule instance) { this(instance, false); } public V1beta2ResourcePolicyRuleBuilder( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule instance, - java.lang.Boolean validationEnabled) { + V1beta2ResourcePolicyRule instance, Boolean validationEnabled) { this.fluent = this; this.withApiGroups(instance.getApiGroups()); @@ -84,10 +77,10 @@ public V1beta2ResourcePolicyRuleBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRuleFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2ResourcePolicyRuleFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule build() { + public V1beta2ResourcePolicyRule build() { V1beta2ResourcePolicyRule buildable = new V1beta2ResourcePolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); buildable.setClusterScope(fluent.getClusterScope()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java index de32e2ebc1..d8dcab5326 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluent.java @@ -22,134 +22,129 @@ public interface V1beta2ResourcePolicyRuleFluent { public A addToApiGroups(Integer index, String item); - public A setToApiGroups(java.lang.Integer index, java.lang.String item); + public A setToApiGroups(Integer index, String item); public A addToApiGroups(java.lang.String... items); - public A addAllToApiGroups(Collection items); + public A addAllToApiGroups(Collection items); public A removeFromApiGroups(java.lang.String... items); - public A removeAllFromApiGroups(java.util.Collection items); + public A removeAllFromApiGroups(Collection items); - public List getApiGroups(); + public List getApiGroups(); - public java.lang.String getApiGroup(java.lang.Integer index); + public String getApiGroup(Integer index); - public java.lang.String getFirstApiGroup(); + public String getFirstApiGroup(); - public java.lang.String getLastApiGroup(); + public String getLastApiGroup(); - public java.lang.String getMatchingApiGroup(Predicate predicate); + public String getMatchingApiGroup(Predicate predicate); - public Boolean hasMatchingApiGroup(java.util.function.Predicate predicate); + public Boolean hasMatchingApiGroup(Predicate predicate); - public A withApiGroups(java.util.List apiGroups); + public A withApiGroups(List apiGroups); public A withApiGroups(java.lang.String... apiGroups); - public java.lang.Boolean hasApiGroups(); + public Boolean hasApiGroups(); - public java.lang.Boolean getClusterScope(); + public Boolean getClusterScope(); - public A withClusterScope(java.lang.Boolean clusterScope); + public A withClusterScope(Boolean clusterScope); - public java.lang.Boolean hasClusterScope(); + public Boolean hasClusterScope(); - public A addToNamespaces(java.lang.Integer index, java.lang.String item); + public A addToNamespaces(Integer index, String item); - public A setToNamespaces(java.lang.Integer index, java.lang.String item); + public A setToNamespaces(Integer index, String item); public A addToNamespaces(java.lang.String... items); - public A addAllToNamespaces(java.util.Collection items); + public A addAllToNamespaces(Collection items); public A removeFromNamespaces(java.lang.String... items); - public A removeAllFromNamespaces(java.util.Collection items); + public A removeAllFromNamespaces(Collection items); - public java.util.List getNamespaces(); + public List getNamespaces(); - public java.lang.String getNamespace(java.lang.Integer index); + public String getNamespace(Integer index); - public java.lang.String getFirstNamespace(); + public String getFirstNamespace(); - public java.lang.String getLastNamespace(); + public String getLastNamespace(); - public java.lang.String getMatchingNamespace( - java.util.function.Predicate predicate); + public String getMatchingNamespace(Predicate predicate); - public java.lang.Boolean hasMatchingNamespace( - java.util.function.Predicate predicate); + public Boolean hasMatchingNamespace(Predicate predicate); - public A withNamespaces(java.util.List namespaces); + public A withNamespaces(List namespaces); public A withNamespaces(java.lang.String... namespaces); - public java.lang.Boolean hasNamespaces(); + public Boolean hasNamespaces(); - public A addToResources(java.lang.Integer index, java.lang.String item); + public A addToResources(Integer index, String item); - public A setToResources(java.lang.Integer index, java.lang.String item); + public A setToResources(Integer index, String item); public A addToResources(java.lang.String... items); - public A addAllToResources(java.util.Collection items); + public A addAllToResources(Collection items); public A removeFromResources(java.lang.String... items); - public A removeAllFromResources(java.util.Collection items); + public A removeAllFromResources(Collection items); - public java.util.List getResources(); + public List getResources(); - public java.lang.String getResource(java.lang.Integer index); + public String getResource(Integer index); - public java.lang.String getFirstResource(); + public String getFirstResource(); - public java.lang.String getLastResource(); + public String getLastResource(); - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate); + public String getMatchingResource(Predicate predicate); - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate); + public Boolean hasMatchingResource(Predicate predicate); - public A withResources(java.util.List resources); + public A withResources(List resources); public A withResources(java.lang.String... resources); - public java.lang.Boolean hasResources(); + public Boolean hasResources(); - public A addToVerbs(java.lang.Integer index, java.lang.String item); + public A addToVerbs(Integer index, String item); - public A setToVerbs(java.lang.Integer index, java.lang.String item); + public A setToVerbs(Integer index, String item); public A addToVerbs(java.lang.String... items); - public A addAllToVerbs(java.util.Collection items); + public A addAllToVerbs(Collection items); public A removeFromVerbs(java.lang.String... items); - public A removeAllFromVerbs(java.util.Collection items); + public A removeAllFromVerbs(Collection items); - public java.util.List getVerbs(); + public List getVerbs(); - public java.lang.String getVerb(java.lang.Integer index); + public String getVerb(Integer index); - public java.lang.String getFirstVerb(); + public String getFirstVerb(); - public java.lang.String getLastVerb(); + public String getLastVerb(); - public java.lang.String getMatchingVerb(java.util.function.Predicate predicate); + public String getMatchingVerb(Predicate predicate); - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate); + public Boolean hasMatchingVerb(Predicate predicate); - public A withVerbs(java.util.List verbs); + public A withVerbs(List verbs); public A withVerbs(java.lang.String... verbs); - public java.lang.Boolean hasVerbs(); + public Boolean hasVerbs(); public A withClusterScope(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java index c61fbe3dff..318daf31fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRuleFluentImpl.java @@ -24,8 +24,7 @@ public class V1beta2ResourcePolicyRuleFluentImpl implements V1beta2ResourcePolicyRuleFluent { public V1beta2ResourcePolicyRuleFluentImpl() {} - public V1beta2ResourcePolicyRuleFluentImpl( - io.kubernetes.client.openapi.models.V1beta2ResourcePolicyRule instance) { + public V1beta2ResourcePolicyRuleFluentImpl(V1beta2ResourcePolicyRule instance) { this.withApiGroups(instance.getApiGroups()); this.withClusterScope(instance.getClusterScope()); @@ -39,21 +38,21 @@ public V1beta2ResourcePolicyRuleFluentImpl( private List apiGroups; private Boolean clusterScope; - private java.util.List namespaces; - private java.util.List resources; - private java.util.List verbs; + private List namespaces; + private List resources; + private List verbs; - public A addToApiGroups(Integer index, java.lang.String item) { + public A addToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.add(index, item); return (A) this; } - public A setToApiGroups(java.lang.Integer index, java.lang.String item) { + public A setToApiGroups(Integer index, String item) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } this.apiGroups.set(index, item); return (A) this; @@ -61,26 +60,26 @@ public A setToApiGroups(java.lang.Integer index, java.lang.String item) { public A addToApiGroups(java.lang.String... items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } - public A addAllToApiGroups(Collection items) { + public A addAllToApiGroups(Collection items) { if (this.apiGroups == null) { - this.apiGroups = new java.util.ArrayList(); + this.apiGroups = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.apiGroups.add(item); } return (A) this; } public A removeFromApiGroups(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -88,8 +87,8 @@ public A removeFromApiGroups(java.lang.String... items) { return (A) this; } - public A removeAllFromApiGroups(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromApiGroups(Collection items) { + for (String item : items) { if (this.apiGroups != null) { this.apiGroups.remove(item); } @@ -97,24 +96,24 @@ public A removeAllFromApiGroups(java.util.Collection items) { return (A) this; } - public java.util.List getApiGroups() { + public List getApiGroups() { return this.apiGroups; } - public java.lang.String getApiGroup(java.lang.Integer index) { + public String getApiGroup(Integer index) { return this.apiGroups.get(index); } - public java.lang.String getFirstApiGroup() { + public String getFirstApiGroup() { return this.apiGroups.get(0); } - public java.lang.String getLastApiGroup() { + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } - public java.lang.String getMatchingApiGroup(Predicate predicate) { - for (java.lang.String item : apiGroups) { + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -122,9 +121,8 @@ public java.lang.String getMatchingApiGroup(Predicate predicat return null; } - public java.lang.Boolean hasMatchingApiGroup( - java.util.function.Predicate predicate) { - for (java.lang.String item : apiGroups) { + public Boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return true; } @@ -132,10 +130,10 @@ public java.lang.Boolean hasMatchingApiGroup( return false; } - public A withApiGroups(java.util.List apiGroups) { + public A withApiGroups(List apiGroups) { if (apiGroups != null) { - this.apiGroups = new java.util.ArrayList(); - for (java.lang.String item : apiGroups) { + this.apiGroups = new ArrayList(); + for (String item : apiGroups) { this.addToApiGroups(item); } } else { @@ -149,41 +147,41 @@ public A withApiGroups(java.lang.String... apiGroups) { this.apiGroups.clear(); } if (apiGroups != null) { - for (java.lang.String item : apiGroups) { + for (String item : apiGroups) { this.addToApiGroups(item); } } return (A) this; } - public java.lang.Boolean hasApiGroups() { + public Boolean hasApiGroups() { return apiGroups != null && !apiGroups.isEmpty(); } - public java.lang.Boolean getClusterScope() { + public Boolean getClusterScope() { return this.clusterScope; } - public A withClusterScope(java.lang.Boolean clusterScope) { + public A withClusterScope(Boolean clusterScope) { this.clusterScope = clusterScope; return (A) this; } - public java.lang.Boolean hasClusterScope() { + public Boolean hasClusterScope() { return this.clusterScope != null; } - public A addToNamespaces(java.lang.Integer index, java.lang.String item) { + public A addToNamespaces(Integer index, String item) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } this.namespaces.add(index, item); return (A) this; } - public A setToNamespaces(java.lang.Integer index, java.lang.String item) { + public A setToNamespaces(Integer index, String item) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } this.namespaces.set(index, item); return (A) this; @@ -191,26 +189,26 @@ public A setToNamespaces(java.lang.Integer index, java.lang.String item) { public A addToNamespaces(java.lang.String... items) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.namespaces.add(item); } return (A) this; } - public A addAllToNamespaces(java.util.Collection items) { + public A addAllToNamespaces(Collection items) { if (this.namespaces == null) { - this.namespaces = new java.util.ArrayList(); + this.namespaces = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.namespaces.add(item); } return (A) this; } public A removeFromNamespaces(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.namespaces != null) { this.namespaces.remove(item); } @@ -218,8 +216,8 @@ public A removeFromNamespaces(java.lang.String... items) { return (A) this; } - public A removeAllFromNamespaces(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromNamespaces(Collection items) { + for (String item : items) { if (this.namespaces != null) { this.namespaces.remove(item); } @@ -227,25 +225,24 @@ public A removeAllFromNamespaces(java.util.Collection items) { return (A) this; } - public java.util.List getNamespaces() { + public List getNamespaces() { return this.namespaces; } - public java.lang.String getNamespace(java.lang.Integer index) { + public String getNamespace(Integer index) { return this.namespaces.get(index); } - public java.lang.String getFirstNamespace() { + public String getFirstNamespace() { return this.namespaces.get(0); } - public java.lang.String getLastNamespace() { + public String getLastNamespace() { return this.namespaces.get(namespaces.size() - 1); } - public java.lang.String getMatchingNamespace( - java.util.function.Predicate predicate) { - for (java.lang.String item : namespaces) { + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { return item; } @@ -253,9 +250,8 @@ public java.lang.String getMatchingNamespace( return null; } - public java.lang.Boolean hasMatchingNamespace( - java.util.function.Predicate predicate) { - for (java.lang.String item : namespaces) { + public Boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { return true; } @@ -263,10 +259,10 @@ public java.lang.Boolean hasMatchingNamespace( return false; } - public A withNamespaces(java.util.List namespaces) { + public A withNamespaces(List namespaces) { if (namespaces != null) { - this.namespaces = new java.util.ArrayList(); - for (java.lang.String item : namespaces) { + this.namespaces = new ArrayList(); + for (String item : namespaces) { this.addToNamespaces(item); } } else { @@ -280,28 +276,28 @@ public A withNamespaces(java.lang.String... namespaces) { this.namespaces.clear(); } if (namespaces != null) { - for (java.lang.String item : namespaces) { + for (String item : namespaces) { this.addToNamespaces(item); } } return (A) this; } - public java.lang.Boolean hasNamespaces() { + public Boolean hasNamespaces() { return namespaces != null && !namespaces.isEmpty(); } - public A addToResources(java.lang.Integer index, java.lang.String item) { + public A addToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.add(index, item); return (A) this; } - public A setToResources(java.lang.Integer index, java.lang.String item) { + public A setToResources(Integer index, String item) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } this.resources.set(index, item); return (A) this; @@ -309,26 +305,26 @@ public A setToResources(java.lang.Integer index, java.lang.String item) { public A addToResources(java.lang.String... items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } - public A addAllToResources(java.util.Collection items) { + public A addAllToResources(Collection items) { if (this.resources == null) { - this.resources = new java.util.ArrayList(); + this.resources = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.resources.add(item); } return (A) this; } public A removeFromResources(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -336,8 +332,8 @@ public A removeFromResources(java.lang.String... items) { return (A) this; } - public A removeAllFromResources(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromResources(Collection items) { + for (String item : items) { if (this.resources != null) { this.resources.remove(item); } @@ -345,25 +341,24 @@ public A removeAllFromResources(java.util.Collection items) { return (A) this; } - public java.util.List getResources() { + public List getResources() { return this.resources; } - public java.lang.String getResource(java.lang.Integer index) { + public String getResource(Integer index) { return this.resources.get(index); } - public java.lang.String getFirstResource() { + public String getFirstResource() { return this.resources.get(0); } - public java.lang.String getLastResource() { + public String getLastResource() { return this.resources.get(resources.size() - 1); } - public java.lang.String getMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return item; } @@ -371,9 +366,8 @@ public java.lang.String getMatchingResource( return null; } - public java.lang.Boolean hasMatchingResource( - java.util.function.Predicate predicate) { - for (java.lang.String item : resources) { + public Boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { return true; } @@ -381,10 +375,10 @@ public java.lang.Boolean hasMatchingResource( return false; } - public A withResources(java.util.List resources) { + public A withResources(List resources) { if (resources != null) { - this.resources = new java.util.ArrayList(); - for (java.lang.String item : resources) { + this.resources = new ArrayList(); + for (String item : resources) { this.addToResources(item); } } else { @@ -398,28 +392,28 @@ public A withResources(java.lang.String... resources) { this.resources.clear(); } if (resources != null) { - for (java.lang.String item : resources) { + for (String item : resources) { this.addToResources(item); } } return (A) this; } - public java.lang.Boolean hasResources() { + public Boolean hasResources() { return resources != null && !resources.isEmpty(); } - public A addToVerbs(java.lang.Integer index, java.lang.String item) { + public A addToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.add(index, item); return (A) this; } - public A setToVerbs(java.lang.Integer index, java.lang.String item) { + public A setToVerbs(Integer index, String item) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } this.verbs.set(index, item); return (A) this; @@ -427,26 +421,26 @@ public A setToVerbs(java.lang.Integer index, java.lang.String item) { public A addToVerbs(java.lang.String... items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } - public A addAllToVerbs(java.util.Collection items) { + public A addAllToVerbs(Collection items) { if (this.verbs == null) { - this.verbs = new java.util.ArrayList(); + this.verbs = new ArrayList(); } - for (java.lang.String item : items) { + for (String item : items) { this.verbs.add(item); } return (A) this; } public A removeFromVerbs(java.lang.String... items) { - for (java.lang.String item : items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -454,8 +448,8 @@ public A removeFromVerbs(java.lang.String... items) { return (A) this; } - public A removeAllFromVerbs(java.util.Collection items) { - for (java.lang.String item : items) { + public A removeAllFromVerbs(Collection items) { + for (String item : items) { if (this.verbs != null) { this.verbs.remove(item); } @@ -463,25 +457,24 @@ public A removeAllFromVerbs(java.util.Collection items) { return (A) this; } - public java.util.List getVerbs() { + public List getVerbs() { return this.verbs; } - public java.lang.String getVerb(java.lang.Integer index) { + public String getVerb(Integer index) { return this.verbs.get(index); } - public java.lang.String getFirstVerb() { + public String getFirstVerb() { return this.verbs.get(0); } - public java.lang.String getLastVerb() { + public String getLastVerb() { return this.verbs.get(verbs.size() - 1); } - public java.lang.String getMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return item; } @@ -489,9 +482,8 @@ public java.lang.String getMatchingVerb( return null; } - public java.lang.Boolean hasMatchingVerb( - java.util.function.Predicate predicate) { - for (java.lang.String item : verbs) { + public Boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { if (predicate.test(item)) { return true; } @@ -499,10 +491,10 @@ public java.lang.Boolean hasMatchingVerb( return false; } - public A withVerbs(java.util.List verbs) { + public A withVerbs(List verbs) { if (verbs != null) { - this.verbs = new java.util.ArrayList(); - for (java.lang.String item : verbs) { + this.verbs = new ArrayList(); + for (String item : verbs) { this.addToVerbs(item); } } else { @@ -516,14 +508,14 @@ public A withVerbs(java.lang.String... verbs) { this.verbs.clear(); } if (verbs != null) { - for (java.lang.String item : verbs) { + for (String item : verbs) { this.addToVerbs(item); } } return (A) this; } - public java.lang.Boolean hasVerbs() { + public Boolean hasVerbs() { return verbs != null && !verbs.isEmpty(); } @@ -548,7 +540,7 @@ public int hashCode() { apiGroups, clusterScope, namespaces, resources, verbs, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiGroups != null && !apiGroups.isEmpty()) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java index 50bc59ecc9..bc94aa1da6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectBuilder.java @@ -16,9 +16,7 @@ public class V1beta2ServiceAccountSubjectBuilder extends V1beta2ServiceAccountSubjectFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject, - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectBuilder> { + implements VisitableBuilder { public V1beta2ServiceAccountSubjectBuilder() { this(false); } @@ -32,21 +30,19 @@ public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubjectFluent } public V1beta2ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectFluent fluent, - java.lang.Boolean validationEnabled) { + V1beta2ServiceAccountSubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2ServiceAccountSubject(), validationEnabled); } public V1beta2ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject instance) { + V1beta2ServiceAccountSubjectFluent fluent, V1beta2ServiceAccountSubject instance) { this(fluent, instance, false); } public V1beta2ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject instance, - java.lang.Boolean validationEnabled) { + V1beta2ServiceAccountSubjectFluent fluent, + V1beta2ServiceAccountSubject instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,12 @@ public V1beta2ServiceAccountSubjectBuilder( this.validationEnabled = validationEnabled; } - public V1beta2ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject instance) { + public V1beta2ServiceAccountSubjectBuilder(V1beta2ServiceAccountSubject instance) { this(instance, false); } public V1beta2ServiceAccountSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject instance, - java.lang.Boolean validationEnabled) { + V1beta2ServiceAccountSubject instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +65,10 @@ public V1beta2ServiceAccountSubjectBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2ServiceAccountSubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject build() { + public V1beta2ServiceAccountSubject build() { V1beta2ServiceAccountSubject buildable = new V1beta2ServiceAccountSubject(); buildable.setName(fluent.getName()); buildable.setNamespace(fluent.getNamespace()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java index 55a73acc97..bf5538ee02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluent.java @@ -19,13 +19,13 @@ public interface V1beta2ServiceAccountSubjectFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); - public java.lang.String getNamespace(); + public String getNamespace(); - public A withNamespace(java.lang.String namespace); + public A withNamespace(String namespace); - public java.lang.Boolean hasNamespace(); + public Boolean hasNamespace(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java index 3679b23954..50cba3e510 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubjectFluentImpl.java @@ -20,21 +20,20 @@ public class V1beta2ServiceAccountSubjectFluentImpl implements V1beta2ServiceAccountSubjectFluent { public V1beta2ServiceAccountSubjectFluentImpl() {} - public V1beta2ServiceAccountSubjectFluentImpl( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject instance) { + public V1beta2ServiceAccountSubjectFluentImpl(V1beta2ServiceAccountSubject instance) { this.withName(instance.getName()); this.withNamespace(instance.getNamespace()); } private String name; - private java.lang.String namespace; + private String namespace; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -43,16 +42,16 @@ public Boolean hasName() { return this.name != null; } - public java.lang.String getNamespace() { + public String getNamespace() { return this.namespace; } - public A withNamespace(java.lang.String namespace) { + public A withNamespace(String namespace) { this.namespace = namespace; return (A) this; } - public java.lang.Boolean hasNamespace() { + public Boolean hasNamespace() { return this.namespace != null; } @@ -70,7 +69,7 @@ public int hashCode() { return java.util.Objects.hash(name, namespace, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java index 6c2e754011..d2e5b82365 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V1beta2SubjectBuilder extends V1beta2SubjectFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2Subject, - io.kubernetes.client.openapi.models.V1beta2SubjectBuilder> { + implements VisitableBuilder { public V1beta2SubjectBuilder() { this(false); } @@ -30,22 +28,16 @@ public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent) { this(fluent, false); } - public V1beta2SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2SubjectFluent fluent, - java.lang.Boolean validationEnabled) { + public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2Subject(), validationEnabled); } - public V1beta2SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2SubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2Subject instance) { + public V1beta2SubjectBuilder(V1beta2SubjectFluent fluent, V1beta2Subject instance) { this(fluent, instance, false); } public V1beta2SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2SubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2Subject instance, - java.lang.Boolean validationEnabled) { + V1beta2SubjectFluent fluent, V1beta2Subject instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withGroup(instance.getGroup()); @@ -58,13 +50,11 @@ public V1beta2SubjectBuilder( this.validationEnabled = validationEnabled; } - public V1beta2SubjectBuilder(io.kubernetes.client.openapi.models.V1beta2Subject instance) { + public V1beta2SubjectBuilder(V1beta2Subject instance) { this(instance, false); } - public V1beta2SubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2Subject instance, - java.lang.Boolean validationEnabled) { + public V1beta2SubjectBuilder(V1beta2Subject instance, Boolean validationEnabled) { this.fluent = this; this.withGroup(instance.getGroup()); @@ -77,10 +67,10 @@ public V1beta2SubjectBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2SubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2SubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2Subject build() { + public V1beta2Subject build() { V1beta2Subject buildable = new V1beta2Subject(); buildable.setGroup(fluent.getGroup()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java index eba976a557..a070d5b4ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluent.java @@ -26,86 +26,77 @@ public interface V1beta2SubjectFluent> extends @Deprecated public V1beta2GroupSubject getGroup(); - public io.kubernetes.client.openapi.models.V1beta2GroupSubject buildGroup(); + public V1beta2GroupSubject buildGroup(); - public A withGroup(io.kubernetes.client.openapi.models.V1beta2GroupSubject group); + public A withGroup(V1beta2GroupSubject group); public Boolean hasGroup(); public V1beta2SubjectFluent.GroupNested withNewGroup(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested withNewGroupLike( - io.kubernetes.client.openapi.models.V1beta2GroupSubject item); + public V1beta2SubjectFluent.GroupNested withNewGroupLike(V1beta2GroupSubject item); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested editGroup(); + public V1beta2SubjectFluent.GroupNested editGroup(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested editOrNewGroup(); + public V1beta2SubjectFluent.GroupNested editOrNewGroup(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested editOrNewGroupLike( - io.kubernetes.client.openapi.models.V1beta2GroupSubject item); + public V1beta2SubjectFluent.GroupNested editOrNewGroupLike(V1beta2GroupSubject item); public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildServiceAccount instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2ServiceAccountSubject getServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject buildServiceAccount(); + public V1beta2ServiceAccountSubject buildServiceAccount(); - public A withServiceAccount( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject serviceAccount); + public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount); - public java.lang.Boolean hasServiceAccount(); + public Boolean hasServiceAccount(); public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - withNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject item); + public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccountLike( + V1beta2ServiceAccountSubject item); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - editServiceAccount(); + public V1beta2SubjectFluent.ServiceAccountNested editServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - editOrNewServiceAccount(); + public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccount(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - editOrNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject item); + public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( + V1beta2ServiceAccountSubject item); /** * This method has been deprecated, please use method buildUser instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1beta2UserSubject getUser(); - public io.kubernetes.client.openapi.models.V1beta2UserSubject buildUser(); + public V1beta2UserSubject buildUser(); - public A withUser(io.kubernetes.client.openapi.models.V1beta2UserSubject user); + public A withUser(V1beta2UserSubject user); - public java.lang.Boolean hasUser(); + public Boolean hasUser(); public V1beta2SubjectFluent.UserNested withNewUser(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested withNewUserLike( - io.kubernetes.client.openapi.models.V1beta2UserSubject item); + public V1beta2SubjectFluent.UserNested withNewUserLike(V1beta2UserSubject item); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested editUser(); + public V1beta2SubjectFluent.UserNested editUser(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested editOrNewUser(); + public V1beta2SubjectFluent.UserNested editOrNewUser(); - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested editOrNewUserLike( - io.kubernetes.client.openapi.models.V1beta2UserSubject item); + public V1beta2SubjectFluent.UserNested editOrNewUserLike(V1beta2UserSubject item); public interface GroupNested extends Nested, V1beta2GroupSubjectFluent> { @@ -115,7 +106,7 @@ public interface GroupNested } public interface ServiceAccountNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1beta2ServiceAccountSubjectFluent> { public N and(); @@ -123,8 +114,7 @@ public interface ServiceAccountNested } public interface UserNested - extends io.kubernetes.client.fluent.Nested, - V1beta2UserSubjectFluent> { + extends Nested, V1beta2UserSubjectFluent> { public N and(); public N endUser(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java index 476404c2fb..a51aec86b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2SubjectFluentImpl.java @@ -21,7 +21,7 @@ public class V1beta2SubjectFluentImpl> extends implements V1beta2SubjectFluent { public V1beta2SubjectFluentImpl() {} - public V1beta2SubjectFluentImpl(io.kubernetes.client.openapi.models.V1beta2Subject instance) { + public V1beta2SubjectFluentImpl(V1beta2Subject instance) { this.withGroup(instance.getGroup()); this.withKind(instance.getKind()); @@ -46,15 +46,18 @@ public V1beta2GroupSubject getGroup() { return this.group != null ? this.group.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2GroupSubject buildGroup() { + public V1beta2GroupSubject buildGroup() { return this.group != null ? this.group.build() : null; } - public A withGroup(io.kubernetes.client.openapi.models.V1beta2GroupSubject group) { + public A withGroup(V1beta2GroupSubject group) { _visitables.get("group").remove(this.group); if (group != null) { - this.group = new io.kubernetes.client.openapi.models.V1beta2GroupSubjectBuilder(group); + this.group = new V1beta2GroupSubjectBuilder(group); _visitables.get("group").add(this.group); + } else { + this.group = null; + _visitables.get("group").remove(this.group); } return (A) this; } @@ -67,37 +70,33 @@ public V1beta2SubjectFluent.GroupNested withNewGroup() { return new V1beta2SubjectFluentImpl.GroupNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested withNewGroupLike( - io.kubernetes.client.openapi.models.V1beta2GroupSubject item) { + public V1beta2SubjectFluent.GroupNested withNewGroupLike(V1beta2GroupSubject item) { return new V1beta2SubjectFluentImpl.GroupNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested editGroup() { + public V1beta2SubjectFluent.GroupNested editGroup() { return withNewGroupLike(getGroup()); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested editOrNewGroup() { + public V1beta2SubjectFluent.GroupNested editOrNewGroup() { return withNewGroupLike( - getGroup() != null - ? getGroup() - : new io.kubernetes.client.openapi.models.V1beta2GroupSubjectBuilder().build()); + getGroup() != null ? getGroup() : new V1beta2GroupSubjectBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested editOrNewGroupLike( - io.kubernetes.client.openapi.models.V1beta2GroupSubject item) { + public V1beta2SubjectFluent.GroupNested editOrNewGroupLike(V1beta2GroupSubject item) { return withNewGroupLike(getGroup() != null ? getGroup() : item); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -106,26 +105,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject getServiceAccount() { + @Deprecated + public V1beta2ServiceAccountSubject getServiceAccount() { return this.serviceAccount != null ? this.serviceAccount.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject buildServiceAccount() { + public V1beta2ServiceAccountSubject buildServiceAccount() { return this.serviceAccount != null ? this.serviceAccount.build() : null; } - public A withServiceAccount( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject serviceAccount) { + public A withServiceAccount(V1beta2ServiceAccountSubject serviceAccount) { _visitables.get("serviceAccount").remove(this.serviceAccount); if (serviceAccount != null) { this.serviceAccount = new V1beta2ServiceAccountSubjectBuilder(serviceAccount); _visitables.get("serviceAccount").add(this.serviceAccount); + } else { + this.serviceAccount = null; + _visitables.get("serviceAccount").remove(this.serviceAccount); } return (A) this; } - public java.lang.Boolean hasServiceAccount() { + public Boolean hasServiceAccount() { return this.serviceAccount != null; } @@ -133,30 +134,24 @@ public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccount() { return new V1beta2SubjectFluentImpl.ServiceAccountNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - withNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject item) { - return new io.kubernetes.client.openapi.models.V1beta2SubjectFluentImpl - .ServiceAccountNestedImpl(item); + public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccountLike( + V1beta2ServiceAccountSubject item) { + return new V1beta2SubjectFluentImpl.ServiceAccountNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - editServiceAccount() { + public V1beta2SubjectFluent.ServiceAccountNested editServiceAccount() { return withNewServiceAccountLike(getServiceAccount()); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - editOrNewServiceAccount() { + public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccount() { return withNewServiceAccountLike( getServiceAccount() != null ? getServiceAccount() - : new io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectBuilder() - .build()); + : new V1beta2ServiceAccountSubjectBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested - editOrNewServiceAccountLike( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject item) { + public V1beta2SubjectFluent.ServiceAccountNested editOrNewServiceAccountLike( + V1beta2ServiceAccountSubject item) { return withNewServiceAccountLike(getServiceAccount() != null ? getServiceAccount() : item); } @@ -165,25 +160,28 @@ public V1beta2SubjectFluent.ServiceAccountNested withNewServiceAccount() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1beta2UserSubject getUser() { + @Deprecated + public V1beta2UserSubject getUser() { return this.user != null ? this.user.build() : null; } - public io.kubernetes.client.openapi.models.V1beta2UserSubject buildUser() { + public V1beta2UserSubject buildUser() { return this.user != null ? this.user.build() : null; } - public A withUser(io.kubernetes.client.openapi.models.V1beta2UserSubject user) { + public A withUser(V1beta2UserSubject user) { _visitables.get("user").remove(this.user); if (user != null) { this.user = new V1beta2UserSubjectBuilder(user); _visitables.get("user").add(this.user); + } else { + this.user = null; + _visitables.get("user").remove(this.user); } return (A) this; } - public java.lang.Boolean hasUser() { + public Boolean hasUser() { return this.user != null; } @@ -191,24 +189,19 @@ public V1beta2SubjectFluent.UserNested withNewUser() { return new V1beta2SubjectFluentImpl.UserNestedImpl(); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested withNewUserLike( - io.kubernetes.client.openapi.models.V1beta2UserSubject item) { - return new io.kubernetes.client.openapi.models.V1beta2SubjectFluentImpl.UserNestedImpl(item); + public V1beta2SubjectFluent.UserNested withNewUserLike(V1beta2UserSubject item) { + return new V1beta2SubjectFluentImpl.UserNestedImpl(item); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested editUser() { + public V1beta2SubjectFluent.UserNested editUser() { return withNewUserLike(getUser()); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested editOrNewUser() { - return withNewUserLike( - getUser() != null - ? getUser() - : new io.kubernetes.client.openapi.models.V1beta2UserSubjectBuilder().build()); + public V1beta2SubjectFluent.UserNested editOrNewUser() { + return withNewUserLike(getUser() != null ? getUser() : new V1beta2UserSubjectBuilder().build()); } - public io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested editOrNewUserLike( - io.kubernetes.client.openapi.models.V1beta2UserSubject item) { + public V1beta2SubjectFluent.UserNested editOrNewUserLike(V1beta2UserSubject item) { return withNewUserLike(getUser() != null ? getUser() : item); } @@ -229,7 +222,7 @@ public int hashCode() { return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (group != null) { @@ -254,17 +247,16 @@ public java.lang.String toString() { class GroupNestedImpl extends V1beta2GroupSubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2SubjectFluent.GroupNested, - Nested { - GroupNestedImpl(io.kubernetes.client.openapi.models.V1beta2GroupSubject item) { + implements V1beta2SubjectFluent.GroupNested, Nested { + GroupNestedImpl(V1beta2GroupSubject item) { this.builder = new V1beta2GroupSubjectBuilder(this, item); } GroupNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta2GroupSubjectBuilder(this); + this.builder = new V1beta2GroupSubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2GroupSubjectBuilder builder; + V1beta2GroupSubjectBuilder builder; public N and() { return (N) V1beta2SubjectFluentImpl.this.withGroup(builder.build()); @@ -277,19 +269,16 @@ public N endGroup() { class ServiceAccountNestedImpl extends V1beta2ServiceAccountSubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2SubjectFluent.ServiceAccountNested, - io.kubernetes.client.fluent.Nested { - ServiceAccountNestedImpl( - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubject item) { + implements V1beta2SubjectFluent.ServiceAccountNested, Nested { + ServiceAccountNestedImpl(V1beta2ServiceAccountSubject item) { this.builder = new V1beta2ServiceAccountSubjectBuilder(this, item); } ServiceAccountNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectBuilder(this); + this.builder = new V1beta2ServiceAccountSubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2ServiceAccountSubjectBuilder builder; + V1beta2ServiceAccountSubjectBuilder builder; public N and() { return (N) V1beta2SubjectFluentImpl.this.withServiceAccount(builder.build()); @@ -301,17 +290,16 @@ public N endServiceAccount() { } class UserNestedImpl extends V1beta2UserSubjectFluentImpl> - implements io.kubernetes.client.openapi.models.V1beta2SubjectFluent.UserNested, - io.kubernetes.client.fluent.Nested { - UserNestedImpl(io.kubernetes.client.openapi.models.V1beta2UserSubject item) { + implements V1beta2SubjectFluent.UserNested, Nested { + UserNestedImpl(V1beta2UserSubject item) { this.builder = new V1beta2UserSubjectBuilder(this, item); } UserNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1beta2UserSubjectBuilder(this); + this.builder = new V1beta2UserSubjectBuilder(this); } - io.kubernetes.client.openapi.models.V1beta2UserSubjectBuilder builder; + V1beta2UserSubjectBuilder builder; public N and() { return (N) V1beta2SubjectFluentImpl.this.withUser(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java index e18e47e95d..81ea39a3de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectBuilder.java @@ -16,9 +16,7 @@ public class V1beta2UserSubjectBuilder extends V1beta2UserSubjectFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V1beta2UserSubject, - io.kubernetes.client.openapi.models.V1beta2UserSubjectBuilder> { + implements VisitableBuilder { public V1beta2UserSubjectBuilder() { this(false); } @@ -31,46 +29,38 @@ public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent) { this(fluent, false); } - public V1beta2UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2UserSubjectFluent fluent, - java.lang.Boolean validationEnabled) { + public V1beta2UserSubjectBuilder(V1beta2UserSubjectFluent fluent, Boolean validationEnabled) { this(fluent, new V1beta2UserSubject(), validationEnabled); } public V1beta2UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2UserSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2UserSubject instance) { + V1beta2UserSubjectFluent fluent, V1beta2UserSubject instance) { this(fluent, instance, false); } public V1beta2UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2UserSubjectFluent fluent, - io.kubernetes.client.openapi.models.V1beta2UserSubject instance, - java.lang.Boolean validationEnabled) { + V1beta2UserSubjectFluent fluent, V1beta2UserSubject instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); this.validationEnabled = validationEnabled; } - public V1beta2UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2UserSubject instance) { + public V1beta2UserSubjectBuilder(V1beta2UserSubject instance) { this(instance, false); } - public V1beta2UserSubjectBuilder( - io.kubernetes.client.openapi.models.V1beta2UserSubject instance, - java.lang.Boolean validationEnabled) { + public V1beta2UserSubjectBuilder(V1beta2UserSubject instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V1beta2UserSubjectFluent fluent; - java.lang.Boolean validationEnabled; + V1beta2UserSubjectFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V1beta2UserSubject build() { + public V1beta2UserSubject build() { V1beta2UserSubject buildable = new V1beta2UserSubject(); buildable.setName(fluent.getName()); return buildable; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java index f8d0cf3daf..040c9b2b87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluent.java @@ -18,7 +18,7 @@ public interface V1beta2UserSubjectFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java index c5f3a9237a..c94a91194a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubjectFluentImpl.java @@ -20,18 +20,17 @@ public class V1beta2UserSubjectFluentImpl> extends BaseFluent implements V1beta2UserSubjectFluent { public V1beta2UserSubjectFluentImpl() {} - public V1beta2UserSubjectFluentImpl( - io.kubernetes.client.openapi.models.V1beta2UserSubject instance) { + public V1beta2UserSubjectFluentImpl(V1beta2UserSubject instance) { this.withName(instance.getName()); } private String name; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -52,7 +51,7 @@ public int hashCode() { return java.util.Objects.hash(name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java index 3d0948f1f4..d059665284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java @@ -17,8 +17,7 @@ public class V2ContainerResourceMetricSourceBuilder extends V2ContainerResourceMetricSourceFluentImpl implements VisitableBuilder< - V2ContainerResourceMetricSource, - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceBuilder> { + V2ContainerResourceMetricSource, V2ContainerResourceMetricSourceBuilder> { public V2ContainerResourceMetricSourceBuilder() { this(false); } @@ -27,27 +26,24 @@ public V2ContainerResourceMetricSourceBuilder(Boolean validationEnabled) { this(new V2ContainerResourceMetricSource(), validationEnabled); } - public V2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent fluent) { + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent) { this(fluent, false); } public V2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2ContainerResourceMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2ContainerResourceMetricSource(), validationEnabled); } public V2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource instance) { + V2ContainerResourceMetricSourceFluent fluent, V2ContainerResourceMetricSource instance) { this(fluent, instance, false); } public V2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2ContainerResourceMetricSourceFluent fluent, + V2ContainerResourceMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainer(instance.getContainer()); @@ -58,14 +54,12 @@ public V2ContainerResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource instance) { + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSource instance) { this(instance, false); } public V2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2ContainerResourceMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withContainer(instance.getContainer()); @@ -76,10 +70,10 @@ public V2ContainerResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2ContainerResourceMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource build() { + public V2ContainerResourceMetricSource build() { V2ContainerResourceMetricSource buildable = new V2ContainerResourceMetricSource(); buildable.setContainer(fluent.getContainer()); buildable.setName(fluent.getName()); 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 37abac5119..e8a3ac0f0a 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 @@ -21,15 +21,15 @@ public interface V2ContainerResourceMetricSourceFluent< extends Fluent { public String getContainer(); - public A withContainer(java.lang.String container); + public A withContainer(String container); public Boolean hasContainer(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildTarget instead. @@ -39,25 +39,23 @@ public interface V2ContainerResourceMetricSourceFluent< @Deprecated public V2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget(); + public V2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target); + public A withTarget(V2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2ContainerResourceMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( + V2MetricTarget item); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - editTarget(); + public V2ContainerResourceMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( + V2MetricTarget item); public interface TargetNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java index 44f9534b77..5a8a2fb0b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluentImpl.java @@ -22,8 +22,7 @@ public class V2ContainerResourceMetricSourceFluentImpl< extends BaseFluent implements V2ContainerResourceMetricSourceFluent { public V2ContainerResourceMetricSourceFluentImpl() {} - public V2ContainerResourceMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource instance) { + public V2ContainerResourceMetricSourceFluentImpl(V2ContainerResourceMetricSource instance) { this.withContainer(instance.getContainer()); this.withName(instance.getName()); @@ -32,14 +31,14 @@ public V2ContainerResourceMetricSourceFluentImpl( } private String container; - private java.lang.String name; + private String name; private V2MetricTargetBuilder target; - public java.lang.String getContainer() { + public String getContainer() { return this.container; } - public A withContainer(java.lang.String container) { + public A withContainer(String container) { this.container = container; return (A) this; } @@ -48,16 +47,16 @@ public Boolean hasContainer() { return this.container != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -71,20 +70,23 @@ public V2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget() { + public V2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target) { + public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { - this.target = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(target); + this.target = new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -92,26 +94,22 @@ public V2ContainerResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( + V2MetricTarget item) { return new V2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - editTarget() { + public V2ContainerResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( + V2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -130,7 +128,7 @@ public int hashCode() { return java.util.Objects.hash(container, name, target, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (container != null) { @@ -151,19 +149,16 @@ public java.lang.String toString() { class TargetNestedImpl extends V2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceFluent - .TargetNested< - N>, - Nested { - TargetNestedImpl(io.kubernetes.client.openapi.models.V2MetricTarget item) { + implements V2ContainerResourceMetricSourceFluent.TargetNested, Nested { + TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(this); + this.builder = new V2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricTargetBuilder builder; + V2MetricTargetBuilder builder; public N and() { return (N) V2ContainerResourceMetricSourceFluentImpl.this.withTarget(builder.build()); 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 963741281d..b84c73f088 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 @@ -17,8 +17,7 @@ public class V2ContainerResourceMetricStatusBuilder extends V2ContainerResourceMetricStatusFluentImpl implements VisitableBuilder< - V2ContainerResourceMetricStatus, - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusBuilder> { + V2ContainerResourceMetricStatus, V2ContainerResourceMetricStatusBuilder> { public V2ContainerResourceMetricStatusBuilder() { this(false); } @@ -32,21 +31,19 @@ public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFlu } public V2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2ContainerResourceMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2ContainerResourceMetricStatus(), validationEnabled); } public V2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus instance) { + V2ContainerResourceMetricStatusFluent fluent, V2ContainerResourceMetricStatus instance) { this(fluent, instance, false); } public V2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2ContainerResourceMetricStatusFluent fluent, + V2ContainerResourceMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainer(instance.getContainer()); @@ -57,14 +54,12 @@ public V2ContainerResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus instance) { + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatus instance) { this(instance, false); } public V2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2ContainerResourceMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withContainer(instance.getContainer()); @@ -75,10 +70,10 @@ public V2ContainerResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2ContainerResourceMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus build() { + public V2ContainerResourceMetricStatus build() { V2ContainerResourceMetricStatus buildable = new V2ContainerResourceMetricStatus(); buildable.setContainer(fluent.getContainer()); buildable.setCurrent(fluent.getCurrent()); 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 5de94f0b25..8a4f26145b 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 @@ -21,7 +21,7 @@ public interface V2ContainerResourceMetricStatusFluent< extends Fluent { public String getContainer(); - public A withContainer(java.lang.String container); + public A withContainer(String container); public Boolean hasContainer(); @@ -33,31 +33,29 @@ public interface V2ContainerResourceMetricStatusFluent< @Deprecated public V2MetricValueStatus getCurrent(); - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent(); + public V2MetricValueStatus buildCurrent(); - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current); + public A withCurrent(V2MetricValueStatus current); - public java.lang.Boolean hasCurrent(); + public Boolean hasCurrent(); public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - editCurrent(); + public V2ContainerResourceMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public interface CurrentNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java index 012211ab41..13e3468671 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluentImpl.java @@ -22,8 +22,7 @@ public class V2ContainerResourceMetricStatusFluentImpl< extends BaseFluent implements V2ContainerResourceMetricStatusFluent { public V2ContainerResourceMetricStatusFluentImpl() {} - public V2ContainerResourceMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus instance) { + public V2ContainerResourceMetricStatusFluentImpl(V2ContainerResourceMetricStatus instance) { this.withContainer(instance.getContainer()); this.withCurrent(instance.getCurrent()); @@ -33,13 +32,13 @@ public V2ContainerResourceMetricStatusFluentImpl( private String container; private V2MetricValueStatusBuilder current; - private java.lang.String name; + private String name; - public java.lang.String getContainer() { + public String getContainer() { return this.container; } - public A withContainer(java.lang.String container) { + public A withContainer(String container) { this.container = container; return (A) this; } @@ -54,24 +53,27 @@ public Boolean hasContainer() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2MetricValueStatus getCurrent() { + public V2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent() { + public V2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current) { + public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { this.current = new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } - public java.lang.Boolean hasCurrent() { + public Boolean hasCurrent() { return this.current != null; } @@ -79,39 +81,35 @@ public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2MetricValueStatus item) { return new V2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - editCurrent() { + public V2ContainerResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -130,7 +128,7 @@ public int hashCode() { return java.util.Objects.hash(container, current, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (container != null) { @@ -151,19 +149,16 @@ public java.lang.String toString() { class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusFluent - .CurrentNested< - N>, - Nested { + implements V2ContainerResourceMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder(this); + this.builder = new V2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder builder; + V2MetricValueStatusBuilder builder; public N and() { return (N) V2ContainerResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); 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 a7313eee85..1fa0d65042 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 @@ -17,8 +17,7 @@ public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference, - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder> { + V2CrossVersionObjectReference, V2CrossVersionObjectReferenceBuilder> { public V2CrossVersionObjectReferenceBuilder() { this(false); } @@ -32,21 +31,19 @@ public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent< } public V2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V2CrossVersionObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V2CrossVersionObjectReference(), validationEnabled); } public V2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference instance) { + V2CrossVersionObjectReferenceFluent fluent, V2CrossVersionObjectReference instance) { this(fluent, instance, false); } public V2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { + V2CrossVersionObjectReferenceFluent fluent, + V2CrossVersionObjectReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -57,14 +54,12 @@ public V2CrossVersionObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - public V2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference instance) { + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance) { this(instance, false); } public V2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { + V2CrossVersionObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -75,10 +70,10 @@ public V2CrossVersionObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V2CrossVersionObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2CrossVersionObjectReference build() { + public V2CrossVersionObjectReference build() { V2CrossVersionObjectReference buildable = new V2CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 e21c419913..35983b9e95 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 @@ -20,19 +20,19 @@ public interface V2CrossVersionObjectReferenceFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java index c0b3f9323b..ac139f0d3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluentImpl.java @@ -21,8 +21,7 @@ public class V2CrossVersionObjectReferenceFluentImpl< extends BaseFluent implements V2CrossVersionObjectReferenceFluent { public V2CrossVersionObjectReferenceFluentImpl() {} - public V2CrossVersionObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference instance) { + public V2CrossVersionObjectReferenceFluentImpl(V2CrossVersionObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -31,14 +30,14 @@ public V2CrossVersionObjectReferenceFluentImpl( } private String apiVersion; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -47,29 +46,29 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { 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 a180385a51..135e3482f6 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 @@ -16,8 +16,7 @@ public class V2ExternalMetricSourceBuilder extends V2ExternalMetricSourceFluentImpl - implements VisitableBuilder< - V2ExternalMetricSource, io.kubernetes.client.openapi.models.V2ExternalMetricSourceBuilder> { + implements VisitableBuilder { public V2ExternalMetricSourceBuilder() { this(false); } @@ -26,27 +25,24 @@ public V2ExternalMetricSourceBuilder(Boolean validationEnabled) { this(new V2ExternalMetricSource(), validationEnabled); } - public V2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent fluent) { + public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent) { this(fluent, false); } public V2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2ExternalMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2ExternalMetricSource(), validationEnabled); } public V2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ExternalMetricSource instance) { + V2ExternalMetricSourceFluent fluent, V2ExternalMetricSource instance) { this(fluent, instance, false); } public V2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ExternalMetricSource instance, - java.lang.Boolean validationEnabled) { + V2ExternalMetricSourceFluent fluent, + V2ExternalMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMetric(instance.getMetric()); @@ -55,14 +51,11 @@ public V2ExternalMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricSource instance) { + public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance) { this(instance, false); } - public V2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricSource instance, - java.lang.Boolean validationEnabled) { + public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withMetric(instance.getMetric()); @@ -71,10 +64,10 @@ public V2ExternalMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2ExternalMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ExternalMetricSource build() { + public V2ExternalMetricSource build() { V2ExternalMetricSource buildable = new V2ExternalMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); 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 310df3a36e..38d4da0c29 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 @@ -27,53 +27,45 @@ public interface V2ExternalMetricSourceFluent withNewMetric(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ExternalMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - editMetric(); + public V2ExternalMetricSourceFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - editOrNewMetric(); + public V2ExternalMetricSourceFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget(); + public V2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target); + public A withTarget(V2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2ExternalMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ExternalMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - editTarget(); + public V2ExternalMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2ExternalMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); public interface MetricNested extends Nested, V2MetricIdentifierFluent> { @@ -83,8 +75,7 @@ public interface MetricNested } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V2MetricTargetFluent> { + extends Nested, V2MetricTargetFluent> { public N and(); public N endTarget(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java index 26cdaf7642..48b5a80f72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2ExternalMetricSourceFluentImpl implements V2ExternalMetricSourceFluent { public V2ExternalMetricSourceFluentImpl() {} - public V2ExternalMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2ExternalMetricSource instance) { + public V2ExternalMetricSourceFluentImpl(V2ExternalMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); @@ -41,15 +40,18 @@ public V2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric() { + public V2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric) { + public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(metric); + this.metric = new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } @@ -62,26 +64,20 @@ public V2ExternalMetricSourceFluent.MetricNested withNewMetric() { return new V2ExternalMetricSourceFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2ExternalMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2ExternalMetricSourceFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - editMetric() { + public V2ExternalMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - editOrNewMetric() { + public V2ExternalMetricSourceFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -90,25 +86,28 @@ public V2ExternalMetricSourceFluent.MetricNested withNewMetric() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget() { + public V2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target) { + public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { - this.target = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(target); + this.target = new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -116,27 +115,20 @@ public V2ExternalMetricSourceFluent.TargetNested withNewTarget() { return new V2ExternalMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { - return new io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluentImpl - .TargetNestedImpl(item); + public V2ExternalMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { + return new V2ExternalMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - editTarget() { + public V2ExternalMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2ExternalMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -170,17 +162,16 @@ public String toString() { class MetricNestedImpl extends V2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.MetricNested, - Nested { + implements V2ExternalMetricSourceFluent.MetricNested, Nested { MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(this); + this.builder = new V2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder builder; + V2MetricIdentifierBuilder builder; public N and() { return (N) V2ExternalMetricSourceFluentImpl.this.withMetric(builder.build()); @@ -193,17 +184,16 @@ public N endMetric() { class TargetNestedImpl extends V2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2ExternalMetricSourceFluent.TargetNested, - io.kubernetes.client.fluent.Nested { - TargetNestedImpl(io.kubernetes.client.openapi.models.V2MetricTarget item) { + implements V2ExternalMetricSourceFluent.TargetNested, Nested { + TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(this); + this.builder = new V2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricTargetBuilder builder; + V2MetricTargetBuilder builder; public N and() { return (N) V2ExternalMetricSourceFluentImpl.this.withTarget(builder.build()); 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 ccee4c4acc..852f39aa87 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 @@ -16,8 +16,7 @@ public class V2ExternalMetricStatusBuilder extends V2ExternalMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2ExternalMetricStatus, V2ExternalMetricStatusBuilder> { + implements VisitableBuilder { public V2ExternalMetricStatusBuilder() { this(false); } @@ -26,27 +25,24 @@ public V2ExternalMetricStatusBuilder(Boolean validationEnabled) { this(new V2ExternalMetricStatus(), validationEnabled); } - public V2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent fluent) { + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent) { this(fluent, false); } public V2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2ExternalMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2ExternalMetricStatus(), validationEnabled); } public V2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ExternalMetricStatus instance) { + V2ExternalMetricStatusFluent fluent, V2ExternalMetricStatus instance) { this(fluent, instance, false); } public V2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ExternalMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2ExternalMetricStatusFluent fluent, + V2ExternalMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -55,14 +51,11 @@ public V2ExternalMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricStatus instance) { + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance) { this(instance, false); } - public V2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ExternalMetricStatus instance, - java.lang.Boolean validationEnabled) { + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -71,10 +64,10 @@ public V2ExternalMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2ExternalMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ExternalMetricStatus build() { + public V2ExternalMetricStatus build() { V2ExternalMetricStatus buildable = new V2ExternalMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); 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 25ae2ac884..0dac9cf98d 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 @@ -27,53 +27,46 @@ public interface V2ExternalMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - editCurrent(); + public V2ExternalMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric(); + public V2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric); + public A withMetric(V2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2ExternalMetricStatusFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ExternalMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - editMetric(); + public V2ExternalMetricStatusFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - editOrNewMetric(); + public V2ExternalMetricStatusFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); public interface CurrentNested extends Nested, V2MetricValueStatusFluent> { @@ -83,8 +76,7 @@ public interface CurrentNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, - V2MetricIdentifierFluent> { + extends Nested, V2MetricIdentifierFluent> { public N and(); public N endMetric(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java index ffc7d05c5f..1ded2679c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2ExternalMetricStatusFluentImpl implements V2ExternalMetricStatusFluent { public V2ExternalMetricStatusFluentImpl() {} - public V2ExternalMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2ExternalMetricStatus instance) { + public V2ExternalMetricStatusFluentImpl(V2ExternalMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); @@ -37,19 +36,22 @@ public V2ExternalMetricStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2MetricValueStatus getCurrent() { + public V2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent() { + public V2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current) { + public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { this.current = new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -62,26 +64,22 @@ public V2ExternalMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ExternalMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike( + V2MetricValueStatus item) { return new V2ExternalMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - editCurrent() { + public V2ExternalMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } @@ -90,25 +88,28 @@ public V2ExternalMetricStatusFluent.CurrentNested withNewCurrent() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric() { + public V2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric) { + public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(metric); + this.metric = new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -116,27 +117,20 @@ public V2ExternalMetricStatusFluent.MetricNested withNewMetric() { return new V2ExternalMetricStatusFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluentImpl - .MetricNestedImpl(item); + public V2ExternalMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new V2ExternalMetricStatusFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - editMetric() { + public V2ExternalMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - editOrNewMetric() { + public V2ExternalMetricStatusFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -170,17 +164,16 @@ public String toString() { class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.CurrentNested, - Nested { + implements V2ExternalMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder(this); + this.builder = new V2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder builder; + V2MetricValueStatusBuilder builder; public N and() { return (N) V2ExternalMetricStatusFluentImpl.this.withCurrent(builder.build()); @@ -193,17 +186,16 @@ public N endCurrent() { class MetricNestedImpl extends V2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2ExternalMetricStatusFluent.MetricNested, - io.kubernetes.client.fluent.Nested { + implements V2ExternalMetricStatusFluent.MetricNested, Nested { MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(this); + this.builder = new V2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder builder; + V2MetricIdentifierBuilder builder; public N and() { return (N) V2ExternalMetricStatusFluentImpl.this.withMetric(builder.build()); 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 c822a06435..ba31befb47 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 @@ -16,9 +16,7 @@ public class V2HPAScalingPolicyBuilder extends V2HPAScalingPolicyFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2HPAScalingPolicy, - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder> { + implements VisitableBuilder { public V2HPAScalingPolicyBuilder() { this(false); } @@ -31,22 +29,17 @@ public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent) { this(fluent, false); } - public V2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingPolicyFluent fluent, - java.lang.Boolean validationEnabled) { + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent, Boolean validationEnabled) { this(fluent, new V2HPAScalingPolicy(), validationEnabled); } public V2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingPolicyFluent fluent, - io.kubernetes.client.openapi.models.V2HPAScalingPolicy instance) { + V2HPAScalingPolicyFluent fluent, V2HPAScalingPolicy instance) { this(fluent, instance, false); } public V2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingPolicyFluent fluent, - io.kubernetes.client.openapi.models.V2HPAScalingPolicy instance, - java.lang.Boolean validationEnabled) { + V2HPAScalingPolicyFluent fluent, V2HPAScalingPolicy instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPeriodSeconds(instance.getPeriodSeconds()); @@ -57,14 +50,11 @@ public V2HPAScalingPolicyBuilder( this.validationEnabled = validationEnabled; } - public V2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingPolicy instance) { + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance) { this(instance, false); } - public V2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingPolicy instance, - java.lang.Boolean validationEnabled) { + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance, Boolean validationEnabled) { this.fluent = this; this.withPeriodSeconds(instance.getPeriodSeconds()); @@ -75,10 +65,10 @@ public V2HPAScalingPolicyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HPAScalingPolicyFluent fluent; - java.lang.Boolean validationEnabled; + V2HPAScalingPolicyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy build() { + public V2HPAScalingPolicy build() { V2HPAScalingPolicy buildable = new V2HPAScalingPolicy(); buildable.setPeriodSeconds(fluent.getPeriodSeconds()); buildable.setType(fluent.getType()); 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 0b76f3ce01..f751d5b8fc 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 @@ -18,19 +18,19 @@ public interface V2HPAScalingPolicyFluent> extends Fluent { public Integer getPeriodSeconds(); - public A withPeriodSeconds(java.lang.Integer periodSeconds); + public A withPeriodSeconds(Integer periodSeconds); public Boolean hasPeriodSeconds(); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); - public java.lang.Integer getValue(); + public Integer getValue(); - public A withValue(java.lang.Integer value); + public A withValue(Integer value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java index b5039d7475..433d2fa05b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluentImpl.java @@ -20,8 +20,7 @@ public class V2HPAScalingPolicyFluentImpl> extends BaseFluent implements V2HPAScalingPolicyFluent { public V2HPAScalingPolicyFluentImpl() {} - public V2HPAScalingPolicyFluentImpl( - io.kubernetes.client.openapi.models.V2HPAScalingPolicy instance) { + public V2HPAScalingPolicyFluentImpl(V2HPAScalingPolicy instance) { this.withPeriodSeconds(instance.getPeriodSeconds()); this.withType(instance.getType()); @@ -31,13 +30,13 @@ public V2HPAScalingPolicyFluentImpl( private Integer periodSeconds; private String type; - private java.lang.Integer value; + private Integer value; - public java.lang.Integer getPeriodSeconds() { + public Integer getPeriodSeconds() { return this.periodSeconds; } - public A withPeriodSeconds(java.lang.Integer periodSeconds) { + public A withPeriodSeconds(Integer periodSeconds) { this.periodSeconds = periodSeconds; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasPeriodSeconds() { return this.periodSeconds != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public java.lang.Integer getValue() { + public Integer getValue() { return this.value; } - public A withValue(java.lang.Integer value) { + public A withValue(Integer value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (periodSeconds != null) { 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 ea56b4f26d..b3991d974d 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 @@ -15,8 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2HPAScalingRules, V2HPAScalingRulesBuilder> { + implements VisitableBuilder { public V2HPAScalingRulesBuilder() { this(false); } @@ -29,22 +28,16 @@ public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent) { this(fluent, false); } - public V2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent fluent, - java.lang.Boolean validationEnabled) { + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent, Boolean validationEnabled) { this(fluent, new V2HPAScalingRules(), validationEnabled); } - public V2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent fluent, - io.kubernetes.client.openapi.models.V2HPAScalingRules instance) { + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent, V2HPAScalingRules instance) { this(fluent, instance, false); } public V2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent fluent, - io.kubernetes.client.openapi.models.V2HPAScalingRules instance, - java.lang.Boolean validationEnabled) { + V2HPAScalingRulesFluent fluent, V2HPAScalingRules instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withPolicies(instance.getPolicies()); @@ -55,13 +48,11 @@ public V2HPAScalingRulesBuilder( this.validationEnabled = validationEnabled; } - public V2HPAScalingRulesBuilder(io.kubernetes.client.openapi.models.V2HPAScalingRules instance) { + public V2HPAScalingRulesBuilder(V2HPAScalingRules instance) { this(instance, false); } - public V2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2HPAScalingRules instance, - java.lang.Boolean validationEnabled) { + public V2HPAScalingRulesBuilder(V2HPAScalingRules instance, Boolean validationEnabled) { this.fluent = this; this.withPolicies(instance.getPolicies()); @@ -72,10 +63,10 @@ public V2HPAScalingRulesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent fluent; - java.lang.Boolean validationEnabled; + V2HPAScalingRulesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HPAScalingRules build() { + public V2HPAScalingRules build() { V2HPAScalingRules buildable = new V2HPAScalingRules(); buildable.setPolicies(fluent.getPolicies()); buildable.setSelectPolicy(fluent.getSelectPolicy()); 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 8e80a6d925..8665f16b05 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 @@ -22,18 +22,15 @@ public interface V2HPAScalingRulesFluent> extends Fluent { public A addToPolicies(Integer index, V2HPAScalingPolicy item); - public A setToPolicies( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HPAScalingPolicy item); + public A setToPolicies(Integer index, V2HPAScalingPolicy item); public A addToPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items); - public A addAllToPolicies( - Collection items); + public A addAllToPolicies(Collection items); public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items); - public A removeAllFromPolicies( - java.util.Collection items); + public A removeAllFromPolicies(Collection items); public A removeMatchingFromPolicies(Predicate predicate); @@ -43,67 +40,53 @@ public A removeAllFromPolicies( * @return The buildable object. */ @Deprecated - public List getPolicies(); + public List getPolicies(); - public java.util.List buildPolicies(); + public List buildPolicies(); - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildPolicy( - java.lang.Integer index); + public V2HPAScalingPolicy buildPolicy(Integer index); - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildFirstPolicy(); + public V2HPAScalingPolicy buildFirstPolicy(); - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildLastPolicy(); + public V2HPAScalingPolicy buildLastPolicy(); - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildMatchingPolicy( - java.util.function.Predicate - predicate); + public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate); - public Boolean hasMatchingPolicy( - java.util.function.Predicate - predicate); + public Boolean hasMatchingPolicy(Predicate predicate); - public A withPolicies( - java.util.List policies); + public A withPolicies(List policies); public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... policies); - public java.lang.Boolean hasPolicies(); + public Boolean hasPolicies(); public V2HPAScalingRulesFluent.PoliciesNested addNewPolicy(); - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - addNewPolicyLike(io.kubernetes.client.openapi.models.V2HPAScalingPolicy item); + public V2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item); - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - setNewPolicyLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HPAScalingPolicy item); + public V2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( + Integer index, V2HPAScalingPolicy item); - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested editPolicy( - java.lang.Integer index); + public V2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index); - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - editFirstPolicy(); + public V2HPAScalingRulesFluent.PoliciesNested editFirstPolicy(); - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - editLastPolicy(); + public V2HPAScalingRulesFluent.PoliciesNested editLastPolicy(); - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - editMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder> - predicate); + public V2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( + Predicate predicate); public String getSelectPolicy(); - public A withSelectPolicy(java.lang.String selectPolicy); + public A withSelectPolicy(String selectPolicy); - public java.lang.Boolean hasSelectPolicy(); + public Boolean hasSelectPolicy(); - public java.lang.Integer getStabilizationWindowSeconds(); + public Integer getStabilizationWindowSeconds(); - public A withStabilizationWindowSeconds(java.lang.Integer stabilizationWindowSeconds); + public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds); - public java.lang.Boolean hasStabilizationWindowSeconds(); + public Boolean hasStabilizationWindowSeconds(); public interface PoliciesNested extends Nested, V2HPAScalingPolicyFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java index 5868a5056e..70754dc7e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluentImpl.java @@ -26,8 +26,7 @@ public class V2HPAScalingRulesFluentImpl> e implements V2HPAScalingRulesFluent { public V2HPAScalingRulesFluentImpl() {} - public V2HPAScalingRulesFluentImpl( - io.kubernetes.client.openapi.models.V2HPAScalingRules instance) { + public V2HPAScalingRulesFluentImpl(V2HPAScalingRules instance) { this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); @@ -39,13 +38,11 @@ public V2HPAScalingRulesFluentImpl( private String selectPolicy; private Integer stabilizationWindowSeconds; - public A addToPolicies(java.lang.Integer index, V2HPAScalingPolicy item) { + public A addToPolicies(Integer index, V2HPAScalingPolicy item) { if (this.policies == null) { - this.policies = - new java.util.ArrayList(); + this.policies = new ArrayList(); } - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(item); + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); _visitables .get("policies") .add(index >= 0 ? index : _visitables.get("policies").size(), builder); @@ -53,14 +50,11 @@ public A addToPolicies(java.lang.Integer index, V2HPAScalingPolicy item) { return (A) this; } - public A setToPolicies( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HPAScalingPolicy item) { + public A setToPolicies(Integer index, V2HPAScalingPolicy item) { if (this.policies == null) { - this.policies = - new java.util.ArrayList(); + this.policies = new ArrayList(); } - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(item); + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); if (index < 0 || index >= _visitables.get("policies").size()) { _visitables.get("policies").add(builder); } else { @@ -76,27 +70,22 @@ public A setToPolicies( public A addToPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { if (this.policies == null) { - this.policies = - new java.util.ArrayList(); + this.policies = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(item); + 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) { + public A addAllToPolicies(Collection items) { if (this.policies == null) { - this.policies = - new java.util.ArrayList(); + this.policies = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(item); + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); _visitables.get("policies").add(builder); this.policies.add(builder); } @@ -104,9 +93,8 @@ public A addAllToPolicies( } public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(item); + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); _visitables.get("policies").remove(builder); if (this.policies != null) { this.policies.remove(builder); @@ -115,11 +103,9 @@ public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPoli return (A) this; } - public A removeAllFromPolicies( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(item); + public A removeAllFromPolicies(Collection items) { + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); _visitables.get("policies").remove(builder); if (this.policies != null) { this.policies.remove(builder); @@ -128,14 +114,12 @@ public A removeAllFromPolicies( return (A) this; } - public A removeMatchingFromPolicies( - Predicate predicate) { + public A removeMatchingFromPolicies(Predicate predicate) { if (policies == null) return (A) this; - final Iterator each = - policies.iterator(); + final Iterator each = policies.iterator(); final List visitables = _visitables.get("policies"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder = each.next(); + V2HPAScalingPolicyBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -150,31 +134,28 @@ public A removeMatchingFromPolicies( * @return The buildable object. */ @Deprecated - public List getPolicies() { + public List getPolicies() { return policies != null ? build(policies) : null; } - public java.util.List buildPolicies() { + public List buildPolicies() { return policies != null ? build(policies) : null; } - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildPolicy( - java.lang.Integer index) { + public V2HPAScalingPolicy buildPolicy(Integer index) { return this.policies.get(index).build(); } - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildFirstPolicy() { + public V2HPAScalingPolicy buildFirstPolicy() { return this.policies.get(0).build(); } - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildLastPolicy() { + public V2HPAScalingPolicy buildLastPolicy() { return this.policies.get(policies.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildMatchingPolicy( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder item : policies) { + public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate) { + for (V2HPAScalingPolicyBuilder item : policies) { if (predicate.test(item)) { return item.build(); } @@ -182,10 +163,8 @@ public io.kubernetes.client.openapi.models.V2HPAScalingPolicy buildMatchingPolic return null; } - public Boolean hasMatchingPolicy( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder item : policies) { + public Boolean hasMatchingPolicy(Predicate predicate) { + for (V2HPAScalingPolicyBuilder item : policies) { if (predicate.test(item)) { return true; } @@ -193,14 +172,13 @@ public Boolean hasMatchingPolicy( return false; } - public A withPolicies( - java.util.List policies) { + public A withPolicies(List policies) { if (this.policies != null) { _visitables.get("policies").removeAll(this.policies); } if (policies != null) { - this.policies = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicy item : policies) { + this.policies = new ArrayList(); + for (V2HPAScalingPolicy item : policies) { this.addToPolicies(item); } } else { @@ -214,14 +192,14 @@ public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... this.policies.clear(); } if (policies != null) { - for (io.kubernetes.client.openapi.models.V2HPAScalingPolicy item : policies) { + for (V2HPAScalingPolicy item : policies) { this.addToPolicies(item); } } return (A) this; } - public java.lang.Boolean hasPolicies() { + public Boolean hasPolicies() { return policies != null && !policies.isEmpty(); } @@ -229,44 +207,35 @@ public V2HPAScalingRulesFluent.PoliciesNested addNewPolicy() { return new V2HPAScalingRulesFluentImpl.PoliciesNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - addNewPolicyLike(io.kubernetes.client.openapi.models.V2HPAScalingPolicy item) { + public V2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { return new V2HPAScalingRulesFluentImpl.PoliciesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - setNewPolicyLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HPAScalingPolicy item) { - return new io.kubernetes.client.openapi.models.V2HPAScalingRulesFluentImpl.PoliciesNestedImpl( - index, item); + public V2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( + Integer index, V2HPAScalingPolicy item) { + return new V2HPAScalingRulesFluentImpl.PoliciesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested editPolicy( - java.lang.Integer index) { + public V2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index) { if (policies.size() <= index) throw new RuntimeException("Can't edit policies. Index exceeds size."); return setNewPolicyLike(index, buildPolicy(index)); } - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - editFirstPolicy() { + public V2HPAScalingRulesFluent.PoliciesNested editFirstPolicy() { if (policies.size() == 0) throw new RuntimeException("Can't edit first policies. The list is empty."); return setNewPolicyLike(0, buildPolicy(0)); } - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - editLastPolicy() { + public V2HPAScalingRulesFluent.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)); } - public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested - editMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder> - predicate) { + public V2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( + Predicate predicate) { int index = -1; for (int i = 0; i < policies.size(); i++) { if (predicate.test(policies.get(i))) { @@ -278,29 +247,29 @@ public io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNeste return setNewPolicyLike(index, buildPolicy(index)); } - public java.lang.String getSelectPolicy() { + public String getSelectPolicy() { return this.selectPolicy; } - public A withSelectPolicy(java.lang.String selectPolicy) { + public A withSelectPolicy(String selectPolicy) { this.selectPolicy = selectPolicy; return (A) this; } - public java.lang.Boolean hasSelectPolicy() { + public Boolean hasSelectPolicy() { return this.selectPolicy != null; } - public java.lang.Integer getStabilizationWindowSeconds() { + public Integer getStabilizationWindowSeconds() { return this.stabilizationWindowSeconds; } - public A withStabilizationWindowSeconds(java.lang.Integer stabilizationWindowSeconds) { + public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds) { this.stabilizationWindowSeconds = stabilizationWindowSeconds; return (A) this; } - public java.lang.Boolean hasStabilizationWindowSeconds() { + public Boolean hasStabilizationWindowSeconds() { return this.stabilizationWindowSeconds != null; } @@ -322,7 +291,7 @@ public int hashCode() { policies, selectPolicy, stabilizationWindowSeconds, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (policies != null && !policies.isEmpty()) { @@ -343,21 +312,19 @@ public java.lang.String toString() { class PoliciesNestedImpl extends V2HPAScalingPolicyFluentImpl> - implements io.kubernetes.client.openapi.models.V2HPAScalingRulesFluent.PoliciesNested, - Nested { - PoliciesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HPAScalingPolicy item) { + implements V2HPAScalingRulesFluent.PoliciesNested, Nested { + PoliciesNestedImpl(Integer index, V2HPAScalingPolicy item) { this.index = index; this.builder = new V2HPAScalingPolicyBuilder(this, item); } PoliciesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder(this); + this.builder = new V2HPAScalingPolicyBuilder(this); } - io.kubernetes.client.openapi.models.V2HPAScalingPolicyBuilder builder; - java.lang.Integer index; + V2HPAScalingPolicyBuilder builder; + Integer index; public N and() { return (N) V2HPAScalingRulesFluentImpl.this.setToPolicies(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java index e59e30b5fb..37fb752736 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java @@ -17,8 +17,7 @@ public class V2HorizontalPodAutoscalerBehaviorBuilder extends V2HorizontalPodAutoscalerBehaviorFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior, - V2HorizontalPodAutoscalerBehaviorBuilder> { + V2HorizontalPodAutoscalerBehavior, V2HorizontalPodAutoscalerBehaviorBuilder> { public V2HorizontalPodAutoscalerBehaviorBuilder() { this(false); } @@ -28,26 +27,25 @@ public V2HorizontalPodAutoscalerBehaviorBuilder(Boolean validationEnabled) { } public V2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent fluent) { + V2HorizontalPodAutoscalerBehaviorFluent fluent) { this(fluent, false); } public V2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent fluent, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerBehaviorFluent fluent, Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerBehavior(), validationEnabled); } public V2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior instance) { + V2HorizontalPodAutoscalerBehaviorFluent fluent, + V2HorizontalPodAutoscalerBehavior instance) { this(fluent, instance, false); } public V2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerBehaviorFluent fluent, + V2HorizontalPodAutoscalerBehavior instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withScaleDown(instance.getScaleDown()); @@ -56,14 +54,12 @@ public V2HorizontalPodAutoscalerBehaviorBuilder( this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior instance) { + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavior instance) { this(instance, false); } public V2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerBehavior instance, Boolean validationEnabled) { this.fluent = this; this.withScaleDown(instance.getScaleDown()); @@ -72,10 +68,10 @@ public V2HorizontalPodAutoscalerBehaviorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent fluent; - java.lang.Boolean validationEnabled; + V2HorizontalPodAutoscalerBehaviorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior build() { + public V2HorizontalPodAutoscalerBehavior build() { V2HorizontalPodAutoscalerBehavior buildable = new V2HorizontalPodAutoscalerBehavior(); buildable.setScaleDown(fluent.getScaleDown()); buildable.setScaleUp(fluent.getScaleUp()); 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 08ebca1127..7e6851c5a5 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 @@ -28,65 +28,49 @@ public interface V2HorizontalPodAutoscalerBehaviorFluent< @Deprecated public V2HPAScalingRules getScaleDown(); - public io.kubernetes.client.openapi.models.V2HPAScalingRules buildScaleDown(); + public V2HPAScalingRules buildScaleDown(); - public A withScaleDown(io.kubernetes.client.openapi.models.V2HPAScalingRules scaleDown); + public A withScaleDown(V2HPAScalingRules scaleDown); public Boolean hasScaleDown(); public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDown(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - withNewScaleDownLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( + V2HPAScalingRules item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editScaleDown(); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDown(); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDownLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( + V2HPAScalingRules item); /** * This method has been deprecated, please use method buildScaleUp instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2HPAScalingRules getScaleUp(); + @Deprecated + public V2HPAScalingRules getScaleUp(); - public io.kubernetes.client.openapi.models.V2HPAScalingRules buildScaleUp(); + public V2HPAScalingRules buildScaleUp(); - public A withScaleUp(io.kubernetes.client.openapi.models.V2HPAScalingRules scaleUp); + public A withScaleUp(V2HPAScalingRules scaleUp); - public java.lang.Boolean hasScaleUp(); + public Boolean hasScaleUp(); public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - withNewScaleUpLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( + V2HPAScalingRules item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - editScaleUp(); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - editOrNewScaleUp(); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - editOrNewScaleUpLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( + V2HPAScalingRules item); public interface ScaleDownNested extends Nested, @@ -97,7 +81,7 @@ public interface ScaleDownNested } public interface ScaleUpNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2HPAScalingRulesFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java index 35701cc1be..a8413bf474 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluentImpl.java @@ -22,8 +22,7 @@ public class V2HorizontalPodAutoscalerBehaviorFluentImpl< extends BaseFluent implements V2HorizontalPodAutoscalerBehaviorFluent { public V2HorizontalPodAutoscalerBehaviorFluentImpl() {} - public V2HorizontalPodAutoscalerBehaviorFluentImpl( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior instance) { + public V2HorizontalPodAutoscalerBehaviorFluentImpl(V2HorizontalPodAutoscalerBehavior instance) { this.withScaleDown(instance.getScaleDown()); this.withScaleUp(instance.getScaleUp()); @@ -38,19 +37,22 @@ public V2HorizontalPodAutoscalerBehaviorFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2HPAScalingRules getScaleDown() { + public V2HPAScalingRules getScaleDown() { return this.scaleDown != null ? this.scaleDown.build() : null; } - public io.kubernetes.client.openapi.models.V2HPAScalingRules buildScaleDown() { + public V2HPAScalingRules buildScaleDown() { return this.scaleDown != null ? this.scaleDown.build() : null; } - public A withScaleDown(io.kubernetes.client.openapi.models.V2HPAScalingRules scaleDown) { + public A withScaleDown(V2HPAScalingRules scaleDown) { _visitables.get("scaleDown").remove(this.scaleDown); if (scaleDown != null) { - this.scaleDown = new io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder(scaleDown); + this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); _visitables.get("scaleDown").add(this.scaleDown); + } else { + this.scaleDown = null; + _visitables.get("scaleDown").remove(this.scaleDown); } return (A) this; } @@ -63,34 +65,22 @@ public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDo return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - withNewScaleDownLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item) { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( + V2HPAScalingRules item) { return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editScaleDown() { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown() { return withNewScaleDownLike(getScaleDown()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDown() { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown() { return withNewScaleDownLike( - getScaleDown() != null - ? getScaleDown() - : new io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder().build()); + getScaleDown() != null ? getScaleDown() : new V2HPAScalingRulesBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDownLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item) { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( + V2HPAScalingRules item) { return withNewScaleDownLike(getScaleDown() != null ? getScaleDown() : item); } @@ -99,25 +89,28 @@ public V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDo * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2HPAScalingRules getScaleUp() { + @Deprecated + public V2HPAScalingRules getScaleUp() { return this.scaleUp != null ? this.scaleUp.build() : null; } - public io.kubernetes.client.openapi.models.V2HPAScalingRules buildScaleUp() { + public V2HPAScalingRules buildScaleUp() { return this.scaleUp != null ? this.scaleUp.build() : null; } - public A withScaleUp(io.kubernetes.client.openapi.models.V2HPAScalingRules scaleUp) { + public A withScaleUp(V2HPAScalingRules scaleUp) { _visitables.get("scaleUp").remove(this.scaleUp); if (scaleUp != null) { - this.scaleUp = new io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder(scaleUp); + this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); _visitables.get("scaleUp").add(this.scaleUp); + } else { + this.scaleUp = null; + _visitables.get("scaleUp").remove(this.scaleUp); } return (A) this; } - public java.lang.Boolean hasScaleUp() { + public Boolean hasScaleUp() { return this.scaleUp != null; } @@ -125,31 +118,22 @@ public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp() return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - withNewScaleUpLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluentImpl - .ScaleUpNestedImpl(item); + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( + V2HPAScalingRules item) { + return new V2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - editScaleUp() { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp() { return withNewScaleUpLike(getScaleUp()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - editOrNewScaleUp() { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp() { return withNewScaleUpLike( - getScaleUp() != null - ? getScaleUp() - : new io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder().build()); + getScaleUp() != null ? getScaleUp() : new V2HPAScalingRulesBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested< - A> - editOrNewScaleUpLike(io.kubernetes.client.openapi.models.V2HPAScalingRules item) { + public V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( + V2HPAScalingRules item) { return withNewScaleUpLike(getScaleUp() != null ? getScaleUp() : item); } @@ -186,19 +170,16 @@ public String toString() { class ScaleDownNestedImpl extends V2HPAScalingRulesFluentImpl< V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - N>, - Nested { + implements V2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested, Nested { ScaleDownNestedImpl(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } ScaleDownNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder(this); + this.builder = new V2HPAScalingRulesBuilder(this); } - io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder builder; + V2HPAScalingRulesBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleDown(builder.build()); @@ -211,19 +192,16 @@ public N endScaleDown() { class ScaleUpNestedImpl extends V2HPAScalingRulesFluentImpl> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested, Nested { ScaleUpNestedImpl(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } ScaleUpNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder(this); + this.builder = new V2HPAScalingRulesBuilder(this); } - io.kubernetes.client.openapi.models.V2HPAScalingRulesBuilder builder; + V2HPAScalingRulesBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleUp(builder.build()); 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 fa965668fa..cc6aa4a01f 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 @@ -16,9 +16,7 @@ public class V2HorizontalPodAutoscalerBuilder extends V2HorizontalPodAutoscalerFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> { + implements VisitableBuilder { public V2HorizontalPodAutoscalerBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluen } public V2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent fluent, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerFluent fluent, Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscaler(), validationEnabled); } public V2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler instance) { + V2HorizontalPodAutoscalerFluent fluent, V2HorizontalPodAutoscaler instance) { this(fluent, instance, false); } public V2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerFluent fluent, + V2HorizontalPodAutoscaler instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +57,12 @@ public V2HorizontalPodAutoscalerBuilder( this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler instance) { + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscaler instance) { this(instance, false); } public V2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscaler instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +77,10 @@ public V2HorizontalPodAutoscalerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent fluent; - java.lang.Boolean validationEnabled; + V2HorizontalPodAutoscalerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler build() { + public V2HorizontalPodAutoscaler build() { V2HorizontalPodAutoscaler buildable = new V2HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); 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 45e225a9f6..0445db5b35 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 @@ -17,8 +17,7 @@ public class V2HorizontalPodAutoscalerConditionBuilder extends V2HorizontalPodAutoscalerConditionFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition, - V2HorizontalPodAutoscalerConditionBuilder> { + V2HorizontalPodAutoscalerCondition, V2HorizontalPodAutoscalerConditionBuilder> { public V2HorizontalPodAutoscalerConditionBuilder() { this(false); } @@ -28,26 +27,25 @@ public V2HorizontalPodAutoscalerConditionBuilder(Boolean validationEnabled) { } public V2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionFluent fluent) { + V2HorizontalPodAutoscalerConditionFluent fluent) { this(fluent, false); } public V2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerCondition(), validationEnabled); } public V2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition instance) { + V2HorizontalPodAutoscalerConditionFluent fluent, + V2HorizontalPodAutoscalerCondition instance) { this(fluent, instance, false); } public V2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerConditionFluent fluent, + V2HorizontalPodAutoscalerCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -62,14 +60,12 @@ public V2HorizontalPodAutoscalerConditionBuilder( this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition instance) { + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondition instance) { this(instance, false); } public V2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -84,10 +80,10 @@ public V2HorizontalPodAutoscalerConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionFluent fluent; - java.lang.Boolean validationEnabled; + V2HorizontalPodAutoscalerConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition build() { + public V2HorizontalPodAutoscalerCondition build() { V2HorizontalPodAutoscalerCondition buildable = new V2HorizontalPodAutoscalerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); 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 05d7486bc1..47181b78d0 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 @@ -21,31 +21,31 @@ public interface V2HorizontalPodAutoscalerConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java index edb7ed8c17..54f7c06819 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluentImpl.java @@ -22,8 +22,7 @@ public class V2HorizontalPodAutoscalerConditionFluentImpl< extends BaseFluent implements V2HorizontalPodAutoscalerConditionFluent { public V2HorizontalPodAutoscalerConditionFluentImpl() {} - public V2HorizontalPodAutoscalerConditionFluentImpl( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition instance) { + public V2HorizontalPodAutoscalerConditionFluentImpl(V2HorizontalPodAutoscalerCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -37,15 +36,15 @@ public V2HorizontalPodAutoscalerConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -54,55 +53,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -126,7 +125,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { 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 5742eee1e1..bf50b84922 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java @@ -20,15 +20,15 @@ public interface V2HorizontalPodAutoscalerFluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -38,81 +38,73 @@ public interface V2HorizontalPodAutoscalerFluent withNewMetadata(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - editMetadata(); + public V2HorizontalPodAutoscalerFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata(); + public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike(V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2HorizontalPodAutoscalerSpec getSpec(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec buildSpec(); + public V2HorizontalPodAutoscalerSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec spec); + public A withSpec(V2HorizontalPodAutoscalerSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec item); + public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( + V2HorizontalPodAutoscalerSpec item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - editSpec(); + public V2HorizontalPodAutoscalerFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec(); + public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec item); + public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( + V2HorizontalPodAutoscalerSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2HorizontalPodAutoscalerStatus getStatus(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus buildStatus(); + public V2HorizontalPodAutoscalerStatus buildStatus(); - public A withStatus(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus status); + public A withStatus(V2HorizontalPodAutoscalerStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus item); + public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( + V2HorizontalPodAutoscalerStatus item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - editStatus(); + public V2HorizontalPodAutoscalerFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus(); + public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus item); + public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( + V2HorizontalPodAutoscalerStatus item); public interface MetadataNested extends Nested, V1ObjectMetaFluent> { @@ -122,7 +114,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2HorizontalPodAutoscalerSpecFluent> { public N and(); @@ -130,7 +122,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2HorizontalPodAutoscalerStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java index 418c128a91..bb3702a1dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluentImpl.java @@ -21,8 +21,7 @@ public class V2HorizontalPodAutoscalerFluentImpl implements V2HorizontalPodAutoscalerFluent { public V2HorizontalPodAutoscalerFluentImpl() {} - public V2HorizontalPodAutoscalerFluentImpl( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler instance) { + public V2HorizontalPodAutoscalerFluentImpl(V2HorizontalPodAutoscaler instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -35,16 +34,16 @@ public V2HorizontalPodAutoscalerFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V2HorizontalPodAutoscalerSpecBuilder spec; private V2HorizontalPodAutoscalerStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -53,16 +52,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -72,24 +71,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -97,26 +99,21 @@ public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { return new V2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new V2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - editMetadata() { + public V2HorizontalPodAutoscalerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata() { + public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -125,26 +122,28 @@ public V2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2HorizontalPodAutoscalerSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec buildSpec() { + public V2HorizontalPodAutoscalerSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec spec) { + public A withSpec(V2HorizontalPodAutoscalerSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecBuilder(spec); + this.spec = new V2HorizontalPodAutoscalerSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -152,28 +151,22 @@ public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { return new V2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluentImpl - .SpecNestedImpl(item); + public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( + V2HorizontalPodAutoscalerSpec item) { + return new V2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - editSpec() { + public V2HorizontalPodAutoscalerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec() { + public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V2HorizontalPodAutoscalerSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec item) { + public V2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( + V2HorizontalPodAutoscalerSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -182,25 +175,28 @@ public V2HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus getStatus() { + @Deprecated + public V2HorizontalPodAutoscalerStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus buildStatus() { + public V2HorizontalPodAutoscalerStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus status) { + public A withStatus(V2HorizontalPodAutoscalerStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V2HorizontalPodAutoscalerStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -208,29 +204,22 @@ public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { return new V2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluentImpl - .StatusNestedImpl(item); + public V2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( + V2HorizontalPodAutoscalerStatus item) { + return new V2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - editStatus() { + public V2HorizontalPodAutoscalerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus() { + public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus() { return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusBuilder() - .build()); + getStatus() != null ? getStatus() : new V2HorizontalPodAutoscalerStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus item) { + public V2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( + V2HorizontalPodAutoscalerStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -251,7 +240,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -280,18 +269,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.MetadataNested< - N>, - Nested { + implements V2HorizontalPodAutoscalerFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); @@ -304,18 +291,16 @@ public N endMetadata() { class SpecNestedImpl extends V2HorizontalPodAutoscalerSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.SpecNested, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec item) { + implements V2HorizontalPodAutoscalerFluent.SpecNested, Nested { + SpecNestedImpl(V2HorizontalPodAutoscalerSpec item) { this.builder = new V2HorizontalPodAutoscalerSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecBuilder(this); + this.builder = new V2HorizontalPodAutoscalerSpecBuilder(this); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecBuilder builder; + V2HorizontalPodAutoscalerSpecBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); @@ -329,19 +314,16 @@ public N endSpec() { class StatusNestedImpl extends V2HorizontalPodAutoscalerStatusFluentImpl< V2HorizontalPodAutoscalerFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerFluent.StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2HorizontalPodAutoscalerFluent.StatusNested, Nested { StatusNestedImpl(V2HorizontalPodAutoscalerStatus item) { this.builder = new V2HorizontalPodAutoscalerStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusBuilder(this); + this.builder = new V2HorizontalPodAutoscalerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusBuilder builder; + V2HorizontalPodAutoscalerStatusBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); 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 28792850fc..e3468f7b05 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 @@ -17,8 +17,7 @@ public class V2HorizontalPodAutoscalerListBuilder extends V2HorizontalPodAutoscalerListFluentImpl implements VisitableBuilder< - V2HorizontalPodAutoscalerList, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListBuilder> { + V2HorizontalPodAutoscalerList, V2HorizontalPodAutoscalerListBuilder> { public V2HorizontalPodAutoscalerListBuilder() { this(false); } @@ -32,21 +31,19 @@ public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent< } public V2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent fluent, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerListFluent fluent, Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerList(), validationEnabled); } public V2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerList instance) { + V2HorizontalPodAutoscalerListFluent fluent, V2HorizontalPodAutoscalerList instance) { this(fluent, instance, false); } public V2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerListFluent fluent, + V2HorizontalPodAutoscalerList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -59,14 +56,12 @@ public V2HorizontalPodAutoscalerListBuilder( this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerList instance) { + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerList instance) { this(instance, false); } public V2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -79,10 +74,10 @@ public V2HorizontalPodAutoscalerListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent fluent; - java.lang.Boolean validationEnabled; + V2HorizontalPodAutoscalerListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerList build() { + public V2HorizontalPodAutoscalerList build() { V2HorizontalPodAutoscalerList buildable = new V2HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); 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 7faaf8746a..0de9159330 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 @@ -24,24 +24,21 @@ public interface V2HorizontalPodAutoscalerListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); public A addToItems(Integer index, V2HorizontalPodAutoscaler item); - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item); + public A setToItems(Integer index, V2HorizontalPodAutoscaler item); public A addToItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items); - public A removeAllFromItems( - java.util.Collection items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -51,92 +48,74 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildItem( - java.lang.Integer index); + public V2HorizontalPodAutoscaler buildItem(Integer index); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildFirstItem(); + public V2HorizontalPodAutoscaler buildFirstItem(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildLastItem(); + public V2HorizontalPodAutoscaler buildLastItem(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> - predicate); + public V2HorizontalPodAutoscaler buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item); + public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( + V2HorizontalPodAutoscaler item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item); + public V2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( + Integer index, V2HorizontalPodAutoscaler item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index); + public V2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem(); + public V2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem(); + public V2HorizontalPodAutoscalerListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> - predicate); + public V2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike(V1ListMeta item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - editMetadata(); + public V2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadata(); + public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -147,8 +126,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { + extends Nested, V1ListMetaFluent> { public N and(); public N endMetadata(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java index 87b2a16c2e..fb63b1af87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluentImpl.java @@ -27,8 +27,7 @@ public class V2HorizontalPodAutoscalerListFluentImpl< extends BaseFluent implements V2HorizontalPodAutoscalerListFluent { public V2HorizontalPodAutoscalerListFluentImpl() {} - public V2HorizontalPodAutoscalerListFluentImpl( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerList instance) { + public V2HorizontalPodAutoscalerListFluentImpl(V2HorizontalPodAutoscalerList instance) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -40,14 +39,14 @@ public V2HorizontalPodAutoscalerListFluentImpl( private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -56,29 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item) { + public A addToItems(Integer index, V2HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(item); + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item) { + public A setToItems(Integer index, V2HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(item); + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -94,29 +85,22 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(item); + 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) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(item); + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -124,9 +108,8 @@ public A addAllToItems( } public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(item); + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -135,11 +118,9 @@ public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAuto return (A) this; } - public A removeAllFromItems( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(item); + public A removeAllFromItems(Collection items) { + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -148,14 +129,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder = each.next(); + V2HorizontalPodAutoscalerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -170,33 +149,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildItem( - java.lang.Integer index) { + public V2HorizontalPodAutoscaler buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildFirstItem() { + public V2HorizontalPodAutoscaler buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildLastItem() { + public V2HorizontalPodAutoscaler buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder item : items) { + public V2HorizontalPodAutoscaler buildMatchingItem( + Predicate predicate) { + for (V2HorizontalPodAutoscalerBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -204,11 +179,8 @@ public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler buildMatchi return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V2HorizontalPodAutoscalerBuilder item : items) { if (predicate.test(item)) { return true; } @@ -216,14 +188,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item : items) { + this.items = new ArrayList(); + for (V2HorizontalPodAutoscaler item : items) { this.addToItems(item); } } else { @@ -237,14 +208,14 @@ public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item : items) { + for (V2HorizontalPodAutoscaler item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -253,42 +224,33 @@ public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { } public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item) { + V2HorizontalPodAutoscaler item) { return new V2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluentImpl - .ItemsNestedImpl(index, item); + public V2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( + Integer index, V2HorizontalPodAutoscaler item) { + return new V2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem() { + public V2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem() { + public V2HorizontalPodAutoscalerListFluent.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 io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder> - predicate) { + public V2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -300,16 +262,16 @@ public V2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -318,25 +280,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -344,27 +309,22 @@ public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata() { return new V2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluentImpl - .MetadataNestedImpl(item); + public V2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - editMetadata() { + public V2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadata() { + public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -384,7 +344,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -410,24 +370,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V2HorizontalPodAutoscalerFluentImpl< V2HorizontalPodAutoscalerListFluent.ItemsNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent - .ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler item) { + implements V2HorizontalPodAutoscalerListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V2HorizontalPodAutoscaler item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder(this); + this.builder = new V2HorizontalPodAutoscalerBuilder(this); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBuilder builder; - java.lang.Integer index; + V2HorizontalPodAutoscalerBuilder builder; + Integer index; public N and() { return (N) V2HorizontalPodAutoscalerListFluentImpl.this.setToItems(index, builder.build()); @@ -440,19 +395,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2HorizontalPodAutoscalerListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java index 15ce53b903..858bf5c3db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java @@ -17,8 +17,7 @@ public class V2HorizontalPodAutoscalerSpecBuilder extends V2HorizontalPodAutoscalerSpecFluentImpl implements VisitableBuilder< - V2HorizontalPodAutoscalerSpec, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecBuilder> { + V2HorizontalPodAutoscalerSpec, V2HorizontalPodAutoscalerSpecBuilder> { public V2HorizontalPodAutoscalerSpecBuilder() { this(false); } @@ -27,27 +26,24 @@ public V2HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { this(new V2HorizontalPodAutoscalerSpec(), validationEnabled); } - public V2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent fluent) { + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent) { this(fluent, false); } public V2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerSpec(), validationEnabled); } public V2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec instance) { + V2HorizontalPodAutoscalerSpecFluent fluent, V2HorizontalPodAutoscalerSpec instance) { this(fluent, instance, false); } public V2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerSpecFluent fluent, + V2HorizontalPodAutoscalerSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withBehavior(instance.getBehavior()); @@ -62,14 +58,12 @@ public V2HorizontalPodAutoscalerSpecBuilder( this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec instance) { + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpec instance) { this(instance, false); } public V2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerSpec instance, Boolean validationEnabled) { this.fluent = this; this.withBehavior(instance.getBehavior()); @@ -84,10 +78,10 @@ public V2HorizontalPodAutoscalerSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent fluent; - java.lang.Boolean validationEnabled; + V2HorizontalPodAutoscalerSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec build() { + public V2HorizontalPodAutoscalerSpec build() { V2HorizontalPodAutoscalerSpec buildable = new V2HorizontalPodAutoscalerSpec(); buildable.setBehavior(fluent.getBehavior()); buildable.setMaxReplicas(fluent.getMaxReplicas()); 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 41b55e7643..7dd20f5529 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 @@ -31,48 +31,41 @@ public interface V2HorizontalPodAutoscalerSpecFluent< @Deprecated public V2HorizontalPodAutoscalerBehavior getBehavior(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior buildBehavior(); + public V2HorizontalPodAutoscalerBehavior buildBehavior(); - public A withBehavior( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior behavior); + public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior); public Boolean hasBehavior(); public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - withNewBehaviorLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior item); + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( + V2HorizontalPodAutoscalerBehavior item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - editBehavior(); + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - editOrNewBehavior(); + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - editOrNewBehaviorLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior item); + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( + V2HorizontalPodAutoscalerBehavior item); public Integer getMaxReplicas(); - public A withMaxReplicas(java.lang.Integer maxReplicas); + public A withMaxReplicas(Integer maxReplicas); - public java.lang.Boolean hasMaxReplicas(); + public Boolean hasMaxReplicas(); - public A addToMetrics(java.lang.Integer index, V2MetricSpec item); + public A addToMetrics(Integer index, V2MetricSpec item); - public A setToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricSpec item); + public A setToMetrics(Integer index, V2MetricSpec item); public A addToMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items); - public A addAllToMetrics(Collection items); + public A addAllToMetrics(Collection items); public A removeFromMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items); - public A removeAllFromMetrics( - java.util.Collection items); + public A removeAllFromMetrics(Collection items); public A removeMatchingFromMetrics(Predicate predicate); @@ -81,98 +74,74 @@ public A removeAllFromMetrics( * * @return The buildable object. */ - @java.lang.Deprecated - public List getMetrics(); + @Deprecated + public List getMetrics(); - public java.util.List buildMetrics(); + public List buildMetrics(); - public io.kubernetes.client.openapi.models.V2MetricSpec buildMetric(java.lang.Integer index); + public V2MetricSpec buildMetric(Integer index); - public io.kubernetes.client.openapi.models.V2MetricSpec buildFirstMetric(); + public V2MetricSpec buildFirstMetric(); - public io.kubernetes.client.openapi.models.V2MetricSpec buildLastMetric(); + public V2MetricSpec buildLastMetric(); - public io.kubernetes.client.openapi.models.V2MetricSpec buildMatchingMetric( - java.util.function.Predicate - predicate); + public V2MetricSpec buildMatchingMetric(Predicate predicate); - public java.lang.Boolean hasMatchingMetric( - java.util.function.Predicate - predicate); + public Boolean hasMatchingMetric(Predicate predicate); - public A withMetrics(java.util.List metrics); + public A withMetrics(List metrics); public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics); - public java.lang.Boolean hasMetrics(); + public Boolean hasMetrics(); public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - addNewMetricLike(io.kubernetes.client.openapi.models.V2MetricSpec item); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike(V2MetricSpec item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - setNewMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricSpec item); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( + Integer index, V2MetricSpec item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editMetric(java.lang.Integer index); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editFirstMetric(); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editLastMetric(); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editLastMetric(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editMatchingMetric( - java.util.function.Predicate - predicate); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( + Predicate predicate); - public java.lang.Integer getMinReplicas(); + public Integer getMinReplicas(); - public A withMinReplicas(java.lang.Integer minReplicas); + public A withMinReplicas(Integer minReplicas); - public java.lang.Boolean hasMinReplicas(); + public Boolean hasMinReplicas(); /** * This method has been deprecated, please use method buildScaleTargetRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2CrossVersionObjectReference getScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2CrossVersionObjectReference buildScaleTargetRef(); + public V2CrossVersionObjectReference buildScaleTargetRef(); - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference scaleTargetRef); + public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef); - public java.lang.Boolean hasScaleTargetRef(); + public Boolean hasScaleTargetRef(); public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item); + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( + V2CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef(); + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef(); + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item); + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( + V2CrossVersionObjectReference item); public interface BehaviorNested extends Nested, @@ -184,15 +153,14 @@ public interface BehaviorNested } public interface MetricsNested - extends io.kubernetes.client.fluent.Nested, - V2MetricSpecFluent> { + extends Nested, V2MetricSpecFluent> { public N and(); public N endMetric(); } public interface ScaleTargetRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2CrossVersionObjectReferenceFluent< V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java index b8ead8c84b..cdea7edfb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluentImpl.java @@ -27,8 +27,7 @@ public class V2HorizontalPodAutoscalerSpecFluentImpl< extends BaseFluent implements V2HorizontalPodAutoscalerSpecFluent { public V2HorizontalPodAutoscalerSpecFluentImpl() {} - public V2HorizontalPodAutoscalerSpecFluentImpl( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpec instance) { + public V2HorizontalPodAutoscalerSpecFluentImpl(V2HorizontalPodAutoscalerSpec instance) { this.withBehavior(instance.getBehavior()); this.withMaxReplicas(instance.getMaxReplicas()); @@ -43,7 +42,7 @@ public V2HorizontalPodAutoscalerSpecFluentImpl( private V2HorizontalPodAutoscalerBehaviorBuilder behavior; private Integer maxReplicas; private ArrayList metrics; - private java.lang.Integer minReplicas; + private Integer minReplicas; private V2CrossVersionObjectReferenceBuilder scaleTargetRef; /** @@ -52,20 +51,22 @@ public V2HorizontalPodAutoscalerSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior getBehavior() { + public V2HorizontalPodAutoscalerBehavior getBehavior() { return this.behavior != null ? this.behavior.build() : null; } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior buildBehavior() { + public V2HorizontalPodAutoscalerBehavior buildBehavior() { return this.behavior != null ? this.behavior.build() : null; } - public A withBehavior( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior behavior) { + public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { _visitables.get("behavior").remove(this.behavior); if (behavior != null) { this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); _visitables.get("behavior").add(this.behavior); + } else { + this.behavior = null; + _visitables.get("behavior").remove(this.behavior); } return (A) this; } @@ -78,65 +79,55 @@ public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior() { return new V2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - withNewBehaviorLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior item) { + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( + V2HorizontalPodAutoscalerBehavior item) { return new V2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - editBehavior() { + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior() { return withNewBehaviorLike(getBehavior()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - editOrNewBehavior() { + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior() { return withNewBehaviorLike( getBehavior() != null ? getBehavior() - : new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorBuilder() - .build()); + : new V2HorizontalPodAutoscalerBehaviorBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.BehaviorNested - editOrNewBehaviorLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior item) { + public V2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( + V2HorizontalPodAutoscalerBehavior item) { return withNewBehaviorLike(getBehavior() != null ? getBehavior() : item); } - public java.lang.Integer getMaxReplicas() { + public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(java.lang.Integer maxReplicas) { + public A withMaxReplicas(Integer maxReplicas) { this.maxReplicas = maxReplicas; return (A) this; } - public java.lang.Boolean hasMaxReplicas() { + public Boolean hasMaxReplicas() { return this.maxReplicas != null; } - public A addToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricSpec item) { + public A addToMetrics(Integer index, V2MetricSpec item) { if (this.metrics == null) { - this.metrics = new java.util.ArrayList(); + this.metrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricSpecBuilder(item); + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); _visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder); this.metrics.add(index >= 0 ? index : metrics.size(), builder); return (A) this; } - public A setToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricSpec item) { + public A setToMetrics(Integer index, V2MetricSpec item) { if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); + this.metrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricSpecBuilder(item); + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); if (index < 0 || index >= _visitables.get("metrics").size()) { _visitables.get("metrics").add(builder); } else { @@ -152,26 +143,22 @@ public A setToMetrics( public A addToMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); + this.metrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricSpecBuilder(item); + 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) { + public A addAllToMetrics(Collection items) { if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); + this.metrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricSpecBuilder(item); + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); _visitables.get("metrics").add(builder); this.metrics.add(builder); } @@ -179,9 +166,8 @@ public A addAllToMetrics(Collection items) { - for (io.kubernetes.client.openapi.models.V2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricSpecBuilder(item); + public A removeAllFromMetrics(Collection items) { + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); _visitables.get("metrics").remove(builder); if (this.metrics != null) { this.metrics.remove(builder); @@ -203,14 +187,12 @@ public A removeAllFromMetrics( return (A) this; } - public A removeMatchingFromMetrics( - Predicate predicate) { + public A removeMatchingFromMetrics(Predicate predicate) { if (metrics == null) return (A) this; - final Iterator each = - metrics.iterator(); + final Iterator each = metrics.iterator(); final List visitables = _visitables.get("metrics"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder = each.next(); + V2MetricSpecBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -224,31 +206,29 @@ public A removeMatchingFromMetrics( * * @return The buildable object. */ - @java.lang.Deprecated - public List getMetrics() { + @Deprecated + public List getMetrics() { return metrics != null ? build(metrics) : null; } - public java.util.List buildMetrics() { + public List buildMetrics() { return metrics != null ? build(metrics) : null; } - public io.kubernetes.client.openapi.models.V2MetricSpec buildMetric(java.lang.Integer index) { + public V2MetricSpec buildMetric(Integer index) { return this.metrics.get(index).build(); } - public io.kubernetes.client.openapi.models.V2MetricSpec buildFirstMetric() { + public V2MetricSpec buildFirstMetric() { return this.metrics.get(0).build(); } - public io.kubernetes.client.openapi.models.V2MetricSpec buildLastMetric() { + public V2MetricSpec buildLastMetric() { return this.metrics.get(metrics.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2MetricSpec buildMatchingMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2MetricSpecBuilder item : metrics) { + public V2MetricSpec buildMatchingMetric(Predicate predicate) { + for (V2MetricSpecBuilder item : metrics) { if (predicate.test(item)) { return item.build(); } @@ -256,10 +236,8 @@ public io.kubernetes.client.openapi.models.V2MetricSpec buildMatchingMetric( return null; } - public java.lang.Boolean hasMatchingMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2MetricSpecBuilder item : metrics) { + public Boolean hasMatchingMetric(Predicate predicate) { + for (V2MetricSpecBuilder item : metrics) { if (predicate.test(item)) { return true; } @@ -267,13 +245,13 @@ public java.lang.Boolean hasMatchingMetric( return false; } - public A withMetrics(java.util.List metrics) { + public A withMetrics(List metrics) { if (this.metrics != null) { _visitables.get("metrics").removeAll(this.metrics); } if (metrics != null) { - this.metrics = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2MetricSpec item : metrics) { + this.metrics = new ArrayList(); + for (V2MetricSpec item : metrics) { this.addToMetrics(item); } } else { @@ -287,14 +265,14 @@ public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics this.metrics.clear(); } if (metrics != null) { - for (io.kubernetes.client.openapi.models.V2MetricSpec item : metrics) { + for (V2MetricSpec item : metrics) { this.addToMetrics(item); } } return (A) this; } - public java.lang.Boolean hasMetrics() { + public Boolean hasMetrics() { return metrics != null && !metrics.isEmpty(); } @@ -302,44 +280,35 @@ public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() { return new V2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - addNewMetricLike(io.kubernetes.client.openapi.models.V2MetricSpec item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluentImpl - .MetricsNestedImpl(-1, item); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike(V2MetricSpec item) { + return new V2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - setNewMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricSpec item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluentImpl - .MetricsNestedImpl(index, item); + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( + Integer index, V2MetricSpec item) { + return new V2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editMetric(java.lang.Integer index) { + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index) { if (metrics.size() <= index) throw new RuntimeException("Can't edit metrics. Index exceeds size."); return setNewMetricLike(index, buildMetric(index)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editFirstMetric() { + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric() { if (metrics.size() == 0) throw new RuntimeException("Can't edit first metrics. The list is empty."); return setNewMetricLike(0, buildMetric(0)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editLastMetric() { + public V2HorizontalPodAutoscalerSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent.MetricsNested - editMatchingMetric( - java.util.function.Predicate - predicate) { + public V2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( + Predicate predicate) { int index = -1; for (int i = 0; i < metrics.size(); i++) { if (predicate.test(metrics.get(i))) { @@ -351,16 +320,16 @@ public V2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() { return setNewMetricLike(index, buildMetric(index)); } - public java.lang.Integer getMinReplicas() { + public Integer getMinReplicas() { return this.minReplicas; } - public A withMinReplicas(java.lang.Integer minReplicas) { + public A withMinReplicas(Integer minReplicas) { this.minReplicas = minReplicas; return (A) this; } - public java.lang.Boolean hasMinReplicas() { + public Boolean hasMinReplicas() { return this.minReplicas != null; } @@ -369,28 +338,28 @@ public java.lang.Boolean hasMinReplicas() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2CrossVersionObjectReference getScaleTargetRef() { return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public io.kubernetes.client.openapi.models.V2CrossVersionObjectReference buildScaleTargetRef() { + public V2CrossVersionObjectReference buildScaleTargetRef() { return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference scaleTargetRef) { + public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); if (scaleTargetRef != null) { - this.scaleTargetRef = - new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder( - scaleTargetRef); + this.scaleTargetRef = new V2CrossVersionObjectReferenceBuilder(scaleTargetRef); _visitables.get("scaleTargetRef").add(this.scaleTargetRef); + } else { + this.scaleTargetRef = null; + _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); } return (A) this; } - public java.lang.Boolean hasScaleTargetRef() { + public Boolean hasScaleTargetRef() { return this.scaleTargetRef != null; } @@ -398,38 +367,24 @@ public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleT return new V2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluentImpl - .ScaleTargetRefNestedImpl(item); + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( + V2CrossVersionObjectReference item) { + return new V2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef() { + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef() { return withNewScaleTargetRefLike(getScaleTargetRef()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef() { + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef() { return withNewScaleTargetRefLike( getScaleTargetRef() != null ? getScaleTargetRef() - : new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder() - .build()); + : new V2CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + public V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRefLike( + V2CrossVersionObjectReference item) { return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); } @@ -484,20 +439,16 @@ public String toString() { class BehaviorNestedImpl extends V2HorizontalPodAutoscalerBehaviorFluentImpl< V2HorizontalPodAutoscalerSpecFluent.BehaviorNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - N>, - Nested { - BehaviorNestedImpl(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehavior item) { + implements V2HorizontalPodAutoscalerSpecFluent.BehaviorNested, Nested { + BehaviorNestedImpl(V2HorizontalPodAutoscalerBehavior item) { this.builder = new V2HorizontalPodAutoscalerBehaviorBuilder(this, item); } BehaviorNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorBuilder(this); + this.builder = new V2HorizontalPodAutoscalerBehaviorBuilder(this); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerBehaviorBuilder builder; + V2HorizontalPodAutoscalerBehaviorBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.withBehavior(builder.build()); @@ -510,23 +461,19 @@ public N endBehavior() { class MetricsNestedImpl extends V2MetricSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .MetricsNested< - N>, - io.kubernetes.client.fluent.Nested { - MetricsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricSpec item) { + implements V2HorizontalPodAutoscalerSpecFluent.MetricsNested, Nested { + MetricsNestedImpl(Integer index, V2MetricSpec item) { this.index = index; this.builder = new V2MetricSpecBuilder(this, item); } MetricsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2MetricSpecBuilder(this); + this.builder = new V2MetricSpecBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricSpecBuilder builder; - java.lang.Integer index; + V2MetricSpecBuilder builder; + Integer index; public N and() { return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.setToMetrics(index, builder.build()); @@ -540,21 +487,16 @@ public N endMetric() { class ScaleTargetRefNestedImpl extends V2CrossVersionObjectReferenceFluentImpl< V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - N>, - io.kubernetes.client.fluent.Nested { - ScaleTargetRefNestedImpl( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + implements V2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested, Nested { + ScaleTargetRefNestedImpl(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } ScaleTargetRefNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder(this); + this.builder = new V2CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder builder; + V2CrossVersionObjectReferenceBuilder builder; public N and() { return (N) V2HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); 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 1e8f252824..a0d6b20830 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 @@ -17,8 +17,7 @@ public class V2HorizontalPodAutoscalerStatusBuilder extends V2HorizontalPodAutoscalerStatusFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus, - V2HorizontalPodAutoscalerStatusBuilder> { + V2HorizontalPodAutoscalerStatus, V2HorizontalPodAutoscalerStatusBuilder> { public V2HorizontalPodAutoscalerStatusBuilder() { this(false); } @@ -32,21 +31,19 @@ public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFlu } public V2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2HorizontalPodAutoscalerStatus(), validationEnabled); } public V2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus instance) { + V2HorizontalPodAutoscalerStatusFluent fluent, V2HorizontalPodAutoscalerStatus instance) { this(fluent, instance, false); } public V2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerStatusFluent fluent, + V2HorizontalPodAutoscalerStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -63,14 +60,12 @@ public V2HorizontalPodAutoscalerStatusBuilder( this.validationEnabled = validationEnabled; } - public V2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus instance) { + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatus instance) { this(instance, false); } public V2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { + V2HorizontalPodAutoscalerStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); @@ -87,10 +82,10 @@ public V2HorizontalPodAutoscalerStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2HorizontalPodAutoscalerStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus build() { + public V2HorizontalPodAutoscalerStatus build() { V2HorizontalPodAutoscalerStatus buildable = new V2HorizontalPodAutoscalerStatus(); buildable.setConditions(fluent.getConditions()); buildable.setCurrentMetrics(fluent.getCurrentMetrics()); 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 cf033e5704..3e32806b19 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 @@ -25,22 +25,17 @@ public interface V2HorizontalPodAutoscalerStatusFluent< extends Fluent { public A addToConditions(Integer index, V2HorizontalPodAutoscalerCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item); + public A setToConditions(Integer index, V2HorizontalPodAutoscalerCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items); - public A addAllToConditions( - Collection items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items); - public A removeAllFromConditions( - java.util.Collection - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -51,181 +46,127 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition buildCondition( - java.lang.Integer index); + public V2HorizontalPodAutoscalerCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition - buildFirstCondition(); + public V2HorizontalPodAutoscalerCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition - buildLastCondition(); + public V2HorizontalPodAutoscalerCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder> - predicate); + public V2HorizontalPodAutoscalerCondition buildMatchingCondition( + Predicate predicate); public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder> - predicate); + Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( + V2HorizontalPodAutoscalerCondition item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V2HorizontalPodAutoscalerCondition item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editCondition(java.lang.Integer index); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition(Integer index); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editFirstCondition(); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editLastCondition(); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editLastCondition(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder> - predicate); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); - public A addToCurrentMetrics(java.lang.Integer index, V2MetricStatus item); + public A addToCurrentMetrics(Integer index, V2MetricStatus item); - public A setToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricStatus item); + public A setToCurrentMetrics(Integer index, V2MetricStatus item); public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items); - public A addAllToCurrentMetrics( - java.util.Collection items); + public A addAllToCurrentMetrics(Collection items); public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items); - public A removeAllFromCurrentMetrics( - java.util.Collection items); + public A removeAllFromCurrentMetrics(Collection items); - public A removeMatchingFromCurrentMetrics( - java.util.function.Predicate predicate); + public A removeMatchingFromCurrentMetrics(Predicate predicate); /** * This method has been deprecated, please use method buildCurrentMetrics instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getCurrentMetrics(); + @Deprecated + public List getCurrentMetrics(); - public java.util.List buildCurrentMetrics(); + public List buildCurrentMetrics(); - public io.kubernetes.client.openapi.models.V2MetricStatus buildCurrentMetric( - java.lang.Integer index); + public V2MetricStatus buildCurrentMetric(Integer index); - public io.kubernetes.client.openapi.models.V2MetricStatus buildFirstCurrentMetric(); + public V2MetricStatus buildFirstCurrentMetric(); - public io.kubernetes.client.openapi.models.V2MetricStatus buildLastCurrentMetric(); + public V2MetricStatus buildLastCurrentMetric(); - public io.kubernetes.client.openapi.models.V2MetricStatus buildMatchingCurrentMetric( - java.util.function.Predicate - predicate); + public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate); - public java.lang.Boolean hasMatchingCurrentMetric( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCurrentMetric(Predicate predicate); - public A withCurrentMetrics( - java.util.List currentMetrics); + public A withCurrentMetrics(List currentMetrics); public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... currentMetrics); - public java.lang.Boolean hasCurrentMetrics(); + public Boolean hasCurrentMetrics(); public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - addNewCurrentMetricLike(io.kubernetes.client.openapi.models.V2MetricStatus item); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( + V2MetricStatus item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - setNewCurrentMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricStatus item); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( + Integer index, V2MetricStatus item); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editCurrentMetric(java.lang.Integer index); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( + Integer index); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editFirstCurrentMetric(); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editLastCurrentMetric(); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editLastCurrentMetric(); - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editMatchingCurrentMetric( - java.util.function.Predicate - predicate); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric( + Predicate predicate); - public java.lang.Integer getCurrentReplicas(); + public Integer getCurrentReplicas(); - public A withCurrentReplicas(java.lang.Integer currentReplicas); + public A withCurrentReplicas(Integer currentReplicas); - public java.lang.Boolean hasCurrentReplicas(); + public Boolean hasCurrentReplicas(); - public java.lang.Integer getDesiredReplicas(); + public Integer getDesiredReplicas(); - public A withDesiredReplicas(java.lang.Integer desiredReplicas); + public A withDesiredReplicas(Integer desiredReplicas); - public java.lang.Boolean hasDesiredReplicas(); + public Boolean hasDesiredReplicas(); public OffsetDateTime getLastScaleTime(); - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime); + public A withLastScaleTime(OffsetDateTime lastScaleTime); - public java.lang.Boolean hasLastScaleTime(); + public Boolean hasLastScaleTime(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); public interface ConditionsNested extends Nested, @@ -237,7 +178,7 @@ public interface ConditionsNested } public interface CurrentMetricsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2MetricStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java index d58dba9cc7..dd5e6d9694 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluentImpl.java @@ -28,8 +28,7 @@ public class V2HorizontalPodAutoscalerStatusFluentImpl< extends BaseFluent implements V2HorizontalPodAutoscalerStatusFluent { public V2HorizontalPodAutoscalerStatusFluentImpl() {} - public V2HorizontalPodAutoscalerStatusFluentImpl( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatus instance) { + public V2HorizontalPodAutoscalerStatusFluentImpl(V2HorizontalPodAutoscalerStatus instance) { this.withConditions(instance.getConditions()); this.withCurrentMetrics(instance.getCurrentMetrics()); @@ -44,20 +43,18 @@ public V2HorizontalPodAutoscalerStatusFluentImpl( } private ArrayList conditions; - private java.util.ArrayList currentMetrics; + private ArrayList currentMetrics; private Integer currentReplicas; - private java.lang.Integer desiredReplicas; + private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - public A addToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item) { + public A addToConditions(Integer index, V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(item); + V2HorizontalPodAutoscalerConditionBuilder builder = + new V2HorizontalPodAutoscalerConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -65,16 +62,12 @@ public A addToConditions( return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item) { + public A setToConditions(Integer index, V2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(item); + V2HorizontalPodAutoscalerConditionBuilder builder = + new V2HorizontalPodAutoscalerConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -91,29 +84,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(item); + 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) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder>(); + this.conditions = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(item); + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = + new V2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -122,9 +110,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(item); + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = + new V2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -133,12 +121,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(item); + public A removeAllFromConditions(Collection items) { + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = + new V2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -148,15 +134,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder = - each.next(); + V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -171,38 +154,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition buildCondition( - java.lang.Integer index) { + public V2HorizontalPodAutoscalerCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition - buildFirstCondition() { + public V2HorizontalPodAutoscalerCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition - buildLastCondition() { + public V2HorizontalPodAutoscalerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder item : - conditions) { + public V2HorizontalPodAutoscalerCondition buildMatchingCondition( + Predicate predicate) { + for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -211,11 +185,8 @@ public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition bu } public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder item : - conditions) { + Predicate predicate) { + for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -223,16 +194,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item : - conditions) { + this.conditions = new ArrayList(); + for (V2HorizontalPodAutoscalerCondition item : conditions) { this.addToConditions(item); } } else { @@ -247,15 +215,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item : - conditions) { + for (V2HorizontalPodAutoscalerCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -263,52 +230,36 @@ public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition return new V2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item) { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( + V2HorizontalPodAutoscalerCondition item) { return new V2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V2HorizontalPodAutoscalerCondition item) { + return new V2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editCondition(java.lang.Integer index) { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition(Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editFirstCondition() { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editLastCondition() { + public V2HorizontalPodAutoscalerStatusFluent.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 io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent.ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder> - predicate) { + public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -320,13 +271,11 @@ public V2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition return setNewConditionLike(index, buildCondition(index)); } - public A addToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricStatus item) { + public A addToCurrentMetrics(Integer index, V2MetricStatus item) { if (this.currentMetrics == null) { - this.currentMetrics = new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(item); + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); _visitables .get("currentMetrics") .add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder); @@ -334,14 +283,11 @@ public A addToCurrentMetrics( return (A) this; } - public A setToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricStatus item) { + public A setToCurrentMetrics(Integer index, V2MetricStatus item) { if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(item); + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); if (index < 0 || index >= _visitables.get("currentMetrics").size()) { _visitables.get("currentMetrics").add(builder); } else { @@ -357,27 +303,22 @@ public A setToCurrentMetrics( public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(item); + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); _visitables.get("currentMetrics").add(builder); this.currentMetrics.add(builder); } return (A) this; } - public A addAllToCurrentMetrics( - java.util.Collection items) { + public A addAllToCurrentMetrics(Collection items) { if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(item); + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); _visitables.get("currentMetrics").add(builder); this.currentMetrics.add(builder); } @@ -385,9 +326,8 @@ public A addAllToCurrentMetrics( } public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - for (io.kubernetes.client.openapi.models.V2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(item); + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); _visitables.get("currentMetrics").remove(builder); if (this.currentMetrics != null) { this.currentMetrics.remove(builder); @@ -396,11 +336,9 @@ public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricSt return (A) this; } - public A removeAllFromCurrentMetrics( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(item); + public A removeAllFromCurrentMetrics(Collection items) { + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); _visitables.get("currentMetrics").remove(builder); if (this.currentMetrics != null) { this.currentMetrics.remove(builder); @@ -409,15 +347,12 @@ public A removeAllFromCurrentMetrics( return (A) this; } - public A removeMatchingFromCurrentMetrics( - java.util.function.Predicate - predicate) { + public A removeMatchingFromCurrentMetrics(Predicate predicate) { if (currentMetrics == null) return (A) this; - final Iterator each = - currentMetrics.iterator(); + final Iterator each = currentMetrics.iterator(); final List visitables = _visitables.get("currentMetrics"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder = each.next(); + V2MetricStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -431,32 +366,29 @@ public A removeMatchingFromCurrentMetrics( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List getCurrentMetrics() { + @Deprecated + public List getCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public java.util.List buildCurrentMetrics() { + public List buildCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public io.kubernetes.client.openapi.models.V2MetricStatus buildCurrentMetric( - java.lang.Integer index) { + public V2MetricStatus buildCurrentMetric(Integer index) { return this.currentMetrics.get(index).build(); } - public io.kubernetes.client.openapi.models.V2MetricStatus buildFirstCurrentMetric() { + public V2MetricStatus buildFirstCurrentMetric() { return this.currentMetrics.get(0).build(); } - public io.kubernetes.client.openapi.models.V2MetricStatus buildLastCurrentMetric() { + public V2MetricStatus buildLastCurrentMetric() { return this.currentMetrics.get(currentMetrics.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2MetricStatus buildMatchingCurrentMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2MetricStatusBuilder item : currentMetrics) { + public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { + for (V2MetricStatusBuilder item : currentMetrics) { if (predicate.test(item)) { return item.build(); } @@ -464,10 +396,8 @@ public io.kubernetes.client.openapi.models.V2MetricStatus buildMatchingCurrentMe return null; } - public java.lang.Boolean hasMatchingCurrentMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2MetricStatusBuilder item : currentMetrics) { + public Boolean hasMatchingCurrentMetric(Predicate predicate) { + for (V2MetricStatusBuilder item : currentMetrics) { if (predicate.test(item)) { return true; } @@ -475,14 +405,13 @@ public java.lang.Boolean hasMatchingCurrentMetric( return false; } - public A withCurrentMetrics( - java.util.List currentMetrics) { + public A withCurrentMetrics(List currentMetrics) { if (this.currentMetrics != null) { _visitables.get("currentMetrics").removeAll(this.currentMetrics); } if (currentMetrics != null) { - this.currentMetrics = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2MetricStatus item : currentMetrics) { + this.currentMetrics = new ArrayList(); + for (V2MetricStatus item : currentMetrics) { this.addToCurrentMetrics(item); } } else { @@ -497,14 +426,14 @@ public A withCurrentMetrics( this.currentMetrics.clear(); } if (currentMetrics != null) { - for (io.kubernetes.client.openapi.models.V2MetricStatus item : currentMetrics) { + for (V2MetricStatus item : currentMetrics) { this.addToCurrentMetrics(item); } } return (A) this; } - public java.lang.Boolean hasCurrentMetrics() { + public Boolean hasCurrentMetrics() { return currentMetrics != null && !currentMetrics.isEmpty(); } @@ -512,56 +441,37 @@ public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurre return new V2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - addNewCurrentMetricLike(io.kubernetes.client.openapi.models.V2MetricStatus item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluentImpl - .CurrentMetricsNestedImpl(-1, item); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( + V2MetricStatus item) { + return new V2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - setNewCurrentMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricStatus item) { - return new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluentImpl - .CurrentMetricsNestedImpl(index, item); + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( + Integer index, V2MetricStatus item) { + return new V2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editCurrentMetric(java.lang.Integer index) { + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( + Integer index) { if (currentMetrics.size() <= index) throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editFirstCurrentMetric() { + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric() { if (currentMetrics.size() == 0) throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); return setNewCurrentMetricLike(0, buildCurrentMetric(0)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editLastCurrentMetric() { + public V2HorizontalPodAutoscalerStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editMatchingCurrentMetric( - java.util.function.Predicate - predicate) { + public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editMatchingCurrentMetric( + Predicate predicate) { int index = -1; for (int i = 0; i < currentMetrics.size(); i++) { if (predicate.test(currentMetrics.get(i))) { @@ -574,55 +484,55 @@ public V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurre return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - public java.lang.Integer getCurrentReplicas() { + public Integer getCurrentReplicas() { return this.currentReplicas; } - public A withCurrentReplicas(java.lang.Integer currentReplicas) { + public A withCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; return (A) this; } - public java.lang.Boolean hasCurrentReplicas() { + public Boolean hasCurrentReplicas() { return this.currentReplicas != null; } - public java.lang.Integer getDesiredReplicas() { + public Integer getDesiredReplicas() { return this.desiredReplicas; } - public A withDesiredReplicas(java.lang.Integer desiredReplicas) { + public A withDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; return (A) this; } - public java.lang.Boolean hasDesiredReplicas() { + public Boolean hasDesiredReplicas() { return this.desiredReplicas != null; } - public java.time.OffsetDateTime getLastScaleTime() { + public OffsetDateTime getLastScaleTime() { return this.lastScaleTime; } - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime) { + public A withLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return (A) this; } - public java.lang.Boolean hasLastScaleTime() { + public Boolean hasLastScaleTime() { return this.lastScaleTime != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } @@ -695,23 +605,19 @@ public String toString() { class ConditionsNestedImpl extends V2HorizontalPodAutoscalerConditionFluentImpl< V2HorizontalPodAutoscalerStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V2HorizontalPodAutoscalerCondition item) { + implements V2HorizontalPodAutoscalerStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V2HorizontalPodAutoscalerCondition item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder(this); + this.builder = new V2HorizontalPodAutoscalerConditionBuilder(this); } - io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerConditionBuilder builder; - java.lang.Integer index; + V2HorizontalPodAutoscalerConditionBuilder builder; + Integer index; public N and() { return (N) @@ -726,23 +632,19 @@ public N endCondition() { class CurrentMetricsNestedImpl extends V2MetricStatusFluentImpl< V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> - implements io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - N>, - io.kubernetes.client.fluent.Nested { - CurrentMetricsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2MetricStatus item) { + implements V2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested, Nested { + CurrentMetricsNestedImpl(Integer index, V2MetricStatus item) { this.index = index; this.builder = new V2MetricStatusBuilder(this, item); } CurrentMetricsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2MetricStatusBuilder(this); + this.builder = new V2MetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricStatusBuilder builder; - java.lang.Integer index; + V2MetricStatusBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java index c419659b3d..16a7faf148 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java @@ -16,8 +16,7 @@ public class V2MetricIdentifierBuilder extends V2MetricIdentifierFluentImpl - implements VisitableBuilder< - V2MetricIdentifier, io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder> { + implements VisitableBuilder { public V2MetricIdentifierBuilder() { this(false); } @@ -30,22 +29,17 @@ public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent) { this(fluent, false); } - public V2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2MetricIdentifierFluent fluent, - java.lang.Boolean validationEnabled) { + public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent, Boolean validationEnabled) { this(fluent, new V2MetricIdentifier(), validationEnabled); } public V2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2MetricIdentifierFluent fluent, - io.kubernetes.client.openapi.models.V2MetricIdentifier instance) { + V2MetricIdentifierFluent fluent, V2MetricIdentifier instance) { this(fluent, instance, false); } public V2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2MetricIdentifierFluent fluent, - io.kubernetes.client.openapi.models.V2MetricIdentifier instance, - java.lang.Boolean validationEnabled) { + V2MetricIdentifierFluent fluent, V2MetricIdentifier instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -54,14 +48,11 @@ public V2MetricIdentifierBuilder( this.validationEnabled = validationEnabled; } - public V2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2MetricIdentifier instance) { + public V2MetricIdentifierBuilder(V2MetricIdentifier instance) { this(instance, false); } - public V2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2MetricIdentifier instance, - java.lang.Boolean validationEnabled) { + public V2MetricIdentifierBuilder(V2MetricIdentifier instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -70,10 +61,10 @@ public V2MetricIdentifierBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2MetricIdentifierFluent fluent; - java.lang.Boolean validationEnabled; + V2MetricIdentifierFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2MetricIdentifier build() { + public V2MetricIdentifier build() { V2MetricIdentifier buildable = new V2MetricIdentifier(); buildable.setName(fluent.getName()); buildable.setSelector(fluent.getSelector()); 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 48a71dbc6f..a86993dc69 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 @@ -19,7 +19,7 @@ public interface V2MetricIdentifierFluent> extends Fluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); @@ -31,25 +31,21 @@ public interface V2MetricIdentifierFluent> @Deprecated public V1LabelSelector getSelector(); - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); + public V1LabelSelector buildSelector(); - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); + public A withSelector(V1LabelSelector selector); - public java.lang.Boolean hasSelector(); + public Boolean hasSelector(); public V2MetricIdentifierFluent.SelectorNested withNewSelector(); - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - editSelector(); + public V2MetricIdentifierFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - editOrNewSelector(); + public V2MetricIdentifierFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item); public interface SelectorNested extends Nested, V1LabelSelectorFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java index 841574f890..815ccf0ed7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluentImpl.java @@ -21,8 +21,7 @@ public class V2MetricIdentifierFluentImpl> extends BaseFluent implements V2MetricIdentifierFluent { public V2MetricIdentifierFluentImpl() {} - public V2MetricIdentifierFluentImpl( - io.kubernetes.client.openapi.models.V2MetricIdentifier instance) { + public V2MetricIdentifierFluentImpl(V2MetricIdentifier instance) { this.withName(instance.getName()); this.withSelector(instance.getSelector()); @@ -31,11 +30,11 @@ public V2MetricIdentifierFluentImpl( private String name; private V1LabelSelectorBuilder selector; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -50,24 +49,27 @@ public Boolean hasName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -75,26 +77,20 @@ public V2MetricIdentifierFluent.SelectorNested withNewSelector() { return new V2MetricIdentifierFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V2MetricIdentifierFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - editSelector() { + public V2MetricIdentifierFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - editOrNewSelector() { + public V2MetricIdentifierFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike(V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } @@ -111,7 +107,7 @@ public int hashCode() { return java.util.Objects.hash(name, selector, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { @@ -128,17 +124,16 @@ public java.lang.String toString() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricIdentifierFluent.SelectorNested, - Nested { + implements V2MetricIdentifierFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V2MetricIdentifierFluentImpl.this.withSelector(builder.build()); 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 90e6c0c47d..b3c9116749 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V2MetricSpecBuilder extends V2MetricSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2MetricSpec, - io.kubernetes.client.openapi.models.V2MetricSpecBuilder> { + implements VisitableBuilder { public V2MetricSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V2MetricSpecBuilder(V2MetricSpecFluent fluent) { this(fluent, false); } - public V2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2MetricSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V2MetricSpecBuilder(V2MetricSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V2MetricSpec(), validationEnabled); } - public V2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2MetricSpecFluent fluent, - io.kubernetes.client.openapi.models.V2MetricSpec instance) { + public V2MetricSpecBuilder(V2MetricSpecFluent fluent, V2MetricSpec instance) { this(fluent, instance, false); } public V2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2MetricSpecFluent fluent, - io.kubernetes.client.openapi.models.V2MetricSpec instance, - java.lang.Boolean validationEnabled) { + V2MetricSpecFluent fluent, V2MetricSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); @@ -62,13 +54,11 @@ public V2MetricSpecBuilder( this.validationEnabled = validationEnabled; } - public V2MetricSpecBuilder(io.kubernetes.client.openapi.models.V2MetricSpec instance) { + public V2MetricSpecBuilder(V2MetricSpec instance) { this(instance, false); } - public V2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2MetricSpec instance, - java.lang.Boolean validationEnabled) { + public V2MetricSpecBuilder(V2MetricSpec instance, Boolean validationEnabled) { this.fluent = this; this.withContainerResource(instance.getContainerResource()); @@ -85,10 +75,10 @@ public V2MetricSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2MetricSpecFluent fluent; - java.lang.Boolean validationEnabled; + V2MetricSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2MetricSpec build() { + public V2MetricSpec build() { V2MetricSpec buildable = new V2MetricSpec(); buildable.setContainerResource(fluent.getContainerResource()); buildable.setExternal(fluent.getExternal()); 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 d47b85f5f6..0a438382b0 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 @@ -26,141 +26,125 @@ public interface V2MetricSpecFluent> extends Flu @Deprecated public V2ContainerResourceMetricSource getContainerResource(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource - buildContainerResource(); + public V2ContainerResourceMetricSource buildContainerResource(); - public A withContainerResource( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource containerResource); + public A withContainerResource(V2ContainerResourceMetricSource containerResource); public Boolean hasContainerResource(); public V2MetricSpecFluent.ContainerResourceNested withNewContainerResource(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource item); + public V2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( + V2ContainerResourceMetricSource item); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - editContainerResource(); + public V2MetricSpecFluent.ContainerResourceNested editContainerResource(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResource(); + public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource item); + public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2ContainerResourceMetricSource item); /** * This method has been deprecated, please use method buildExternal instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ExternalMetricSource getExternal(); - public io.kubernetes.client.openapi.models.V2ExternalMetricSource buildExternal(); + public V2ExternalMetricSource buildExternal(); - public A withExternal(io.kubernetes.client.openapi.models.V2ExternalMetricSource external); + public A withExternal(V2ExternalMetricSource external); - public java.lang.Boolean hasExternal(); + public Boolean hasExternal(); public V2MetricSpecFluent.ExternalNested withNewExternal(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricSource item); + public V2MetricSpecFluent.ExternalNested withNewExternalLike(V2ExternalMetricSource item); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested editExternal(); + public V2MetricSpecFluent.ExternalNested editExternal(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested - editOrNewExternal(); + public V2MetricSpecFluent.ExternalNested editOrNewExternal(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricSource item); + public V2MetricSpecFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricSource item); /** * This method has been deprecated, please use method buildObject instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ObjectMetricSource getObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSource buildObject(); + public V2ObjectMetricSource buildObject(); - public A withObject(io.kubernetes.client.openapi.models.V2ObjectMetricSource _object); + public A withObject(V2ObjectMetricSource _object); - public java.lang.Boolean hasObject(); + public Boolean hasObject(); public V2MetricSpecFluent.ObjectNested withNewObject(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested withNewObjectLike( - io.kubernetes.client.openapi.models.V2ObjectMetricSource item); + public V2MetricSpecFluent.ObjectNested withNewObjectLike(V2ObjectMetricSource item); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested editObject(); + public V2MetricSpecFluent.ObjectNested editObject(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested editOrNewObject(); + public V2MetricSpecFluent.ObjectNested editOrNewObject(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested editOrNewObjectLike( - io.kubernetes.client.openapi.models.V2ObjectMetricSource item); + public V2MetricSpecFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricSource item); /** * This method has been deprecated, please use method buildPods instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2PodsMetricSource getPods(); - public io.kubernetes.client.openapi.models.V2PodsMetricSource buildPods(); + public V2PodsMetricSource buildPods(); - public A withPods(io.kubernetes.client.openapi.models.V2PodsMetricSource pods); + public A withPods(V2PodsMetricSource pods); - public java.lang.Boolean hasPods(); + public Boolean hasPods(); public V2MetricSpecFluent.PodsNested withNewPods(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricSource item); + public V2MetricSpecFluent.PodsNested withNewPodsLike(V2PodsMetricSource item); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested editPods(); + public V2MetricSpecFluent.PodsNested editPods(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested editOrNewPods(); + public V2MetricSpecFluent.PodsNested editOrNewPods(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested editOrNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricSource item); + public V2MetricSpecFluent.PodsNested editOrNewPodsLike(V2PodsMetricSource item); /** * This method has been deprecated, please use method buildResource instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ResourceMetricSource getResource(); - public io.kubernetes.client.openapi.models.V2ResourceMetricSource buildResource(); + public V2ResourceMetricSource buildResource(); - public A withResource(io.kubernetes.client.openapi.models.V2ResourceMetricSource resource); + public A withResource(V2ResourceMetricSource resource); - public java.lang.Boolean hasResource(); + public Boolean hasResource(); public V2MetricSpecFluent.ResourceNested withNewResource(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricSource item); + public V2MetricSpecFluent.ResourceNested withNewResourceLike(V2ResourceMetricSource item); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested editResource(); + public V2MetricSpecFluent.ResourceNested editResource(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested - editOrNewResource(); + public V2MetricSpecFluent.ResourceNested editOrNewResource(); - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricSource item); + public V2MetricSpecFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricSource item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface ContainerResourceNested extends Nested, @@ -171,32 +155,28 @@ public interface ContainerResourceNested } public interface ExternalNested - extends io.kubernetes.client.fluent.Nested, - V2ExternalMetricSourceFluent> { + extends Nested, V2ExternalMetricSourceFluent> { public N and(); public N endExternal(); } public interface ObjectNested - extends io.kubernetes.client.fluent.Nested, - V2ObjectMetricSourceFluent> { + extends Nested, V2ObjectMetricSourceFluent> { public N and(); public N endObject(); } public interface PodsNested - extends io.kubernetes.client.fluent.Nested, - V2PodsMetricSourceFluent> { + extends Nested, V2PodsMetricSourceFluent> { public N and(); public N endPods(); } public interface ResourceNested - extends io.kubernetes.client.fluent.Nested, - V2ResourceMetricSourceFluent> { + extends Nested, V2ResourceMetricSourceFluent> { public N and(); public N endResource(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java index 61ffe1f10c..87a6355b78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluentImpl.java @@ -21,7 +21,7 @@ public class V2MetricSpecFluentImpl> extends Bas implements V2MetricSpecFluent { public V2MetricSpecFluentImpl() {} - public V2MetricSpecFluentImpl(io.kubernetes.client.openapi.models.V2MetricSpec instance) { + public V2MetricSpecFluentImpl(V2MetricSpec instance) { this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -52,19 +52,18 @@ public V2ContainerResourceMetricSource getContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource - buildContainerResource() { + public V2ContainerResourceMetricSource buildContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public A withContainerResource( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource containerResource) { + public A withContainerResource(V2ContainerResourceMetricSource containerResource) { _visitables.get("containerResource").remove(this.containerResource); if (containerResource != null) { - this.containerResource = - new io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceBuilder( - containerResource); + this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource); + } else { + this.containerResource = null; + _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } @@ -77,29 +76,24 @@ public V2MetricSpecFluent.ContainerResourceNested withNewContainerResource() return new V2MetricSpecFluentImpl.ContainerResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource item) { + public V2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( + V2ContainerResourceMetricSource item) { return new V2MetricSpecFluentImpl.ContainerResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - editContainerResource() { + public V2MetricSpecFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResource() { + public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource() { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() - : new io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceBuilder() - .build()); + : new V2ContainerResourceMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource item) { + public V2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2ContainerResourceMetricSource item) { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() : item); } @@ -109,26 +103,28 @@ public V2MetricSpecFluent.ContainerResourceNested withNewContainerResource() * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ExternalMetricSource getExternal() { return this.external != null ? this.external.build() : null; } - public io.kubernetes.client.openapi.models.V2ExternalMetricSource buildExternal() { + public V2ExternalMetricSource buildExternal() { return this.external != null ? this.external.build() : null; } - public A withExternal(io.kubernetes.client.openapi.models.V2ExternalMetricSource external) { + public A withExternal(V2ExternalMetricSource external) { _visitables.get("external").remove(this.external); if (external != null) { - this.external = - new io.kubernetes.client.openapi.models.V2ExternalMetricSourceBuilder(external); + this.external = new V2ExternalMetricSourceBuilder(external); _visitables.get("external").add(this.external); + } else { + this.external = null; + _visitables.get("external").remove(this.external); } return (A) this; } - public java.lang.Boolean hasExternal() { + public Boolean hasExternal() { return this.external != null; } @@ -136,25 +132,20 @@ public V2MetricSpecFluent.ExternalNested withNewExternal() { return new V2MetricSpecFluentImpl.ExternalNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricSource item) { - return new io.kubernetes.client.openapi.models.V2MetricSpecFluentImpl.ExternalNestedImpl(item); + public V2MetricSpecFluent.ExternalNested withNewExternalLike(V2ExternalMetricSource item) { + return new V2MetricSpecFluentImpl.ExternalNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested editExternal() { + public V2MetricSpecFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested - editOrNewExternal() { + public V2MetricSpecFluent.ExternalNested editOrNewExternal() { return withNewExternalLike( - getExternal() != null - ? getExternal() - : new io.kubernetes.client.openapi.models.V2ExternalMetricSourceBuilder().build()); + getExternal() != null ? getExternal() : new V2ExternalMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricSource item) { + public V2MetricSpecFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricSource item) { return withNewExternalLike(getExternal() != null ? getExternal() : item); } @@ -163,25 +154,28 @@ public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2ObjectMetricSource getObject() { + @Deprecated + public V2ObjectMetricSource getObject() { return this._object != null ? this._object.build() : null; } - public io.kubernetes.client.openapi.models.V2ObjectMetricSource buildObject() { + public V2ObjectMetricSource buildObject() { return this._object != null ? this._object.build() : null; } - public A withObject(io.kubernetes.client.openapi.models.V2ObjectMetricSource _object) { + public A withObject(V2ObjectMetricSource _object) { _visitables.get("_object").remove(this._object); if (_object != null) { this._object = new V2ObjectMetricSourceBuilder(_object); _visitables.get("_object").add(this._object); + } else { + this._object = null; + _visitables.get("_object").remove(this._object); } return (A) this; } - public java.lang.Boolean hasObject() { + public Boolean hasObject() { return this._object != null; } @@ -189,24 +183,20 @@ public V2MetricSpecFluent.ObjectNested withNewObject() { return new V2MetricSpecFluentImpl.ObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested withNewObjectLike( - io.kubernetes.client.openapi.models.V2ObjectMetricSource item) { - return new io.kubernetes.client.openapi.models.V2MetricSpecFluentImpl.ObjectNestedImpl(item); + public V2MetricSpecFluent.ObjectNested withNewObjectLike(V2ObjectMetricSource item) { + return new V2MetricSpecFluentImpl.ObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested editObject() { + public V2MetricSpecFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested editOrNewObject() { + public V2MetricSpecFluent.ObjectNested editOrNewObject() { return withNewObjectLike( - getObject() != null - ? getObject() - : new io.kubernetes.client.openapi.models.V2ObjectMetricSourceBuilder().build()); + getObject() != null ? getObject() : new V2ObjectMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested editOrNewObjectLike( - io.kubernetes.client.openapi.models.V2ObjectMetricSource item) { + public V2MetricSpecFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricSource item) { return withNewObjectLike(getObject() != null ? getObject() : item); } @@ -215,25 +205,28 @@ public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested ed * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2PodsMetricSource getPods() { return this.pods != null ? this.pods.build() : null; } - public io.kubernetes.client.openapi.models.V2PodsMetricSource buildPods() { + public V2PodsMetricSource buildPods() { return this.pods != null ? this.pods.build() : null; } - public A withPods(io.kubernetes.client.openapi.models.V2PodsMetricSource pods) { + public A withPods(V2PodsMetricSource pods) { _visitables.get("pods").remove(this.pods); if (pods != null) { - this.pods = new io.kubernetes.client.openapi.models.V2PodsMetricSourceBuilder(pods); + this.pods = new V2PodsMetricSourceBuilder(pods); _visitables.get("pods").add(this.pods); + } else { + this.pods = null; + _visitables.get("pods").remove(this.pods); } return (A) this; } - public java.lang.Boolean hasPods() { + public Boolean hasPods() { return this.pods != null; } @@ -241,24 +234,19 @@ public V2MetricSpecFluent.PodsNested withNewPods() { return new V2MetricSpecFluentImpl.PodsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricSource item) { - return new io.kubernetes.client.openapi.models.V2MetricSpecFluentImpl.PodsNestedImpl(item); + public V2MetricSpecFluent.PodsNested withNewPodsLike(V2PodsMetricSource item) { + return new V2MetricSpecFluentImpl.PodsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested editPods() { + public V2MetricSpecFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested editOrNewPods() { - return withNewPodsLike( - getPods() != null - ? getPods() - : new io.kubernetes.client.openapi.models.V2PodsMetricSourceBuilder().build()); + public V2MetricSpecFluent.PodsNested editOrNewPods() { + return withNewPodsLike(getPods() != null ? getPods() : new V2PodsMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested editOrNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricSource item) { + public V2MetricSpecFluent.PodsNested editOrNewPodsLike(V2PodsMetricSource item) { return withNewPodsLike(getPods() != null ? getPods() : item); } @@ -267,25 +255,28 @@ public io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested edit * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2ResourceMetricSource getResource() { + @Deprecated + public V2ResourceMetricSource getResource() { return this.resource != null ? this.resource.build() : null; } - public io.kubernetes.client.openapi.models.V2ResourceMetricSource buildResource() { + public V2ResourceMetricSource buildResource() { return this.resource != null ? this.resource.build() : null; } - public A withResource(io.kubernetes.client.openapi.models.V2ResourceMetricSource resource) { + public A withResource(V2ResourceMetricSource resource) { _visitables.get("resource").remove(this.resource); if (resource != null) { this.resource = new V2ResourceMetricSourceBuilder(resource); _visitables.get("resource").add(this.resource); + } else { + this.resource = null; + _visitables.get("resource").remove(this.resource); } return (A) this; } - public java.lang.Boolean hasResource() { + public Boolean hasResource() { return this.resource != null; } @@ -293,38 +284,33 @@ public V2MetricSpecFluent.ResourceNested withNewResource() { return new V2MetricSpecFluentImpl.ResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricSource item) { - return new io.kubernetes.client.openapi.models.V2MetricSpecFluentImpl.ResourceNestedImpl(item); + public V2MetricSpecFluent.ResourceNested withNewResourceLike(V2ResourceMetricSource item) { + return new V2MetricSpecFluentImpl.ResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested editResource() { + public V2MetricSpecFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested - editOrNewResource() { + public V2MetricSpecFluent.ResourceNested editOrNewResource() { return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V2ResourceMetricSourceBuilder().build()); + getResource() != null ? getResource() : new V2ResourceMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricSource item) { + public V2MetricSpecFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricSource item) { return withNewResourceLike(getResource() != null ? getResource() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -348,7 +334,7 @@ public int hashCode() { containerResource, external, _object, pods, resource, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerResource != null) { @@ -382,18 +368,16 @@ public java.lang.String toString() { class ContainerResourceNestedImpl extends V2ContainerResourceMetricSourceFluentImpl< V2MetricSpecFluent.ContainerResourceNested> - implements io.kubernetes.client.openapi.models.V2MetricSpecFluent.ContainerResourceNested, - Nested { + implements V2MetricSpecFluent.ContainerResourceNested, Nested { ContainerResourceNestedImpl(V2ContainerResourceMetricSource item) { this.builder = new V2ContainerResourceMetricSourceBuilder(this, item); } ContainerResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceBuilder(this); + this.builder = new V2ContainerResourceMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2ContainerResourceMetricSourceBuilder builder; + V2ContainerResourceMetricSourceBuilder builder; public N and() { return (N) V2MetricSpecFluentImpl.this.withContainerResource(builder.build()); @@ -406,17 +390,16 @@ public N endContainerResource() { class ExternalNestedImpl extends V2ExternalMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricSpecFluent.ExternalNested, - io.kubernetes.client.fluent.Nested { - ExternalNestedImpl(io.kubernetes.client.openapi.models.V2ExternalMetricSource item) { + implements V2MetricSpecFluent.ExternalNested, Nested { + ExternalNestedImpl(V2ExternalMetricSource item) { this.builder = new V2ExternalMetricSourceBuilder(this, item); } ExternalNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2ExternalMetricSourceBuilder(this); + this.builder = new V2ExternalMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2ExternalMetricSourceBuilder builder; + V2ExternalMetricSourceBuilder builder; public N and() { return (N) V2MetricSpecFluentImpl.this.withExternal(builder.build()); @@ -429,17 +412,16 @@ public N endExternal() { class ObjectNestedImpl extends V2ObjectMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricSpecFluent.ObjectNested, - io.kubernetes.client.fluent.Nested { + implements V2MetricSpecFluent.ObjectNested, Nested { ObjectNestedImpl(V2ObjectMetricSource item) { this.builder = new V2ObjectMetricSourceBuilder(this, item); } ObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2ObjectMetricSourceBuilder(this); + this.builder = new V2ObjectMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2ObjectMetricSourceBuilder builder; + V2ObjectMetricSourceBuilder builder; public N and() { return (N) V2MetricSpecFluentImpl.this.withObject(builder.build()); @@ -451,17 +433,16 @@ public N endObject() { } class PodsNestedImpl extends V2PodsMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricSpecFluent.PodsNested, - io.kubernetes.client.fluent.Nested { + implements V2MetricSpecFluent.PodsNested, Nested { PodsNestedImpl(V2PodsMetricSource item) { this.builder = new V2PodsMetricSourceBuilder(this, item); } PodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2PodsMetricSourceBuilder(this); + this.builder = new V2PodsMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2PodsMetricSourceBuilder builder; + V2PodsMetricSourceBuilder builder; public N and() { return (N) V2MetricSpecFluentImpl.this.withPods(builder.build()); @@ -474,17 +455,16 @@ public N endPods() { class ResourceNestedImpl extends V2ResourceMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricSpecFluent.ResourceNested, - io.kubernetes.client.fluent.Nested { - ResourceNestedImpl(io.kubernetes.client.openapi.models.V2ResourceMetricSource item) { + implements V2MetricSpecFluent.ResourceNested, Nested { + ResourceNestedImpl(V2ResourceMetricSource item) { this.builder = new V2ResourceMetricSourceBuilder(this, item); } ResourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2ResourceMetricSourceBuilder(this); + this.builder = new V2ResourceMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2ResourceMetricSourceBuilder builder; + V2ResourceMetricSourceBuilder builder; public N and() { return (N) V2MetricSpecFluentImpl.this.withResource(builder.build()); 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 7f53c4235d..720464eaa0 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V2MetricStatusBuilder extends V2MetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2MetricStatus, - io.kubernetes.client.openapi.models.V2MetricStatusBuilder> { + implements VisitableBuilder { public V2MetricStatusBuilder() { this(false); } @@ -30,22 +28,16 @@ public V2MetricStatusBuilder(V2MetricStatusFluent fluent) { this(fluent, false); } - public V2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V2MetricStatusBuilder(V2MetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2MetricStatus(), validationEnabled); } - public V2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2MetricStatus instance) { + public V2MetricStatusBuilder(V2MetricStatusFluent fluent, V2MetricStatus instance) { this(fluent, instance, false); } public V2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2MetricStatus instance, - java.lang.Boolean validationEnabled) { + V2MetricStatusFluent fluent, V2MetricStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); @@ -62,13 +54,11 @@ public V2MetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2MetricStatusBuilder(io.kubernetes.client.openapi.models.V2MetricStatus instance) { + public V2MetricStatusBuilder(V2MetricStatus instance) { this(instance, false); } - public V2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricStatus instance, - java.lang.Boolean validationEnabled) { + public V2MetricStatusBuilder(V2MetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withContainerResource(instance.getContainerResource()); @@ -85,10 +75,10 @@ public V2MetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2MetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2MetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2MetricStatus build() { + public V2MetricStatus build() { V2MetricStatus buildable = new V2MetricStatus(); buildable.setContainerResource(fluent.getContainerResource()); buildable.setExternal(fluent.getExternal()); 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 3ff7481081..e2a328ee2c 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 @@ -26,141 +26,125 @@ public interface V2MetricStatusFluent> extends @Deprecated public V2ContainerResourceMetricStatus getContainerResource(); - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus - buildContainerResource(); + public V2ContainerResourceMetricStatus buildContainerResource(); - public A withContainerResource( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus containerResource); + public A withContainerResource(V2ContainerResourceMetricStatus containerResource); public Boolean hasContainerResource(); public V2MetricStatusFluent.ContainerResourceNested withNewContainerResource(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus item); + public V2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( + V2ContainerResourceMetricStatus item); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - editContainerResource(); + public V2MetricStatusFluent.ContainerResourceNested editContainerResource(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResource(); + public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus item); + public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2ContainerResourceMetricStatus item); /** * This method has been deprecated, please use method buildExternal instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ExternalMetricStatus getExternal(); - public io.kubernetes.client.openapi.models.V2ExternalMetricStatus buildExternal(); + public V2ExternalMetricStatus buildExternal(); - public A withExternal(io.kubernetes.client.openapi.models.V2ExternalMetricStatus external); + public A withExternal(V2ExternalMetricStatus external); - public java.lang.Boolean hasExternal(); + public Boolean hasExternal(); public V2MetricStatusFluent.ExternalNested withNewExternal(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricStatus item); + public V2MetricStatusFluent.ExternalNested withNewExternalLike(V2ExternalMetricStatus item); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested editExternal(); + public V2MetricStatusFluent.ExternalNested editExternal(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested - editOrNewExternal(); + public V2MetricStatusFluent.ExternalNested editOrNewExternal(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricStatus item); + public V2MetricStatusFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item); /** * This method has been deprecated, please use method buildObject instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ObjectMetricStatus getObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatus buildObject(); + public V2ObjectMetricStatus buildObject(); - public A withObject(io.kubernetes.client.openapi.models.V2ObjectMetricStatus _object); + public A withObject(V2ObjectMetricStatus _object); - public java.lang.Boolean hasObject(); + public Boolean hasObject(); public V2MetricStatusFluent.ObjectNested withNewObject(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested withNewObjectLike( - io.kubernetes.client.openapi.models.V2ObjectMetricStatus item); + public V2MetricStatusFluent.ObjectNested withNewObjectLike(V2ObjectMetricStatus item); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested editObject(); + public V2MetricStatusFluent.ObjectNested editObject(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested editOrNewObject(); + public V2MetricStatusFluent.ObjectNested editOrNewObject(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2ObjectMetricStatus item); + public V2MetricStatusFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item); /** * This method has been deprecated, please use method buildPods instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2PodsMetricStatus getPods(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatus buildPods(); + public V2PodsMetricStatus buildPods(); - public A withPods(io.kubernetes.client.openapi.models.V2PodsMetricStatus pods); + public A withPods(V2PodsMetricStatus pods); - public java.lang.Boolean hasPods(); + public Boolean hasPods(); public V2MetricStatusFluent.PodsNested withNewPods(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricStatus item); + public V2MetricStatusFluent.PodsNested withNewPodsLike(V2PodsMetricStatus item); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested editPods(); + public V2MetricStatusFluent.PodsNested editPods(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested editOrNewPods(); + public V2MetricStatusFluent.PodsNested editOrNewPods(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested editOrNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricStatus item); + public V2MetricStatusFluent.PodsNested editOrNewPodsLike(V2PodsMetricStatus item); /** * This method has been deprecated, please use method buildResource instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ResourceMetricStatus getResource(); - public io.kubernetes.client.openapi.models.V2ResourceMetricStatus buildResource(); + public V2ResourceMetricStatus buildResource(); - public A withResource(io.kubernetes.client.openapi.models.V2ResourceMetricStatus resource); + public A withResource(V2ResourceMetricStatus resource); - public java.lang.Boolean hasResource(); + public Boolean hasResource(); public V2MetricStatusFluent.ResourceNested withNewResource(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricStatus item); + public V2MetricStatusFluent.ResourceNested withNewResourceLike(V2ResourceMetricStatus item); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested editResource(); + public V2MetricStatusFluent.ResourceNested editResource(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested - editOrNewResource(); + public V2MetricStatusFluent.ResourceNested editOrNewResource(); - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricStatus item); + public V2MetricStatusFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface ContainerResourceNested extends Nested, @@ -171,32 +155,28 @@ public interface ContainerResourceNested } public interface ExternalNested - extends io.kubernetes.client.fluent.Nested, - V2ExternalMetricStatusFluent> { + extends Nested, V2ExternalMetricStatusFluent> { public N and(); public N endExternal(); } public interface ObjectNested - extends io.kubernetes.client.fluent.Nested, - V2ObjectMetricStatusFluent> { + extends Nested, V2ObjectMetricStatusFluent> { public N and(); public N endObject(); } public interface PodsNested - extends io.kubernetes.client.fluent.Nested, - V2PodsMetricStatusFluent> { + extends Nested, V2PodsMetricStatusFluent> { public N and(); public N endPods(); } public interface ResourceNested - extends io.kubernetes.client.fluent.Nested, - V2ResourceMetricStatusFluent> { + extends Nested, V2ResourceMetricStatusFluent> { public N and(); public N endResource(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java index 3735e496bb..218a9a1b75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluentImpl.java @@ -21,7 +21,7 @@ public class V2MetricStatusFluentImpl> extends implements V2MetricStatusFluent { public V2MetricStatusFluentImpl() {} - public V2MetricStatusFluentImpl(io.kubernetes.client.openapi.models.V2MetricStatus instance) { + public V2MetricStatusFluentImpl(V2MetricStatus instance) { this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -52,19 +52,18 @@ public V2ContainerResourceMetricStatus getContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus - buildContainerResource() { + public V2ContainerResourceMetricStatus buildContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public A withContainerResource( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus containerResource) { + public A withContainerResource(V2ContainerResourceMetricStatus containerResource) { _visitables.get("containerResource").remove(this.containerResource); if (containerResource != null) { - this.containerResource = - new io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusBuilder( - containerResource); + this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource); + } else { + this.containerResource = null; + _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } @@ -77,29 +76,24 @@ public V2MetricStatusFluent.ContainerResourceNested withNewContainerResource( return new V2MetricStatusFluentImpl.ContainerResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus item) { + public V2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( + V2ContainerResourceMetricStatus item) { return new V2MetricStatusFluentImpl.ContainerResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - editContainerResource() { + public V2MetricStatusFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResource() { + public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource() { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() - : new io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusBuilder() - .build()); + : new V2ContainerResourceMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus item) { + public V2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2ContainerResourceMetricStatus item) { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() : item); } @@ -109,26 +103,28 @@ public V2MetricStatusFluent.ContainerResourceNested withNewContainerResource( * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ExternalMetricStatus getExternal() { return this.external != null ? this.external.build() : null; } - public io.kubernetes.client.openapi.models.V2ExternalMetricStatus buildExternal() { + public V2ExternalMetricStatus buildExternal() { return this.external != null ? this.external.build() : null; } - public A withExternal(io.kubernetes.client.openapi.models.V2ExternalMetricStatus external) { + public A withExternal(V2ExternalMetricStatus external) { _visitables.get("external").remove(this.external); if (external != null) { - this.external = - new io.kubernetes.client.openapi.models.V2ExternalMetricStatusBuilder(external); + this.external = new V2ExternalMetricStatusBuilder(external); _visitables.get("external").add(this.external); + } else { + this.external = null; + _visitables.get("external").remove(this.external); } return (A) this; } - public java.lang.Boolean hasExternal() { + public Boolean hasExternal() { return this.external != null; } @@ -136,26 +132,20 @@ public V2MetricStatusFluent.ExternalNested withNewExternal() { return new V2MetricStatusFluentImpl.ExternalNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2MetricStatusFluentImpl.ExternalNestedImpl( - item); + public V2MetricStatusFluent.ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { + return new V2MetricStatusFluentImpl.ExternalNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested editExternal() { + public V2MetricStatusFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested - editOrNewExternal() { + public V2MetricStatusFluent.ExternalNested editOrNewExternal() { return withNewExternalLike( - getExternal() != null - ? getExternal() - : new io.kubernetes.client.openapi.models.V2ExternalMetricStatusBuilder().build()); + getExternal() != null ? getExternal() : new V2ExternalMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2ExternalMetricStatus item) { + public V2MetricStatusFluent.ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item) { return withNewExternalLike(getExternal() != null ? getExternal() : item); } @@ -164,25 +154,28 @@ public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested withNewObject() { return new V2MetricStatusFluentImpl.ObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested withNewObjectLike( - io.kubernetes.client.openapi.models.V2ObjectMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2MetricStatusFluentImpl.ObjectNestedImpl(item); + public V2MetricStatusFluent.ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { + return new V2MetricStatusFluentImpl.ObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested editObject() { + public V2MetricStatusFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested - editOrNewObject() { + public V2MetricStatusFluent.ObjectNested editOrNewObject() { return withNewObjectLike( - getObject() != null - ? getObject() - : new io.kubernetes.client.openapi.models.V2ObjectMetricStatusBuilder().build()); + getObject() != null ? getObject() : new V2ObjectMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2ObjectMetricStatus item) { + public V2MetricStatusFluent.ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item) { return withNewObjectLike(getObject() != null ? getObject() : item); } @@ -217,25 +205,28 @@ public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2PodsMetricStatus getPods() { return this.pods != null ? this.pods.build() : null; } - public io.kubernetes.client.openapi.models.V2PodsMetricStatus buildPods() { + public V2PodsMetricStatus buildPods() { return this.pods != null ? this.pods.build() : null; } - public A withPods(io.kubernetes.client.openapi.models.V2PodsMetricStatus pods) { + public A withPods(V2PodsMetricStatus pods) { _visitables.get("pods").remove(this.pods); if (pods != null) { - this.pods = new io.kubernetes.client.openapi.models.V2PodsMetricStatusBuilder(pods); + this.pods = new V2PodsMetricStatusBuilder(pods); _visitables.get("pods").add(this.pods); + } else { + this.pods = null; + _visitables.get("pods").remove(this.pods); } return (A) this; } - public java.lang.Boolean hasPods() { + public Boolean hasPods() { return this.pods != null; } @@ -243,24 +234,19 @@ public V2MetricStatusFluent.PodsNested withNewPods() { return new V2MetricStatusFluentImpl.PodsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2MetricStatusFluentImpl.PodsNestedImpl(item); + public V2MetricStatusFluent.PodsNested withNewPodsLike(V2PodsMetricStatus item) { + return new V2MetricStatusFluentImpl.PodsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested editPods() { + public V2MetricStatusFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested editOrNewPods() { - return withNewPodsLike( - getPods() != null - ? getPods() - : new io.kubernetes.client.openapi.models.V2PodsMetricStatusBuilder().build()); + public V2MetricStatusFluent.PodsNested editOrNewPods() { + return withNewPodsLike(getPods() != null ? getPods() : new V2PodsMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested editOrNewPodsLike( - io.kubernetes.client.openapi.models.V2PodsMetricStatus item) { + public V2MetricStatusFluent.PodsNested editOrNewPodsLike(V2PodsMetricStatus item) { return withNewPodsLike(getPods() != null ? getPods() : item); } @@ -269,26 +255,28 @@ public io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested ed * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2ResourceMetricStatus getResource() { return this.resource != null ? this.resource.build() : null; } - public io.kubernetes.client.openapi.models.V2ResourceMetricStatus buildResource() { + public V2ResourceMetricStatus buildResource() { return this.resource != null ? this.resource.build() : null; } - public A withResource(io.kubernetes.client.openapi.models.V2ResourceMetricStatus resource) { + public A withResource(V2ResourceMetricStatus resource) { _visitables.get("resource").remove(this.resource); if (resource != null) { - this.resource = - new io.kubernetes.client.openapi.models.V2ResourceMetricStatusBuilder(resource); + this.resource = new V2ResourceMetricStatusBuilder(resource); _visitables.get("resource").add(this.resource); + } else { + this.resource = null; + _visitables.get("resource").remove(this.resource); } return (A) this; } - public java.lang.Boolean hasResource() { + public Boolean hasResource() { return this.resource != null; } @@ -296,39 +284,33 @@ public V2MetricStatusFluent.ResourceNested withNewResource() { return new V2MetricStatusFluentImpl.ResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2MetricStatusFluentImpl.ResourceNestedImpl( - item); + public V2MetricStatusFluent.ResourceNested withNewResourceLike(V2ResourceMetricStatus item) { + return new V2MetricStatusFluentImpl.ResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested editResource() { + public V2MetricStatusFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested - editOrNewResource() { + public V2MetricStatusFluent.ResourceNested editOrNewResource() { return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V2ResourceMetricStatusBuilder().build()); + getResource() != null ? getResource() : new V2ResourceMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2ResourceMetricStatus item) { + public V2MetricStatusFluent.ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item) { return withNewResourceLike(getResource() != null ? getResource() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -352,7 +334,7 @@ public int hashCode() { containerResource, external, _object, pods, resource, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerResource != null) { @@ -386,19 +368,16 @@ public java.lang.String toString() { class ContainerResourceNestedImpl extends V2ContainerResourceMetricStatusFluentImpl< V2MetricStatusFluent.ContainerResourceNested> - implements io.kubernetes.client.openapi.models.V2MetricStatusFluent.ContainerResourceNested< - N>, - Nested { + implements V2MetricStatusFluent.ContainerResourceNested, Nested { ContainerResourceNestedImpl(V2ContainerResourceMetricStatus item) { this.builder = new V2ContainerResourceMetricStatusBuilder(this, item); } ContainerResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusBuilder(this); + this.builder = new V2ContainerResourceMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatusBuilder builder; + V2ContainerResourceMetricStatusBuilder builder; public N and() { return (N) V2MetricStatusFluentImpl.this.withContainerResource(builder.build()); @@ -411,17 +390,16 @@ public N endContainerResource() { class ExternalNestedImpl extends V2ExternalMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricStatusFluent.ExternalNested, - io.kubernetes.client.fluent.Nested { + implements V2MetricStatusFluent.ExternalNested, Nested { ExternalNestedImpl(V2ExternalMetricStatus item) { this.builder = new V2ExternalMetricStatusBuilder(this, item); } ExternalNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2ExternalMetricStatusBuilder(this); + this.builder = new V2ExternalMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2ExternalMetricStatusBuilder builder; + V2ExternalMetricStatusBuilder builder; public N and() { return (N) V2MetricStatusFluentImpl.this.withExternal(builder.build()); @@ -434,17 +412,16 @@ public N endExternal() { class ObjectNestedImpl extends V2ObjectMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricStatusFluent.ObjectNested, - io.kubernetes.client.fluent.Nested { - ObjectNestedImpl(io.kubernetes.client.openapi.models.V2ObjectMetricStatus item) { + implements V2MetricStatusFluent.ObjectNested, Nested { + ObjectNestedImpl(V2ObjectMetricStatus item) { this.builder = new V2ObjectMetricStatusBuilder(this, item); } ObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2ObjectMetricStatusBuilder(this); + this.builder = new V2ObjectMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2ObjectMetricStatusBuilder builder; + V2ObjectMetricStatusBuilder builder; public N and() { return (N) V2MetricStatusFluentImpl.this.withObject(builder.build()); @@ -456,17 +433,16 @@ public N endObject() { } class PodsNestedImpl extends V2PodsMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricStatusFluent.PodsNested, - io.kubernetes.client.fluent.Nested { - PodsNestedImpl(io.kubernetes.client.openapi.models.V2PodsMetricStatus item) { + implements V2MetricStatusFluent.PodsNested, Nested { + PodsNestedImpl(V2PodsMetricStatus item) { this.builder = new V2PodsMetricStatusBuilder(this, item); } PodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2PodsMetricStatusBuilder(this); + this.builder = new V2PodsMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2PodsMetricStatusBuilder builder; + V2PodsMetricStatusBuilder builder; public N and() { return (N) V2MetricStatusFluentImpl.this.withPods(builder.build()); @@ -479,17 +455,16 @@ public N endPods() { class ResourceNestedImpl extends V2ResourceMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2MetricStatusFluent.ResourceNested, - io.kubernetes.client.fluent.Nested { + implements V2MetricStatusFluent.ResourceNested, Nested { ResourceNestedImpl(V2ResourceMetricStatus item) { this.builder = new V2ResourceMetricStatusBuilder(this, item); } ResourceNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2ResourceMetricStatusBuilder(this); + this.builder = new V2ResourceMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2ResourceMetricStatusBuilder builder; + V2ResourceMetricStatusBuilder builder; public N and() { return (N) V2MetricStatusFluentImpl.this.withResource(builder.build()); 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 392d8ab3b5..6f23105730 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V2MetricTargetBuilder extends V2MetricTargetFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2MetricTarget, - io.kubernetes.client.openapi.models.V2MetricTargetBuilder> { + implements VisitableBuilder { public V2MetricTargetBuilder() { this(false); } @@ -30,22 +28,16 @@ public V2MetricTargetBuilder(V2MetricTargetFluent fluent) { this(fluent, false); } - public V2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2MetricTargetFluent fluent, - java.lang.Boolean validationEnabled) { + public V2MetricTargetBuilder(V2MetricTargetFluent fluent, Boolean validationEnabled) { this(fluent, new V2MetricTarget(), validationEnabled); } - public V2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2MetricTargetFluent fluent, - io.kubernetes.client.openapi.models.V2MetricTarget instance) { + public V2MetricTargetBuilder(V2MetricTargetFluent fluent, V2MetricTarget instance) { this(fluent, instance, false); } public V2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2MetricTargetFluent fluent, - io.kubernetes.client.openapi.models.V2MetricTarget instance, - java.lang.Boolean validationEnabled) { + V2MetricTargetFluent fluent, V2MetricTarget instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); @@ -58,13 +50,11 @@ public V2MetricTargetBuilder( this.validationEnabled = validationEnabled; } - public V2MetricTargetBuilder(io.kubernetes.client.openapi.models.V2MetricTarget instance) { + public V2MetricTargetBuilder(V2MetricTarget instance) { this(instance, false); } - public V2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2MetricTarget instance, - java.lang.Boolean validationEnabled) { + public V2MetricTargetBuilder(V2MetricTarget instance, Boolean validationEnabled) { this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); @@ -77,10 +67,10 @@ public V2MetricTargetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2MetricTargetFluent fluent; - java.lang.Boolean validationEnabled; + V2MetricTargetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2MetricTarget build() { + public V2MetricTarget build() { V2MetricTarget buildable = new V2MetricTarget(); buildable.setAverageUtilization(fluent.getAverageUtilization()); buildable.setAverageValue(fluent.getAverageValue()); 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 475b29815a..5ed9267510 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 @@ -19,29 +19,29 @@ public interface V2MetricTargetFluent> extends Fluent { public Integer getAverageUtilization(); - public A withAverageUtilization(java.lang.Integer averageUtilization); + public A withAverageUtilization(Integer averageUtilization); public Boolean hasAverageUtilization(); public Quantity getAverageValue(); - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue); + public A withAverageValue(Quantity averageValue); - public java.lang.Boolean hasAverageValue(); + public Boolean hasAverageValue(); public A withNewAverageValue(String value); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); - public io.kubernetes.client.custom.Quantity getValue(); + public Quantity getValue(); - public A withValue(io.kubernetes.client.custom.Quantity value); + public A withValue(Quantity value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); - public A withNewValue(java.lang.String value); + public A withNewValue(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java index 1bf07c5325..21abfe7e99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluentImpl.java @@ -21,7 +21,7 @@ public class V2MetricTargetFluentImpl> extends implements V2MetricTargetFluent { public V2MetricTargetFluentImpl() {} - public V2MetricTargetFluentImpl(io.kubernetes.client.openapi.models.V2MetricTarget instance) { + public V2MetricTargetFluentImpl(V2MetricTarget instance) { this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); @@ -34,13 +34,13 @@ public V2MetricTargetFluentImpl(io.kubernetes.client.openapi.models.V2MetricTarg private Integer averageUtilization; private Quantity averageValue; private String type; - private io.kubernetes.client.custom.Quantity value; + private Quantity value; - public java.lang.Integer getAverageUtilization() { + public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(java.lang.Integer averageUtilization) { + public A withAverageUtilization(Integer averageUtilization) { this.averageUtilization = averageUtilization; return (A) this; } @@ -49,50 +49,50 @@ public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public io.kubernetes.client.custom.Quantity getAverageValue() { + public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue) { + public A withAverageValue(Quantity averageValue) { this.averageValue = averageValue; return (A) this; } - public java.lang.Boolean hasAverageValue() { + public Boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(java.lang.String value) { + public A withNewAverageValue(String value) { return (A) withAverageValue(new Quantity(value)); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public io.kubernetes.client.custom.Quantity getValue() { + public Quantity getValue() { return this.value; } - public A withValue(io.kubernetes.client.custom.Quantity value) { + public A withValue(Quantity value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } - public A withNewValue(java.lang.String value) { + public A withNewValue(String value) { return (A) withValue(new Quantity(value)); } @@ -114,7 +114,7 @@ public int hashCode() { return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (averageUtilization != null) { 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 6a429f6d56..a37ef6718b 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 @@ -16,8 +16,7 @@ public class V2MetricValueStatusBuilder extends V2MetricValueStatusFluentImpl - implements VisitableBuilder< - V2MetricValueStatus, io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder> { + implements VisitableBuilder { public V2MetricValueStatusBuilder() { this(false); } @@ -26,27 +25,24 @@ public V2MetricValueStatusBuilder(Boolean validationEnabled) { this(new V2MetricValueStatus(), validationEnabled); } - public V2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricValueStatusFluent fluent) { + public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent) { this(fluent, false); } public V2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricValueStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2MetricValueStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2MetricValueStatus(), validationEnabled); } public V2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricValueStatusFluent fluent, - io.kubernetes.client.openapi.models.V2MetricValueStatus instance) { + V2MetricValueStatusFluent fluent, V2MetricValueStatus instance) { this(fluent, instance, false); } public V2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricValueStatusFluent fluent, - io.kubernetes.client.openapi.models.V2MetricValueStatus instance, - java.lang.Boolean validationEnabled) { + V2MetricValueStatusFluent fluent, + V2MetricValueStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); @@ -57,14 +53,11 @@ public V2MetricValueStatusBuilder( this.validationEnabled = validationEnabled; } - public V2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricValueStatus instance) { + public V2MetricValueStatusBuilder(V2MetricValueStatus instance) { this(instance, false); } - public V2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2MetricValueStatus instance, - java.lang.Boolean validationEnabled) { + public V2MetricValueStatusBuilder(V2MetricValueStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); @@ -75,10 +68,10 @@ public V2MetricValueStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2MetricValueStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2MetricValueStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2MetricValueStatus build() { + public V2MetricValueStatus build() { V2MetricValueStatus buildable = new V2MetricValueStatus(); buildable.setAverageUtilization(fluent.getAverageUtilization()); buildable.setAverageValue(fluent.getAverageValue()); 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 a0f1f23ebe..99f75c1e81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java @@ -20,23 +20,23 @@ public interface V2MetricValueStatusFluent { public Integer getAverageUtilization(); - public A withAverageUtilization(java.lang.Integer averageUtilization); + public A withAverageUtilization(Integer averageUtilization); public Boolean hasAverageUtilization(); public Quantity getAverageValue(); - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue); + public A withAverageValue(Quantity averageValue); - public java.lang.Boolean hasAverageValue(); + public Boolean hasAverageValue(); public A withNewAverageValue(String value); - public io.kubernetes.client.custom.Quantity getValue(); + public Quantity getValue(); - public A withValue(io.kubernetes.client.custom.Quantity value); + public A withValue(Quantity value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); - public A withNewValue(java.lang.String value); + public A withNewValue(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java index 68717d32b6..a8d1400244 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2MetricValueStatusFluentImpl implements V2MetricValueStatusFluent { public V2MetricValueStatusFluentImpl() {} - public V2MetricValueStatusFluentImpl( - io.kubernetes.client.openapi.models.V2MetricValueStatus instance) { + public V2MetricValueStatusFluentImpl(V2MetricValueStatus instance) { this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); @@ -32,13 +31,13 @@ public V2MetricValueStatusFluentImpl( private Integer averageUtilization; private Quantity averageValue; - private io.kubernetes.client.custom.Quantity value; + private Quantity value; - public java.lang.Integer getAverageUtilization() { + public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(java.lang.Integer averageUtilization) { + public A withAverageUtilization(Integer averageUtilization) { this.averageUtilization = averageUtilization; return (A) this; } @@ -47,16 +46,16 @@ public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public io.kubernetes.client.custom.Quantity getAverageValue() { + public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue) { + public A withAverageValue(Quantity averageValue) { this.averageValue = averageValue; return (A) this; } - public java.lang.Boolean hasAverageValue() { + public Boolean hasAverageValue() { return this.averageValue != null; } @@ -64,20 +63,20 @@ public A withNewAverageValue(String value) { return (A) withAverageValue(new Quantity(value)); } - public io.kubernetes.client.custom.Quantity getValue() { + public Quantity getValue() { return this.value; } - public A withValue(io.kubernetes.client.custom.Quantity value) { + public A withValue(Quantity value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } - public A withNewValue(java.lang.String value) { + public A withNewValue(String value) { return (A) withValue(new Quantity(value)); } @@ -98,7 +97,7 @@ public int hashCode() { return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (averageUtilization != null) { 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 829ce836b6..4a99b3f60e 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 @@ -16,8 +16,7 @@ public class V2ObjectMetricSourceBuilder extends V2ObjectMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2ObjectMetricSource, V2ObjectMetricSourceBuilder> { + implements VisitableBuilder { public V2ObjectMetricSourceBuilder() { this(false); } @@ -26,27 +25,24 @@ public V2ObjectMetricSourceBuilder(Boolean validationEnabled) { this(new V2ObjectMetricSource(), validationEnabled); } - public V2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent fluent) { + public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent) { this(fluent, false); } public V2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2ObjectMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2ObjectMetricSource(), validationEnabled); } public V2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ObjectMetricSource instance) { + V2ObjectMetricSourceFluent fluent, V2ObjectMetricSource instance) { this(fluent, instance, false); } public V2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ObjectMetricSource instance, - java.lang.Boolean validationEnabled) { + V2ObjectMetricSourceFluent fluent, + V2ObjectMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDescribedObject(instance.getDescribedObject()); @@ -57,14 +53,11 @@ public V2ObjectMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricSource instance) { + public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance) { this(instance, false); } - public V2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricSource instance, - java.lang.Boolean validationEnabled) { + public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withDescribedObject(instance.getDescribedObject()); @@ -75,10 +68,10 @@ public V2ObjectMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2ObjectMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ObjectMetricSource build() { + public V2ObjectMetricSource build() { V2ObjectMetricSource buildable = new V2ObjectMetricSource(); buildable.setDescribedObject(fluent.getDescribedObject()); buildable.setMetric(fluent.getMetric()); 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 ca0aeaf275..e01a424ab5 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 @@ -27,84 +27,71 @@ public interface V2ObjectMetricSourceFluent withNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item); + public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( + V2CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - editDescribedObject(); + public V2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - editOrNewDescribedObject(); + public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item); + public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2CrossVersionObjectReference item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric(); + public V2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric); + public A withMetric(V2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2ObjectMetricSourceFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ObjectMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - editMetric(); + public V2ObjectMetricSourceFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - editOrNewMetric(); + public V2ObjectMetricSourceFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget(); + public V2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target); + public A withTarget(V2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2ObjectMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ObjectMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - editTarget(); + public V2ObjectMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2ObjectMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); public interface DescribedObjectNested extends Nested, @@ -115,16 +102,14 @@ public interface DescribedObjectNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, - V2MetricIdentifierFluent> { + extends Nested, V2MetricIdentifierFluent> { public N and(); public N endMetric(); } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V2MetricTargetFluent> { + extends Nested, V2MetricTargetFluent> { public N and(); public N endTarget(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java index 656f8a3c5f..b1360c0782 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2ObjectMetricSourceFluentImpl implements V2ObjectMetricSourceFluent { public V2ObjectMetricSourceFluentImpl() {} - public V2ObjectMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2ObjectMetricSource instance) { + public V2ObjectMetricSourceFluentImpl(V2ObjectMetricSource instance) { this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); @@ -44,18 +43,18 @@ public V2CrossVersionObjectReference getDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public io.kubernetes.client.openapi.models.V2CrossVersionObjectReference buildDescribedObject() { + public V2CrossVersionObjectReference buildDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public A withDescribedObject( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference describedObject) { + public A withDescribedObject(V2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); if (describedObject != null) { - this.describedObject = - new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder( - describedObject); + this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } @@ -68,29 +67,24 @@ public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjec return new V2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( + V2CrossVersionObjectReference item) { return new V2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - editDescribedObject() { + public V2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - editOrNewDescribedObject() { + public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject() { return withNewDescribedObjectLike( getDescribedObject() != null ? getDescribedObject() - : new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder() - .build()); + : new V2CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.DescribedObjectNested - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + public V2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2CrossVersionObjectReference item) { return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); } @@ -99,25 +93,28 @@ public V2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjec * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric() { + public V2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric) { + public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(metric); + this.metric = new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -125,27 +122,20 @@ public V2ObjectMetricSourceFluent.MetricNested withNewMetric() { return new V2ObjectMetricSourceFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluentImpl.MetricNestedImpl( - item); + public V2ObjectMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new V2ObjectMetricSourceFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - editMetric() { + public V2ObjectMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - editOrNewMetric() { + public V2ObjectMetricSourceFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -154,25 +144,28 @@ public V2ObjectMetricSourceFluent.MetricNested withNewMetric() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget() { + public V2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target) { + public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { - this.target = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(target); + this.target = new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -180,27 +173,20 @@ public V2ObjectMetricSourceFluent.TargetNested withNewTarget() { return new V2ObjectMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { - return new io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluentImpl.TargetNestedImpl( - item); + public V2ObjectMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { + return new V2ObjectMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - editTarget() { + public V2ObjectMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2ObjectMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -242,21 +228,16 @@ public String toString() { class DescribedObjectNestedImpl extends V2CrossVersionObjectReferenceFluentImpl< V2ObjectMetricSourceFluent.DescribedObjectNested> - implements io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent - .DescribedObjectNested< - N>, - Nested { - DescribedObjectNestedImpl( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + implements V2ObjectMetricSourceFluent.DescribedObjectNested, Nested { + DescribedObjectNestedImpl(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } DescribedObjectNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder(this); + this.builder = new V2CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder builder; + V2CrossVersionObjectReferenceBuilder builder; public N and() { return (N) V2ObjectMetricSourceFluentImpl.this.withDescribedObject(builder.build()); @@ -269,17 +250,16 @@ public N endDescribedObject() { class MetricNestedImpl extends V2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.MetricNested, - io.kubernetes.client.fluent.Nested { + implements V2ObjectMetricSourceFluent.MetricNested, Nested { MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(this); + this.builder = new V2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder builder; + V2MetricIdentifierBuilder builder; public N and() { return (N) V2ObjectMetricSourceFluentImpl.this.withMetric(builder.build()); @@ -292,17 +272,16 @@ public N endMetric() { class TargetNestedImpl extends V2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2ObjectMetricSourceFluent.TargetNested, - io.kubernetes.client.fluent.Nested { - TargetNestedImpl(io.kubernetes.client.openapi.models.V2MetricTarget item) { + implements V2ObjectMetricSourceFluent.TargetNested, Nested { + TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(this); + this.builder = new V2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricTargetBuilder builder; + V2MetricTargetBuilder builder; public N and() { return (N) V2ObjectMetricSourceFluentImpl.this.withTarget(builder.build()); 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 0ecf9d13df..a85f55acc2 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 @@ -16,9 +16,7 @@ public class V2ObjectMetricStatusBuilder extends V2ObjectMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2ObjectMetricStatus, - io.kubernetes.client.openapi.models.V2ObjectMetricStatusBuilder> { + implements VisitableBuilder { public V2ObjectMetricStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent) { } public V2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2ObjectMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2ObjectMetricStatus(), validationEnabled); } public V2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ObjectMetricStatus instance) { + V2ObjectMetricStatusFluent fluent, V2ObjectMetricStatus instance) { this(fluent, instance, false); } public V2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ObjectMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2ObjectMetricStatusFluent fluent, + V2ObjectMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -57,14 +53,11 @@ public V2ObjectMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricStatus instance) { + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance) { this(instance, false); } - public V2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ObjectMetricStatus instance, - java.lang.Boolean validationEnabled) { + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -75,10 +68,10 @@ public V2ObjectMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2ObjectMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ObjectMetricStatus build() { + public V2ObjectMetricStatus build() { V2ObjectMetricStatus buildable = new V2ObjectMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setDescribedObject(fluent.getDescribedObject()); 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 fab1771591..48170274c0 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 @@ -27,84 +27,71 @@ public interface V2ObjectMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - editCurrent(); + public V2ObjectMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); /** * This method has been deprecated, please use method buildDescribedObject instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2CrossVersionObjectReference getDescribedObject(); - public io.kubernetes.client.openapi.models.V2CrossVersionObjectReference buildDescribedObject(); + public V2CrossVersionObjectReference buildDescribedObject(); - public A withDescribedObject( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference describedObject); + public A withDescribedObject(V2CrossVersionObjectReference describedObject); - public java.lang.Boolean hasDescribedObject(); + public Boolean hasDescribedObject(); public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item); + public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( + V2CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - editDescribedObject(); + public V2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - editOrNewDescribedObject(); + public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item); + public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2CrossVersionObjectReference item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric(); + public V2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric); + public A withMetric(V2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2ObjectMetricStatusFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ObjectMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - editMetric(); + public V2ObjectMetricStatusFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - editOrNewMetric(); + public V2ObjectMetricStatusFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); public interface CurrentNested extends Nested, V2MetricValueStatusFluent> { @@ -114,7 +101,7 @@ public interface CurrentNested } public interface DescribedObjectNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2CrossVersionObjectReferenceFluent> { public N and(); @@ -122,8 +109,7 @@ public interface DescribedObjectNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, - V2MetricIdentifierFluent> { + extends Nested, V2MetricIdentifierFluent> { public N and(); public N endMetric(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java index 679fc1bb19..917d75be29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2ObjectMetricStatusFluentImpl implements V2ObjectMetricStatusFluent { public V2ObjectMetricStatusFluentImpl() {} - public V2ObjectMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2ObjectMetricStatus instance) { + public V2ObjectMetricStatusFluentImpl(V2ObjectMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withDescribedObject(instance.getDescribedObject()); @@ -40,19 +39,22 @@ public V2ObjectMetricStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2MetricValueStatus getCurrent() { + public V2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent() { + public V2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current) { + public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { this.current = new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -65,26 +67,21 @@ public V2ObjectMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ObjectMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2ObjectMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - editCurrent() { + public V2ObjectMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } @@ -93,28 +90,28 @@ public V2ObjectMetricStatusFluent.CurrentNested withNewCurrent() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2CrossVersionObjectReference getDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public io.kubernetes.client.openapi.models.V2CrossVersionObjectReference buildDescribedObject() { + public V2CrossVersionObjectReference buildDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public A withDescribedObject( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference describedObject) { + public A withDescribedObject(V2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); if (describedObject != null) { - this.describedObject = - new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder( - describedObject); + this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } - public java.lang.Boolean hasDescribedObject() { + public Boolean hasDescribedObject() { return this.describedObject != null; } @@ -122,30 +119,24 @@ public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjec return new V2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluentImpl - .DescribedObjectNestedImpl(item); + public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( + V2CrossVersionObjectReference item) { + return new V2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - editDescribedObject() { + public V2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - editOrNewDescribedObject() { + public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject() { return withNewDescribedObjectLike( getDescribedObject() != null ? getDescribedObject() - : new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder() - .build()); + : new V2CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.DescribedObjectNested - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + public V2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2CrossVersionObjectReference item) { return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); } @@ -154,25 +145,28 @@ public V2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjec * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric() { + public V2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric) { + public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(metric); + this.metric = new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -180,27 +174,20 @@ public V2ObjectMetricStatusFluent.MetricNested withNewMetric() { return new V2ObjectMetricStatusFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluentImpl.MetricNestedImpl( - item); + public V2ObjectMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new V2ObjectMetricStatusFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - editMetric() { + public V2ObjectMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - editOrNewMetric() { + public V2ObjectMetricStatusFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -241,17 +228,16 @@ public String toString() { class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.CurrentNested, - Nested { + implements V2ObjectMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder(this); + this.builder = new V2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder builder; + V2MetricValueStatusBuilder builder; public N and() { return (N) V2ObjectMetricStatusFluentImpl.this.withCurrent(builder.build()); @@ -265,21 +251,16 @@ public N endCurrent() { class DescribedObjectNestedImpl extends V2CrossVersionObjectReferenceFluentImpl< V2ObjectMetricStatusFluent.DescribedObjectNested> - implements io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent - .DescribedObjectNested< - N>, - io.kubernetes.client.fluent.Nested { - DescribedObjectNestedImpl( - io.kubernetes.client.openapi.models.V2CrossVersionObjectReference item) { + implements V2ObjectMetricStatusFluent.DescribedObjectNested, Nested { + DescribedObjectNestedImpl(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } DescribedObjectNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder(this); + this.builder = new V2CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V2CrossVersionObjectReferenceBuilder builder; + V2CrossVersionObjectReferenceBuilder builder; public N and() { return (N) V2ObjectMetricStatusFluentImpl.this.withDescribedObject(builder.build()); @@ -292,17 +273,16 @@ public N endDescribedObject() { class MetricNestedImpl extends V2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2ObjectMetricStatusFluent.MetricNested, - io.kubernetes.client.fluent.Nested { + implements V2ObjectMetricStatusFluent.MetricNested, Nested { MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(this); + this.builder = new V2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder builder; + V2MetricIdentifierBuilder builder; public N and() { return (N) V2ObjectMetricStatusFluentImpl.this.withMetric(builder.build()); 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 1c70398f45..1620e968d6 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 @@ -16,8 +16,7 @@ public class V2PodsMetricSourceBuilder extends V2PodsMetricSourceFluentImpl - implements VisitableBuilder< - V2PodsMetricSource, io.kubernetes.client.openapi.models.V2PodsMetricSourceBuilder> { + implements VisitableBuilder { public V2PodsMetricSourceBuilder() { this(false); } @@ -30,22 +29,17 @@ public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent) { this(fluent, false); } - public V2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2PodsMetricSource(), validationEnabled); } public V2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2PodsMetricSource instance) { + V2PodsMetricSourceFluent fluent, V2PodsMetricSource instance) { this(fluent, instance, false); } public V2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2PodsMetricSource instance, - java.lang.Boolean validationEnabled) { + V2PodsMetricSourceFluent fluent, V2PodsMetricSource instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withMetric(instance.getMetric()); @@ -54,14 +48,11 @@ public V2PodsMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricSource instance) { + public V2PodsMetricSourceBuilder(V2PodsMetricSource instance) { this(instance, false); } - public V2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricSource instance, - java.lang.Boolean validationEnabled) { + public V2PodsMetricSourceBuilder(V2PodsMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withMetric(instance.getMetric()); @@ -70,10 +61,10 @@ public V2PodsMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2PodsMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2PodsMetricSource build() { + public V2PodsMetricSource build() { V2PodsMetricSource buildable = new V2PodsMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); 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 885dd10113..d6c973c268 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 @@ -26,51 +26,45 @@ public interface V2PodsMetricSourceFluent> @Deprecated public V2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric(); + public V2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric); + public A withMetric(V2MetricIdentifier metric); public Boolean hasMetric(); public V2PodsMetricSourceFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2PodsMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested editMetric(); + public V2PodsMetricSourceFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested - editOrNewMetric(); + public V2PodsMetricSourceFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2PodsMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget(); + public V2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target); + public A withTarget(V2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2PodsMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested editTarget(); + public V2PodsMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2PodsMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2PodsMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); public interface MetricNested extends Nested, V2MetricIdentifierFluent> { @@ -80,8 +74,7 @@ public interface MetricNested } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V2MetricTargetFluent> { + extends Nested, V2MetricTargetFluent> { public N and(); public N endTarget(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java index 34789f4df2..8d37c48919 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2PodsMetricSourceFluentImpl> extends BaseFluent implements V2PodsMetricSourceFluent { public V2PodsMetricSourceFluentImpl() {} - public V2PodsMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2PodsMetricSource instance) { + public V2PodsMetricSourceFluentImpl(V2PodsMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); @@ -41,15 +40,18 @@ public V2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric() { + public V2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric) { + public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(metric); + this.metric = new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } @@ -62,25 +64,20 @@ public V2PodsMetricSourceFluent.MetricNested withNewMetric() { return new V2PodsMetricSourceFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2PodsMetricSourceFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { return new V2PodsMetricSourceFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested editMetric() { + public V2PodsMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested - editOrNewMetric() { + public V2PodsMetricSourceFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2PodsMetricSourceFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -89,25 +86,28 @@ public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget() { + public V2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target) { + public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { - this.target = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(target); + this.target = new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -115,26 +115,20 @@ public V2PodsMetricSourceFluent.TargetNested withNewTarget() { return new V2PodsMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { - return new io.kubernetes.client.openapi.models.V2PodsMetricSourceFluentImpl.TargetNestedImpl( - item); + public V2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { + return new V2PodsMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested editTarget() { + public V2PodsMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2PodsMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2PodsMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -168,17 +162,16 @@ public String toString() { class MetricNestedImpl extends V2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.MetricNested, - Nested { + implements V2PodsMetricSourceFluent.MetricNested, Nested { MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(this); + this.builder = new V2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder builder; + V2MetricIdentifierBuilder builder; public N and() { return (N) V2PodsMetricSourceFluentImpl.this.withMetric(builder.build()); @@ -191,17 +184,16 @@ public N endMetric() { class TargetNestedImpl extends V2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2PodsMetricSourceFluent.TargetNested, - io.kubernetes.client.fluent.Nested { - TargetNestedImpl(io.kubernetes.client.openapi.models.V2MetricTarget item) { + implements V2PodsMetricSourceFluent.TargetNested, Nested { + TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(this); + this.builder = new V2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricTargetBuilder builder; + V2MetricTargetBuilder builder; public N and() { return (N) V2PodsMetricSourceFluentImpl.this.withTarget(builder.build()); 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 4492b6608d..1171176141 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 @@ -16,8 +16,7 @@ public class V2PodsMetricStatusBuilder extends V2PodsMetricStatusFluentImpl - implements VisitableBuilder< - V2PodsMetricStatus, io.kubernetes.client.openapi.models.V2PodsMetricStatusBuilder> { + implements VisitableBuilder { public V2PodsMetricStatusBuilder() { this(false); } @@ -26,27 +25,21 @@ public V2PodsMetricStatusBuilder(Boolean validationEnabled) { this(new V2PodsMetricStatus(), validationEnabled); } - public V2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent fluent) { + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent) { this(fluent, false); } - public V2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2PodsMetricStatus(), validationEnabled); } public V2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2PodsMetricStatus instance) { + V2PodsMetricStatusFluent fluent, V2PodsMetricStatus instance) { this(fluent, instance, false); } public V2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2PodsMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2PodsMetricStatusFluent fluent, V2PodsMetricStatus instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -55,14 +48,11 @@ public V2PodsMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricStatus instance) { + public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance) { this(instance, false); } - public V2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2PodsMetricStatus instance, - java.lang.Boolean validationEnabled) { + public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -71,10 +61,10 @@ public V2PodsMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2PodsMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2PodsMetricStatus build() { + public V2PodsMetricStatus build() { V2PodsMetricStatus buildable = new V2PodsMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); 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 5232d78db7..cc75d96d56 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 @@ -26,52 +26,45 @@ public interface V2PodsMetricStatusFluent> @Deprecated public V2MetricValueStatus getCurrent(); - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent(); + public V2MetricValueStatus buildCurrent(); - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current); + public A withCurrent(V2MetricValueStatus current); public Boolean hasCurrent(); public V2PodsMetricStatusFluent.CurrentNested withNewCurrent(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2PodsMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - editCurrent(); + public V2PodsMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric(); + public V2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric); + public A withMetric(V2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2PodsMetricStatusFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2PodsMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested editMetric(); + public V2PodsMetricStatusFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested - editOrNewMetric(); + public V2PodsMetricStatusFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item); + public V2PodsMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item); public interface CurrentNested extends Nested, V2MetricValueStatusFluent> { @@ -81,8 +74,7 @@ public interface CurrentNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, - V2MetricIdentifierFluent> { + extends Nested, V2MetricIdentifierFluent> { public N and(); public N endMetric(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java index 646ec95e95..1fd865a9f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2PodsMetricStatusFluentImpl> extends BaseFluent implements V2PodsMetricStatusFluent { public V2PodsMetricStatusFluentImpl() {} - public V2PodsMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2PodsMetricStatus instance) { + public V2PodsMetricStatusFluentImpl(V2PodsMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); @@ -37,19 +36,22 @@ public V2PodsMetricStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2MetricValueStatus getCurrent() { + public V2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent() { + public V2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current) { + public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { this.current = new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -62,26 +64,20 @@ public V2PodsMetricStatusFluent.CurrentNested withNewCurrent() { return new V2PodsMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2PodsMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new V2PodsMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - editCurrent() { + public V2PodsMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } @@ -90,25 +86,28 @@ public V2PodsMetricStatusFluent.CurrentNested withNewCurrent() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricIdentifier buildMetric() { + public V2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2MetricIdentifier metric) { + public A withMetric(V2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(metric); + this.metric = new V2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -116,26 +115,20 @@ public V2PodsMetricStatusFluent.MetricNested withNewMetric() { return new V2PodsMetricStatusFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2PodsMetricStatusFluentImpl.MetricNestedImpl( - item); + public V2PodsMetricStatusFluent.MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new V2PodsMetricStatusFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested editMetric() { + public V2PodsMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested - editOrNewMetric() { + public V2PodsMetricStatusFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2MetricIdentifier item) { + public V2PodsMetricStatusFluent.MetricNested editOrNewMetricLike(V2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -169,17 +162,16 @@ public String toString() { class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.CurrentNested, - Nested { + implements V2PodsMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder(this); + this.builder = new V2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder builder; + V2MetricValueStatusBuilder builder; public N and() { return (N) V2PodsMetricStatusFluentImpl.this.withCurrent(builder.build()); @@ -192,17 +184,16 @@ public N endCurrent() { class MetricNestedImpl extends V2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2PodsMetricStatusFluent.MetricNested, - io.kubernetes.client.fluent.Nested { + implements V2PodsMetricStatusFluent.MetricNested, Nested { MetricNestedImpl(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder(this); + this.builder = new V2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricIdentifierBuilder builder; + V2MetricIdentifierBuilder builder; public N and() { return (N) V2PodsMetricStatusFluentImpl.this.withMetric(builder.build()); 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 a4d792e4cc..4051bb28cc 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 @@ -16,9 +16,7 @@ public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2ResourceMetricSource, - io.kubernetes.client.openapi.models.V2ResourceMetricSourceBuilder> { + implements VisitableBuilder { public V2ResourceMetricSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent) { } public V2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2ResourceMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2ResourceMetricSource(), validationEnabled); } public V2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ResourceMetricSource instance) { + V2ResourceMetricSourceFluent fluent, V2ResourceMetricSource instance) { this(fluent, instance, false); } public V2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2ResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2ResourceMetricSourceFluent fluent, + V2ResourceMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,11 @@ public V2ResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricSource instance) { + public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance) { this(instance, false); } - public V2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +64,10 @@ public V2ResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2ResourceMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ResourceMetricSource build() { + public V2ResourceMetricSource build() { V2ResourceMetricSource buildable = new V2ResourceMetricSource(); buildable.setName(fluent.getName()); buildable.setTarget(fluent.getTarget()); 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 661cd447da..822758ab21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java @@ -20,7 +20,7 @@ public interface V2ResourceMetricSourceFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); @@ -32,25 +32,21 @@ public interface V2ResourceMetricSourceFluent withNewTarget(); - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ResourceMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item); - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - editTarget(); + public V2ResourceMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2ResourceMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item); + public V2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item); public interface TargetNested extends Nested, V2MetricTargetFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java index bb30fa0f24..f2d2184fb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2ResourceMetricSourceFluentImpl implements V2ResourceMetricSourceFluent { public V2ResourceMetricSourceFluentImpl() {} - public V2ResourceMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2ResourceMetricSource instance) { + public V2ResourceMetricSourceFluentImpl(V2ResourceMetricSource instance) { this.withName(instance.getName()); this.withTarget(instance.getTarget()); @@ -31,11 +30,11 @@ public V2ResourceMetricSourceFluentImpl( private String name; private V2MetricTargetBuilder target; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -54,20 +53,23 @@ public V2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricTarget buildTarget() { + public V2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2MetricTarget target) { + public A withTarget(V2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { - this.target = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(target); + this.target = new V2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -75,26 +77,20 @@ public V2ResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2ResourceMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2ResourceMetricSourceFluent.TargetNested withNewTargetLike(V2MetricTarget item) { return new V2ResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - editTarget() { + public V2ResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2ResourceMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2MetricTarget item) { + public V2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike(V2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -111,7 +107,7 @@ public int hashCode() { return java.util.Objects.hash(name, target, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { @@ -128,17 +124,16 @@ public java.lang.String toString() { class TargetNestedImpl extends V2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2ResourceMetricSourceFluent.TargetNested, - Nested { - TargetNestedImpl(io.kubernetes.client.openapi.models.V2MetricTarget item) { + implements V2ResourceMetricSourceFluent.TargetNested, Nested { + TargetNestedImpl(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricTargetBuilder(this); + this.builder = new V2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricTargetBuilder builder; + V2MetricTargetBuilder builder; public N and() { return (N) V2ResourceMetricSourceFluentImpl.this.withTarget(builder.build()); 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 33f745c58c..fe4ef307b1 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 @@ -16,8 +16,7 @@ public class V2ResourceMetricStatusBuilder extends V2ResourceMetricStatusFluentImpl - implements VisitableBuilder< - V2ResourceMetricStatus, io.kubernetes.client.openapi.models.V2ResourceMetricStatusBuilder> { + implements VisitableBuilder { public V2ResourceMetricStatusBuilder() { this(false); } @@ -26,27 +25,24 @@ public V2ResourceMetricStatusBuilder(Boolean validationEnabled) { this(new V2ResourceMetricStatus(), validationEnabled); } - public V2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent fluent) { + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent) { this(fluent, false); } public V2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2ResourceMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2ResourceMetricStatus(), validationEnabled); } public V2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ResourceMetricStatus instance) { + V2ResourceMetricStatusFluent fluent, V2ResourceMetricStatus instance) { this(fluent, instance, false); } public V2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2ResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2ResourceMetricStatusFluent fluent, + V2ResourceMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -55,14 +51,11 @@ public V2ResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricStatus instance) { + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance) { this(instance, false); } - public V2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2ResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -71,10 +64,10 @@ public V2ResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2ResourceMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2ResourceMetricStatus build() { + public V2ResourceMetricStatus build() { V2ResourceMetricStatus buildable = new V2ResourceMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setName(fluent.getName()); 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 17ee125759..c6a6f6496b 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 @@ -27,31 +27,28 @@ public interface V2ResourceMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike(V2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - editCurrent(); + public V2ResourceMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item); + public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public interface CurrentNested extends Nested, V2MetricValueStatusFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java index aa25eeff36..9675d5da0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2ResourceMetricStatusFluentImpl implements V2ResourceMetricStatusFluent { public V2ResourceMetricStatusFluentImpl() {} - public V2ResourceMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2ResourceMetricStatus instance) { + public V2ResourceMetricStatusFluentImpl(V2ResourceMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); @@ -37,19 +36,22 @@ public V2ResourceMetricStatusFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2MetricValueStatus getCurrent() { + public V2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2MetricValueStatus buildCurrent() { + public V2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2MetricValueStatus current) { + public A withCurrent(V2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { this.current = new V2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -62,39 +64,35 @@ public V2ResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2ResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2MetricValueStatus item) { return new V2ResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - editCurrent() { + public V2ResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2MetricValueStatus item) { + public V2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -111,7 +109,7 @@ public int hashCode() { return java.util.Objects.hash(current, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (current != null) { @@ -128,17 +126,16 @@ public java.lang.String toString() { class CurrentNestedImpl extends V2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2ResourceMetricStatusFluent.CurrentNested, - Nested { + implements V2ResourceMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder(this); + this.builder = new V2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2MetricValueStatusBuilder builder; + V2MetricValueStatusBuilder builder; public N and() { return (N) V2ResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceBuilder.java deleted file mode 100644 index 60d93718d1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ContainerResourceMetricSourceBuilder - extends V2beta1ContainerResourceMetricSourceFluentImpl< - V2beta1ContainerResourceMetricSourceBuilder> - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource, - V2beta1ContainerResourceMetricSourceBuilder> { - public V2beta1ContainerResourceMetricSourceBuilder() { - this(false); - } - - public V2beta1ContainerResourceMetricSourceBuilder(Boolean validationEnabled) { - this(new V2beta1ContainerResourceMetricSource(), validationEnabled); - } - - public V2beta1ContainerResourceMetricSourceBuilder( - V2beta1ContainerResourceMetricSourceFluent fluent) { - this(fluent, false); - } - - public V2beta1ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ContainerResourceMetricSource(), validationEnabled); - } - - public V2beta1ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource instance) { - this(fluent, instance, false); - } - - public V2beta1ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withContainer(instance.getContainer()); - - fluent.withName(instance.getName()); - - fluent.withTargetAverageUtilization(instance.getTargetAverageUtilization()); - - fluent.withTargetAverageValue(instance.getTargetAverageValue()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource instance) { - this(instance, false); - } - - public V2beta1ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withContainer(instance.getContainer()); - - this.withName(instance.getName()); - - this.withTargetAverageUtilization(instance.getTargetAverageUtilization()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource build() { - V2beta1ContainerResourceMetricSource buildable = new V2beta1ContainerResourceMetricSource(); - buildable.setContainer(fluent.getContainer()); - buildable.setName(fluent.getName()); - buildable.setTargetAverageUtilization(fluent.getTargetAverageUtilization()); - buildable.setTargetAverageValue(fluent.getTargetAverageValue()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceFluent.java deleted file mode 100644 index 9666a606ef..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceFluent.java +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V2beta1ContainerResourceMetricSourceFluent< - A extends V2beta1ContainerResourceMetricSourceFluent> - extends Fluent { - public String getContainer(); - - public A withContainer(java.lang.String container); - - public Boolean hasContainer(); - - public java.lang.String getName(); - - public A withName(java.lang.String name); - - public java.lang.Boolean hasName(); - - public Integer getTargetAverageUtilization(); - - public A withTargetAverageUtilization(java.lang.Integer targetAverageUtilization); - - public java.lang.Boolean hasTargetAverageUtilization(); - - public Quantity getTargetAverageValue(); - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue); - - public java.lang.Boolean hasTargetAverageValue(); - - public A withNewTargetAverageValue(java.lang.String value); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceFluentImpl.java deleted file mode 100644 index 7c72297e06..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSourceFluentImpl.java +++ /dev/null @@ -1,141 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ContainerResourceMetricSourceFluentImpl< - A extends V2beta1ContainerResourceMetricSourceFluent> - extends BaseFluent implements V2beta1ContainerResourceMetricSourceFluent { - public V2beta1ContainerResourceMetricSourceFluentImpl() {} - - public V2beta1ContainerResourceMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource instance) { - this.withContainer(instance.getContainer()); - - this.withName(instance.getName()); - - this.withTargetAverageUtilization(instance.getTargetAverageUtilization()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - } - - private String container; - private java.lang.String name; - private Integer targetAverageUtilization; - private Quantity targetAverageValue; - - public java.lang.String getContainer() { - return this.container; - } - - public A withContainer(java.lang.String container) { - this.container = container; - return (A) this; - } - - public Boolean hasContainer() { - return this.container != null; - } - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.String name) { - this.name = name; - return (A) this; - } - - public java.lang.Boolean hasName() { - return this.name != null; - } - - public java.lang.Integer getTargetAverageUtilization() { - return this.targetAverageUtilization; - } - - public A withTargetAverageUtilization(java.lang.Integer targetAverageUtilization) { - this.targetAverageUtilization = targetAverageUtilization; - return (A) this; - } - - public java.lang.Boolean hasTargetAverageUtilization() { - return this.targetAverageUtilization != null; - } - - public io.kubernetes.client.custom.Quantity getTargetAverageValue() { - return this.targetAverageValue; - } - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - return (A) this; - } - - public java.lang.Boolean hasTargetAverageValue() { - return this.targetAverageValue != null; - } - - public A withNewTargetAverageValue(java.lang.String value) { - return (A) withTargetAverageValue(new Quantity(value)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ContainerResourceMetricSourceFluentImpl that = - (V2beta1ContainerResourceMetricSourceFluentImpl) o; - if (container != null ? !container.equals(that.container) : that.container != null) - return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (targetAverageUtilization != null - ? !targetAverageUtilization.equals(that.targetAverageUtilization) - : that.targetAverageUtilization != null) return false; - if (targetAverageValue != null - ? !targetAverageValue.equals(that.targetAverageValue) - : that.targetAverageValue != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - container, name, targetAverageUtilization, targetAverageValue, super.hashCode()); - } - - public java.lang.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 (targetAverageUtilization != null) { - sb.append("targetAverageUtilization:"); - sb.append(targetAverageUtilization + ","); - } - if (targetAverageValue != null) { - sb.append("targetAverageValue:"); - sb.append(targetAverageValue); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusBuilder.java deleted file mode 100644 index bc4cdf8fd9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ContainerResourceMetricStatusBuilder - extends V2beta1ContainerResourceMetricStatusFluentImpl< - V2beta1ContainerResourceMetricStatusBuilder> - implements VisitableBuilder< - V2beta1ContainerResourceMetricStatus, - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusBuilder> { - public V2beta1ContainerResourceMetricStatusBuilder() { - this(false); - } - - public V2beta1ContainerResourceMetricStatusBuilder(Boolean validationEnabled) { - this(new V2beta1ContainerResourceMetricStatus(), validationEnabled); - } - - public V2beta1ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ContainerResourceMetricStatus(), validationEnabled); - } - - public V2beta1ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus instance) { - this(fluent, instance, false); - } - - public V2beta1ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withContainer(instance.getContainer()); - - fluent.withCurrentAverageUtilization(instance.getCurrentAverageUtilization()); - - fluent.withCurrentAverageValue(instance.getCurrentAverageValue()); - - fluent.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus instance) { - this(instance, false); - } - - public V2beta1ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withContainer(instance.getContainer()); - - this.withCurrentAverageUtilization(instance.getCurrentAverageUtilization()); - - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus build() { - V2beta1ContainerResourceMetricStatus buildable = new V2beta1ContainerResourceMetricStatus(); - buildable.setContainer(fluent.getContainer()); - buildable.setCurrentAverageUtilization(fluent.getCurrentAverageUtilization()); - buildable.setCurrentAverageValue(fluent.getCurrentAverageValue()); - buildable.setName(fluent.getName()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusFluent.java deleted file mode 100644 index 61a4add81f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusFluent.java +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V2beta1ContainerResourceMetricStatusFluent< - A extends V2beta1ContainerResourceMetricStatusFluent> - extends Fluent { - public String getContainer(); - - public A withContainer(java.lang.String container); - - public Boolean hasContainer(); - - public Integer getCurrentAverageUtilization(); - - public A withCurrentAverageUtilization(java.lang.Integer currentAverageUtilization); - - public java.lang.Boolean hasCurrentAverageUtilization(); - - public Quantity getCurrentAverageValue(); - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue); - - public java.lang.Boolean hasCurrentAverageValue(); - - public A withNewCurrentAverageValue(java.lang.String value); - - public java.lang.String getName(); - - public A withName(java.lang.String name); - - public java.lang.Boolean hasName(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusFluentImpl.java deleted file mode 100644 index ddf08317f6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatusFluentImpl.java +++ /dev/null @@ -1,141 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ContainerResourceMetricStatusFluentImpl< - A extends V2beta1ContainerResourceMetricStatusFluent> - extends BaseFluent implements V2beta1ContainerResourceMetricStatusFluent { - public V2beta1ContainerResourceMetricStatusFluentImpl() {} - - public V2beta1ContainerResourceMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus instance) { - this.withContainer(instance.getContainer()); - - this.withCurrentAverageUtilization(instance.getCurrentAverageUtilization()); - - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withName(instance.getName()); - } - - private String container; - private Integer currentAverageUtilization; - private Quantity currentAverageValue; - private java.lang.String name; - - public java.lang.String getContainer() { - return this.container; - } - - public A withContainer(java.lang.String container) { - this.container = container; - return (A) this; - } - - public Boolean hasContainer() { - return this.container != null; - } - - public java.lang.Integer getCurrentAverageUtilization() { - return this.currentAverageUtilization; - } - - public A withCurrentAverageUtilization(java.lang.Integer currentAverageUtilization) { - this.currentAverageUtilization = currentAverageUtilization; - return (A) this; - } - - public java.lang.Boolean hasCurrentAverageUtilization() { - return this.currentAverageUtilization != null; - } - - public io.kubernetes.client.custom.Quantity getCurrentAverageValue() { - return this.currentAverageValue; - } - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - return (A) this; - } - - public java.lang.Boolean hasCurrentAverageValue() { - return this.currentAverageValue != null; - } - - public A withNewCurrentAverageValue(java.lang.String value) { - return (A) withCurrentAverageValue(new Quantity(value)); - } - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.String name) { - this.name = name; - return (A) this; - } - - public java.lang.Boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ContainerResourceMetricStatusFluentImpl that = - (V2beta1ContainerResourceMetricStatusFluentImpl) o; - if (container != null ? !container.equals(that.container) : that.container != null) - return false; - if (currentAverageUtilization != null - ? !currentAverageUtilization.equals(that.currentAverageUtilization) - : that.currentAverageUtilization != null) return false; - if (currentAverageValue != null - ? !currentAverageValue.equals(that.currentAverageValue) - : that.currentAverageValue != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - container, currentAverageUtilization, currentAverageValue, name, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (container != null) { - sb.append("container:"); - sb.append(container + ","); - } - if (currentAverageUtilization != null) { - sb.append("currentAverageUtilization:"); - sb.append(currentAverageUtilization + ","); - } - if (currentAverageValue != null) { - sb.append("currentAverageValue:"); - sb.append(currentAverageValue + ","); - } - 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/V2beta1CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceBuilder.java deleted file mode 100644 index a81a6c460e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1CrossVersionObjectReferenceBuilder - extends V2beta1CrossVersionObjectReferenceFluentImpl - implements VisitableBuilder< - V2beta1CrossVersionObjectReference, - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder> { - public V2beta1CrossVersionObjectReferenceBuilder() { - this(false); - } - - public V2beta1CrossVersionObjectReferenceBuilder(Boolean validationEnabled) { - this(new V2beta1CrossVersionObjectReference(), validationEnabled); - } - - public V2beta1CrossVersionObjectReferenceBuilder( - V2beta1CrossVersionObjectReferenceFluent fluent) { - this(fluent, false); - } - - public V2beta1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1CrossVersionObjectReference(), validationEnabled); - } - - public V2beta1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference instance) { - this(fluent, instance, false); - } - - public V2beta1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withKind(instance.getKind()); - - fluent.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference instance) { - this(instance, false); - } - - public V2beta1CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference build() { - V2beta1CrossVersionObjectReference buildable = new V2beta1CrossVersionObjectReference(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setName(fluent.getName()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceFluent.java deleted file mode 100644 index 68eff634fa..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceFluent.java +++ /dev/null @@ -1,38 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V2beta1CrossVersionObjectReferenceFluent< - A extends V2beta1CrossVersionObjectReferenceFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - public java.lang.String getName(); - - public A withName(java.lang.String name); - - public java.lang.Boolean hasName(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceFluentImpl.java deleted file mode 100644 index deb4854927..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReferenceFluentImpl.java +++ /dev/null @@ -1,110 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1CrossVersionObjectReferenceFluentImpl< - A extends V2beta1CrossVersionObjectReferenceFluent> - extends BaseFluent implements V2beta1CrossVersionObjectReferenceFluent { - public V2beta1CrossVersionObjectReferenceFluentImpl() {} - - public V2beta1CrossVersionObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withName(instance.getName()); - } - - private String apiVersion; - private java.lang.String kind; - private java.lang.String name; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.String name) { - this.name = name; - return (A) this; - } - - public java.lang.Boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1CrossVersionObjectReferenceFluentImpl that = - (V2beta1CrossVersionObjectReferenceFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceBuilder.java deleted file mode 100644 index 63f7fea33d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ExternalMetricSourceBuilder - extends V2beta1ExternalMetricSourceFluentImpl - implements VisitableBuilder< - V2beta1ExternalMetricSource, - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceBuilder> { - public V2beta1ExternalMetricSourceBuilder() { - this(false); - } - - public V2beta1ExternalMetricSourceBuilder(Boolean validationEnabled) { - this(new V2beta1ExternalMetricSource(), validationEnabled); - } - - public V2beta1ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent fluent) { - this(fluent, false); - } - - public V2beta1ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ExternalMetricSource(), validationEnabled); - } - - public V2beta1ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource instance) { - this(fluent, instance, false); - } - - public V2beta1ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMetricName(instance.getMetricName()); - - fluent.withMetricSelector(instance.getMetricSelector()); - - fluent.withTargetAverageValue(instance.getTargetAverageValue()); - - fluent.withTargetValue(instance.getTargetValue()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource instance) { - this(instance, false); - } - - public V2beta1ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMetricName(instance.getMetricName()); - - this.withMetricSelector(instance.getMetricSelector()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - - this.withTargetValue(instance.getTargetValue()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource build() { - V2beta1ExternalMetricSource buildable = new V2beta1ExternalMetricSource(); - buildable.setMetricName(fluent.getMetricName()); - buildable.setMetricSelector(fluent.getMetricSelector()); - buildable.setTargetAverageValue(fluent.getTargetAverageValue()); - buildable.setTargetValue(fluent.getTargetValue()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceFluent.java deleted file mode 100644 index f54f2e55fd..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceFluent.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1ExternalMetricSourceFluent> - extends Fluent { - public String getMetricName(); - - public A withMetricName(java.lang.String metricName); - - public Boolean hasMetricName(); - - /** - * This method has been deprecated, please use method buildMetricSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getMetricSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildMetricSelector(); - - public A withMetricSelector(io.kubernetes.client.openapi.models.V1LabelSelector metricSelector); - - public java.lang.Boolean hasMetricSelector(); - - public V2beta1ExternalMetricSourceFluent.MetricSelectorNested withNewMetricSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - withNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - editMetricSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - editOrNewMetricSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - editOrNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public Quantity getTargetAverageValue(); - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue); - - public java.lang.Boolean hasTargetAverageValue(); - - public A withNewTargetAverageValue(java.lang.String value); - - public io.kubernetes.client.custom.Quantity getTargetValue(); - - public A withTargetValue(io.kubernetes.client.custom.Quantity targetValue); - - public java.lang.Boolean hasTargetValue(); - - public A withNewTargetValue(java.lang.String value); - - public interface MetricSelectorNested - extends Nested, - V1LabelSelectorFluent> { - public N and(); - - public N endMetricSelector(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceFluentImpl.java deleted file mode 100644 index 5055bf811a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSourceFluentImpl.java +++ /dev/null @@ -1,215 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ExternalMetricSourceFluentImpl> - extends BaseFluent implements V2beta1ExternalMetricSourceFluent { - public V2beta1ExternalMetricSourceFluentImpl() {} - - public V2beta1ExternalMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource instance) { - this.withMetricName(instance.getMetricName()); - - this.withMetricSelector(instance.getMetricSelector()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - - this.withTargetValue(instance.getTargetValue()); - } - - private String metricName; - private V1LabelSelectorBuilder metricSelector; - private Quantity targetAverageValue; - private io.kubernetes.client.custom.Quantity targetValue; - - public java.lang.String getMetricName() { - return this.metricName; - } - - public A withMetricName(java.lang.String metricName) { - this.metricName = metricName; - return (A) this; - } - - public Boolean hasMetricName() { - return this.metricName != null; - } - - /** - * This method has been deprecated, please use method buildMetricSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getMetricSelector() { - return this.metricSelector != null ? this.metricSelector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildMetricSelector() { - return this.metricSelector != null ? this.metricSelector.build() : null; - } - - public A withMetricSelector(io.kubernetes.client.openapi.models.V1LabelSelector metricSelector) { - _visitables.get("metricSelector").remove(this.metricSelector); - if (metricSelector != null) { - this.metricSelector = new V1LabelSelectorBuilder(metricSelector); - _visitables.get("metricSelector").add(this.metricSelector); - } - return (A) this; - } - - public java.lang.Boolean hasMetricSelector() { - return this.metricSelector != null; - } - - public V2beta1ExternalMetricSourceFluent.MetricSelectorNested withNewMetricSelector() { - return new V2beta1ExternalMetricSourceFluentImpl.MetricSelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - withNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V2beta1ExternalMetricSourceFluentImpl.MetricSelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - editMetricSelector() { - return withNewMetricSelectorLike(getMetricSelector()); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - editOrNewMetricSelector() { - return withNewMetricSelectorLike( - getMetricSelector() != null - ? getMetricSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent.MetricSelectorNested< - A> - editOrNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewMetricSelectorLike(getMetricSelector() != null ? getMetricSelector() : item); - } - - public io.kubernetes.client.custom.Quantity getTargetAverageValue() { - return this.targetAverageValue; - } - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - return (A) this; - } - - public java.lang.Boolean hasTargetAverageValue() { - return this.targetAverageValue != null; - } - - public A withNewTargetAverageValue(java.lang.String value) { - return (A) withTargetAverageValue(new Quantity(value)); - } - - public io.kubernetes.client.custom.Quantity getTargetValue() { - return this.targetValue; - } - - public A withTargetValue(io.kubernetes.client.custom.Quantity targetValue) { - this.targetValue = targetValue; - return (A) this; - } - - public java.lang.Boolean hasTargetValue() { - return this.targetValue != null; - } - - public A withNewTargetValue(java.lang.String value) { - return (A) withTargetValue(new Quantity(value)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ExternalMetricSourceFluentImpl that = (V2beta1ExternalMetricSourceFluentImpl) o; - if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) - return false; - if (metricSelector != null - ? !metricSelector.equals(that.metricSelector) - : that.metricSelector != null) return false; - if (targetAverageValue != null - ? !targetAverageValue.equals(that.targetAverageValue) - : that.targetAverageValue != null) return false; - if (targetValue != null ? !targetValue.equals(that.targetValue) : that.targetValue != null) - return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - metricName, metricSelector, targetAverageValue, targetValue, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (metricName != null) { - sb.append("metricName:"); - sb.append(metricName + ","); - } - if (metricSelector != null) { - sb.append("metricSelector:"); - sb.append(metricSelector + ","); - } - if (targetAverageValue != null) { - sb.append("targetAverageValue:"); - sb.append(targetAverageValue + ","); - } - if (targetValue != null) { - sb.append("targetValue:"); - sb.append(targetValue); - } - sb.append("}"); - return sb.toString(); - } - - class MetricSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceFluent - .MetricSelectorNested< - N>, - Nested { - MetricSelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - MetricSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V2beta1ExternalMetricSourceFluentImpl.this.withMetricSelector(builder.build()); - } - - public N endMetricSelector() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusBuilder.java deleted file mode 100644 index 88621bcc52..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ExternalMetricStatusBuilder - extends V2beta1ExternalMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus, - V2beta1ExternalMetricStatusBuilder> { - public V2beta1ExternalMetricStatusBuilder() { - this(false); - } - - public V2beta1ExternalMetricStatusBuilder(Boolean validationEnabled) { - this(new V2beta1ExternalMetricStatus(), validationEnabled); - } - - public V2beta1ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ExternalMetricStatus(), validationEnabled); - } - - public V2beta1ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus instance) { - this(fluent, instance, false); - } - - public V2beta1ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withCurrentAverageValue(instance.getCurrentAverageValue()); - - fluent.withCurrentValue(instance.getCurrentValue()); - - fluent.withMetricName(instance.getMetricName()); - - fluent.withMetricSelector(instance.getMetricSelector()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus instance) { - this(instance, false); - } - - public V2beta1ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withCurrentValue(instance.getCurrentValue()); - - this.withMetricName(instance.getMetricName()); - - this.withMetricSelector(instance.getMetricSelector()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus build() { - V2beta1ExternalMetricStatus buildable = new V2beta1ExternalMetricStatus(); - buildable.setCurrentAverageValue(fluent.getCurrentAverageValue()); - buildable.setCurrentValue(fluent.getCurrentValue()); - buildable.setMetricName(fluent.getMetricName()); - buildable.setMetricSelector(fluent.getMetricSelector()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluent.java deleted file mode 100644 index 80b35912d7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluent.java +++ /dev/null @@ -1,83 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1ExternalMetricStatusFluent> - extends Fluent { - public Quantity getCurrentAverageValue(); - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue); - - public Boolean hasCurrentAverageValue(); - - public A withNewCurrentAverageValue(String value); - - public io.kubernetes.client.custom.Quantity getCurrentValue(); - - public A withCurrentValue(io.kubernetes.client.custom.Quantity currentValue); - - public java.lang.Boolean hasCurrentValue(); - - public A withNewCurrentValue(java.lang.String value); - - public java.lang.String getMetricName(); - - public A withMetricName(java.lang.String metricName); - - public java.lang.Boolean hasMetricName(); - - /** - * This method has been deprecated, please use method buildMetricSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getMetricSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildMetricSelector(); - - public A withMetricSelector(io.kubernetes.client.openapi.models.V1LabelSelector metricSelector); - - public java.lang.Boolean hasMetricSelector(); - - public V2beta1ExternalMetricStatusFluent.MetricSelectorNested withNewMetricSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - withNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - editMetricSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - editOrNewMetricSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - editOrNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public interface MetricSelectorNested - extends Nested, - V1LabelSelectorFluent> { - public N and(); - - public N endMetricSelector(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluentImpl.java deleted file mode 100644 index af5f556321..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluentImpl.java +++ /dev/null @@ -1,215 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ExternalMetricStatusFluentImpl> - extends BaseFluent implements V2beta1ExternalMetricStatusFluent { - public V2beta1ExternalMetricStatusFluentImpl() {} - - public V2beta1ExternalMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus instance) { - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withCurrentValue(instance.getCurrentValue()); - - this.withMetricName(instance.getMetricName()); - - this.withMetricSelector(instance.getMetricSelector()); - } - - private Quantity currentAverageValue; - private io.kubernetes.client.custom.Quantity currentValue; - private String metricName; - private V1LabelSelectorBuilder metricSelector; - - public io.kubernetes.client.custom.Quantity getCurrentAverageValue() { - return this.currentAverageValue; - } - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - return (A) this; - } - - public Boolean hasCurrentAverageValue() { - return this.currentAverageValue != null; - } - - public A withNewCurrentAverageValue(java.lang.String value) { - return (A) withCurrentAverageValue(new Quantity(value)); - } - - public io.kubernetes.client.custom.Quantity getCurrentValue() { - return this.currentValue; - } - - public A withCurrentValue(io.kubernetes.client.custom.Quantity currentValue) { - this.currentValue = currentValue; - return (A) this; - } - - public java.lang.Boolean hasCurrentValue() { - return this.currentValue != null; - } - - public A withNewCurrentValue(java.lang.String value) { - return (A) withCurrentValue(new Quantity(value)); - } - - public java.lang.String getMetricName() { - return this.metricName; - } - - public A withMetricName(java.lang.String metricName) { - this.metricName = metricName; - return (A) this; - } - - public java.lang.Boolean hasMetricName() { - return this.metricName != null; - } - - /** - * This method has been deprecated, please use method buildMetricSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getMetricSelector() { - return this.metricSelector != null ? this.metricSelector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildMetricSelector() { - return this.metricSelector != null ? this.metricSelector.build() : null; - } - - public A withMetricSelector(io.kubernetes.client.openapi.models.V1LabelSelector metricSelector) { - _visitables.get("metricSelector").remove(this.metricSelector); - if (metricSelector != null) { - this.metricSelector = new V1LabelSelectorBuilder(metricSelector); - _visitables.get("metricSelector").add(this.metricSelector); - } - return (A) this; - } - - public java.lang.Boolean hasMetricSelector() { - return this.metricSelector != null; - } - - public V2beta1ExternalMetricStatusFluent.MetricSelectorNested withNewMetricSelector() { - return new V2beta1ExternalMetricStatusFluentImpl.MetricSelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - withNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V2beta1ExternalMetricStatusFluentImpl.MetricSelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - editMetricSelector() { - return withNewMetricSelectorLike(getMetricSelector()); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - editOrNewMetricSelector() { - return withNewMetricSelectorLike( - getMetricSelector() != null - ? getMetricSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent.MetricSelectorNested< - A> - editOrNewMetricSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewMetricSelectorLike(getMetricSelector() != null ? getMetricSelector() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ExternalMetricStatusFluentImpl that = (V2beta1ExternalMetricStatusFluentImpl) o; - if (currentAverageValue != null - ? !currentAverageValue.equals(that.currentAverageValue) - : that.currentAverageValue != null) return false; - if (currentValue != null ? !currentValue.equals(that.currentValue) : that.currentValue != null) - return false; - if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) - return false; - if (metricSelector != null - ? !metricSelector.equals(that.metricSelector) - : that.metricSelector != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - currentAverageValue, currentValue, metricName, metricSelector, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (currentAverageValue != null) { - sb.append("currentAverageValue:"); - sb.append(currentAverageValue + ","); - } - if (currentValue != null) { - sb.append("currentValue:"); - sb.append(currentValue + ","); - } - if (metricName != null) { - sb.append("metricName:"); - sb.append(metricName + ","); - } - if (metricSelector != null) { - sb.append("metricSelector:"); - sb.append(metricSelector); - } - sb.append("}"); - return sb.toString(); - } - - class MetricSelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusFluent - .MetricSelectorNested< - N>, - Nested { - MetricSelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - MetricSelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V2beta1ExternalMetricStatusFluentImpl.this.withMetricSelector(builder.build()); - } - - public N endMetricSelector() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerBuilder.java deleted file mode 100644 index 029ceb061a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1HorizontalPodAutoscalerBuilder - extends V2beta1HorizontalPodAutoscalerFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler, - V2beta1HorizontalPodAutoscalerBuilder> { - public V2beta1HorizontalPodAutoscalerBuilder() { - this(false); - } - - public V2beta1HorizontalPodAutoscalerBuilder(Boolean validationEnabled) { - this(new V2beta1HorizontalPodAutoscaler(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerBuilder(V2beta1HorizontalPodAutoscalerFluent fluent) { - this(fluent, false); - } - - public V2beta1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1HorizontalPodAutoscaler(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler instance) { - this(fluent, instance, false); - } - - public V2beta1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - fluent.withSpec(instance.getSpec()); - - fluent.withStatus(instance.getStatus()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler instance) { - this(instance, false); - } - - public V2beta1HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.withStatus(instance.getStatus()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler build() { - V2beta1HorizontalPodAutoscaler buildable = new V2beta1HorizontalPodAutoscaler(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - buildable.setSpec(fluent.getSpec()); - buildable.setStatus(fluent.getStatus()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionBuilder.java deleted file mode 100644 index d6c670dd7d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1HorizontalPodAutoscalerConditionBuilder - extends V2beta1HorizontalPodAutoscalerConditionFluentImpl< - V2beta1HorizontalPodAutoscalerConditionBuilder> - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder> { - public V2beta1HorizontalPodAutoscalerConditionBuilder() { - this(false); - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder(Boolean validationEnabled) { - this(new V2beta1HorizontalPodAutoscalerCondition(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder( - V2beta1HorizontalPodAutoscalerConditionFluent fluent) { - this(fluent, false); - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1HorizontalPodAutoscalerCondition(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition instance) { - this(fluent, instance, false); - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withLastTransitionTime(instance.getLastTransitionTime()); - - fluent.withMessage(instance.getMessage()); - - fluent.withReason(instance.getReason()); - - fluent.withStatus(instance.getStatus()); - - fluent.withType(instance.getType()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition instance) { - this(instance, false); - } - - public V2beta1HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withLastTransitionTime(instance.getLastTransitionTime()); - - this.withMessage(instance.getMessage()); - - this.withReason(instance.getReason()); - - this.withStatus(instance.getStatus()); - - this.withType(instance.getType()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition build() { - V2beta1HorizontalPodAutoscalerCondition buildable = - new V2beta1HorizontalPodAutoscalerCondition(); - buildable.setLastTransitionTime(fluent.getLastTransitionTime()); - buildable.setMessage(fluent.getMessage()); - buildable.setReason(fluent.getReason()); - buildable.setStatus(fluent.getStatus()); - buildable.setType(fluent.getType()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionFluent.java deleted file mode 100644 index cda1a6b619..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionFluent.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import java.time.OffsetDateTime; - -/** Generated */ -public interface V2beta1HorizontalPodAutoscalerConditionFluent< - A extends V2beta1HorizontalPodAutoscalerConditionFluent> - extends Fluent { - public OffsetDateTime getLastTransitionTime(); - - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); - - public Boolean hasLastTransitionTime(); - - public String getMessage(); - - public A withMessage(java.lang.String message); - - public java.lang.Boolean hasMessage(); - - public java.lang.String getReason(); - - public A withReason(java.lang.String reason); - - public java.lang.Boolean hasReason(); - - public java.lang.String getStatus(); - - public A withStatus(java.lang.String status); - - public java.lang.Boolean hasStatus(); - - public java.lang.String getType(); - - public A withType(java.lang.String type); - - public java.lang.Boolean hasType(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionFluentImpl.java deleted file mode 100644 index 434d730aa5..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerConditionFluentImpl.java +++ /dev/null @@ -1,155 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import java.time.OffsetDateTime; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1HorizontalPodAutoscalerConditionFluentImpl< - A extends V2beta1HorizontalPodAutoscalerConditionFluent> - extends BaseFluent implements V2beta1HorizontalPodAutoscalerConditionFluent { - public V2beta1HorizontalPodAutoscalerConditionFluentImpl() {} - - public V2beta1HorizontalPodAutoscalerConditionFluentImpl( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition instance) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - - this.withMessage(instance.getMessage()); - - this.withReason(instance.getReason()); - - this.withStatus(instance.getStatus()); - - this.withType(instance.getType()); - } - - private OffsetDateTime lastTransitionTime; - private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; - - public java.time.OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; - } - - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; - } - - public Boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; - } - - public java.lang.String getMessage() { - return this.message; - } - - public A withMessage(java.lang.String message) { - this.message = message; - return (A) this; - } - - public java.lang.Boolean hasMessage() { - return this.message != null; - } - - public java.lang.String getReason() { - return this.reason; - } - - public A withReason(java.lang.String reason) { - this.reason = reason; - return (A) this; - } - - public java.lang.Boolean hasReason() { - return this.reason != null; - } - - public java.lang.String getStatus() { - return this.status; - } - - public A withStatus(java.lang.String status) { - this.status = status; - return (A) this; - } - - public java.lang.Boolean hasStatus() { - return this.status != null; - } - - public java.lang.String getType() { - return this.type; - } - - public A withType(java.lang.String type) { - this.type = type; - return (A) this; - } - - public java.lang.Boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1HorizontalPodAutoscalerConditionFluentImpl that = - (V2beta1HorizontalPodAutoscalerConditionFluentImpl) o; - if (lastTransitionTime != null - ? !lastTransitionTime.equals(that.lastTransitionTime) - : that.lastTransitionTime != null) return false; - if (message != null ? !message.equals(that.message) : that.message != null) return false; - if (reason != null ? !reason.equals(that.reason) : that.reason != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - lastTransitionTime, message, reason, status, type, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerFluent.java deleted file mode 100644 index 091122e020..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerFluent.java +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1HorizontalPodAutoscalerFluent< - A extends V2beta1HorizontalPodAutoscalerFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public V1ObjectMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V2beta1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - editMetadata(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1HorizontalPodAutoscalerSpec getSpec(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec buildSpec(); - - public A withSpec(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec spec); - - public java.lang.Boolean hasSpec(); - - public V2beta1HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - editSpec(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec item); - - /** - * This method has been deprecated, please use method buildStatus instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1HorizontalPodAutoscalerStatus getStatus(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus buildStatus(); - - public A withStatus( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus status); - - public java.lang.Boolean hasStatus(); - - public V2beta1HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - editStatus(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus item); - - public interface MetadataNested - extends Nested, - V1ObjectMetaFluent> { - public N and(); - - public N endMetadata(); - } - - public interface SpecNested - extends io.kubernetes.client.fluent.Nested, - V2beta1HorizontalPodAutoscalerSpecFluent< - V2beta1HorizontalPodAutoscalerFluent.SpecNested> { - public N and(); - - public N endSpec(); - } - - public interface StatusNested - extends io.kubernetes.client.fluent.Nested, - V2beta1HorizontalPodAutoscalerStatusFluent< - V2beta1HorizontalPodAutoscalerFluent.StatusNested> { - public N and(); - - public N endStatus(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerFluentImpl.java deleted file mode 100644 index 27cfd251c1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerFluentImpl.java +++ /dev/null @@ -1,366 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1HorizontalPodAutoscalerFluentImpl< - A extends V2beta1HorizontalPodAutoscalerFluent> - extends BaseFluent implements V2beta1HorizontalPodAutoscalerFluent { - public V2beta1HorizontalPodAutoscalerFluentImpl() {} - - public V2beta1HorizontalPodAutoscalerFluentImpl( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.withSpec(instance.getSpec()); - - this.withStatus(instance.getStatus()); - } - - private String apiVersion; - private java.lang.String kind; - private V1ObjectMetaBuilder metadata; - private V2beta1HorizontalPodAutoscalerSpecBuilder spec; - private V2beta1HorizontalPodAutoscalerStatusBuilder status; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ObjectMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V2beta1HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() { - return new V2beta1HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return new V2beta1HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - /** - * This method has been deprecated, please use method buildSpec instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1HorizontalPodAutoscalerSpec getSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec spec) { - _visitables.get("spec").remove(this.spec); - if (spec != null) { - this.spec = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecBuilder(spec); - _visitables.get("spec").add(this.spec); - } - return (A) this; - } - - public java.lang.Boolean hasSpec() { - return this.spec != null; - } - - public V2beta1HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { - return new V2beta1HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluentImpl - .SpecNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - editSpec() { - return withNewSpecLike(getSpec()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec() { - return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(getSpec() != null ? getSpec() : item); - } - - /** - * This method has been deprecated, please use method buildStatus instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1HorizontalPodAutoscalerStatus getStatus() { - return this.status != null ? this.status.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus status) { - _visitables.get("status").remove(this.status); - if (status != null) { - this.status = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusBuilder( - status); - _visitables.get("status").add(this.status); - } - return (A) this; - } - - public java.lang.Boolean hasStatus() { - return this.status != null; - } - - public V2beta1HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { - return new V2beta1HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluentImpl - .StatusNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - editStatus() { - return withNewStatusLike(getStatus()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus() { - return withNewStatusLike( - getStatus() != null - ? getStatus() - : new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus item) { - return withNewStatusLike(getStatus() != null ? getStatus() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1HorizontalPodAutoscalerFluentImpl that = (V2beta1HorizontalPodAutoscalerFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - if (spec != null ? !spec.equals(that.spec) : that.spec != null) return false; - if (status != null ? !status.equals(that.status) : that.status != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); - } - - public java.lang.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(); - } - - class MetadataNestedImpl - extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent - .MetadataNested< - N>, - Nested { - MetadataNestedImpl(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; - - public N and() { - return (N) V2beta1HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } - - class SpecNestedImpl - extends V2beta1HorizontalPodAutoscalerSpecFluentImpl< - V2beta1HorizontalPodAutoscalerFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent - .SpecNested< - N>, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec item) { - this.builder = new V2beta1HorizontalPodAutoscalerSpecBuilder(this, item); - } - - SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecBuilder builder; - - public N and() { - return (N) V2beta1HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - } - - class StatusNestedImpl - extends V2beta1HorizontalPodAutoscalerStatusFluentImpl< - V2beta1HorizontalPodAutoscalerFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerFluent - .StatusNested< - N>, - io.kubernetes.client.fluent.Nested { - StatusNestedImpl( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus item) { - this.builder = new V2beta1HorizontalPodAutoscalerStatusBuilder(this, item); - } - - StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusBuilder builder; - - public N and() { - return (N) V2beta1HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); - } - - public N endStatus() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListBuilder.java deleted file mode 100644 index 84308e030e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1HorizontalPodAutoscalerListBuilder - extends V2beta1HorizontalPodAutoscalerListFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListBuilder> { - public V2beta1HorizontalPodAutoscalerListBuilder() { - this(false); - } - - public V2beta1HorizontalPodAutoscalerListBuilder(Boolean validationEnabled) { - this(new V2beta1HorizontalPodAutoscalerList(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerListBuilder( - V2beta1HorizontalPodAutoscalerListFluent fluent) { - this(fluent, false); - } - - public V2beta1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1HorizontalPodAutoscalerList(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList instance) { - this(fluent, instance, false); - } - - public V2beta1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withApiVersion(instance.getApiVersion()); - - fluent.withItems(instance.getItems()); - - fluent.withKind(instance.getKind()); - - fluent.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList instance) { - this(instance, false); - } - - public V2beta1HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList build() { - V2beta1HorizontalPodAutoscalerList buildable = new V2beta1HorizontalPodAutoscalerList(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setItems(fluent.getItems()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.getMetadata()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListFluent.java deleted file mode 100644 index 49539d6f86..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListFluent.java +++ /dev/null @@ -1,170 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2beta1HorizontalPodAutoscalerListFluent< - A extends V2beta1HorizontalPodAutoscalerListFluent> - extends Fluent { - public String getApiVersion(); - - public A withApiVersion(java.lang.String apiVersion); - - public Boolean hasApiVersion(); - - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item); - - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item); - - public A addToItems(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler... items); - - public A addAllToItems( - Collection items); - - public A removeFromItems( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler... items); - - public A removeAllFromItems( - java.util.Collection - items); - - public A removeMatchingFromItems(Predicate predicate); - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems(); - - public java.util.List - buildItems(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildItem( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildFirstItem(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildLastItem(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder> - predicate); - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder> - predicate); - - public A withItems( - java.util.List items); - - public A withItems(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler... items); - - public java.lang.Boolean hasItems(); - - public V2beta1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); - - public V2beta1HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder> - predicate); - - public java.lang.String getKind(); - - public A withKind(java.lang.String kind); - - public java.lang.Boolean hasKind(); - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V1ListMeta getMetadata(); - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); - - public java.lang.Boolean hasMetadata(); - - public V2beta1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editMetadata(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadata(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); - - public interface ItemsNested - extends Nested, - V2beta1HorizontalPodAutoscalerFluent< - V2beta1HorizontalPodAutoscalerListFluent.ItemsNested> { - public N and(); - - public N endItem(); - } - - public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, - V1ListMetaFluent> { - public N and(); - - public N endMetadata(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListFluentImpl.java deleted file mode 100644 index cc41a2f7d4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerListFluentImpl.java +++ /dev/null @@ -1,477 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1HorizontalPodAutoscalerListFluentImpl< - A extends V2beta1HorizontalPodAutoscalerListFluent> - extends BaseFluent implements V2beta1HorizontalPodAutoscalerListFluent { - public V2beta1HorizontalPodAutoscalerListFluentImpl() {} - - public V2beta1HorizontalPodAutoscalerListFluentImpl(V2beta1HorizontalPodAutoscalerList instance) { - this.withApiVersion(instance.getApiVersion()); - - this.withItems(instance.getItems()); - - this.withKind(instance.getKind()); - - this.withMetadata(instance.getMetadata()); - } - - private String apiVersion; - private ArrayList items; - private java.lang.String kind; - private V1ListMetaBuilder metadata; - - public java.lang.String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; - } - - public Boolean hasApiVersion() { - return this.apiVersion != null; - } - - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder>(); - } - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); - this.items.add(index >= 0 ? index : items.size(), builder); - return (A) this; - } - - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder>(); - } - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= _visitables.get("items").size()) { - _visitables.get("items").add(builder); - } else { - _visitables.get("items").set(index, builder); - } - if (index < 0 || index >= items.size()) { - items.add(builder); - } else { - items.set(index, builder); - } - return (A) this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler... items) { - if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder>(); - } - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(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 java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder>(); - } - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); - this.items.add(builder); - } - return (A) this; - } - - public A removeFromItems( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler... items) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - this.items.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromItems( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").remove(builder); - if (this.items != null) { - 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()) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder = - each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildItems instead. - * - * @return The buildable object. - */ - @Deprecated - public List getItems() { - return items != null ? build(items) : null; - } - - public java.util.List - buildItems() { - return items != null ? build(items) : null; - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildItem( - java.lang.Integer index) { - return this.items.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildFirstItem() { - return this.items.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withItems( - java.util.List items) { - if (this.items != null) { - _visitables.get("items").removeAll(this.items); - } - if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler... items) { - if (this.items != null) { - this.items.clear(); - } - if (items != null) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item : items) { - this.addToItems(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasItems() { - return items != null && !items.isEmpty(); - } - - public V2beta1HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { - return new V2beta1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item) { - return new V2beta1HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluentImpl - .ItemsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index) { - if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); - return setNewItemLike(index, buildItem(index)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem() { - if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); - return setNewItemLike(0, buildItem(0)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.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 io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder> - 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("Can't edit matching items. No match found."); - return setNewItemLike(index, buildItem(index)); - } - - public java.lang.String getKind() { - return this.kind; - } - - public A withKind(java.lang.String kind) { - this.kind = kind; - return (A) this; - } - - public java.lang.Boolean hasKind() { - return this.kind != null; - } - - /** - * This method has been deprecated, please use method buildMetadata instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; - } - - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { - _visitables.get("metadata").remove(this.metadata); - if (metadata != null) { - this.metadata = new V1ListMetaBuilder(metadata); - _visitables.get("metadata").add(this.metadata); - } - return (A) this; - } - - public java.lang.Boolean hasMetadata() { - return this.metadata != null; - } - - public V2beta1HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata() { - return new V2beta1HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluentImpl - .MetadataNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editMetadata() { - return withNewMetadataLike(getMetadata()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadata() { - return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1HorizontalPodAutoscalerListFluentImpl that = - (V2beta1HorizontalPodAutoscalerListFluentImpl) o; - if (apiVersion != null ? !apiVersion.equals(that.apiVersion) : that.apiVersion != null) - return false; - if (items != null ? !items.equals(that.items) : that.items != null) return false; - if (kind != null ? !kind.equals(that.kind) : that.kind != null) return false; - if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); - } - - public java.lang.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(); - } - - class ItemsNestedImpl - extends V2beta1HorizontalPodAutoscalerFluentImpl< - V2beta1HorizontalPodAutoscalerListFluent.ItemsNested> - implements V2beta1HorizontalPodAutoscalerListFluent.ItemsNested, Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler item) { - this.index = index; - this.builder = new V2beta1HorizontalPodAutoscalerBuilder(this, item); - } - - ItemsNestedImpl() { - this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V2beta1HorizontalPodAutoscalerListFluentImpl.this.setToItems(index, builder.build()); - } - - public N endItem() { - return and(); - } - } - - class MetadataNestedImpl - extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { - MetadataNestedImpl(V1ListMeta item) { - this.builder = new V1ListMetaBuilder(this, item); - } - - MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); - } - - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; - - public N and() { - return (N) V2beta1HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecBuilder.java deleted file mode 100644 index fadf8c5daf..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1HorizontalPodAutoscalerSpecBuilder - extends V2beta1HorizontalPodAutoscalerSpecFluentImpl - implements VisitableBuilder< - V2beta1HorizontalPodAutoscalerSpec, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecBuilder> { - public V2beta1HorizontalPodAutoscalerSpecBuilder() { - this(false); - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { - this(new V2beta1HorizontalPodAutoscalerSpec(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent fluent) { - this(fluent, false); - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1HorizontalPodAutoscalerSpec(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec instance) { - this(fluent, instance, false); - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMaxReplicas(instance.getMaxReplicas()); - - fluent.withMetrics(instance.getMetrics()); - - fluent.withMinReplicas(instance.getMinReplicas()); - - fluent.withScaleTargetRef(instance.getScaleTargetRef()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec instance) { - this(instance, false); - } - - public V2beta1HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMaxReplicas(instance.getMaxReplicas()); - - this.withMetrics(instance.getMetrics()); - - this.withMinReplicas(instance.getMinReplicas()); - - this.withScaleTargetRef(instance.getScaleTargetRef()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec build() { - V2beta1HorizontalPodAutoscalerSpec buildable = new V2beta1HorizontalPodAutoscalerSpec(); - buildable.setMaxReplicas(fluent.getMaxReplicas()); - buildable.setMetrics(fluent.getMetrics()); - buildable.setMinReplicas(fluent.getMinReplicas()); - buildable.setScaleTargetRef(fluent.getScaleTargetRef()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecFluent.java deleted file mode 100644 index 20900ca14f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecFluent.java +++ /dev/null @@ -1,169 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2beta1HorizontalPodAutoscalerSpecFluent< - A extends V2beta1HorizontalPodAutoscalerSpecFluent> - extends Fluent { - public Integer getMaxReplicas(); - - public A withMaxReplicas(java.lang.Integer maxReplicas); - - public Boolean hasMaxReplicas(); - - public A addToMetrics(java.lang.Integer index, V2beta1MetricSpec item); - - public A setToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricSpec item); - - public A addToMetrics(io.kubernetes.client.openapi.models.V2beta1MetricSpec... items); - - public A addAllToMetrics(Collection items); - - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta1MetricSpec... items); - - public A removeAllFromMetrics( - java.util.Collection items); - - public A removeMatchingFromMetrics(Predicate predicate); - - /** - * This method has been deprecated, please use method buildMetrics instead. - * - * @return The buildable object. - */ - @Deprecated - public List getMetrics(); - - public java.util.List buildMetrics(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildMetric(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildFirstMetric(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildLastMetric(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildMatchingMetric( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingMetric( - java.util.function.Predicate - predicate); - - public A withMetrics( - java.util.List metrics); - - public A withMetrics(io.kubernetes.client.openapi.models.V2beta1MetricSpec... metrics); - - public java.lang.Boolean hasMetrics(); - - public V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - addNewMetricLike(io.kubernetes.client.openapi.models.V2beta1MetricSpec item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - setNewMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricSpec item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMetric(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editFirstMetric(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editLastMetric(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMatchingMetric( - java.util.function.Predicate - predicate); - - public java.lang.Integer getMinReplicas(); - - public A withMinReplicas(java.lang.Integer minReplicas); - - public java.lang.Boolean hasMinReplicas(); - - /** - * This method has been deprecated, please use method buildScaleTargetRef instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1CrossVersionObjectReference getScaleTargetRef(); - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference - buildScaleTargetRef(); - - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference scaleTargetRef); - - public java.lang.Boolean hasScaleTargetRef(); - - public V2beta1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item); - - public interface MetricsNested - extends Nested, - V2beta1MetricSpecFluent> { - public N and(); - - public N endMetric(); - } - - public interface ScaleTargetRefNested - extends io.kubernetes.client.fluent.Nested, - V2beta1CrossVersionObjectReferenceFluent< - V2beta1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> { - public N and(); - - public N endScaleTargetRef(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecFluentImpl.java deleted file mode 100644 index 7912a60223..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpecFluentImpl.java +++ /dev/null @@ -1,484 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1HorizontalPodAutoscalerSpecFluentImpl< - A extends V2beta1HorizontalPodAutoscalerSpecFluent> - extends BaseFluent implements V2beta1HorizontalPodAutoscalerSpecFluent { - public V2beta1HorizontalPodAutoscalerSpecFluentImpl() {} - - public V2beta1HorizontalPodAutoscalerSpecFluentImpl( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpec instance) { - this.withMaxReplicas(instance.getMaxReplicas()); - - this.withMetrics(instance.getMetrics()); - - this.withMinReplicas(instance.getMinReplicas()); - - this.withScaleTargetRef(instance.getScaleTargetRef()); - } - - private Integer maxReplicas; - private ArrayList metrics; - private java.lang.Integer minReplicas; - private V2beta1CrossVersionObjectReferenceBuilder scaleTargetRef; - - public java.lang.Integer getMaxReplicas() { - return this.maxReplicas; - } - - public A withMaxReplicas(java.lang.Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; - } - - public Boolean hasMaxReplicas() { - return this.maxReplicas != null; - } - - public A addToMetrics(java.lang.Integer index, V2beta1MetricSpec item) { - if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(item); - _visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder); - this.metrics.add(index >= 0 ? index : metrics.size(), builder); - return (A) this; - } - - public A setToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricSpec item) { - if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(item); - if (index < 0 || index >= _visitables.get("metrics").size()) { - _visitables.get("metrics").add(builder); - } else { - _visitables.get("metrics").set(index, builder); - } - if (index < 0 || index >= metrics.size()) { - metrics.add(builder); - } else { - metrics.set(index, builder); - } - return (A) this; - } - - public A addToMetrics(io.kubernetes.client.openapi.models.V2beta1MetricSpec... items) { - if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V2beta1MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(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 java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V2beta1MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); - this.metrics.add(builder); - } - return (A) this; - } - - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta1MetricSpec... items) { - for (io.kubernetes.client.openapi.models.V2beta1MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - if (this.metrics != null) { - this.metrics.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromMetrics( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2beta1MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(item); - _visitables.get("metrics").remove(builder); - if (this.metrics != null) { - 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"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildMetrics instead. - * - * @return The buildable object. - */ - @Deprecated - public List getMetrics() { - return metrics != null ? build(metrics) : null; - } - - public java.util.List buildMetrics() { - return metrics != null ? build(metrics) : null; - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildMetric( - java.lang.Integer index) { - return this.metrics.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildFirstMetric() { - return this.metrics.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildLastMetric() { - return this.metrics.get(metrics.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec buildMatchingMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withMetrics( - java.util.List metrics) { - if (this.metrics != null) { - _visitables.get("metrics").removeAll(this.metrics); - } - if (metrics != null) { - this.metrics = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta1MetricSpec item : metrics) { - this.addToMetrics(item); - } - } else { - this.metrics = null; - } - return (A) this; - } - - public A withMetrics(io.kubernetes.client.openapi.models.V2beta1MetricSpec... metrics) { - if (this.metrics != null) { - this.metrics.clear(); - } - if (metrics != null) { - for (io.kubernetes.client.openapi.models.V2beta1MetricSpec item : metrics) { - this.addToMetrics(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasMetrics() { - return metrics != null && !metrics.isEmpty(); - } - - public V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() { - return new V2beta1HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - addNewMetricLike(io.kubernetes.client.openapi.models.V2beta1MetricSpec item) { - return new V2beta1HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - setNewMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricSpec item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluentImpl - .MetricsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMetric(java.lang.Integer index) { - if (metrics.size() <= index) - throw new RuntimeException("Can't edit metrics. Index exceeds size."); - return setNewMetricLike(index, buildMetric(index)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editFirstMetric() { - if (metrics.size() == 0) - throw new RuntimeException("Can't edit first metrics. The list is empty."); - return setNewMetricLike(0, buildMetric(0)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - 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)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMatchingMetric( - java.util.function.Predicate - predicate) { - int index = -1; - for (int i = 0; i < metrics.size(); i++) { - if (predicate.test(metrics.get(i))) { - index = i; - break; - } - } - if (index < 0) throw new RuntimeException("Can't edit matching metrics. No match found."); - return setNewMetricLike(index, buildMetric(index)); - } - - public java.lang.Integer getMinReplicas() { - return this.minReplicas; - } - - public A withMinReplicas(java.lang.Integer minReplicas) { - this.minReplicas = minReplicas; - return (A) this; - } - - public java.lang.Boolean hasMinReplicas() { - return this.minReplicas != null; - } - - /** - * This method has been deprecated, please use method buildScaleTargetRef instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1CrossVersionObjectReference getScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference - buildScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; - } - - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference scaleTargetRef) { - _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); - if (scaleTargetRef != null) { - this.scaleTargetRef = - new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder( - scaleTargetRef); - _visitables.get("scaleTargetRef").add(this.scaleTargetRef); - } - return (A) this; - } - - public java.lang.Boolean hasScaleTargetRef() { - return this.scaleTargetRef != null; - } - - public V2beta1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef() { - return new V2beta1HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluentImpl - .ScaleTargetRefNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef() { - return withNewScaleTargetRefLike(getScaleTargetRef()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike( - getScaleTargetRef() != null - ? getScaleTargetRef() - : new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1HorizontalPodAutoscalerSpecFluentImpl that = - (V2beta1HorizontalPodAutoscalerSpecFluentImpl) o; - if (maxReplicas != null ? !maxReplicas.equals(that.maxReplicas) : that.maxReplicas != null) - return false; - if (metrics != null ? !metrics.equals(that.metrics) : that.metrics != null) return false; - if (minReplicas != null ? !minReplicas.equals(that.minReplicas) : that.minReplicas != null) - return false; - if (scaleTargetRef != null - ? !scaleTargetRef.equals(that.scaleTargetRef) - : that.scaleTargetRef != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - 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); - } - sb.append("}"); - return sb.toString(); - } - - class MetricsNestedImpl - extends V2beta1MetricSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .MetricsNested< - N>, - Nested { - MetricsNestedImpl(java.lang.Integer index, V2beta1MetricSpec item) { - this.index = index; - this.builder = new V2beta1MetricSpecBuilder(this, item); - } - - MetricsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V2beta1HorizontalPodAutoscalerSpecFluentImpl.this.setToMetrics(index, builder.build()); - } - - public N endMetric() { - return and(); - } - } - - class ScaleTargetRefNestedImpl - extends V2beta1CrossVersionObjectReferenceFluentImpl< - V2beta1HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - N>, - io.kubernetes.client.fluent.Nested { - ScaleTargetRefNestedImpl(V2beta1CrossVersionObjectReference item) { - this.builder = new V2beta1CrossVersionObjectReferenceBuilder(this, item); - } - - ScaleTargetRefNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder builder; - - public N and() { - return (N) - V2beta1HorizontalPodAutoscalerSpecFluentImpl.this.withScaleTargetRef(builder.build()); - } - - public N endScaleTargetRef() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusBuilder.java deleted file mode 100644 index 7b281e2681..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1HorizontalPodAutoscalerStatusBuilder - extends V2beta1HorizontalPodAutoscalerStatusFluentImpl< - V2beta1HorizontalPodAutoscalerStatusBuilder> - implements VisitableBuilder< - V2beta1HorizontalPodAutoscalerStatus, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusBuilder> { - public V2beta1HorizontalPodAutoscalerStatusBuilder() { - this(false); - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder(Boolean validationEnabled) { - this(new V2beta1HorizontalPodAutoscalerStatus(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1HorizontalPodAutoscalerStatus(), validationEnabled); - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus instance) { - this(fluent, instance, false); - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withConditions(instance.getConditions()); - - fluent.withCurrentMetrics(instance.getCurrentMetrics()); - - fluent.withCurrentReplicas(instance.getCurrentReplicas()); - - fluent.withDesiredReplicas(instance.getDesiredReplicas()); - - fluent.withLastScaleTime(instance.getLastScaleTime()); - - fluent.withObservedGeneration(instance.getObservedGeneration()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus instance) { - this(instance, false); - } - - public V2beta1HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus build() { - V2beta1HorizontalPodAutoscalerStatus buildable = new V2beta1HorizontalPodAutoscalerStatus(); - buildable.setConditions(fluent.getConditions()); - buildable.setCurrentMetrics(fluent.getCurrentMetrics()); - buildable.setCurrentReplicas(fluent.getCurrentReplicas()); - buildable.setDesiredReplicas(fluent.getDesiredReplicas()); - buildable.setLastScaleTime(fluent.getLastScaleTime()); - buildable.setObservedGeneration(fluent.getObservedGeneration()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusFluent.java deleted file mode 100644 index 1bf12ce7fb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusFluent.java +++ /dev/null @@ -1,262 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; -import java.util.Collection; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -public interface V2beta1HorizontalPodAutoscalerStatusFluent< - A extends V2beta1HorizontalPodAutoscalerStatusFluent> - extends Fluent { - public A addToConditions(Integer index, V2beta1HorizontalPodAutoscalerCondition item); - - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item); - - public A addToConditions( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition... items); - - public A addAllToConditions( - Collection - items); - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition... items); - - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition> - items); - - public A removeMatchingFromConditions( - Predicate predicate); - - /** - * This method has been deprecated, please use method buildConditions instead. - * - * @return The buildable object. - */ - @Deprecated - public List - getConditions(); - - public java.util.List - buildConditions(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition buildCondition( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition - buildFirstCondition(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition - buildLastCondition(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta1HorizontalPodAutoscalerConditionBuilder> - predicate); - - public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder> - predicate); - - public A withConditions( - java.util.List - conditions); - - public A withConditions( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition... conditions); - - public java.lang.Boolean hasConditions(); - - public V2beta1HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta1HorizontalPodAutoscalerConditionBuilder> - predicate); - - public A addToCurrentMetrics(java.lang.Integer index, V2beta1MetricStatus item); - - public A setToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricStatus item); - - public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2beta1MetricStatus... items); - - public A addAllToCurrentMetrics( - java.util.Collection items); - - public A removeFromCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta1MetricStatus... items); - - public A removeAllFromCurrentMetrics( - java.util.Collection items); - - public A removeMatchingFromCurrentMetrics( - java.util.function.Predicate predicate); - - /** - * This method has been deprecated, please use method buildCurrentMetrics instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List - getCurrentMetrics(); - - public java.util.List - buildCurrentMetrics(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildCurrentMetric( - java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildFirstCurrentMetric(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildLastCurrentMetric(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildMatchingCurrentMetric( - java.util.function.Predicate - predicate); - - public java.lang.Boolean hasMatchingCurrentMetric( - java.util.function.Predicate - predicate); - - public A withCurrentMetrics( - java.util.List currentMetrics); - - public A withCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta1MetricStatus... currentMetrics); - - public java.lang.Boolean hasCurrentMetrics(); - - public V2beta1HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - addNewCurrentMetricLike(io.kubernetes.client.openapi.models.V2beta1MetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - setNewCurrentMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editCurrentMetric(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editFirstCurrentMetric(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editLastCurrentMetric(); - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editMatchingCurrentMetric( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder> - predicate); - - public java.lang.Integer getCurrentReplicas(); - - public A withCurrentReplicas(java.lang.Integer currentReplicas); - - public java.lang.Boolean hasCurrentReplicas(); - - public java.lang.Integer getDesiredReplicas(); - - public A withDesiredReplicas(java.lang.Integer desiredReplicas); - - public java.lang.Boolean hasDesiredReplicas(); - - public OffsetDateTime getLastScaleTime(); - - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime); - - public java.lang.Boolean hasLastScaleTime(); - - public Long getObservedGeneration(); - - public A withObservedGeneration(java.lang.Long observedGeneration); - - public java.lang.Boolean hasObservedGeneration(); - - public interface ConditionsNested - extends Nested, - V2beta1HorizontalPodAutoscalerConditionFluent< - V2beta1HorizontalPodAutoscalerStatusFluent.ConditionsNested> { - public N and(); - - public N endCondition(); - } - - public interface CurrentMetricsNested - extends io.kubernetes.client.fluent.Nested, - V2beta1MetricStatusFluent< - V2beta1HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> { - public N and(); - - public N endCurrentMetric(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusFluentImpl.java deleted file mode 100644 index 0a6d3e298b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatusFluentImpl.java +++ /dev/null @@ -1,782 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.function.Predicate; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1HorizontalPodAutoscalerStatusFluentImpl< - A extends V2beta1HorizontalPodAutoscalerStatusFluent> - extends BaseFluent implements V2beta1HorizontalPodAutoscalerStatusFluent { - public V2beta1HorizontalPodAutoscalerStatusFluentImpl() {} - - public V2beta1HorizontalPodAutoscalerStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatus instance) { - this.withConditions(instance.getConditions()); - - this.withCurrentMetrics(instance.getCurrentMetrics()); - - this.withCurrentReplicas(instance.getCurrentReplicas()); - - this.withDesiredReplicas(instance.getDesiredReplicas()); - - this.withLastScaleTime(instance.getLastScaleTime()); - - this.withObservedGeneration(instance.getObservedGeneration()); - } - - private ArrayList conditions; - private java.util.ArrayList currentMetrics; - private Integer currentReplicas; - private java.lang.Integer desiredReplicas; - private OffsetDateTime lastScaleTime; - private Long observedGeneration; - - public A addToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - item); - _visitables - .get("conditions") - .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); - this.conditions.add(index >= 0 ? index : conditions.size(), builder); - return (A) this; - } - - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item) { - if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder>(); - } - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - item); - if (index < 0 || index >= _visitables.get("conditions").size()) { - _visitables.get("conditions").add(builder); - } else { - _visitables.get("conditions").set(index, builder); - } - if (index < 0 || index >= conditions.size()) { - conditions.add(builder); - } else { - conditions.set(index, builder); - } - return (A) this; - } - - public A addToConditions( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder>(); - } - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - 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 java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder>(); - } - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - item); - _visitables.get("conditions").add(builder); - this.conditions.add(builder); - } - return (A) this; - } - - public A removeFromConditions( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition... items) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition> - items) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - item); - _visitables.get("conditions").remove(builder); - if (this.conditions != null) { - this.conditions.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromConditions( - Predicate - predicate) { - if (conditions == null) return (A) this; - final Iterator< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder> - each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder = - each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildConditions instead. - * - * @return The buildable object. - */ - @Deprecated - public List - getConditions() { - return conditions != null ? build(conditions) : null; - } - - public java.util.List - buildConditions() { - return conditions != null ? build(conditions) : null; - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition buildCondition( - java.lang.Integer index) { - return this.conditions.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition - buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition - buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta1HorizontalPodAutoscalerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder item : - conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder item : - conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withConditions( - java.util.List - conditions) { - if (this.conditions != null) { - _visitables.get("conditions").removeAll(this.conditions); - } - if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item : - conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - } - if (conditions != null) { - for (io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item : - conditions) { - this.addToConditions(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasConditions() { - return conditions != null && !conditions.isEmpty(); - } - - public V2beta1HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition() { - return new V2beta1HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item) { - return new V2beta1HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluentImpl - .ConditionsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { - if (conditions.size() <= index) - throw new RuntimeException("Can't edit conditions. Index exceeds size."); - return setNewConditionLike(index, buildCondition(index)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editFirstCondition() { - if (conditions.size() == 0) - throw new RuntimeException("Can't edit first conditions. The list is empty."); - return setNewConditionLike(0, buildCondition(0)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - 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 io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta1HorizontalPodAutoscalerConditionBuilder> - 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("Can't edit matching conditions. No match found."); - return setNewConditionLike(index, buildCondition(index)); - } - - public A addToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricStatus item) { - if (this.currentMetrics == null) { - this.currentMetrics = new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(item); - _visitables - .get("currentMetrics") - .add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder); - this.currentMetrics.add(index >= 0 ? index : currentMetrics.size(), builder); - return (A) this; - } - - public A setToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricStatus item) { - if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); - } - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(item); - if (index < 0 || index >= _visitables.get("currentMetrics").size()) { - _visitables.get("currentMetrics").add(builder); - } else { - _visitables.get("currentMetrics").set(index, builder); - } - if (index < 0 || index >= currentMetrics.size()) { - currentMetrics.add(builder); - } else { - currentMetrics.set(index, builder); - } - return (A) this; - } - - public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2beta1MetricStatus... items) { - if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V2beta1MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); - } - return (A) this; - } - - public A addAllToCurrentMetrics( - java.util.Collection items) { - if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); - } - for (io.kubernetes.client.openapi.models.V2beta1MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); - this.currentMetrics.add(builder); - } - return (A) this; - } - - public A removeFromCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta1MetricStatus... items) { - for (io.kubernetes.client.openapi.models.V2beta1MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - if (this.currentMetrics != null) { - this.currentMetrics.remove(builder); - } - } - return (A) this; - } - - public A removeAllFromCurrentMetrics( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2beta1MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(item); - _visitables.get("currentMetrics").remove(builder); - if (this.currentMetrics != null) { - this.currentMetrics.remove(builder); - } - } - return (A) this; - } - - public A removeMatchingFromCurrentMetrics( - java.util.function.Predicate - predicate) { - if (currentMetrics == null) return (A) this; - final Iterator each = - currentMetrics.iterator(); - final List visitables = _visitables.get("currentMetrics"); - while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - /** - * This method has been deprecated, please use method buildCurrentMetrics instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public java.util.List - getCurrentMetrics() { - return currentMetrics != null ? build(currentMetrics) : null; - } - - public java.util.List - buildCurrentMetrics() { - return currentMetrics != null ? build(currentMetrics) : null; - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildCurrentMetric( - java.lang.Integer index) { - return this.currentMetrics.get(index).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildFirstCurrentMetric() { - return this.currentMetrics.get(0).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildLastCurrentMetric() { - return this.currentMetrics.get(currentMetrics.size() - 1).build(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus buildMatchingCurrentMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public java.lang.Boolean hasMatchingCurrentMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder item : currentMetrics) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withCurrentMetrics( - java.util.List currentMetrics) { - if (this.currentMetrics != null) { - _visitables.get("currentMetrics").removeAll(this.currentMetrics); - } - if (currentMetrics != null) { - this.currentMetrics = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta1MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } else { - this.currentMetrics = null; - } - return (A) this; - } - - public A withCurrentMetrics( - io.kubernetes.client.openapi.models.V2beta1MetricStatus... currentMetrics) { - if (this.currentMetrics != null) { - this.currentMetrics.clear(); - } - if (currentMetrics != null) { - for (io.kubernetes.client.openapi.models.V2beta1MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } - return (A) this; - } - - public java.lang.Boolean hasCurrentMetrics() { - return currentMetrics != null && !currentMetrics.isEmpty(); - } - - public V2beta1HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric() { - return new V2beta1HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - addNewCurrentMetricLike(io.kubernetes.client.openapi.models.V2beta1MetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluentImpl - .CurrentMetricsNestedImpl(-1, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - setNewCurrentMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta1MetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluentImpl - .CurrentMetricsNestedImpl(index, item); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editCurrentMetric(java.lang.Integer index) { - if (currentMetrics.size() <= index) - throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); - return setNewCurrentMetricLike(index, buildCurrentMetric(index)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editFirstCurrentMetric() { - if (currentMetrics.size() == 0) - throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); - return setNewCurrentMetricLike(0, buildCurrentMetric(0)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - 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)); - } - - public io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editMatchingCurrentMetric( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder> - predicate) { - int index = -1; - for (int i = 0; i < currentMetrics.size(); i++) { - if (predicate.test(currentMetrics.get(i))) { - index = i; - break; - } - } - if (index < 0) - throw new RuntimeException("Can't edit matching currentMetrics. No match found."); - return setNewCurrentMetricLike(index, buildCurrentMetric(index)); - } - - public java.lang.Integer getCurrentReplicas() { - return this.currentReplicas; - } - - public A withCurrentReplicas(java.lang.Integer currentReplicas) { - this.currentReplicas = currentReplicas; - return (A) this; - } - - public java.lang.Boolean hasCurrentReplicas() { - return this.currentReplicas != null; - } - - public java.lang.Integer getDesiredReplicas() { - return this.desiredReplicas; - } - - public A withDesiredReplicas(java.lang.Integer desiredReplicas) { - this.desiredReplicas = desiredReplicas; - return (A) this; - } - - public java.lang.Boolean hasDesiredReplicas() { - return this.desiredReplicas != null; - } - - public java.time.OffsetDateTime getLastScaleTime() { - return this.lastScaleTime; - } - - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime) { - this.lastScaleTime = lastScaleTime; - return (A) this; - } - - public java.lang.Boolean hasLastScaleTime() { - return this.lastScaleTime != null; - } - - public java.lang.Long getObservedGeneration() { - return this.observedGeneration; - } - - public A withObservedGeneration(java.lang.Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; - } - - public java.lang.Boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1HorizontalPodAutoscalerStatusFluentImpl that = - (V2beta1HorizontalPodAutoscalerStatusFluentImpl) o; - if (conditions != null ? !conditions.equals(that.conditions) : that.conditions != null) - return false; - if (currentMetrics != null - ? !currentMetrics.equals(that.currentMetrics) - : that.currentMetrics != null) return false; - if (currentReplicas != null - ? !currentReplicas.equals(that.currentReplicas) - : that.currentReplicas != null) return false; - if (desiredReplicas != null - ? !desiredReplicas.equals(that.desiredReplicas) - : that.desiredReplicas != null) return false; - if (lastScaleTime != null - ? !lastScaleTime.equals(that.lastScaleTime) - : that.lastScaleTime != null) return false; - if (observedGeneration != null - ? !observedGeneration.equals(that.observedGeneration) - : that.observedGeneration != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - conditions, - currentMetrics, - currentReplicas, - desiredReplicas, - lastScaleTime, - observedGeneration, - super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { - sb.append("conditions:"); - sb.append(conditions + ","); - } - if (currentMetrics != null && !currentMetrics.isEmpty()) { - sb.append("currentMetrics:"); - sb.append(currentMetrics + ","); - } - 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); - } - sb.append("}"); - return sb.toString(); - } - - class ConditionsNestedImpl - extends V2beta1HorizontalPodAutoscalerConditionFluentImpl< - V2beta1HorizontalPodAutoscalerStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition item) { - this.index = index; - this.builder = new V2beta1HorizontalPodAutoscalerConditionBuilder(this, item); - } - - ConditionsNestedImpl() { - this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder( - this); - } - - io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerConditionBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V2beta1HorizontalPodAutoscalerStatusFluentImpl.this.setToConditions( - index, builder.build()); - } - - public N endCondition() { - return and(); - } - } - - class CurrentMetricsNestedImpl - extends V2beta1MetricStatusFluentImpl< - V2beta1HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> - implements io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - N>, - io.kubernetes.client.fluent.Nested { - CurrentMetricsNestedImpl(java.lang.Integer index, V2beta1MetricStatus item) { - this.index = index; - this.builder = new V2beta1MetricStatusBuilder(this, item); - } - - CurrentMetricsNestedImpl() { - this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder builder; - java.lang.Integer index; - - public N and() { - return (N) - V2beta1HorizontalPodAutoscalerStatusFluentImpl.this.setToCurrentMetrics( - index, builder.build()); - } - - public N endCurrentMetric() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecBuilder.java deleted file mode 100644 index 4cddad5ea8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1MetricSpecBuilder extends V2beta1MetricSpecFluentImpl - implements VisitableBuilder< - V2beta1MetricSpec, io.kubernetes.client.openapi.models.V2beta1MetricSpecBuilder> { - public V2beta1MetricSpecBuilder() { - this(false); - } - - public V2beta1MetricSpecBuilder(Boolean validationEnabled) { - this(new V2beta1MetricSpec(), validationEnabled); - } - - public V2beta1MetricSpecBuilder(V2beta1MetricSpecFluent fluent) { - this(fluent, false); - } - - public V2beta1MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1MetricSpec(), validationEnabled); - } - - public V2beta1MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta1MetricSpec instance) { - this(fluent, instance, false); - } - - public V2beta1MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta1MetricSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withContainerResource(instance.getContainerResource()); - - fluent.withExternal(instance.getExternal()); - - fluent.withObject(instance.getObject()); - - fluent.withPods(instance.getPods()); - - fluent.withResource(instance.getResource()); - - fluent.withType(instance.getType()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1MetricSpecBuilder(io.kubernetes.client.openapi.models.V2beta1MetricSpec instance) { - this(instance, false); - } - - public V2beta1MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricSpec instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1MetricSpec build() { - V2beta1MetricSpec buildable = new V2beta1MetricSpec(); - buildable.setContainerResource(fluent.getContainerResource()); - buildable.setExternal(fluent.getExternal()); - buildable.setObject(fluent.getObject()); - buildable.setPods(fluent.getPods()); - buildable.setResource(fluent.getResource()); - buildable.setType(fluent.getType()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecFluent.java deleted file mode 100644 index 2bf9b2e6ce..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecFluent.java +++ /dev/null @@ -1,208 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1MetricSpecFluent> extends Fluent { - - /** - * This method has been deprecated, please use method buildContainerResource instead. - * - * @return The buildable object. - */ - @Deprecated - public V2beta1ContainerResourceMetricSource getContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource - buildContainerResource(); - - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource containerResource); - - public Boolean hasContainerResource(); - - public V2beta1MetricSpecFluent.ContainerResourceNested withNewContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource item); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - editContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - editOrNewContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource item); - - /** - * This method has been deprecated, please use method buildExternal instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ExternalMetricSource getExternal(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource buildExternal(); - - public A withExternal(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource external); - - public java.lang.Boolean hasExternal(); - - public V2beta1MetricSpecFluent.ExternalNested withNewExternal(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource item); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - editExternal(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - editOrNewExternal(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource item); - - /** - * This method has been deprecated, please use method buildObject instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ObjectMetricSource getObject(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource buildObject(); - - public A withObject(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource _object); - - public java.lang.Boolean hasObject(); - - public V2beta1MetricSpecFluent.ObjectNested withNewObject(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource item); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested editObject(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested - editOrNewObject(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource item); - - /** - * This method has been deprecated, please use method buildPods instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1PodsMetricSource getPods(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSource buildPods(); - - public A withPods(io.kubernetes.client.openapi.models.V2beta1PodsMetricSource pods); - - public java.lang.Boolean hasPods(); - - public V2beta1MetricSpecFluent.PodsNested withNewPods(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource item); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested editPods(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested editOrNewPods(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta1PodsMetricSource item); - - /** - * This method has been deprecated, please use method buildResource instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ResourceMetricSource getResource(); - - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource buildResource(); - - public A withResource(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource resource); - - public java.lang.Boolean hasResource(); - - public V2beta1MetricSpecFluent.ResourceNested withNewResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource item); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - editResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - editOrNewResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource item); - - public String getType(); - - public A withType(java.lang.String type); - - public java.lang.Boolean hasType(); - - public interface ContainerResourceNested - extends Nested, - V2beta1ContainerResourceMetricSourceFluent< - V2beta1MetricSpecFluent.ContainerResourceNested> { - public N and(); - - public N endContainerResource(); - } - - public interface ExternalNested - extends io.kubernetes.client.fluent.Nested, - V2beta1ExternalMetricSourceFluent> { - public N and(); - - public N endExternal(); - } - - public interface ObjectNested - extends io.kubernetes.client.fluent.Nested, - V2beta1ObjectMetricSourceFluent> { - public N and(); - - public N endObject(); - } - - public interface PodsNested - extends io.kubernetes.client.fluent.Nested, - V2beta1PodsMetricSourceFluent> { - public N and(); - - public N endPods(); - } - - public interface ResourceNested - extends io.kubernetes.client.fluent.Nested, - V2beta1ResourceMetricSourceFluent> { - public N and(); - - public N endResource(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecFluentImpl.java deleted file mode 100644 index 51f0c7ec36..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpecFluentImpl.java +++ /dev/null @@ -1,509 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1MetricSpecFluentImpl> extends BaseFluent - implements V2beta1MetricSpecFluent { - public V2beta1MetricSpecFluentImpl() {} - - public V2beta1MetricSpecFluentImpl( - io.kubernetes.client.openapi.models.V2beta1MetricSpec instance) { - this.withContainerResource(instance.getContainerResource()); - - this.withExternal(instance.getExternal()); - - this.withObject(instance.getObject()); - - this.withPods(instance.getPods()); - - this.withResource(instance.getResource()); - - this.withType(instance.getType()); - } - - private V2beta1ContainerResourceMetricSourceBuilder containerResource; - private V2beta1ExternalMetricSourceBuilder external; - private V2beta1ObjectMetricSourceBuilder _object; - private V2beta1PodsMetricSourceBuilder pods; - private V2beta1ResourceMetricSourceBuilder resource; - private String type; - - /** - * This method has been deprecated, please use method buildContainerResource instead. - * - * @return The buildable object. - */ - @Deprecated - public V2beta1ContainerResourceMetricSource getContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource - buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; - } - - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource containerResource) { - _visitables.get("containerResource").remove(this.containerResource); - if (containerResource != null) { - this.containerResource = - new io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceBuilder( - containerResource); - _visitables.get("containerResource").add(this.containerResource); - } - return (A) this; - } - - public Boolean hasContainerResource() { - return this.containerResource != null; - } - - public V2beta1MetricSpecFluent.ContainerResourceNested withNewContainerResource() { - return new V2beta1MetricSpecFluentImpl.ContainerResourceNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource item) { - return new V2beta1MetricSpecFluentImpl.ContainerResourceNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - editContainerResource() { - return withNewContainerResourceLike(getContainerResource()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - editOrNewContainerResource() { - return withNewContainerResourceLike( - getContainerResource() != null - ? getContainerResource() - : new io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSource item) { - return withNewContainerResourceLike( - getContainerResource() != null ? getContainerResource() : item); - } - - /** - * This method has been deprecated, please use method buildExternal instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ExternalMetricSource getExternal() { - return this.external != null ? this.external.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource buildExternal() { - return this.external != null ? this.external.build() : null; - } - - public A withExternal(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource external) { - _visitables.get("external").remove(this.external); - if (external != null) { - this.external = - new io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceBuilder(external); - _visitables.get("external").add(this.external); - } - return (A) this; - } - - public java.lang.Boolean hasExternal() { - return this.external != null; - } - - public V2beta1MetricSpecFluent.ExternalNested withNewExternal() { - return new V2beta1MetricSpecFluentImpl.ExternalNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricSpecFluentImpl.ExternalNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - editExternal() { - return withNewExternalLike(getExternal()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - editOrNewExternal() { - return withNewExternalLike( - getExternal() != null - ? getExternal() - : new io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource item) { - return withNewExternalLike(getExternal() != null ? getExternal() : item); - } - - /** - * This method has been deprecated, please use method buildObject instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource getObject() { - return this._object != null ? this._object.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource buildObject() { - return this._object != null ? this._object.build() : null; - } - - public A withObject(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource _object) { - _visitables.get("_object").remove(this._object); - if (_object != null) { - this._object = new V2beta1ObjectMetricSourceBuilder(_object); - _visitables.get("_object").add(this._object); - } - return (A) this; - } - - public java.lang.Boolean hasObject() { - return this._object != null; - } - - public V2beta1MetricSpecFluent.ObjectNested withNewObject() { - return new V2beta1MetricSpecFluentImpl.ObjectNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricSpecFluentImpl.ObjectNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested editObject() { - return withNewObjectLike(getObject()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested - editOrNewObject() { - return withNewObjectLike( - getObject() != null - ? getObject() - : new io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource item) { - return withNewObjectLike(getObject() != null ? getObject() : item); - } - - /** - * This method has been deprecated, please use method buildPods instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSource getPods() { - return this.pods != null ? this.pods.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSource buildPods() { - return this.pods != null ? this.pods.build() : null; - } - - public A withPods(io.kubernetes.client.openapi.models.V2beta1PodsMetricSource pods) { - _visitables.get("pods").remove(this.pods); - if (pods != null) { - this.pods = new V2beta1PodsMetricSourceBuilder(pods); - _visitables.get("pods").add(this.pods); - } - return (A) this; - } - - public java.lang.Boolean hasPods() { - return this.pods != null; - } - - public V2beta1MetricSpecFluent.PodsNested withNewPods() { - return new V2beta1MetricSpecFluentImpl.PodsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricSpecFluentImpl.PodsNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested editPods() { - return withNewPodsLike(getPods()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested editOrNewPods() { - return withNewPodsLike( - getPods() != null - ? getPods() - : new io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta1PodsMetricSource item) { - return withNewPodsLike(getPods() != null ? getPods() : item); - } - - /** - * This method has been deprecated, please use method buildResource instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource getResource() { - return this.resource != null ? this.resource.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource buildResource() { - return this.resource != null ? this.resource.build() : null; - } - - public A withResource(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource resource) { - _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = new V2beta1ResourceMetricSourceBuilder(resource); - _visitables.get("resource").add(this.resource); - } - return (A) this; - } - - public java.lang.Boolean hasResource() { - return this.resource != null; - } - - public V2beta1MetricSpecFluent.ResourceNested withNewResource() { - return new V2beta1MetricSpecFluentImpl.ResourceNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricSpecFluentImpl.ResourceNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - editResource() { - return withNewResourceLike(getResource()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - editOrNewResource() { - return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource item) { - return withNewResourceLike(getResource() != null ? getResource() : item); - } - - public java.lang.String getType() { - return this.type; - } - - public A withType(java.lang.String type) { - this.type = type; - return (A) this; - } - - public java.lang.Boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1MetricSpecFluentImpl that = (V2beta1MetricSpecFluentImpl) o; - if (containerResource != null - ? !containerResource.equals(that.containerResource) - : that.containerResource != null) return false; - if (external != null ? !external.equals(that.external) : that.external != null) return false; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (pods != null ? !pods.equals(that.pods) : that.pods != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - containerResource, external, _object, pods, resource, type, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - class ContainerResourceNestedImpl - extends V2beta1ContainerResourceMetricSourceFluentImpl< - V2beta1MetricSpecFluent.ContainerResourceNested> - implements io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent - .ContainerResourceNested< - N>, - Nested { - ContainerResourceNestedImpl(V2beta1ContainerResourceMetricSource item) { - this.builder = new V2beta1ContainerResourceMetricSourceBuilder(this, item); - } - - ContainerResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricSourceBuilder builder; - - public N and() { - return (N) V2beta1MetricSpecFluentImpl.this.withContainerResource(builder.build()); - } - - public N endContainerResource() { - return and(); - } - } - - class ExternalNestedImpl - extends V2beta1ExternalMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ExternalNested, - io.kubernetes.client.fluent.Nested { - ExternalNestedImpl(io.kubernetes.client.openapi.models.V2beta1ExternalMetricSource item) { - this.builder = new V2beta1ExternalMetricSourceBuilder(this, item); - } - - ExternalNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ExternalMetricSourceBuilder builder; - - public N and() { - return (N) V2beta1MetricSpecFluentImpl.this.withExternal(builder.build()); - } - - public N endExternal() { - return and(); - } - } - - class ObjectNestedImpl - extends V2beta1ObjectMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ObjectNested, - io.kubernetes.client.fluent.Nested { - ObjectNestedImpl(io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource item) { - this.builder = new V2beta1ObjectMetricSourceBuilder(this, item); - } - - ObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceBuilder builder; - - public N and() { - return (N) V2beta1MetricSpecFluentImpl.this.withObject(builder.build()); - } - - public N endObject() { - return and(); - } - } - - class PodsNestedImpl - extends V2beta1PodsMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.PodsNested, - io.kubernetes.client.fluent.Nested { - PodsNestedImpl(V2beta1PodsMetricSource item) { - this.builder = new V2beta1PodsMetricSourceBuilder(this, item); - } - - PodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceBuilder builder; - - public N and() { - return (N) V2beta1MetricSpecFluentImpl.this.withPods(builder.build()); - } - - public N endPods() { - return and(); - } - } - - class ResourceNestedImpl - extends V2beta1ResourceMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricSpecFluent.ResourceNested, - io.kubernetes.client.fluent.Nested { - ResourceNestedImpl(io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource item) { - this.builder = new V2beta1ResourceMetricSourceBuilder(this, item); - } - - ResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceBuilder builder; - - public N and() { - return (N) V2beta1MetricSpecFluentImpl.this.withResource(builder.build()); - } - - public N endResource() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusBuilder.java deleted file mode 100644 index 0ba6be3a4e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1MetricStatusBuilder - extends V2beta1MetricStatusFluentImpl - implements VisitableBuilder< - V2beta1MetricStatus, io.kubernetes.client.openapi.models.V2beta1MetricStatusBuilder> { - public V2beta1MetricStatusBuilder() { - this(false); - } - - public V2beta1MetricStatusBuilder(Boolean validationEnabled) { - this(new V2beta1MetricStatus(), validationEnabled); - } - - public V2beta1MetricStatusBuilder(V2beta1MetricStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1MetricStatus(), validationEnabled); - } - - public V2beta1MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1MetricStatus instance) { - this(fluent, instance, false); - } - - public V2beta1MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1MetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withContainerResource(instance.getContainerResource()); - - fluent.withExternal(instance.getExternal()); - - fluent.withObject(instance.getObject()); - - fluent.withPods(instance.getPods()); - - fluent.withResource(instance.getResource()); - - fluent.withType(instance.getType()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricStatus instance) { - this(instance, false); - } - - public V2beta1MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1MetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - 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.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1MetricStatus build() { - V2beta1MetricStatus buildable = new V2beta1MetricStatus(); - buildable.setContainerResource(fluent.getContainerResource()); - buildable.setExternal(fluent.getExternal()); - buildable.setObject(fluent.getObject()); - buildable.setPods(fluent.getPods()); - buildable.setResource(fluent.getResource()); - buildable.setType(fluent.getType()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusFluent.java deleted file mode 100644 index b06783c4de..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusFluent.java +++ /dev/null @@ -1,210 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1MetricStatusFluent> - extends Fluent { - - /** - * This method has been deprecated, please use method buildContainerResource instead. - * - * @return The buildable object. - */ - @Deprecated - public V2beta1ContainerResourceMetricStatus getContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus - buildContainerResource(); - - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus containerResource); - - public Boolean hasContainerResource(); - - public V2beta1MetricStatusFluent.ContainerResourceNested withNewContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - editContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - editOrNewContainerResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus item); - - /** - * This method has been deprecated, please use method buildExternal instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ExternalMetricStatus getExternal(); - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus buildExternal(); - - public A withExternal(io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus external); - - public java.lang.Boolean hasExternal(); - - public V2beta1MetricStatusFluent.ExternalNested withNewExternal(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - editExternal(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - editOrNewExternal(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus item); - - /** - * This method has been deprecated, please use method buildObject instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ObjectMetricStatus getObject(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus buildObject(); - - public A withObject(io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus _object); - - public java.lang.Boolean hasObject(); - - public V2beta1MetricStatusFluent.ObjectNested withNewObject(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested editObject(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - editOrNewObject(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus item); - - /** - * This method has been deprecated, please use method buildPods instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1PodsMetricStatus getPods(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus buildPods(); - - public A withPods(io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus pods); - - public java.lang.Boolean hasPods(); - - public V2beta1MetricStatusFluent.PodsNested withNewPods(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested - withNewPodsLike(io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested editPods(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested - editOrNewPods(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus item); - - /** - * This method has been deprecated, please use method buildResource instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ResourceMetricStatus getResource(); - - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus buildResource(); - - public A withResource(io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus resource); - - public java.lang.Boolean hasResource(); - - public V2beta1MetricStatusFluent.ResourceNested withNewResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - editResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - editOrNewResource(); - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus item); - - public String getType(); - - public A withType(java.lang.String type); - - public java.lang.Boolean hasType(); - - public interface ContainerResourceNested - extends Nested, - V2beta1ContainerResourceMetricStatusFluent< - V2beta1MetricStatusFluent.ContainerResourceNested> { - public N and(); - - public N endContainerResource(); - } - - public interface ExternalNested - extends io.kubernetes.client.fluent.Nested, - V2beta1ExternalMetricStatusFluent> { - public N and(); - - public N endExternal(); - } - - public interface ObjectNested - extends io.kubernetes.client.fluent.Nested, - V2beta1ObjectMetricStatusFluent> { - public N and(); - - public N endObject(); - } - - public interface PodsNested - extends io.kubernetes.client.fluent.Nested, - V2beta1PodsMetricStatusFluent> { - public N and(); - - public N endPods(); - } - - public interface ResourceNested - extends io.kubernetes.client.fluent.Nested, - V2beta1ResourceMetricStatusFluent> { - public N and(); - - public N endResource(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusFluentImpl.java deleted file mode 100644 index de81ffd4ba..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatusFluentImpl.java +++ /dev/null @@ -1,512 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1MetricStatusFluentImpl> - extends BaseFluent implements V2beta1MetricStatusFluent { - public V2beta1MetricStatusFluentImpl() {} - - public V2beta1MetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1MetricStatus instance) { - this.withContainerResource(instance.getContainerResource()); - - this.withExternal(instance.getExternal()); - - this.withObject(instance.getObject()); - - this.withPods(instance.getPods()); - - this.withResource(instance.getResource()); - - this.withType(instance.getType()); - } - - private V2beta1ContainerResourceMetricStatusBuilder containerResource; - private V2beta1ExternalMetricStatusBuilder external; - private V2beta1ObjectMetricStatusBuilder _object; - private V2beta1PodsMetricStatusBuilder pods; - private V2beta1ResourceMetricStatusBuilder resource; - private String type; - - /** - * This method has been deprecated, please use method buildContainerResource instead. - * - * @return The buildable object. - */ - @Deprecated - public V2beta1ContainerResourceMetricStatus getContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus - buildContainerResource() { - return this.containerResource != null ? this.containerResource.build() : null; - } - - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus containerResource) { - _visitables.get("containerResource").remove(this.containerResource); - if (containerResource != null) { - this.containerResource = - new io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusBuilder( - containerResource); - _visitables.get("containerResource").add(this.containerResource); - } - return (A) this; - } - - public Boolean hasContainerResource() { - return this.containerResource != null; - } - - public V2beta1MetricStatusFluent.ContainerResourceNested withNewContainerResource() { - return new V2beta1MetricStatusFluentImpl.ContainerResourceNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus item) { - return new V2beta1MetricStatusFluentImpl.ContainerResourceNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - editContainerResource() { - return withNewContainerResourceLike(getContainerResource()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - editOrNewContainerResource() { - return withNewContainerResourceLike( - getContainerResource() != null - ? getContainerResource() - : new io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatus item) { - return withNewContainerResourceLike( - getContainerResource() != null ? getContainerResource() : item); - } - - /** - * This method has been deprecated, please use method buildExternal instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus getExternal() { - return this.external != null ? this.external.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus buildExternal() { - return this.external != null ? this.external.build() : null; - } - - public A withExternal(io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus external) { - _visitables.get("external").remove(this.external); - if (external != null) { - this.external = new V2beta1ExternalMetricStatusBuilder(external); - _visitables.get("external").add(this.external); - } - return (A) this; - } - - public java.lang.Boolean hasExternal() { - return this.external != null; - } - - public V2beta1MetricStatusFluent.ExternalNested withNewExternal() { - return new V2beta1MetricStatusFluentImpl.ExternalNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricStatusFluentImpl.ExternalNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - editExternal() { - return withNewExternalLike(getExternal()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - editOrNewExternal() { - return withNewExternalLike( - getExternal() != null - ? getExternal() - : new io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatus item) { - return withNewExternalLike(getExternal() != null ? getExternal() : item); - } - - /** - * This method has been deprecated, please use method buildObject instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus getObject() { - return this._object != null ? this._object.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus buildObject() { - return this._object != null ? this._object.build() : null; - } - - public A withObject(io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus _object) { - _visitables.get("_object").remove(this._object); - if (_object != null) { - this._object = new V2beta1ObjectMetricStatusBuilder(_object); - _visitables.get("_object").add(this._object); - } - return (A) this; - } - - public java.lang.Boolean hasObject() { - return this._object != null; - } - - public V2beta1MetricStatusFluent.ObjectNested withNewObject() { - return new V2beta1MetricStatusFluentImpl.ObjectNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricStatusFluentImpl.ObjectNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - editObject() { - return withNewObjectLike(getObject()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - editOrNewObject() { - return withNewObjectLike( - getObject() != null - ? getObject() - : new io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus item) { - return withNewObjectLike(getObject() != null ? getObject() : item); - } - - /** - * This method has been deprecated, please use method buildPods instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus getPods() { - return this.pods != null ? this.pods.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus buildPods() { - return this.pods != null ? this.pods.build() : null; - } - - public A withPods(io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus pods) { - _visitables.get("pods").remove(this.pods); - if (pods != null) { - this.pods = new V2beta1PodsMetricStatusBuilder(pods); - _visitables.get("pods").add(this.pods); - } - return (A) this; - } - - public java.lang.Boolean hasPods() { - return this.pods != null; - } - - public V2beta1MetricStatusFluent.PodsNested withNewPods() { - return new V2beta1MetricStatusFluentImpl.PodsNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested - withNewPodsLike(io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricStatusFluentImpl.PodsNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested editPods() { - return withNewPodsLike(getPods()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested - editOrNewPods() { - return withNewPodsLike( - getPods() != null - ? getPods() - : new io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus item) { - return withNewPodsLike(getPods() != null ? getPods() : item); - } - - /** - * This method has been deprecated, please use method buildResource instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1ResourceMetricStatus getResource() { - return this.resource != null ? this.resource.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus buildResource() { - return this.resource != null ? this.resource.build() : null; - } - - public A withResource(io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus resource) { - _visitables.get("resource").remove(this.resource); - if (resource != null) { - this.resource = - new io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusBuilder(resource); - _visitables.get("resource").add(this.resource); - } - return (A) this; - } - - public java.lang.Boolean hasResource() { - return this.resource != null; - } - - public V2beta1MetricStatusFluent.ResourceNested withNewResource() { - return new V2beta1MetricStatusFluentImpl.ResourceNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta1MetricStatusFluentImpl.ResourceNestedImpl( - item); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - editResource() { - return withNewResourceLike(getResource()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - editOrNewResource() { - return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus item) { - return withNewResourceLike(getResource() != null ? getResource() : item); - } - - public java.lang.String getType() { - return this.type; - } - - public A withType(java.lang.String type) { - this.type = type; - return (A) this; - } - - public java.lang.Boolean hasType() { - return this.type != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1MetricStatusFluentImpl that = (V2beta1MetricStatusFluentImpl) o; - if (containerResource != null - ? !containerResource.equals(that.containerResource) - : that.containerResource != null) return false; - if (external != null ? !external.equals(that.external) : that.external != null) return false; - if (_object != null ? !_object.equals(that._object) : that._object != null) return false; - if (pods != null ? !pods.equals(that.pods) : that.pods != null) return false; - if (resource != null ? !resource.equals(that.resource) : that.resource != null) return false; - if (type != null ? !type.equals(that.type) : that.type != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - containerResource, external, _object, pods, resource, type, super.hashCode()); - } - - public java.lang.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); - } - sb.append("}"); - return sb.toString(); - } - - class ContainerResourceNestedImpl - extends V2beta1ContainerResourceMetricStatusFluentImpl< - V2beta1MetricStatusFluent.ContainerResourceNested> - implements io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent - .ContainerResourceNested< - N>, - Nested { - ContainerResourceNestedImpl(V2beta1ContainerResourceMetricStatus item) { - this.builder = new V2beta1ContainerResourceMetricStatusBuilder(this, item); - } - - ContainerResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ContainerResourceMetricStatusBuilder builder; - - public N and() { - return (N) V2beta1MetricStatusFluentImpl.this.withContainerResource(builder.build()); - } - - public N endContainerResource() { - return and(); - } - } - - class ExternalNestedImpl - extends V2beta1ExternalMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ExternalNested, - io.kubernetes.client.fluent.Nested { - ExternalNestedImpl(V2beta1ExternalMetricStatus item) { - this.builder = new V2beta1ExternalMetricStatusBuilder(this, item); - } - - ExternalNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ExternalMetricStatusBuilder builder; - - public N and() { - return (N) V2beta1MetricStatusFluentImpl.this.withExternal(builder.build()); - } - - public N endExternal() { - return and(); - } - } - - class ObjectNestedImpl - extends V2beta1ObjectMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ObjectNested, - io.kubernetes.client.fluent.Nested { - ObjectNestedImpl(V2beta1ObjectMetricStatus item) { - this.builder = new V2beta1ObjectMetricStatusBuilder(this, item); - } - - ObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusBuilder builder; - - public N and() { - return (N) V2beta1MetricStatusFluentImpl.this.withObject(builder.build()); - } - - public N endObject() { - return and(); - } - } - - class PodsNestedImpl - extends V2beta1PodsMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.PodsNested, - io.kubernetes.client.fluent.Nested { - PodsNestedImpl(V2beta1PodsMetricStatus item) { - this.builder = new V2beta1PodsMetricStatusBuilder(this, item); - } - - PodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusBuilder builder; - - public N and() { - return (N) V2beta1MetricStatusFluentImpl.this.withPods(builder.build()); - } - - public N endPods() { - return and(); - } - } - - class ResourceNestedImpl - extends V2beta1ResourceMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1MetricStatusFluent.ResourceNested, - io.kubernetes.client.fluent.Nested { - ResourceNestedImpl(V2beta1ResourceMetricStatus item) { - this.builder = new V2beta1ResourceMetricStatusBuilder(this, item); - } - - ResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusBuilder builder; - - public N and() { - return (N) V2beta1MetricStatusFluentImpl.this.withResource(builder.build()); - } - - public N endResource() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceBuilder.java deleted file mode 100644 index 08db24c261..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ObjectMetricSourceBuilder - extends V2beta1ObjectMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource, - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceBuilder> { - public V2beta1ObjectMetricSourceBuilder() { - this(false); - } - - public V2beta1ObjectMetricSourceBuilder(Boolean validationEnabled) { - this(new V2beta1ObjectMetricSource(), validationEnabled); - } - - public V2beta1ObjectMetricSourceBuilder(V2beta1ObjectMetricSourceFluent fluent) { - this(fluent, false); - } - - public V2beta1ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ObjectMetricSource(), validationEnabled); - } - - public V2beta1ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource instance) { - this(fluent, instance, false); - } - - public V2beta1ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAverageValue(instance.getAverageValue()); - - fluent.withMetricName(instance.getMetricName()); - - fluent.withSelector(instance.getSelector()); - - fluent.withTarget(instance.getTarget()); - - fluent.withTargetValue(instance.getTargetValue()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource instance) { - this(instance, false); - } - - public V2beta1ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withAverageValue(instance.getAverageValue()); - - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.withTarget(instance.getTarget()); - - this.withTargetValue(instance.getTargetValue()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource build() { - V2beta1ObjectMetricSource buildable = new V2beta1ObjectMetricSource(); - buildable.setAverageValue(fluent.getAverageValue()); - buildable.setMetricName(fluent.getMetricName()); - buildable.setSelector(fluent.getSelector()); - buildable.setTarget(fluent.getTarget()); - buildable.setTargetValue(fluent.getTargetValue()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceFluent.java deleted file mode 100644 index adb0cdddf8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceFluent.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1ObjectMetricSourceFluent> - extends Fluent { - public Quantity getAverageValue(); - - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue); - - public Boolean hasAverageValue(); - - public A withNewAverageValue(String value); - - public java.lang.String getMetricName(); - - public A withMetricName(java.lang.String metricName); - - public java.lang.Boolean hasMetricName(); - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); - - public java.lang.Boolean hasSelector(); - - public V2beta1ObjectMetricSourceFluent.SelectorNested withNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - editSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - editOrNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - /** - * This method has been deprecated, please use method buildTarget instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1CrossVersionObjectReference getTarget(); - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference buildTarget(); - - public A withTarget( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference target); - - public java.lang.Boolean hasTarget(); - - public V2beta1ObjectMetricSourceFluent.TargetNested withNewTarget(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - withNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - editTarget(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - editOrNewTarget(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - editOrNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item); - - public io.kubernetes.client.custom.Quantity getTargetValue(); - - public A withTargetValue(io.kubernetes.client.custom.Quantity targetValue); - - public java.lang.Boolean hasTargetValue(); - - public A withNewTargetValue(java.lang.String value); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { - public N and(); - - public N endSelector(); - } - - public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V2beta1CrossVersionObjectReferenceFluent< - V2beta1ObjectMetricSourceFluent.TargetNested> { - public N and(); - - public N endTarget(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceFluentImpl.java deleted file mode 100644 index 8a38ce55a2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSourceFluentImpl.java +++ /dev/null @@ -1,301 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ObjectMetricSourceFluentImpl> - extends BaseFluent implements V2beta1ObjectMetricSourceFluent { - public V2beta1ObjectMetricSourceFluentImpl() {} - - public V2beta1ObjectMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricSource instance) { - this.withAverageValue(instance.getAverageValue()); - - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.withTarget(instance.getTarget()); - - this.withTargetValue(instance.getTargetValue()); - } - - private Quantity averageValue; - private String metricName; - private V1LabelSelectorBuilder selector; - private V2beta1CrossVersionObjectReferenceBuilder target; - private io.kubernetes.client.custom.Quantity targetValue; - - public io.kubernetes.client.custom.Quantity getAverageValue() { - return this.averageValue; - } - - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; - } - - public Boolean hasAverageValue() { - return this.averageValue != null; - } - - public A withNewAverageValue(java.lang.String value) { - return (A) withAverageValue(new Quantity(value)); - } - - public java.lang.String getMetricName() { - return this.metricName; - } - - public A withMetricName(java.lang.String metricName) { - this.metricName = metricName; - return (A) this; - } - - public java.lang.Boolean hasMetricName() { - return this.metricName != null; - } - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { - _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } - return (A) this; - } - - public java.lang.Boolean hasSelector() { - return this.selector != null; - } - - public V2beta1ObjectMetricSourceFluent.SelectorNested withNewSelector() { - return new V2beta1ObjectMetricSourceFluentImpl.SelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V2beta1ObjectMetricSourceFluentImpl.SelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - editSelector() { - return withNewSelectorLike(getSelector()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); - } - - /** - * This method has been deprecated, please use method buildTarget instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1CrossVersionObjectReference getTarget() { - return this.target != null ? this.target.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference target) { - _visitables.get("target").remove(this.target); - if (target != null) { - this.target = - new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder(target); - _visitables.get("target").add(this.target); - } - return (A) this; - } - - public java.lang.Boolean hasTarget() { - return this.target != null; - } - - public V2beta1ObjectMetricSourceFluent.TargetNested withNewTarget() { - return new V2beta1ObjectMetricSourceFluentImpl.TargetNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - withNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluentImpl - .TargetNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - editTarget() { - return withNewTargetLike(getTarget()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - editOrNewTarget() { - return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested - editOrNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); - } - - public io.kubernetes.client.custom.Quantity getTargetValue() { - return this.targetValue; - } - - public A withTargetValue(io.kubernetes.client.custom.Quantity targetValue) { - this.targetValue = targetValue; - return (A) this; - } - - public java.lang.Boolean hasTargetValue() { - return this.targetValue != null; - } - - public A withNewTargetValue(java.lang.String value) { - return (A) withTargetValue(new Quantity(value)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ObjectMetricSourceFluentImpl that = (V2beta1ObjectMetricSourceFluentImpl) o; - if (averageValue != null ? !averageValue.equals(that.averageValue) : that.averageValue != null) - return false; - if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; - if (targetValue != null ? !targetValue.equals(that.targetValue) : that.targetValue != null) - return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - averageValue, metricName, selector, target, targetValue, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (averageValue != null) { - sb.append("averageValue:"); - sb.append(averageValue + ","); - } - if (metricName != null) { - sb.append("metricName:"); - sb.append(metricName + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target + ","); - } - if (targetValue != null) { - sb.append("targetValue:"); - sb.append(targetValue); - } - sb.append("}"); - return sb.toString(); - } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.SelectorNested< - N>, - Nested { - SelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V2beta1ObjectMetricSourceFluentImpl.this.withSelector(builder.build()); - } - - public N endSelector() { - return and(); - } - } - - class TargetNestedImpl - extends V2beta1CrossVersionObjectReferenceFluentImpl< - V2beta1ObjectMetricSourceFluent.TargetNested> - implements io.kubernetes.client.openapi.models.V2beta1ObjectMetricSourceFluent.TargetNested< - N>, - io.kubernetes.client.fluent.Nested { - TargetNestedImpl(V2beta1CrossVersionObjectReference item) { - this.builder = new V2beta1CrossVersionObjectReferenceBuilder(this, item); - } - - TargetNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder builder; - - public N and() { - return (N) V2beta1ObjectMetricSourceFluentImpl.this.withTarget(builder.build()); - } - - public N endTarget() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusBuilder.java deleted file mode 100644 index 8974983f7d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ObjectMetricStatusBuilder - extends V2beta1ObjectMetricStatusFluentImpl - implements VisitableBuilder< - V2beta1ObjectMetricStatus, - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusBuilder> { - public V2beta1ObjectMetricStatusBuilder() { - this(false); - } - - public V2beta1ObjectMetricStatusBuilder(Boolean validationEnabled) { - this(new V2beta1ObjectMetricStatus(), validationEnabled); - } - - public V2beta1ObjectMetricStatusBuilder(V2beta1ObjectMetricStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ObjectMetricStatus(), validationEnabled); - } - - public V2beta1ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus instance) { - this(fluent, instance, false); - } - - public V2beta1ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withAverageValue(instance.getAverageValue()); - - fluent.withCurrentValue(instance.getCurrentValue()); - - fluent.withMetricName(instance.getMetricName()); - - fluent.withSelector(instance.getSelector()); - - fluent.withTarget(instance.getTarget()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus instance) { - this(instance, false); - } - - public V2beta1ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withAverageValue(instance.getAverageValue()); - - this.withCurrentValue(instance.getCurrentValue()); - - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.withTarget(instance.getTarget()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus build() { - V2beta1ObjectMetricStatus buildable = new V2beta1ObjectMetricStatus(); - buildable.setAverageValue(fluent.getAverageValue()); - buildable.setCurrentValue(fluent.getCurrentValue()); - buildable.setMetricName(fluent.getMetricName()); - buildable.setSelector(fluent.getSelector()); - buildable.setTarget(fluent.getTarget()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusFluent.java deleted file mode 100644 index 9053238936..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusFluent.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1ObjectMetricStatusFluent> - extends Fluent { - public Quantity getAverageValue(); - - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue); - - public Boolean hasAverageValue(); - - public A withNewAverageValue(String value); - - public io.kubernetes.client.custom.Quantity getCurrentValue(); - - public A withCurrentValue(io.kubernetes.client.custom.Quantity currentValue); - - public java.lang.Boolean hasCurrentValue(); - - public A withNewCurrentValue(java.lang.String value); - - public java.lang.String getMetricName(); - - public A withMetricName(java.lang.String metricName); - - public java.lang.Boolean hasMetricName(); - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); - - public java.lang.Boolean hasSelector(); - - public V2beta1ObjectMetricStatusFluent.SelectorNested withNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - editSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - editOrNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - /** - * This method has been deprecated, please use method buildTarget instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1CrossVersionObjectReference getTarget(); - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference buildTarget(); - - public A withTarget( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference target); - - public java.lang.Boolean hasTarget(); - - public V2beta1ObjectMetricStatusFluent.TargetNested withNewTarget(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - withNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - editTarget(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - editOrNewTarget(); - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - editOrNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { - public N and(); - - public N endSelector(); - } - - public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V2beta1CrossVersionObjectReferenceFluent< - V2beta1ObjectMetricStatusFluent.TargetNested> { - public N and(); - - public N endTarget(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusFluentImpl.java deleted file mode 100644 index 2b5a1160c4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatusFluentImpl.java +++ /dev/null @@ -1,301 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ObjectMetricStatusFluentImpl> - extends BaseFluent implements V2beta1ObjectMetricStatusFluent { - public V2beta1ObjectMetricStatusFluentImpl() {} - - public V2beta1ObjectMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatus instance) { - this.withAverageValue(instance.getAverageValue()); - - this.withCurrentValue(instance.getCurrentValue()); - - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.withTarget(instance.getTarget()); - } - - private Quantity averageValue; - private io.kubernetes.client.custom.Quantity currentValue; - private String metricName; - private V1LabelSelectorBuilder selector; - private V2beta1CrossVersionObjectReferenceBuilder target; - - public io.kubernetes.client.custom.Quantity getAverageValue() { - return this.averageValue; - } - - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; - } - - public Boolean hasAverageValue() { - return this.averageValue != null; - } - - public A withNewAverageValue(java.lang.String value) { - return (A) withAverageValue(new Quantity(value)); - } - - public io.kubernetes.client.custom.Quantity getCurrentValue() { - return this.currentValue; - } - - public A withCurrentValue(io.kubernetes.client.custom.Quantity currentValue) { - this.currentValue = currentValue; - return (A) this; - } - - public java.lang.Boolean hasCurrentValue() { - return this.currentValue != null; - } - - public A withNewCurrentValue(java.lang.String value) { - return (A) withCurrentValue(new Quantity(value)); - } - - public java.lang.String getMetricName() { - return this.metricName; - } - - public A withMetricName(java.lang.String metricName) { - this.metricName = metricName; - return (A) this; - } - - public java.lang.Boolean hasMetricName() { - return this.metricName != null; - } - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { - _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } - return (A) this; - } - - public java.lang.Boolean hasSelector() { - return this.selector != null; - } - - public V2beta1ObjectMetricStatusFluent.SelectorNested withNewSelector() { - return new V2beta1ObjectMetricStatusFluentImpl.SelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V2beta1ObjectMetricStatusFluentImpl.SelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - editSelector() { - return withNewSelectorLike(getSelector()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); - } - - /** - * This method has been deprecated, please use method buildTarget instead. - * - * @return The buildable object. - */ - @java.lang.Deprecated - public V2beta1CrossVersionObjectReference getTarget() { - return this.target != null ? this.target.build() : null; - } - - public io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference buildTarget() { - return this.target != null ? this.target.build() : null; - } - - public A withTarget( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference target) { - _visitables.get("target").remove(this.target); - if (target != null) { - this.target = - new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder(target); - _visitables.get("target").add(this.target); - } - return (A) this; - } - - public java.lang.Boolean hasTarget() { - return this.target != null; - } - - public V2beta1ObjectMetricStatusFluent.TargetNested withNewTarget() { - return new V2beta1ObjectMetricStatusFluentImpl.TargetNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - withNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluentImpl - .TargetNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - editTarget() { - return withNewTargetLike(getTarget()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - editOrNewTarget() { - return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder() - .build()); - } - - public io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested - editOrNewTargetLike( - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReference item) { - return withNewTargetLike(getTarget() != null ? getTarget() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ObjectMetricStatusFluentImpl that = (V2beta1ObjectMetricStatusFluentImpl) o; - if (averageValue != null ? !averageValue.equals(that.averageValue) : that.averageValue != null) - return false; - if (currentValue != null ? !currentValue.equals(that.currentValue) : that.currentValue != null) - return false; - if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (target != null ? !target.equals(that.target) : that.target != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - averageValue, currentValue, metricName, selector, target, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (averageValue != null) { - sb.append("averageValue:"); - sb.append(averageValue + ","); - } - if (currentValue != null) { - sb.append("currentValue:"); - sb.append(currentValue + ","); - } - if (metricName != null) { - sb.append("metricName:"); - sb.append(metricName + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (target != null) { - sb.append("target:"); - sb.append(target); - } - sb.append("}"); - return sb.toString(); - } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.SelectorNested< - N>, - Nested { - SelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V2beta1ObjectMetricStatusFluentImpl.this.withSelector(builder.build()); - } - - public N endSelector() { - return and(); - } - } - - class TargetNestedImpl - extends V2beta1CrossVersionObjectReferenceFluentImpl< - V2beta1ObjectMetricStatusFluent.TargetNested> - implements io.kubernetes.client.openapi.models.V2beta1ObjectMetricStatusFluent.TargetNested< - N>, - io.kubernetes.client.fluent.Nested { - TargetNestedImpl(V2beta1CrossVersionObjectReference item) { - this.builder = new V2beta1CrossVersionObjectReferenceBuilder(this, item); - } - - TargetNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder(this); - } - - io.kubernetes.client.openapi.models.V2beta1CrossVersionObjectReferenceBuilder builder; - - public N and() { - return (N) V2beta1ObjectMetricStatusFluentImpl.this.withTarget(builder.build()); - } - - public N endTarget() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceBuilder.java deleted file mode 100644 index bbbadd1a90..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1PodsMetricSourceBuilder - extends V2beta1PodsMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource, - V2beta1PodsMetricSourceBuilder> { - public V2beta1PodsMetricSourceBuilder() { - this(false); - } - - public V2beta1PodsMetricSourceBuilder(Boolean validationEnabled) { - this(new V2beta1PodsMetricSource(), validationEnabled); - } - - public V2beta1PodsMetricSourceBuilder(V2beta1PodsMetricSourceFluent fluent) { - this(fluent, false); - } - - public V2beta1PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1PodsMetricSource(), validationEnabled); - } - - public V2beta1PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource instance) { - this(fluent, instance, false); - } - - public V2beta1PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withMetricName(instance.getMetricName()); - - fluent.withSelector(instance.getSelector()); - - fluent.withTargetAverageValue(instance.getTargetAverageValue()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource instance) { - this(instance, false); - } - - public V2beta1PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSource build() { - V2beta1PodsMetricSource buildable = new V2beta1PodsMetricSource(); - buildable.setMetricName(fluent.getMetricName()); - buildable.setSelector(fluent.getSelector()); - buildable.setTargetAverageValue(fluent.getTargetAverageValue()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceFluent.java deleted file mode 100644 index 274b3019b1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceFluent.java +++ /dev/null @@ -1,70 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1PodsMetricSourceFluent> - extends Fluent { - public String getMetricName(); - - public A withMetricName(java.lang.String metricName); - - public Boolean hasMetricName(); - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); - - public java.lang.Boolean hasSelector(); - - public V2beta1PodsMetricSourceFluent.SelectorNested withNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - editSelector(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - editOrNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public Quantity getTargetAverageValue(); - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue); - - public java.lang.Boolean hasTargetAverageValue(); - - public A withNewTargetAverageValue(java.lang.String value); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { - public N and(); - - public N endSelector(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceFluentImpl.java deleted file mode 100644 index f9516b61fe..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSourceFluentImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1PodsMetricSourceFluentImpl> - extends BaseFluent implements V2beta1PodsMetricSourceFluent { - public V2beta1PodsMetricSourceFluentImpl() {} - - public V2beta1PodsMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta1PodsMetricSource instance) { - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - } - - private String metricName; - private V1LabelSelectorBuilder selector; - private Quantity targetAverageValue; - - public java.lang.String getMetricName() { - return this.metricName; - } - - public A withMetricName(java.lang.String metricName) { - this.metricName = metricName; - return (A) this; - } - - public Boolean hasMetricName() { - return this.metricName != null; - } - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { - _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } - return (A) this; - } - - public java.lang.Boolean hasSelector() { - return this.selector != null; - } - - public V2beta1PodsMetricSourceFluent.SelectorNested withNewSelector() { - return new V2beta1PodsMetricSourceFluentImpl.SelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V2beta1PodsMetricSourceFluentImpl.SelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - editSelector() { - return withNewSelectorLike(getSelector()); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); - } - - public io.kubernetes.client.custom.Quantity getTargetAverageValue() { - return this.targetAverageValue; - } - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - return (A) this; - } - - public java.lang.Boolean hasTargetAverageValue() { - return this.targetAverageValue != null; - } - - public A withNewTargetAverageValue(java.lang.String value) { - return (A) withTargetAverageValue(new Quantity(value)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1PodsMetricSourceFluentImpl that = (V2beta1PodsMetricSourceFluentImpl) o; - if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - if (targetAverageValue != null - ? !targetAverageValue.equals(that.targetAverageValue) - : that.targetAverageValue != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(metricName, selector, targetAverageValue, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (metricName != null) { - sb.append("metricName:"); - sb.append(metricName + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector + ","); - } - if (targetAverageValue != null) { - sb.append("targetAverageValue:"); - sb.append(targetAverageValue); - } - sb.append("}"); - return sb.toString(); - } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1PodsMetricSourceFluent.SelectorNested< - N>, - Nested { - SelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V2beta1PodsMetricSourceFluentImpl.this.withSelector(builder.build()); - } - - public N endSelector() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusBuilder.java deleted file mode 100644 index b1324880ba..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1PodsMetricStatusBuilder - extends V2beta1PodsMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus, - V2beta1PodsMetricStatusBuilder> { - public V2beta1PodsMetricStatusBuilder() { - this(false); - } - - public V2beta1PodsMetricStatusBuilder(Boolean validationEnabled) { - this(new V2beta1PodsMetricStatus(), validationEnabled); - } - - public V2beta1PodsMetricStatusBuilder(V2beta1PodsMetricStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1PodsMetricStatus(), validationEnabled); - } - - public V2beta1PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus instance) { - this(fluent, instance, false); - } - - public V2beta1PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withCurrentAverageValue(instance.getCurrentAverageValue()); - - fluent.withMetricName(instance.getMetricName()); - - fluent.withSelector(instance.getSelector()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus instance) { - this(instance, false); - } - - public V2beta1PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus build() { - V2beta1PodsMetricStatus buildable = new V2beta1PodsMetricStatus(); - buildable.setCurrentAverageValue(fluent.getCurrentAverageValue()); - buildable.setMetricName(fluent.getMetricName()); - buildable.setSelector(fluent.getSelector()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusFluent.java deleted file mode 100644 index 5263051f22..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusFluent.java +++ /dev/null @@ -1,70 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -public interface V2beta1PodsMetricStatusFluent> - extends Fluent { - public Quantity getCurrentAverageValue(); - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue); - - public Boolean hasCurrentAverageValue(); - - public A withNewCurrentAverageValue(String value); - - public java.lang.String getMetricName(); - - public A withMetricName(java.lang.String metricName); - - public java.lang.Boolean hasMetricName(); - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public V1LabelSelector getSelector(); - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector(); - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector); - - public java.lang.Boolean hasSelector(); - - public V2beta1PodsMetricStatusFluent.SelectorNested withNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - editSelector(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - editOrNewSelector(); - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); - - public interface SelectorNested - extends Nested, V1LabelSelectorFluent> { - public N and(); - - public N endSelector(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusFluentImpl.java deleted file mode 100644 index 71f475d505..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatusFluentImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1PodsMetricStatusFluentImpl> - extends BaseFluent implements V2beta1PodsMetricStatusFluent { - public V2beta1PodsMetricStatusFluentImpl() {} - - public V2beta1PodsMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1PodsMetricStatus instance) { - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withMetricName(instance.getMetricName()); - - this.withSelector(instance.getSelector()); - } - - private Quantity currentAverageValue; - private String metricName; - private V1LabelSelectorBuilder selector; - - public io.kubernetes.client.custom.Quantity getCurrentAverageValue() { - return this.currentAverageValue; - } - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - return (A) this; - } - - public Boolean hasCurrentAverageValue() { - return this.currentAverageValue != null; - } - - public A withNewCurrentAverageValue(java.lang.String value) { - return (A) withCurrentAverageValue(new Quantity(value)); - } - - public java.lang.String getMetricName() { - return this.metricName; - } - - public A withMetricName(java.lang.String metricName) { - this.metricName = metricName; - return (A) this; - } - - public java.lang.Boolean hasMetricName() { - return this.metricName != null; - } - - /** - * This method has been deprecated, please use method buildSelector instead. - * - * @return The buildable object. - */ - @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { - _visitables.get("selector").remove(this.selector); - if (selector != null) { - this.selector = new V1LabelSelectorBuilder(selector); - _visitables.get("selector").add(this.selector); - } - return (A) this; - } - - public java.lang.Boolean hasSelector() { - return this.selector != null; - } - - public V2beta1PodsMetricStatusFluent.SelectorNested withNewSelector() { - return new V2beta1PodsMetricStatusFluentImpl.SelectorNestedImpl(); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return new V2beta1PodsMetricStatusFluentImpl.SelectorNestedImpl(item); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - editSelector() { - return withNewSelectorLike(getSelector()); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - editOrNewSelector() { - return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); - } - - public io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { - return withNewSelectorLike(getSelector() != null ? getSelector() : item); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1PodsMetricStatusFluentImpl that = (V2beta1PodsMetricStatusFluentImpl) o; - if (currentAverageValue != null - ? !currentAverageValue.equals(that.currentAverageValue) - : that.currentAverageValue != null) return false; - if (metricName != null ? !metricName.equals(that.metricName) : that.metricName != null) - return false; - if (selector != null ? !selector.equals(that.selector) : that.selector != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(currentAverageValue, metricName, selector, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (currentAverageValue != null) { - sb.append("currentAverageValue:"); - sb.append(currentAverageValue + ","); - } - if (metricName != null) { - sb.append("metricName:"); - sb.append(metricName + ","); - } - if (selector != null) { - sb.append("selector:"); - sb.append(selector); - } - sb.append("}"); - return sb.toString(); - } - - class SelectorNestedImpl - extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta1PodsMetricStatusFluent.SelectorNested< - N>, - Nested { - SelectorNestedImpl(V1LabelSelector item) { - this.builder = new V1LabelSelectorBuilder(this, item); - } - - SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); - } - - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; - - public N and() { - return (N) V2beta1PodsMetricStatusFluentImpl.this.withSelector(builder.build()); - } - - public N endSelector() { - return and(); - } - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceBuilder.java deleted file mode 100644 index c846cf17f2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ResourceMetricSourceBuilder - extends V2beta1ResourceMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource, - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceBuilder> { - public V2beta1ResourceMetricSourceBuilder() { - this(false); - } - - public V2beta1ResourceMetricSourceBuilder(Boolean validationEnabled) { - this(new V2beta1ResourceMetricSource(), validationEnabled); - } - - public V2beta1ResourceMetricSourceBuilder(V2beta1ResourceMetricSourceFluent fluent) { - this(fluent, false); - } - - public V2beta1ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ResourceMetricSource(), validationEnabled); - } - - public V2beta1ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource instance) { - this(fluent, instance, false); - } - - public V2beta1ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withName(instance.getName()); - - fluent.withTargetAverageUtilization(instance.getTargetAverageUtilization()); - - fluent.withTargetAverageValue(instance.getTargetAverageValue()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource instance) { - this(instance, false); - } - - public V2beta1ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withName(instance.getName()); - - this.withTargetAverageUtilization(instance.getTargetAverageUtilization()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource build() { - V2beta1ResourceMetricSource buildable = new V2beta1ResourceMetricSource(); - buildable.setName(fluent.getName()); - buildable.setTargetAverageUtilization(fluent.getTargetAverageUtilization()); - buildable.setTargetAverageValue(fluent.getTargetAverageValue()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceFluent.java deleted file mode 100644 index 4109bacea8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceFluent.java +++ /dev/null @@ -1,40 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V2beta1ResourceMetricSourceFluent> - extends Fluent { - public String getName(); - - public A withName(java.lang.String name); - - public Boolean hasName(); - - public Integer getTargetAverageUtilization(); - - public A withTargetAverageUtilization(java.lang.Integer targetAverageUtilization); - - public java.lang.Boolean hasTargetAverageUtilization(); - - public Quantity getTargetAverageValue(); - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue); - - public java.lang.Boolean hasTargetAverageValue(); - - public A withNewTargetAverageValue(java.lang.String value); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceFluentImpl.java deleted file mode 100644 index b2305f2c18..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSourceFluentImpl.java +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ResourceMetricSourceFluentImpl> - extends BaseFluent implements V2beta1ResourceMetricSourceFluent { - public V2beta1ResourceMetricSourceFluentImpl() {} - - public V2beta1ResourceMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricSource instance) { - this.withName(instance.getName()); - - this.withTargetAverageUtilization(instance.getTargetAverageUtilization()); - - this.withTargetAverageValue(instance.getTargetAverageValue()); - } - - private String name; - private Integer targetAverageUtilization; - private Quantity targetAverageValue; - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.String name) { - this.name = name; - return (A) this; - } - - public Boolean hasName() { - return this.name != null; - } - - public java.lang.Integer getTargetAverageUtilization() { - return this.targetAverageUtilization; - } - - public A withTargetAverageUtilization(java.lang.Integer targetAverageUtilization) { - this.targetAverageUtilization = targetAverageUtilization; - return (A) this; - } - - public java.lang.Boolean hasTargetAverageUtilization() { - return this.targetAverageUtilization != null; - } - - public io.kubernetes.client.custom.Quantity getTargetAverageValue() { - return this.targetAverageValue; - } - - public A withTargetAverageValue(io.kubernetes.client.custom.Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - return (A) this; - } - - public java.lang.Boolean hasTargetAverageValue() { - return this.targetAverageValue != null; - } - - public A withNewTargetAverageValue(java.lang.String value) { - return (A) withTargetAverageValue(new Quantity(value)); - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ResourceMetricSourceFluentImpl that = (V2beta1ResourceMetricSourceFluentImpl) o; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - if (targetAverageUtilization != null - ? !targetAverageUtilization.equals(that.targetAverageUtilization) - : that.targetAverageUtilization != null) return false; - if (targetAverageValue != null - ? !targetAverageValue.equals(that.targetAverageValue) - : that.targetAverageValue != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - name, targetAverageUtilization, targetAverageValue, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { - sb.append("name:"); - sb.append(name + ","); - } - if (targetAverageUtilization != null) { - sb.append("targetAverageUtilization:"); - sb.append(targetAverageUtilization + ","); - } - if (targetAverageValue != null) { - sb.append("targetAverageValue:"); - sb.append(targetAverageValue); - } - sb.append("}"); - return sb.toString(); - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusBuilder.java deleted file mode 100644 index 91e4ca7710..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; - -public class V2beta1ResourceMetricStatusBuilder - extends V2beta1ResourceMetricStatusFluentImpl - implements VisitableBuilder< - V2beta1ResourceMetricStatus, - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusBuilder> { - public V2beta1ResourceMetricStatusBuilder() { - this(false); - } - - public V2beta1ResourceMetricStatusBuilder(Boolean validationEnabled) { - this(new V2beta1ResourceMetricStatus(), validationEnabled); - } - - public V2beta1ResourceMetricStatusBuilder(V2beta1ResourceMetricStatusFluent fluent) { - this(fluent, false); - } - - public V2beta1ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { - this(fluent, new V2beta1ResourceMetricStatus(), validationEnabled); - } - - public V2beta1ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus instance) { - this(fluent, instance, false); - } - - public V2beta1ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = fluent; - fluent.withCurrentAverageUtilization(instance.getCurrentAverageUtilization()); - - fluent.withCurrentAverageValue(instance.getCurrentAverageValue()); - - fluent.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - public V2beta1ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus instance) { - this(instance, false); - } - - public V2beta1ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { - this.fluent = this; - this.withCurrentAverageUtilization(instance.getCurrentAverageUtilization()); - - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withName(instance.getName()); - - this.validationEnabled = validationEnabled; - } - - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; - - public io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus build() { - V2beta1ResourceMetricStatus buildable = new V2beta1ResourceMetricStatus(); - buildable.setCurrentAverageUtilization(fluent.getCurrentAverageUtilization()); - buildable.setCurrentAverageValue(fluent.getCurrentAverageValue()); - buildable.setName(fluent.getName()); - return buildable; - } -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusFluent.java deleted file mode 100644 index 4ce51daad8..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusFluent.java +++ /dev/null @@ -1,40 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.Fluent; - -/** Generated */ -public interface V2beta1ResourceMetricStatusFluent> - extends Fluent { - public Integer getCurrentAverageUtilization(); - - public A withCurrentAverageUtilization(java.lang.Integer currentAverageUtilization); - - public Boolean hasCurrentAverageUtilization(); - - public Quantity getCurrentAverageValue(); - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue); - - public java.lang.Boolean hasCurrentAverageValue(); - - public A withNewCurrentAverageValue(String value); - - public java.lang.String getName(); - - public A withName(java.lang.String name); - - public java.lang.Boolean hasName(); -} diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusFluentImpl.java deleted file mode 100644 index 83f4f22a70..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatusFluentImpl.java +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.custom.Quantity; -import io.kubernetes.client.fluent.BaseFluent; - -/** Generated */ -@SuppressWarnings(value = "unchecked") -public class V2beta1ResourceMetricStatusFluentImpl> - extends BaseFluent implements V2beta1ResourceMetricStatusFluent { - public V2beta1ResourceMetricStatusFluentImpl() {} - - public V2beta1ResourceMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta1ResourceMetricStatus instance) { - this.withCurrentAverageUtilization(instance.getCurrentAverageUtilization()); - - this.withCurrentAverageValue(instance.getCurrentAverageValue()); - - this.withName(instance.getName()); - } - - private Integer currentAverageUtilization; - private Quantity currentAverageValue; - private String name; - - public java.lang.Integer getCurrentAverageUtilization() { - return this.currentAverageUtilization; - } - - public A withCurrentAverageUtilization(java.lang.Integer currentAverageUtilization) { - this.currentAverageUtilization = currentAverageUtilization; - return (A) this; - } - - public Boolean hasCurrentAverageUtilization() { - return this.currentAverageUtilization != null; - } - - public io.kubernetes.client.custom.Quantity getCurrentAverageValue() { - return this.currentAverageValue; - } - - public A withCurrentAverageValue(io.kubernetes.client.custom.Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - return (A) this; - } - - public java.lang.Boolean hasCurrentAverageValue() { - return this.currentAverageValue != null; - } - - public A withNewCurrentAverageValue(java.lang.String value) { - return (A) withCurrentAverageValue(new Quantity(value)); - } - - public java.lang.String getName() { - return this.name; - } - - public A withName(java.lang.String name) { - this.name = name; - return (A) this; - } - - public java.lang.Boolean hasName() { - return this.name != null; - } - - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - V2beta1ResourceMetricStatusFluentImpl that = (V2beta1ResourceMetricStatusFluentImpl) o; - if (currentAverageUtilization != null - ? !currentAverageUtilization.equals(that.currentAverageUtilization) - : that.currentAverageUtilization != null) return false; - if (currentAverageValue != null - ? !currentAverageValue.equals(that.currentAverageValue) - : that.currentAverageValue != null) return false; - if (name != null ? !name.equals(that.name) : that.name != null) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash( - currentAverageUtilization, currentAverageValue, name, super.hashCode()); - } - - public java.lang.String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (currentAverageUtilization != null) { - sb.append("currentAverageUtilization:"); - sb.append(currentAverageUtilization + ","); - } - if (currentAverageValue != null) { - sb.append("currentAverageValue:"); - sb.append(currentAverageValue + ","); - } - 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/V2beta2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java index b3823a1975..c97d1ebc2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceBuilder.java @@ -18,8 +18,7 @@ public class V2beta2ContainerResourceMetricSourceBuilder extends V2beta2ContainerResourceMetricSourceFluentImpl< V2beta2ContainerResourceMetricSourceBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource, - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceBuilder> { + V2beta2ContainerResourceMetricSource, V2beta2ContainerResourceMetricSourceBuilder> { public V2beta2ContainerResourceMetricSourceBuilder() { this(false); } @@ -34,21 +33,20 @@ public V2beta2ContainerResourceMetricSourceBuilder( } public V2beta2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ContainerResourceMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ContainerResourceMetricSource(), validationEnabled); } public V2beta2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource instance) { + V2beta2ContainerResourceMetricSourceFluent fluent, + V2beta2ContainerResourceMetricSource instance) { this(fluent, instance, false); } public V2beta2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ContainerResourceMetricSourceFluent fluent, + V2beta2ContainerResourceMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainer(instance.getContainer()); @@ -60,13 +58,12 @@ public V2beta2ContainerResourceMetricSourceBuilder( } public V2beta2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource instance) { + V2beta2ContainerResourceMetricSource instance) { this(instance, false); } public V2beta2ContainerResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ContainerResourceMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withContainer(instance.getContainer()); @@ -77,10 +74,10 @@ public V2beta2ContainerResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ContainerResourceMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource build() { + public V2beta2ContainerResourceMetricSource build() { V2beta2ContainerResourceMetricSource buildable = new V2beta2ContainerResourceMetricSource(); buildable.setContainer(fluent.getContainer()); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java index 297fa76ae9..85f8f2a4b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluent.java @@ -21,15 +21,15 @@ public interface V2beta2ContainerResourceMetricSourceFluent< extends Fluent { public String getContainer(); - public A withContainer(java.lang.String container); + public A withContainer(String container); public Boolean hasContainer(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); /** * This method has been deprecated, please use method buildTarget instead. @@ -39,33 +39,23 @@ public interface V2beta2ContainerResourceMetricSourceFluent< @Deprecated public V2beta2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget(); + public V2beta2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target); + public A withTarget(V2beta2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); - - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - editTarget(); - - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - editOrNewTarget(); - - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item); + + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editTarget(); + + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget(); + + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item); public interface TargetNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java index cadb8ffb07..c4b07b3c26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSourceFluentImpl.java @@ -23,7 +23,7 @@ public class V2beta2ContainerResourceMetricSourceFluentImpl< public V2beta2ContainerResourceMetricSourceFluentImpl() {} public V2beta2ContainerResourceMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource instance) { + V2beta2ContainerResourceMetricSource instance) { this.withContainer(instance.getContainer()); this.withName(instance.getName()); @@ -32,14 +32,14 @@ public V2beta2ContainerResourceMetricSourceFluentImpl( } private String container; - private java.lang.String name; + private String name; private V2beta2MetricTargetBuilder target; - public java.lang.String getContainer() { + public String getContainer() { return this.container; } - public A withContainer(java.lang.String container) { + public A withContainer(String container) { this.container = container; return (A) this; } @@ -48,16 +48,16 @@ public Boolean hasContainer() { return this.container != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -67,24 +67,27 @@ public java.lang.Boolean hasName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2beta2MetricTarget getTarget() { + public V2beta2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget() { + public V2beta2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target) { + public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { this.target = new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -92,34 +95,22 @@ public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTarget( return new V2beta2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2ContainerResourceMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item) { return new V2beta2ContainerResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - editTarget() { + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - editOrNewTarget() { + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - A> - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2ContainerResourceMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -139,7 +130,7 @@ public int hashCode() { return java.util.Objects.hash(container, name, target, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (container != null) { @@ -161,19 +152,16 @@ public java.lang.String toString() { class TargetNestedImpl extends V2beta2MetricTargetFluentImpl< V2beta2ContainerResourceMetricSourceFluent.TargetNested> - implements io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceFluent - .TargetNested< - N>, - Nested { + implements V2beta2ContainerResourceMetricSourceFluent.TargetNested, Nested { TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder(this); + this.builder = new V2beta2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder builder; + V2beta2MetricTargetBuilder builder; public N and() { return (N) V2beta2ContainerResourceMetricSourceFluentImpl.this.withTarget(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java index 6389733e1d..2bbf804af9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusBuilder.java @@ -18,8 +18,7 @@ public class V2beta2ContainerResourceMetricStatusBuilder extends V2beta2ContainerResourceMetricStatusFluentImpl< V2beta2ContainerResourceMetricStatusBuilder> implements VisitableBuilder< - V2beta2ContainerResourceMetricStatus, - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusBuilder> { + V2beta2ContainerResourceMetricStatus, V2beta2ContainerResourceMetricStatusBuilder> { public V2beta2ContainerResourceMetricStatusBuilder() { this(false); } @@ -34,21 +33,20 @@ public V2beta2ContainerResourceMetricStatusBuilder( } public V2beta2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ContainerResourceMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ContainerResourceMetricStatus(), validationEnabled); } public V2beta2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus instance) { + V2beta2ContainerResourceMetricStatusFluent fluent, + V2beta2ContainerResourceMetricStatus instance) { this(fluent, instance, false); } public V2beta2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ContainerResourceMetricStatusFluent fluent, + V2beta2ContainerResourceMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainer(instance.getContainer()); @@ -60,13 +58,12 @@ public V2beta2ContainerResourceMetricStatusBuilder( } public V2beta2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus instance) { + V2beta2ContainerResourceMetricStatus instance) { this(instance, false); } public V2beta2ContainerResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ContainerResourceMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withContainer(instance.getContainer()); @@ -77,10 +74,10 @@ public V2beta2ContainerResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ContainerResourceMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus build() { + public V2beta2ContainerResourceMetricStatus build() { V2beta2ContainerResourceMetricStatus buildable = new V2beta2ContainerResourceMetricStatus(); buildable.setContainer(fluent.getContainer()); buildable.setCurrent(fluent.getCurrent()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java index b1340c9e42..4cfce1621f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluent.java @@ -21,7 +21,7 @@ public interface V2beta2ContainerResourceMetricStatusFluent< extends Fluent { public String getContainer(); - public A withContainer(java.lang.String container); + public A withContainer(String container); public Boolean hasContainer(); @@ -33,39 +33,29 @@ public interface V2beta2ContainerResourceMetricStatusFluent< @Deprecated public V2beta2MetricValueStatus getCurrent(); - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus buildCurrent(); + public V2beta2MetricValueStatus buildCurrent(); - public A withCurrent(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus current); + public A withCurrent(V2beta2MetricValueStatus current); - public java.lang.Boolean hasCurrent(); + public Boolean hasCurrent(); public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - editCurrent(); + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - editOrNewCurrent(); + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public interface CurrentNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java index c0b954977a..1d9de7b446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatusFluentImpl.java @@ -23,7 +23,7 @@ public class V2beta2ContainerResourceMetricStatusFluentImpl< public V2beta2ContainerResourceMetricStatusFluentImpl() {} public V2beta2ContainerResourceMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus instance) { + V2beta2ContainerResourceMetricStatus instance) { this.withContainer(instance.getContainer()); this.withCurrent(instance.getCurrent()); @@ -33,13 +33,13 @@ public V2beta2ContainerResourceMetricStatusFluentImpl( private String container; private V2beta2MetricValueStatusBuilder current; - private java.lang.String name; + private String name; - public java.lang.String getContainer() { + public String getContainer() { return this.container; } - public A withContainer(java.lang.String container) { + public A withContainer(String container) { this.container = container; return (A) this; } @@ -58,21 +58,23 @@ public V2beta2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus buildCurrent() { + public V2beta2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus current) { + public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { - this.current = - new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(current); + this.current = new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } - public java.lang.Boolean hasCurrent() { + public Boolean hasCurrent() { return this.current != null; } @@ -80,47 +82,35 @@ public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurren return new V2beta2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item) { return new V2beta2ContainerResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - editCurrent() { + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - editOrNewCurrent() { + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - A> - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ContainerResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -140,7 +130,7 @@ public int hashCode() { return java.util.Objects.hash(container, current, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (container != null) { @@ -162,19 +152,16 @@ public java.lang.String toString() { class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl< V2beta2ContainerResourceMetricStatusFluent.CurrentNested> - implements io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusFluent - .CurrentNested< - N>, - Nested { + implements V2beta2ContainerResourceMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(this); + this.builder = new V2beta2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder builder; + V2beta2MetricValueStatusBuilder builder; public N and() { return (N) V2beta2ContainerResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java index 08552c2eb2..8bc3aaa616 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceBuilder.java @@ -17,8 +17,7 @@ public class V2beta2CrossVersionObjectReferenceBuilder extends V2beta2CrossVersionObjectReferenceFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference, - V2beta2CrossVersionObjectReferenceBuilder> { + V2beta2CrossVersionObjectReference, V2beta2CrossVersionObjectReferenceBuilder> { public V2beta2CrossVersionObjectReferenceBuilder() { this(false); } @@ -33,21 +32,20 @@ public V2beta2CrossVersionObjectReferenceBuilder( } public V2beta2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2CrossVersionObjectReferenceFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2CrossVersionObjectReference(), validationEnabled); } public V2beta2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference instance) { + V2beta2CrossVersionObjectReferenceFluent fluent, + V2beta2CrossVersionObjectReference instance) { this(fluent, instance, false); } public V2beta2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { + V2beta2CrossVersionObjectReferenceFluent fluent, + V2beta2CrossVersionObjectReference instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -58,14 +56,12 @@ public V2beta2CrossVersionObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - public V2beta2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference instance) { + public V2beta2CrossVersionObjectReferenceBuilder(V2beta2CrossVersionObjectReference instance) { this(instance, false); } public V2beta2CrossVersionObjectReferenceBuilder( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference instance, - java.lang.Boolean validationEnabled) { + V2beta2CrossVersionObjectReference instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -76,10 +72,10 @@ public V2beta2CrossVersionObjectReferenceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2CrossVersionObjectReferenceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference build() { + public V2beta2CrossVersionObjectReference build() { V2beta2CrossVersionObjectReference buildable = new V2beta2CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java index 8f6de1171a..6632845da9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluent.java @@ -20,19 +20,19 @@ public interface V2beta2CrossVersionObjectReferenceFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); - public java.lang.String getName(); + public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java index fc90261ac2..59acbce76a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReferenceFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2CrossVersionObjectReferenceFluentImpl< extends BaseFluent implements V2beta2CrossVersionObjectReferenceFluent { public V2beta2CrossVersionObjectReferenceFluentImpl() {} - public V2beta2CrossVersionObjectReferenceFluentImpl( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference instance) { + public V2beta2CrossVersionObjectReferenceFluentImpl(V2beta2CrossVersionObjectReference instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -31,14 +30,14 @@ public V2beta2CrossVersionObjectReferenceFluentImpl( } private String apiVersion; - private java.lang.String kind; - private java.lang.String name; + private String kind; + private String name; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -47,29 +46,29 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -89,7 +88,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java index 61d3692884..5ac0c3fe58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceBuilder.java @@ -16,9 +16,7 @@ public class V2beta2ExternalMetricSourceBuilder extends V2beta2ExternalMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource, - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceBuilder> { + implements VisitableBuilder { public V2beta2ExternalMetricSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSourceFluent f } public V2beta2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ExternalMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ExternalMetricSource(), validationEnabled); } public V2beta2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource instance) { + V2beta2ExternalMetricSourceFluent fluent, V2beta2ExternalMetricSource instance) { this(fluent, instance, false); } public V2beta2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ExternalMetricSourceFluent fluent, + V2beta2ExternalMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMetric(instance.getMetric()); @@ -55,14 +51,12 @@ public V2beta2ExternalMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2beta2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource instance) { + public V2beta2ExternalMetricSourceBuilder(V2beta2ExternalMetricSource instance) { this(instance, false); } public V2beta2ExternalMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ExternalMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withMetric(instance.getMetric()); @@ -71,10 +65,10 @@ public V2beta2ExternalMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ExternalMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource build() { + public V2beta2ExternalMetricSource build() { V2beta2ExternalMetricSource buildable = new V2beta2ExternalMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java index cc92051dde..3dcf14cb0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluent.java @@ -27,53 +27,49 @@ public interface V2beta2ExternalMetricSourceFluent withNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - editMetric(); + public V2beta2ExternalMetricSourceFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - editOrNewMetric(); + public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget(); + public V2beta2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target); + public A withTarget(V2beta2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2beta2ExternalMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ExternalMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - editTarget(); + public V2beta2ExternalMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item); public interface MetricNested extends Nested, @@ -84,7 +80,7 @@ public interface MetricNested } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricTargetFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java index 99b1e35b95..09e9099a91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2ExternalMetricSourceFluentImpl implements V2beta2ExternalMetricSourceFluent { public V2beta2ExternalMetricSourceFluentImpl() {} - public V2beta2ExternalMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource instance) { + public V2beta2ExternalMetricSourceFluentImpl(V2beta2ExternalMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); @@ -41,15 +40,18 @@ public V2beta2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric() { + public V2beta2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric) { + public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(metric); + this.metric = new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } @@ -62,26 +64,22 @@ public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetric() { return new V2beta2ExternalMetricSourceFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item) { return new V2beta2ExternalMetricSourceFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - editMetric() { + public V2beta2ExternalMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - editOrNewMetric() { + public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2ExternalMetricSourceFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -90,25 +88,28 @@ public V2beta2ExternalMetricSourceFluent.MetricNested withNewMetric() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2MetricTarget getTarget() { + @Deprecated + public V2beta2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget() { + public V2beta2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target) { + public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { this.target = new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -116,27 +117,22 @@ public V2beta2ExternalMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ExternalMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { - return new io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluentImpl - .TargetNestedImpl(item); + public V2beta2ExternalMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item) { + return new V2beta2ExternalMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - editTarget() { + public V2beta2ExternalMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2ExternalMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -170,18 +166,16 @@ public String toString() { class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.MetricNested< - N>, - Nested { - MetricNestedImpl(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + implements V2beta2ExternalMetricSourceFluent.MetricNested, Nested { + MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(this); + this.builder = new V2beta2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder builder; + V2beta2MetricIdentifierBuilder builder; public N and() { return (N) V2beta2ExternalMetricSourceFluentImpl.this.withMetric(builder.build()); @@ -194,18 +188,16 @@ public N endMetric() { class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceFluent.TargetNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2ExternalMetricSourceFluent.TargetNested, Nested { TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder(this); + this.builder = new V2beta2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder builder; + V2beta2MetricTargetBuilder builder; public N and() { return (N) V2beta2ExternalMetricSourceFluentImpl.this.withTarget(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java index 4b1cee5d5e..fe1b9f69ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusBuilder.java @@ -16,9 +16,7 @@ public class V2beta2ExternalMetricStatusBuilder extends V2beta2ExternalMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus, - V2beta2ExternalMetricStatusBuilder> { + implements VisitableBuilder { public V2beta2ExternalMetricStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatusFluent f } public V2beta2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ExternalMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ExternalMetricStatus(), validationEnabled); } public V2beta2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus instance) { + V2beta2ExternalMetricStatusFluent fluent, V2beta2ExternalMetricStatus instance) { this(fluent, instance, false); } public V2beta2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ExternalMetricStatusFluent fluent, + V2beta2ExternalMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -55,14 +51,12 @@ public V2beta2ExternalMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2beta2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus instance) { + public V2beta2ExternalMetricStatusBuilder(V2beta2ExternalMetricStatus instance) { this(instance, false); } public V2beta2ExternalMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ExternalMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -71,10 +65,10 @@ public V2beta2ExternalMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ExternalMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus build() { + public V2beta2ExternalMetricStatus build() { V2beta2ExternalMetricStatus buildable = new V2beta2ExternalMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java index 21721e3752..ad5a55efe0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluent.java @@ -27,53 +27,49 @@ public interface V2beta2ExternalMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - editCurrent(); + public V2beta2ExternalMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric(); + public V2beta2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric); + public A withMetric(V2beta2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - editMetric(); + public V2beta2ExternalMetricStatusFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - editOrNewMetric(); + public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item); public interface CurrentNested extends Nested, @@ -84,7 +80,7 @@ public interface CurrentNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricIdentifierFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java index 9285660d2d..38739762a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2ExternalMetricStatusFluentImpl implements V2beta2ExternalMetricStatusFluent { public V2beta2ExternalMetricStatusFluentImpl() {} - public V2beta2ExternalMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus instance) { + public V2beta2ExternalMetricStatusFluentImpl(V2beta2ExternalMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); @@ -41,16 +40,18 @@ public V2beta2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus buildCurrent() { + public V2beta2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus current) { + public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { - this.current = - new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(current); + this.current = new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -63,26 +64,22 @@ public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ExternalMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item) { return new V2beta2ExternalMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - editCurrent() { + public V2beta2ExternalMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ExternalMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } @@ -91,25 +88,28 @@ public V2beta2ExternalMetricStatusFluent.CurrentNested withNewCurrent() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric() { + public V2beta2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric) { + public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(metric); + this.metric = new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -117,27 +117,22 @@ public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetric() { return new V2beta2ExternalMetricStatusFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluentImpl - .MetricNestedImpl(item); + public V2beta2ExternalMetricStatusFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item) { + return new V2beta2ExternalMetricStatusFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - editMetric() { + public V2beta2ExternalMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - editOrNewMetric() { + public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2ExternalMetricStatusFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -171,19 +166,16 @@ public String toString() { class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent - .CurrentNested< - N>, - Nested { + implements V2beta2ExternalMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(this); + this.builder = new V2beta2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder builder; + V2beta2MetricValueStatusBuilder builder; public N and() { return (N) V2beta2ExternalMetricStatusFluentImpl.this.withCurrent(builder.build()); @@ -196,18 +188,16 @@ public N endCurrent() { class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusFluent.MetricNested< - N>, - io.kubernetes.client.fluent.Nested { - MetricNestedImpl(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + implements V2beta2ExternalMetricStatusFluent.MetricNested, Nested { + MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(this); + this.builder = new V2beta2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder builder; + V2beta2MetricIdentifierBuilder builder; public N and() { return (N) V2beta2ExternalMetricStatusFluentImpl.this.withMetric(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java index 9e33dbbf11..986c51e0e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyBuilder.java @@ -16,9 +16,7 @@ public class V2beta2HPAScalingPolicyBuilder extends V2beta2HPAScalingPolicyFluentImpl - implements VisitableBuilder< - V2beta2HPAScalingPolicy, - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> { + implements VisitableBuilder { public V2beta2HPAScalingPolicyBuilder() { this(false); } @@ -27,27 +25,24 @@ public V2beta2HPAScalingPolicyBuilder(Boolean validationEnabled) { this(new V2beta2HPAScalingPolicy(), validationEnabled); } - public V2beta2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyFluent fluent) { + public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicyFluent fluent) { this(fluent, false); } public V2beta2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HPAScalingPolicyFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HPAScalingPolicy(), validationEnabled); } public V2beta2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy instance) { + V2beta2HPAScalingPolicyFluent fluent, V2beta2HPAScalingPolicy instance) { this(fluent, instance, false); } public V2beta2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy instance, - java.lang.Boolean validationEnabled) { + V2beta2HPAScalingPolicyFluent fluent, + V2beta2HPAScalingPolicy instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPeriodSeconds(instance.getPeriodSeconds()); @@ -58,14 +53,12 @@ public V2beta2HPAScalingPolicyBuilder( this.validationEnabled = validationEnabled; } - public V2beta2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy instance) { + public V2beta2HPAScalingPolicyBuilder(V2beta2HPAScalingPolicy instance) { this(instance, false); } public V2beta2HPAScalingPolicyBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy instance, - java.lang.Boolean validationEnabled) { + V2beta2HPAScalingPolicy instance, Boolean validationEnabled) { this.fluent = this; this.withPeriodSeconds(instance.getPeriodSeconds()); @@ -76,10 +69,10 @@ public V2beta2HPAScalingPolicyBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HPAScalingPolicyFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy build() { + public V2beta2HPAScalingPolicy build() { V2beta2HPAScalingPolicy buildable = new V2beta2HPAScalingPolicy(); buildable.setPeriodSeconds(fluent.getPeriodSeconds()); buildable.setType(fluent.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java index eeaaf22c58..1665d0a793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluent.java @@ -19,19 +19,19 @@ public interface V2beta2HPAScalingPolicyFluent { public Integer getPeriodSeconds(); - public A withPeriodSeconds(java.lang.Integer periodSeconds); + public A withPeriodSeconds(Integer periodSeconds); public Boolean hasPeriodSeconds(); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); - public java.lang.Integer getValue(); + public Integer getValue(); - public A withValue(java.lang.Integer value); + public A withValue(Integer value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java index 1ce4303700..74a621bcbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicyFluentImpl.java @@ -20,8 +20,7 @@ public class V2beta2HPAScalingPolicyFluentImpl implements V2beta2HPAScalingPolicyFluent { public V2beta2HPAScalingPolicyFluentImpl() {} - public V2beta2HPAScalingPolicyFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy instance) { + public V2beta2HPAScalingPolicyFluentImpl(V2beta2HPAScalingPolicy instance) { this.withPeriodSeconds(instance.getPeriodSeconds()); this.withType(instance.getType()); @@ -31,13 +30,13 @@ public V2beta2HPAScalingPolicyFluentImpl( private Integer periodSeconds; private String type; - private java.lang.Integer value; + private Integer value; - public java.lang.Integer getPeriodSeconds() { + public Integer getPeriodSeconds() { return this.periodSeconds; } - public A withPeriodSeconds(java.lang.Integer periodSeconds) { + public A withPeriodSeconds(Integer periodSeconds) { this.periodSeconds = periodSeconds; return (A) this; } @@ -46,29 +45,29 @@ public Boolean hasPeriodSeconds() { return this.periodSeconds != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public java.lang.Integer getValue() { + public Integer getValue() { return this.value; } - public A withValue(java.lang.Integer value) { + public A withValue(Integer value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } @@ -88,7 +87,7 @@ public int hashCode() { return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (periodSeconds != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java index 8bd7766512..c145f701d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesBuilder.java @@ -16,8 +16,7 @@ public class V2beta2HPAScalingRulesBuilder extends V2beta2HPAScalingRulesFluentImpl - implements VisitableBuilder< - V2beta2HPAScalingRules, io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder> { + implements VisitableBuilder { public V2beta2HPAScalingRulesBuilder() { this(false); } @@ -31,21 +30,19 @@ public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRulesFluent fluent) { } public V2beta2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HPAScalingRulesFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HPAScalingRules(), validationEnabled); } public V2beta2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HPAScalingRules instance) { + V2beta2HPAScalingRulesFluent fluent, V2beta2HPAScalingRules instance) { this(fluent, instance, false); } public V2beta2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HPAScalingRules instance, - java.lang.Boolean validationEnabled) { + V2beta2HPAScalingRulesFluent fluent, + V2beta2HPAScalingRules instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withPolicies(instance.getPolicies()); @@ -56,14 +53,11 @@ public V2beta2HPAScalingRulesBuilder( this.validationEnabled = validationEnabled; } - public V2beta2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingRules instance) { + public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRules instance) { this(instance, false); } - public V2beta2HPAScalingRulesBuilder( - io.kubernetes.client.openapi.models.V2beta2HPAScalingRules instance, - java.lang.Boolean validationEnabled) { + public V2beta2HPAScalingRulesBuilder(V2beta2HPAScalingRules instance, Boolean validationEnabled) { this.fluent = this; this.withPolicies(instance.getPolicies()); @@ -74,10 +68,10 @@ public V2beta2HPAScalingRulesBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HPAScalingRulesFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules build() { + public V2beta2HPAScalingRules build() { V2beta2HPAScalingRules buildable = new V2beta2HPAScalingRules(); buildable.setPolicies(fluent.getPolicies()); buildable.setSelectPolicy(fluent.getSelectPolicy()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java index 23675c37cd..ad986e2fc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluent.java @@ -23,18 +23,15 @@ public interface V2beta2HPAScalingRulesFluent { public A addToPolicies(Integer index, V2beta2HPAScalingPolicy item); - public A setToPolicies( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item); + public A setToPolicies(Integer index, V2beta2HPAScalingPolicy item); public A addToPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items); - public A addAllToPolicies( - Collection items); + public A addAllToPolicies(Collection items); public A removeFromPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items); - public A removeAllFromPolicies( - java.util.Collection items); + public A removeAllFromPolicies(Collection items); public A removeMatchingFromPolicies(Predicate predicate); @@ -44,71 +41,55 @@ public A removeAllFromPolicies( * @return The buildable object. */ @Deprecated - public List getPolicies(); + public List getPolicies(); - public java.util.List - buildPolicies(); + public List buildPolicies(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildPolicy( - java.lang.Integer index); + public V2beta2HPAScalingPolicy buildPolicy(Integer index); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildFirstPolicy(); + public V2beta2HPAScalingPolicy buildFirstPolicy(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildLastPolicy(); + public V2beta2HPAScalingPolicy buildLastPolicy(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> - predicate); + public V2beta2HPAScalingPolicy buildMatchingPolicy( + Predicate predicate); - public Boolean hasMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> - predicate); + public Boolean hasMatchingPolicy(Predicate predicate); - public A withPolicies( - java.util.List policies); + public A withPolicies(List policies); public A withPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... policies); - public java.lang.Boolean hasPolicies(); + public Boolean hasPolicies(); public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicy(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - addNewPolicyLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item); + public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike( + V2beta2HPAScalingPolicy item); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - setNewPolicyLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item); + public V2beta2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( + Integer index, V2beta2HPAScalingPolicy item); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editPolicy(java.lang.Integer index); + public V2beta2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editFirstPolicy(); + public V2beta2HPAScalingRulesFluent.PoliciesNested editFirstPolicy(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editLastPolicy(); + public V2beta2HPAScalingRulesFluent.PoliciesNested editLastPolicy(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> - predicate); + public V2beta2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( + Predicate predicate); public String getSelectPolicy(); - public A withSelectPolicy(java.lang.String selectPolicy); + public A withSelectPolicy(String selectPolicy); - public java.lang.Boolean hasSelectPolicy(); + public Boolean hasSelectPolicy(); - public java.lang.Integer getStabilizationWindowSeconds(); + public Integer getStabilizationWindowSeconds(); - public A withStabilizationWindowSeconds(java.lang.Integer stabilizationWindowSeconds); + public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds); - public java.lang.Boolean hasStabilizationWindowSeconds(); + public Boolean hasStabilizationWindowSeconds(); public interface PoliciesNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java index 82bda2b22a..daeb9ed0d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRulesFluentImpl.java @@ -26,8 +26,7 @@ public class V2beta2HPAScalingRulesFluentImpl implements V2beta2HPAScalingRulesFluent { public V2beta2HPAScalingRulesFluentImpl() {} - public V2beta2HPAScalingRulesFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HPAScalingRules instance) { + public V2beta2HPAScalingRulesFluentImpl(V2beta2HPAScalingRules instance) { this.withPolicies(instance.getPolicies()); this.withSelectPolicy(instance.getSelectPolicy()); @@ -39,14 +38,11 @@ public V2beta2HPAScalingRulesFluentImpl( private String selectPolicy; private Integer stabilizationWindowSeconds; - public A addToPolicies(java.lang.Integer index, V2beta2HPAScalingPolicy item) { + public A addToPolicies(Integer index, V2beta2HPAScalingPolicy item) { if (this.policies == null) { - this.policies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder>(); + this.policies = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(item); + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); _visitables .get("policies") .add(index >= 0 ? index : _visitables.get("policies").size(), builder); @@ -54,15 +50,11 @@ public A addToPolicies(java.lang.Integer index, V2beta2HPAScalingPolicy item) { return (A) this; } - public A setToPolicies( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item) { + public A setToPolicies(Integer index, V2beta2HPAScalingPolicy item) { if (this.policies == null) { - this.policies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder>(); + this.policies = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(item); + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); if (index < 0 || index >= _visitables.get("policies").size()) { _visitables.get("policies").add(builder); } else { @@ -78,29 +70,22 @@ public A setToPolicies( public A addToPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items) { if (this.policies == null) { - this.policies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder>(); + this.policies = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(item); + for (V2beta2HPAScalingPolicy item : items) { + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); _visitables.get("policies").add(builder); this.policies.add(builder); } return (A) this; } - public A addAllToPolicies( - Collection items) { + public A addAllToPolicies(Collection items) { if (this.policies == null) { - this.policies = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder>(); + this.policies = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(item); + for (V2beta2HPAScalingPolicy item : items) { + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); _visitables.get("policies").add(builder); this.policies.add(builder); } @@ -109,9 +94,8 @@ public A addAllToPolicies( public A removeFromPolicies( io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy... items) { - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(item); + for (V2beta2HPAScalingPolicy item : items) { + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); _visitables.get("policies").remove(builder); if (this.policies != null) { this.policies.remove(builder); @@ -120,11 +104,9 @@ public A removeFromPolicies( return (A) this; } - public A removeAllFromPolicies( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item : items) { - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(item); + public A removeAllFromPolicies(Collection items) { + for (V2beta2HPAScalingPolicy item : items) { + V2beta2HPAScalingPolicyBuilder builder = new V2beta2HPAScalingPolicyBuilder(item); _visitables.get("policies").remove(builder); if (this.policies != null) { this.policies.remove(builder); @@ -133,14 +115,12 @@ public A removeAllFromPolicies( return (A) this; } - public A removeMatchingFromPolicies( - Predicate predicate) { + public A removeMatchingFromPolicies(Predicate predicate) { if (policies == null) return (A) this; - final Iterator each = - policies.iterator(); + final Iterator each = policies.iterator(); final List visitables = _visitables.get("policies"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder = each.next(); + V2beta2HPAScalingPolicyBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -155,33 +135,29 @@ public A removeMatchingFromPolicies( * @return The buildable object. */ @Deprecated - public List getPolicies() { + public List getPolicies() { return policies != null ? build(policies) : null; } - public java.util.List - buildPolicies() { + public List buildPolicies() { return policies != null ? build(policies) : null; } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildPolicy( - java.lang.Integer index) { + public V2beta2HPAScalingPolicy buildPolicy(Integer index) { return this.policies.get(index).build(); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildFirstPolicy() { + public V2beta2HPAScalingPolicy buildFirstPolicy() { return this.policies.get(0).build(); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildLastPolicy() { + public V2beta2HPAScalingPolicy buildLastPolicy() { return this.policies.get(policies.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder item : policies) { + public V2beta2HPAScalingPolicy buildMatchingPolicy( + Predicate predicate) { + for (V2beta2HPAScalingPolicyBuilder item : policies) { if (predicate.test(item)) { return item.build(); } @@ -189,11 +165,8 @@ public io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy buildMatching return null; } - public Boolean hasMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder item : policies) { + public Boolean hasMatchingPolicy(Predicate predicate) { + for (V2beta2HPAScalingPolicyBuilder item : policies) { if (predicate.test(item)) { return true; } @@ -201,14 +174,13 @@ public Boolean hasMatchingPolicy( return false; } - public A withPolicies( - java.util.List policies) { + public A withPolicies(List policies) { if (this.policies != null) { _visitables.get("policies").removeAll(this.policies); } if (policies != null) { - this.policies = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item : policies) { + this.policies = new ArrayList(); + for (V2beta2HPAScalingPolicy item : policies) { this.addToPolicies(item); } } else { @@ -222,14 +194,14 @@ public A withPolicies(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolic this.policies.clear(); } if (policies != null) { - for (io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item : policies) { + for (V2beta2HPAScalingPolicy item : policies) { this.addToPolicies(item); } } return (A) this; } - public java.lang.Boolean hasPolicies() { + public Boolean hasPolicies() { return policies != null && !policies.isEmpty(); } @@ -237,45 +209,36 @@ public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicy() { return new V2beta2HPAScalingRulesFluentImpl.PoliciesNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - addNewPolicyLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item) { + public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicyLike( + V2beta2HPAScalingPolicy item) { return new V2beta2HPAScalingRulesFluentImpl.PoliciesNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - setNewPolicyLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item) { - return new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluentImpl - .PoliciesNestedImpl(index, item); + public V2beta2HPAScalingRulesFluent.PoliciesNested setNewPolicyLike( + Integer index, V2beta2HPAScalingPolicy item) { + return new V2beta2HPAScalingRulesFluentImpl.PoliciesNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editPolicy(java.lang.Integer index) { + public V2beta2HPAScalingRulesFluent.PoliciesNested editPolicy(Integer index) { if (policies.size() <= index) throw new RuntimeException("Can't edit policies. Index exceeds size."); return setNewPolicyLike(index, buildPolicy(index)); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editFirstPolicy() { + public V2beta2HPAScalingRulesFluent.PoliciesNested editFirstPolicy() { if (policies.size() == 0) throw new RuntimeException("Can't edit first policies. The list is empty."); return setNewPolicyLike(0, buildPolicy(0)); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editLastPolicy() { + public V2beta2HPAScalingRulesFluent.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)); } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested - editMatchingPolicy( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder> - predicate) { + public V2beta2HPAScalingRulesFluent.PoliciesNested editMatchingPolicy( + Predicate predicate) { int index = -1; for (int i = 0; i < policies.size(); i++) { if (predicate.test(policies.get(i))) { @@ -287,29 +250,29 @@ public V2beta2HPAScalingRulesFluent.PoliciesNested addNewPolicy() { return setNewPolicyLike(index, buildPolicy(index)); } - public java.lang.String getSelectPolicy() { + public String getSelectPolicy() { return this.selectPolicy; } - public A withSelectPolicy(java.lang.String selectPolicy) { + public A withSelectPolicy(String selectPolicy) { this.selectPolicy = selectPolicy; return (A) this; } - public java.lang.Boolean hasSelectPolicy() { + public Boolean hasSelectPolicy() { return this.selectPolicy != null; } - public java.lang.Integer getStabilizationWindowSeconds() { + public Integer getStabilizationWindowSeconds() { return this.stabilizationWindowSeconds; } - public A withStabilizationWindowSeconds(java.lang.Integer stabilizationWindowSeconds) { + public A withStabilizationWindowSeconds(Integer stabilizationWindowSeconds) { this.stabilizationWindowSeconds = stabilizationWindowSeconds; return (A) this; } - public java.lang.Boolean hasStabilizationWindowSeconds() { + public Boolean hasStabilizationWindowSeconds() { return this.stabilizationWindowSeconds != null; } @@ -331,7 +294,7 @@ public int hashCode() { policies, selectPolicy, stabilizationWindowSeconds, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (policies != null && !policies.isEmpty()) { @@ -352,21 +315,19 @@ public java.lang.String toString() { class PoliciesNestedImpl extends V2beta2HPAScalingPolicyFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesFluent.PoliciesNested, - Nested { - PoliciesNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicy item) { + implements V2beta2HPAScalingRulesFluent.PoliciesNested, Nested { + PoliciesNestedImpl(Integer index, V2beta2HPAScalingPolicy item) { this.index = index; this.builder = new V2beta2HPAScalingPolicyBuilder(this, item); } PoliciesNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder(this); + this.builder = new V2beta2HPAScalingPolicyBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HPAScalingPolicyBuilder builder; - java.lang.Integer index; + V2beta2HPAScalingPolicyBuilder builder; + Integer index; public N and() { return (N) V2beta2HPAScalingRulesFluentImpl.this.setToPolicies(index, builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java index d873ecfa96..470f5b0af3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorBuilder.java @@ -18,8 +18,7 @@ public class V2beta2HorizontalPodAutoscalerBehaviorBuilder extends V2beta2HorizontalPodAutoscalerBehaviorFluentImpl< V2beta2HorizontalPodAutoscalerBehaviorBuilder> implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorBuilder> { + V2beta2HorizontalPodAutoscalerBehavior, V2beta2HorizontalPodAutoscalerBehaviorBuilder> { public V2beta2HorizontalPodAutoscalerBehaviorBuilder() { this(false); } @@ -34,21 +33,20 @@ public V2beta2HorizontalPodAutoscalerBehaviorBuilder( } public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerBehavior(), validationEnabled); } public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior instance) { + V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, + V2beta2HorizontalPodAutoscalerBehavior instance) { this(fluent, instance, false); } public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerBehaviorFluent fluent, + V2beta2HorizontalPodAutoscalerBehavior instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withScaleDown(instance.getScaleDown()); @@ -58,13 +56,12 @@ public V2beta2HorizontalPodAutoscalerBehaviorBuilder( } public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior instance) { + V2beta2HorizontalPodAutoscalerBehavior instance) { this(instance, false); } public V2beta2HorizontalPodAutoscalerBehaviorBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerBehavior instance, Boolean validationEnabled) { this.fluent = this; this.withScaleDown(instance.getScaleDown()); @@ -73,10 +70,10 @@ public V2beta2HorizontalPodAutoscalerBehaviorBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HorizontalPodAutoscalerBehaviorFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior build() { + public V2beta2HorizontalPodAutoscalerBehavior build() { V2beta2HorizontalPodAutoscalerBehavior buildable = new V2beta2HorizontalPodAutoscalerBehavior(); buildable.setScaleDown(fluent.getScaleDown()); buildable.setScaleUp(fluent.getScaleUp()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java index 39e20dd3b8..79c0e7442c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluent.java @@ -28,69 +28,49 @@ public interface V2beta2HorizontalPodAutoscalerBehaviorFluent< @Deprecated public V2beta2HPAScalingRules getScaleDown(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules buildScaleDown(); + public V2beta2HPAScalingRules buildScaleDown(); - public A withScaleDown(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules scaleDown); + public A withScaleDown(V2beta2HPAScalingRules scaleDown); public Boolean hasScaleDown(); public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDown(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - withNewScaleDownLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( + V2beta2HPAScalingRules item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editScaleDown(); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDown(); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDownLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( + V2beta2HPAScalingRules item); /** * This method has been deprecated, please use method buildScaleUp instead. * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules getScaleUp(); + @Deprecated + public V2beta2HPAScalingRules getScaleUp(); - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules buildScaleUp(); + public V2beta2HPAScalingRules buildScaleUp(); - public A withScaleUp(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules scaleUp); + public A withScaleUp(V2beta2HPAScalingRules scaleUp); - public java.lang.Boolean hasScaleUp(); + public Boolean hasScaleUp(); public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUp(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - withNewScaleUpLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( + V2beta2HPAScalingRules item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - editScaleUp(); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - editOrNewScaleUp(); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - editOrNewScaleUpLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( + V2beta2HPAScalingRules item); public interface ScaleDownNested extends Nested, @@ -102,7 +82,7 @@ public interface ScaleDownNested } public interface ScaleUpNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2HPAScalingRulesFluent< V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java index 059fc08d2d..bee6f02a25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.java @@ -23,7 +23,7 @@ public class V2beta2HorizontalPodAutoscalerBehaviorFluentImpl< public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl() {} public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior instance) { + V2beta2HorizontalPodAutoscalerBehavior instance) { this.withScaleDown(instance.getScaleDown()); this.withScaleUp(instance.getScaleUp()); @@ -38,20 +38,22 @@ public V2beta2HorizontalPodAutoscalerBehaviorFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules getScaleDown() { + public V2beta2HPAScalingRules getScaleDown() { return this.scaleDown != null ? this.scaleDown.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules buildScaleDown() { + public V2beta2HPAScalingRules buildScaleDown() { return this.scaleDown != null ? this.scaleDown.build() : null; } - public A withScaleDown(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules scaleDown) { + public A withScaleDown(V2beta2HPAScalingRules scaleDown) { _visitables.get("scaleDown").remove(this.scaleDown); if (scaleDown != null) { - this.scaleDown = - new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder(scaleDown); + this.scaleDown = new V2beta2HPAScalingRulesBuilder(scaleDown); _visitables.get("scaleDown").add(this.scaleDown); + } else { + this.scaleDown = null; + _visitables.get("scaleDown").remove(this.scaleDown); } return (A) this; } @@ -64,34 +66,22 @@ public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewSc return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - withNewScaleDownLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item) { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewScaleDownLike( + V2beta2HPAScalingRules item) { return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleDownNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editScaleDown() { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editScaleDown() { return withNewScaleDownLike(getScaleDown()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDown() { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDown() { return withNewScaleDownLike( - getScaleDown() != null - ? getScaleDown() - : new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder().build()); + getScaleDown() != null ? getScaleDown() : new V2beta2HPAScalingRulesBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - A> - editOrNewScaleDownLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item) { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested editOrNewScaleDownLike( + V2beta2HPAScalingRules item) { return withNewScaleDownLike(getScaleDown() != null ? getScaleDown() : item); } @@ -100,25 +90,28 @@ public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested withNewSc * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules getScaleUp() { + @Deprecated + public V2beta2HPAScalingRules getScaleUp() { return this.scaleUp != null ? this.scaleUp.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2HPAScalingRules buildScaleUp() { + public V2beta2HPAScalingRules buildScaleUp() { return this.scaleUp != null ? this.scaleUp.build() : null; } - public A withScaleUp(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules scaleUp) { + public A withScaleUp(V2beta2HPAScalingRules scaleUp) { _visitables.get("scaleUp").remove(this.scaleUp); if (scaleUp != null) { - this.scaleUp = new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder(scaleUp); + this.scaleUp = new V2beta2HPAScalingRulesBuilder(scaleUp); _visitables.get("scaleUp").add(this.scaleUp); + } else { + this.scaleUp = null; + _visitables.get("scaleUp").remove(this.scaleUp); } return (A) this; } - public java.lang.Boolean hasScaleUp() { + public Boolean hasScaleUp() { return this.scaleUp != null; } @@ -126,35 +119,22 @@ public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScal return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - withNewScaleUpLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluentImpl - .ScaleUpNestedImpl(item); + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested withNewScaleUpLike( + V2beta2HPAScalingRules item) { + return new V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.ScaleUpNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - editScaleUp() { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editScaleUp() { return withNewScaleUpLike(getScaleUp()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - editOrNewScaleUp() { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUp() { return withNewScaleUpLike( - getScaleUp() != null - ? getScaleUp() - : new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder().build()); + getScaleUp() != null ? getScaleUp() : new V2beta2HPAScalingRulesBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - A> - editOrNewScaleUpLike(io.kubernetes.client.openapi.models.V2beta2HPAScalingRules item) { + public V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested editOrNewScaleUpLike( + V2beta2HPAScalingRules item) { return withNewScaleUpLike(getScaleUp() != null ? getScaleUp() : item); } @@ -191,19 +171,16 @@ public String toString() { class ScaleDownNestedImpl extends V2beta2HPAScalingRulesFluentImpl< V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleDownNested< - N>, - Nested { + implements V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleDownNested, Nested { ScaleDownNestedImpl(V2beta2HPAScalingRules item) { this.builder = new V2beta2HPAScalingRulesBuilder(this, item); } ScaleDownNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder(this); + this.builder = new V2beta2HPAScalingRulesBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder builder; + V2beta2HPAScalingRulesBuilder builder; public N and() { return (N) @@ -218,19 +195,16 @@ public N endScaleDown() { class ScaleUpNestedImpl extends V2beta2HPAScalingRulesFluentImpl< V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorFluent - .ScaleUpNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2HorizontalPodAutoscalerBehaviorFluent.ScaleUpNested, Nested { ScaleUpNestedImpl(V2beta2HPAScalingRules item) { this.builder = new V2beta2HPAScalingRulesBuilder(this, item); } ScaleUpNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder(this); + this.builder = new V2beta2HPAScalingRulesBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HPAScalingRulesBuilder builder; + V2beta2HPAScalingRulesBuilder builder; public N and() { return (N) V2beta2HorizontalPodAutoscalerBehaviorFluentImpl.this.withScaleUp(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java index ead87eb92e..f89542fb81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBuilder.java @@ -17,8 +17,7 @@ public class V2beta2HorizontalPodAutoscalerBuilder extends V2beta2HorizontalPodAutoscalerFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> { + V2beta2HorizontalPodAutoscaler, V2beta2HorizontalPodAutoscalerBuilder> { public V2beta2HorizontalPodAutoscalerBuilder() { this(false); } @@ -32,21 +31,19 @@ public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscalerFluen } public V2beta2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscaler(), validationEnabled); } public V2beta2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler instance) { + V2beta2HorizontalPodAutoscalerFluent fluent, V2beta2HorizontalPodAutoscaler instance) { this(fluent, instance, false); } public V2beta2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerFluent fluent, + V2beta2HorizontalPodAutoscaler instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -61,14 +58,12 @@ public V2beta2HorizontalPodAutoscalerBuilder( this.validationEnabled = validationEnabled; } - public V2beta2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler instance) { + public V2beta2HorizontalPodAutoscalerBuilder(V2beta2HorizontalPodAutoscaler instance) { this(instance, false); } public V2beta2HorizontalPodAutoscalerBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscaler instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -83,10 +78,10 @@ public V2beta2HorizontalPodAutoscalerBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HorizontalPodAutoscalerFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler build() { + public V2beta2HorizontalPodAutoscaler build() { V2beta2HorizontalPodAutoscaler buildable = new V2beta2HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java index 1ac5a453f3..f2f1c6c54b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionBuilder.java @@ -18,8 +18,7 @@ public class V2beta2HorizontalPodAutoscalerConditionBuilder extends V2beta2HorizontalPodAutoscalerConditionFluentImpl< V2beta2HorizontalPodAutoscalerConditionBuilder> implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerCondition, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder> { + V2beta2HorizontalPodAutoscalerCondition, V2beta2HorizontalPodAutoscalerConditionBuilder> { public V2beta2HorizontalPodAutoscalerConditionBuilder() { this(false); } @@ -34,21 +33,20 @@ public V2beta2HorizontalPodAutoscalerConditionBuilder( } public V2beta2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerConditionFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerCondition(), validationEnabled); } public V2beta2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition instance) { + V2beta2HorizontalPodAutoscalerConditionFluent fluent, + V2beta2HorizontalPodAutoscalerCondition instance) { this(fluent, instance, false); } public V2beta2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerConditionFluent fluent, + V2beta2HorizontalPodAutoscalerCondition instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withLastTransitionTime(instance.getLastTransitionTime()); @@ -64,13 +62,12 @@ public V2beta2HorizontalPodAutoscalerConditionBuilder( } public V2beta2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition instance) { + V2beta2HorizontalPodAutoscalerCondition instance) { this(instance, false); } public V2beta2HorizontalPodAutoscalerConditionBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerCondition instance, Boolean validationEnabled) { this.fluent = this; this.withLastTransitionTime(instance.getLastTransitionTime()); @@ -85,10 +82,10 @@ public V2beta2HorizontalPodAutoscalerConditionBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HorizontalPodAutoscalerConditionFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition build() { + public V2beta2HorizontalPodAutoscalerCondition build() { V2beta2HorizontalPodAutoscalerCondition buildable = new V2beta2HorizontalPodAutoscalerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java index 420d443227..014b163b75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluent.java @@ -21,31 +21,31 @@ public interface V2beta2HorizontalPodAutoscalerConditionFluent< extends Fluent { public OffsetDateTime getLastTransitionTime(); - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime); + public A withLastTransitionTime(OffsetDateTime lastTransitionTime); public Boolean hasLastTransitionTime(); public String getMessage(); - public A withMessage(java.lang.String message); + public A withMessage(String message); - public java.lang.Boolean hasMessage(); + public Boolean hasMessage(); - public java.lang.String getReason(); + public String getReason(); - public A withReason(java.lang.String reason); + public A withReason(String reason); - public java.lang.Boolean hasReason(); + public Boolean hasReason(); - public java.lang.String getStatus(); + public String getStatus(); - public A withStatus(java.lang.String status); + public A withStatus(String status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java index 3ab206178b..da0b7cde2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerConditionFluentImpl.java @@ -23,7 +23,7 @@ public class V2beta2HorizontalPodAutoscalerConditionFluentImpl< public V2beta2HorizontalPodAutoscalerConditionFluentImpl() {} public V2beta2HorizontalPodAutoscalerConditionFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition instance) { + V2beta2HorizontalPodAutoscalerCondition instance) { this.withLastTransitionTime(instance.getLastTransitionTime()); this.withMessage(instance.getMessage()); @@ -37,15 +37,15 @@ public V2beta2HorizontalPodAutoscalerConditionFluentImpl( private OffsetDateTime lastTransitionTime; private String message; - private java.lang.String reason; - private java.lang.String status; - private java.lang.String type; + private String reason; + private String status; + private String type; - public java.time.OffsetDateTime getLastTransitionTime() { + public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(java.time.OffsetDateTime lastTransitionTime) { + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; return (A) this; } @@ -54,55 +54,55 @@ public Boolean hasLastTransitionTime() { return this.lastTransitionTime != null; } - public java.lang.String getMessage() { + public String getMessage() { return this.message; } - public A withMessage(java.lang.String message) { + public A withMessage(String message) { this.message = message; return (A) this; } - public java.lang.Boolean hasMessage() { + public Boolean hasMessage() { return this.message != null; } - public java.lang.String getReason() { + public String getReason() { return this.reason; } - public A withReason(java.lang.String reason) { + public A withReason(String reason) { this.reason = reason; return (A) this; } - public java.lang.Boolean hasReason() { + public Boolean hasReason() { return this.reason != null; } - public java.lang.String getStatus() { + public String getStatus() { return this.status; } - public A withStatus(java.lang.String status) { + public A withStatus(String status) { this.status = status; return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -126,7 +126,7 @@ public int hashCode() { lastTransitionTime, message, reason, status, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (lastTransitionTime != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java index 572a95e137..98730ee60a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluent.java @@ -21,15 +21,15 @@ public interface V2beta2HorizontalPodAutoscalerFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. @@ -39,85 +39,75 @@ public interface V2beta2HorizontalPodAutoscalerFluent< @Deprecated public V1ObjectMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata(); + public V1ObjectMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata); + public A withMetadata(V1ObjectMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - editMetadata(); + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata(); + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item); + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item); /** * This method has been deprecated, please use method buildSpec instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2HorizontalPodAutoscalerSpec getSpec(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec buildSpec(); + public V2beta2HorizontalPodAutoscalerSpec buildSpec(); - public A withSpec(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec spec); + public A withSpec(V2beta2HorizontalPodAutoscalerSpec spec); - public java.lang.Boolean hasSpec(); + public Boolean hasSpec(); public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpec(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec item); + public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( + V2beta2HorizontalPodAutoscalerSpec item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - editSpec(); + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editSpec(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec(); + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec item); + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( + V2beta2HorizontalPodAutoscalerSpec item); /** * This method has been deprecated, please use method buildStatus instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2HorizontalPodAutoscalerStatus getStatus(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus buildStatus(); + public V2beta2HorizontalPodAutoscalerStatus buildStatus(); - public A withStatus( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus status); + public A withStatus(V2beta2HorizontalPodAutoscalerStatus status); - public java.lang.Boolean hasStatus(); + public Boolean hasStatus(); public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatus(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus item); + public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( + V2beta2HorizontalPodAutoscalerStatus item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - editStatus(); + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editStatus(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus(); + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus item); + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( + V2beta2HorizontalPodAutoscalerStatus item); public interface MetadataNested extends Nested, @@ -128,7 +118,7 @@ public interface MetadataNested } public interface SpecNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2HorizontalPodAutoscalerSpecFluent< V2beta2HorizontalPodAutoscalerFluent.SpecNested> { public N and(); @@ -137,7 +127,7 @@ public interface SpecNested } public interface StatusNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2HorizontalPodAutoscalerStatusFluent< V2beta2HorizontalPodAutoscalerFluent.StatusNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java index 317f363301..3ae26e7d25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerFluentImpl.java @@ -22,8 +22,7 @@ public class V2beta2HorizontalPodAutoscalerFluentImpl< extends BaseFluent implements V2beta2HorizontalPodAutoscalerFluent { public V2beta2HorizontalPodAutoscalerFluentImpl() {} - public V2beta2HorizontalPodAutoscalerFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler instance) { + public V2beta2HorizontalPodAutoscalerFluentImpl(V2beta2HorizontalPodAutoscaler instance) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -36,16 +35,16 @@ public V2beta2HorizontalPodAutoscalerFluentImpl( } private String apiVersion; - private java.lang.String kind; + private String kind; private V1ObjectMetaBuilder metadata; private V2beta2HorizontalPodAutoscalerSpecBuilder spec; private V2beta2HorizontalPodAutoscalerStatusBuilder status; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -54,16 +53,16 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -73,24 +72,27 @@ public java.lang.Boolean hasKind() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1ObjectMeta getMetadata() { + public V1ObjectMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ObjectMeta buildMetadata() { + public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ObjectMeta metadata) { + public A withMetadata(V1ObjectMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ObjectMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -98,26 +100,22 @@ public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() return new V2beta2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadataLike( + V1ObjectMeta item) { return new V2beta2HorizontalPodAutoscalerFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - editMetadata() { + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadata() { + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ObjectMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.MetadataNested - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ObjectMeta item) { + public V2beta2HorizontalPodAutoscalerFluent.MetadataNested editOrNewMetadataLike( + V1ObjectMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -126,26 +124,28 @@ public V2beta2HorizontalPodAutoscalerFluent.MetadataNested withNewMetadata() * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2HorizontalPodAutoscalerSpec getSpec() { return this.spec != null ? this.spec.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec buildSpec() { + public V2beta2HorizontalPodAutoscalerSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - public A withSpec(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec spec) { + public A withSpec(V2beta2HorizontalPodAutoscalerSpec spec) { _visitables.get("spec").remove(this.spec); if (spec != null) { - this.spec = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecBuilder(spec); + this.spec = new V2beta2HorizontalPodAutoscalerSpecBuilder(spec); _visitables.get("spec").add(this.spec); + } else { + this.spec = null; + _visitables.get("spec").remove(this.spec); } return (A) this; } - public java.lang.Boolean hasSpec() { + public Boolean hasSpec() { return this.spec != null; } @@ -153,29 +153,22 @@ public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { return new V2beta2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - withNewSpecLike(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluentImpl - .SpecNestedImpl(item); + public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpecLike( + V2beta2HorizontalPodAutoscalerSpec item) { + return new V2beta2HorizontalPodAutoscalerFluentImpl.SpecNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - editSpec() { + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editSpec() { return withNewSpecLike(getSpec()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpec() { + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpec() { return withNewSpecLike( - getSpec() != null - ? getSpec() - : new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecBuilder() - .build()); + getSpec() != null ? getSpec() : new V2beta2HorizontalPodAutoscalerSpecBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.SpecNested - editOrNewSpecLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec item) { + public V2beta2HorizontalPodAutoscalerFluent.SpecNested editOrNewSpecLike( + V2beta2HorizontalPodAutoscalerSpec item) { return withNewSpecLike(getSpec() != null ? getSpec() : item); } @@ -184,26 +177,28 @@ public V2beta2HorizontalPodAutoscalerFluent.SpecNested withNewSpec() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus getStatus() { + @Deprecated + public V2beta2HorizontalPodAutoscalerStatus getStatus() { return this.status != null ? this.status.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus buildStatus() { + public V2beta2HorizontalPodAutoscalerStatus buildStatus() { return this.status != null ? this.status.build() : null; } - public A withStatus( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus status) { + public A withStatus(V2beta2HorizontalPodAutoscalerStatus status) { _visitables.get("status").remove(this.status); if (status != null) { this.status = new V2beta2HorizontalPodAutoscalerStatusBuilder(status); _visitables.get("status").add(this.status); + } else { + this.status = null; + _visitables.get("status").remove(this.status); } return (A) this; } - public java.lang.Boolean hasStatus() { + public Boolean hasStatus() { return this.status != null; } @@ -211,30 +206,24 @@ public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatus() { return new V2beta2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - withNewStatusLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluentImpl - .StatusNestedImpl(item); + public V2beta2HorizontalPodAutoscalerFluent.StatusNested withNewStatusLike( + V2beta2HorizontalPodAutoscalerStatus item) { + return new V2beta2HorizontalPodAutoscalerFluentImpl.StatusNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - editStatus() { + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editStatus() { return withNewStatusLike(getStatus()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatus() { + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatus() { return withNewStatusLike( getStatus() != null ? getStatus() - : new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusBuilder() - .build()); + : new V2beta2HorizontalPodAutoscalerStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent.StatusNested - editOrNewStatusLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus item) { + public V2beta2HorizontalPodAutoscalerFluent.StatusNested editOrNewStatusLike( + V2beta2HorizontalPodAutoscalerStatus item) { return withNewStatusLike(getStatus() != null ? getStatus() : item); } @@ -255,7 +244,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, kind, metadata, spec, status, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -284,19 +273,16 @@ public java.lang.String toString() { class MetadataNestedImpl extends V1ObjectMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent - .MetadataNested< - N>, - Nested { + implements V2beta2HorizontalPodAutoscalerFluent.MetadataNested, Nested { MetadataNestedImpl(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ObjectMetaBuilder(this); + this.builder = new V1ObjectMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ObjectMetaBuilder builder; + V1ObjectMetaBuilder builder; public N and() { return (N) V2beta2HorizontalPodAutoscalerFluentImpl.this.withMetadata(builder.build()); @@ -310,20 +296,16 @@ public N endMetadata() { class SpecNestedImpl extends V2beta2HorizontalPodAutoscalerSpecFluentImpl< V2beta2HorizontalPodAutoscalerFluent.SpecNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent - .SpecNested< - N>, - io.kubernetes.client.fluent.Nested { - SpecNestedImpl(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec item) { + implements V2beta2HorizontalPodAutoscalerFluent.SpecNested, Nested { + SpecNestedImpl(V2beta2HorizontalPodAutoscalerSpec item) { this.builder = new V2beta2HorizontalPodAutoscalerSpecBuilder(this, item); } SpecNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecBuilder(this); + this.builder = new V2beta2HorizontalPodAutoscalerSpecBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecBuilder builder; + V2beta2HorizontalPodAutoscalerSpecBuilder builder; public N and() { return (N) V2beta2HorizontalPodAutoscalerFluentImpl.this.withSpec(builder.build()); @@ -337,20 +319,16 @@ public N endSpec() { class StatusNestedImpl extends V2beta2HorizontalPodAutoscalerStatusFluentImpl< V2beta2HorizontalPodAutoscalerFluent.StatusNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerFluent - .StatusNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2HorizontalPodAutoscalerFluent.StatusNested, Nested { StatusNestedImpl(V2beta2HorizontalPodAutoscalerStatus item) { this.builder = new V2beta2HorizontalPodAutoscalerStatusBuilder(this, item); } StatusNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusBuilder(this); + this.builder = new V2beta2HorizontalPodAutoscalerStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusBuilder builder; + V2beta2HorizontalPodAutoscalerStatusBuilder builder; public N and() { return (N) V2beta2HorizontalPodAutoscalerFluentImpl.this.withStatus(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java index 86dee124a2..4e519879d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListBuilder.java @@ -17,8 +17,7 @@ public class V2beta2HorizontalPodAutoscalerListBuilder extends V2beta2HorizontalPodAutoscalerListFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerList, - V2beta2HorizontalPodAutoscalerListBuilder> { + V2beta2HorizontalPodAutoscalerList, V2beta2HorizontalPodAutoscalerListBuilder> { public V2beta2HorizontalPodAutoscalerListBuilder() { this(false); } @@ -28,26 +27,25 @@ public V2beta2HorizontalPodAutoscalerListBuilder(Boolean validationEnabled) { } public V2beta2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent fluent) { + V2beta2HorizontalPodAutoscalerListFluent fluent) { this(fluent, false); } public V2beta2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerListFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerList(), validationEnabled); } public V2beta2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerList instance) { + V2beta2HorizontalPodAutoscalerListFluent fluent, + V2beta2HorizontalPodAutoscalerList instance) { this(fluent, instance, false); } public V2beta2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerListFluent fluent, + V2beta2HorizontalPodAutoscalerList instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withApiVersion(instance.getApiVersion()); @@ -60,14 +58,12 @@ public V2beta2HorizontalPodAutoscalerListBuilder( this.validationEnabled = validationEnabled; } - public V2beta2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerList instance) { + public V2beta2HorizontalPodAutoscalerListBuilder(V2beta2HorizontalPodAutoscalerList instance) { this(instance, false); } public V2beta2HorizontalPodAutoscalerListBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerList instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerList instance, Boolean validationEnabled) { this.fluent = this; this.withApiVersion(instance.getApiVersion()); @@ -80,10 +76,10 @@ public V2beta2HorizontalPodAutoscalerListBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HorizontalPodAutoscalerListFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerList build() { + public V2beta2HorizontalPodAutoscalerList build() { V2beta2HorizontalPodAutoscalerList buildable = new V2beta2HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.getItems()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java index 72c35022bb..d270af3931 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluent.java @@ -24,28 +24,22 @@ public interface V2beta2HorizontalPodAutoscalerListFluent< extends Fluent { public String getApiVersion(); - public A withApiVersion(java.lang.String apiVersion); + public A withApiVersion(String apiVersion); public Boolean hasApiVersion(); - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item); + public A addToItems(Integer index, V2beta2HorizontalPodAutoscaler item); - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item); + public A setToItems(Integer index, V2beta2HorizontalPodAutoscaler item); public A addToItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); - public A addAllToItems( - Collection items); + public A addAllToItems(Collection items); public A removeFromItems( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); - public A removeAllFromItems( - java.util.Collection - items); + public A removeAllFromItems(Collection items); public A removeMatchingFromItems(Predicate predicate); @@ -55,101 +49,75 @@ public A removeAllFromItems( * @return The buildable object. */ @Deprecated - public List getItems(); + public List getItems(); - public java.util.List - buildItems(); + public List buildItems(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildItem( - java.lang.Integer index); + public V2beta2HorizontalPodAutoscaler buildItem(Integer index); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildFirstItem(); + public V2beta2HorizontalPodAutoscaler buildFirstItem(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildLastItem(); + public V2beta2HorizontalPodAutoscaler buildLastItem(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> - predicate); + public V2beta2HorizontalPodAutoscaler buildMatchingItem( + Predicate predicate); - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> - predicate); + public Boolean hasMatchingItem(Predicate predicate); - public A withItems( - java.util.List items); + public A withItems(List items); public A withItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items); - public java.lang.Boolean hasItems(); + public Boolean hasItems(); public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem(); public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item); + V2beta2HorizontalPodAutoscaler item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( + Integer index, V2beta2HorizontalPodAutoscaler item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem(); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem(); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editLastItem(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> - predicate); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( + Predicate predicate); - public java.lang.String getKind(); + public String getKind(); - public A withKind(java.lang.String kind); + public A withKind(String kind); - public java.lang.Boolean hasKind(); + public Boolean hasKind(); /** * This method has been deprecated, please use method buildMetadata instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V1ListMeta getMetadata(); - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata(); + public V1ListMeta buildMetadata(); - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata); + public A withMetadata(V1ListMeta metadata); - public java.lang.Boolean hasMetadata(); + public Boolean hasMetadata(); public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadata(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editMetadata(); + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadata(); + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item); + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item); public interface ItemsNested extends Nested, @@ -161,7 +129,7 @@ public interface ItemsNested } public interface MetadataNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V1ListMetaFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java index 29b19dee4d..c48cf41b08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerListFluentImpl.java @@ -39,14 +39,14 @@ public V2beta2HorizontalPodAutoscalerListFluentImpl(V2beta2HorizontalPodAutoscal private String apiVersion; private ArrayList items; - private java.lang.String kind; + private String kind; private V1ListMetaBuilder metadata; - public java.lang.String getApiVersion() { + public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(java.lang.String apiVersion) { + public A withApiVersion(String apiVersion) { this.apiVersion = apiVersion; return (A) this; } @@ -55,30 +55,21 @@ public Boolean hasApiVersion() { return this.apiVersion != null; } - public A addToItems( - Integer index, io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item) { + public A addToItems(Integer index, V2beta2HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(item); + V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(index >= 0 ? index : _visitables.get("items").size(), builder); this.items.add(index >= 0 ? index : items.size(), builder); return (A) this; } - public A setToItems( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item) { + public A setToItems(Integer index, V2beta2HorizontalPodAutoscaler item) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(item); + V2beta2HorizontalPodAutoscalerBuilder builder = new V2beta2HorizontalPodAutoscalerBuilder(item); if (index < 0 || index >= _visitables.get("items").size()) { _visitables.get("items").add(builder); } else { @@ -94,29 +85,24 @@ public A setToItems( public A addToItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(item); + for (V2beta2HorizontalPodAutoscaler item : items) { + V2beta2HorizontalPodAutoscalerBuilder builder = + new V2beta2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addAllToItems( - Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { - this.items = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder>(); + this.items = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(item); + for (V2beta2HorizontalPodAutoscaler item : items) { + V2beta2HorizontalPodAutoscalerBuilder builder = + new V2beta2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").add(builder); this.items.add(builder); } @@ -125,9 +111,9 @@ public A addAllToItems( public A removeFromItems( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler... items) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(item); + for (V2beta2HorizontalPodAutoscaler item : items) { + V2beta2HorizontalPodAutoscalerBuilder builder = + new V2beta2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -136,12 +122,10 @@ public A removeFromItems( return (A) this; } - public A removeAllFromItems( - java.util.Collection - items) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(item); + public A removeAllFromItems(Collection items) { + for (V2beta2HorizontalPodAutoscaler item : items) { + V2beta2HorizontalPodAutoscalerBuilder builder = + new V2beta2HorizontalPodAutoscalerBuilder(item); _visitables.get("items").remove(builder); if (this.items != null) { this.items.remove(builder); @@ -150,16 +134,12 @@ public A removeAllFromItems( return (A) this; } - public A removeMatchingFromItems( - Predicate - predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) return (A) this; - final Iterator each = - items.iterator(); + final Iterator each = items.iterator(); final List visitables = _visitables.get("items"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder = - each.next(); + V2beta2HorizontalPodAutoscalerBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -174,33 +154,29 @@ public A removeMatchingFromItems( * @return The buildable object. */ @Deprecated - public List getItems() { + public List getItems() { return items != null ? build(items) : null; } - public java.util.List - buildItems() { + public List buildItems() { return items != null ? build(items) : null; } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildItem( - java.lang.Integer index) { + public V2beta2HorizontalPodAutoscaler buildItem(Integer index) { return this.items.get(index).build(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildFirstItem() { + public V2beta2HorizontalPodAutoscaler buildFirstItem() { return this.items.get(0).build(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildLastItem() { + public V2beta2HorizontalPodAutoscaler buildLastItem() { return this.items.get(items.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder item : items) { + public V2beta2HorizontalPodAutoscaler buildMatchingItem( + Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -208,11 +184,8 @@ public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler buildM return null; } - public java.lang.Boolean hasMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder item : items) { + public Boolean hasMatchingItem(Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerBuilder item : items) { if (predicate.test(item)) { return true; } @@ -220,14 +193,13 @@ public java.lang.Boolean hasMatchingItem( return false; } - public A withItems( - java.util.List items) { + public A withItems(List items) { if (this.items != null) { _visitables.get("items").removeAll(this.items); } if (items != null) { - this.items = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item : items) { + this.items = new ArrayList(); + for (V2beta2HorizontalPodAutoscaler item : items) { this.addToItems(item); } } else { @@ -241,14 +213,14 @@ public A withItems(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutos this.items.clear(); } if (items != null) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item : items) { + for (V2beta2HorizontalPodAutoscaler item : items) { this.addToItems(item); } } return (A) this; } - public java.lang.Boolean hasItems() { + public Boolean hasItems() { return items != null && !items.isEmpty(); } @@ -256,43 +228,34 @@ public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return new V2beta2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - addNewItemLike(io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item) { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItemLike( + V2beta2HorizontalPodAutoscaler item) { return new V2beta2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - setNewItemLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluentImpl - .ItemsNestedImpl(index, item); + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested setNewItemLike( + Integer index, V2beta2HorizontalPodAutoscaler item) { + return new V2beta2HorizontalPodAutoscalerListFluentImpl.ItemsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editItem(java.lang.Integer index) { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editItem(Integer index) { if (items.size() <= index) throw new RuntimeException("Can't edit items. Index exceeds size."); return setNewItemLike(index, buildItem(index)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editFirstItem() { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editFirstItem() { if (items.size() == 0) throw new RuntimeException("Can't edit first items. The list is empty."); return setNewItemLike(0, buildItem(0)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editLastItem() { + public V2beta2HorizontalPodAutoscalerListFluent.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 io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent.ItemsNested - editMatchingItem( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder> - predicate) { + public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested editMatchingItem( + Predicate predicate) { int index = -1; for (int i = 0; i < items.size(); i++) { if (predicate.test(items.get(i))) { @@ -304,16 +267,16 @@ public V2beta2HorizontalPodAutoscalerListFluent.ItemsNested addNewItem() { return setNewItemLike(index, buildItem(index)); } - public java.lang.String getKind() { + public String getKind() { return this.kind; } - public A withKind(java.lang.String kind) { + public A withKind(String kind) { this.kind = kind; return (A) this; } - public java.lang.Boolean hasKind() { + public Boolean hasKind() { return this.kind != null; } @@ -322,25 +285,28 @@ public java.lang.Boolean hasKind() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V1ListMeta getMetadata() { + @Deprecated + public V1ListMeta getMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public io.kubernetes.client.openapi.models.V1ListMeta buildMetadata() { + public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public A withMetadata(io.kubernetes.client.openapi.models.V1ListMeta metadata) { + public A withMetadata(V1ListMeta metadata) { _visitables.get("metadata").remove(this.metadata); if (metadata != null) { this.metadata = new V1ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + _visitables.get("metadata").remove(this.metadata); } return (A) this; } - public java.lang.Boolean hasMetadata() { + public Boolean hasMetadata() { return this.metadata != null; } @@ -348,35 +314,22 @@ public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadat return new V2beta2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - withNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluentImpl - .MetadataNestedImpl(item); + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested withNewMetadataLike( + V1ListMeta item) { + return new V2beta2HorizontalPodAutoscalerListFluentImpl.MetadataNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editMetadata() { + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editMetadata() { return withNewMetadataLike(getMetadata()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadata() { + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadata() { return withNewMetadataLike( - getMetadata() != null - ? getMetadata() - : new io.kubernetes.client.openapi.models.V1ListMetaBuilder().build()); + getMetadata() != null ? getMetadata() : new V1ListMetaBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - A> - editOrNewMetadataLike(io.kubernetes.client.openapi.models.V1ListMeta item) { + public V2beta2HorizontalPodAutoscalerListFluent.MetadataNested editOrNewMetadataLike( + V1ListMeta item) { return withNewMetadataLike(getMetadata() != null ? getMetadata() : item); } @@ -397,7 +350,7 @@ public int hashCode() { return java.util.Objects.hash(apiVersion, items, kind, metadata, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (apiVersion != null) { @@ -423,25 +376,19 @@ public java.lang.String toString() { class ItemsNestedImpl extends V2beta2HorizontalPodAutoscalerFluentImpl< V2beta2HorizontalPodAutoscalerListFluent.ItemsNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .ItemsNested< - N>, - Nested { - ItemsNestedImpl( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscaler item) { + implements V2beta2HorizontalPodAutoscalerListFluent.ItemsNested, Nested { + ItemsNestedImpl(Integer index, V2beta2HorizontalPodAutoscaler item) { this.index = index; this.builder = new V2beta2HorizontalPodAutoscalerBuilder(this, item); } ItemsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder(this); + this.builder = new V2beta2HorizontalPodAutoscalerBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBuilder builder; - java.lang.Integer index; + V2beta2HorizontalPodAutoscalerBuilder builder; + Integer index; public N and() { return (N) @@ -455,19 +402,16 @@ public N endItem() { class MetadataNestedImpl extends V1ListMetaFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerListFluent - .MetadataNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2HorizontalPodAutoscalerListFluent.MetadataNested, Nested { MetadataNestedImpl(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } MetadataNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1ListMetaBuilder(this); + this.builder = new V1ListMetaBuilder(this); } - io.kubernetes.client.openapi.models.V1ListMetaBuilder builder; + V1ListMetaBuilder builder; public N and() { return (N) V2beta2HorizontalPodAutoscalerListFluentImpl.this.withMetadata(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java index 791641c47c..36c44678a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecBuilder.java @@ -17,8 +17,7 @@ public class V2beta2HorizontalPodAutoscalerSpecBuilder extends V2beta2HorizontalPodAutoscalerSpecFluentImpl implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec, - V2beta2HorizontalPodAutoscalerSpecBuilder> { + V2beta2HorizontalPodAutoscalerSpec, V2beta2HorizontalPodAutoscalerSpecBuilder> { public V2beta2HorizontalPodAutoscalerSpecBuilder() { this(false); } @@ -28,26 +27,25 @@ public V2beta2HorizontalPodAutoscalerSpecBuilder(Boolean validationEnabled) { } public V2beta2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent fluent) { + V2beta2HorizontalPodAutoscalerSpecFluent fluent) { this(fluent, false); } public V2beta2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerSpec(), validationEnabled); } public V2beta2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec instance) { + V2beta2HorizontalPodAutoscalerSpecFluent fluent, + V2beta2HorizontalPodAutoscalerSpec instance) { this(fluent, instance, false); } public V2beta2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerSpecFluent fluent, + V2beta2HorizontalPodAutoscalerSpec instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withBehavior(instance.getBehavior()); @@ -62,14 +60,12 @@ public V2beta2HorizontalPodAutoscalerSpecBuilder( this.validationEnabled = validationEnabled; } - public V2beta2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec instance) { + public V2beta2HorizontalPodAutoscalerSpecBuilder(V2beta2HorizontalPodAutoscalerSpec instance) { this(instance, false); } public V2beta2HorizontalPodAutoscalerSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerSpec instance, Boolean validationEnabled) { this.fluent = this; this.withBehavior(instance.getBehavior()); @@ -84,10 +80,10 @@ public V2beta2HorizontalPodAutoscalerSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HorizontalPodAutoscalerSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec build() { + public V2beta2HorizontalPodAutoscalerSpec build() { V2beta2HorizontalPodAutoscalerSpec buildable = new V2beta2HorizontalPodAutoscalerSpec(); buildable.setBehavior(fluent.getBehavior()); buildable.setMaxReplicas(fluent.getMaxReplicas()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java index 3ac557b978..f51e07f40a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluent.java @@ -31,56 +31,41 @@ public interface V2beta2HorizontalPodAutoscalerSpecFluent< @Deprecated public V2beta2HorizontalPodAutoscalerBehavior getBehavior(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior buildBehavior(); + public V2beta2HorizontalPodAutoscalerBehavior buildBehavior(); - public A withBehavior( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior behavior); + public A withBehavior(V2beta2HorizontalPodAutoscalerBehavior behavior); public Boolean hasBehavior(); public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavior(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - withNewBehaviorLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior item); + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( + V2beta2HorizontalPodAutoscalerBehavior item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - editBehavior(); + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - editOrNewBehavior(); + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - editOrNewBehaviorLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior item); + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( + V2beta2HorizontalPodAutoscalerBehavior item); public Integer getMaxReplicas(); - public A withMaxReplicas(java.lang.Integer maxReplicas); + public A withMaxReplicas(Integer maxReplicas); - public java.lang.Boolean hasMaxReplicas(); + public Boolean hasMaxReplicas(); - public A addToMetrics(java.lang.Integer index, V2beta2MetricSpec item); + public A addToMetrics(Integer index, V2beta2MetricSpec item); - public A setToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricSpec item); + public A setToMetrics(Integer index, V2beta2MetricSpec item); public A addToMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items); - public A addAllToMetrics(Collection items); + public A addAllToMetrics(Collection items); public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items); - public A removeAllFromMetrics( - java.util.Collection items); + public A removeAllFromMetrics(Collection items); public A removeMatchingFromMetrics(Predicate predicate); @@ -89,106 +74,75 @@ public A removeAllFromMetrics( * * @return The buildable object. */ - @java.lang.Deprecated - public List getMetrics(); + @Deprecated + public List getMetrics(); - public java.util.List buildMetrics(); + public List buildMetrics(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildMetric(java.lang.Integer index); + public V2beta2MetricSpec buildMetric(Integer index); - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildFirstMetric(); + public V2beta2MetricSpec buildFirstMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildLastMetric(); + public V2beta2MetricSpec buildLastMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildMatchingMetric( - java.util.function.Predicate - predicate); + public V2beta2MetricSpec buildMatchingMetric(Predicate predicate); - public java.lang.Boolean hasMatchingMetric( - java.util.function.Predicate - predicate); + public Boolean hasMatchingMetric(Predicate predicate); - public A withMetrics( - java.util.List metrics); + public A withMetrics(List metrics); public A withMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... metrics); - public java.lang.Boolean hasMetrics(); + public Boolean hasMetrics(); public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - addNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricSpec item); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike( + V2beta2MetricSpec item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - setNewMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricSpec item); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( + Integer index, V2beta2MetricSpec item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMetric(java.lang.Integer index); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editFirstMetric(); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editLastMetric(); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editLastMetric(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMatchingMetric( - java.util.function.Predicate - predicate); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( + Predicate predicate); - public java.lang.Integer getMinReplicas(); + public Integer getMinReplicas(); - public A withMinReplicas(java.lang.Integer minReplicas); + public A withMinReplicas(Integer minReplicas); - public java.lang.Boolean hasMinReplicas(); + public Boolean hasMinReplicas(); /** * This method has been deprecated, please use method buildScaleTargetRef instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2CrossVersionObjectReference getScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - buildScaleTargetRef(); + public V2beta2CrossVersionObjectReference buildScaleTargetRef(); - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference scaleTargetRef); + public A withScaleTargetRef(V2beta2CrossVersionObjectReference scaleTargetRef); - public java.lang.Boolean hasScaleTargetRef(); + public Boolean hasScaleTargetRef(); public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( + V2beta2CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef(); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRef(); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested + editOrNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item); public interface BehaviorNested extends Nested, @@ -200,7 +154,7 @@ public interface BehaviorNested } public interface MetricsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricSpecFluent> { public N and(); @@ -208,7 +162,7 @@ public interface MetricsNested } public interface ScaleTargetRefNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2CrossVersionObjectReferenceFluent< V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java index 4aa4071e35..9917b32093 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpecFluentImpl.java @@ -27,8 +27,7 @@ public class V2beta2HorizontalPodAutoscalerSpecFluentImpl< extends BaseFluent implements V2beta2HorizontalPodAutoscalerSpecFluent { public V2beta2HorizontalPodAutoscalerSpecFluentImpl() {} - public V2beta2HorizontalPodAutoscalerSpecFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpec instance) { + public V2beta2HorizontalPodAutoscalerSpecFluentImpl(V2beta2HorizontalPodAutoscalerSpec instance) { this.withBehavior(instance.getBehavior()); this.withMaxReplicas(instance.getMaxReplicas()); @@ -43,7 +42,7 @@ public V2beta2HorizontalPodAutoscalerSpecFluentImpl( private V2beta2HorizontalPodAutoscalerBehaviorBuilder behavior; private Integer maxReplicas; private ArrayList metrics; - private java.lang.Integer minReplicas; + private Integer minReplicas; private V2beta2CrossVersionObjectReferenceBuilder scaleTargetRef; /** @@ -52,21 +51,22 @@ public V2beta2HorizontalPodAutoscalerSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior getBehavior() { + public V2beta2HorizontalPodAutoscalerBehavior getBehavior() { return this.behavior != null ? this.behavior.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior - buildBehavior() { + public V2beta2HorizontalPodAutoscalerBehavior buildBehavior() { return this.behavior != null ? this.behavior.build() : null; } - public A withBehavior( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior behavior) { + public A withBehavior(V2beta2HorizontalPodAutoscalerBehavior behavior) { _visitables.get("behavior").remove(this.behavior); if (behavior != null) { this.behavior = new V2beta2HorizontalPodAutoscalerBehaviorBuilder(behavior); _visitables.get("behavior").add(this.behavior); + } else { + this.behavior = null; + _visitables.get("behavior").remove(this.behavior); } return (A) this; } @@ -79,74 +79,55 @@ public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehavio return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - withNewBehaviorLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested withNewBehaviorLike( + V2beta2HorizontalPodAutoscalerBehavior item) { return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.BehaviorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - editBehavior() { + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editBehavior() { return withNewBehaviorLike(getBehavior()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - editOrNewBehavior() { + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehavior() { return withNewBehaviorLike( getBehavior() != null ? getBehavior() - : new io.kubernetes.client.openapi.models - .V2beta2HorizontalPodAutoscalerBehaviorBuilder() - .build()); + : new V2beta2HorizontalPodAutoscalerBehaviorBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - A> - editOrNewBehaviorLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested editOrNewBehaviorLike( + V2beta2HorizontalPodAutoscalerBehavior item) { return withNewBehaviorLike(getBehavior() != null ? getBehavior() : item); } - public java.lang.Integer getMaxReplicas() { + public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(java.lang.Integer maxReplicas) { + public A withMaxReplicas(Integer maxReplicas) { this.maxReplicas = maxReplicas; return (A) this; } - public java.lang.Boolean hasMaxReplicas() { + public Boolean hasMaxReplicas() { return this.maxReplicas != null; } - public A addToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricSpec item) { + public A addToMetrics(Integer index, V2beta2MetricSpec item) { if (this.metrics == null) { - this.metrics = new java.util.ArrayList(); + this.metrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(item); + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); _visitables.get("metrics").add(index >= 0 ? index : _visitables.get("metrics").size(), builder); this.metrics.add(index >= 0 ? index : metrics.size(), builder); return (A) this; } - public A setToMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricSpec item) { + public A setToMetrics(Integer index, V2beta2MetricSpec item) { if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); + this.metrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(item); + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); if (index < 0 || index >= _visitables.get("metrics").size()) { _visitables.get("metrics").add(builder); } else { @@ -162,27 +143,22 @@ public A setToMetrics( public A addToMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items) { if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); + this.metrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(item); + for (V2beta2MetricSpec item : items) { + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); _visitables.get("metrics").add(builder); this.metrics.add(builder); } return (A) this; } - public A addAllToMetrics( - Collection items) { + public A addAllToMetrics(Collection items) { if (this.metrics == null) { - this.metrics = - new java.util.ArrayList(); + this.metrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(item); + for (V2beta2MetricSpec item : items) { + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); _visitables.get("metrics").add(builder); this.metrics.add(builder); } @@ -190,9 +166,8 @@ public A addAllToMetrics( } public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... items) { - for (io.kubernetes.client.openapi.models.V2beta2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(item); + for (V2beta2MetricSpec item : items) { + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); _visitables.get("metrics").remove(builder); if (this.metrics != null) { this.metrics.remove(builder); @@ -201,11 +176,9 @@ public A removeFromMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec return (A) this; } - public A removeAllFromMetrics( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2beta2MetricSpec item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(item); + public A removeAllFromMetrics(Collection items) { + for (V2beta2MetricSpec item : items) { + V2beta2MetricSpecBuilder builder = new V2beta2MetricSpecBuilder(item); _visitables.get("metrics").remove(builder); if (this.metrics != null) { this.metrics.remove(builder); @@ -214,14 +187,12 @@ public A removeAllFromMetrics( return (A) this; } - public A removeMatchingFromMetrics( - Predicate predicate) { + public A removeMatchingFromMetrics(Predicate predicate) { if (metrics == null) return (A) this; - final Iterator each = - metrics.iterator(); + final Iterator each = metrics.iterator(); final List visitables = _visitables.get("metrics"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder = each.next(); + V2beta2MetricSpecBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -235,32 +206,29 @@ public A removeMatchingFromMetrics( * * @return The buildable object. */ - @java.lang.Deprecated - public List getMetrics() { + @Deprecated + public List getMetrics() { return metrics != null ? build(metrics) : null; } - public java.util.List buildMetrics() { + public List buildMetrics() { return metrics != null ? build(metrics) : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildMetric( - java.lang.Integer index) { + public V2beta2MetricSpec buildMetric(Integer index) { return this.metrics.get(index).build(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildFirstMetric() { + public V2beta2MetricSpec buildFirstMetric() { return this.metrics.get(0).build(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildLastMetric() { + public V2beta2MetricSpec buildLastMetric() { return this.metrics.get(metrics.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildMatchingMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder item : metrics) { + public V2beta2MetricSpec buildMatchingMetric(Predicate predicate) { + for (V2beta2MetricSpecBuilder item : metrics) { if (predicate.test(item)) { return item.build(); } @@ -268,10 +236,8 @@ public io.kubernetes.client.openapi.models.V2beta2MetricSpec buildMatchingMetric return null; } - public java.lang.Boolean hasMatchingMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder item : metrics) { + public Boolean hasMatchingMetric(Predicate predicate) { + for (V2beta2MetricSpecBuilder item : metrics) { if (predicate.test(item)) { return true; } @@ -279,14 +245,13 @@ public java.lang.Boolean hasMatchingMetric( return false; } - public A withMetrics( - java.util.List metrics) { + public A withMetrics(List metrics) { if (this.metrics != null) { _visitables.get("metrics").removeAll(this.metrics); } if (metrics != null) { - this.metrics = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta2MetricSpec item : metrics) { + this.metrics = new ArrayList(); + for (V2beta2MetricSpec item : metrics) { this.addToMetrics(item); } } else { @@ -300,14 +265,14 @@ public A withMetrics(io.kubernetes.client.openapi.models.V2beta2MetricSpec... me this.metrics.clear(); } if (metrics != null) { - for (io.kubernetes.client.openapi.models.V2beta2MetricSpec item : metrics) { + for (V2beta2MetricSpec item : metrics) { this.addToMetrics(item); } } return (A) this; } - public java.lang.Boolean hasMetrics() { + public Boolean hasMetrics() { return metrics != null && !metrics.isEmpty(); } @@ -315,50 +280,36 @@ public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - addNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricSpec item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluentImpl - .MetricsNestedImpl(-1, item); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetricLike( + V2beta2MetricSpec item) { + return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - setNewMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricSpec item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluentImpl - .MetricsNestedImpl(index, item); + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested setNewMetricLike( + Integer index, V2beta2MetricSpec item) { + return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.MetricsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMetric(java.lang.Integer index) { + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMetric(Integer index) { if (metrics.size() <= index) throw new RuntimeException("Can't edit metrics. Index exceeds size."); return setNewMetricLike(index, buildMetric(index)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editFirstMetric() { + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editFirstMetric() { if (metrics.size() == 0) throw new RuntimeException("Can't edit first metrics. The list is empty."); return setNewMetricLike(0, buildMetric(0)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editLastMetric() { + public V2beta2HorizontalPodAutoscalerSpecFluent.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)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested< - A> - editMatchingMetric( - java.util.function.Predicate - predicate) { + public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested editMatchingMetric( + Predicate predicate) { int index = -1; for (int i = 0; i < metrics.size(); i++) { if (predicate.test(metrics.get(i))) { @@ -370,16 +321,16 @@ public V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested addNewMetric() return setNewMetricLike(index, buildMetric(index)); } - public java.lang.Integer getMinReplicas() { + public Integer getMinReplicas() { return this.minReplicas; } - public A withMinReplicas(java.lang.Integer minReplicas) { + public A withMinReplicas(Integer minReplicas) { this.minReplicas = minReplicas; return (A) this; } - public java.lang.Boolean hasMinReplicas() { + public Boolean hasMinReplicas() { return this.minReplicas != null; } @@ -388,28 +339,28 @@ public java.lang.Boolean hasMinReplicas() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - getScaleTargetRef() { + @Deprecated + public V2beta2CrossVersionObjectReference getScaleTargetRef() { return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - buildScaleTargetRef() { + public V2beta2CrossVersionObjectReference buildScaleTargetRef() { return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; } - public A withScaleTargetRef( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference scaleTargetRef) { + public A withScaleTargetRef(V2beta2CrossVersionObjectReference scaleTargetRef) { _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); if (scaleTargetRef != null) { this.scaleTargetRef = new V2beta2CrossVersionObjectReferenceBuilder(scaleTargetRef); _visitables.get("scaleTargetRef").add(this.scaleTargetRef); + } else { + this.scaleTargetRef = null; + _visitables.get("scaleTargetRef").remove(this.scaleTargetRef); } return (A) this; } - public java.lang.Boolean hasScaleTargetRef() { + public Boolean hasScaleTargetRef() { return this.scaleTargetRef != null; } @@ -417,38 +368,25 @@ public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewS return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - withNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluentImpl - .ScaleTargetRefNestedImpl(item); + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested withNewScaleTargetRefLike( + V2beta2CrossVersionObjectReference item) { + return new V2beta2HorizontalPodAutoscalerSpecFluentImpl.ScaleTargetRefNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editScaleTargetRef() { + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editScaleTargetRef() { return withNewScaleTargetRefLike(getScaleTargetRef()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested editOrNewScaleTargetRef() { return withNewScaleTargetRefLike( getScaleTargetRef() != null ? getScaleTargetRef() - : new io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder() - .build()); + : new V2beta2CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - A> - editOrNewScaleTargetRefLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item) { + public V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested + editOrNewScaleTargetRefLike(V2beta2CrossVersionObjectReference item) { return withNewScaleTargetRefLike(getScaleTargetRef() != null ? getScaleTargetRef() : item); } @@ -504,22 +442,16 @@ public String toString() { class BehaviorNestedImpl extends V2beta2HorizontalPodAutoscalerBehaviorFluentImpl< V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .BehaviorNested< - N>, - Nested { - BehaviorNestedImpl( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehavior item) { + implements V2beta2HorizontalPodAutoscalerSpecFluent.BehaviorNested, Nested { + BehaviorNestedImpl(V2beta2HorizontalPodAutoscalerBehavior item) { this.builder = new V2beta2HorizontalPodAutoscalerBehaviorBuilder(this, item); } BehaviorNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorBuilder( - this); + this.builder = new V2beta2HorizontalPodAutoscalerBehaviorBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerBehaviorBuilder builder; + V2beta2HorizontalPodAutoscalerBehaviorBuilder builder; public N and() { return (N) V2beta2HorizontalPodAutoscalerSpecFluentImpl.this.withBehavior(builder.build()); @@ -532,23 +464,19 @@ public N endBehavior() { class MetricsNestedImpl extends V2beta2MetricSpecFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .MetricsNested< - N>, - io.kubernetes.client.fluent.Nested { - MetricsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricSpec item) { + implements V2beta2HorizontalPodAutoscalerSpecFluent.MetricsNested, Nested { + MetricsNestedImpl(Integer index, V2beta2MetricSpec item) { this.index = index; this.builder = new V2beta2MetricSpecBuilder(this, item); } MetricsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder(this); + this.builder = new V2beta2MetricSpecBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder builder; - java.lang.Integer index; + V2beta2MetricSpecBuilder builder; + Integer index; public N and() { return (N) @@ -563,20 +491,16 @@ public N endMetric() { class ScaleTargetRefNestedImpl extends V2beta2CrossVersionObjectReferenceFluentImpl< V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerSpecFluent - .ScaleTargetRefNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2HorizontalPodAutoscalerSpecFluent.ScaleTargetRefNested, Nested { ScaleTargetRefNestedImpl(V2beta2CrossVersionObjectReference item) { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this, item); } ScaleTargetRefNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder(this); + this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder builder; + V2beta2CrossVersionObjectReferenceBuilder builder; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java index c5b4d6900a..a1cb2c20b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusBuilder.java @@ -18,8 +18,7 @@ public class V2beta2HorizontalPodAutoscalerStatusBuilder extends V2beta2HorizontalPodAutoscalerStatusFluentImpl< V2beta2HorizontalPodAutoscalerStatusBuilder> implements VisitableBuilder< - V2beta2HorizontalPodAutoscalerStatus, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusBuilder> { + V2beta2HorizontalPodAutoscalerStatus, V2beta2HorizontalPodAutoscalerStatusBuilder> { public V2beta2HorizontalPodAutoscalerStatusBuilder() { this(false); } @@ -29,26 +28,25 @@ public V2beta2HorizontalPodAutoscalerStatusBuilder(Boolean validationEnabled) { } public V2beta2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent fluent) { + V2beta2HorizontalPodAutoscalerStatusFluent fluent) { this(fluent, false); } public V2beta2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2HorizontalPodAutoscalerStatus(), validationEnabled); } public V2beta2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus instance) { + V2beta2HorizontalPodAutoscalerStatusFluent fluent, + V2beta2HorizontalPodAutoscalerStatus instance) { this(fluent, instance, false); } public V2beta2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerStatusFluent fluent, + V2beta2HorizontalPodAutoscalerStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withConditions(instance.getConditions()); @@ -66,13 +64,12 @@ public V2beta2HorizontalPodAutoscalerStatusBuilder( } public V2beta2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus instance) { + V2beta2HorizontalPodAutoscalerStatus instance) { this(instance, false); } public V2beta2HorizontalPodAutoscalerStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2HorizontalPodAutoscalerStatus instance, Boolean validationEnabled) { this.fluent = this; this.withConditions(instance.getConditions()); @@ -89,10 +86,10 @@ public V2beta2HorizontalPodAutoscalerStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2HorizontalPodAutoscalerStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus build() { + public V2beta2HorizontalPodAutoscalerStatus build() { V2beta2HorizontalPodAutoscalerStatus buildable = new V2beta2HorizontalPodAutoscalerStatus(); buildable.setConditions(fluent.getConditions()); buildable.setCurrentMetrics(fluent.getCurrentMetrics()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java index 01a0a51f31..9e7fdb67ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluent.java @@ -25,24 +25,17 @@ public interface V2beta2HorizontalPodAutoscalerStatusFluent< extends Fluent { public A addToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item); - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item); + public A setToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item); public A addToConditions( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items); - public A addAllToConditions( - Collection - items); + public A addAllToConditions(Collection items); public A removeFromConditions( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items); - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition> - items); + public A removeAllFromConditions(Collection items); public A removeMatchingFromConditions( Predicate predicate); @@ -53,194 +46,132 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions(); + public List getConditions(); - public java.util.List - buildConditions(); + public List buildConditions(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition buildCondition( - java.lang.Integer index); + public V2beta2HorizontalPodAutoscalerCondition buildCondition(Integer index); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition - buildFirstCondition(); + public V2beta2HorizontalPodAutoscalerCondition buildFirstCondition(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition - buildLastCondition(); + public V2beta2HorizontalPodAutoscalerCondition buildLastCondition(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta2HorizontalPodAutoscalerConditionBuilder> - predicate); + public V2beta2HorizontalPodAutoscalerCondition buildMatchingCondition( + Predicate predicate); public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder> - predicate); + Predicate predicate); - public A withConditions( - java.util.List - conditions); + public A withConditions(List conditions); public A withConditions( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... conditions); - public java.lang.Boolean hasConditions(); + public Boolean hasConditions(); public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCondition(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editFirstCondition(); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editLastCondition(); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta2HorizontalPodAutoscalerConditionBuilder> - predicate); - - public A addToCurrentMetrics(java.lang.Integer index, V2beta2MetricStatus item); - - public A setToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricStatus item); + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( + V2beta2HorizontalPodAutoscalerCondition item); + + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V2beta2HorizontalPodAutoscalerCondition item); + + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition( + Integer index); + + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition(); + + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editLastCondition(); + + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate); + + public A addToCurrentMetrics(Integer index, V2beta2MetricStatus item); + + public A setToCurrentMetrics(Integer index, V2beta2MetricStatus item); public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... items); - public A addAllToCurrentMetrics( - java.util.Collection items); + public A addAllToCurrentMetrics(Collection items); public A removeFromCurrentMetrics( io.kubernetes.client.openapi.models.V2beta2MetricStatus... items); - public A removeAllFromCurrentMetrics( - java.util.Collection items); + public A removeAllFromCurrentMetrics(Collection items); - public A removeMatchingFromCurrentMetrics( - java.util.function.Predicate predicate); + public A removeMatchingFromCurrentMetrics(Predicate predicate); /** * This method has been deprecated, please use method buildCurrentMetrics instead. * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getCurrentMetrics(); + @Deprecated + public List getCurrentMetrics(); - public java.util.List - buildCurrentMetrics(); + public List buildCurrentMetrics(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildCurrentMetric( - java.lang.Integer index); + public V2beta2MetricStatus buildCurrentMetric(Integer index); - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildFirstCurrentMetric(); + public V2beta2MetricStatus buildFirstCurrentMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildLastCurrentMetric(); + public V2beta2MetricStatus buildLastCurrentMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildMatchingCurrentMetric( - java.util.function.Predicate - predicate); + public V2beta2MetricStatus buildMatchingCurrentMetric( + Predicate predicate); - public java.lang.Boolean hasMatchingCurrentMetric( - java.util.function.Predicate - predicate); + public Boolean hasMatchingCurrentMetric(Predicate predicate); - public A withCurrentMetrics( - java.util.List currentMetrics); + public A withCurrentMetrics(List currentMetrics); public A withCurrentMetrics( io.kubernetes.client.openapi.models.V2beta2MetricStatus... currentMetrics); - public java.lang.Boolean hasCurrentMetrics(); + public Boolean hasCurrentMetrics(); public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetric(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - addNewCurrentMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - setNewCurrentMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricStatus item); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editCurrentMetric(java.lang.Integer index); - - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( + V2beta2MetricStatus item); + + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( + Integer index, V2beta2MetricStatus item); + + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( + Integer index); + + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editLastCurrentMetric(); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editLastCurrentMetric(); - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editMatchingCurrentMetric( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder> - predicate); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested + editMatchingCurrentMetric(Predicate predicate); - public java.lang.Integer getCurrentReplicas(); + public Integer getCurrentReplicas(); - public A withCurrentReplicas(java.lang.Integer currentReplicas); + public A withCurrentReplicas(Integer currentReplicas); - public java.lang.Boolean hasCurrentReplicas(); + public Boolean hasCurrentReplicas(); - public java.lang.Integer getDesiredReplicas(); + public Integer getDesiredReplicas(); - public A withDesiredReplicas(java.lang.Integer desiredReplicas); + public A withDesiredReplicas(Integer desiredReplicas); - public java.lang.Boolean hasDesiredReplicas(); + public Boolean hasDesiredReplicas(); public OffsetDateTime getLastScaleTime(); - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime); + public A withLastScaleTime(OffsetDateTime lastScaleTime); - public java.lang.Boolean hasLastScaleTime(); + public Boolean hasLastScaleTime(); public Long getObservedGeneration(); - public A withObservedGeneration(java.lang.Long observedGeneration); + public A withObservedGeneration(Long observedGeneration); - public java.lang.Boolean hasObservedGeneration(); + public Boolean hasObservedGeneration(); public interface ConditionsNested extends Nested, @@ -252,7 +183,7 @@ public interface ConditionsNested } public interface CurrentMetricsNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricStatusFluent< V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java index c143502dba..94c94d14fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatusFluentImpl.java @@ -29,7 +29,7 @@ public class V2beta2HorizontalPodAutoscalerStatusFluentImpl< public V2beta2HorizontalPodAutoscalerStatusFluentImpl() {} public V2beta2HorizontalPodAutoscalerStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatus instance) { + V2beta2HorizontalPodAutoscalerStatus instance) { this.withConditions(instance.getConditions()); this.withCurrentMetrics(instance.getCurrentMetrics()); @@ -44,21 +44,18 @@ public V2beta2HorizontalPodAutoscalerStatusFluentImpl( } private ArrayList conditions; - private java.util.ArrayList currentMetrics; + private ArrayList currentMetrics; private Integer currentReplicas; - private java.lang.Integer desiredReplicas; + private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; - public A addToConditions(java.lang.Integer index, V2beta2HorizontalPodAutoscalerCondition item) { + public A addToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - item); + V2beta2HorizontalPodAutoscalerConditionBuilder builder = + new V2beta2HorizontalPodAutoscalerConditionBuilder(item); _visitables .get("conditions") .add(index >= 0 ? index : _visitables.get("conditions").size(), builder); @@ -66,17 +63,12 @@ public A addToConditions(java.lang.Integer index, V2beta2HorizontalPodAutoscaler return (A) this; } - public A setToConditions( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item) { + public A setToConditions(Integer index, V2beta2HorizontalPodAutoscalerCondition item) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder>(); + this.conditions = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - item); + V2beta2HorizontalPodAutoscalerConditionBuilder builder = + new V2beta2HorizontalPodAutoscalerConditionBuilder(item); if (index < 0 || index >= _visitables.get("conditions").size()) { _visitables.get("conditions").add(builder); } else { @@ -93,32 +85,24 @@ public A setToConditions( public A addToConditions( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder>(); - } - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - item); + this.conditions = new ArrayList(); + } + for (V2beta2HorizontalPodAutoscalerCondition item : items) { + V2beta2HorizontalPodAutoscalerConditionBuilder builder = + new V2beta2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; } - public A addAllToConditions( - Collection - items) { + public A addAllToConditions(Collection items) { if (this.conditions == null) { - this.conditions = - new java.util.ArrayList< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder>(); - } - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - item); + this.conditions = new ArrayList(); + } + for (V2beta2HorizontalPodAutoscalerCondition item : items) { + V2beta2HorizontalPodAutoscalerConditionBuilder builder = + new V2beta2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").add(builder); this.conditions.add(builder); } @@ -127,10 +111,9 @@ public A addAllToConditions( public A removeFromConditions( io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition... items) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - item); + for (V2beta2HorizontalPodAutoscalerCondition item : items) { + V2beta2HorizontalPodAutoscalerConditionBuilder builder = + new V2beta2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -139,14 +122,10 @@ public A removeFromConditions( return (A) this; } - public A removeAllFromConditions( - java.util.Collection< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition> - items) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item : items) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - item); + public A removeAllFromConditions(Collection items) { + for (V2beta2HorizontalPodAutoscalerCondition item : items) { + V2beta2HorizontalPodAutoscalerConditionBuilder builder = + new V2beta2HorizontalPodAutoscalerConditionBuilder(item); _visitables.get("conditions").remove(builder); if (this.conditions != null) { this.conditions.remove(builder); @@ -156,16 +135,12 @@ public A removeAllFromConditions( } public A removeMatchingFromConditions( - Predicate - predicate) { + Predicate predicate) { if (conditions == null) return (A) this; - final Iterator< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder> - each = conditions.iterator(); + final Iterator each = conditions.iterator(); final List visitables = _visitables.get("conditions"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder = - each.next(); + V2beta2HorizontalPodAutoscalerConditionBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -180,39 +155,29 @@ public A removeMatchingFromConditions( * @return The buildable object. */ @Deprecated - public List - getConditions() { + public List getConditions() { return conditions != null ? build(conditions) : null; } - public java.util.List - buildConditions() { + public List buildConditions() { return conditions != null ? build(conditions) : null; } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition buildCondition( - java.lang.Integer index) { + public V2beta2HorizontalPodAutoscalerCondition buildCondition(Integer index) { return this.conditions.get(index).build(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition - buildFirstCondition() { + public V2beta2HorizontalPodAutoscalerCondition buildFirstCondition() { return this.conditions.get(0).build(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition - buildLastCondition() { + public V2beta2HorizontalPodAutoscalerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition - buildMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta2HorizontalPodAutoscalerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder item : - conditions) { + public V2beta2HorizontalPodAutoscalerCondition buildMatchingCondition( + Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { return item.build(); } @@ -221,11 +186,8 @@ public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditi } public Boolean hasMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder> - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder item : - conditions) { + Predicate predicate) { + for (V2beta2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { return true; } @@ -233,16 +195,13 @@ public Boolean hasMatchingCondition( return false; } - public A withConditions( - java.util.List - conditions) { + public A withConditions(List conditions) { if (this.conditions != null) { _visitables.get("conditions").removeAll(this.conditions); } if (conditions != null) { - this.conditions = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item : - conditions) { + this.conditions = new ArrayList(); + for (V2beta2HorizontalPodAutoscalerCondition item : conditions) { this.addToConditions(item); } } else { @@ -257,15 +216,14 @@ public A withConditions( this.conditions.clear(); } if (conditions != null) { - for (io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item : - conditions) { + for (V2beta2HorizontalPodAutoscalerCondition item : conditions) { this.addToConditions(item); } } return (A) this; } - public java.lang.Boolean hasConditions() { + public Boolean hasConditions() { return conditions != null && !conditions.isEmpty(); } @@ -273,59 +231,37 @@ public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCond return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - addNewConditionLike( - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item) { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewConditionLike( + V2beta2HorizontalPodAutoscalerCondition item) { return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - setNewConditionLike( - java.lang.Integer index, - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerCondition item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluentImpl - .ConditionsNestedImpl(index, item); + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested setNewConditionLike( + Integer index, V2beta2HorizontalPodAutoscalerCondition item) { + return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.ConditionsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editCondition(java.lang.Integer index) { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editCondition( + Integer index) { if (conditions.size() <= index) throw new RuntimeException("Can't edit conditions. Index exceeds size."); return setNewConditionLike(index, buildCondition(index)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editFirstCondition() { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editFirstCondition() { if (conditions.size() == 0) throw new RuntimeException("Can't edit first conditions. The list is empty."); return setNewConditionLike(0, buildCondition(0)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editLastCondition() { + public V2beta2HorizontalPodAutoscalerStatusFluent.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 io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - A> - editMatchingCondition( - java.util.function.Predicate< - io.kubernetes.client.openapi.models - .V2beta2HorizontalPodAutoscalerConditionBuilder> - predicate) { + public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested editMatchingCondition( + Predicate predicate) { int index = -1; for (int i = 0; i < conditions.size(); i++) { if (predicate.test(conditions.get(i))) { @@ -337,13 +273,11 @@ public V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested addNewCond return setNewConditionLike(index, buildCondition(index)); } - public A addToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricStatus item) { + public A addToCurrentMetrics(Integer index, V2beta2MetricStatus item) { if (this.currentMetrics == null) { - this.currentMetrics = new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(item); + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); _visitables .get("currentMetrics") .add(index >= 0 ? index : _visitables.get("currentMetrics").size(), builder); @@ -351,14 +285,11 @@ public A addToCurrentMetrics( return (A) this; } - public A setToCurrentMetrics( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricStatus item) { + public A setToCurrentMetrics(Integer index, V2beta2MetricStatus item) { if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(item); + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); if (index < 0 || index >= _visitables.get("currentMetrics").size()) { _visitables.get("currentMetrics").add(builder); } else { @@ -374,27 +305,22 @@ public A setToCurrentMetrics( public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2beta2MetricStatus... items) { if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(item); + for (V2beta2MetricStatus item : items) { + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); _visitables.get("currentMetrics").add(builder); this.currentMetrics.add(builder); } return (A) this; } - public A addAllToCurrentMetrics( - java.util.Collection items) { + public A addAllToCurrentMetrics(Collection items) { if (this.currentMetrics == null) { - this.currentMetrics = - new java.util.ArrayList(); + this.currentMetrics = new ArrayList(); } - for (io.kubernetes.client.openapi.models.V2beta2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(item); + for (V2beta2MetricStatus item : items) { + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); _visitables.get("currentMetrics").add(builder); this.currentMetrics.add(builder); } @@ -403,9 +329,8 @@ public A addAllToCurrentMetrics( public A removeFromCurrentMetrics( io.kubernetes.client.openapi.models.V2beta2MetricStatus... items) { - for (io.kubernetes.client.openapi.models.V2beta2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(item); + for (V2beta2MetricStatus item : items) { + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); _visitables.get("currentMetrics").remove(builder); if (this.currentMetrics != null) { this.currentMetrics.remove(builder); @@ -414,11 +339,9 @@ public A removeFromCurrentMetrics( return (A) this; } - public A removeAllFromCurrentMetrics( - java.util.Collection items) { - for (io.kubernetes.client.openapi.models.V2beta2MetricStatus item : items) { - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = - new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(item); + public A removeAllFromCurrentMetrics(Collection items) { + for (V2beta2MetricStatus item : items) { + V2beta2MetricStatusBuilder builder = new V2beta2MetricStatusBuilder(item); _visitables.get("currentMetrics").remove(builder); if (this.currentMetrics != null) { this.currentMetrics.remove(builder); @@ -427,15 +350,12 @@ public A removeAllFromCurrentMetrics( return (A) this; } - public A removeMatchingFromCurrentMetrics( - java.util.function.Predicate - predicate) { + public A removeMatchingFromCurrentMetrics(Predicate predicate) { if (currentMetrics == null) return (A) this; - final Iterator each = - currentMetrics.iterator(); + final Iterator each = currentMetrics.iterator(); final List visitables = _visitables.get("currentMetrics"); while (each.hasNext()) { - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder = each.next(); + V2beta2MetricStatusBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -449,34 +369,30 @@ public A removeMatchingFromCurrentMetrics( * * @return The buildable object. */ - @java.lang.Deprecated - public java.util.List - getCurrentMetrics() { + @Deprecated + public List getCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public java.util.List - buildCurrentMetrics() { + public List buildCurrentMetrics() { return currentMetrics != null ? build(currentMetrics) : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildCurrentMetric( - java.lang.Integer index) { + public V2beta2MetricStatus buildCurrentMetric(Integer index) { return this.currentMetrics.get(index).build(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildFirstCurrentMetric() { + public V2beta2MetricStatus buildFirstCurrentMetric() { return this.currentMetrics.get(0).build(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildLastCurrentMetric() { + public V2beta2MetricStatus buildLastCurrentMetric() { return this.currentMetrics.get(currentMetrics.size() - 1).build(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildMatchingCurrentMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder item : currentMetrics) { + public V2beta2MetricStatus buildMatchingCurrentMetric( + Predicate predicate) { + for (V2beta2MetricStatusBuilder item : currentMetrics) { if (predicate.test(item)) { return item.build(); } @@ -484,10 +400,8 @@ public io.kubernetes.client.openapi.models.V2beta2MetricStatus buildMatchingCurr return null; } - public java.lang.Boolean hasMatchingCurrentMetric( - java.util.function.Predicate - predicate) { - for (io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder item : currentMetrics) { + public Boolean hasMatchingCurrentMetric(Predicate predicate) { + for (V2beta2MetricStatusBuilder item : currentMetrics) { if (predicate.test(item)) { return true; } @@ -495,14 +409,13 @@ public java.lang.Boolean hasMatchingCurrentMetric( return false; } - public A withCurrentMetrics( - java.util.List currentMetrics) { + public A withCurrentMetrics(List currentMetrics) { if (this.currentMetrics != null) { _visitables.get("currentMetrics").removeAll(this.currentMetrics); } if (currentMetrics != null) { - this.currentMetrics = new java.util.ArrayList(); - for (io.kubernetes.client.openapi.models.V2beta2MetricStatus item : currentMetrics) { + this.currentMetrics = new ArrayList(); + for (V2beta2MetricStatus item : currentMetrics) { this.addToCurrentMetrics(item); } } else { @@ -517,14 +430,14 @@ public A withCurrentMetrics( this.currentMetrics.clear(); } if (currentMetrics != null) { - for (io.kubernetes.client.openapi.models.V2beta2MetricStatus item : currentMetrics) { + for (V2beta2MetricStatus item : currentMetrics) { this.addToCurrentMetrics(item); } } return (A) this; } - public java.lang.Boolean hasCurrentMetrics() { + public Boolean hasCurrentMetrics() { return currentMetrics != null && !currentMetrics.isEmpty(); } @@ -532,57 +445,39 @@ public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNew return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - addNewCurrentMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluentImpl - .CurrentMetricsNestedImpl(-1, item); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNewCurrentMetricLike( + V2beta2MetricStatus item) { + return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(-1, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - setNewCurrentMetricLike( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluentImpl - .CurrentMetricsNestedImpl(index, item); + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested setNewCurrentMetricLike( + Integer index, V2beta2MetricStatus item) { + return new V2beta2HorizontalPodAutoscalerStatusFluentImpl.CurrentMetricsNestedImpl(index, item); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editCurrentMetric(java.lang.Integer index) { + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editCurrentMetric( + Integer index) { if (currentMetrics.size() <= index) throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested editFirstCurrentMetric() { if (currentMetrics.size() == 0) throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); return setNewCurrentMetricLike(0, buildCurrentMetric(0)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> + public V2beta2HorizontalPodAutoscalerStatusFluent.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)); } - public io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - A> - editMatchingCurrentMetric( - java.util.function.Predicate< - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder> - predicate) { + public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested + editMatchingCurrentMetric(Predicate predicate) { int index = -1; for (int i = 0; i < currentMetrics.size(); i++) { if (predicate.test(currentMetrics.get(i))) { @@ -595,55 +490,55 @@ public V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested addNew return setNewCurrentMetricLike(index, buildCurrentMetric(index)); } - public java.lang.Integer getCurrentReplicas() { + public Integer getCurrentReplicas() { return this.currentReplicas; } - public A withCurrentReplicas(java.lang.Integer currentReplicas) { + public A withCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; return (A) this; } - public java.lang.Boolean hasCurrentReplicas() { + public Boolean hasCurrentReplicas() { return this.currentReplicas != null; } - public java.lang.Integer getDesiredReplicas() { + public Integer getDesiredReplicas() { return this.desiredReplicas; } - public A withDesiredReplicas(java.lang.Integer desiredReplicas) { + public A withDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; return (A) this; } - public java.lang.Boolean hasDesiredReplicas() { + public Boolean hasDesiredReplicas() { return this.desiredReplicas != null; } - public java.time.OffsetDateTime getLastScaleTime() { + public OffsetDateTime getLastScaleTime() { return this.lastScaleTime; } - public A withLastScaleTime(java.time.OffsetDateTime lastScaleTime) { + public A withLastScaleTime(OffsetDateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; return (A) this; } - public java.lang.Boolean hasLastScaleTime() { + public Boolean hasLastScaleTime() { return this.lastScaleTime != null; } - public java.lang.Long getObservedGeneration() { + public Long getObservedGeneration() { return this.observedGeneration; } - public A withObservedGeneration(java.lang.Long observedGeneration) { + public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } - public java.lang.Boolean hasObservedGeneration() { + public Boolean hasObservedGeneration() { return this.observedGeneration != null; } @@ -717,24 +612,19 @@ public String toString() { class ConditionsNestedImpl extends V2beta2HorizontalPodAutoscalerConditionFluentImpl< V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .ConditionsNested< - N>, - Nested { - ConditionsNestedImpl(java.lang.Integer index, V2beta2HorizontalPodAutoscalerCondition item) { + implements V2beta2HorizontalPodAutoscalerStatusFluent.ConditionsNested, Nested { + ConditionsNestedImpl(Integer index, V2beta2HorizontalPodAutoscalerCondition item) { this.index = index; this.builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(this, item); } ConditionsNestedImpl() { this.index = -1; - this.builder = - new io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder( - this); + this.builder = new V2beta2HorizontalPodAutoscalerConditionBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerConditionBuilder builder; - java.lang.Integer index; + V2beta2HorizontalPodAutoscalerConditionBuilder builder; + Integer index; public N and() { return (N) @@ -750,23 +640,19 @@ public N endCondition() { class CurrentMetricsNestedImpl extends V2beta2MetricStatusFluentImpl< V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested> - implements io.kubernetes.client.openapi.models.V2beta2HorizontalPodAutoscalerStatusFluent - .CurrentMetricsNested< - N>, - io.kubernetes.client.fluent.Nested { - CurrentMetricsNestedImpl( - java.lang.Integer index, io.kubernetes.client.openapi.models.V2beta2MetricStatus item) { + implements V2beta2HorizontalPodAutoscalerStatusFluent.CurrentMetricsNested, Nested { + CurrentMetricsNestedImpl(Integer index, V2beta2MetricStatus item) { this.index = index; this.builder = new V2beta2MetricStatusBuilder(this, item); } CurrentMetricsNestedImpl() { this.index = -1; - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder(this); + this.builder = new V2beta2MetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder builder; - java.lang.Integer index; + V2beta2MetricStatusBuilder builder; + Integer index; public N and() { return (N) diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java index fe032e0ed0..997455c0ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierBuilder.java @@ -16,9 +16,7 @@ public class V2beta2MetricIdentifierBuilder extends V2beta2MetricIdentifierFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2MetricIdentifier, - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder> { + implements VisitableBuilder { public V2beta2MetricIdentifierBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifierFluent fluent) { } public V2beta2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2MetricIdentifierFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2MetricIdentifier(), validationEnabled); } public V2beta2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricIdentifier instance) { + V2beta2MetricIdentifierFluent fluent, V2beta2MetricIdentifier instance) { this(fluent, instance, false); } public V2beta2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricIdentifier instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricIdentifierFluent fluent, + V2beta2MetricIdentifier instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,12 @@ public V2beta2MetricIdentifierBuilder( this.validationEnabled = validationEnabled; } - public V2beta2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricIdentifier instance) { + public V2beta2MetricIdentifierBuilder(V2beta2MetricIdentifier instance) { this(instance, false); } public V2beta2MetricIdentifierBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricIdentifier instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricIdentifier instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +65,10 @@ public V2beta2MetricIdentifierBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2MetricIdentifierFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier build() { + public V2beta2MetricIdentifier build() { V2beta2MetricIdentifier buildable = new V2beta2MetricIdentifier(); buildable.setName(fluent.getName()); buildable.setSelector(fluent.getSelector()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java index a513a85a46..8f8e422d56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluent.java @@ -20,7 +20,7 @@ public interface V2beta2MetricIdentifierFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); @@ -32,25 +32,22 @@ public interface V2beta2MetricIdentifierFluent withNewSelector(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V2beta2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - editSelector(); + public V2beta2MetricIdentifierFluent.SelectorNested editSelector(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - editOrNewSelector(); + public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelector(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item); + public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike( + V1LabelSelector item); public interface SelectorNested extends Nested, V1LabelSelectorFluent> { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java index 5c81a30c13..a984f192f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifierFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2MetricIdentifierFluentImpl implements V2beta2MetricIdentifierFluent { public V2beta2MetricIdentifierFluentImpl() {} - public V2beta2MetricIdentifierFluentImpl( - io.kubernetes.client.openapi.models.V2beta2MetricIdentifier instance) { + public V2beta2MetricIdentifierFluentImpl(V2beta2MetricIdentifier instance) { this.withName(instance.getName()); this.withSelector(instance.getSelector()); @@ -31,11 +30,11 @@ public V2beta2MetricIdentifierFluentImpl( private String name; private V1LabelSelectorBuilder selector; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -50,24 +49,27 @@ public Boolean hasName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V1LabelSelector getSelector() { + public V1LabelSelector getSelector() { return this.selector != null ? this.selector.build() : null; } - public io.kubernetes.client.openapi.models.V1LabelSelector buildSelector() { + public V1LabelSelector buildSelector() { return this.selector != null ? this.selector.build() : null; } - public A withSelector(io.kubernetes.client.openapi.models.V1LabelSelector selector) { + public A withSelector(V1LabelSelector selector) { _visitables.get("selector").remove(this.selector); if (selector != null) { this.selector = new V1LabelSelectorBuilder(selector); _visitables.get("selector").add(this.selector); + } else { + this.selector = null; + _visitables.get("selector").remove(this.selector); } return (A) this; } - public java.lang.Boolean hasSelector() { + public Boolean hasSelector() { return this.selector != null; } @@ -75,26 +77,21 @@ public V2beta2MetricIdentifierFluent.SelectorNested withNewSelector() { return new V2beta2MetricIdentifierFluentImpl.SelectorNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - withNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V2beta2MetricIdentifierFluent.SelectorNested withNewSelectorLike(V1LabelSelector item) { return new V2beta2MetricIdentifierFluentImpl.SelectorNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - editSelector() { + public V2beta2MetricIdentifierFluent.SelectorNested editSelector() { return withNewSelectorLike(getSelector()); } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - editOrNewSelector() { + public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelector() { return withNewSelectorLike( - getSelector() != null - ? getSelector() - : new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder().build()); + getSelector() != null ? getSelector() : new V1LabelSelectorBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested - editOrNewSelectorLike(io.kubernetes.client.openapi.models.V1LabelSelector item) { + public V2beta2MetricIdentifierFluent.SelectorNested editOrNewSelectorLike( + V1LabelSelector item) { return withNewSelectorLike(getSelector() != null ? getSelector() : item); } @@ -111,7 +108,7 @@ public int hashCode() { return java.util.Objects.hash(name, selector, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { @@ -128,18 +125,16 @@ public java.lang.String toString() { class SelectorNestedImpl extends V1LabelSelectorFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricIdentifierFluent.SelectorNested< - N>, - Nested { + implements V2beta2MetricIdentifierFluent.SelectorNested, Nested { SelectorNestedImpl(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } SelectorNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V1LabelSelectorBuilder(this); + this.builder = new V1LabelSelectorBuilder(this); } - io.kubernetes.client.openapi.models.V1LabelSelectorBuilder builder; + V1LabelSelectorBuilder builder; public N and() { return (N) V2beta2MetricIdentifierFluentImpl.this.withSelector(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java index 557d1bc293..067025f3ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecBuilder.java @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class V2beta2MetricSpecBuilder extends V2beta2MetricSpecFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2MetricSpec, - io.kubernetes.client.openapi.models.V2beta2MetricSpecBuilder> { + implements VisitableBuilder { public V2beta2MetricSpecBuilder() { this(false); } @@ -30,22 +28,16 @@ public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent) { this(fluent, false); } - public V2beta2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent fluent, - java.lang.Boolean validationEnabled) { + public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2MetricSpec(), validationEnabled); } - public V2beta2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricSpec instance) { + public V2beta2MetricSpecBuilder(V2beta2MetricSpecFluent fluent, V2beta2MetricSpec instance) { this(fluent, instance, false); } public V2beta2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricSpec instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricSpecFluent fluent, V2beta2MetricSpec instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); @@ -62,13 +54,11 @@ public V2beta2MetricSpecBuilder( this.validationEnabled = validationEnabled; } - public V2beta2MetricSpecBuilder(io.kubernetes.client.openapi.models.V2beta2MetricSpec instance) { + public V2beta2MetricSpecBuilder(V2beta2MetricSpec instance) { this(instance, false); } - public V2beta2MetricSpecBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricSpec instance, - java.lang.Boolean validationEnabled) { + public V2beta2MetricSpecBuilder(V2beta2MetricSpec instance, Boolean validationEnabled) { this.fluent = this; this.withContainerResource(instance.getContainerResource()); @@ -85,10 +75,10 @@ public V2beta2MetricSpecBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2MetricSpecFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2MetricSpec build() { + public V2beta2MetricSpec build() { V2beta2MetricSpec buildable = new V2beta2MetricSpec(); buildable.setContainerResource(fluent.getContainerResource()); buildable.setExternal(fluent.getExternal()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java index bf07e40343..46c704d2df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluent.java @@ -26,144 +26,130 @@ public interface V2beta2MetricSpecFluent> e @Deprecated public V2beta2ContainerResourceMetricSource getContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource - buildContainerResource(); + public V2beta2ContainerResourceMetricSource buildContainerResource(); - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource containerResource); + public A withContainerResource(V2beta2ContainerResourceMetricSource containerResource); public Boolean hasContainerResource(); public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource item); + public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( + V2beta2ContainerResourceMetricSource item); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - editContainerResource(); + public V2beta2MetricSpecFluent.ContainerResourceNested editContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResource(); + public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource item); + public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2beta2ContainerResourceMetricSource item); /** * This method has been deprecated, please use method buildExternal instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ExternalMetricSource getExternal(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource buildExternal(); + public V2beta2ExternalMetricSource buildExternal(); - public A withExternal(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource external); + public A withExternal(V2beta2ExternalMetricSource external); - public java.lang.Boolean hasExternal(); + public Boolean hasExternal(); public V2beta2MetricSpecFluent.ExternalNested withNewExternal(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource item); + public V2beta2MetricSpecFluent.ExternalNested withNewExternalLike( + V2beta2ExternalMetricSource item); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - editExternal(); + public V2beta2MetricSpecFluent.ExternalNested editExternal(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - editOrNewExternal(); + public V2beta2MetricSpecFluent.ExternalNested editOrNewExternal(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource item); + public V2beta2MetricSpecFluent.ExternalNested editOrNewExternalLike( + V2beta2ExternalMetricSource item); /** * This method has been deprecated, please use method buildObject instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ObjectMetricSource getObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource buildObject(); + public V2beta2ObjectMetricSource buildObject(); - public A withObject(io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource _object); + public A withObject(V2beta2ObjectMetricSource _object); - public java.lang.Boolean hasObject(); + public Boolean hasObject(); public V2beta2MetricSpecFluent.ObjectNested withNewObject(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource item); + public V2beta2MetricSpecFluent.ObjectNested withNewObjectLike(V2beta2ObjectMetricSource item); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested editObject(); + public V2beta2MetricSpecFluent.ObjectNested editObject(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested - editOrNewObject(); + public V2beta2MetricSpecFluent.ObjectNested editOrNewObject(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource item); + public V2beta2MetricSpecFluent.ObjectNested editOrNewObjectLike( + V2beta2ObjectMetricSource item); /** * This method has been deprecated, please use method buildPods instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2PodsMetricSource getPods(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSource buildPods(); + public V2beta2PodsMetricSource buildPods(); - public A withPods(io.kubernetes.client.openapi.models.V2beta2PodsMetricSource pods); + public A withPods(V2beta2PodsMetricSource pods); - public java.lang.Boolean hasPods(); + public Boolean hasPods(); public V2beta2MetricSpecFluent.PodsNested withNewPods(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource item); + public V2beta2MetricSpecFluent.PodsNested withNewPodsLike(V2beta2PodsMetricSource item); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested editPods(); + public V2beta2MetricSpecFluent.PodsNested editPods(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested editOrNewPods(); + public V2beta2MetricSpecFluent.PodsNested editOrNewPods(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta2PodsMetricSource item); + public V2beta2MetricSpecFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricSource item); /** * This method has been deprecated, please use method buildResource instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ResourceMetricSource getResource(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource buildResource(); + public V2beta2ResourceMetricSource buildResource(); - public A withResource(io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource resource); + public A withResource(V2beta2ResourceMetricSource resource); - public java.lang.Boolean hasResource(); + public Boolean hasResource(); public V2beta2MetricSpecFluent.ResourceNested withNewResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource item); + public V2beta2MetricSpecFluent.ResourceNested withNewResourceLike( + V2beta2ResourceMetricSource item); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - editResource(); + public V2beta2MetricSpecFluent.ResourceNested editResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - editOrNewResource(); + public V2beta2MetricSpecFluent.ResourceNested editOrNewResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource item); + public V2beta2MetricSpecFluent.ResourceNested editOrNewResourceLike( + V2beta2ResourceMetricSource item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface ContainerResourceNested extends Nested, @@ -175,7 +161,7 @@ public interface ContainerResourceNested } public interface ExternalNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2ExternalMetricSourceFluent> { public N and(); @@ -183,23 +169,21 @@ public interface ExternalNested } public interface ObjectNested - extends io.kubernetes.client.fluent.Nested, - V2beta2ObjectMetricSourceFluent> { + extends Nested, V2beta2ObjectMetricSourceFluent> { public N and(); public N endObject(); } public interface PodsNested - extends io.kubernetes.client.fluent.Nested, - V2beta2PodsMetricSourceFluent> { + extends Nested, V2beta2PodsMetricSourceFluent> { public N and(); public N endPods(); } public interface ResourceNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2ResourceMetricSourceFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java index 7d260e0fff..ffcd3041f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpecFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2MetricSpecFluentImpl> e implements V2beta2MetricSpecFluent { public V2beta2MetricSpecFluentImpl() {} - public V2beta2MetricSpecFluentImpl( - io.kubernetes.client.openapi.models.V2beta2MetricSpec instance) { + public V2beta2MetricSpecFluentImpl(V2beta2MetricSpec instance) { this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -49,22 +48,22 @@ public V2beta2MetricSpecFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource - getContainerResource() { + public V2beta2ContainerResourceMetricSource getContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource - buildContainerResource() { + public V2beta2ContainerResourceMetricSource buildContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource containerResource) { + public A withContainerResource(V2beta2ContainerResourceMetricSource containerResource) { _visitables.get("containerResource").remove(this.containerResource); if (containerResource != null) { this.containerResource = new V2beta2ContainerResourceMetricSourceBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource); + } else { + this.containerResource = null; + _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } @@ -77,29 +76,24 @@ public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResour return new V2beta2MetricSpecFluentImpl.ContainerResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource item) { + public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResourceLike( + V2beta2ContainerResourceMetricSource item) { return new V2beta2MetricSpecFluentImpl.ContainerResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - editContainerResource() { + public V2beta2MetricSpecFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResource() { + public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResource() { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() - : new io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceBuilder() - .build()); + : new V2beta2ContainerResourceMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource item) { + public V2beta2MetricSpecFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2beta2ContainerResourceMetricSource item) { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() : item); } @@ -109,25 +103,28 @@ public V2beta2MetricSpecFluent.ContainerResourceNested withNewContainerResour * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource getExternal() { + @Deprecated + public V2beta2ExternalMetricSource getExternal() { return this.external != null ? this.external.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource buildExternal() { + public V2beta2ExternalMetricSource buildExternal() { return this.external != null ? this.external.build() : null; } - public A withExternal(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource external) { + public A withExternal(V2beta2ExternalMetricSource external) { _visitables.get("external").remove(this.external); if (external != null) { this.external = new V2beta2ExternalMetricSourceBuilder(external); _visitables.get("external").add(this.external); + } else { + this.external = null; + _visitables.get("external").remove(this.external); } return (A) this; } - public java.lang.Boolean hasExternal() { + public Boolean hasExternal() { return this.external != null; } @@ -135,27 +132,22 @@ public V2beta2MetricSpecFluent.ExternalNested withNewExternal() { return new V2beta2MetricSpecFluentImpl.ExternalNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricSpecFluentImpl.ExternalNestedImpl( - item); + public V2beta2MetricSpecFluent.ExternalNested withNewExternalLike( + V2beta2ExternalMetricSource item) { + return new V2beta2MetricSpecFluentImpl.ExternalNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - editExternal() { + public V2beta2MetricSpecFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - editOrNewExternal() { + public V2beta2MetricSpecFluent.ExternalNested editOrNewExternal() { return withNewExternalLike( - getExternal() != null - ? getExternal() - : new io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceBuilder().build()); + getExternal() != null ? getExternal() : new V2beta2ExternalMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource item) { + public V2beta2MetricSpecFluent.ExternalNested editOrNewExternalLike( + V2beta2ExternalMetricSource item) { return withNewExternalLike(getExternal() != null ? getExternal() : item); } @@ -164,25 +156,28 @@ public V2beta2MetricSpecFluent.ExternalNested withNewExternal() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource getObject() { + @Deprecated + public V2beta2ObjectMetricSource getObject() { return this._object != null ? this._object.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource buildObject() { + public V2beta2ObjectMetricSource buildObject() { return this._object != null ? this._object.build() : null; } - public A withObject(io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource _object) { + public A withObject(V2beta2ObjectMetricSource _object) { _visitables.get("_object").remove(this._object); if (_object != null) { this._object = new V2beta2ObjectMetricSourceBuilder(_object); _visitables.get("_object").add(this._object); + } else { + this._object = null; + _visitables.get("_object").remove(this._object); } return (A) this; } - public java.lang.Boolean hasObject() { + public Boolean hasObject() { return this._object != null; } @@ -190,26 +185,21 @@ public V2beta2MetricSpecFluent.ObjectNested withNewObject() { return new V2beta2MetricSpecFluentImpl.ObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricSpecFluentImpl.ObjectNestedImpl( - item); + public V2beta2MetricSpecFluent.ObjectNested withNewObjectLike(V2beta2ObjectMetricSource item) { + return new V2beta2MetricSpecFluentImpl.ObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested editObject() { + public V2beta2MetricSpecFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested - editOrNewObject() { + public V2beta2MetricSpecFluent.ObjectNested editOrNewObject() { return withNewObjectLike( - getObject() != null - ? getObject() - : new io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceBuilder().build()); + getObject() != null ? getObject() : new V2beta2ObjectMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource item) { + public V2beta2MetricSpecFluent.ObjectNested editOrNewObjectLike( + V2beta2ObjectMetricSource item) { return withNewObjectLike(getObject() != null ? getObject() : item); } @@ -218,25 +208,28 @@ public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested< * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSource getPods() { + @Deprecated + public V2beta2PodsMetricSource getPods() { return this.pods != null ? this.pods.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSource buildPods() { + public V2beta2PodsMetricSource buildPods() { return this.pods != null ? this.pods.build() : null; } - public A withPods(io.kubernetes.client.openapi.models.V2beta2PodsMetricSource pods) { + public A withPods(V2beta2PodsMetricSource pods) { _visitables.get("pods").remove(this.pods); if (pods != null) { this.pods = new V2beta2PodsMetricSourceBuilder(pods); _visitables.get("pods").add(this.pods); + } else { + this.pods = null; + _visitables.get("pods").remove(this.pods); } return (A) this; } - public java.lang.Boolean hasPods() { + public Boolean hasPods() { return this.pods != null; } @@ -244,24 +237,20 @@ public V2beta2MetricSpecFluent.PodsNested withNewPods() { return new V2beta2MetricSpecFluentImpl.PodsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested withNewPodsLike( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricSpecFluentImpl.PodsNestedImpl(item); + public V2beta2MetricSpecFluent.PodsNested withNewPodsLike(V2beta2PodsMetricSource item) { + return new V2beta2MetricSpecFluentImpl.PodsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested editPods() { + public V2beta2MetricSpecFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested editOrNewPods() { + public V2beta2MetricSpecFluent.PodsNested editOrNewPods() { return withNewPodsLike( - getPods() != null - ? getPods() - : new io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceBuilder().build()); + getPods() != null ? getPods() : new V2beta2PodsMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta2PodsMetricSource item) { + public V2beta2MetricSpecFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricSource item) { return withNewPodsLike(getPods() != null ? getPods() : item); } @@ -270,25 +259,28 @@ public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource getResource() { + @Deprecated + public V2beta2ResourceMetricSource getResource() { return this.resource != null ? this.resource.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource buildResource() { + public V2beta2ResourceMetricSource buildResource() { return this.resource != null ? this.resource.build() : null; } - public A withResource(io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource resource) { + public A withResource(V2beta2ResourceMetricSource resource) { _visitables.get("resource").remove(this.resource); if (resource != null) { this.resource = new V2beta2ResourceMetricSourceBuilder(resource); _visitables.get("resource").add(this.resource); + } else { + this.resource = null; + _visitables.get("resource").remove(this.resource); } return (A) this; } - public java.lang.Boolean hasResource() { + public Boolean hasResource() { return this.resource != null; } @@ -296,40 +288,35 @@ public V2beta2MetricSpecFluent.ResourceNested withNewResource() { return new V2beta2MetricSpecFluentImpl.ResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricSpecFluentImpl.ResourceNestedImpl( - item); + public V2beta2MetricSpecFluent.ResourceNested withNewResourceLike( + V2beta2ResourceMetricSource item) { + return new V2beta2MetricSpecFluentImpl.ResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - editResource() { + public V2beta2MetricSpecFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - editOrNewResource() { + public V2beta2MetricSpecFluent.ResourceNested editOrNewResource() { return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceBuilder().build()); + getResource() != null ? getResource() : new V2beta2ResourceMetricSourceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource item) { + public V2beta2MetricSpecFluent.ResourceNested editOrNewResourceLike( + V2beta2ResourceMetricSource item) { return withNewResourceLike(getResource() != null ? getResource() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -353,7 +340,7 @@ public int hashCode() { containerResource, external, _object, pods, resource, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerResource != null) { @@ -387,21 +374,16 @@ public java.lang.String toString() { class ContainerResourceNestedImpl extends V2beta2ContainerResourceMetricSourceFluentImpl< V2beta2MetricSpecFluent.ContainerResourceNested> - implements io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent - .ContainerResourceNested< - N>, - Nested { - ContainerResourceNestedImpl( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSource item) { + implements V2beta2MetricSpecFluent.ContainerResourceNested, Nested { + ContainerResourceNestedImpl(V2beta2ContainerResourceMetricSource item) { this.builder = new V2beta2ContainerResourceMetricSourceBuilder(this, item); } ContainerResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceBuilder(this); + this.builder = new V2beta2ContainerResourceMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricSourceBuilder builder; + V2beta2ContainerResourceMetricSourceBuilder builder; public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withContainerResource(builder.build()); @@ -414,18 +396,16 @@ public N endContainerResource() { class ExternalNestedImpl extends V2beta2ExternalMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ExternalNested, - io.kubernetes.client.fluent.Nested { - ExternalNestedImpl(io.kubernetes.client.openapi.models.V2beta2ExternalMetricSource item) { + implements V2beta2MetricSpecFluent.ExternalNested, Nested { + ExternalNestedImpl(V2beta2ExternalMetricSource item) { this.builder = new V2beta2ExternalMetricSourceBuilder(this, item); } ExternalNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceBuilder(this); + this.builder = new V2beta2ExternalMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ExternalMetricSourceBuilder builder; + V2beta2ExternalMetricSourceBuilder builder; public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withExternal(builder.build()); @@ -438,17 +418,16 @@ public N endExternal() { class ObjectNestedImpl extends V2beta2ObjectMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ObjectNested, - io.kubernetes.client.fluent.Nested { + implements V2beta2MetricSpecFluent.ObjectNested, Nested { ObjectNestedImpl(V2beta2ObjectMetricSource item) { this.builder = new V2beta2ObjectMetricSourceBuilder(this, item); } ObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceBuilder(this); + this.builder = new V2beta2ObjectMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceBuilder builder; + V2beta2ObjectMetricSourceBuilder builder; public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withObject(builder.build()); @@ -461,17 +440,16 @@ public N endObject() { class PodsNestedImpl extends V2beta2PodsMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.PodsNested, - io.kubernetes.client.fluent.Nested { + implements V2beta2MetricSpecFluent.PodsNested, Nested { PodsNestedImpl(V2beta2PodsMetricSource item) { this.builder = new V2beta2PodsMetricSourceBuilder(this, item); } PodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceBuilder(this); + this.builder = new V2beta2PodsMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceBuilder builder; + V2beta2PodsMetricSourceBuilder builder; public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withPods(builder.build()); @@ -484,18 +462,16 @@ public N endPods() { class ResourceNestedImpl extends V2beta2ResourceMetricSourceFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricSpecFluent.ResourceNested, - io.kubernetes.client.fluent.Nested { + implements V2beta2MetricSpecFluent.ResourceNested, Nested { ResourceNestedImpl(V2beta2ResourceMetricSource item) { this.builder = new V2beta2ResourceMetricSourceBuilder(this, item); } ResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceBuilder(this); + this.builder = new V2beta2ResourceMetricSourceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceBuilder builder; + V2beta2ResourceMetricSourceBuilder builder; public N and() { return (N) V2beta2MetricSpecFluentImpl.this.withResource(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java index d8bc1d0c3c..c9c0e1404e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusBuilder.java @@ -16,9 +16,7 @@ public class V2beta2MetricStatusBuilder extends V2beta2MetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2MetricStatus, - io.kubernetes.client.openapi.models.V2beta2MetricStatusBuilder> { + implements VisitableBuilder { public V2beta2MetricStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2MetricStatusBuilder(V2beta2MetricStatusFluent fluent) { } public V2beta2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2MetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2MetricStatus(), validationEnabled); } public V2beta2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricStatus instance) { + V2beta2MetricStatusFluent fluent, V2beta2MetricStatus instance) { this(fluent, instance, false); } public V2beta2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricStatusFluent fluent, + V2beta2MetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withContainerResource(instance.getContainerResource()); @@ -63,14 +59,11 @@ public V2beta2MetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2beta2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricStatus instance) { + public V2beta2MetricStatusBuilder(V2beta2MetricStatus instance) { this(instance, false); } - public V2beta2MetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricStatus instance, - java.lang.Boolean validationEnabled) { + public V2beta2MetricStatusBuilder(V2beta2MetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withContainerResource(instance.getContainerResource()); @@ -87,10 +80,10 @@ public V2beta2MetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2MetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2MetricStatus build() { + public V2beta2MetricStatus build() { V2beta2MetricStatus buildable = new V2beta2MetricStatus(); buildable.setContainerResource(fluent.getContainerResource()); buildable.setExternal(fluent.getExternal()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java index 7e6ad7ed13..26b7cf8aa6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluent.java @@ -27,145 +27,131 @@ public interface V2beta2MetricStatusFluent withNewContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus item); + public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( + V2beta2ContainerResourceMetricStatus item); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - editContainerResource(); + public V2beta2MetricStatusFluent.ContainerResourceNested editContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResource(); + public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus item); + public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2beta2ContainerResourceMetricStatus item); /** * This method has been deprecated, please use method buildExternal instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ExternalMetricStatus getExternal(); - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus buildExternal(); + public V2beta2ExternalMetricStatus buildExternal(); - public A withExternal(io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus external); + public A withExternal(V2beta2ExternalMetricStatus external); - public java.lang.Boolean hasExternal(); + public Boolean hasExternal(); public V2beta2MetricStatusFluent.ExternalNested withNewExternal(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus item); + public V2beta2MetricStatusFluent.ExternalNested withNewExternalLike( + V2beta2ExternalMetricStatus item); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - editExternal(); + public V2beta2MetricStatusFluent.ExternalNested editExternal(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - editOrNewExternal(); + public V2beta2MetricStatusFluent.ExternalNested editOrNewExternal(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus item); + public V2beta2MetricStatusFluent.ExternalNested editOrNewExternalLike( + V2beta2ExternalMetricStatus item); /** * This method has been deprecated, please use method buildObject instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ObjectMetricStatus getObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus buildObject(); + public V2beta2ObjectMetricStatus buildObject(); - public A withObject(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus _object); + public A withObject(V2beta2ObjectMetricStatus _object); - public java.lang.Boolean hasObject(); + public Boolean hasObject(); public V2beta2MetricStatusFluent.ObjectNested withNewObject(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus item); + public V2beta2MetricStatusFluent.ObjectNested withNewObjectLike( + V2beta2ObjectMetricStatus item); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested editObject(); + public V2beta2MetricStatusFluent.ObjectNested editObject(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - editOrNewObject(); + public V2beta2MetricStatusFluent.ObjectNested editOrNewObject(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus item); + public V2beta2MetricStatusFluent.ObjectNested editOrNewObjectLike( + V2beta2ObjectMetricStatus item); /** * This method has been deprecated, please use method buildPods instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2PodsMetricStatus getPods(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus buildPods(); + public V2beta2PodsMetricStatus buildPods(); - public A withPods(io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus pods); + public A withPods(V2beta2PodsMetricStatus pods); - public java.lang.Boolean hasPods(); + public Boolean hasPods(); public V2beta2MetricStatusFluent.PodsNested withNewPods(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested - withNewPodsLike(io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus item); + public V2beta2MetricStatusFluent.PodsNested withNewPodsLike(V2beta2PodsMetricStatus item); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested editPods(); + public V2beta2MetricStatusFluent.PodsNested editPods(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested - editOrNewPods(); + public V2beta2MetricStatusFluent.PodsNested editOrNewPods(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus item); + public V2beta2MetricStatusFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricStatus item); /** * This method has been deprecated, please use method buildResource instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ResourceMetricStatus getResource(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus buildResource(); + public V2beta2ResourceMetricStatus buildResource(); - public A withResource(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus resource); + public A withResource(V2beta2ResourceMetricStatus resource); - public java.lang.Boolean hasResource(); + public Boolean hasResource(); public V2beta2MetricStatusFluent.ResourceNested withNewResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus item); + public V2beta2MetricStatusFluent.ResourceNested withNewResourceLike( + V2beta2ResourceMetricStatus item); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - editResource(); + public V2beta2MetricStatusFluent.ResourceNested editResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - editOrNewResource(); + public V2beta2MetricStatusFluent.ResourceNested editOrNewResource(); - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus item); + public V2beta2MetricStatusFluent.ResourceNested editOrNewResourceLike( + V2beta2ResourceMetricStatus item); public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); public interface ContainerResourceNested extends Nested, @@ -177,7 +163,7 @@ public interface ContainerResourceNested } public interface ExternalNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2ExternalMetricStatusFluent> { public N and(); @@ -185,7 +171,7 @@ public interface ExternalNested } public interface ObjectNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2ObjectMetricStatusFluent> { public N and(); @@ -193,15 +179,14 @@ public interface ObjectNested } public interface PodsNested - extends io.kubernetes.client.fluent.Nested, - V2beta2PodsMetricStatusFluent> { + extends Nested, V2beta2PodsMetricStatusFluent> { public N and(); public N endPods(); } public interface ResourceNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2ResourceMetricStatusFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java index ae1359615c..7f9ac56c96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2MetricStatusFluentImpl implements V2beta2MetricStatusFluent { public V2beta2MetricStatusFluentImpl() {} - public V2beta2MetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2MetricStatus instance) { + public V2beta2MetricStatusFluentImpl(V2beta2MetricStatus instance) { this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); @@ -53,19 +52,18 @@ public V2beta2ContainerResourceMetricStatus getContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus - buildContainerResource() { + public V2beta2ContainerResourceMetricStatus buildContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public A withContainerResource( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus containerResource) { + public A withContainerResource(V2beta2ContainerResourceMetricStatus containerResource) { _visitables.get("containerResource").remove(this.containerResource); if (containerResource != null) { - this.containerResource = - new io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusBuilder( - containerResource); + this.containerResource = new V2beta2ContainerResourceMetricStatusBuilder(containerResource); _visitables.get("containerResource").add(this.containerResource); + } else { + this.containerResource = null; + _visitables.get("containerResource").remove(this.containerResource); } return (A) this; } @@ -78,29 +76,24 @@ public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerReso return new V2beta2MetricStatusFluentImpl.ContainerResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - withNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus item) { + public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerResourceLike( + V2beta2ContainerResourceMetricStatus item) { return new V2beta2MetricStatusFluentImpl.ContainerResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - editContainerResource() { + public V2beta2MetricStatusFluent.ContainerResourceNested editContainerResource() { return withNewContainerResourceLike(getContainerResource()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResource() { + public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResource() { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() - : new io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusBuilder() - .build()); + : new V2beta2ContainerResourceMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ContainerResourceNested - editOrNewContainerResourceLike( - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatus item) { + public V2beta2MetricStatusFluent.ContainerResourceNested editOrNewContainerResourceLike( + V2beta2ContainerResourceMetricStatus item) { return withNewContainerResourceLike( getContainerResource() != null ? getContainerResource() : item); } @@ -110,25 +103,28 @@ public V2beta2MetricStatusFluent.ContainerResourceNested withNewContainerReso * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus getExternal() { + @Deprecated + public V2beta2ExternalMetricStatus getExternal() { return this.external != null ? this.external.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus buildExternal() { + public V2beta2ExternalMetricStatus buildExternal() { return this.external != null ? this.external.build() : null; } - public A withExternal(io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus external) { + public A withExternal(V2beta2ExternalMetricStatus external) { _visitables.get("external").remove(this.external); if (external != null) { this.external = new V2beta2ExternalMetricStatusBuilder(external); _visitables.get("external").add(this.external); + } else { + this.external = null; + _visitables.get("external").remove(this.external); } return (A) this; } - public java.lang.Boolean hasExternal() { + public Boolean hasExternal() { return this.external != null; } @@ -136,27 +132,22 @@ public V2beta2MetricStatusFluent.ExternalNested withNewExternal() { return new V2beta2MetricStatusFluentImpl.ExternalNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - withNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricStatusFluentImpl.ExternalNestedImpl( - item); + public V2beta2MetricStatusFluent.ExternalNested withNewExternalLike( + V2beta2ExternalMetricStatus item) { + return new V2beta2MetricStatusFluentImpl.ExternalNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - editExternal() { + public V2beta2MetricStatusFluent.ExternalNested editExternal() { return withNewExternalLike(getExternal()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - editOrNewExternal() { + public V2beta2MetricStatusFluent.ExternalNested editOrNewExternal() { return withNewExternalLike( - getExternal() != null - ? getExternal() - : new io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusBuilder().build()); + getExternal() != null ? getExternal() : new V2beta2ExternalMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested - editOrNewExternalLike(io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatus item) { + public V2beta2MetricStatusFluent.ExternalNested editOrNewExternalLike( + V2beta2ExternalMetricStatus item) { return withNewExternalLike(getExternal() != null ? getExternal() : item); } @@ -165,25 +156,28 @@ public V2beta2MetricStatusFluent.ExternalNested withNewExternal() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus getObject() { + @Deprecated + public V2beta2ObjectMetricStatus getObject() { return this._object != null ? this._object.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus buildObject() { + public V2beta2ObjectMetricStatus buildObject() { return this._object != null ? this._object.build() : null; } - public A withObject(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus _object) { + public A withObject(V2beta2ObjectMetricStatus _object) { _visitables.get("_object").remove(this._object); if (_object != null) { this._object = new V2beta2ObjectMetricStatusBuilder(_object); _visitables.get("_object").add(this._object); + } else { + this._object = null; + _visitables.get("_object").remove(this._object); } return (A) this; } - public java.lang.Boolean hasObject() { + public Boolean hasObject() { return this._object != null; } @@ -191,27 +185,22 @@ public V2beta2MetricStatusFluent.ObjectNested withNewObject() { return new V2beta2MetricStatusFluentImpl.ObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - withNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricStatusFluentImpl.ObjectNestedImpl( - item); + public V2beta2MetricStatusFluent.ObjectNested withNewObjectLike( + V2beta2ObjectMetricStatus item) { + return new V2beta2MetricStatusFluentImpl.ObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - editObject() { + public V2beta2MetricStatusFluent.ObjectNested editObject() { return withNewObjectLike(getObject()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - editOrNewObject() { + public V2beta2MetricStatusFluent.ObjectNested editOrNewObject() { return withNewObjectLike( - getObject() != null - ? getObject() - : new io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusBuilder().build()); + getObject() != null ? getObject() : new V2beta2ObjectMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested - editOrNewObjectLike(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus item) { + public V2beta2MetricStatusFluent.ObjectNested editOrNewObjectLike( + V2beta2ObjectMetricStatus item) { return withNewObjectLike(getObject() != null ? getObject() : item); } @@ -220,25 +209,28 @@ public V2beta2MetricStatusFluent.ObjectNested withNewObject() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2PodsMetricStatus getPods() { return this.pods != null ? this.pods.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus buildPods() { + public V2beta2PodsMetricStatus buildPods() { return this.pods != null ? this.pods.build() : null; } - public A withPods(io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus pods) { + public A withPods(V2beta2PodsMetricStatus pods) { _visitables.get("pods").remove(this.pods); if (pods != null) { - this.pods = new io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusBuilder(pods); + this.pods = new V2beta2PodsMetricStatusBuilder(pods); _visitables.get("pods").add(this.pods); + } else { + this.pods = null; + _visitables.get("pods").remove(this.pods); } return (A) this; } - public java.lang.Boolean hasPods() { + public Boolean hasPods() { return this.pods != null; } @@ -246,26 +238,20 @@ public V2beta2MetricStatusFluent.PodsNested withNewPods() { return new V2beta2MetricStatusFluentImpl.PodsNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested - withNewPodsLike(io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricStatusFluentImpl.PodsNestedImpl( - item); + public V2beta2MetricStatusFluent.PodsNested withNewPodsLike(V2beta2PodsMetricStatus item) { + return new V2beta2MetricStatusFluentImpl.PodsNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested editPods() { + public V2beta2MetricStatusFluent.PodsNested editPods() { return withNewPodsLike(getPods()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested - editOrNewPods() { + public V2beta2MetricStatusFluent.PodsNested editOrNewPods() { return withNewPodsLike( - getPods() != null - ? getPods() - : new io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusBuilder().build()); + getPods() != null ? getPods() : new V2beta2PodsMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested - editOrNewPodsLike(io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus item) { + public V2beta2MetricStatusFluent.PodsNested editOrNewPodsLike(V2beta2PodsMetricStatus item) { return withNewPodsLike(getPods() != null ? getPods() : item); } @@ -274,26 +260,28 @@ public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested< * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2ResourceMetricStatus getResource() { return this.resource != null ? this.resource.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus buildResource() { + public V2beta2ResourceMetricStatus buildResource() { return this.resource != null ? this.resource.build() : null; } - public A withResource(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus resource) { + public A withResource(V2beta2ResourceMetricStatus resource) { _visitables.get("resource").remove(this.resource); if (resource != null) { - this.resource = - new io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusBuilder(resource); + this.resource = new V2beta2ResourceMetricStatusBuilder(resource); _visitables.get("resource").add(this.resource); + } else { + this.resource = null; + _visitables.get("resource").remove(this.resource); } return (A) this; } - public java.lang.Boolean hasResource() { + public Boolean hasResource() { return this.resource != null; } @@ -301,40 +289,35 @@ public V2beta2MetricStatusFluent.ResourceNested withNewResource() { return new V2beta2MetricStatusFluentImpl.ResourceNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - withNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus item) { - return new io.kubernetes.client.openapi.models.V2beta2MetricStatusFluentImpl.ResourceNestedImpl( - item); + public V2beta2MetricStatusFluent.ResourceNested withNewResourceLike( + V2beta2ResourceMetricStatus item) { + return new V2beta2MetricStatusFluentImpl.ResourceNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - editResource() { + public V2beta2MetricStatusFluent.ResourceNested editResource() { return withNewResourceLike(getResource()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - editOrNewResource() { + public V2beta2MetricStatusFluent.ResourceNested editOrNewResource() { return withNewResourceLike( - getResource() != null - ? getResource() - : new io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusBuilder().build()); + getResource() != null ? getResource() : new V2beta2ResourceMetricStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested - editOrNewResourceLike(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus item) { + public V2beta2MetricStatusFluent.ResourceNested editOrNewResourceLike( + V2beta2ResourceMetricStatus item) { return withNewResourceLike(getResource() != null ? getResource() : item); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } @@ -358,7 +341,7 @@ public int hashCode() { containerResource, external, _object, pods, resource, type, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (containerResource != null) { @@ -392,20 +375,16 @@ public java.lang.String toString() { class ContainerResourceNestedImpl extends V2beta2ContainerResourceMetricStatusFluentImpl< V2beta2MetricStatusFluent.ContainerResourceNested> - implements io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent - .ContainerResourceNested< - N>, - Nested { + implements V2beta2MetricStatusFluent.ContainerResourceNested, Nested { ContainerResourceNestedImpl(V2beta2ContainerResourceMetricStatus item) { this.builder = new V2beta2ContainerResourceMetricStatusBuilder(this, item); } ContainerResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusBuilder(this); + this.builder = new V2beta2ContainerResourceMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ContainerResourceMetricStatusBuilder builder; + V2beta2ContainerResourceMetricStatusBuilder builder; public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withContainerResource(builder.build()); @@ -418,18 +397,16 @@ public N endContainerResource() { class ExternalNestedImpl extends V2beta2ExternalMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ExternalNested, - io.kubernetes.client.fluent.Nested { + implements V2beta2MetricStatusFluent.ExternalNested, Nested { ExternalNestedImpl(V2beta2ExternalMetricStatus item) { this.builder = new V2beta2ExternalMetricStatusBuilder(this, item); } ExternalNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusBuilder(this); + this.builder = new V2beta2ExternalMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ExternalMetricStatusBuilder builder; + V2beta2ExternalMetricStatusBuilder builder; public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withExternal(builder.build()); @@ -442,17 +419,16 @@ public N endExternal() { class ObjectNestedImpl extends V2beta2ObjectMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ObjectNested, - io.kubernetes.client.fluent.Nested { - ObjectNestedImpl(io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus item) { + implements V2beta2MetricStatusFluent.ObjectNested, Nested { + ObjectNestedImpl(V2beta2ObjectMetricStatus item) { this.builder = new V2beta2ObjectMetricStatusBuilder(this, item); } ObjectNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusBuilder(this); + this.builder = new V2beta2ObjectMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusBuilder builder; + V2beta2ObjectMetricStatusBuilder builder; public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withObject(builder.build()); @@ -465,17 +441,16 @@ public N endObject() { class PodsNestedImpl extends V2beta2PodsMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.PodsNested, - io.kubernetes.client.fluent.Nested { + implements V2beta2MetricStatusFluent.PodsNested, Nested { PodsNestedImpl(V2beta2PodsMetricStatus item) { this.builder = new V2beta2PodsMetricStatusBuilder(this, item); } PodsNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusBuilder(this); + this.builder = new V2beta2PodsMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusBuilder builder; + V2beta2PodsMetricStatusBuilder builder; public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withPods(builder.build()); @@ -488,18 +463,16 @@ public N endPods() { class ResourceNestedImpl extends V2beta2ResourceMetricStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2MetricStatusFluent.ResourceNested, - io.kubernetes.client.fluent.Nested { - ResourceNestedImpl(io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus item) { + implements V2beta2MetricStatusFluent.ResourceNested, Nested { + ResourceNestedImpl(V2beta2ResourceMetricStatus item) { this.builder = new V2beta2ResourceMetricStatusBuilder(this, item); } ResourceNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusBuilder(this); + this.builder = new V2beta2ResourceMetricStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusBuilder builder; + V2beta2ResourceMetricStatusBuilder builder; public N and() { return (N) V2beta2MetricStatusFluentImpl.this.withResource(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java index 993dbd3503..6126281194 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetBuilder.java @@ -16,8 +16,7 @@ public class V2beta2MetricTargetBuilder extends V2beta2MetricTargetFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2MetricTarget, V2beta2MetricTargetBuilder> { + implements VisitableBuilder { public V2beta2MetricTargetBuilder() { this(false); } @@ -31,21 +30,19 @@ public V2beta2MetricTargetBuilder(V2beta2MetricTargetFluent fluent) { } public V2beta2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricTargetFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2MetricTargetFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2MetricTarget(), validationEnabled); } public V2beta2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricTargetFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricTarget instance) { + V2beta2MetricTargetFluent fluent, V2beta2MetricTarget instance) { this(fluent, instance, false); } public V2beta2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricTargetFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricTarget instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricTargetFluent fluent, + V2beta2MetricTarget instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); @@ -58,14 +55,11 @@ public V2beta2MetricTargetBuilder( this.validationEnabled = validationEnabled; } - public V2beta2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricTarget instance) { + public V2beta2MetricTargetBuilder(V2beta2MetricTarget instance) { this(instance, false); } - public V2beta2MetricTargetBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricTarget instance, - java.lang.Boolean validationEnabled) { + public V2beta2MetricTargetBuilder(V2beta2MetricTarget instance, Boolean validationEnabled) { this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); @@ -78,10 +72,10 @@ public V2beta2MetricTargetBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2MetricTargetFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2MetricTargetFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2MetricTarget build() { + public V2beta2MetricTarget build() { V2beta2MetricTarget buildable = new V2beta2MetricTarget(); buildable.setAverageUtilization(fluent.getAverageUtilization()); buildable.setAverageValue(fluent.getAverageValue()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java index 2f83fd04ff..b2b23b9f44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluent.java @@ -20,29 +20,29 @@ public interface V2beta2MetricTargetFluent { public Integer getAverageUtilization(); - public A withAverageUtilization(java.lang.Integer averageUtilization); + public A withAverageUtilization(Integer averageUtilization); public Boolean hasAverageUtilization(); public Quantity getAverageValue(); - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue); + public A withAverageValue(Quantity averageValue); - public java.lang.Boolean hasAverageValue(); + public Boolean hasAverageValue(); public A withNewAverageValue(String value); - public java.lang.String getType(); + public String getType(); - public A withType(java.lang.String type); + public A withType(String type); - public java.lang.Boolean hasType(); + public Boolean hasType(); - public io.kubernetes.client.custom.Quantity getValue(); + public Quantity getValue(); - public A withValue(io.kubernetes.client.custom.Quantity value); + public A withValue(Quantity value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); - public A withNewValue(java.lang.String value); + public A withNewValue(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java index 0e08cfebb8..fe6b4fa22a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTargetFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2MetricTargetFluentImpl implements V2beta2MetricTargetFluent { public V2beta2MetricTargetFluentImpl() {} - public V2beta2MetricTargetFluentImpl( - io.kubernetes.client.openapi.models.V2beta2MetricTarget instance) { + public V2beta2MetricTargetFluentImpl(V2beta2MetricTarget instance) { this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); @@ -35,13 +34,13 @@ public V2beta2MetricTargetFluentImpl( private Integer averageUtilization; private Quantity averageValue; private String type; - private io.kubernetes.client.custom.Quantity value; + private Quantity value; - public java.lang.Integer getAverageUtilization() { + public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(java.lang.Integer averageUtilization) { + public A withAverageUtilization(Integer averageUtilization) { this.averageUtilization = averageUtilization; return (A) this; } @@ -50,50 +49,50 @@ public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public io.kubernetes.client.custom.Quantity getAverageValue() { + public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue) { + public A withAverageValue(Quantity averageValue) { this.averageValue = averageValue; return (A) this; } - public java.lang.Boolean hasAverageValue() { + public Boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(java.lang.String value) { + public A withNewAverageValue(String value) { return (A) withAverageValue(new Quantity(value)); } - public java.lang.String getType() { + public String getType() { return this.type; } - public A withType(java.lang.String type) { + public A withType(String type) { this.type = type; return (A) this; } - public java.lang.Boolean hasType() { + public Boolean hasType() { return this.type != null; } - public io.kubernetes.client.custom.Quantity getValue() { + public Quantity getValue() { return this.value; } - public A withValue(io.kubernetes.client.custom.Quantity value) { + public A withValue(Quantity value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } - public A withNewValue(java.lang.String value) { + public A withNewValue(String value) { return (A) withValue(new Quantity(value)); } @@ -115,7 +114,7 @@ public int hashCode() { return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (averageUtilization != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java index def8005368..accf7f6b88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusBuilder.java @@ -16,9 +16,7 @@ public class V2beta2MetricValueStatusBuilder extends V2beta2MetricValueStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2MetricValueStatus, - V2beta2MetricValueStatusBuilder> { + implements VisitableBuilder { public V2beta2MetricValueStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatusFluent fluent) } public V2beta2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2MetricValueStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2MetricValueStatus(), validationEnabled); } public V2beta2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricValueStatus instance) { + V2beta2MetricValueStatusFluent fluent, V2beta2MetricValueStatus instance) { this(fluent, instance, false); } public V2beta2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2MetricValueStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricValueStatusFluent fluent, + V2beta2MetricValueStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withAverageUtilization(instance.getAverageUtilization()); @@ -57,14 +53,12 @@ public V2beta2MetricValueStatusBuilder( this.validationEnabled = validationEnabled; } - public V2beta2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricValueStatus instance) { + public V2beta2MetricValueStatusBuilder(V2beta2MetricValueStatus instance) { this(instance, false); } public V2beta2MetricValueStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2MetricValueStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2MetricValueStatus instance, Boolean validationEnabled) { this.fluent = this; this.withAverageUtilization(instance.getAverageUtilization()); @@ -75,10 +69,10 @@ public V2beta2MetricValueStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2MetricValueStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus build() { + public V2beta2MetricValueStatus build() { V2beta2MetricValueStatus buildable = new V2beta2MetricValueStatus(); buildable.setAverageUtilization(fluent.getAverageUtilization()); buildable.setAverageValue(fluent.getAverageValue()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java index 67ea407da9..12c473ca38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluent.java @@ -20,23 +20,23 @@ public interface V2beta2MetricValueStatusFluent { public Integer getAverageUtilization(); - public A withAverageUtilization(java.lang.Integer averageUtilization); + public A withAverageUtilization(Integer averageUtilization); public Boolean hasAverageUtilization(); public Quantity getAverageValue(); - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue); + public A withAverageValue(Quantity averageValue); - public java.lang.Boolean hasAverageValue(); + public Boolean hasAverageValue(); public A withNewAverageValue(String value); - public io.kubernetes.client.custom.Quantity getValue(); + public Quantity getValue(); - public A withValue(io.kubernetes.client.custom.Quantity value); + public A withValue(Quantity value); - public java.lang.Boolean hasValue(); + public Boolean hasValue(); - public A withNewValue(java.lang.String value); + public A withNewValue(String value); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java index 7d89b18b6e..475e8d2fcf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2MetricValueStatusFluentImpl implements V2beta2MetricValueStatusFluent { public V2beta2MetricValueStatusFluentImpl() {} - public V2beta2MetricValueStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2MetricValueStatus instance) { + public V2beta2MetricValueStatusFluentImpl(V2beta2MetricValueStatus instance) { this.withAverageUtilization(instance.getAverageUtilization()); this.withAverageValue(instance.getAverageValue()); @@ -32,13 +31,13 @@ public V2beta2MetricValueStatusFluentImpl( private Integer averageUtilization; private Quantity averageValue; - private io.kubernetes.client.custom.Quantity value; + private Quantity value; - public java.lang.Integer getAverageUtilization() { + public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(java.lang.Integer averageUtilization) { + public A withAverageUtilization(Integer averageUtilization) { this.averageUtilization = averageUtilization; return (A) this; } @@ -47,16 +46,16 @@ public Boolean hasAverageUtilization() { return this.averageUtilization != null; } - public io.kubernetes.client.custom.Quantity getAverageValue() { + public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(io.kubernetes.client.custom.Quantity averageValue) { + public A withAverageValue(Quantity averageValue) { this.averageValue = averageValue; return (A) this; } - public java.lang.Boolean hasAverageValue() { + public Boolean hasAverageValue() { return this.averageValue != null; } @@ -64,20 +63,20 @@ public A withNewAverageValue(String value) { return (A) withAverageValue(new Quantity(value)); } - public io.kubernetes.client.custom.Quantity getValue() { + public Quantity getValue() { return this.value; } - public A withValue(io.kubernetes.client.custom.Quantity value) { + public A withValue(Quantity value) { this.value = value; return (A) this; } - public java.lang.Boolean hasValue() { + public Boolean hasValue() { return this.value != null; } - public A withNewValue(java.lang.String value) { + public A withNewValue(String value) { return (A) withValue(new Quantity(value)); } @@ -98,7 +97,7 @@ public int hashCode() { return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (averageUtilization != null) { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java index 0e199f5ed6..91cc7a0d3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceBuilder.java @@ -16,9 +16,7 @@ public class V2beta2ObjectMetricSourceBuilder extends V2beta2ObjectMetricSourceFluentImpl - implements VisitableBuilder< - V2beta2ObjectMetricSource, - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceBuilder> { + implements VisitableBuilder { public V2beta2ObjectMetricSourceBuilder() { this(false); } @@ -27,27 +25,24 @@ public V2beta2ObjectMetricSourceBuilder(Boolean validationEnabled) { this(new V2beta2ObjectMetricSource(), validationEnabled); } - public V2beta2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent fluent) { + public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSourceFluent fluent) { this(fluent, false); } public V2beta2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ObjectMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ObjectMetricSource(), validationEnabled); } public V2beta2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource instance) { + V2beta2ObjectMetricSourceFluent fluent, V2beta2ObjectMetricSource instance) { this(fluent, instance, false); } public V2beta2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ObjectMetricSourceFluent fluent, + V2beta2ObjectMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withDescribedObject(instance.getDescribedObject()); @@ -58,14 +53,12 @@ public V2beta2ObjectMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2beta2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource instance) { + public V2beta2ObjectMetricSourceBuilder(V2beta2ObjectMetricSource instance) { this(instance, false); } public V2beta2ObjectMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ObjectMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withDescribedObject(instance.getDescribedObject()); @@ -76,10 +69,10 @@ public V2beta2ObjectMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ObjectMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource build() { + public V2beta2ObjectMetricSource build() { V2beta2ObjectMetricSource buildable = new V2beta2ObjectMetricSource(); buildable.setDescribedObject(fluent.getDescribedObject()); buildable.setMetric(fluent.getMetric()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java index 1bf10d29d8..f139b53d4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluent.java @@ -27,89 +27,75 @@ public interface V2beta2ObjectMetricSourceFluent withNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item); + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - editDescribedObject(); + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - editOrNewDescribedObject(); + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item); + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric(); + public V2beta2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric); + public A withMetric(V2beta2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - editMetric(); + public V2beta2ObjectMetricSourceFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - editOrNewMetric(); + public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget(); + public V2beta2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target); + public A withTarget(V2beta2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2beta2ObjectMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ObjectMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - editTarget(); + public V2beta2ObjectMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item); public interface DescribedObjectNested extends Nested, @@ -121,7 +107,7 @@ public interface DescribedObjectNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricIdentifierFluent> { public N and(); @@ -129,7 +115,7 @@ public interface MetricNested } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricTargetFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java index f921738f9d..7eca0058ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2ObjectMetricSourceFluentImpl implements V2beta2ObjectMetricSourceFluent { public V2beta2ObjectMetricSourceFluentImpl() {} - public V2beta2ObjectMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricSource instance) { + public V2beta2ObjectMetricSourceFluentImpl(V2beta2ObjectMetricSource instance) { this.withDescribedObject(instance.getDescribedObject()); this.withMetric(instance.getMetric()); @@ -40,22 +39,22 @@ public V2beta2ObjectMetricSourceFluentImpl( * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - getDescribedObject() { + public V2beta2CrossVersionObjectReference getDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - buildDescribedObject() { + public V2beta2CrossVersionObjectReference buildDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public A withDescribedObject( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference describedObject) { + public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); if (describedObject != null) { this.describedObject = new V2beta2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } @@ -68,33 +67,24 @@ public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribed return new V2beta2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item) { + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item) { return new V2beta2ObjectMetricSourceFluentImpl.DescribedObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - editDescribedObject() { + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - editOrNewDescribedObject() { + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObject() { return withNewDescribedObjectLike( getDescribedObject() != null ? getDescribedObject() - : new io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder() - .build()); + : new V2beta2CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.DescribedObjectNested< - A> - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item) { + public V2beta2ObjectMetricSourceFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item) { return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); } @@ -103,25 +93,28 @@ public V2beta2ObjectMetricSourceFluent.DescribedObjectNested withNewDescribed * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric() { + public V2beta2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric) { + public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(metric); + this.metric = new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -129,27 +122,22 @@ public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetric() { return new V2beta2ObjectMetricSourceFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluentImpl - .MetricNestedImpl(item); + public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item) { + return new V2beta2ObjectMetricSourceFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - editMetric() { + public V2beta2ObjectMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - editOrNewMetric() { + public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2ObjectMetricSourceFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -158,25 +146,28 @@ public V2beta2ObjectMetricSourceFluent.MetricNested withNewMetric() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget() { + public V2beta2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target) { + public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { - this.target = new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder(target); + this.target = new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -184,27 +175,22 @@ public V2beta2ObjectMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ObjectMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { - return new io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluentImpl - .TargetNestedImpl(item); + public V2beta2ObjectMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item) { + return new V2beta2ObjectMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - editTarget() { + public V2beta2ObjectMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2ObjectMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -246,20 +232,16 @@ public String toString() { class DescribedObjectNestedImpl extends V2beta2CrossVersionObjectReferenceFluentImpl< V2beta2ObjectMetricSourceFluent.DescribedObjectNested> - implements io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent - .DescribedObjectNested< - N>, - Nested { + implements V2beta2ObjectMetricSourceFluent.DescribedObjectNested, Nested { DescribedObjectNestedImpl(V2beta2CrossVersionObjectReference item) { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this, item); } DescribedObjectNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder(this); + this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder builder; + V2beta2CrossVersionObjectReferenceBuilder builder; public N and() { return (N) V2beta2ObjectMetricSourceFluentImpl.this.withDescribedObject(builder.build()); @@ -272,18 +254,16 @@ public N endDescribedObject() { class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.MetricNested< - N>, - io.kubernetes.client.fluent.Nested { - MetricNestedImpl(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + implements V2beta2ObjectMetricSourceFluent.MetricNested, Nested { + MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(this); + this.builder = new V2beta2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder builder; + V2beta2MetricIdentifierBuilder builder; public N and() { return (N) V2beta2ObjectMetricSourceFluentImpl.this.withMetric(builder.build()); @@ -296,18 +276,16 @@ public N endMetric() { class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ObjectMetricSourceFluent.TargetNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2ObjectMetricSourceFluent.TargetNested, Nested { TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder(this); + this.builder = new V2beta2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder builder; + V2beta2MetricTargetBuilder builder; public N and() { return (N) V2beta2ObjectMetricSourceFluentImpl.this.withTarget(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java index 852236e821..df8139e61c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusBuilder.java @@ -16,9 +16,7 @@ public class V2beta2ObjectMetricStatusBuilder extends V2beta2ObjectMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus, - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusBuilder> { + implements VisitableBuilder { public V2beta2ObjectMetricStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatusFluent fluen } public V2beta2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ObjectMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ObjectMetricStatus(), validationEnabled); } public V2beta2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus instance) { + V2beta2ObjectMetricStatusFluent fluent, V2beta2ObjectMetricStatus instance) { this(fluent, instance, false); } public V2beta2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ObjectMetricStatusFluent fluent, + V2beta2ObjectMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -57,14 +53,12 @@ public V2beta2ObjectMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2beta2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus instance) { + public V2beta2ObjectMetricStatusBuilder(V2beta2ObjectMetricStatus instance) { this(instance, false); } public V2beta2ObjectMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ObjectMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -75,10 +69,10 @@ public V2beta2ObjectMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ObjectMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus build() { + public V2beta2ObjectMetricStatus build() { V2beta2ObjectMetricStatus buildable = new V2beta2ObjectMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setDescribedObject(fluent.getDescribedObject()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java index bedcbec53c..6c9f687514 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluent.java @@ -27,89 +27,75 @@ public interface V2beta2ObjectMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - editCurrent(); + public V2beta2ObjectMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item); /** * This method has been deprecated, please use method buildDescribedObject instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2CrossVersionObjectReference getDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - buildDescribedObject(); + public V2beta2CrossVersionObjectReference buildDescribedObject(); - public A withDescribedObject( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference describedObject); + public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject); - public java.lang.Boolean hasDescribedObject(); + public Boolean hasDescribedObject(); public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item); + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - editDescribedObject(); + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - editOrNewDescribedObject(); + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item); + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric(); + public V2beta2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric); + public A withMetric(V2beta2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - editMetric(); + public V2beta2ObjectMetricStatusFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - editOrNewMetric(); + public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item); public interface CurrentNested extends Nested, @@ -120,7 +106,7 @@ public interface CurrentNested } public interface DescribedObjectNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2CrossVersionObjectReferenceFluent< V2beta2ObjectMetricStatusFluent.DescribedObjectNested> { public N and(); @@ -129,7 +115,7 @@ public interface DescribedObjectNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricIdentifierFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java index 75559e04b0..6b63556165 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2ObjectMetricStatusFluentImpl implements V2beta2ObjectMetricStatusFluent { public V2beta2ObjectMetricStatusFluentImpl() {} - public V2beta2ObjectMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatus instance) { + public V2beta2ObjectMetricStatusFluentImpl(V2beta2ObjectMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withDescribedObject(instance.getDescribedObject()); @@ -44,16 +43,18 @@ public V2beta2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus buildCurrent() { + public V2beta2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus current) { + public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { - this.current = - new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(current); + this.current = new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -66,26 +67,22 @@ public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ObjectMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item) { return new V2beta2ObjectMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - editCurrent() { + public V2beta2ObjectMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ObjectMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } @@ -94,28 +91,28 @@ public V2beta2ObjectMetricStatusFluent.CurrentNested withNewCurrent() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - getDescribedObject() { + @Deprecated + public V2beta2CrossVersionObjectReference getDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference - buildDescribedObject() { + public V2beta2CrossVersionObjectReference buildDescribedObject() { return this.describedObject != null ? this.describedObject.build() : null; } - public A withDescribedObject( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference describedObject) { + public A withDescribedObject(V2beta2CrossVersionObjectReference describedObject) { _visitables.get("describedObject").remove(this.describedObject); if (describedObject != null) { this.describedObject = new V2beta2CrossVersionObjectReferenceBuilder(describedObject); _visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + _visitables.get("describedObject").remove(this.describedObject); } return (A) this; } - public java.lang.Boolean hasDescribedObject() { + public Boolean hasDescribedObject() { return this.describedObject != null; } @@ -123,34 +120,24 @@ public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribed return new V2beta2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - withNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item) { - return new io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluentImpl - .DescribedObjectNestedImpl(item); + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item) { + return new V2beta2ObjectMetricStatusFluentImpl.DescribedObjectNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - editDescribedObject() { + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editDescribedObject() { return withNewDescribedObjectLike(getDescribedObject()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - editOrNewDescribedObject() { + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObject() { return withNewDescribedObjectLike( getDescribedObject() != null ? getDescribedObject() - : new io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder() - .build()); + : new V2beta2CrossVersionObjectReferenceBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.DescribedObjectNested< - A> - editOrNewDescribedObjectLike( - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReference item) { + public V2beta2ObjectMetricStatusFluent.DescribedObjectNested editOrNewDescribedObjectLike( + V2beta2CrossVersionObjectReference item) { return withNewDescribedObjectLike(getDescribedObject() != null ? getDescribedObject() : item); } @@ -159,25 +146,28 @@ public V2beta2ObjectMetricStatusFluent.DescribedObjectNested withNewDescribed * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric() { + public V2beta2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric) { + public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(metric); + this.metric = new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -185,27 +175,22 @@ public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetric() { return new V2beta2ObjectMetricStatusFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluentImpl - .MetricNestedImpl(item); + public V2beta2ObjectMetricStatusFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item) { + return new V2beta2ObjectMetricStatusFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - editMetric() { + public V2beta2ObjectMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - editOrNewMetric() { + public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2ObjectMetricStatusFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -246,18 +231,16 @@ public String toString() { class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.CurrentNested< - N>, - Nested { + implements V2beta2ObjectMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(this); + this.builder = new V2beta2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder builder; + V2beta2MetricValueStatusBuilder builder; public N and() { return (N) V2beta2ObjectMetricStatusFluentImpl.this.withCurrent(builder.build()); @@ -271,20 +254,16 @@ public N endCurrent() { class DescribedObjectNestedImpl extends V2beta2CrossVersionObjectReferenceFluentImpl< V2beta2ObjectMetricStatusFluent.DescribedObjectNested> - implements io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent - .DescribedObjectNested< - N>, - io.kubernetes.client.fluent.Nested { + implements V2beta2ObjectMetricStatusFluent.DescribedObjectNested, Nested { DescribedObjectNestedImpl(V2beta2CrossVersionObjectReference item) { this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this, item); } DescribedObjectNestedImpl() { - this.builder = - new io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder(this); + this.builder = new V2beta2CrossVersionObjectReferenceBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2CrossVersionObjectReferenceBuilder builder; + V2beta2CrossVersionObjectReferenceBuilder builder; public N and() { return (N) V2beta2ObjectMetricStatusFluentImpl.this.withDescribedObject(builder.build()); @@ -297,18 +276,16 @@ public N endDescribedObject() { class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ObjectMetricStatusFluent.MetricNested< - N>, - io.kubernetes.client.fluent.Nested { - MetricNestedImpl(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + implements V2beta2ObjectMetricStatusFluent.MetricNested, Nested { + MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(this); + this.builder = new V2beta2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder builder; + V2beta2MetricIdentifierBuilder builder; public N and() { return (N) V2beta2ObjectMetricStatusFluentImpl.this.withMetric(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java index daaf3f3764..bbe5a3c68c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceBuilder.java @@ -16,9 +16,7 @@ public class V2beta2PodsMetricSourceBuilder extends V2beta2PodsMetricSourceFluentImpl - implements VisitableBuilder< - V2beta2PodsMetricSource, - io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceBuilder> { + implements VisitableBuilder { public V2beta2PodsMetricSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSourceFluent fluent) { } public V2beta2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2PodsMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2PodsMetricSource(), validationEnabled); } public V2beta2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource instance) { + V2beta2PodsMetricSourceFluent fluent, V2beta2PodsMetricSource instance) { this(fluent, instance, false); } public V2beta2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2PodsMetricSourceFluent fluent, + V2beta2PodsMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withMetric(instance.getMetric()); @@ -55,14 +51,12 @@ public V2beta2PodsMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2beta2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource instance) { + public V2beta2PodsMetricSourceBuilder(V2beta2PodsMetricSource instance) { this(instance, false); } public V2beta2PodsMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2PodsMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withMetric(instance.getMetric()); @@ -71,10 +65,10 @@ public V2beta2PodsMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2PodsMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSource build() { + public V2beta2PodsMetricSource build() { V2beta2PodsMetricSource buildable = new V2beta2PodsMetricSource(); buildable.setMetric(fluent.getMetric()); buildable.setTarget(fluent.getTarget()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java index 2db7d00886..f5539ab338 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluent.java @@ -27,53 +27,48 @@ public interface V2beta2PodsMetricSourceFluent withNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2PodsMetricSourceFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - editMetric(); + public V2beta2PodsMetricSourceFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - editOrNewMetric(); + public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item); /** * This method has been deprecated, please use method buildTarget instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricTarget getTarget(); - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget(); + public V2beta2MetricTarget buildTarget(); - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target); + public A withTarget(V2beta2MetricTarget target); - public java.lang.Boolean hasTarget(); + public Boolean hasTarget(); public V2beta2PodsMetricSourceFluent.TargetNested withNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - editTarget(); + public V2beta2PodsMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item); public interface MetricNested extends Nested, @@ -84,8 +79,7 @@ public interface MetricNested } public interface TargetNested - extends io.kubernetes.client.fluent.Nested, - V2beta2MetricTargetFluent> { + extends Nested, V2beta2MetricTargetFluent> { public N and(); public N endTarget(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java index 41a74b1992..deeaa07b55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2PodsMetricSourceFluentImpl implements V2beta2PodsMetricSourceFluent { public V2beta2PodsMetricSourceFluentImpl() {} - public V2beta2PodsMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta2PodsMetricSource instance) { + public V2beta2PodsMetricSourceFluentImpl(V2beta2PodsMetricSource instance) { this.withMetric(instance.getMetric()); this.withTarget(instance.getTarget()); @@ -41,15 +40,18 @@ public V2beta2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric() { + public V2beta2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric) { + public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(metric); + this.metric = new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } @@ -62,26 +64,22 @@ public V2beta2PodsMetricSourceFluent.MetricNested withNewMetric() { return new V2beta2PodsMetricSourceFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2PodsMetricSourceFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item) { return new V2beta2PodsMetricSourceFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - editMetric() { + public V2beta2PodsMetricSourceFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - editOrNewMetric() { + public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2PodsMetricSourceFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -90,25 +88,28 @@ public V2beta2PodsMetricSourceFluent.MetricNested withNewMetric() { * * @return The buildable object. */ - @java.lang.Deprecated - public io.kubernetes.client.openapi.models.V2beta2MetricTarget getTarget() { + @Deprecated + public V2beta2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget() { + public V2beta2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target) { + public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { this.target = new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -116,27 +117,21 @@ public V2beta2PodsMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2PodsMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { - return new io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluentImpl - .TargetNestedImpl(item); + public V2beta2PodsMetricSourceFluent.TargetNested withNewTargetLike(V2beta2MetricTarget item) { + return new V2beta2PodsMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - editTarget() { + public V2beta2PodsMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2PodsMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -170,17 +165,16 @@ public String toString() { class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.MetricNested, - Nested { - MetricNestedImpl(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + implements V2beta2PodsMetricSourceFluent.MetricNested, Nested { + MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(this); + this.builder = new V2beta2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder builder; + V2beta2MetricIdentifierBuilder builder; public N and() { return (N) V2beta2PodsMetricSourceFluentImpl.this.withMetric(builder.build()); @@ -193,17 +187,16 @@ public N endMetric() { class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2PodsMetricSourceFluent.TargetNested, - io.kubernetes.client.fluent.Nested { + implements V2beta2PodsMetricSourceFluent.TargetNested, Nested { TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder(this); + this.builder = new V2beta2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder builder; + V2beta2MetricTargetBuilder builder; public N and() { return (N) V2beta2PodsMetricSourceFluentImpl.this.withTarget(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java index 22e9eb0286..7835b87591 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusBuilder.java @@ -16,9 +16,7 @@ public class V2beta2PodsMetricStatusBuilder extends V2beta2PodsMetricStatusFluentImpl - implements VisitableBuilder< - V2beta2PodsMetricStatus, - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusBuilder> { + implements VisitableBuilder { public V2beta2PodsMetricStatusBuilder() { this(false); } @@ -27,27 +25,24 @@ public V2beta2PodsMetricStatusBuilder(Boolean validationEnabled) { this(new V2beta2PodsMetricStatus(), validationEnabled); } - public V2beta2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent fluent) { + public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatusFluent fluent) { this(fluent, false); } public V2beta2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2PodsMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2PodsMetricStatus(), validationEnabled); } public V2beta2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus instance) { + V2beta2PodsMetricStatusFluent fluent, V2beta2PodsMetricStatus instance) { this(fluent, instance, false); } public V2beta2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2PodsMetricStatusFluent fluent, + V2beta2PodsMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -56,14 +51,12 @@ public V2beta2PodsMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2beta2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus instance) { + public V2beta2PodsMetricStatusBuilder(V2beta2PodsMetricStatus instance) { this(instance, false); } public V2beta2PodsMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2PodsMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -72,10 +65,10 @@ public V2beta2PodsMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2PodsMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus build() { + public V2beta2PodsMetricStatus build() { V2beta2PodsMetricStatus buildable = new V2beta2PodsMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setMetric(fluent.getMetric()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java index f028a6156e..9bb1a1328b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluent.java @@ -27,53 +27,49 @@ public interface V2beta2PodsMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - editCurrent(); + public V2beta2PodsMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item); /** * This method has been deprecated, please use method buildMetric instead. * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric(); - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric(); + public V2beta2MetricIdentifier buildMetric(); - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric); + public A withMetric(V2beta2MetricIdentifier metric); - public java.lang.Boolean hasMetric(); + public Boolean hasMetric(); public V2beta2PodsMetricStatusFluent.MetricNested withNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2PodsMetricStatusFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - editMetric(); + public V2beta2PodsMetricStatusFluent.MetricNested editMetric(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - editOrNewMetric(); + public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetric(); - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item); + public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item); public interface CurrentNested extends Nested, @@ -84,7 +80,7 @@ public interface CurrentNested } public interface MetricNested - extends io.kubernetes.client.fluent.Nested, + extends Nested, V2beta2MetricIdentifierFluent> { public N and(); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java index 2a5d38189f..36223a7b86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2PodsMetricStatusFluentImpl implements V2beta2PodsMetricStatusFluent { public V2beta2PodsMetricStatusFluentImpl() {} - public V2beta2PodsMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2PodsMetricStatus instance) { + public V2beta2PodsMetricStatusFluentImpl(V2beta2PodsMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withMetric(instance.getMetric()); @@ -41,16 +40,18 @@ public V2beta2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus buildCurrent() { + public V2beta2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus current) { + public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { - this.current = - new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(current); + this.current = new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -63,26 +64,22 @@ public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2PodsMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item) { return new V2beta2PodsMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - editCurrent() { + public V2beta2PodsMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2PodsMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } @@ -91,25 +88,28 @@ public V2beta2PodsMetricStatusFluent.CurrentNested withNewCurrent() { * * @return The buildable object. */ - @java.lang.Deprecated + @Deprecated public V2beta2MetricIdentifier getMetric() { return this.metric != null ? this.metric.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricIdentifier buildMetric() { + public V2beta2MetricIdentifier buildMetric() { return this.metric != null ? this.metric.build() : null; } - public A withMetric(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier metric) { + public A withMetric(V2beta2MetricIdentifier metric) { _visitables.get("metric").remove(this.metric); if (metric != null) { - this.metric = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(metric); + this.metric = new V2beta2MetricIdentifierBuilder(metric); _visitables.get("metric").add(this.metric); + } else { + this.metric = null; + _visitables.get("metric").remove(this.metric); } return (A) this; } - public java.lang.Boolean hasMetric() { + public Boolean hasMetric() { return this.metric != null; } @@ -117,27 +117,22 @@ public V2beta2PodsMetricStatusFluent.MetricNested withNewMetric() { return new V2beta2PodsMetricStatusFluentImpl.MetricNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - withNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { - return new io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluentImpl - .MetricNestedImpl(item); + public V2beta2PodsMetricStatusFluent.MetricNested withNewMetricLike( + V2beta2MetricIdentifier item) { + return new V2beta2PodsMetricStatusFluentImpl.MetricNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - editMetric() { + public V2beta2PodsMetricStatusFluent.MetricNested editMetric() { return withNewMetricLike(getMetric()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - editOrNewMetric() { + public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetric() { return withNewMetricLike( - getMetric() != null - ? getMetric() - : new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder().build()); + getMetric() != null ? getMetric() : new V2beta2MetricIdentifierBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested - editOrNewMetricLike(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + public V2beta2PodsMetricStatusFluent.MetricNested editOrNewMetricLike( + V2beta2MetricIdentifier item) { return withNewMetricLike(getMetric() != null ? getMetric() : item); } @@ -171,17 +166,16 @@ public String toString() { class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.CurrentNested, - Nested { + implements V2beta2PodsMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(this); + this.builder = new V2beta2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder builder; + V2beta2MetricValueStatusBuilder builder; public N and() { return (N) V2beta2PodsMetricStatusFluentImpl.this.withCurrent(builder.build()); @@ -194,17 +188,16 @@ public N endCurrent() { class MetricNestedImpl extends V2beta2MetricIdentifierFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2PodsMetricStatusFluent.MetricNested, - io.kubernetes.client.fluent.Nested { - MetricNestedImpl(io.kubernetes.client.openapi.models.V2beta2MetricIdentifier item) { + implements V2beta2PodsMetricStatusFluent.MetricNested, Nested { + MetricNestedImpl(V2beta2MetricIdentifier item) { this.builder = new V2beta2MetricIdentifierBuilder(this, item); } MetricNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder(this); + this.builder = new V2beta2MetricIdentifierBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricIdentifierBuilder builder; + V2beta2MetricIdentifierBuilder builder; public N and() { return (N) V2beta2PodsMetricStatusFluentImpl.this.withMetric(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java index 46c37d7462..e15c47e2bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceBuilder.java @@ -16,9 +16,7 @@ public class V2beta2ResourceMetricSourceBuilder extends V2beta2ResourceMetricSourceFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource, - V2beta2ResourceMetricSourceBuilder> { + implements VisitableBuilder { public V2beta2ResourceMetricSourceBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSourceFluent f } public V2beta2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ResourceMetricSourceFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ResourceMetricSource(), validationEnabled); } public V2beta2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource instance) { + V2beta2ResourceMetricSourceFluent fluent, V2beta2ResourceMetricSource instance) { this(fluent, instance, false); } public V2beta2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ResourceMetricSourceFluent fluent, + V2beta2ResourceMetricSource instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withName(instance.getName()); @@ -55,14 +51,12 @@ public V2beta2ResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - public V2beta2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource instance) { + public V2beta2ResourceMetricSourceBuilder(V2beta2ResourceMetricSource instance) { this(instance, false); } public V2beta2ResourceMetricSourceBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource instance, - java.lang.Boolean validationEnabled) { + V2beta2ResourceMetricSource instance, Boolean validationEnabled) { this.fluent = this; this.withName(instance.getName()); @@ -71,10 +65,10 @@ public V2beta2ResourceMetricSourceBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ResourceMetricSourceFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource build() { + public V2beta2ResourceMetricSource build() { V2beta2ResourceMetricSource buildable = new V2beta2ResourceMetricSource(); buildable.setName(fluent.getName()); buildable.setTarget(fluent.getTarget()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java index 13deb078e4..e866aecd19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluent.java @@ -20,7 +20,7 @@ public interface V2beta2ResourceMetricSourceFluent { public String getName(); - public A withName(java.lang.String name); + public A withName(String name); public Boolean hasName(); @@ -32,25 +32,23 @@ public interface V2beta2ResourceMetricSourceFluent withNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ResourceMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - editTarget(); + public V2beta2ResourceMetricSourceFluent.TargetNested editTarget(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - editOrNewTarget(); + public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTarget(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item); + public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item); public interface TargetNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java index ad2110b6f2..a3d5f268c9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSourceFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2ResourceMetricSourceFluentImpl implements V2beta2ResourceMetricSourceFluent { public V2beta2ResourceMetricSourceFluentImpl() {} - public V2beta2ResourceMetricSourceFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricSource instance) { + public V2beta2ResourceMetricSourceFluentImpl(V2beta2ResourceMetricSource instance) { this.withName(instance.getName()); this.withTarget(instance.getTarget()); @@ -31,11 +30,11 @@ public V2beta2ResourceMetricSourceFluentImpl( private String name; private V2beta2MetricTargetBuilder target; - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } @@ -50,24 +49,27 @@ public Boolean hasName() { * @return The buildable object. */ @Deprecated - public io.kubernetes.client.openapi.models.V2beta2MetricTarget getTarget() { + public V2beta2MetricTarget getTarget() { return this.target != null ? this.target.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricTarget buildTarget() { + public V2beta2MetricTarget buildTarget() { return this.target != null ? this.target.build() : null; } - public A withTarget(io.kubernetes.client.openapi.models.V2beta2MetricTarget target) { + public A withTarget(V2beta2MetricTarget target) { _visitables.get("target").remove(this.target); if (target != null) { this.target = new V2beta2MetricTargetBuilder(target); _visitables.get("target").add(this.target); + } else { + this.target = null; + _visitables.get("target").remove(this.target); } return (A) this; } - public java.lang.Boolean hasTarget() { + public Boolean hasTarget() { return this.target != null; } @@ -75,26 +77,22 @@ public V2beta2ResourceMetricSourceFluent.TargetNested withNewTarget() { return new V2beta2ResourceMetricSourceFluentImpl.TargetNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - withNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2ResourceMetricSourceFluent.TargetNested withNewTargetLike( + V2beta2MetricTarget item) { return new V2beta2ResourceMetricSourceFluentImpl.TargetNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - editTarget() { + public V2beta2ResourceMetricSourceFluent.TargetNested editTarget() { return withNewTargetLike(getTarget()); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - editOrNewTarget() { + public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTarget() { return withNewTargetLike( - getTarget() != null - ? getTarget() - : new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder().build()); + getTarget() != null ? getTarget() : new V2beta2MetricTargetBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested - editOrNewTargetLike(io.kubernetes.client.openapi.models.V2beta2MetricTarget item) { + public V2beta2ResourceMetricSourceFluent.TargetNested editOrNewTargetLike( + V2beta2MetricTarget item) { return withNewTargetLike(getTarget() != null ? getTarget() : item); } @@ -111,7 +109,7 @@ public int hashCode() { return java.util.Objects.hash(name, target, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (name != null) { @@ -128,18 +126,16 @@ public java.lang.String toString() { class TargetNestedImpl extends V2beta2MetricTargetFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ResourceMetricSourceFluent.TargetNested< - N>, - Nested { + implements V2beta2ResourceMetricSourceFluent.TargetNested, Nested { TargetNestedImpl(V2beta2MetricTarget item) { this.builder = new V2beta2MetricTargetBuilder(this, item); } TargetNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder(this); + this.builder = new V2beta2MetricTargetBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricTargetBuilder builder; + V2beta2MetricTargetBuilder builder; public N and() { return (N) V2beta2ResourceMetricSourceFluentImpl.this.withTarget(builder.build()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java index 43035b2050..d09d15b20e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusBuilder.java @@ -16,9 +16,7 @@ public class V2beta2ResourceMetricStatusBuilder extends V2beta2ResourceMetricStatusFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus, - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusBuilder> { + implements VisitableBuilder { public V2beta2ResourceMetricStatusBuilder() { this(false); } @@ -32,21 +30,19 @@ public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatusFluent f } public V2beta2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent fluent, - java.lang.Boolean validationEnabled) { + V2beta2ResourceMetricStatusFluent fluent, Boolean validationEnabled) { this(fluent, new V2beta2ResourceMetricStatus(), validationEnabled); } public V2beta2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus instance) { + V2beta2ResourceMetricStatusFluent fluent, V2beta2ResourceMetricStatus instance) { this(fluent, instance, false); } public V2beta2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent fluent, - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ResourceMetricStatusFluent fluent, + V2beta2ResourceMetricStatus instance, + Boolean validationEnabled) { this.fluent = fluent; fluent.withCurrent(instance.getCurrent()); @@ -55,14 +51,12 @@ public V2beta2ResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - public V2beta2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus instance) { + public V2beta2ResourceMetricStatusBuilder(V2beta2ResourceMetricStatus instance) { this(instance, false); } public V2beta2ResourceMetricStatusBuilder( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus instance, - java.lang.Boolean validationEnabled) { + V2beta2ResourceMetricStatus instance, Boolean validationEnabled) { this.fluent = this; this.withCurrent(instance.getCurrent()); @@ -71,10 +65,10 @@ public V2beta2ResourceMetricStatusBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent fluent; - java.lang.Boolean validationEnabled; + V2beta2ResourceMetricStatusFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus build() { + public V2beta2ResourceMetricStatus build() { V2beta2ResourceMetricStatus buildable = new V2beta2ResourceMetricStatus(); buildable.setCurrent(fluent.getCurrent()); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java index 327ddca5aa..f0c038a4e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluent.java @@ -27,31 +27,29 @@ public interface V2beta2ResourceMetricStatusFluent withNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - editCurrent(); + public V2beta2ResourceMetricStatusFluent.CurrentNested editCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrent(); + public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent(); - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item); + public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item); public String getName(); - public A withName(java.lang.String name); + public A withName(String name); - public java.lang.Boolean hasName(); + public Boolean hasName(); public interface CurrentNested extends Nested, diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java index 48bed981d3..25e7110b0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatusFluentImpl.java @@ -21,8 +21,7 @@ public class V2beta2ResourceMetricStatusFluentImpl implements V2beta2ResourceMetricStatusFluent { public V2beta2ResourceMetricStatusFluentImpl() {} - public V2beta2ResourceMetricStatusFluentImpl( - io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatus instance) { + public V2beta2ResourceMetricStatusFluentImpl(V2beta2ResourceMetricStatus instance) { this.withCurrent(instance.getCurrent()); this.withName(instance.getName()); @@ -41,16 +40,18 @@ public V2beta2MetricValueStatus getCurrent() { return this.current != null ? this.current.build() : null; } - public io.kubernetes.client.openapi.models.V2beta2MetricValueStatus buildCurrent() { + public V2beta2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus current) { + public A withCurrent(V2beta2MetricValueStatus current) { _visitables.get("current").remove(this.current); if (current != null) { - this.current = - new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(current); + this.current = new V2beta2MetricValueStatusBuilder(current); _visitables.get("current").add(this.current); + } else { + this.current = null; + _visitables.get("current").remove(this.current); } return (A) this; } @@ -63,39 +64,35 @@ public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrent() { return new V2beta2ResourceMetricStatusFluentImpl.CurrentNestedImpl(); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - withNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ResourceMetricStatusFluent.CurrentNested withNewCurrentLike( + V2beta2MetricValueStatus item) { return new V2beta2ResourceMetricStatusFluentImpl.CurrentNestedImpl(item); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - editCurrent() { + public V2beta2ResourceMetricStatusFluent.CurrentNested editCurrent() { return withNewCurrentLike(getCurrent()); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrent() { + public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrent() { return withNewCurrentLike( - getCurrent() != null - ? getCurrent() - : new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder().build()); + getCurrent() != null ? getCurrent() : new V2beta2MetricValueStatusBuilder().build()); } - public io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent.CurrentNested - editOrNewCurrentLike(io.kubernetes.client.openapi.models.V2beta2MetricValueStatus item) { + public V2beta2ResourceMetricStatusFluent.CurrentNested editOrNewCurrentLike( + V2beta2MetricValueStatus item) { return withNewCurrentLike(getCurrent() != null ? getCurrent() : item); } - public java.lang.String getName() { + public String getName() { return this.name; } - public A withName(java.lang.String name) { + public A withName(String name) { this.name = name; return (A) this; } - public java.lang.Boolean hasName() { + public Boolean hasName() { return this.name != null; } @@ -112,7 +109,7 @@ public int hashCode() { return java.util.Objects.hash(current, name, super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (current != null) { @@ -129,19 +126,16 @@ public java.lang.String toString() { class CurrentNestedImpl extends V2beta2MetricValueStatusFluentImpl> - implements io.kubernetes.client.openapi.models.V2beta2ResourceMetricStatusFluent - .CurrentNested< - N>, - Nested { + implements V2beta2ResourceMetricStatusFluent.CurrentNested, Nested { CurrentNestedImpl(V2beta2MetricValueStatus item) { this.builder = new V2beta2MetricValueStatusBuilder(this, item); } CurrentNestedImpl() { - this.builder = new io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder(this); + this.builder = new V2beta2MetricValueStatusBuilder(this); } - io.kubernetes.client.openapi.models.V2beta2MetricValueStatusBuilder builder; + V2beta2MetricValueStatusBuilder builder; public N and() { return (N) V2beta2ResourceMetricStatusFluentImpl.this.withCurrent(builder.build()); 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 18c5c2a260..bf93a3ce1a 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 @@ -15,9 +15,7 @@ import io.kubernetes.client.fluent.VisitableBuilder; public class VersionInfoBuilder extends VersionInfoFluentImpl - implements VisitableBuilder< - io.kubernetes.client.openapi.models.VersionInfo, - io.kubernetes.client.openapi.models.VersionInfoBuilder> { + implements VisitableBuilder { public VersionInfoBuilder() { this(false); } @@ -30,22 +28,16 @@ public VersionInfoBuilder(VersionInfoFluent fluent) { this(fluent, false); } - public VersionInfoBuilder( - io.kubernetes.client.openapi.models.VersionInfoFluent fluent, - java.lang.Boolean validationEnabled) { + public VersionInfoBuilder(VersionInfoFluent fluent, Boolean validationEnabled) { this(fluent, new VersionInfo(), validationEnabled); } - public VersionInfoBuilder( - io.kubernetes.client.openapi.models.VersionInfoFluent fluent, - io.kubernetes.client.openapi.models.VersionInfo instance) { + public VersionInfoBuilder(VersionInfoFluent fluent, VersionInfo instance) { this(fluent, instance, false); } public VersionInfoBuilder( - io.kubernetes.client.openapi.models.VersionInfoFluent fluent, - io.kubernetes.client.openapi.models.VersionInfo instance, - java.lang.Boolean validationEnabled) { + VersionInfoFluent fluent, VersionInfo instance, Boolean validationEnabled) { this.fluent = fluent; fluent.withBuildDate(instance.getBuildDate()); @@ -68,13 +60,11 @@ public VersionInfoBuilder( this.validationEnabled = validationEnabled; } - public VersionInfoBuilder(io.kubernetes.client.openapi.models.VersionInfo instance) { + public VersionInfoBuilder(VersionInfo instance) { this(instance, false); } - public VersionInfoBuilder( - io.kubernetes.client.openapi.models.VersionInfo instance, - java.lang.Boolean validationEnabled) { + public VersionInfoBuilder(VersionInfo instance, Boolean validationEnabled) { this.fluent = this; this.withBuildDate(instance.getBuildDate()); @@ -97,10 +87,10 @@ public VersionInfoBuilder( this.validationEnabled = validationEnabled; } - io.kubernetes.client.openapi.models.VersionInfoFluent fluent; - java.lang.Boolean validationEnabled; + VersionInfoFluent fluent; + Boolean validationEnabled; - public io.kubernetes.client.openapi.models.VersionInfo build() { + public VersionInfo build() { VersionInfo buildable = new VersionInfo(); buildable.setBuildDate(fluent.getBuildDate()); buildable.setCompiler(fluent.getCompiler()); 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 983530fca1..909dd51c38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java @@ -18,55 +18,55 @@ public interface VersionInfoFluent> extends Fluent { public String getBuildDate(); - public A withBuildDate(java.lang.String buildDate); + public A withBuildDate(String buildDate); public Boolean hasBuildDate(); - public java.lang.String getCompiler(); + public String getCompiler(); - public A withCompiler(java.lang.String compiler); + public A withCompiler(String compiler); - public java.lang.Boolean hasCompiler(); + public Boolean hasCompiler(); - public java.lang.String getGitCommit(); + public String getGitCommit(); - public A withGitCommit(java.lang.String gitCommit); + public A withGitCommit(String gitCommit); - public java.lang.Boolean hasGitCommit(); + public Boolean hasGitCommit(); - public java.lang.String getGitTreeState(); + public String getGitTreeState(); - public A withGitTreeState(java.lang.String gitTreeState); + public A withGitTreeState(String gitTreeState); - public java.lang.Boolean hasGitTreeState(); + public Boolean hasGitTreeState(); - public java.lang.String getGitVersion(); + public String getGitVersion(); - public A withGitVersion(java.lang.String gitVersion); + public A withGitVersion(String gitVersion); - public java.lang.Boolean hasGitVersion(); + public Boolean hasGitVersion(); - public java.lang.String getGoVersion(); + public String getGoVersion(); - public A withGoVersion(java.lang.String goVersion); + public A withGoVersion(String goVersion); - public java.lang.Boolean hasGoVersion(); + public Boolean hasGoVersion(); - public java.lang.String getMajor(); + public String getMajor(); - public A withMajor(java.lang.String major); + public A withMajor(String major); - public java.lang.Boolean hasMajor(); + public Boolean hasMajor(); - public java.lang.String getMinor(); + public String getMinor(); - public A withMinor(java.lang.String minor); + public A withMinor(String minor); - public java.lang.Boolean hasMinor(); + public Boolean hasMinor(); - public java.lang.String getPlatform(); + public String getPlatform(); - public A withPlatform(java.lang.String platform); + public A withPlatform(String platform); - public java.lang.Boolean hasPlatform(); + public Boolean hasPlatform(); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java index 8d80a0327f..d7e2d57b73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluentImpl.java @@ -20,7 +20,7 @@ public class VersionInfoFluentImpl> extends BaseF implements VersionInfoFluent { public VersionInfoFluentImpl() {} - public VersionInfoFluentImpl(io.kubernetes.client.openapi.models.VersionInfo instance) { + public VersionInfoFluentImpl(VersionInfo instance) { this.withBuildDate(instance.getBuildDate()); this.withCompiler(instance.getCompiler()); @@ -41,20 +41,20 @@ public VersionInfoFluentImpl(io.kubernetes.client.openapi.models.VersionInfo ins } private String buildDate; - private java.lang.String compiler; - private java.lang.String gitCommit; - private java.lang.String gitTreeState; - private java.lang.String gitVersion; - private java.lang.String goVersion; - private java.lang.String major; - private java.lang.String minor; - private java.lang.String platform; - - public java.lang.String getBuildDate() { + private String compiler; + private String gitCommit; + private String gitTreeState; + private String gitVersion; + private String goVersion; + private String major; + private String minor; + private String platform; + + public String getBuildDate() { return this.buildDate; } - public A withBuildDate(java.lang.String buildDate) { + public A withBuildDate(String buildDate) { this.buildDate = buildDate; return (A) this; } @@ -63,107 +63,107 @@ public Boolean hasBuildDate() { return this.buildDate != null; } - public java.lang.String getCompiler() { + public String getCompiler() { return this.compiler; } - public A withCompiler(java.lang.String compiler) { + public A withCompiler(String compiler) { this.compiler = compiler; return (A) this; } - public java.lang.Boolean hasCompiler() { + public Boolean hasCompiler() { return this.compiler != null; } - public java.lang.String getGitCommit() { + public String getGitCommit() { return this.gitCommit; } - public A withGitCommit(java.lang.String gitCommit) { + public A withGitCommit(String gitCommit) { this.gitCommit = gitCommit; return (A) this; } - public java.lang.Boolean hasGitCommit() { + public Boolean hasGitCommit() { return this.gitCommit != null; } - public java.lang.String getGitTreeState() { + public String getGitTreeState() { return this.gitTreeState; } - public A withGitTreeState(java.lang.String gitTreeState) { + public A withGitTreeState(String gitTreeState) { this.gitTreeState = gitTreeState; return (A) this; } - public java.lang.Boolean hasGitTreeState() { + public Boolean hasGitTreeState() { return this.gitTreeState != null; } - public java.lang.String getGitVersion() { + public String getGitVersion() { return this.gitVersion; } - public A withGitVersion(java.lang.String gitVersion) { + public A withGitVersion(String gitVersion) { this.gitVersion = gitVersion; return (A) this; } - public java.lang.Boolean hasGitVersion() { + public Boolean hasGitVersion() { return this.gitVersion != null; } - public java.lang.String getGoVersion() { + public String getGoVersion() { return this.goVersion; } - public A withGoVersion(java.lang.String goVersion) { + public A withGoVersion(String goVersion) { this.goVersion = goVersion; return (A) this; } - public java.lang.Boolean hasGoVersion() { + public Boolean hasGoVersion() { return this.goVersion != null; } - public java.lang.String getMajor() { + public String getMajor() { return this.major; } - public A withMajor(java.lang.String major) { + public A withMajor(String major) { this.major = major; return (A) this; } - public java.lang.Boolean hasMajor() { + public Boolean hasMajor() { return this.major != null; } - public java.lang.String getMinor() { + public String getMinor() { return this.minor; } - public A withMinor(java.lang.String minor) { + public A withMinor(String minor) { this.minor = minor; return (A) this; } - public java.lang.Boolean hasMinor() { + public Boolean hasMinor() { return this.minor != null; } - public java.lang.String getPlatform() { + public String getPlatform() { return this.platform; } - public A withPlatform(java.lang.String platform) { + public A withPlatform(String platform) { this.platform = platform; return (A) this; } - public java.lang.Boolean hasPlatform() { + public Boolean hasPlatform() { return this.platform != null; } @@ -202,7 +202,7 @@ public int hashCode() { super.hashCode()); } - public java.lang.String toString() { + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (buildDate != null) { diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 index 24d8bd9511..841c7ba04f 100644 --- a/kubernetes/.openapi-generator/swagger.json.sha256 +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -1 +1 @@ -834bfb2f99eb93d85e29fcc41f0116331b730814b9658e31dde97af5138f7366 \ No newline at end of file +7a4590b0c2c613044c378952057099c7100d90de265390d79d32110aef635b73 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 27ec9d110c..da3e0d0e81 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.24 + version: release-1.25 servers: - url: / security: @@ -29579,7 +29579,7 @@ paths: /apis/autoscaling/v2/watch/horizontalpodautoscalers: {} /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/autoscaling/v2beta1/: + /apis/autoscaling/v2beta2/: get: description: get available resources operationId: getAPIResources @@ -29600,9 +29600,9 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-accepts: application/json - /apis/autoscaling/v2beta1/horizontalpodautoscalers: + /apis/autoscaling/v2beta2/horizontalpodautoscalers: get: description: list or watch objects of kind HorizontalPodAutoscaler operationId: listHorizontalPodAutoscalerForAllNamespaces @@ -29683,32 +29683,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-accepts: application/json - /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers: + /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers: delete: description: delete collection of HorizontalPodAutoscaler operationId: deleteCollectionNamespacedHorizontalPodAutoscaler @@ -29833,12 +29833,12 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json @@ -29928,30 +29928,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-accepts: application/json post: description: create a HorizontalPodAutoscaler @@ -30007,59 +30007,59 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}: + /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}: delete: description: delete a HorizontalPodAutoscaler operationId: deleteNamespacedHorizontalPodAutoscaler @@ -30152,12 +30152,12 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json @@ -30187,24 +30187,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-accepts: application/json patch: description: partially update the specified HorizontalPodAutoscaler @@ -30291,36 +30291,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json @@ -30384,47 +30384,47 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: + /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: get: description: read status of the specified HorizontalPodAutoscaler operationId: readNamespacedHorizontalPodAutoscalerStatus @@ -30451,24 +30451,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-accepts: application/json patch: description: partially update status of the specified HorizontalPodAutoscaler @@ -30555,36 +30555,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json @@ -30648,50 +30648,73 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/yaml: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta1 + - autoscaling_v2beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: autoscaling kind: HorizontalPodAutoscaler - version: v2beta1 + version: v2beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/autoscaling/v2beta1/watch/horizontalpodautoscalers: {} - /apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers: {} - /apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/autoscaling/v2beta2/: + /apis/autoscaling/v2beta2/watch/horizontalpodautoscalers: {} + /apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} + /apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} + /apis/batch/: + 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: + - batch + x-accepts: application/json + /apis/batch/v1/: get: description: get available resources operationId: getAPIResources @@ -30712,12 +30735,12 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-accepts: application/json - /apis/autoscaling/v2beta2/horizontalpodautoscalers: + /apis/batch/v1/cronjobs: get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listHorizontalPodAutoscalerForAllNamespaces + description: list or watch objects of kind CronJob + operationId: listCronJobForAllNamespaces parameters: - description: allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks @@ -30795,35 +30818,141 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-accepts: application/json - /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers: + /apis/batch/v1/jobs: + get: + description: list or watch objects of kind Job + operationId: listJobForAllNamespaces + parameters: + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they 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. + 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: 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.JobList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.JobList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.JobList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.JobList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.JobList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - batch_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: batch + kind: Job + version: v1 + x-accepts: application/json + /apis/batch/v1/namespaces/{namespace}/cronjobs: delete: - description: delete collection of HorizontalPodAutoscaler - operationId: deleteCollectionNamespacedHorizontalPodAutoscaler + description: delete collection of CronJob + operationId: deleteCollectionNamespacedCronJob parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -30945,18 +31074,18 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listNamespacedHorizontalPodAutoscaler + description: list or watch objects of kind CronJob + operationId: listNamespacedCronJob parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -31040,34 +31169,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerList' + $ref: '#/components/schemas/v1.CronJobList' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-accepts: application/json post: - description: create a HorizontalPodAutoscaler - operationId: createNamespacedHorizontalPodAutoscaler + description: create a CronJob + operationId: createNamespacedCronJob parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -31119,64 +31248,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}: + /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}: delete: - description: delete a HorizontalPodAutoscaler - operationId: deleteNamespacedHorizontalPodAutoscaler + description: delete a CronJob + operationId: deleteNamespacedCronJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31264,20 +31393,20 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscaler + description: read the specified CronJob + operationId: readNamespacedCronJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31299,30 +31428,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-accepts: application/json patch: - description: partially update the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscaler + description: partially update the specified CronJob + operationId: patchNamespacedCronJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31403,44 +31532,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscaler + description: replace the specified CronJob + operationId: replaceNamespacedCronJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31496,52 +31625,52 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: + /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status: get: - description: read status of the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscalerStatus + description: read status of the specified CronJob + operationId: readNamespacedCronJobStatus parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31563,30 +31692,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-accepts: application/json patch: - description: partially update status of the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscalerStatus + description: partially update status of the specified CronJob + operationId: patchNamespacedCronJobStatus parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31667,44 +31796,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscalerStatus + description: replace status of the specified CronJob + operationId: replaceNamespacedCronJobStatus parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CronJob in: path name: name required: true @@ -31760,110 +31889,62 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/yaml: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' + $ref: '#/components/schemas/v1.CronJob' description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2beta2 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 + group: batch + kind: CronJob + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/autoscaling/v2beta2/watch/horizontalpodautoscalers: {} - /apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} - /apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/batch/: - 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: - - batch - x-accepts: application/json - /apis/batch/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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-accepts: application/json - /apis/batch/v1/cronjobs: - get: - description: list or watch objects of kind CronJob - operationId: listCronJobForAllNamespaces + /apis/batch/v1/namespaces/{namespace}/jobs: + delete: + description: delete collection of Job + operationId: deleteCollectionNamespacedJob parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, 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. 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". @@ -31872,12 +31953,29 @@ 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: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -31892,253 +31990,23 @@ paths: name: limit schema: type: integer - - description: If 'true', then the output is pretty printed. + - 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: 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.CronJobList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CronJobList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CronJobList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.CronJobList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CronJobList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 - x-accepts: application/json - /apis/batch/v1/jobs: - get: - description: list or watch objects of kind Job - operationId: listJobForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they 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. - 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: 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.JobList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.JobList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.JobList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.JobList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.JobList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 - x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/cronjobs: - delete: - description: delete collection of CronJob - operationId: deleteCollectionNamespacedCronJob - 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. - 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: 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: |- @@ -32190,14 +32058,14 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind CronJob - operationId: listNamespacedCronJob + description: list or watch objects of kind Job + operationId: listNamespacedJob parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -32281,19 +32149,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.JobList' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.JobList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.JobList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.JobList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: '#/components/schemas/v1.JobList' description: OK "401": content: {} @@ -32303,12 +32171,12 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-accepts: application/json post: - description: create a CronJob - operationId: createNamespacedCronJob + description: create a Job + operationId: createNamespacedJob parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -32360,44 +32228,44 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: Accepted "401": content: {} @@ -32407,17 +32275,17 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}: + /apis/batch/v1/namespaces/{namespace}/jobs/{name}: delete: - description: delete a CronJob - operationId: deleteNamespacedCronJob + description: delete a Job + operationId: deleteNamespacedJob parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -32509,16 +32377,16 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified CronJob - operationId: readNamespacedCronJob + description: read the specified Job + operationId: readNamespacedJob parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -32540,13 +32408,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "401": content: {} @@ -32556,14 +32424,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-accepts: application/json patch: - description: partially update the specified CronJob - operationId: patchNamespacedCronJob + description: partially update the specified Job + operationId: patchNamespacedJob parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -32644,25 +32512,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: Created "401": content: {} @@ -32672,16 +32540,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified CronJob - operationId: replaceNamespacedCronJob + description: replace the specified Job + operationId: replaceNamespacedJob parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -32737,32 +32605,32 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: Created "401": content: {} @@ -32772,17 +32640,17 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status: + /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status: get: - description: read status of the specified CronJob - operationId: readNamespacedCronJobStatus + description: read status of the specified Job + operationId: readNamespacedJobStatus parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -32804,13 +32672,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "401": content: {} @@ -32820,14 +32688,14 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-accepts: application/json patch: - description: partially update status of the specified CronJob - operationId: patchNamespacedCronJobStatus + description: partially update status of the specified Job + operationId: patchNamespacedJobStatus parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -32908,25 +32776,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: Created "401": content: {} @@ -32936,16 +32804,16 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified CronJob - operationId: replaceNamespacedCronJobStatus + description: replace status of the specified Job + operationId: replaceNamespacedJobStatus parameters: - - description: name of the CronJob + - description: name of the Job in: path name: name required: true @@ -33001,32 +32869,32 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: '#/components/schemas/v1.Job' description: Created "401": content: {} @@ -33036,22 +32904,68 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: batch - kind: CronJob + kind: Job version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/jobs: + /apis/batch/v1/watch/cronjobs: {} + /apis/batch/v1/watch/jobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/cronjobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}: {} + /apis/batch/v1/watch/namespaces/{namespace}/jobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}: {} + /apis/certificates.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: + - certificates + x-accepts: application/json + /apis/certificates.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' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-accepts: application/json + /apis/certificates.k8s.io/v1/certificatesigningrequests: delete: - description: delete collection of Job - operationId: deleteCollectionNamespacedJob + description: delete collection of CertificateSigningRequest + operationId: deleteCollectionCertificateSigningRequest 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. in: query name: pretty @@ -33166,25 +33080,19 @@ paths: content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind Job - operationId: listNamespacedJob + description: list or watch objects of kind CertificateSigningRequest + operationId: listCertificateSigningRequest 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. in: query name: pretty @@ -33261,41 +33169,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: '#/components/schemas/v1.CertificateSigningRequestList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-accepts: application/json post: - description: create a Job - operationId: createNamespacedJob + description: create a CertificateSigningRequest + operationId: createCertificateSigningRequest 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. in: query name: pretty @@ -33340,75 +33242,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/jobs/{name}: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}: delete: - description: delete a Job - operationId: deleteNamespacedJob + description: delete a CertificateSigningRequest + operationId: deleteCertificateSigningRequest parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -33485,31 +33381,25 @@ paths: content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified Job - operationId: readNamespacedJob + description: read the specified CertificateSigningRequest + operationId: readCertificateSigningRequest parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -33520,41 +33410,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-accepts: application/json patch: - description: partially update the specified Job - operationId: patchNamespacedJob + description: partially update the specified CertificateSigningRequest + operationId: patchCertificateSigningRequest parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -33624,55 +33508,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified Job - operationId: replaceNamespacedJob + description: replace the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequest parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -33717,63 +33595,57 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval: get: - description: read status of the specified Job - operationId: readNamespacedJobStatus + description: read approval of the specified CertificateSigningRequest + operationId: readCertificateSigningRequestApproval parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -33784,41 +33656,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-accepts: application/json patch: - description: partially update status of the specified Job - operationId: patchNamespacedJobStatus + description: partially update approval of the specified CertificateSigningRequest + operationId: patchCertificateSigningRequestApproval parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -33888,52 +33754,292 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified Job - operationId: replaceNamespacedJobStatus + description: replace approval of the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequestApproval parameters: - - description: name of the Job + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: If 'true', then the output is pretty printed. + 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, or 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: + '*/*': + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 + x-codegen-request-body-name: body + x-contentType: '*/*' + x-accepts: application/json + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status: + get: + description: read status of the specified CertificateSigningRequest + operationId: readCertificateSigningRequestStatus + parameters: + - description: name of the CertificateSigningRequest in: path - name: namespace + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified CertificateSigningRequest + operationId: patchCertificateSigningRequestStatus + parameters: + - description: name of the CertificateSigningRequest + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. + 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, or 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-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/strategic-merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/apply-patch+yaml: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/yaml: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.CertificateSigningRequest' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json-patch+json + x-accepts: application/json + put: + description: replace status of the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequestStatus + parameters: + - description: name of the CertificateSigningRequest + in: path + name: name required: true schema: type: string @@ -33981,53 +34087,72 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v1.CertificateSigningRequest' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1/watch/cronjobs: {} - /apis/batch/v1/watch/jobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/cronjobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}: {} - /apis/batch/v1/watch/namespaces/{namespace}/jobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}: {} - /apis/batch/v1beta1/: + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{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 @@ -34048,12 +34173,12 @@ paths: content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-accepts: application/json - /apis/batch/v1beta1/cronjobs: + /apis/coordination.k8s.io/v1/leases: get: - description: list or watch objects of kind CronJob - operationId: listCronJobForAllNamespaces + 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 @@ -34131,35 +34256,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: application/json - /apis/batch/v1beta1/namespaces/{namespace}/cronjobs: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: delete: - description: delete collection of CronJob - operationId: deleteCollectionNamespacedCronJob + description: delete collection of Lease + operationId: deleteCollectionNamespacedLease parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -34281,18 +34406,18 @@ paths: content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind CronJob - operationId: listNamespacedCronJob + 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 @@ -34376,34 +34501,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.CronJobList' + $ref: '#/components/schemas/v1.LeaseList' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: application/json post: - description: create a CronJob - operationId: createNamespacedCronJob + description: create a Lease + operationId: createNamespacedLease parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -34455,64 +34580,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: delete: - description: delete a CronJob - operationId: deleteNamespacedCronJob + description: delete a Lease + operationId: deleteNamespacedLease parameters: - - description: name of the CronJob + - description: name of the Lease in: path name: name required: true @@ -34600,20 +34725,20 @@ paths: content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified CronJob - operationId: readNamespacedCronJob + description: read the specified Lease + operationId: readNamespacedLease parameters: - - description: name of the CronJob + - description: name of the Lease in: path name: name required: true @@ -34635,30 +34760,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: application/json patch: - description: partially update the specified CronJob - operationId: patchNamespacedCronJob + description: partially update the specified Lease + operationId: patchNamespacedLease parameters: - - description: name of the CronJob + - description: name of the Lease in: path name: name required: true @@ -34739,44 +34864,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified CronJob - operationId: replaceNamespacedCronJob + description: replace the specified Lease + operationId: replaceNamespacedLease parameters: - - description: name of the CronJob + - description: name of the Lease in: path name: name required: true @@ -34832,364 +34957,212 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Lease' description: Created "401": content: {} description: Unauthorized tags: - - batch_v1beta1 + - coordination_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status: + /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/discovery.k8s.io/: get: - description: read status of the specified CronJob - operationId: readNamespacedCronJobStatus - parameters: - - description: name of the CronJob - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - batch_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + - discovery x-accepts: application/json - patch: - description: partially update status of the specified CronJob - operationId: patchNamespacedCronJobStatus - parameters: - - description: name of the CronJob - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true + /apis/discovery.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.APIResourceList' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - description: Created "401": content: {} description: Unauthorized tags: - - batch_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json + - discovery_v1 x-accepts: application/json - put: - description: replace status of the specified CronJob - operationId: replaceNamespacedCronJobStatus + /apis/discovery.k8s.io/v1/endpointslices: + get: + description: list or watch objects of kind EndpointSlice + operationId: listEndpointSliceForAllNamespaces parameters: - - description: name of the CronJob - in: path - name: name - required: true + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + 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. in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: |- + resourceVersion sets a constraint on what resource 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. in: query - name: fieldValidation + name: timeoutSeconds schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CronJob' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - batch_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/batch/v1beta1/watch/cronjobs: {} - /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs: {} - /apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}: {} - /apis/certificates.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates - x-accepts: application/json - /apis/certificates.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.EndpointSliceList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: discovery.k8s.io + kind: EndpointSlice + version: v1 x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: delete: - description: delete collection of CertificateSigningRequest - operationId: deleteCollectionCertificateSigningRequest + description: delete collection of EndpointSlice + operationId: deleteCollectionNamespacedEndpointSlice parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35304,19 +35277,25 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind CertificateSigningRequest - operationId: listCertificateSigningRequest + description: list or watch objects of kind EndpointSlice + operationId: listNamespacedEndpointSlice parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35393,35 +35372,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.EndpointSliceList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: '#/components/schemas/v1.EndpointSliceList' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: application/json post: - description: create a CertificateSigningRequest - operationId: createCertificateSigningRequest + description: create an EndpointSlice + operationId: createNamespacedEndpointSlice parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35466,69 +35451,75 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: delete: - description: delete a CertificateSigningRequest - operationId: deleteCertificateSigningRequest + description: delete an EndpointSlice + operationId: deleteNamespacedEndpointSlice parameters: - - description: name of the CertificateSigningRequest + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35605,25 +35596,31 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified CertificateSigningRequest - operationId: readCertificateSigningRequest + description: read the specified EndpointSlice + operationId: readNamespacedEndpointSlice parameters: - - description: name of the CertificateSigningRequest + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35634,35 +35631,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: application/json patch: - description: partially update the specified CertificateSigningRequest - operationId: patchCertificateSigningRequest + description: partially update the specified EndpointSlice + operationId: patchNamespacedEndpointSlice parameters: - - description: name of the CertificateSigningRequest + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35732,49 +35735,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequest + description: replace the specified EndpointSlice + operationId: replaceNamespacedEndpointSlice parameters: - - description: name of the CertificateSigningRequest + - description: name of the EndpointSlice in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -35819,205 +35828,209 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.EndpointSlice' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - discovery_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval: + /apis/discovery.k8s.io/v1/watch/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} + /apis/events.k8s.io/: get: - description: read approval of the specified CertificateSigningRequest - operationId: readCertificateSigningRequestApproval - parameters: - - description: name of the CertificateSigningRequest - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + - events x-accepts: application/json - patch: - description: partially update approval of the specified CertificateSigningRequest - operationId: patchCertificateSigningRequestApproval + /apis/events.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' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - events_v1 + x-accepts: application/json + /apis/events.k8s.io/v1/events: + get: + description: list or watch objects of kind Event + operationId: listEventForAllNamespaces parameters: - - description: name of the CertificateSigningRequest - in: path - name: name - required: true + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer - description: If 'true', then the output is pretty printed. in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: |- + resourceVersion sets a constraint on what resource 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. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. in: query - name: fieldValidation + name: timeoutSeconds schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. in: query - name: force + name: watch schema: type: boolean - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/yaml: + $ref: '#/components/schemas/events.v1.EventList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/events.v1.EventList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - description: Created + $ref: '#/components/schemas/events.v1.EventList' + description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: patch + - events_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: events.k8s.io + kind: Event version: v1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json x-accepts: application/json - put: - description: replace approval of the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequestApproval + /apis/events.k8s.io/v1/namespaces/{namespace}/events: + delete: + description: delete collection of Event + operationId: deleteCollectionNamespacedEvent parameters: - - description: name of the CertificateSigningRequest + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string @@ -36026,6 +36039,14 @@ paths: name: pretty schema: type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string - description: 'When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry @@ -36034,85 +36055,115 @@ paths: name: dryRun schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: fieldManager + name: fieldSelector schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or if any - duplicate fields are present. The error returned from the server will contain - all unknown and duplicate fields encountered.' + - description: The duration in seconds before the object should be deleted. + Value must be non-negative integer. The value zero indicates delete immediately. + If this value is nil, the default grace period for the specified type will + be used. Defaults to a per object value if not specified. zero means delete + immediately. in: query - name: fieldValidation + name: gracePeriodSeconds + schema: + type: integer + - description: 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: 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: '*/*': schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - required: true + $ref: '#/components/schemas/v1.DeleteOptions' + required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Status' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' - description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: put + - events_v1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status: get: - description: read status of the specified CertificateSigningRequest - operationId: readCertificateSigningRequestStatus + description: list or watch objects of kind Event + operationId: listNamespacedEvent parameters: - - description: name of the CertificateSigningRequest + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string @@ -36121,37 +36172,109 @@ paths: name: pretty schema: type: string + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: 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.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.EventList' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.EventList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: get + - events_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: events.k8s.io + kind: Event version: v1 x-accepts: application/json - patch: - description: partially update status of the specified CertificateSigningRequest - operationId: patchCertificateSigningRequestStatus + post: + description: create an Event + operationId: createNamespacedEvent parameters: - - description: name of the CertificateSigningRequest + - description: object name and auth scope, such as for teams and projects in: path - name: name + name: namespace required: true schema: type: string @@ -36171,8 +36294,6 @@ 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: @@ -36197,76 +36318,225 @@ 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: + '*/*': schema: - $ref: '#/components/schemas/v1.Patch' + $ref: '#/components/schemas/events.v1.Event' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/events.v1.Event' + application/yaml: + schema: + $ref: '#/components/schemas/events.v1.Event' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/events.v1.Event' + description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: patch + - events_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body - x-contentType: application/json-patch+json + x-contentType: '*/*' x-accepts: application/json - put: - description: replace status of the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequestStatus + /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + delete: + description: delete an Event + operationId: deleteNamespacedEvent parameters: - - description: name of the CertificateSigningRequest + - 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. + 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: 'Deprecated: please use the PropagationPolicy, this field will + be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, + the "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: + '*/*': + 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' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - events_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: events.k8s.io + kind: Event + version: v1 + x-codegen-request-body-name: body + x-contentType: '*/*' + x-accepts: application/json + get: + description: read the specified Event + operationId: readNamespacedEvent + parameters: + - 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. + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/events.v1.Event' + application/yaml: + schema: + $ref: '#/components/schemas/events.v1.Event' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/events.v1.Event' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - events_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: events.k8s.io + kind: Event + version: v1 + x-accepts: application/json + patch: + description: partially update the specified Event + operationId: patchNamespacedEvent + parameters: + - 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. in: query name: pretty @@ -36283,6 +36553,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: @@ -36307,215 +36579,220 @@ 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-patch+json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/v1.Patch' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/strategic-merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/apply-patch+yaml: + schema: + $ref: '#/components/schemas/v1.Patch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: '#/components/schemas/events.v1.Event' description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: put + - events_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: events.k8s.io + kind: Event version: v1 x-codegen-request-body-name: body - x-contentType: '*/*' + x-contentType: application/json-patch+json x-accepts: application/json - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} - /apis/coordination.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup + put: + description: replace the specified Event + operationId: replaceNamespacedEvent + parameters: + - 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. + 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, or 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: + '*/*': + schema: + $ref: '#/components/schemas/events.v1.Event' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/events.v1.Event' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/events.v1.Event' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/events.v1.Event' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/events.v1.Event' + application/yaml: + schema: + $ref: '#/components/schemas/events.v1.Event' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/events.v1.Event' + description: Created "401": content: {} description: Unauthorized tags: - - coordination + - events_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: events.k8s.io + kind: Event + version: v1 + x-codegen-request-body-name: body + x-contentType: '*/*' x-accepts: application/json - /apis/coordination.k8s.io/v1/: + /apis/events.k8s.io/v1/watch/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/: get: - description: get available resources - operationId: getAPIResources + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.APIGroup' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver x-accepts: application/json - /apis/coordination.k8s.io/v1/leases: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/: get: - description: list or watch objects of kind Lease - operationId: listLeaseForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - 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: 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 + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.LeaseList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + - flowcontrolApiserver_v1beta1 x-accepts: application/json - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas: delete: - description: delete collection of Lease - operationId: deleteCollectionNamespacedLease + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema 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. in: query name: pretty @@ -36630,25 +36907,19 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind Lease - operationId: listNamespacedLease + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema 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. in: query name: pretty @@ -36725,41 +36996,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.FlowSchemaList' application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.FlowSchemaList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.FlowSchemaList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.FlowSchemaList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: '#/components/schemas/v1beta1.FlowSchemaList' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-accepts: application/json post: - description: create a Lease - operationId: createNamespacedLease + description: create a FlowSchema + operationId: createFlowSchema 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. in: query name: pretty @@ -36804,75 +37069,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}: delete: - description: delete a Lease - operationId: deleteNamespacedLease + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the Lease + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -36949,31 +37208,25 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified Lease - operationId: readNamespacedLease + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the Lease + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -36984,41 +37237,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified Lease - operationId: patchNamespacedLease + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the Lease + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -37088,55 +37335,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified Lease - operationId: replaceNamespacedLease + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the Lease + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -37181,212 +37422,297 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' 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/discovery.k8s.io/: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + 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. + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - discovery + - flowcontrolApiserver_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 x-accepts: application/json - /apis/discovery.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + 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. + 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, or 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-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/strategic-merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/apply-patch+yaml: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta1.FlowSchema' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.FlowSchema' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.FlowSchema' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.FlowSchema' + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json-patch+json x-accepts: application/json - /apis/discovery.k8s.io/v1/endpointslices: - get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + put: + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they 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 + - description: name of the FlowSchema + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - description: If 'true', then the output is pretty printed. 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 + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in 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: 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, 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: + '*/*': + schema: + $ref: '#/components/schemas/v1beta1.FlowSchema' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta1.FlowSchema' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta1.FlowSchema' + application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' - description: OK + $ref: '#/components/schemas/v1beta1.FlowSchema' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.FlowSchema' + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 - x-kubernetes-action: list + - flowcontrolApiserver_v1beta1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: '*/*' x-accepts: application/json - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations: delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration 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. in: query name: pretty @@ -37501,25 +37827,19 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration 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. in: query name: pretty @@ -37596,41 +37916,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-accepts: application/json post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration 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. in: query name: pretty @@ -37675,75 +37989,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}: delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -37820,31 +38128,25 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -37855,41 +38157,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -37959,55 +38255,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -38052,189 +38342,324 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' 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/discovery.k8s.io/v1beta1/: + /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 x-accepts: application/json - /apis/discovery.k8s.io/v1beta1/endpointslices: - get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + patch: + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, 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 PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. 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 + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' in: query - name: continue + name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + This field is required for apply requests (application/apply-patch) but + optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). in: query - name: fieldSelector + name: fieldManager schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + - description: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, or if any + duplicate fields are present. The error returned from the server will contain + all unknown and duplicate fields encountered.' in: query - name: labelSelector + name: fieldValidation 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: Force is going to "force" 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: limit + name: force schema: - type: integer + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/strategic-merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/apply-patch+yaml: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta1 + x-codegen-request-body-name: body + x-contentType: application/json-patch+json + x-accepts: application/json + put: + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. 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 + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in 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: 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, 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: + '*/*': + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' - description: OK + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 - x-kubernetes-action: list + - flowcontrolApiserver_v1beta1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1beta1 + x-codegen-request-body-name: body + x-contentType: '*/*' + x-accepts: application/json + /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas: {} + /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations: {} + /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}: {} + /apis/flowcontrol.apiserver.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' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - flowcontrolApiserver_v1beta2 x-accepts: application/json - /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas: delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema 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. in: query name: pretty @@ -38349,25 +38774,19 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema 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. in: query name: pretty @@ -38444,41 +38863,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta2.FlowSchemaList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta2.FlowSchemaList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta2.FlowSchemaList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta2.FlowSchemaList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.EndpointSliceList' + $ref: '#/components/schemas/v1beta2.FlowSchemaList' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-accepts: application/json post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice + description: create a FlowSchema + operationId: createFlowSchema 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. in: query name: pretty @@ -38523,75 +38936,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}: delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the EndpointSlice + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -38668,31 +39075,25 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the EndpointSlice + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -38703,41 +39104,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-accepts: application/json patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the EndpointSlice + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -38807,55 +39202,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the EndpointSlice + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -38900,212 +39289,297 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.EndpointSlice' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/discovery.k8s.io/v1beta1/watch/endpointslices: {} - /apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices: {} - /apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices/{name}: {} - /apis/events.k8s.io/: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + 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. + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: OK "401": content: {} description: Unauthorized tags: - - events + - flowcontrolApiserver_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 x-accepts: application/json - /apis/events.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + 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. + 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, or 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-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/strategic-merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/apply-patch+yaml: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.FlowSchema' description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1beta2.FlowSchema' + application/yaml: + schema: + $ref: '#/components/schemas/v1beta2.FlowSchema' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.FlowSchema' + description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: application/json-patch+json x-accepts: application/json - /apis/events.k8s.io/v1/events: - get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces + put: + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they 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 + - description: name of the FlowSchema + in: path + name: name + required: true schema: type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - description: If 'true', then the output is pretty printed. 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 + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in 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: 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, 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: + '*/*': + schema: + $ref: '#/components/schemas/v1beta2.FlowSchema' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.FlowSchema' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' - application/json;stream=watch: + $ref: '#/components/schemas/v1beta2.FlowSchema' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1beta2.FlowSchema' + application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' - description: OK + $ref: '#/components/schemas/v1beta2.FlowSchema' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1beta2.FlowSchema' + description: Created "401": content: {} description: Unauthorized tags: - - events_v1 - x-kubernetes-action: list + - flowcontrolApiserver_v1beta2 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1beta2 + x-codegen-request-body-name: body + x-contentType: '*/*' x-accepts: application/json - /apis/events.k8s.io/v1/namespaces/{namespace}/events: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations: delete: - description: delete collection of Event - operationId: deleteCollectionNamespacedEvent + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration 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. in: query name: pretty @@ -39220,25 +39694,19 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind Event - operationId: listNamespacedEvent + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration 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. in: query name: pretty @@ -39315,41 +39783,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-accepts: application/json post: - description: create an Event - operationId: createNamespacedEvent + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration 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. in: query name: pretty @@ -39394,75 +39856,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}: delete: - description: delete an Event - operationId: deleteNamespacedEvent + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the Event + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -39539,31 +39995,25 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified Event - operationId: readNamespacedEvent + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the Event + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -39574,41 +40024,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-accepts: application/json patch: - description: partially update the specified Event - operationId: patchNamespacedEvent + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the Event + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -39678,55 +40122,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the Event + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -39771,703 +40209,107 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' 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/events.k8s.io/v1beta1/: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "401": content: {} description: Unauthorized tags: - - events_v1beta1 + - flowcontrolApiserver_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-accepts: application/json - /apis/events.k8s.io/v1beta1/events: - get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces + patch: + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: If 'true', then the output is pretty printed. 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. + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' in: query - name: labelSelector - 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. - 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: 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.EventList' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 - x-accepts: application/json - /apis/events.k8s.io/v1beta1/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. - 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: 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: 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: - '*/*': - 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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events_v1beta1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - 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. - 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: 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.EventList' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.EventList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 - x-accepts: application/json - post: - 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. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1beta1.Event' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.Event' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.Event' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.Event' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - events_v1beta1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}: - delete: - description: delete an Event - operationId: deleteNamespacedEvent - parameters: - - 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. - 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: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "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: - '*/*': - 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' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Status' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - events_v1beta1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: read the specified Event - operationId: readNamespacedEvent - parameters: - - 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. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.Event' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.Event' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - events_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 - x-accepts: application/json - patch: - description: partially update the specified Event - operationId: patchNamespacedEvent - parameters: - - 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. - 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 + name: dryRun schema: type: string - description: fieldManager is a name associated with the actor or entity that @@ -40526,55 +40368,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - events_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus parameters: - - description: name of the Event + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -40619,50 +40455,51 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' description: Created "401": content: {} description: Unauthorized tags: - - events_v1beta1 + - flowcontrolApiserver_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1beta2 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/events.k8s.io/v1beta1/watch/events: {} - /apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events: {} - /apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/: + /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas: {} + /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations: {} + /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}: {} + /apis/internal.apiserver.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -40683,9 +40520,9 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver + - internalApiserver x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/: + /apis/internal.apiserver.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -40706,12 +40543,12 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of StorageVersion + operationId: deleteCollectionStorageVersion parameters: - description: If 'true', then the output is pretty printed. in: query @@ -40827,18 +40664,18 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind StorageVersion + operationId: listStorageVersion parameters: - description: If 'true', then the output is pretty printed. in: query @@ -40916,34 +40753,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchemaList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchemaList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchemaList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.FlowSchemaList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.FlowSchemaList' + $ref: '#/components/schemas/v1alpha1.StorageVersionList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: application/json post: - description: create a FlowSchema - operationId: createFlowSchema + description: create a StorageVersion + operationId: createStorageVersion parameters: - description: If 'true', then the output is pretty printed. in: query @@ -40989,64 +40826,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete a StorageVersion + operationId: deleteStorageVersion parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41128,20 +40965,20 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified StorageVersion + operationId: readStorageVersion parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41157,30 +40994,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: application/json patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified StorageVersion + operationId: patchStorageVersion parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41255,44 +41092,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified StorageVersion + operationId: replaceStorageVersion parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41342,52 +41179,52 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus + description: read status of the specified StorageVersion + operationId: readStorageVersionStatus parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41403,30 +41240,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: application/json patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus + description: partially update status of the specified StorageVersion + operationId: patchStorageVersionStatus parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41501,44 +41338,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus + description: replace status of the specified StorageVersion + operationId: replaceStorageVersionStatus parameters: - - description: name of the FlowSchema + - description: name of the StorageVersion in: path name: name required: true @@ -41588,50 +41425,98 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.FlowSchema' + $ref: '#/components/schemas/v1alpha1.StorageVersion' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations: + /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' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-accepts: application/json + /apis/networking.k8s.io/v1/ingressclasses: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of IngressClass + operationId: deleteCollectionIngressClass parameters: - description: If 'true', then the output is pretty printed. in: query @@ -41747,18 +41632,18 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind IngressClass + operationId: listIngressClass parameters: - description: If 'true', then the output is pretty printed. in: query @@ -41836,34 +41721,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.IngressClassList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.IngressClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.IngressClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.IngressClassList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-accepts: application/json post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create an IngressClass + operationId: createIngressClass parameters: - description: If 'true', then the output is pretty printed. in: query @@ -41909,64 +41794,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}: + /apis/networking.k8s.io/v1/ingressclasses/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete an IngressClass + operationId: deleteIngressClass parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IngressClass in: path name: name required: true @@ -42048,20 +41933,20 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified IngressClass + operationId: readIngressClass parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IngressClass in: path name: name required: true @@ -42077,30 +41962,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-accepts: application/json patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified IngressClass + operationId: patchIngressClass parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IngressClass in: path name: name required: true @@ -42175,44 +42060,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified IngressClass + operationId: replaceIngressClass parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IngressClass in: path name: name required: true @@ -42262,324 +42147,163 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressClass' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 + group: networking.k8s.io + kind: IngressClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status: + /apis/networking.k8s.io/v1/ingresses: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 - x-accepts: application/json - patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus + description: list or watch objects of kind Ingress + operationId: listIngressForAllNamespaces parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true + name: limit schema: - type: string + type: integer - description: If 'true', then the output is pretty printed. in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: |- + resourceVersion sets a constraint on what resource 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. in: query - name: fieldValidation + name: timeoutSeconds schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - required: true + 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.PriorityLevelConfiguration' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PriorityLevelConfiguration' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: '#/components/schemas/v1.IngressList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.IngressList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: '#/components/schemas/v1.IngressList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -42694,19 +42418,25 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind Ingress + operationId: listNamespacedIngress parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -42783,35 +42513,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1.IngressList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1.IngressList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1.IngressList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.FlowSchemaList' + $ref: '#/components/schemas/v1.IngressList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: application/json post: - description: create a FlowSchema - operationId: createFlowSchema + description: create an Ingress + operationId: createNamespacedIngress parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -42856,69 +42592,75 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -42995,25 +42737,31 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -43024,35 +42772,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: application/json patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -43122,49 +42876,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -43209,57 +42969,63 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -43270,35 +43036,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: application/json patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus + description: partially update status of the specified Ingress + operationId: patchNamespacedIngressStatus parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -43368,49 +43140,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus + description: replace status of the specified Ingress + operationId: replaceNamespacedIngressStatus parameters: - - description: name of the FlowSchema + - 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. in: query name: pretty @@ -43455,51 +43233,57 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.FlowSchema' + $ref: '#/components/schemas/v1.Ingress' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta2 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + 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. in: query name: pretty @@ -43614,19 +43398,25 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + 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. in: query name: pretty @@ -43703,35 +43493,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfigurationList' + $ref: '#/components/schemas/v1.NetworkPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-accepts: application/json post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + 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. in: query name: pretty @@ -43776,69 +43572,75 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete a NetworkPolicy + operationId: deleteNamespacedNetworkPolicy parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -43915,25 +43717,31 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified NetworkPolicy + operationId: readNamespacedNetworkPolicy parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -43944,35 +43752,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-accepts: application/json patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified NetworkPolicy + operationId: patchNamespacedNetworkPolicy parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -44042,49 +43856,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicy parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -44129,57 +43949,63 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus + description: read status of the specified NetworkPolicy + operationId: readNamespacedNetworkPolicyStatus parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -44190,35 +44016,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-accepts: application/json patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus + description: partially update status of the specified NetworkPolicy + operationId: patchNamespacedNetworkPolicyStatus parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -44288,49 +44120,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + description: replace status of the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicyStatus parameters: - - description: name of the PriorityLevelConfiguration + - 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. in: query name: pretty @@ -44375,74 +44213,161 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/yaml: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta2.PriorityLevelConfiguration' + $ref: '#/components/schemas/v1.NetworkPolicy' description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta2 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta2 + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}: {} - /apis/internal.apiserver.k8s.io/: + /apis/networking.k8s.io/v1/networkpolicies: get: - description: get information of a group - operationId: getAPIGroup + description: list or watch objects of kind NetworkPolicy + operationId: listNetworkPolicyForAllNamespaces + parameters: + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: If 'true', then the output is pretty printed. + 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: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.NetworkPolicyList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.NetworkPolicyList' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver + - networking_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/: + /apis/networking.k8s.io/v1/watch/ingressclasses: {} + /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} + /apis/networking.k8s.io/v1/watch/ingresses: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} + /apis/networking.k8s.io/v1/watch/networkpolicies: {} + /apis/networking.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -44463,12 +44388,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + /apis/networking.k8s.io/v1alpha1/clustercidrs: delete: - description: delete collection of StorageVersion - operationId: deleteCollectionStorageVersion + description: delete collection of ClusterCIDR + operationId: deleteCollectionClusterCIDR parameters: - description: If 'true', then the output is pretty printed. in: query @@ -44584,18 +44509,18 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind StorageVersion - operationId: listStorageVersion + description: list or watch objects of kind ClusterCIDR + operationId: listClusterCIDR parameters: - description: If 'true', then the output is pretty printed. in: query @@ -44673,34 +44598,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: '#/components/schemas/v1alpha1.ClusterCIDRList' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-accepts: application/json post: - description: create a StorageVersion - operationId: createStorageVersion + description: create a ClusterCIDR + operationId: createClusterCIDR parameters: - description: If 'true', then the output is pretty printed. in: query @@ -44746,64 +44671,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: + /apis/networking.k8s.io/v1alpha1/clustercidrs/{name}: delete: - description: delete a StorageVersion - operationId: deleteStorageVersion + description: delete a ClusterCIDR + operationId: deleteClusterCIDR parameters: - - description: name of the StorageVersion + - description: name of the ClusterCIDR in: path name: name required: true @@ -44885,266 +44810,20 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: read the specified StorageVersion - operationId: readStorageVersion - parameters: - - description: name of the StorageVersion - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - 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' - 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 the specified StorageVersion - operationId: patchStorageVersion - parameters: - - description: name of the StorageVersion - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - 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' - 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' - 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-patch+json - x-accepts: application/json - put: - description: replace the specified StorageVersion - operationId: replaceStorageVersion - parameters: - - description: name of the StorageVersion - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - 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' - 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' - 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 + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: get: - description: read status of the specified StorageVersion - operationId: readStorageVersionStatus + description: read the specified ClusterCIDR + operationId: readClusterCIDR parameters: - - description: name of the StorageVersion + - description: name of the ClusterCIDR in: path name: name required: true @@ -45160,30 +44839,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-accepts: application/json patch: - description: partially update status of the specified StorageVersion - operationId: patchStorageVersionStatus + description: partially update the specified ClusterCIDR + operationId: patchClusterCIDR parameters: - - description: name of the StorageVersion + - description: name of the ClusterCIDR in: path name: name required: true @@ -45258,44 +44937,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified StorageVersion - operationId: replaceStorageVersionStatus + description: replace the specified ClusterCIDR + operationId: replaceClusterCIDR parameters: - - description: name of the StorageVersion + - description: name of the ClusterCIDR in: path name: name required: true @@ -45345,49 +45024,49 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion + group: networking.k8s.io + kind: ClusterCIDR version: v1alpha1 x-codegen-request-body-name: body x-contentType: '*/*' 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/networking.k8s.io/v1alpha1/watch/clustercidrs: {} + /apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}: {} + /apis/node.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -45408,9 +45087,9 @@ paths: content: {} description: Unauthorized tags: - - networking + - node x-accepts: application/json - /apis/networking.k8s.io/v1/: + /apis/node.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -45431,12 +45110,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-accepts: application/json - /apis/networking.k8s.io/v1/ingressclasses: + /apis/node.k8s.io/v1/runtimeclasses: delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass parameters: - description: If 'true', then the output is pretty printed. in: query @@ -45552,18 +45231,18 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass + description: list or watch objects of kind RuntimeClass + operationId: listRuntimeClass parameters: - description: If 'true', then the output is pretty printed. in: query @@ -45641,34 +45320,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.RuntimeClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: '#/components/schemas/v1.RuntimeClassList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: application/json post: - description: create an IngressClass - operationId: createIngressClass + description: create a RuntimeClass + operationId: createRuntimeClass parameters: - description: If 'true', then the output is pretty printed. in: query @@ -45714,64 +45393,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/ingressclasses/{name}: + /apis/node.k8s.io/v1/runtimeclasses/{name}: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete a RuntimeClass + operationId: deleteRuntimeClass parameters: - - description: name of the IngressClass + - description: name of the RuntimeClass in: path name: name required: true @@ -45853,20 +45532,20 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified IngressClass - operationId: readIngressClass + description: read the specified RuntimeClass + operationId: readRuntimeClass parameters: - - description: name of the IngressClass + - description: name of the RuntimeClass in: path name: name required: true @@ -45882,30 +45561,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: application/json patch: - description: partially update the specified IngressClass - operationId: patchIngressClass + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass parameters: - - description: name of the IngressClass + - description: name of the RuntimeClass in: path name: name required: true @@ -45980,44 +45659,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified IngressClass - operationId: replaceIngressClass + description: replace the specified RuntimeClass + operationId: replaceRuntimeClass parameters: - - description: name of the IngressClass + - description: name of the RuntimeClass in: path name: name required: true @@ -46067,156 +45746,98 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: '#/components/schemas/v1.RuntimeClass' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/ingresses: + /apis/node.k8s.io/v1/watch/runtimeclasses: {} + /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} + /apis/policy/: get: - description: list or watch objects of kind Ingress - operationId: listIngressForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - 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: 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 + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' - application/json;stream=watch: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy + x-accepts: application/json + /apis/policy/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: schema: - $ref: '#/components/schemas/v1.IngressList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + 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 + - policy_v1 x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + description: delete collection of PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -46338,18 +45959,18 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind Ingress - operationId: listNamespacedIngress + 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 @@ -46433,34 +46054,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: application/json post: - description: create an Ingress - operationId: createNamespacedIngress + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -46512,64 +46133,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete a PodDisruptionBudget + operationId: deleteNamespacedPodDisruptionBudget parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -46657,20 +46278,20 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified Ingress - operationId: readNamespacedIngress + description: read the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudget parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -46692,30 +46313,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: application/json patch: - description: partially update the specified Ingress - operationId: patchNamespacedIngress + description: partially update the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudget parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -46796,44 +46417,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified Ingress - operationId: replaceNamespacedIngress + description: replace the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudget parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -46889,52 +46510,52 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: read status of the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudgetStatus parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -46956,30 +46577,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: application/json patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus + description: partially update status of the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudgetStatus parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -47060,44 +46681,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus + description: replace status of the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudgetStatus parameters: - - description: name of the Ingress + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -47153,62 +46774,61 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: '#/components/schemas/v1.PodDisruptionBudget' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: - delete: - description: delete collection of NetworkPolicy - operationId: deleteCollectionNamespacedNetworkPolicy + /apis/policy/v1/poddisruptionbudgets: + get: + description: list or watch objects of kind PodDisruptionBudget + operationId: listPodDisruptionBudgetForAllNamespaces 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. + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they 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". @@ -47217,29 +46837,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: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -47254,23 +46857,190 @@ 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. 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: 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/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + application/vnd.kubernetes.protobuf;stream=watch: + 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' + 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 ClusterRoleBinding + operationId: deleteCollectionClusterRoleBinding + parameters: + - description: If 'true', then the output is pretty printed. + 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: 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: |- @@ -47318,25 +47088,19 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind NetworkPolicy - operationId: listNamespacedNetworkPolicy + description: list or watch objects of kind ClusterRoleBinding + operationId: listClusterRoleBinding 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. in: query name: pretty @@ -47413,41 +47177,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: '#/components/schemas/v1.ClusterRoleBindingList' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-accepts: application/json post: - description: create a NetworkPolicy - operationId: createNamespacedNetworkPolicy + description: create a ClusterRoleBinding + operationId: createClusterRoleBinding 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. in: query name: pretty @@ -47492,75 +47250,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: delete: - description: delete a NetworkPolicy - operationId: deleteNamespacedNetworkPolicy + description: delete a ClusterRoleBinding + operationId: deleteClusterRoleBinding parameters: - - description: name of the NetworkPolicy + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -47637,295 +47389,25 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: read the specified NetworkPolicy - operationId: readNamespacedNetworkPolicy - parameters: - - 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. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy - version: v1 - x-accepts: application/json - patch: - description: partially update the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicy - parameters: - - 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. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicy - parameters: - - 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. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.NetworkPolicy' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status: get: - description: read status of the specified NetworkPolicy - operationId: readNamespacedNetworkPolicyStatus + description: read the specified ClusterRoleBinding + operationId: readClusterRoleBinding parameters: - - description: name of the NetworkPolicy + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -47936,41 +47418,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-accepts: application/json patch: - description: partially update status of the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicyStatus + description: partially update the specified ClusterRoleBinding + operationId: patchClusterRoleBinding parameters: - - description: name of the NetworkPolicy + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -48040,55 +47516,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace status of the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicyStatus + description: replace the specified ClusterRoleBinding + operationId: replaceClusterRoleBinding parameters: - - description: name of the NetworkPolicy + - description: name of the ClusterRoleBinding in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -48133,210 +47603,50 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: '#/components/schemas/v1.ClusterRoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/networking.k8s.io/v1/networkpolicies: - get: - description: list or watch objects of kind NetworkPolicy - operationId: listNetworkPolicyForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - 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: 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.NetworkPolicyList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: NetworkPolicy - version: v1 - 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/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/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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node_v1 - x-accepts: application/json - /apis/node.k8s.io/v1/runtimeclasses: + /apis/rbac.authorization.k8s.io/v1/clusterroles: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + description: delete collection of ClusterRole + operationId: deleteCollectionClusterRole parameters: - description: If 'true', then the output is pretty printed. in: query @@ -48452,18 +47762,18 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + description: list or watch objects of kind ClusterRole + operationId: listClusterRole parameters: - description: If 'true', then the output is pretty printed. in: query @@ -48541,34 +47851,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: '#/components/schemas/v1.ClusterRoleList' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-accepts: application/json post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create a ClusterRole + operationId: createClusterRole parameters: - description: If 'true', then the output is pretty printed. in: query @@ -48614,64 +47924,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a ClusterRole + operationId: deleteClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -48753,20 +48063,20 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified ClusterRole + operationId: readClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -48782,30 +48092,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-accepts: application/json patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified ClusterRole + operationId: patchClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -48880,44 +48190,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified ClusterRole + operationId: replaceClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -48967,76 +48277,57 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1.ClusterRole' description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/node.k8s.io/v1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} - /apis/node.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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node_v1beta1 - x-accepts: application/json - /apis/node.k8s.io/v1beta1/runtimeclasses: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + description: delete collection of RoleBinding + operationId: deleteCollectionNamespacedRoleBinding 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. in: query name: pretty @@ -49151,19 +48442,25 @@ paths: content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + 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 + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -49240,35 +48537,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClassList' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClassList' + $ref: '#/components/schemas/v1.RoleBindingList' description: OK "401": content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: application/json post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create a RoleBinding + operationId: createNamespacedRoleBinding 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. in: query name: pretty @@ -49313,73 +48616,79 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/node.k8s.io/v1beta1/runtimeclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a RoleBinding + operationId: deleteNamespacedRoleBinding parameters: - - description: name of the RuntimeClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. + 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 @@ -49452,25 +48761,31 @@ paths: content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified RoleBinding + operationId: readNamespacedRoleBinding parameters: - - description: name of the RuntimeClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -49481,35 +48796,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "401": content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: application/json patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified RoleBinding + operationId: patchNamespacedRoleBinding parameters: - - description: name of the RuntimeClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -49579,49 +48900,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified RoleBinding + operationId: replaceNamespacedRoleBinding parameters: - - description: name of the RuntimeClass + - description: name of the RoleBinding in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -49666,98 +48993,50 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RoleBinding' description: Created "401": content: {} description: Unauthorized tags: - - node_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass - version: v1beta1 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/node.k8s.io/v1beta1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}: {} - /apis/policy/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy - x-accepts: application/json - /apis/policy/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.APIResourceList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of Role + operationId: deleteCollectionNamespacedRole parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -49879,18 +49158,18 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + 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 @@ -49974,34 +49253,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-accepts: application/json post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + description: create a Role + operationId: createNamespacedRole parameters: - description: object name and auth scope, such as for teams and projects in: path @@ -50053,64 +49332,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget + description: delete a Role + operationId: deleteNamespacedRole parameters: - - description: name of the PodDisruptionBudget + - description: name of the Role in: path name: name required: true @@ -50198,20 +49477,20 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget + description: read the specified Role + operationId: readNamespacedRole parameters: - - description: name of the PodDisruptionBudget + - description: name of the Role in: path name: name required: true @@ -50233,30 +49512,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-accepts: application/json patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget + description: partially update the specified Role + operationId: patchNamespacedRole parameters: - - description: name of the PodDisruptionBudget + - description: name of the Role in: path name: name required: true @@ -50337,44 +49616,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget + description: replace the specified Role + operationId: replaceNamespacedRole parameters: - - description: name of the PodDisruptionBudget + - description: name of the Role in: path name: name required: true @@ -50430,314 +49709,156 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.Role' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: + /apis/rbac.authorization.k8s.io/v1/rolebindings: 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. - 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' - 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 + description: list or watch objects of kind RoleBinding + operationId: listRoleBindingForAllNamespaces 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. + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - 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' - 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' - 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-patch+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 + name: limit schema: - type: string + type: integer - description: If 'true', then the output is pretty printed. in: query name: pretty schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: |- + resourceVersion sets a constraint on what resource 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. in: query - name: fieldValidation + name: timeoutSeconds schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - required: true + 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.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RoleBindingList' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.RoleBindingList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/yaml: + $ref: '#/components/schemas/v1.RoleBindingList' + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: + $ref: '#/components/schemas/v1.RoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - description: Created + $ref: '#/components/schemas/v1.RoleBindingList' + description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 - x-kubernetes-action: put + - rbacAuthorization_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1/poddisruptionbudgets: + /apis/rbac.authorization.k8s.io/v1/roles: get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listPodDisruptionBudgetForAllNamespaces + 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 @@ -50815,35 +49936,65 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.RoleList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: Role 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/policy/v1beta1/: + /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/scheduling.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: + - scheduling + x-accepts: application/json + /apis/scheduling.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -50864,19 +50015,13 @@ paths: content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-accepts: application/json - /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets: + /apis/scheduling.k8s.io/v1/priorityclasses: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of PriorityClass + operationId: deleteCollectionPriorityClass 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. in: query name: pretty @@ -50991,25 +50136,19 @@ paths: content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + description: list or watch objects of kind PriorityClass + operationId: listPriorityClass 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. in: query name: pretty @@ -51086,41 +50225,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.PriorityClassList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.PriorityClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.PriorityClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.PriorityClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.PriorityClassList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-accepts: application/json post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + description: create a PriorityClass + operationId: createPriorityClass 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. in: query name: pretty @@ -51165,75 +50298,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}: + /apis/scheduling.k8s.io/v1/priorityclasses/{name}: delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget + description: delete a PriorityClass + operationId: deletePriorityClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the PriorityClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -51310,31 +50437,25 @@ paths: content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget + description: read the specified PriorityClass + operationId: readPriorityClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the PriorityClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -51345,41 +50466,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-accepts: application/json patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget + description: partially update the specified PriorityClass + operationId: patchPriorityClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the PriorityClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -51449,55 +50564,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget + description: replace the specified PriorityClass + operationId: replacePriorityClass parameters: - - description: name of the PodDisruptionBudget + - description: name of the PriorityClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -51542,420 +50651,98 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.PriorityClass' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - scheduling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: + /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} + /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} + /apis/storage.k8s.io/: 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. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 - 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. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - policy_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+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. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - required: true + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.APIGroup' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.APIGroup' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' + $ref: '#/components/schemas/v1.APIGroup' description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - description: Created "401": content: {} description: Unauthorized tags: - - policy_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' + - storage x-accepts: application/json - /apis/policy/v1beta1/poddisruptionbudgets: + /apis/storage.k8s.io/v1/: 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. - 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: 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 + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.APIResourceList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.APIResourceList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetList' + $ref: '#/components/schemas/v1.APIResourceList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1beta1 + - storage_v1 x-accepts: application/json - /apis/policy/v1beta1/podsecuritypolicies: + /apis/storage.k8s.io/v1/csidrivers: delete: - description: delete collection of PodSecurityPolicy - operationId: deleteCollectionPodSecurityPolicy + description: delete collection of CSIDriver + operationId: deleteCollectionCSIDriver parameters: - description: If 'true', then the output is pretty printed. in: query @@ -52071,18 +50858,18 @@ paths: content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind PodSecurityPolicy - operationId: listPodSecurityPolicy + description: list or watch objects of kind CSIDriver + operationId: listCSIDriver parameters: - description: If 'true', then the output is pretty printed. in: query @@ -52160,34 +50947,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicyList' + $ref: '#/components/schemas/v1.CSIDriverList' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicyList' + $ref: '#/components/schemas/v1.CSIDriverList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicyList' + $ref: '#/components/schemas/v1.CSIDriverList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicyList' + $ref: '#/components/schemas/v1.CSIDriverList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicyList' + $ref: '#/components/schemas/v1.CSIDriverList' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-accepts: application/json post: - description: create a PodSecurityPolicy - operationId: createPodSecurityPolicy + description: create a CSIDriver + operationId: createCSIDriver parameters: - description: If 'true', then the output is pretty printed. in: query @@ -52233,64 +51020,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1beta1/podsecuritypolicies/{name}: + /apis/storage.k8s.io/v1/csidrivers/{name}: delete: - description: delete a PodSecurityPolicy - operationId: deletePodSecurityPolicy + description: delete a CSIDriver + operationId: deleteCSIDriver parameters: - - description: name of the PodSecurityPolicy + - description: name of the CSIDriver in: path name: name required: true @@ -52348,44 +51135,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified PodSecurityPolicy - operationId: readPodSecurityPolicy + description: read the specified CSIDriver + operationId: readCSIDriver parameters: - - description: name of the PodSecurityPolicy + - description: name of the CSIDriver in: path name: name required: true @@ -52401,30 +51188,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-accepts: application/json patch: - description: partially update the specified PodSecurityPolicy - operationId: patchPodSecurityPolicy + description: partially update the specified CSIDriver + operationId: patchCSIDriver parameters: - - description: name of the PodSecurityPolicy + - description: name of the CSIDriver in: path name: name required: true @@ -52499,44 +51286,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified PodSecurityPolicy - operationId: replacePodSecurityPolicy + description: replace the specified CSIDriver + operationId: replaceCSIDriver parameters: - - description: name of the PodSecurityPolicy + - description: name of the CSIDriver in: path name: name required: true @@ -52586,101 +51373,50 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/yaml: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.CSIDriver' description: Created "401": content: {} description: Unauthorized tags: - - policy_v1beta1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicy - version: v1beta1 + group: storage.k8s.io + kind: CSIDriver + version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets: {} - /apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} - /apis/policy/v1beta1/watch/poddisruptionbudgets: {} - /apis/policy/v1beta1/watch/podsecuritypolicies: {} - /apis/policy/v1beta1/watch/podsecuritypolicies/{name}: {} - /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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization_v1 - x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: + /apis/storage.k8s.io/v1/csinodes: delete: - description: delete collection of ClusterRoleBinding - operationId: deleteCollectionClusterRoleBinding + description: delete collection of CSINode + operationId: deleteCollectionCSINode parameters: - description: If 'true', then the output is pretty printed. in: query @@ -52796,18 +51532,18 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind ClusterRoleBinding - operationId: listClusterRoleBinding + description: list or watch objects of kind CSINode + operationId: listCSINode parameters: - description: If 'true', then the output is pretty printed. in: query @@ -52885,34 +51621,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.CSINodeList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.CSINodeList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.CSINodeList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.CSINodeList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: '#/components/schemas/v1.CSINodeList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-accepts: application/json post: - description: create a ClusterRoleBinding - operationId: createClusterRoleBinding + description: create a CSINode + operationId: createCSINode parameters: - description: If 'true', then the output is pretty printed. in: query @@ -52958,64 +51694,64 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + /apis/storage.k8s.io/v1/csinodes/{name}: delete: - description: delete a ClusterRoleBinding - operationId: deleteClusterRoleBinding + description: delete a CSINode + operationId: deleteCSINode parameters: - - description: name of the ClusterRoleBinding + - description: name of the CSINode in: path name: name required: true @@ -53073,44 +51809,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSINode' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified ClusterRoleBinding - operationId: readClusterRoleBinding + description: read the specified CSINode + operationId: readCSINode parameters: - - description: name of the ClusterRoleBinding + - description: name of the CSINode in: path name: name required: true @@ -53126,30 +51862,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterRoleBinding - operationId: patchClusterRoleBinding + description: partially update the specified CSINode + operationId: patchCSINode parameters: - - description: name of the ClusterRoleBinding + - description: name of the CSINode in: path name: name required: true @@ -53224,44 +51960,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified ClusterRoleBinding - operationId: replaceClusterRoleBinding + description: replace the specified CSINode + operationId: replaceCSINode parameters: - - description: name of the ClusterRoleBinding + - description: name of the CSINode in: path name: name required: true @@ -53311,56 +52047,61 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: '#/components/schemas/v1.CSINode' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + group: storage.k8s.io + kind: CSINode version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterroles: - delete: - description: delete collection of ClusterRole - operationId: deleteCollectionClusterRole + /apis/storage.k8s.io/v1/csistoragecapacities: + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listCSIStorageCapacityForAllNamespaces parameters: - - description: If 'true', then the output is pretty printed. + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they 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". @@ -53369,29 +52110,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: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -53406,23 +52130,9 @@ 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. in: query - name: propagationPolicy + name: pretty schema: type: string - description: |- @@ -53447,57 +52157,201 @@ paths: name: timeoutSeconds schema: type: integer - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. Specify resourceVersion. + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.CSIStorageCapacityList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 - x-kubernetes-action: deletecollection + - storage_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' x-accepts: application/json - get: - description: list or watch objects of kind ClusterRole - operationId: listClusterRole + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + delete: + description: delete collection of CSIStorageCapacity + operationId: deleteCollectionNamespacedCSIStorageCapacity parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. 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: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an 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: 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: 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: + '*/*': + 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' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-contentType: '*/*' + x-accepts: application/json + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listNamespacedCSIStorageCapacity + parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. + 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". @@ -53559,35 +52413,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: '#/components/schemas/v1.CSIStorageCapacityList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 x-accepts: application/json post: - description: create a ClusterRole - operationId: createClusterRole + description: create a CSIStorageCapacity + operationId: createNamespacedCSIStorageCapacity parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -53632,69 +52492,75 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: delete: - description: delete a ClusterRole - operationId: deleteClusterRole + description: delete a CSIStorageCapacity + operationId: deleteNamespacedCSIStorageCapacity parameters: - - description: name of the ClusterRole + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -53771,25 +52637,31 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified ClusterRole - operationId: readClusterRole + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity parameters: - - description: name of the ClusterRole + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -53800,35 +52672,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 x-accepts: application/json patch: - description: partially update the specified ClusterRole - operationId: patchClusterRole + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity parameters: - - description: name of the ClusterRole + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -53898,49 +52776,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified ClusterRole - operationId: replaceClusterRole + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity parameters: - - description: name of the ClusterRole + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -53985,57 +52869,51 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: '#/components/schemas/v1.CSIStorageCapacity' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: storage.k8s.io + kind: CSIStorageCapacity version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: + /apis/storage.k8s.io/v1/storageclasses: delete: - description: delete collection of RoleBinding - operationId: deleteCollectionNamespacedRoleBinding + description: delete collection of StorageClass + operationId: deleteCollectionStorageClass 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. in: query name: pretty @@ -54150,25 +53028,19 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind RoleBinding - operationId: listNamespacedRoleBinding + description: list or watch objects of kind StorageClass + operationId: listStorageClass 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. in: query name: pretty @@ -54245,41 +53117,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.StorageClassList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.StorageClassList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.StorageClassList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.StorageClassList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.StorageClassList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-accepts: application/json post: - description: create a RoleBinding - operationId: createNamespacedRoleBinding + description: create a StorageClass + operationId: createStorageClass 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. in: query name: pretty @@ -54324,75 +53190,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + /apis/storage.k8s.io/v1/storageclasses/{name}: delete: - description: delete a RoleBinding - operationId: deleteNamespacedRoleBinding + description: delete a StorageClass + operationId: deleteStorageClass parameters: - - description: name of the RoleBinding + - description: name of the StorageClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -54445,55 +53305,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.StorageClass' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.StorageClass' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified RoleBinding - operationId: readNamespacedRoleBinding + description: read the specified StorageClass + operationId: readStorageClass parameters: - - description: name of the RoleBinding + - description: name of the StorageClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -54504,41 +53358,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-accepts: application/json patch: - description: partially update the specified RoleBinding - operationId: patchNamespacedRoleBinding + description: partially update the specified StorageClass + operationId: patchStorageClass parameters: - - description: name of the RoleBinding + - description: name of the StorageClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -54608,55 +53456,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified RoleBinding - operationId: replaceNamespacedRoleBinding + description: replace the specified StorageClass + operationId: replaceStorageClass parameters: - - description: name of the RoleBinding + - description: name of the StorageClass in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -54701,57 +53543,51 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: '#/components/schemas/v1.StorageClass' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: StorageClass version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + /apis/storage.k8s.io/v1/volumeattachments: delete: - description: delete collection of Role - operationId: deleteCollectionNamespacedRole + description: delete collection of VolumeAttachment + operationId: deleteCollectionVolumeAttachment 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. in: query name: pretty @@ -54866,25 +53702,19 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind Role - operationId: listNamespacedRole + description: list or watch objects of kind VolumeAttachment + operationId: listVolumeAttachment 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. in: query name: pretty @@ -54961,41 +53791,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1.VolumeAttachmentList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-accepts: application/json post: - description: create a Role - operationId: createNamespacedRole + description: create a VolumeAttachment + operationId: createVolumeAttachment 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. in: query name: pretty @@ -55040,75 +53864,69 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: + /apis/storage.k8s.io/v1/volumeattachments/{name}: delete: - description: delete a Role - operationId: deleteNamespacedRole + description: delete a VolumeAttachment + operationId: deleteVolumeAttachment parameters: - - description: name of the Role + - description: name of the VolumeAttachment in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -55161,55 +53979,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified Role - operationId: readNamespacedRole + description: read the specified VolumeAttachment + operationId: readVolumeAttachment parameters: - - description: name of the Role + - description: name of the VolumeAttachment in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -55220,41 +54032,35 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-accepts: application/json patch: - description: partially update the specified Role - operationId: patchNamespacedRole + description: partially update the specified VolumeAttachment + operationId: patchVolumeAttachment parameters: - - description: name of the Role + - description: name of the VolumeAttachment in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -55324,55 +54130,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified Role - operationId: replaceNamespacedRole + description: replace the specified VolumeAttachment + operationId: replaceVolumeAttachment parameters: - - description: name of the Role + - description: name of the VolumeAttachment in: path name: name required: true schema: type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -55417,156 +54217,330 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: '#/components/schemas/v1.VolumeAttachment' description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: storage.k8s.io + kind: VolumeAttachment version: v1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/rolebindings: + /apis/storage.k8s.io/v1/volumeattachments/{name}/status: get: - description: list or watch objects of kind RoleBinding - operationId: listRoleBindingForAllNamespaces + description: read status of the specified VolumeAttachment + operationId: readVolumeAttachmentStatus parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, 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 VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. 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/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-accepts: application/json + patch: + description: partially update status of the specified VolumeAttachment + operationId: patchVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: + type: string + - description: If 'true', then the output is pretty printed. 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, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, 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 - - description: If 'true', then the output is pretty printed. + 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: pretty + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/strategic-merge-patch+json: + schema: + $ref: '#/components/schemas/v1.Patch' + application/apply-patch+yaml: + schema: + $ref: '#/components/schemas/v1.Patch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-contentType: application/json-patch+json + x-accepts: application/json + put: + description: replace status of the specified VolumeAttachment + operationId: replaceVolumeAttachmentStatus + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true schema: type: string - - description: |- - resourceVersion sets a constraint on what resource 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: If 'true', then the output is pretty printed. in: query - name: resourceVersion + name: pretty 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: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. 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: timeoutSeconds + name: fieldManager 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: 'fieldValidation instructs the server on how to handle objects + in the request (POST/PUT/PATCH) containing unknown or duplicate fields, + provided that the `ServerSideFieldValidation` feature gate is also enabled. + Valid values are: - Ignore: This will ignore any unknown fields that are + silently dropped from the object, and will ignore all but the last duplicate + field that the decoder encounters. This is the default behavior prior to + v1.23 and is the default behavior when the `ServerSideFieldValidation` feature + gate is disabled. - Warn: This will send a warning via the standard warning + response header for each unknown field that is dropped from the object, + and for each duplicate field that is encountered. The request will still + succeed if there are no other errors, and will only persist the last of + any duplicate fields. This is the default when the `ServerSideFieldValidation` + feature gate is enabled. - Strict: This will fail the request with a BadRequest + error if any unknown fields would be dropped from the object, 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: + '*/*': + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.VolumeAttachment' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: '#/components/schemas/v1.VolumeAttachment' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/json;stream=watch: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: OK + "201": + content: + application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: '#/components/schemas/v1.VolumeAttachment' + application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' - description: OK + $ref: '#/components/schemas/v1.VolumeAttachment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.VolumeAttachment' + description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 - x-kubernetes-action: list + - storage_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: storage.k8s.io + kind: VolumeAttachment version: v1 + x-codegen-request-body-name: body + x-contentType: '*/*' x-accepts: application/json - /apis/rbac.authorization.k8s.io/v1/roles: + /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/v1beta1/: get: - description: list or watch objects of kind Role - operationId: listRoleForAllNamespaces + 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' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1beta1 + x-accepts: application/json + /apis/storage.k8s.io/v1beta1/csistoragecapacities: + get: + description: list or watch objects of kind CSIStorageCapacity + operationId: listCSIStorageCapacityForAllNamespaces parameters: - description: allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks @@ -55644,92 +54618,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - storage_v1beta1 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/scheduling.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: - - scheduling - x-accepts: application/json - /apis/scheduling.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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - scheduling_v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-accepts: application/json - /apis/scheduling.k8s.io/v1/priorityclasses: + /apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities: delete: - description: delete collection of PriorityClass - operationId: deleteCollectionPriorityClass + description: delete collection of CSIStorageCapacity + operationId: deleteCollectionNamespacedCSIStorageCapacity parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -55844,19 +54768,25 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind PriorityClass - operationId: listPriorityClass + description: list or watch objects of kind CSIStorageCapacity + operationId: listNamespacedCSIStorageCapacity parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -55933,35 +54863,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-accepts: application/json post: - description: create a PriorityClass - operationId: createPriorityClass + description: create a CSIStorageCapacity + operationId: createNamespacedCSIStorageCapacity parameters: + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -56006,69 +54942,75 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + /apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}: delete: - description: delete a PriorityClass - operationId: deletePriorityClass + description: delete a CSIStorageCapacity + operationId: deleteNamespacedCSIStorageCapacity parameters: - - description: name of the PriorityClass + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -56145,25 +55087,31 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified PriorityClass - operationId: readPriorityClass + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity parameters: - - description: name of the PriorityClass + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -56174,35 +55122,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-accepts: application/json patch: - description: partially update the specified PriorityClass - operationId: patchPriorityClass + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity parameters: - - description: name of the PriorityClass + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -56272,49 +55226,55 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified PriorityClass - operationId: replacePriorityClass + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity parameters: - - description: name of the PriorityClass + - description: name of the CSIStorageCapacity in: path name: name required: true schema: type: string + - description: object name and auth scope, such as for teams and projects + in: path + name: namespace + required: true + schema: + type: string - description: If 'true', then the output is pretty printed. in: query name: pretty @@ -56359,124 +55319,138 @@ paths: content: '*/*': schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - storage_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1beta1 x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} - /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/storage.k8s.io/: + /apis/storage.k8s.io/v1beta1/watch/csistoragecapacities: {} + /apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities: {} + /apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities/{name}: {} + /logs/: get: - description: get information of a group - operationId: getAPIGroup + operationId: logFileListHandler + responses: + "401": + content: {} + description: Unauthorized + tags: + - logs + x-accepts: application/json + /logs/{logpath}: + get: + operationId: logFileHandler + parameters: + - description: path to the log + in: path + name: logpath + required: true + schema: + type: string + responses: + "401": + content: {} + description: Unauthorized + tags: + - logs + x-accepts: application/json + /openid/v1/jwks/: + get: + description: get service account issuer OpenID JSON Web Key Set (contains public + token verification keys) + operationId: getServiceAccountIssuerOpenIDKeyset responses: "200": content: - application/json: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/yaml: - schema: - $ref: '#/components/schemas/v1.APIGroup' - application/vnd.kubernetes.protobuf: + application/jwk-set+json: schema: - $ref: '#/components/schemas/v1.APIGroup' + type: string description: OK "401": content: {} description: Unauthorized tags: - - storage - x-accepts: application/json - /apis/storage.k8s.io/v1/: + - openid + x-accepts: application/jwk-set+json + /version/: get: - description: get available resources - operationId: getAPIResources + description: get the code version + operationId: getCode 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' + $ref: '#/components/schemas/version.Info' description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - version x-accepts: application/json - /apis/storage.k8s.io/v1/csidrivers: + /apis/{group}/{version}/{plural}: delete: - description: delete collection of CSIDriver - operationId: deleteCollectionCSIDriver + description: Delete collection of cluster scoped custom objects + operationId: deleteCollectionClusterCustomObject parameters: - description: If 'true', then the output is pretty printed. in: query name: pretty schema: type: string - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + - description: The custom resource's group name + in: path + name: group + required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun + - description: The custom resource's version + in: path + name: version + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - description: The duration in seconds before the object should be deleted. @@ -56488,20 +55462,6 @@ paths: name: gracePeriodSeconds schema: type: integer - - 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 @@ -56510,39 +55470,22 @@ paths: name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either + - 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.' + the resource-specific default policy. 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 + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer requestBody: content: '*/*': @@ -56554,42 +55497,51 @@ paths: 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' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind CSIDriver - operationId: listCSIDriver + description: list or watch cluster scoped custom objects + operationId: listClusterCustomObject parameters: - description: If 'true', then the output is pretty printed. in: query name: pretty schema: type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string - description: allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. + is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, + this field is ignored. in: query name: allowWatchBookmarks schema: @@ -56622,10 +55574,12 @@ paths: 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 + - description: 'When specified with a watch call, shows changes that occur after + that particular version of a resource. Defaults to changes from the beginning + of history. When specified for list: - if unset, then the result is returned + from remote storage based on quorum-read flag; - if it''s 0, then we simply + return what we currently have in cache, no guarantee; - if set to non zero, + then the result is at least as fresh as given rv.' in: query name: resourceVersion schema: @@ -56645,7 +55599,7 @@ paths: schema: type: integer - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. + as a stream of add, update, and remove notifications. in: query name: watch schema: @@ -56655,40 +55609,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriverList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriverList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriverList' + type: object application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIDriverList' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + - custom_objects x-accepts: application/json post: - description: create a CSIDriver - operationId: createCSIDriver + description: Creates a cluster scoped Custom object + operationId: createClusterCustomObject parameters: - description: If 'true', then the output is pretty printed. in: query name: pretty schema: type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string - description: 'When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry @@ -56700,138 +55659,102 @@ 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: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: '*/*': schema: - $ref: '#/components/schemas/v1.CSIDriver' + type: object + description: The JSON schema of the Resource to create. required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' + type: object description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/storage.k8s.io/v1/csidrivers/{name}: + /apis/{group}/{version}/namespaces/{namespace}/{plural}: delete: - description: delete a CSIDriver - operationId: deleteCSIDriver + description: Delete collection of namespace scoped custom objects + operationId: deleteCollectionNamespacedCustomObject parameters: - - description: name of the CSIDriver - in: path - name: name - required: true - schema: - type: string - description: If 'true', then the output is pretty printed. 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 + - description: The custom resource's group name + in: path + name: group + required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds + - description: The custom resource's version + in: path + name: version + required: true 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 + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: The duration in seconds before the object should be deleted. + Value must be non-negative integer. The value zero indicates delete immediately. + If this value is nil, the default grace period for the specified type will + be used. Defaults to a per object value if not specified. zero means delete + immediately. + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: 'Deprecated: please use the PropagationPolicy, this field will + be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, + the "orphan" finalizer will be added to/removed from the object''s finalizers list. Either this field or PropagationPolicy may be set, but not both.' in: query name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either + - 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.' + the resource-specific default policy. in: query name: propagationPolicy schema: type: string + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' + in: query + name: dryRun + schema: + type: string requestBody: content: '*/*': @@ -56843,203 +55766,167 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' + type: object description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified CSIDriver - operationId: readCSIDriver + description: list or watch namespace scoped custom objects + operationId: listNamespacedCustomObject parameters: - - description: name of the CSIDriver + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: The custom resource's version + in: path + name: version + required: true schema: type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 - x-accepts: application/json - patch: - description: partially update the specified CSIDriver - operationId: patchCSIDriver - parameters: - - description: name of the CSIDriver + - description: The custom resource's namespace in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: allowWatchBookmarks requests watch events with type "BOOKMARK". + Servers that do not implement bookmarks may ignore this flag and bookmarks + are sent at the server's discretion. Clients should not assume bookmarks + are returned at any specific interval, nor may they assume the server will + send any BOOKMARK event during a session. If this is not a watch, this field + is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, + this field is ignored. in: query - name: pretty + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: dryRun + name: fieldSelector schema: type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - 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 + labels. Defaults to everything. in: query - name: fieldManager + name: labelSelector schema: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. in: query - name: fieldValidation + name: limit + schema: + type: integer + - description: 'When specified with a watch call, shows changes that occur after + that particular version of a resource. Defaults to changes from the beginning + of history. When specified for list: - if unset, then the result is returned + from remote storage based on quorum-read flag; - if it''s 0, then we simply + return what we currently have in cache, no guarantee; - if set to non zero, + then the result is at least as fresh as given rv.' + in: query + name: resourceVersion schema: type: string - - description: Force is going to "force" 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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: force + name: resourceVersionMatch + schema: + type: string + - description: Timeout for the list/watch call. This limits the duration of + the call, regardless of any activity or inactivity. + in: query + name: timeoutSeconds + schema: + type: integer + - description: Watch for changes to the described resources and return them + as a stream of add, update, and remove notifications. + in: query + name: watch schema: type: boolean - requestBody: - content: - application/json-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: + type: object + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriver' + type: object description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json + - custom_objects x-accepts: application/json - put: - description: replace the specified CSIDriver - operationId: replaceCSIDriver + post: + description: Creates a namespace scoped Custom object + operationId: createNamespacedCustomObject parameters: - - description: name of the CSIDriver + - description: If 'true', then the output is pretty printed. + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -57057,100 +55944,56 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: '*/*': schema: - $ref: '#/components/schemas/v1.CSIDriver' + type: object + description: The JSON schema of the Resource to create. required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIDriver' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIDriver' + type: object description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/storage.k8s.io/v1/csinodes: + /apis/{group}/{version}/{plural}/{name}: delete: - description: delete collection of CSINode - operationId: deleteCollectionCSINode + description: Deletes the specified cluster scoped custom object + operationId: deleteClusterCustomObject parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's group + in: path + name: group + required: true 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 + - description: the custom resource's version + in: path + name: version + required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: The duration in seconds before the object should be deleted. @@ -57162,20 +56005,6 @@ paths: name: gracePeriodSeconds schema: type: integer - - 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 @@ -57184,39 +56013,22 @@ paths: name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either + - 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.' + the resource-specific default policy. 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 + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer requestBody: content: '*/*': @@ -57228,139 +56040,85 @@ paths: 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' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: list or watch objects of kind CSINode - operationId: listCSINode + description: Returns a cluster scoped custom object + operationId: getClusterCustomObject parameters: - - description: If 'true', then the output is pretty printed. - 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 + - description: the custom resource's group + in: path + name: group + 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: the custom resource's version + in: path + name: version + 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: |- - resourceVersion sets a constraint on what resource 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 + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch + - description: the custom object's name + in: path + name: name + required: true schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINodeList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINodeList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINodeList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSINodeList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSINodeList' - description: OK + type: object + description: A single Resource "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-accepts: application/json - post: - description: create a CSINode - operationId: createCSINode + patch: + description: patch the specified cluster scoped custom object + operationId: patchClusterCustomObject parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -57374,100 +56132,71 @@ 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: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped 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: Force is going to "force" 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: fieldValidation + name: force schema: - type: string + type: boolean requestBody: content: - '*/*': + application/json-patch+json: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object + application/merge-patch+json: + schema: + type: object + description: The JSON schema of the Resource to patch. required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINode' + type: object description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINode' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINode' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-codegen-request-body-name: body - x-contentType: '*/*' + x-contentType: application/json-patch+json x-accepts: application/json - /apis/storage.k8s.io/v1/csinodes/{name}: - delete: - description: delete a CSINode - operationId: deleteCSINode + put: + description: replace the specified cluster scoped custom object + operationId: replaceClusterCustomObject parameters: - - description: name of the CSINode + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -57478,91 +56207,63 @@ paths: 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: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "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: fieldManager is a name associated with the actor or entity that + is making these changes. 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: propagationPolicy + name: fieldManager schema: type: string requestBody: content: '*/*': schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + type: object + description: The JSON schema of the Resource to replace. + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINode' + type: object description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINode' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json + /apis/{group}/{version}/{plural}/{name}/status: get: - description: read the specified CSINode - operationId: readCSINode + description: read status of the specified cluster scoped custom object + operationId: getClusterCustomObjectStatus parameters: - - description: name of the CSINode + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string responses: @@ -57570,38 +56271,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-accepts: application/json patch: - description: partially update the specified CSINode - operationId: patchCSINode + description: partially update status of the specified cluster scoped custom + object + operationId: patchClusterCustomObjectStatus parameters: - - description: name of the CSINode + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -57621,26 +56332,6 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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. @@ -57652,68 +56343,61 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/v1.Patch' + description: The JSON schema of the Resource to patch. + type: object application/merge-patch+json: schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' + description: The JSON schema of the Resource to patch. + type: object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSINode' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSINode' - description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified CSINode - operationId: replaceCSINode + description: replace status of the cluster scoped specified custom object + operationId: replaceClusterCustomObjectStatus parameters: - - description: name of the CSINode + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -57731,198 +56415,121 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: '*/*': schema: - $ref: '#/components/schemas/v1.CSINode' + type: object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + type: object description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/storage.k8s.io/v1/csistoragecapacities: + /apis/{group}/{version}/{plural}/{name}/scale: get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces + description: read scale of the specified custom object + operationId: getClusterCustomObjectScale parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they 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 + - description: the custom resource's group + in: path + name: group + 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. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true 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 + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch + - description: the custom object's name + in: path + name: name + required: true schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-accepts: application/json - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: - delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity + patch: + description: partially update scale of the specified cluster scoped custom object + operationId: patchClusterCustomObjectScale parameters: - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's group in: path - name: namespace + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true 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 + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -57933,232 +56540,81 @@ paths: name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - 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. - 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.' + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: orphanDependents + name: force 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: 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-patch+json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + description: The JSON schema of the Resource to patch. + type: object + application/merge-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-codegen-request-body-name: body - x-contentType: '*/*' + x-contentType: application/json-patch+json x-accepts: application/json - get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listNamespacedCSIStorageCapacity + put: + description: replace scale of the specified cluster scoped custom object + operationId: replaceClusterCustomObjectScale parameters: - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's group in: path - name: namespace + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - 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 + - description: the custom resource's version + in: path + name: version + required: true schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. Specify resourceVersion. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 - x-accepts: application/json - post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity - parameters: - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. in: path - name: namespace + name: plural required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -58176,110 +56632,79 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: '*/*': schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity + description: Deletes the specified namespace scoped custom object + operationId: deleteNamespacedCustomObject parameters: - - description: name of the CSIStorageCapacity + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: The duration in seconds before the object should be deleted. @@ -58299,17 +56724,22 @@ paths: name: orphanDependents schema: type: boolean - - description: 'Whether and how garbage collection will be performed. Either + - 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.' + the resource-specific default policy. in: query name: propagationPolicy schema: type: string + - description: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' + in: query + name: dryRun + schema: + type: string requestBody: content: '*/*': @@ -58321,58 +56751,49 @@ paths: 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' + type: object description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Status' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity + description: Returns a namespace scoped custom object + operationId: getNamespacedCustomObject parameters: - - description: name of the CSIStorageCapacity + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string responses: @@ -58380,44 +56801,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - description: OK + type: object + description: A single Resource "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-accepts: application/json patch: - description: partially update the specified CSIStorageCapacity - operationId: patchNamespacedCSIStorageCapacity + description: patch the specified namespace scoped custom object + operationId: patchNamespacedCustomObject parameters: - - description: name of the CSIStorageCapacity + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -58437,26 +56861,6 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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. @@ -58468,74 +56872,60 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/v1.Patch' + type: object application/merge-patch+json: schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' + type: object + description: The JSON schema of the Resource to patch. required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity + description: replace the specified namespace scoped custom object + operationId: replaceNamespacedCustomObject parameters: - - description: name of the CSIStorageCapacity + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: object name and auth scope, such as for teams and projects + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace in: path name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -58553,310 +56943,212 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: '*/*': schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object + description: The JSON schema of the Resource to replace. required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + type: object description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' - description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/storage.k8s.io/v1/storageclasses: - delete: - description: delete collection of StorageClass - operationId: deleteCollectionStorageClass + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: + get: + description: read status of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectStatus parameters: - - description: If 'true', then the output is pretty printed. - 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 + - description: the custom resource's group + in: path + name: group + required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: the custom resource's version + in: path + name: version + 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: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "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 + - description: The custom resource's namespace + in: path + name: namespace + required: true 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 + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true schema: type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch + - description: the custom object's name + in: path + name: name + required: true schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' + - custom_objects x-accepts: application/json - get: - description: list or watch objects of kind StorageClass - operationId: listStorageClass + patch: + description: partially update status of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectStatus parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's group + in: path + name: group + required: true schema: type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue + - description: the custom resource's version + in: path + name: version + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector + - description: The custom resource's namespace + in: path + name: namespace + 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: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + 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: |- - resourceVersion sets a constraint on what resource 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 + - description: the custom object's name + in: path + name: name + required: true 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: 'When present, indicates that modifications should not be persisted. + An invalid or unrecognized dryRun directive will result in an error response + and no further processing of the request. Valid values are: - All: all dry + run stages will be processed' in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. + - description: fieldManager is a name associated with the actor or entity that + is making these changes. The value must be less than or 128 characters long, + and only contain printable characters, as defined by https://golang.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: timeoutSeconds + name: fieldManager 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-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/merge-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/apply-patch+yaml: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClassList' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClassList' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClassList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.StorageClassList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.StorageClassList' + type: object description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + - custom_objects + x-codegen-request-body-name: body + x-contentType: application/json-patch+json x-accepts: application/json - post: - description: create a StorageClass - operationId: createStorageClass + put: + description: replace status of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectStatus parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -58874,230 +57166,134 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: '*/*': schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: '*/*' x-accepts: application/json - /apis/storage.k8s.io/v1/storageclasses/{name}: - delete: - description: delete a StorageClass - operationId: deleteStorageClass + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: + get: + description: read scale of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectScale parameters: - - description: name of the StorageClass + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true schema: type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun + - description: The custom resource's namespace + in: path + name: namespace + required: true schema: type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' - in: query - name: orphanDependents + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true 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 + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' + - custom_objects x-accepts: application/json - get: - description: read the specified StorageClass - operationId: readStorageClass + patch: + description: partially update scale of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectScale parameters: - - description: name of the StorageClass + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's version + in: path + name: version + required: true schema: type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 - x-accepts: application/json - patch: - description: partially update the specified StorageClass - operationId: patchStorageClass - parameters: - - description: name of the StorageClass + - description: The custom resource's namespace in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true schema: type: string - description: 'When present, indicates that modifications should not be persisted. @@ -59117,26 +57313,6 @@ paths: 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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. @@ -59148,632 +57324,73 @@ paths: content: application/json-patch+json: schema: - $ref: '#/components/schemas/v1.Patch' + description: The JSON schema of the Resource to patch. + type: object application/merge-patch+json: schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' + description: The JSON schema of the Resource to patch. + type: object application/apply-patch+yaml: schema: - $ref: '#/components/schemas/v1.Patch' + description: The JSON schema of the Resource to patch. + type: object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + type: object description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + - custom_objects x-codegen-request-body-name: body x-contentType: application/json-patch+json x-accepts: application/json put: - description: replace the specified StorageClass - operationId: replaceStorageClass + description: replace scale of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectScale parameters: - - description: name of the StorageClass + - description: the custom resource's group in: path - name: name + name: group required: true schema: type: string - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1.StorageClass' + - description: the custom resource's version + in: path + name: version required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/yaml: - schema: - $ref: '#/components/schemas/v1.StorageClass' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.StorageClass' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/storage.k8s.io/v1/volumeattachments: - delete: - description: delete collection of VolumeAttachment - operationId: deleteCollectionVolumeAttachment - parameters: - - description: If 'true', then the output is pretty printed. - 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: 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: 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: - '*/*': - 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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: list or watch objects of kind VolumeAttachment - operationId: listVolumeAttachment - parameters: - - description: If 'true', then the output is pretty printed. - 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: 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.VolumeAttachmentList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-accepts: application/json - post: - description: create a VolumeAttachment - operationId: createVolumeAttachment - parameters: - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/storage.k8s.io/v1/volumeattachments/{name}: - delete: - description: delete a VolumeAttachment - operationId: deleteVolumeAttachment - parameters: - - description: name of the VolumeAttachment + - description: The custom resource's namespace in: path - name: name + name: namespace required: true schema: type: string - - description: If 'true', then the output is pretty printed. - 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: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "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: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: read the specified VolumeAttachment - operationId: readVolumeAttachment - parameters: - - description: name of the VolumeAttachment + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. in: path - name: name + name: plural required: true schema: type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-accepts: application/json - patch: - description: partially update the specified VolumeAttachment - operationId: patchVolumeAttachment - parameters: - - description: name of the VolumeAttachment + - description: the custom object's name in: path name: name required: true schema: type: string - - description: If 'true', then the output is pretty printed. - 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 @@ -59785,40395 +57402,2414 @@ 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: type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: + '*/*': schema: - $ref: '#/components/schemas/v1.Patch' + type: object required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + type: object description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + type: object application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + type: object application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + type: object description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + - custom_objects x-codegen-request-body-name: body - x-contentType: application/json-patch+json + x-contentType: '*/*' x-accepts: application/json - put: - description: replace the specified VolumeAttachment - operationId: replaceVolumeAttachment - parameters: - - description: name of the VolumeAttachment - in: path +components: + schemas: + v1.MutatingWebhook: + description: MutatingWebhook describes an admission webhook and the resources + and operations it applies to. + example: + admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy name: name - required: true - schema: + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + properties: + admissionReviewVersions: + description: AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` + versions the Webhook expects. API server will try to use first version + in the list which it supports. If none of the versions specified in this + list supported by API server, validation will fail for this object. If + a persisted webhook configuration specifies allowed versions and does + not include any versions known to the API Server, calls to the webhook + will fail and be subject to the failure policy. + items: + type: string + type: array + clientConfig: + $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + failurePolicy: + description: FailurePolicy defines how unrecognized errors from the admission + endpoint are handled - allowed values are Ignore or Fail. Defaults to + Fail. type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + matchPolicy: + description: |- + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. + + Defaults to "Equivalent" type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an 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: + name: + description: The name of the admission webhook. Name should be fully qualified, + e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the + webhook, and kubernetes.io is the name of the organization. Required. type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. 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: + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + reinvocationPolicy: + description: |- + reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". + + Never: the webhook will not be called more than once in a single admission evaluation. + + IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. + + Defaults to "Never". type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: + rules: + description: Rules describes what operations on what resources/subresources + the webhook cares about. The webhook cares about an operation if it matches + _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and + MutatingAdmissionWebhooks from putting the cluster in a state which cannot + be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks + and MutatingAdmissionWebhooks are never called on admission requests for + ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + items: + $ref: '#/components/schemas/v1.RuleWithOperations' + type: array + sideEffects: + description: 'SideEffects states whether this webhook has side effects. + Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 + may also specify Some or Unknown). Webhooks with side effects MUST implement + a reconciliation system, since a request may be rejected by a future step + in the admission chain and the side effects therefore need to be undone. + Requests with the dryRun attribute will be auto-rejected if they match + a webhook with sideEffects == Unknown or Some.' type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/storage.k8s.io/v1/volumeattachments/{name}/status: - get: - description: read status of the specified VolumeAttachment - operationId: readVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: + timeoutSeconds: + description: TimeoutSeconds specifies the timeout for this webhook. After + the timeout passes, the webhook call will be ignored or the API call will + fail based on the failure policy. The timeout value must be between 1 + and 30 seconds. Default to 10 seconds. + format: int32 + type: integer + required: + - admissionReviewVersions + - clientConfig + - name + - sideEffects + type: object + v1.MutatingWebhookConfiguration: + description: MutatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and may change the object. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + 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 - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: get + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + webhooks: + description: Webhooks is a list of webhooks and the affected resources and + operations. + items: + $ref: '#/components/schemas/v1.MutatingWebhook' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: name + type: object x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfiguration version: v1 - x-accepts: application/json - patch: - description: partially update status of the specified VolumeAttachment - operationId: patchVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - 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: + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.MutatingWebhookConfigurationList: + description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + reinvocationPolicy: reinvocationPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 6 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: + items: + description: List of MutatingWebhookConfiguration. + items: + $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + type: array + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - - 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: patch + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfigurationList version: v1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace status of the specified VolumeAttachment - operationId: replaceVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.RuleWithOperations: + description: RuleWithOperations is a tuple of Operations and Resources. It is + recommended to make sure that all the tuple expansions are valid. + example: + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: APIGroups is the API groups the resources belong to. '*' is + all groups. If '*' is present, the length of the slice must be one. Required. + items: + type: string + type: array + 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 + 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 + 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 + scope: + description: scope specifies the scope of this rule. Valid values are "Cluster", + "Namespaced", and "*" "Cluster" means that only cluster-scoped resources + will match this rule. Namespace API objects are cluster-scoped. "Namespaced" + means that only namespaced resources will match this rule. "*" means that + there are no scope restrictions. Subresources match the scope of their + parent resource. Default is "*". + type: string + type: object + admissionregistration.v1.ServiceReference: + description: ServiceReference holds a reference to Service.legacy.k8s.io + example: + path: path + port: 0 name: name - required: true - schema: + namespace: namespace + properties: + name: + description: '`name` is the name of the service. Required' type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + namespace: + description: '`namespace` is the namespace of the service. Required' 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: + path: + description: '`path` is an optional URL path which will be sent in any request + to this service.' 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: + port: + description: If specified, the port on the service that hosting webhook. + Default to 443 for backward compatibility. `port` should be a valid port + number (1-65535, inclusive). + format: int32 + type: integer + required: + - name + - namespace + type: object + v1.ValidatingWebhook: + description: ValidatingWebhook describes an admission webhook and the resources + and operations it applies to. + example: + admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + properties: + admissionReviewVersions: + description: AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` + versions the Webhook expects. API server will try to use first version + in the list which it supports. If none of the versions specified in this + list supported by API server, validation will fail for this object. If + a persisted webhook configuration specifies allowed versions and does + not include any versions known to the API Server, calls to the webhook + will fail and be subject to the failure policy. + items: + type: string + type: array + clientConfig: + $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' + failurePolicy: + description: FailurePolicy defines how unrecognized errors from the admission + endpoint are handled - allowed values are Ignore or Fail. Defaults to + Fail. type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-contentType: '*/*' - 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/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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-accepts: application/json - /apis/storage.k8s.io/v1beta1/csistoragecapacities: - get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces - parameters: - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + matchPolicy: + description: |- + matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: 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. + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: If 'true', then the output is pretty printed. - 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. + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - Defaults to unset - in: query - name: resourceVersion - schema: + Defaults to "Equivalent" 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: + name: + description: The name of the admission webhook. Name should be fully qualified, + e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the + webhook, and kubernetes.io is the name of the organization. Required. type: string - - 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.CSIStorageCapacityList' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-accepts: application/json - /apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities: - delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity - parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + objectSelector: + $ref: '#/components/schemas/v1.LabelSelector' + rules: + description: Rules describes what operations on what resources/subresources + the webhook cares about. The webhook cares about an operation if it matches + _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and + MutatingAdmissionWebhooks from putting the cluster in a state which cannot + be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks + and MutatingAdmissionWebhooks are never called on admission requests for + ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + items: + $ref: '#/components/schemas/v1.RuleWithOperations' + type: array + sideEffects: + description: 'SideEffects states whether this webhook has side effects. + Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 + may also specify Some or Unknown). Webhooks with side effects MUST implement + a reconciliation system, since a request may be rejected by a future step + in the admission chain and the side effects therefore need to be undone. + Requests with the dryRun attribute will be auto-rejected if they match + a webhook with sideEffects == Unknown or Some.' type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + timeoutSeconds: + description: TimeoutSeconds specifies the timeout for this webhook. After + the timeout passes, the webhook call will be ignored or the API call will + fail based on the failure policy. The timeout value must be between 1 + and 30 seconds. Default to 10 seconds. + format: int32 + type: integer + required: + - admissionReviewVersions + - clientConfig + - name + - sideEffects + type: object + v1.ValidatingWebhookConfiguration: + description: ValidatingWebhookConfiguration describes the configuration of and + admission webhook that accept or reject and object without changing it. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is 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: + 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 - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an 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: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + webhooks: + description: Webhooks is a list of webhooks and the affected resources and + operations. + items: + $ref: '#/components/schemas/v1.ValidatingWebhook' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: name + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ValidatingWebhookConfigurationList: + description: ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + webhooks: + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + - admissionReviewVersions: + - admissionReviewVersions + - admissionReviewVersions + matchPolicy: matchPolicy + name: name + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + timeoutSeconds: 0 + rules: + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + clientConfig: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + sideEffects: sideEffects + kind: kind + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: + items: + description: List of ValidatingWebhookConfiguration. + items: + $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + type: array + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - - 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: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + admissionregistration.v1.WebhookClientConfig: + description: WebhookClientConfig contains the information to make a TLS connection + with the webhook + example: + caBundle: caBundle + service: + path: path + port: 0 + name: name + namespace: namespace + url: url + properties: + caBundle: + description: '`caBundle` is a PEM encoded CA bundle which will be used to + validate the webhook''s server certificate. If unspecified, system trust + roots on the apiserver are used.' + format: byte + pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + service: + $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' + url: + description: |- + `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' - in: query - name: orphanDependents - schema: - type: boolean - - description: 'Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. Acceptable values are: ''Orphan'' - - orphan the dependents; ''Background'' - allow the garbage collector to - delete the dependents in the background; ''Foreground'' - a cascading policy - that deletes all dependents in the foreground.' - in: query - name: propagationPolicy - schema: - type: string - - description: |- - resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - 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. + Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - Defaults to unset - in: query - name: resourceVersionMatch - schema: + The scheme must be "https"; the URL must begin with "https://". + + A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. + + Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. type: string - - 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: - '*/*': - 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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listNamespacedCSIStorageCapacity - parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + type: object + v1alpha1.ServerStorageVersion: + description: An API server instance reports the version it can decode and the + version it encodes objects to when persisting objects in the backend. + example: + apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + properties: + apiServerID: + description: The ID of the reporting API server. 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: + decodableVersions: + description: The API server can decode objects encoded in these versions. + The encodingVersion must be included in the decodableVersions. + items: + type: string + type: array + x-kubernetes-list-type: set + encodingVersion: + description: The API server encodes the object to this version when persisting + it in the backend (e.g., etcd). type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: + type: object + v1alpha1.StorageVersion: + description: Storage version of a specific resource. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: '{}' + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: + 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 - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked 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: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + description: Spec is an empty spec. It is here to comply with Kubernetes + API style. + properties: {} + type: object + status: + $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' + required: + - spec + - status + type: object + x-kubernetes-group-version-kind: + - group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha1.StorageVersionCondition: + description: Describes the state of the storageVersion at a certain point. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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: + message: + description: A human readable message indicating details about the transition. type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: + observedGeneration: + description: If set, this represents the .metadata.generation that the condition + was set based upon. + format: int64 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.CSIStorageCapacityList' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacityList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-accepts: application/json - post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity - parameters: - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: + reason: + description: The reason for the condition's last transition. type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + status: + description: Status of the condition, one of True, False, Unknown. 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: + description: Type of the condition. 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: + required: + - reason + - status + - type + type: object + v1alpha1.StorageVersionList: + description: A list of StorageVersions. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: '{}' + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: '{}' + status: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: 'fieldValidation instructs the server on how to handle objects - in the request (POST/PUT/PATCH) containing unknown or duplicate fields, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: + items: + description: Items holds a list of StorageVersion + items: + $ref: '#/components/schemas/v1alpha1.StorageVersion' + type: array + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: post + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}: - delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity - parameters: - - description: name of the CSIStorageCapacity - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: + - group: internal.apiserver.k8s.io + kind: StorageVersionList + version: v1alpha1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha1.StorageVersionStatus: + description: API server instances report the versions they can decode and the + version they encode objects to when persisting objects in the backend. + example: + commonEncodingVersion: commonEncodingVersion + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + storageVersions: + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + - apiServerID: apiServerID + decodableVersions: + - decodableVersions + - decodableVersions + encodingVersion: encodingVersion + properties: + commonEncodingVersion: + description: If all API server instances agree on the same encoding storage + version, then this field is set to that version. Otherwise this field + is left empty. API servers should finish updating its storageVersionStatus + entry before serving write operations, so that this field will be in sync + with the reality. type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + conditions: + description: The latest available observations of the storageVersion's state. + items: + $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + storageVersions: + description: The reported versions per API server instance. + items: + $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - apiServerID + type: object + v1.ControllerRevision: + description: ControllerRevision implements an immutable snapshot of state data. + Clients are responsible for serializing and deserializing the objects that + contain their internal state. Once a ControllerRevision has been successfully + created, it can not be updated. The API Server will fail validation of all + requests that attempt to mutate the Data field. ControllerRevisions may, however, + be deleted. Note that, due to its use by both the DaemonSet and StatefulSet + controllers for update and rollback, this object is beta. However, it may + be subject to name and representation changes in future releases, and clients + should not depend on its stability. It is primarily for internal use by controllers. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: '{}' + kind: kind + revision: 0 + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an 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: + data: + description: Data is the serialized representation of the state. + properties: {} + type: object + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - - 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: + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + revision: + description: Revision indicates the revision of the state represented by + Data. + format: int64 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 - requestBody: - content: - '*/*': - 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' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Status' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Status' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: delete + required: + - revision + type: object x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity - parameters: - - description: name of the CSIStorageCapacity - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: + - group: apps + kind: ControllerRevision + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ControllerRevisionList: + description: ControllerRevisionList is a resource containing a list of ControllerRevision + objects. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: '{}' + kind: kind + revision: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + data: '{}' + kind: kind + revision: 0 + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: + items: + description: Items is the list of ControllerRevisions + items: + $ref: '#/components/schemas/v1.ControllerRevision' + type: array + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: get + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-accepts: application/json - patch: - description: partially update the specified CSIStorageCapacity - operationId: patchNamespacedCSIStorageCapacity - parameters: - - description: name of the CSIStorageCapacity - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/strategic-merge-patch+json: - schema: - $ref: '#/components/schemas/v1.Patch' - application/apply-patch+yaml: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity - parameters: - - description: name of the CSIStorageCapacity - in: path - name: name - required: true - schema: - type: string - - description: object name and auth scope, such as for teams and projects - in: path - name: namespace - required: true - schema: - type: string - - description: If 'true', then the output is pretty printed. - 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, - provided that the `ServerSideFieldValidation` feature gate is also enabled. - Valid values are: - Ignore: This will ignore any unknown fields that are - silently dropped from the object, and will ignore all but the last duplicate - field that the decoder encounters. This is the default behavior prior to - v1.23 and is the default behavior when the `ServerSideFieldValidation` feature - gate is disabled. - Warn: This will send a warning via the standard warning - response header for each unknown field that is dropped from the object, - and for each duplicate field that is encountered. The request will still - succeed if there are no other errors, and will only persist the last of - any duplicate fields. This is the default when the `ServerSideFieldValidation` - feature gate is enabled. - Strict: This will fail the request with a BadRequest - error if any unknown fields would be dropped from the object, or 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: - '*/*': - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.CSIStorageCapacity' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - storage_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1beta1 - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/storage.k8s.io/v1beta1/watch/csistoragecapacities: {} - /apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities: {} - /apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities/{name}: {} - /logs/: - get: - operationId: logFileListHandler - responses: - "401": - content: {} - description: Unauthorized - tags: - - logs - x-accepts: application/json - /logs/{logpath}: - get: - operationId: logFileHandler - parameters: - - description: path to the log - in: path - name: logpath - required: true - schema: - type: string - responses: - "401": - content: {} - description: Unauthorized - tags: - - logs - x-accepts: application/json - /openid/v1/jwks/: - get: - description: get service account issuer OpenID JSON Web Key Set (contains public - token verification keys) - operationId: getServiceAccountIssuerOpenIDKeyset - responses: - "200": - content: - application/jwk-set+json: - schema: - type: string - description: OK - "401": - content: {} - description: Unauthorized - tags: - - openid - x-accepts: application/jwk-set+json - /version/: - get: - description: get the code version - operationId: getCode - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/version.Info' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - version - x-accepts: application/json - /apis/{group}/{version}/{plural}: - delete: - description: Delete collection of cluster scoped custom objects - operationId: deleteCollectionClusterCustomObject - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' - in: query - name: orphanDependents - schema: - type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. - in: query - name: propagationPolicy - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: list or watch cluster scoped custom objects - operationId: listClusterCustomObject - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, - this field is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: 'When specified with a watch call, shows changes that occur after - that particular version of a resource. Defaults to changes from the beginning - of history. When specified for list: - if unset, then the result is returned - from remote storage based on quorum-read flag; - if it''s 0, then we simply - return what we currently have in cache, no guarantee; - if set to non zero, - then the result is at least as fresh as given rv.' - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - type: object - application/json;stream=watch: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - post: - description: Creates a cluster scoped Custom object - operationId: createClusterCustomObject - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - description: The JSON schema of the Resource to create. - required: true - responses: - "201": - content: - application/json: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}: - delete: - description: Delete collection of namespace scoped custom objects - operationId: deleteCollectionNamespacedCustomObject - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' - in: query - name: orphanDependents - schema: - type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. - in: query - name: propagationPolicy - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: list or watch namespace scoped custom objects - operationId: listNamespacedCustomObject - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: allowWatchBookmarks requests watch events with type "BOOKMARK". - Servers that do not implement bookmarks may ignore this flag and bookmarks - are sent at the server's discretion. Clients should not assume bookmarks - are returned at any specific interval, nor may they assume the server will - send any BOOKMARK event during a session. If this is not a watch, this field - is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, - this field is ignored. - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - - This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. - - The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. - in: query - name: limit - schema: - type: integer - - description: 'When specified with a watch call, shows changes that occur after - that particular version of a resource. Defaults to changes from the beginning - of history. When specified for list: - if unset, then the result is returned - from remote storage based on quorum-read flag; - if it''s 0, then we simply - return what we currently have in cache, no guarantee; - if set to non zero, - then the result is at least as fresh as given rv.' - in: query - name: resourceVersion - schema: - type: string - - description: |- - resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: Timeout for the list/watch call. This limits the duration of - the call, regardless of any activity or inactivity. - in: query - name: timeoutSeconds - schema: - type: integer - - description: Watch for changes to the described resources and return them - as a stream of add, update, and remove notifications. - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - type: object - application/json;stream=watch: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - post: - description: Creates a namespace scoped Custom object - operationId: createNamespacedCustomObject - parameters: - - description: If 'true', then the output is pretty printed. - in: query - name: pretty - schema: - type: string - - description: The custom resource's group name - in: path - name: group - required: true - schema: - type: string - - description: The custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: The custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - description: The JSON schema of the Resource to create. - required: true - responses: - "201": - content: - application/json: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/{plural}/{name}: - delete: - description: Deletes the specified cluster scoped custom object - operationId: deleteClusterCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' - in: query - name: orphanDependents - schema: - type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. - in: query - name: propagationPolicy - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: Returns a cluster scoped custom object - operationId: getClusterCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - description: A single Resource - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: patch the specified cluster scoped custom object - operationId: patchClusterCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: Force is going to "force" 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-patch+json: - schema: - type: object - application/merge-patch+json: - schema: - type: object - description: The JSON schema of the Resource to patch. - required: true - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace the specified cluster scoped custom object - operationId: replaceClusterCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom object's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - description: The JSON schema of the Resource to replace. - required: true - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/{plural}/{name}/status: - get: - description: read status of the specified cluster scoped custom object - operationId: getClusterCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: partially update status of the specified cluster scoped custom - object - operationId: patchClusterCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: Force is going to "force" 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-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - application/merge-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace status of the cluster scoped specified custom object - operationId: replaceClusterCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "201": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/{plural}/{name}/scale: - get: - description: read scale of the specified custom object - operationId: getClusterCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: partially update scale of the specified cluster scoped custom object - operationId: patchClusterCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: Force is going to "force" 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-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - application/merge-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace scale of the specified cluster scoped custom object - operationId: replaceClusterCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "201": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: - delete: - description: Deletes the specified namespace scoped custom object - operationId: deleteNamespacedCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: The duration in seconds before the object should be deleted. - Value must be non-negative integer. The value zero indicates delete immediately. - If this value is nil, the default grace period for the specified type will - be used. Defaults to a per object value if not specified. zero means delete - immediately. - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: 'Deprecated: please use the PropagationPolicy, this field will - be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, - the "orphan" finalizer will be added to/removed from the object''s finalizers - list. Either this field or PropagationPolicy may be set, but not both.' - in: query - name: orphanDependents - schema: - type: boolean - - description: Whether and how garbage collection will be performed. Either - this field or OrphanDependents may be set, but not both. The default policy - is decided by the existing finalizer set in the metadata.finalizers and - the resource-specific default policy. - in: query - name: propagationPolicy - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - requestBody: - content: - '*/*': - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - get: - description: Returns a namespace scoped custom object - operationId: getNamespacedCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - description: A single Resource - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: patch the specified namespace scoped custom object - operationId: patchNamespacedCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: Force is going to "force" 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-patch+json: - schema: - type: object - application/merge-patch+json: - schema: - type: object - description: The JSON schema of the Resource to patch. - required: true - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace the specified namespace scoped custom object - operationId: replaceNamespacedCustomObject - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - description: The JSON schema of the Resource to replace. - required: true - responses: - "200": - content: - application/json: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: - get: - description: read status of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: partially update status of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: Force is going to "force" 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-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - application/merge-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - application/apply-patch+yaml: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace status of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectStatus - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "201": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: - get: - description: read scale of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-accepts: application/json - patch: - description: partially update scale of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - This field is required for apply requests (application/apply-patch) but - optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - in: query - name: fieldManager - schema: - type: string - - description: Force is going to "force" 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-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - application/merge-patch+json: - schema: - description: The JSON schema of the Resource to patch. - type: object - application/apply-patch+yaml: - schema: - description: The JSON schema of the Resource to patch. - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: application/json-patch+json - x-accepts: application/json - put: - description: replace scale of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectScale - parameters: - - description: the custom resource's group - in: path - name: group - required: true - schema: - type: string - - description: the custom resource's version - in: path - name: version - required: true - schema: - type: string - - description: The custom resource's namespace - in: path - name: namespace - required: true - schema: - type: string - - description: the custom resource's plural name. For TPRs this would be lowercase - plural kind. - in: path - name: plural - required: true - schema: - type: string - - description: the custom object's name - in: path - name: name - required: true - schema: - type: string - - description: 'When present, indicates that modifications should not be persisted. - An invalid or unrecognized dryRun directive will result in an error response - and no further processing of the request. Valid values are: - All: all dry - run stages will be processed' - in: query - name: dryRun - schema: - type: string - - description: fieldManager is a name associated with the actor or entity that - is making these changes. The value must be less than or 128 characters long, - and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - in: query - name: fieldManager - schema: - type: string - requestBody: - content: - '*/*': - schema: - type: object - required: true - responses: - "200": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: OK - "201": - content: - application/json: - schema: - type: object - application/yaml: - schema: - type: object - application/vnd.kubernetes.protobuf: - schema: - type: object - description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-contentType: '*/*' - x-accepts: application/json -components: - schemas: - v1.MutatingWebhook: - description: MutatingWebhook describes an admission webhook and the resources - and operations it applies to. - example: - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - properties: - admissionReviewVersions: - description: AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - versions the Webhook expects. API server will try to use first version - in the list which it supports. If none of the versions specified in this - list supported by API server, validation will fail for this object. If - a persisted webhook configuration specifies allowed versions and does - not include any versions known to the API Server, calls to the webhook - will fail and be subject to the failure policy. - items: - type: string - type: array - clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' - failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission - endpoint are handled - allowed values are Ignore or Fail. Defaults to - Fail. - type: string - matchPolicy: - description: |- - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - type: string - name: - description: The name of the admission webhook. Name should be fully qualified, - e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the - webhook, and kubernetes.io is the name of the organization. Required. - type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - reinvocationPolicy: - description: |- - reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Never: the webhook will not be called more than once in a single admission evaluation. - - IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. - - Defaults to "Never". - type: string - rules: - description: Rules describes what operations on what resources/subresources - the webhook cares about. The webhook cares about an operation if it matches - _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and - MutatingAdmissionWebhooks from putting the cluster in a state which cannot - be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks - and MutatingAdmissionWebhooks are never called on admission requests for - ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - items: - $ref: '#/components/schemas/v1.RuleWithOperations' - type: array - sideEffects: - description: 'SideEffects states whether this webhook has side effects. - Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 - may also specify Some or Unknown). Webhooks with side effects MUST implement - a reconciliation system, since a request may be rejected by a future step - in the admission chain and the side effects therefore need to be undone. - Requests with the dryRun attribute will be auto-rejected if they match - a webhook with sideEffects == Unknown or Some.' - type: string - timeoutSeconds: - description: TimeoutSeconds specifies the timeout for this webhook. After - the timeout passes, the webhook call will be ignored or the API call will - fail based on the failure policy. The timeout value must be between 1 - and 30 seconds. Default to 10 seconds. - format: int32 - type: integer - required: - - admissionReviewVersions - - clientConfig - - name - - sideEffects - type: object - v1.MutatingWebhookConfiguration: - description: MutatingWebhookConfiguration describes the configuration of and - admission webhook that accept or reject and may change the object. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - webhooks: - description: Webhooks is a list of webhooks and the affected resources and - operations. - items: - $ref: '#/components/schemas/v1.MutatingWebhook' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.MutatingWebhookConfigurationList: - description: MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - reinvocationPolicy: reinvocationPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 6 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: List of MutatingWebhookConfiguration. - items: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: MutatingWebhookConfigurationList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.RuleWithOperations: - description: RuleWithOperations is a tuple of Operations and Resources. It is - recommended to make sure that all the tuple expansions are valid. - example: - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - properties: - apiGroups: - description: APIGroups is the API groups the resources belong to. '*' is - all groups. If '*' is present, the length of the slice must be one. Required. - items: - type: string - type: array - 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 - 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 - 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 - scope: - description: scope specifies the scope of this rule. Valid values are "Cluster", - "Namespaced", and "*" "Cluster" means that only cluster-scoped resources - will match this rule. Namespace API objects are cluster-scoped. "Namespaced" - means that only namespaced resources will match this rule. "*" means that - there are no scope restrictions. Subresources match the scope of their - parent resource. Default is "*". - type: string - type: object - admissionregistration.v1.ServiceReference: - description: ServiceReference holds a reference to Service.legacy.k8s.io - example: - path: path - port: 0 - name: name - namespace: namespace - properties: - name: - description: '`name` is the name of the service. Required' - type: string - namespace: - description: '`namespace` is the namespace of the service. Required' - type: string - path: - description: '`path` is an optional URL path which will be sent in any request - to this service.' - type: string - port: - description: If specified, the port on the service that hosting webhook. - Default to 443 for backward compatibility. `port` should be a valid port - number (1-65535, inclusive). - format: int32 - type: integer - required: - - name - - namespace - type: object - v1.ValidatingWebhook: - description: ValidatingWebhook describes an admission webhook and the resources - and operations it applies to. - example: - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - properties: - admissionReviewVersions: - description: AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` - versions the Webhook expects. API server will try to use first version - in the list which it supports. If none of the versions specified in this - list supported by API server, validation will fail for this object. If - a persisted webhook configuration specifies allowed versions and does - not include any versions known to the API Server, calls to the webhook - will fail and be subject to the failure policy. - items: - type: string - type: array - clientConfig: - $ref: '#/components/schemas/admissionregistration.v1.WebhookClientConfig' - failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission - endpoint are handled - allowed values are Ignore or Fail. Defaults to - Fail. - type: string - matchPolicy: - description: |- - matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. - - Defaults to "Equivalent" - type: string - name: - description: The name of the admission webhook. Name should be fully qualified, - e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the - webhook, and kubernetes.io is the name of the organization. Required. - type: string - namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' - objectSelector: - $ref: '#/components/schemas/v1.LabelSelector' - rules: - description: Rules describes what operations on what resources/subresources - the webhook cares about. The webhook cares about an operation if it matches - _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and - MutatingAdmissionWebhooks from putting the cluster in a state which cannot - be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks - and MutatingAdmissionWebhooks are never called on admission requests for - ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. - items: - $ref: '#/components/schemas/v1.RuleWithOperations' - type: array - sideEffects: - description: 'SideEffects states whether this webhook has side effects. - Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 - may also specify Some or Unknown). Webhooks with side effects MUST implement - a reconciliation system, since a request may be rejected by a future step - in the admission chain and the side effects therefore need to be undone. - Requests with the dryRun attribute will be auto-rejected if they match - a webhook with sideEffects == Unknown or Some.' - type: string - timeoutSeconds: - description: TimeoutSeconds specifies the timeout for this webhook. After - the timeout passes, the webhook call will be ignored or the API call will - fail based on the failure policy. The timeout value must be between 1 - and 30 seconds. Default to 10 seconds. - format: int32 - type: integer - required: - - admissionReviewVersions - - clientConfig - - name - - sideEffects - type: object - v1.ValidatingWebhookConfiguration: - description: ValidatingWebhookConfiguration describes the configuration of and - admission webhook that accept or reject and object without changing it. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - webhooks: - description: Webhooks is a list of webhooks and the affected resources and - operations. - items: - $ref: '#/components/schemas/v1.ValidatingWebhook' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: name - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ValidatingWebhookConfigurationList: - description: ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - webhooks: - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - - admissionReviewVersions: - - admissionReviewVersions - - admissionReviewVersions - matchPolicy: matchPolicy - name: name - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - timeoutSeconds: 0 - rules: - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - clientConfig: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - failurePolicy: failurePolicy - sideEffects: sideEffects - kind: kind - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: List of ValidatingWebhookConfiguration. - items: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: admissionregistration.k8s.io - kind: ValidatingWebhookConfigurationList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - admissionregistration.v1.WebhookClientConfig: - description: WebhookClientConfig contains the information to make a TLS connection - with the webhook - example: - caBundle: caBundle - service: - path: path - port: 0 - name: name - namespace: namespace - url: url - properties: - caBundle: - description: '`caBundle` is a PEM encoded CA bundle which will be used to - validate the webhook''s server certificate. If unspecified, system trust - roots on the apiserver are used.' - format: byte - pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$ - type: string - service: - $ref: '#/components/schemas/admissionregistration.v1.ServiceReference' - url: - description: |- - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. - - The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. - - Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. - - The scheme must be "https"; the URL must begin with "https://". - - A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. - - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. - type: string - type: object - v1alpha1.ServerStorageVersion: - description: An API server instance reports the version it can decode and the - version it encodes objects to when persisting objects in the backend. - example: - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - properties: - apiServerID: - description: The ID of the reporting API server. - type: string - decodableVersions: - description: The API server can decode objects encoded in these versions. - The encodingVersion must be included in the decodableVersions. - items: - type: string - type: array - x-kubernetes-list-type: set - encodingVersion: - description: The API server encodes the object to this version when persisting - it in the backend (e.g., etcd). - type: string - type: object - v1alpha1.StorageVersion: - description: Storage version of a specific resource. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: '{}' - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - description: Spec is an empty spec. It is here to comply with Kubernetes - API style. - properties: {} - type: object - status: - $ref: '#/components/schemas/v1alpha1.StorageVersionStatus' - required: - - spec - - status - type: object - x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1alpha1.StorageVersionCondition: - description: Describes the state of the storageVersion at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time - type: string - message: - description: A human readable message indicating details about the transition. - type: string - observedGeneration: - description: If set, this represents the .metadata.generation that the condition - was set based upon. - format: int64 - type: integer - reason: - description: The reason for the condition's last transition. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of the condition. - type: string - required: - - reason - - status - - type - type: object - v1alpha1.StorageVersionList: - description: A list of StorageVersions. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: '{}' - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: '{}' - status: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: Items holds a list of StorageVersion - items: - $ref: '#/components/schemas/v1alpha1.StorageVersion' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: internal.apiserver.k8s.io - kind: StorageVersionList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.StorageVersionStatus: - description: API server instances report the versions they can decode and the - version they encode objects to when persisting objects in the backend. - example: - commonEncodingVersion: commonEncodingVersion - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - status: status - storageVersions: - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - - apiServerID: apiServerID - decodableVersions: - - decodableVersions - - decodableVersions - encodingVersion: encodingVersion - properties: - commonEncodingVersion: - description: If all API server instances agree on the same encoding storage - version, then this field is set to that version. Otherwise this field - is left empty. API servers should finish updating its storageVersionStatus - entry before serving write operations, so that this field will be in sync - with the reality. - type: string - conditions: - description: The latest available observations of the storageVersion's state. - items: - $ref: '#/components/schemas/v1alpha1.StorageVersionCondition' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - storageVersions: - description: The reported versions per API server instance. - items: - $ref: '#/components/schemas/v1alpha1.ServerStorageVersion' - type: array - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - apiServerID - type: object - v1.ControllerRevision: - description: ControllerRevision implements an immutable snapshot of state data. - Clients are responsible for serializing and deserializing the objects that - contain their internal state. Once a ControllerRevision has been successfully - created, it can not be updated. The API Server will fail validation of all - requests that attempt to mutate the Data field. ControllerRevisions may, however, - be deleted. Note that, due to its use by both the DaemonSet and StatefulSet - controllers for update and rollback, this object is beta. However, it may - be subject to name and representation changes in future releases, and clients - should not depend on its stability. It is primarily for internal use by controllers. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: '{}' - kind: kind - revision: 0 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - data: - description: Data is the serialized representation of the state. - properties: {} - type: object - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - revision: - description: Revision indicates the revision of the state represented by - Data. - format: int64 - type: integer - required: - - revision - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevision - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ControllerRevisionList: - description: ControllerRevisionList is a resource containing a list of ControllerRevision - objects. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: '{}' - kind: kind - revision: 0 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - data: '{}' - kind: kind - revision: 0 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: Items is the list of ControllerRevisions - items: - $ref: '#/components/schemas/v1.ControllerRevision' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: ControllerRevisionList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.DaemonSet: - description: DaemonSet represents the configuration of a daemon set. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - updateStrategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - revisionHistoryLimit: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - status: - numberUnavailable: 3 - updatedNumberScheduled: 4 - numberAvailable: 2 - numberMisscheduled: 7 - numberReady: 9 - currentNumberScheduled: 5 - collisionCount: 1 - desiredNumberScheduled: 5 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - observedGeneration: 2 - 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.DaemonSetSpec' - status: - $ref: '#/components/schemas/v1.DaemonSetStatus' - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: DaemonSet - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.DaemonSetCondition: - description: DaemonSetCondition describes the state of a DaemonSet at a certain - point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of DaemonSet condition. - type: string - required: - - status - - type - type: object - v1.DaemonSetList: - description: DaemonSetList is a collection of daemon sets. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - updateStrategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - revisionHistoryLimit: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - status: - numberUnavailable: 3 - updatedNumberScheduled: 4 - numberAvailable: 2 - numberMisscheduled: 7 - numberReady: 9 - currentNumberScheduled: 5 - collisionCount: 1 - desiredNumberScheduled: 5 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - observedGeneration: 2 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - updateStrategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - revisionHistoryLimit: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - status: - numberUnavailable: 3 - updatedNumberScheduled: 4 - numberAvailable: 2 - numberMisscheduled: 7 - numberReady: 9 - currentNumberScheduled: 5 - collisionCount: 1 - desiredNumberScheduled: 5 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - observedGeneration: 2 - 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: A list of daemon sets. - items: - $ref: '#/components/schemas/v1.DaemonSet' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: DaemonSetList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.DaemonSetSpec: - description: DaemonSetSpec is the specification of a daemon set. - example: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - updateStrategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - revisionHistoryLimit: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - properties: - minReadySeconds: - description: The minimum number of seconds for which a newly created DaemonSet - pod should be ready without any of its container crashing, for it to be - considered available. Defaults to 0 (pod will be considered available - as soon as it is ready). - format: int32 - type: integer - revisionHistoryLimit: - description: The number of old history to retain to allow rollback. This - is a pointer to distinguish between explicit zero and not specified. Defaults - to 10. - format: int32 - type: integer - selector: - $ref: '#/components/schemas/v1.LabelSelector' - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - updateStrategy: - $ref: '#/components/schemas/v1.DaemonSetUpdateStrategy' - required: - - selector - - template - type: object - v1.DaemonSetStatus: - description: DaemonSetStatus represents the current status of a daemon set. - example: - numberUnavailable: 3 - updatedNumberScheduled: 4 - numberAvailable: 2 - numberMisscheduled: 7 - numberReady: 9 - currentNumberScheduled: 5 - collisionCount: 1 - desiredNumberScheduled: 5 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - observedGeneration: 2 - properties: - collisionCount: - description: Count of hash collisions for the DaemonSet. The DaemonSet controller - uses this field as a collision avoidance mechanism when it needs to create - the name for the newest ControllerRevision. - format: int32 - type: integer - conditions: - description: Represents the latest available observations of a DaemonSet's - current state. - items: - $ref: '#/components/schemas/v1.DaemonSetCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - currentNumberScheduled: - description: 'The number of nodes that are running at least 1 daemon pod - and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/' - format: int32 - type: integer - desiredNumberScheduled: - description: 'The total number of nodes that should be running the daemon - pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/' - format: int32 - type: integer - numberAvailable: - description: The number of nodes that should be running the daemon pod and - have one or more of the daemon pod running and available (ready for at - least spec.minReadySeconds) - format: int32 - type: integer - numberMisscheduled: - description: 'The number of nodes that are running the daemon pod, but are - not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/' - format: int32 - type: integer - numberReady: - description: numberReady is the number of nodes that should be running the - daemon pod and have one or more of the daemon pod running with a Ready - Condition. - format: int32 - type: integer - numberUnavailable: - description: The number of nodes that should be running the daemon pod and - have none of the daemon pod running and available (ready for at least - spec.minReadySeconds) - format: int32 - type: integer - observedGeneration: - description: The most recent generation observed by the daemon set controller. - format: int64 - type: integer - updatedNumberScheduled: - description: The total number of nodes that are running updated daemon pod - format: int32 - type: integer - required: - - currentNumberScheduled - - desiredNumberScheduled - - numberMisscheduled - - numberReady - type: object - v1.DaemonSetUpdateStrategy: - description: DaemonSetUpdateStrategy is a struct used to control the update - strategy for a DaemonSet. - example: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - properties: - rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateDaemonSet' - type: - description: |+ - Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - - type: string - type: object - v1.Deployment: - description: Deployment enables declarative updates for Pods and ReplicaSets. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - paused: true - replicas: 1 - revisionHistoryLimit: 5 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - strategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - progressDeadlineSeconds: 6 - status: - unavailableReplicas: 2 - replicas: 3 - readyReplicas: 9 - collisionCount: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 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 - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 7 - 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.DeploymentSpec' - status: - $ref: '#/components/schemas/v1.DeploymentStatus' - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: Deployment - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.DeploymentCondition: - description: DeploymentCondition describes the state of a deployment at a certain - point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status to another. - format: date-time - type: string - lastUpdateTime: - description: The last time this condition was updated. - format: date-time - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of deployment condition. - type: string - required: - - status - - type - type: object - v1.DeploymentList: - description: DeploymentList is a list of Deployments. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - paused: true - replicas: 1 - revisionHistoryLimit: 5 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - strategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - progressDeadlineSeconds: 6 - status: - unavailableReplicas: 2 - replicas: 3 - readyReplicas: 9 - collisionCount: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 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 - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 7 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - paused: true - replicas: 1 - revisionHistoryLimit: 5 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - strategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - progressDeadlineSeconds: 6 - status: - unavailableReplicas: 2 - replicas: 3 - readyReplicas: 9 - collisionCount: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 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 - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 7 - 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 Deployments. - items: - $ref: '#/components/schemas/v1.Deployment' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: DeploymentList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.DeploymentSpec: - description: DeploymentSpec is the specification of the desired behavior of - the Deployment. - example: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - paused: true - replicas: 1 - revisionHistoryLimit: 5 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - strategy: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - progressDeadlineSeconds: 6 - properties: - minReadySeconds: - description: Minimum number of seconds for which a newly created pod should - be ready without any of its container crashing, for it to be considered - available. Defaults to 0 (pod will be considered available as soon as - it is ready) - format: int32 - type: integer - paused: - description: Indicates that the deployment is paused. - type: boolean - progressDeadlineSeconds: - description: The maximum time in seconds for a deployment to make progress - before it is considered to be failed. The deployment controller will continue - to process failed deployments and a condition with a ProgressDeadlineExceeded - reason will be surfaced in the deployment status. Note that progress will - not be estimated during the time a deployment is paused. Defaults to 600s. - format: int32 - type: integer - replicas: - description: Number of desired pods. This is a pointer to distinguish between - explicit zero and not specified. Defaults to 1. - format: int32 - type: integer - revisionHistoryLimit: - description: The number of old ReplicaSets to retain to allow rollback. - This is a pointer to distinguish between explicit zero and not specified. - Defaults to 10. - format: int32 - type: integer - selector: - $ref: '#/components/schemas/v1.LabelSelector' - strategy: - $ref: '#/components/schemas/v1.DeploymentStrategy' - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - required: - - selector - - template - type: object - v1.DeploymentStatus: - description: DeploymentStatus is the most recently observed status of the Deployment. - example: - unavailableReplicas: 2 - replicas: 3 - readyReplicas: 9 - collisionCount: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastUpdateTime: 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 - lastUpdateTime: 2000-01-23T04:56:07.000+00:00 - status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 7 - properties: - availableReplicas: - description: Total number of available pods (ready for at least minReadySeconds) - targeted by this deployment. - format: int32 - type: integer - collisionCount: - description: Count of hash collisions for the Deployment. The Deployment - controller uses this field as a collision avoidance mechanism when it - needs to create the name for the newest ReplicaSet. - format: int32 - type: integer - conditions: - description: Represents the latest available observations of a deployment's - current state. - items: - $ref: '#/components/schemas/v1.DeploymentCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - observedGeneration: - description: The generation observed by the deployment controller. - format: int64 - type: integer - readyReplicas: - description: readyReplicas is the number of pods targeted by this Deployment - with a Ready Condition. - format: int32 - type: integer - replicas: - description: Total number of non-terminated pods targeted by this deployment - (their labels match the selector). - format: int32 - type: integer - unavailableReplicas: - description: Total number of unavailable pods targeted by this deployment. - This is the total number of pods that are still required for the deployment - to have 100% available capacity. They may either be pods that are running - but not yet available or pods that still have not been created. - format: int32 - type: integer - updatedReplicas: - description: Total number of non-terminated pods targeted by this deployment - that have the desired template spec. - format: int32 - type: integer - type: object - v1.DeploymentStrategy: - description: DeploymentStrategy describes how to replace existing pods with - new ones. - example: - type: type - rollingUpdate: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - properties: - rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateDeployment' - type: - description: |+ - Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - - type: string - type: object - v1.ReplicaSet: - description: ReplicaSet ensures that a specified number of pod replicas are - running at any given time. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - availableReplicas: 1 - observedGeneration: 5 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ReplicaSetSpec' - status: - $ref: '#/components/schemas/v1.ReplicaSetStatus' - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: ReplicaSet - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ReplicaSetCondition: - description: ReplicaSetCondition describes the state of a replica set at a certain - point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: The last time the condition transitioned from one status to - another. - format: date-time - type: string - message: - description: A human readable message indicating details about the transition. - type: string - reason: - description: The reason for the condition's last transition. - type: string - status: - description: Status of the condition, one of True, False, Unknown. - type: string - type: - description: Type of replica set condition. - type: string - required: - - status - - type - type: object - v1.ReplicaSetList: - description: ReplicaSetList is a collection of ReplicaSets. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - availableReplicas: 1 - observedGeneration: 5 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - status: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - availableReplicas: 1 - observedGeneration: 5 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: 'List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller' - items: - $ref: '#/components/schemas/v1.ReplicaSet' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: apps - kind: ReplicaSetList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ReplicaSetSpec: - description: ReplicaSetSpec is the specification of a ReplicaSet. - example: - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - replicas: 6 - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - properties: - minReadySeconds: - description: Minimum number of seconds for which a newly created pod should - be ready without any of its container crashing, for it to be considered - available. Defaults to 0 (pod will be considered available as soon as - it is ready) - format: int32 - type: integer - replicas: - description: 'Replicas is the number of desired replicas. This is a pointer - to distinguish between explicit zero and unspecified. Defaults to 1. More - info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller' - format: int32 - type: integer - selector: - $ref: '#/components/schemas/v1.LabelSelector' - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - required: - - selector - type: object - v1.ReplicaSetStatus: - description: ReplicaSetStatus represents the current status of a ReplicaSet. - example: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - availableReplicas: 1 - observedGeneration: 5 - properties: - availableReplicas: - description: The number of available replicas (ready for at least minReadySeconds) - for this replica set. - format: int32 - type: integer - conditions: - description: Represents the latest available observations of a replica set's - current state. - items: - $ref: '#/components/schemas/v1.ReplicaSetCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - fullyLabeledReplicas: - description: The number of pods that have labels matching the labels of - the pod template of the replicaset. - format: int32 - type: integer - observedGeneration: - description: ObservedGeneration reflects the generation of the most recently - observed ReplicaSet. - format: int64 - type: integer - readyReplicas: - description: readyReplicas is the number of pods targeted by this ReplicaSet - with a Ready Condition. - format: int32 - type: integer - replicas: - description: 'Replicas is the most recently oberved number of replicas. - More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller' - format: int32 - type: integer - required: - - replicas - type: object - v1.RollingUpdateDaemonSet: - description: Spec to control the desired behavior of daemon set rolling update. - example: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - properties: - maxSurge: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - maxUnavailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - type: object - v1.RollingUpdateDeployment: - description: Spec to control the desired behavior of rolling update. - example: - maxSurge: maxSurge - maxUnavailable: maxUnavailable - properties: - maxSurge: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - maxUnavailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - type: object - v1.RollingUpdateStatefulSetStrategy: - description: RollingUpdateStatefulSetStrategy is used to communicate parameter - for RollingUpdateStatefulSetStrategyType. - example: - partition: 5 - maxUnavailable: maxUnavailable - properties: - maxUnavailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - partition: - description: Partition indicates the ordinal at which the StatefulSet should - be partitioned for updates. During a rolling update, all pods from ordinal - Replicas-1 to Partition are updated. All pods from ordinal Partition-1 - to 0 remain untouched. This is helpful in being able to do a canary based - deployment. The default value is 0. - format: int32 - type: integer - type: object - v1.StatefulSet: - 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. + - group: apps + kind: ControllerRevisionList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.DaemonSet: + description: DaemonSet represents the configuration of a daemon set. example: metadata: generation: 6 @@ -100218,7 +59854,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -100269,7 +59904,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -100360,8 +59994,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -100378,8 +60014,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -100396,6 +60037,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -100461,7 +60105,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -100829,7 +60472,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -101630,6 +61272,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -102981,17 +62624,12 @@ components: - namespaces weight: 1 hostPID: true - podManagementPolicy: podManagementPolicy updateStrategy: type: type rollingUpdate: - partition: 5 + maxSurge: maxSurge maxUnavailable: maxUnavailable - replicas: 6 - persistentVolumeClaimRetentionPolicy: - whenScaled: whenScaled - whenDeleted: whenDeleted - revisionHistoryLimit: 1 + revisionHistoryLimit: 6 selector: matchExpressions: - values: @@ -103007,219 +62645,15 @@ components: matchLabels: key: matchLabels minReadySeconds: 0 - serviceName: serviceName - volumeClaimTemplates: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} status: - currentRevision: currentRevision - replicas: 2 - updateRevision: updateRevision - readyReplicas: 3 - collisionCount: 2 - currentReplicas: 7 + numberUnavailable: 3 + updatedNumberScheduled: 4 + numberAvailable: 2 + numberMisscheduled: 7 + numberReady: 9 + currentNumberScheduled: 5 + collisionCount: 1 + desiredNumberScheduled: 5 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -103231,9 +62665,7 @@ components: message: message type: type status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 9 + observedGeneration: 2 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -103248,19 +62680,19 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.StatefulSetSpec' + $ref: '#/components/schemas/v1.DaemonSetSpec' status: - $ref: '#/components/schemas/v1.StatefulSetStatus' + $ref: '#/components/schemas/v1.DaemonSetStatus' type: object x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet + kind: DaemonSet version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.StatefulSetCondition: - description: StatefulSetCondition describes the state of a statefulset at a - certain point. + v1.DaemonSetCondition: + description: DaemonSetCondition describes the state of a DaemonSet at a certain + point. example: reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -103282,14 +62714,14 @@ components: description: Status of the condition, one of True, False, Unknown. type: string type: - description: Type of statefulset condition. + description: Type of DaemonSet condition. type: string required: - status - type type: object - v1.StatefulSetList: - description: StatefulSetList is a collection of StatefulSets. + v1.DaemonSetList: + description: DaemonSetList is a collection of daemon sets. example: metadata: remainingItemCount: 1 @@ -103342,7 +62774,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -103393,7 +62824,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -103484,8 +62914,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -103502,8 +62934,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -103520,6 +62957,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -103585,7 +63025,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -103953,7 +63392,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -104754,6 +64192,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -106105,17 +65544,12 @@ components: - namespaces weight: 1 hostPID: true - podManagementPolicy: podManagementPolicy updateStrategy: type: type rollingUpdate: - partition: 5 + maxSurge: maxSurge maxUnavailable: maxUnavailable - replicas: 6 - persistentVolumeClaimRetentionPolicy: - whenScaled: whenScaled - whenDeleted: whenDeleted - revisionHistoryLimit: 1 + revisionHistoryLimit: 6 selector: matchExpressions: - values: @@ -106131,219 +65565,15 @@ components: matchLabels: key: matchLabels minReadySeconds: 0 - serviceName: serviceName - volumeClaimTemplates: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} status: - currentRevision: currentRevision - replicas: 2 - updateRevision: updateRevision - readyReplicas: 3 - collisionCount: 2 - currentReplicas: 7 + numberUnavailable: 3 + updatedNumberScheduled: 4 + numberAvailable: 2 + numberMisscheduled: 7 + numberReady: 9 + currentNumberScheduled: 5 + collisionCount: 1 + desiredNumberScheduled: 5 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -106355,9 +65585,7 @@ components: message: message type: type status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 9 + observedGeneration: 2 - metadata: generation: 6 finalizers: @@ -106401,7 +65629,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -106452,7 +65679,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -106543,8 +65769,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -106561,8 +65789,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -106579,6 +65812,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -106644,7 +65880,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -107012,7 +66247,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -107813,6 +67047,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -109164,17 +68399,12 @@ components: - namespaces weight: 1 hostPID: true - podManagementPolicy: podManagementPolicy updateStrategy: type: type rollingUpdate: - partition: 5 + maxSurge: maxSurge maxUnavailable: maxUnavailable - replicas: 6 - persistentVolumeClaimRetentionPolicy: - whenScaled: whenScaled - whenDeleted: whenDeleted - revisionHistoryLimit: 1 + revisionHistoryLimit: 6 selector: matchExpressions: - values: @@ -109190,219 +68420,15 @@ components: matchLabels: key: matchLabels minReadySeconds: 0 - serviceName: serviceName - volumeClaimTemplates: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} status: - currentRevision: currentRevision - replicas: 2 - updateRevision: updateRevision - readyReplicas: 3 - collisionCount: 2 - currentReplicas: 7 + numberUnavailable: 3 + updatedNumberScheduled: 4 + numberAvailable: 2 + numberMisscheduled: 7 + numberReady: 9 + currentNumberScheduled: 5 + collisionCount: 1 + desiredNumberScheduled: 5 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -109414,9 +68440,7 @@ components: message: message type: type status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 9 + observedGeneration: 2 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -109424,9 +68448,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: Items is the list of stateful sets. + description: A list of daemon sets. items: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: '#/components/schemas/v1.DaemonSet' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -109440,33 +68464,12 @@ components: type: object x-kubernetes-group-version-kind: - group: apps - kind: StatefulSetList + kind: DaemonSetList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.StatefulSetPersistentVolumeClaimRetentionPolicy: - description: StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy - used for PVCs created from the StatefulSet VolumeClaimTemplates. - example: - whenScaled: whenScaled - whenDeleted: whenDeleted - properties: - whenDeleted: - description: WhenDeleted specifies what happens to PVCs created from StatefulSet - VolumeClaimTemplates when the StatefulSet is deleted. The default policy - of `Retain` causes PVCs to not be affected by StatefulSet deletion. The - `Delete` policy causes those PVCs to be deleted. - type: string - whenScaled: - description: WhenScaled specifies what happens to PVCs created from StatefulSet - VolumeClaimTemplates when the StatefulSet is scaled down. The default - policy of `Retain` causes PVCs to not be affected by a scaledown. The - `Delete` policy causes the associated PVCs for any excess pods above the - replica count to be deleted. - type: string - type: object - v1.StatefulSetSpec: - description: A StatefulSetSpec is the specification of a StatefulSet. + v1.DaemonSetSpec: + description: DaemonSetSpec is the specification of a daemon set. example: template: metadata: @@ -109512,7 +68515,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -109603,8 +68605,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -109621,8 +68625,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -109639,6 +68648,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -109704,7 +68716,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -110072,7 +69083,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -110873,6 +69883,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -112224,17 +71235,12 @@ components: - namespaces weight: 1 hostPID: true - podManagementPolicy: podManagementPolicy updateStrategy: type: type rollingUpdate: - partition: 5 + maxSurge: maxSurge maxUnavailable: maxUnavailable - replicas: 6 - persistentVolumeClaimRetentionPolicy: - whenScaled: whenScaled - whenDeleted: whenDeleted - revisionHistoryLimit: 1 + revisionHistoryLimit: 6 selector: matchExpressions: - values: @@ -112247,1105 +71253,137 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - minReadySeconds: 0 - serviceName: serviceName - volumeClaimTemplates: - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - status: - phase: phase - allocatedResources: {} - accessModes: - - accessModes - - accessModes - resizeStatus: resizeStatus - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - capacity: {} - properties: - minReadySeconds: - description: Minimum number of seconds for which a newly created pod should - be ready without any of its container crashing for it to be considered - available. Defaults to 0 (pod will be considered available as soon as - it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds - feature gate. - format: int32 - type: integer - persistentVolumeClaimRetentionPolicy: - $ref: '#/components/schemas/v1.StatefulSetPersistentVolumeClaimRetentionPolicy' - podManagementPolicy: - description: |+ - podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - - type: string - replicas: - description: replicas is the desired number of replicas of the given Template. - These are replicas in the sense that they are instantiations of the same - Template, but individual replicas also have a consistent identity. If - unspecified, defaults to 1. - format: int32 - type: integer - revisionHistoryLimit: - description: revisionHistoryLimit is the maximum number of revisions that - will be maintained in the StatefulSet's revision history. The revision - history consists of all revisions not represented by a currently applied - StatefulSetSpec version. The default value is 10. - format: int32 - type: integer - selector: - $ref: '#/components/schemas/v1.LabelSelector' - serviceName: - description: 'serviceName is the name of the service that governs this StatefulSet. - This service must exist before the StatefulSet, and is responsible for - the network identity of the set. Pods get DNS/hostnames that follow the - pattern: pod-specific-string.serviceName.default.svc.cluster.local where - "pod-specific-string" is managed by the StatefulSet controller.' - type: string - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - updateStrategy: - $ref: '#/components/schemas/v1.StatefulSetUpdateStrategy' - volumeClaimTemplates: - description: volumeClaimTemplates is a list of claims that pods are allowed - to reference. The StatefulSet controller is responsible for mapping network - identities to claims in a way that maintains the identity of a pod. Every - claim in this list must have at least one matching (by name) volumeMount - in one container in the template. A claim in this list takes precedence - over any volumes in the template, with the same name. - items: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' - type: array - required: - - selector - - serviceName - - template - type: object - v1.StatefulSetStatus: - description: StatefulSetStatus represents the current state of a StatefulSet. - example: - currentRevision: currentRevision - replicas: 2 - updateRevision: updateRevision - readyReplicas: 3 - collisionCount: 2 - currentReplicas: 7 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - updatedReplicas: 4 - availableReplicas: 5 - observedGeneration: 9 - properties: - availableReplicas: - description: Total number of available pods (ready for at least minReadySeconds) - targeted by this statefulset. This is a beta field and enabled/disabled - by StatefulSetMinReadySeconds feature gate. - format: int32 - type: integer - collisionCount: - description: collisionCount is the count of hash collisions for the StatefulSet. - The StatefulSet controller uses this field as a collision avoidance mechanism - when it needs to create the name for the newest ControllerRevision. - format: int32 - type: integer - conditions: - description: Represents the latest available observations of a statefulset's - current state. - items: - $ref: '#/components/schemas/v1.StatefulSetCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-patch-merge-key: type - currentReplicas: - description: currentReplicas is the number of Pods created by the StatefulSet - controller from the StatefulSet version indicated by currentRevision. - format: int32 - type: integer - currentRevision: - description: currentRevision, if not empty, indicates the version of the - StatefulSet used to generate Pods in the sequence [0,currentReplicas). - type: string - observedGeneration: - description: observedGeneration is the most recent generation observed for - this StatefulSet. It corresponds to the StatefulSet's generation, which - is updated on mutation by the API Server. - format: int64 - type: integer - readyReplicas: - description: readyReplicas is the number of pods created for this StatefulSet - with a Ready Condition. - format: int32 - type: integer - replicas: - description: replicas is the number of Pods created by the StatefulSet controller. - format: int32 - type: integer - updateRevision: - description: updateRevision, if not empty, indicates the version of the - StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) - type: string - updatedReplicas: - description: updatedReplicas is the number of Pods created by the StatefulSet - controller from the StatefulSet version indicated by updateRevision. - format: int32 - type: integer - required: - - replicas - type: object - v1.StatefulSetUpdateStrategy: - 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. - example: - type: type - rollingUpdate: - partition: 5 - maxUnavailable: maxUnavailable - properties: - rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateStatefulSetStrategy' - type: - description: |+ - Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - - type: string - type: object - v1.BoundObjectReference: - description: BoundObjectReference is a reference to an object that a token is - bound to. - example: - uid: uid - apiVersion: apiVersion - kind: kind - name: name - properties: - apiVersion: - description: API version of the referent. - type: string - kind: - description: Kind of the referent. Valid kinds are 'Pod' and 'Secret'. - type: string - name: - description: Name of the referent. - type: string - uid: - description: UID of the referent. - type: string - type: object - authentication.v1.TokenRequest: - description: TokenRequest requests a token for a given service account. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - boundObjectRef: - uid: uid - apiVersion: apiVersion - kind: kind - name: name - expirationSeconds: 0 - audiences: - - audiences - - audiences - status: - expirationTimestamp: 2000-01-23T04:56:07.000+00:00 - token: token - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.TokenRequestSpec' - status: - $ref: '#/components/schemas/v1.TokenRequestStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: TokenRequest - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.TokenRequestSpec: - description: TokenRequestSpec contains client provided parameters of a token - request. - example: - boundObjectRef: - uid: uid - apiVersion: apiVersion - kind: kind - name: name - expirationSeconds: 0 - audiences: - - audiences - - audiences - properties: - audiences: - description: Audiences are the intendend audiences of the token. A recipient - of a token must identitfy themself with an identifier in the list of audiences - of the token, and otherwise should reject the token. A token issued for - multiple audiences may be used to authenticate against any of the audiences - listed but implies a high degree of trust between the target audiences. - items: - type: string - type: array - boundObjectRef: - $ref: '#/components/schemas/v1.BoundObjectReference' - expirationSeconds: - description: ExpirationSeconds is the requested duration of validity of - the request. The token issuer may return a token with a different validity - duration so a client needs to check the 'expiration' field in a response. - format: int64 - type: integer - required: - - audiences - type: object - v1.TokenRequestStatus: - description: TokenRequestStatus is the result of a token request. - example: - expirationTimestamp: 2000-01-23T04:56:07.000+00:00 - token: token - properties: - expirationTimestamp: - description: ExpirationTimestamp is the time of expiration of the returned - token. - format: date-time - type: string - token: - description: Token is the opaque bearer token. - type: string - required: - - expirationTimestamp - - token - type: object - v1.TokenReview: - description: 'TokenReview attempts to authenticate a token to a known user. - Note: TokenReview requests may be cached by the webhook token authenticator - plugin in the kube-apiserver.' - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - audiences: - - audiences - - audiences - token: token - status: - authenticated: true - audiences: - - audiences - - audiences - error: error - user: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.TokenReviewSpec' - status: - $ref: '#/components/schemas/v1.TokenReviewStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authentication.k8s.io - kind: TokenReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.TokenReviewSpec: - description: TokenReviewSpec is a description of the token authentication request. - example: - audiences: - - audiences - - audiences - token: token - properties: - audiences: - description: Audiences is a list of the identifiers that the resource server - presented with the token identifies as. Audience-aware token authenticators - will verify that the token was intended for at least one of the audiences - in this list. If no audiences are provided, the audience will default - to the audience of the Kubernetes apiserver. - items: - type: string - type: array - token: - description: Token is the opaque bearer token. - type: string - type: object - v1.TokenReviewStatus: - description: TokenReviewStatus is the result of the token authentication request. - example: - authenticated: true - audiences: - - audiences - - audiences - error: error - user: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - audiences: - description: Audiences are audience identifiers chosen by the authenticator - that are compatible with both the TokenReview and token. An identifier - is any identifier in the intersection of the TokenReviewSpec audiences - and the token's audiences. A client of the TokenReview API that sets the - spec.audiences field should validate that a compatible audience identifier - is returned in the status.audiences field to ensure that the TokenReview - server is audience aware. If a TokenReview returns an empty status.audience - field where status.authenticated is "true", the token is valid against - the audience of the Kubernetes API server. - items: - type: string - type: array - authenticated: - description: Authenticated indicates that the token was associated with - a known user. - type: boolean - error: - description: Error indicates that the token couldn't be checked - type: string - user: - $ref: '#/components/schemas/v1.UserInfo' - type: object - v1.UserInfo: - description: UserInfo holds the information about the user needed to implement - the user.Info interface. - example: - uid: uid - extra: - key: - - extra - - extra - groups: - - groups - - groups - username: username - properties: - extra: - additionalProperties: - items: - type: string - type: array - description: Any additional information provided by the authenticator. - type: object - groups: - description: The names of groups this user is a part of. - items: - type: string - type: array - uid: - description: A unique value that identifies this user across time. If this - user is deleted and another user by the same name is added, they will - have different UIDs. - type: string - username: - description: The name that uniquely identifies this user among all active - users. - type: string - type: object - v1.LocalSubjectAccessReview: - 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. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - uid: uid - nonResourceAttributes: - path: path - verb: verb - extra: - key: - - extra - - extra - groups: - - groups - - groups - resourceAttributes: - resource: resource - subresource: subresource - name: name - namespace: namespace - verb: verb - version: version - group: group - user: user - status: - reason: reason - allowed: true - evaluationError: evaluationError - denied: true - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' - status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authorization.k8s.io - kind: LocalSubjectAccessReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.NonResourceAttributes: - description: NonResourceAttributes includes the authorization attributes available - for non-resource requests to the Authorizer interface - example: - path: path - verb: verb - properties: - path: - description: Path is the URL path of the request - type: string - verb: - description: Verb is the standard HTTP verb - type: string - type: object - v1.NonResourceRule: - description: NonResourceRule holds information that describes a rule for the - non-resource - example: - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs + matchLabels: + key: matchLabels + minReadySeconds: 0 properties: - nonResourceURLs: - description: NonResourceURLs is a set of partial urls that a user should - have access to. *s are allowed, but only as the full, final step in the - path. "*" means all. - items: - type: string - type: array - verbs: - description: 'Verb is a list of kubernetes non-resource API verbs, like: - get, post, put, delete, patch, head, options. "*" means all.' - items: - type: string - type: array + minReadySeconds: + description: The minimum number of seconds for which a newly created DaemonSet + pod should be ready without any of its container crashing, for it to be + considered available. Defaults to 0 (pod will be considered available + as soon as it is ready). + format: int32 + type: integer + revisionHistoryLimit: + description: The number of old history to retain to allow rollback. This + is a pointer to distinguish between explicit zero and not specified. Defaults + to 10. + format: int32 + type: integer + selector: + $ref: '#/components/schemas/v1.LabelSelector' + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' + updateStrategy: + $ref: '#/components/schemas/v1.DaemonSetUpdateStrategy' required: - - verbs - type: object - v1.ResourceAttributes: - description: ResourceAttributes includes the authorization attributes available - for resource requests to the Authorizer interface - example: - resource: resource - subresource: subresource - name: name - namespace: namespace - verb: verb - version: version - group: group - properties: - group: - description: Group is the API Group of the Resource. "*" means all. - type: string - name: - description: Name is the name of the resource being requested for a "get" - or deleted for a "delete". "" (empty) means all. - type: string - namespace: - description: Namespace is the namespace of the action being requested. Currently, - there is no distinction between no namespace and all namespaces "" (empty) - is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped - resources "" (empty) means "all" for namespace scoped resources from a - SubjectAccessReview or SelfSubjectAccessReview - type: string - resource: - description: Resource is one of the existing resource types. "*" means - all. - type: string - subresource: - description: Subresource is one of the existing resource types. "" means - none. - type: string - verb: - description: 'Verb is a kubernetes resource API verb, like: get, list, watch, - create, update, delete, proxy. "*" means all.' - type: string - version: - description: Version is the API Version of the Resource. "*" means all. - type: string + - selector + - template type: object - v1.ResourceRule: - 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. + v1.DaemonSetStatus: + description: DaemonSetStatus represents the current status of a daemon set. example: - resourceNames: - - resourceNames - - resourceNames - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups + numberUnavailable: 3 + updatedNumberScheduled: 4 + numberAvailable: 2 + numberMisscheduled: 7 + numberReady: 9 + currentNumberScheduled: 5 + collisionCount: 1 + desiredNumberScheduled: 5 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + observedGeneration: 2 properties: - apiGroups: - description: APIGroups is the name of the APIGroup that contains the resources. If - multiple API groups are specified, any action requested against one of - the enumerated resources in any API group will be allowed. "*" means - all. - items: - type: string - type: array - resourceNames: - description: ResourceNames is an optional white list of names that the rule - applies to. An empty set means that everything is allowed. "*" means - all. - items: - type: string - type: array - resources: - description: |- - Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. - "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - items: - type: string - type: array - verbs: - description: 'Verb is a list of kubernetes resource API verbs, like: get, - list, watch, create, update, delete, proxy. "*" means all.' + collisionCount: + description: Count of hash collisions for the DaemonSet. The DaemonSet controller + uses this field as a collision avoidance mechanism when it needs to create + the name for the newest ControllerRevision. + format: int32 + type: integer + conditions: + description: Represents the latest available observations of a DaemonSet's + current state. items: - type: string + $ref: '#/components/schemas/v1.DaemonSetCondition' type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: type + currentNumberScheduled: + description: 'The number of nodes that are running at least 1 daemon pod + and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/' + format: int32 + type: integer + desiredNumberScheduled: + description: 'The total number of nodes that should be running the daemon + pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/' + format: int32 + type: integer + numberAvailable: + description: The number of nodes that should be running the daemon pod and + have one or more of the daemon pod running and available (ready for at + least spec.minReadySeconds) + format: int32 + type: integer + numberMisscheduled: + description: 'The number of nodes that are running the daemon pod, but are + not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/' + format: int32 + type: integer + numberReady: + description: numberReady is the number of nodes that should be running the + daemon pod and have one or more of the daemon pod running with a Ready + Condition. + format: int32 + type: integer + numberUnavailable: + description: The number of nodes that should be running the daemon pod and + have none of the daemon pod running and available (ready for at least + spec.minReadySeconds) + format: int32 + type: integer + observedGeneration: + description: The most recent generation observed by the daemon set controller. + format: int64 + type: integer + updatedNumberScheduled: + description: The total number of nodes that are running updated daemon pod + format: int32 + type: integer required: - - verbs + - currentNumberScheduled + - desiredNumberScheduled + - numberMisscheduled + - numberReady type: object - v1.SelfSubjectAccessReview: - 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 + v1.DaemonSetUpdateStrategy: + description: DaemonSetUpdateStrategy is a struct used to control the update + strategy for a DaemonSet. 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - nonResourceAttributes: - path: path - verb: verb - resourceAttributes: - resource: resource - subresource: subresource - name: name - namespace: namespace - verb: verb - version: version - group: group - status: - reason: reason - allowed: true - evaluationError: evaluationError - denied: true + type: type + rollingUpdate: + maxSurge: maxSurge + maxUnavailable: maxUnavailable 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' + rollingUpdate: + $ref: '#/components/schemas/v1.RollingUpdateDaemonSet' + type: + description: |+ + Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. + type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.SelfSubjectAccessReviewSpec' - status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authorization.k8s.io - kind: SelfSubjectAccessReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.SelfSubjectAccessReviewSpec: - description: SelfSubjectAccessReviewSpec is a description of the access request. Exactly - one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes - must be set - example: - nonResourceAttributes: - path: path - verb: verb - resourceAttributes: - resource: resource - subresource: subresource - name: name - namespace: namespace - verb: verb - version: version - group: group - properties: - nonResourceAttributes: - $ref: '#/components/schemas/v1.NonResourceAttributes' - resourceAttributes: - $ref: '#/components/schemas/v1.ResourceAttributes' type: object - v1.SelfSubjectRulesReview: - 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. + v1.Deployment: + description: Deployment enables declarative updates for Pods and ReplicaSets. example: metadata: generation: 6 @@ -113390,55 +71428,2821 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind spec: - namespace: namespace + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + paused: true + replicas: 1 + revisionHistoryLimit: 5 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + strategy: + type: type + rollingUpdate: + maxSurge: maxSurge + maxUnavailable: maxUnavailable + progressDeadlineSeconds: 6 status: - incomplete: true - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - evaluationError: evaluationError + unavailableReplicas: 2 + replicas: 3 + readyReplicas: 9 + collisionCount: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 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 + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 7 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -113453,419 +74257,5811 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.SelfSubjectRulesReviewSpec' + $ref: '#/components/schemas/v1.DeploymentSpec' status: - $ref: '#/components/schemas/v1.SubjectRulesReviewStatus' - required: - - spec + $ref: '#/components/schemas/v1.DeploymentStatus' type: object x-kubernetes-group-version-kind: - - group: authorization.k8s.io - kind: SelfSubjectRulesReview + - group: apps + kind: Deployment version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.SelfSubjectRulesReviewSpec: - description: SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + v1.DeploymentCondition: + description: DeploymentCondition describes the state of a deployment at a certain + point. example: - namespace: namespace + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status properties: - namespace: - description: Namespace to evaluate rules for. Required. + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time + type: string + lastUpdateTime: + description: The last time this condition was updated. + format: date-time + type: string + message: + description: A human readable message indicating details about the transition. + type: string + reason: + description: The reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of deployment condition. type: string + required: + - status + - type type: object - v1.SubjectAccessReview: - description: SubjectAccessReview checks whether or not a user or group can perform - an action. + v1.DeploymentList: + description: DeploymentList is a list of Deployments. example: metadata: - generation: 6 - finalizers: - - finalizers - - finalizers + remainingItemCount: 1 + continue: continue resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace apiVersion: apiVersion kind: kind - spec: - uid: uid - nonResourceAttributes: - path: path - verb: verb - extra: - key: - - extra - - extra - groups: - - groups - - groups - resourceAttributes: - resource: resource - subresource: subresource + 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: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + paused: true + replicas: 1 + revisionHistoryLimit: 5 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + strategy: + type: type + rollingUpdate: + maxSurge: maxSurge + maxUnavailable: maxUnavailable + progressDeadlineSeconds: 6 + status: + unavailableReplicas: 2 + replicas: 3 + readyReplicas: 9 + collisionCount: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 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 + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 7 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - verb: verb - version: version - group: group - user: user - status: - reason: reason - allowed: true - evaluationError: evaluationError - denied: true - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' - status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' - required: - - spec - type: object - x-kubernetes-group-version-kind: - - group: authorization.k8s.io - kind: SubjectAccessReview - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.SubjectAccessReviewSpec: - description: SubjectAccessReviewSpec is a description of the access request. Exactly - one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes - must be set - example: - uid: uid - nonResourceAttributes: - path: path - verb: verb - extra: - key: - - extra - - extra - groups: - - groups - - groups - resourceAttributes: - resource: resource - subresource: subresource - name: name - namespace: namespace - verb: verb - version: version - group: group - user: user - properties: - extra: - additionalProperties: - items: - type: string - type: array - description: Extra corresponds to the user.Info.GetExtra() method from the - authenticator. Since that is input to the authorizer it needs a reflection - here. - type: object - groups: - description: Groups is the groups you're testing for. - items: - type: string - type: array - nonResourceAttributes: - $ref: '#/components/schemas/v1.NonResourceAttributes' - resourceAttributes: - $ref: '#/components/schemas/v1.ResourceAttributes' - uid: - description: UID information about the requesting user. - type: string - user: - description: User is the user you're testing for. If you specify "User" - but not "Groups", then is it interpreted as "What if User were not a member - of any groups - type: string - type: object - v1.SubjectAccessReviewStatus: - description: SubjectAccessReviewStatus - example: - reason: reason - allowed: true - evaluationError: evaluationError - denied: true - properties: - allowed: - description: Allowed is required. True if the action would be allowed, false - otherwise. - type: boolean - denied: - description: Denied is optional. True if the action would be denied, otherwise - false. If both allowed is false and denied is false, then the authorizer - has no opinion on whether to authorize the action. Denied may not be true - if Allowed is true. - type: boolean - evaluationError: - description: EvaluationError is an indication that some error occurred during - the authorization check. It is entirely possible to get an error and be - able to continue determine authorization status in spite of it. For instance, - RBAC can be missing a role, but enough roles are still present and bound - to reason about the request. - type: string - reason: - description: Reason is optional. It indicates why a request was allowed - or denied. - type: string - required: - - allowed - type: object - v1.SubjectRulesReviewStatus: - 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. - example: - incomplete: true - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - evaluationError: evaluationError - properties: - evaluationError: - description: EvaluationError can appear in combination with Rules. It indicates - an error occurred during rule evaluation, such as an authorizer that doesn't - support rule evaluation, and that ResourceRules and/or NonResourceRules - may be incomplete. - type: string - incomplete: - description: Incomplete is true when the rules returned by this call are - incomplete. This is most commonly encountered when an authorizer, such - as an external authorizer, doesn't support rules evaluation. - type: boolean - nonResourceRules: - description: NonResourceRules is the list of actions the subject is allowed - to perform on non-resources. The list ordering isn't significant, may - contain duplicates, and possibly be incomplete. - items: - $ref: '#/components/schemas/v1.NonResourceRule' - type: array - resourceRules: - description: ResourceRules is the list of actions the subject is allowed - to perform on resources. The list ordering isn't significant, may contain - duplicates, and possibly be incomplete. - items: - $ref: '#/components/schemas/v1.ResourceRule' - type: array - required: - - incomplete - - nonResourceRules - - resourceRules - type: object - v1.CrossVersionObjectReference: - description: CrossVersionObjectReference contains enough information to let - you identify the referred resource. - example: - apiVersion: apiVersion - kind: kind - name: name - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' - type: string - name: - description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' - type: string - required: - - kind - - name - type: object - x-kubernetes-map-type: atomic - v1.HorizontalPodAutoscaler: - description: configuration of a horizontal pod autoscaler. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 0 - minReplicas: 6 - targetCPUUtilizationPercentage: 1 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - currentCPUUtilizationPercentage: 5 - desiredReplicas: 2 - currentReplicas: 5 - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 7 + apiVersion: apiVersion + kind: kind + spec: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + paused: true + replicas: 1 + revisionHistoryLimit: 5 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + strategy: + type: type + rollingUpdate: + maxSurge: maxSurge + maxUnavailable: maxUnavailable + progressDeadlineSeconds: 6 + status: + unavailableReplicas: 2 + replicas: 3 + readyReplicas: 9 + collisionCount: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastUpdateTime: 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 + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 7 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 Deployments. + items: + $ref: '#/components/schemas/v1.Deployment' + type: array kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerSpec' - status: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerStatus' + $ref: '#/components/schemas/v1.ListMeta' + required: + - items type: object x-kubernetes-group-version-kind: - - group: autoscaling - kind: HorizontalPodAutoscaler + - group: apps + kind: DeploymentList version: v1 x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.HorizontalPodAutoscalerList: - description: list of horizontal pod autoscaler objects. + - io.kubernetes.client.common.KubernetesListObject + v1.DeploymentSpec: + description: DeploymentSpec is the specification of the desired behavior of + the Deployment. example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - metadata: + template: + metadata: generation: 6 finalizers: - finalizers @@ -113883,544 +80079,2905 @@ components: apiVersion: apiVersion kind: kind name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 0 - minReplicas: 6 - targetCPUUtilizationPercentage: 1 - scaleTargetRef: - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - status: - currentCPUUtilizationPercentage: 5 - desiredReplicas: 2 - currentReplicas: 5 - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 7 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 0 - minReplicas: 6 - targetCPUUtilizationPercentage: 1 - scaleTargetRef: - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - status: - currentCPUUtilizationPercentage: 5 - desiredReplicas: 2 - currentReplicas: 5 - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 7 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: list of horizontal pod autoscaler objects. - items: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' - 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: autoscaling - kind: HorizontalPodAutoscalerList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.HorizontalPodAutoscalerSpec: - description: specification of a horizontal pod autoscaler. - example: - maxReplicas: 0 - minReplicas: 6 - targetCPUUtilizationPercentage: 1 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - properties: - maxReplicas: - description: upper limit for the number of pods that can be set by the autoscaler; - cannot be smaller than MinReplicas. - format: int32 - type: integer - minReplicas: - description: minReplicas is the lower limit for the number of replicas to - which the autoscaler can scale down. It defaults to 1 pod. minReplicas - is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled - and at least one Object or External metric is configured. Scaling is - active as long as at least one metric value is available. - format: int32 - type: integer - scaleTargetRef: - $ref: '#/components/schemas/v1.CrossVersionObjectReference' - targetCPUUtilizationPercentage: - description: target average CPU utilization (represented as a percentage - of requested CPU) over all the pods; if not specified the default autoscaling - policy will be used. - format: int32 - type: integer - required: - - maxReplicas - - scaleTargetRef - type: object - v1.HorizontalPodAutoscalerStatus: - description: current status of a horizontal pod autoscaler - example: - currentCPUUtilizationPercentage: 5 - desiredReplicas: 2 - currentReplicas: 5 - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 7 - properties: - currentCPUUtilizationPercentage: - description: current average CPU utilization over all pods, represented - as a percentage of requested CPU, e.g. 70 means that an average pod is - using now 70% of its requested CPU. - format: int32 - type: integer - currentReplicas: - description: current number of replicas of pods managed by this autoscaler. - format: int32 - type: integer - desiredReplicas: - description: desired number of replicas of pods managed by this autoscaler. - format: int32 - type: integer - lastScaleTime: - description: last time the HorizontalPodAutoscaler scaled the number of - pods; used by the autoscaler to control how often the number of pods is - changed. - format: date-time - type: string - observedGeneration: - description: most recent generation observed by this autoscaler. - format: int64 - type: integer - required: - - currentReplicas - - desiredReplicas - type: object - v1.Scale: - description: Scale represents a scaling request for a resource. - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - replicas: 0 - status: - replicas: 6 - selector: selector - 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.ScaleSpec' - status: - $ref: '#/components/schemas/v1.ScaleStatus' - type: object - x-kubernetes-group-version-kind: - - group: autoscaling - kind: Scale - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.ScaleSpec: - description: ScaleSpec describes the attributes of a scale subresource. - example: - replicas: 0 + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + paused: true + replicas: 1 + revisionHistoryLimit: 5 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + strategy: + type: type + rollingUpdate: + maxSurge: maxSurge + maxUnavailable: maxUnavailable + progressDeadlineSeconds: 6 properties: - replicas: - description: desired number of instances for the scaled object. + minReadySeconds: + description: Minimum number of seconds for which a newly created pod should + be ready without any of its container crashing, for it to be considered + available. Defaults to 0 (pod will be considered available as soon as + it is ready) + format: int32 + type: integer + paused: + description: Indicates that the deployment is paused. + type: boolean + progressDeadlineSeconds: + description: The maximum time in seconds for a deployment to make progress + before it is considered to be failed. The deployment controller will continue + to process failed deployments and a condition with a ProgressDeadlineExceeded + reason will be surfaced in the deployment status. Note that progress will + not be estimated during the time a deployment is paused. Defaults to 600s. format: int32 type: integer - type: object - v1.ScaleStatus: - description: ScaleStatus represents the current status of a scale subresource. - example: - replicas: 6 - selector: selector - properties: replicas: - description: actual number of observed instances of the scaled object. + description: Number of desired pods. This is a pointer to distinguish between + explicit zero and not specified. Defaults to 1. + format: int32 + type: integer + revisionHistoryLimit: + description: The number of old ReplicaSets to retain to allow rollback. + This is a pointer to distinguish between explicit zero and not specified. + Defaults to 10. format: int32 type: integer selector: - description: 'label query over pods that should match the replicas count. - This is same as the label selector but in the string format to avoid introspection - by clients. The string will be in the same format as the query-param syntax. - More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors' - type: string + $ref: '#/components/schemas/v1.LabelSelector' + strategy: + $ref: '#/components/schemas/v1.DeploymentStrategy' + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' required: - - replicas + - selector + - template type: object - v2.ContainerResourceMetricSource: - 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. + v1.DeploymentStatus: + description: DeploymentStatus is the most recently observed status of the Deployment. example: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 + unavailableReplicas: 2 + replicas: 3 + readyReplicas: 9 + collisionCount: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - value: value - properties: - container: - description: container is the name of the container in the pods of the scaling - target - type: string - name: - description: name is the name of the resource in question. - type: string - target: - $ref: '#/components/schemas/v2.MetricTarget' - required: - - container - - name - - target - type: object - v2.ContainerResourceMetricStatus: - 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. - example: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - properties: - container: - description: Container is the name of the container in the pods of the scaling - target - type: string - current: - $ref: '#/components/schemas/v2.MetricValueStatus' - name: - description: Name is the name of the resource in question. - type: string - required: - - container - - current - - name - type: object - v2.CrossVersionObjectReference: - description: CrossVersionObjectReference contains enough information to let - you identify the referred resource. - example: - apiVersion: apiVersion - kind: kind - name: name - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' - type: string - name: - description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' - type: string - required: - - kind - - name - type: object - v2.ExternalMetricSource: - 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). - example: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 + lastUpdateTime: 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 - value: value - properties: - metric: - $ref: '#/components/schemas/v2.MetricIdentifier' - target: - $ref: '#/components/schemas/v2.MetricTarget' - required: - - metric - - target - type: object - v2.ExternalMetricStatus: - description: ExternalMetricStatus indicates the current value of a global metric - not associated with any Kubernetes object. - example: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - current: - $ref: '#/components/schemas/v2.MetricValueStatus' - metric: - $ref: '#/components/schemas/v2.MetricIdentifier' - required: - - current - - metric - type: object - v2.HPAScalingPolicy: - description: HPAScalingPolicy is a single policy which must hold true for a - specified past interval. - example: - periodSeconds: 0 - type: type - value: 6 + lastUpdateTime: 2000-01-23T04:56:07.000+00:00 + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 7 properties: - periodSeconds: - description: PeriodSeconds specifies the window of time for which the policy - should hold true. PeriodSeconds must be greater than zero and less than - or equal to 1800 (30 min). + availableReplicas: + description: Total number of available pods (ready for at least minReadySeconds) + targeted by this deployment. format: int32 type: integer - type: - description: Type is used to specify the scaling policy. - type: string - value: - description: Value contains the amount of change which is permitted by the - policy. It must be greater than zero + collisionCount: + description: Count of hash collisions for the Deployment. The Deployment + controller uses this field as a collision avoidance mechanism when it + needs to create the name for the newest ReplicaSet. format: int32 type: integer - required: - - periodSeconds - - type - - value - type: object - v2.HPAScalingRules: - description: HPAScalingRules configures the scaling behavior for one direction. - These Rules are applied after calculating DesiredReplicas from metrics for - the HPA. They can limit the scaling velocity by specifying scaling policies. - They can prevent flapping by specifying the stabilization window, so that - the number of replicas is not set instantly, instead, the safest value from - the stabilization window is chosen. - example: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - properties: - policies: - description: policies is a list of potential scaling polices which can be - used during scaling. At least one policy must be specified, otherwise - the HPAScalingRules will be discarded as invalid + conditions: + description: Represents the latest available observations of a deployment's + current state. items: - $ref: '#/components/schemas/v2.HPAScalingPolicy' + $ref: '#/components/schemas/v1.DeploymentCondition' type: array - x-kubernetes-list-type: atomic - selectPolicy: - description: selectPolicy is used to specify which policy should be used. - If not set, the default value Max is used. - type: string - stabilizationWindowSeconds: - description: 'StabilizationWindowSeconds is the number of seconds for which - past recommendations should be considered while scaling up or scaling - down. StabilizationWindowSeconds must be greater than or equal to zero - and less than or equal to 3600 (one hour). If not set, use the default - values: - For scale up: 0 (i.e. no stabilization is done). - For scale - down: 300 (i.e. the stabilization window is 300 seconds long).' + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: type + observedGeneration: + description: The generation observed by the deployment controller. + format: int64 + type: integer + readyReplicas: + description: readyReplicas is the number of pods targeted by this Deployment + with a Ready Condition. + format: int32 + type: integer + replicas: + description: Total number of non-terminated pods targeted by this deployment + (their labels match the selector). + format: int32 + type: integer + unavailableReplicas: + description: Total number of unavailable pods targeted by this deployment. + This is the total number of pods that are still required for the deployment + to have 100% available capacity. They may either be pods that are running + but not yet available or pods that still have not been created. + format: int32 + type: integer + updatedReplicas: + description: Total number of non-terminated pods targeted by this deployment + that have the desired template spec. format: int32 type: integer type: object - v2.HorizontalPodAutoscaler: - 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. + v1.DeploymentStrategy: + description: DeploymentStrategy describes how to replace existing pods with + new ones. + example: + type: type + rollingUpdate: + maxSurge: maxSurge + maxUnavailable: maxUnavailable + properties: + rollingUpdate: + $ref: '#/components/schemas/v1.RollingUpdateDeployment' + type: + description: |+ + Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. + + type: string + type: object + v1.ReplicaSet: + description: ReplicaSet ensures that a specified number of pod replicas are + running at any given time. example: metadata: generation: 6 @@ -114465,2386 +83022,2777 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind spec: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true apiVersion: apiVersion kind: kind name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion kind: kind name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerSpec' - status: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerStatus' - type: object - x-kubernetes-group-version-kind: - - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v2.HorizontalPodAutoscalerBehavior: - description: HorizontalPodAutoscalerBehavior configures the scaling behavior - of the target in both Up and Down directions (scaleUp and scaleDown fields - respectively). - example: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - properties: - scaleDown: - $ref: '#/components/schemas/v2.HPAScalingRules' - scaleUp: - $ref: '#/components/schemas/v2.HPAScalingRules' - type: object - v2.HorizontalPodAutoscalerCondition: - description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler - at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: lastTransitionTime is the last time the condition transitioned - from one status to another - format: date-time - type: string - message: - description: message is a human-readable explanation containing details - about the transition - type: string - reason: - description: reason is the reason for the condition's last transition. - type: string - status: - description: status is the status of the condition (True, False, Unknown) - type: string - type: - description: type describes the current condition - type: string - required: - - status - - type - type: object - v2.HorizontalPodAutoscalerList: - description: HorizontalPodAutoscalerList is a list of horizontal pod autoscaler - 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 + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name value: value - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type + - name: name value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type + - name: name value: value - type: type - object: - describedObject: - apiVersion: apiVersion + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath name: name - metric: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name value: value - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - 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 horizontal pod autoscaler objects. - items: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' - 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: autoscaling - kind: HorizontalPodAutoscalerList - version: v2 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v2.HorizontalPodAutoscalerSpec: - description: HorizontalPodAutoscalerSpec describes the desired functionality - of the HorizontalPodAutoscaler. - example: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - properties: - behavior: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerBehavior' - maxReplicas: - description: maxReplicas is the upper limit for the number of replicas to - which the autoscaler can scale up. It cannot be less that minReplicas. - format: int32 - type: integer - metrics: - description: metrics contains the specifications for which to use to calculate - the desired replica count (the maximum replica count across all metrics - will be used). The desired replica count is calculated multiplying the - ratio between the target value and the current value by the current number - of pods. Ergo, metrics used must decrease as the pod count is increased, - and vice-versa. See the individual metric source types for more information - about how each type of metric must respond. If not set, the default metric - will be set to 80% average CPU utilization. - items: - $ref: '#/components/schemas/v2.MetricSpec' - type: array - x-kubernetes-list-type: atomic - minReplicas: - description: minReplicas is the lower limit for the number of replicas to - which the autoscaler can scale down. It defaults to 1 pod. minReplicas - is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled - and at least one Object or External metric is configured. Scaling is - active as long as at least one metric value is available. - format: int32 - type: integer - scaleTargetRef: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' - required: - - maxReplicas - - scaleTargetRef - type: object - v2.HorizontalPodAutoscalerStatus: - description: HorizontalPodAutoscalerStatus describes the current status of a - horizontal pod autoscaler. - example: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - conditions: - description: conditions is the set of conditions required for this autoscaler - to scale its target, and indicates whether or not those conditions are - met. - items: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - currentMetrics: - description: currentMetrics is the last read state of the metrics used by - this autoscaler. - items: - $ref: '#/components/schemas/v2.MetricStatus' - type: array - x-kubernetes-list-type: atomic - currentReplicas: - description: currentReplicas is current number of replicas of pods managed - by this autoscaler, as last seen by the autoscaler. - format: int32 - type: integer - desiredReplicas: - description: desiredReplicas is the desired number of replicas of pods managed - by this autoscaler, as last calculated by the autoscaler. - format: int32 - type: integer - lastScaleTime: - description: lastScaleTime is the last time the HorizontalPodAutoscaler - scaled the number of pods, used by the autoscaler to control how often - the number of pods is changed. - format: date-time - type: string - observedGeneration: - description: observedGeneration is the most recent generation observed by - this autoscaler. - format: int64 - type: integer - required: - - desiredReplicas - type: object - v2.MetricIdentifier: - description: MetricIdentifier defines the name and optionally selector for a - metric - example: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - name: - description: name is the name of the given metric - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - required: - - name - type: object - v2.MetricSpec: - description: MetricSpec specifies how to scale based on a single metric (only - `type` and one other matching field should be set at once). - example: - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - containerResource: - $ref: '#/components/schemas/v2.ContainerResourceMetricSource' - external: - $ref: '#/components/schemas/v2.ExternalMetricSource' - object: - $ref: '#/components/schemas/v2.ObjectMetricSource' - pods: - $ref: '#/components/schemas/v2.PodsMetricSource' - resource: - $ref: '#/components/schemas/v2.ResourceMetricSource' - type: - description: 'type is the type of metric source. It should be one of "ContainerResource", - "External", "Object", "Pods" or "Resource", each mapping to a matching - field in the object. Note: "ContainerResource" type is available on when - the feature-gate HPAContainerMetrics is enabled' - type: string - required: - - type - type: object - v2.MetricStatus: - description: MetricStatus describes the last-read state of a single metric. - example: - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - containerResource: - $ref: '#/components/schemas/v2.ContainerResourceMetricStatus' - external: - $ref: '#/components/schemas/v2.ExternalMetricStatus' - object: - $ref: '#/components/schemas/v2.ObjectMetricStatus' - pods: - $ref: '#/components/schemas/v2.PodsMetricStatus' - resource: - $ref: '#/components/schemas/v2.ResourceMetricStatus' - type: - description: 'type is the type of metric source. It will be one of "ContainerResource", - "External", "Object", "Pods" or "Resource", each corresponds to a matching - field in the object. Note: "ContainerResource" type is available on when - the feature-gate HPAContainerMetrics is enabled' - type: string - required: - - type - type: object - v2.MetricTarget: - description: MetricTarget defines the target value, average value, or average - utilization of a specific metric - example: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - averageUtilization: - description: averageUtilization is the target value of the average of the - resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. Currently only valid - for Resource metric source type - format: int32 - type: integer - averageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - type: - description: type represents whether the metric type is Utilization, Value, - or AverageValue - type: string - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - type - type: object - v2.MetricValueStatus: - description: MetricValueStatus holds the current value for a metric - example: - averageValue: averageValue - averageUtilization: 7 - value: value - properties: - averageUtilization: - description: currentAverageUtilization is the current value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. - format: int32 - type: integer - averageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - type: object - v2.ObjectMetricSource: - description: ObjectMetricSource indicates how to scale on a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). - example: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - describedObject: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' - metric: - $ref: '#/components/schemas/v2.MetricIdentifier' - target: - $ref: '#/components/schemas/v2.MetricTarget' - required: - - describedObject - - metric - - target - type: object - v2.ObjectMetricStatus: - description: ObjectMetricStatus indicates the current value of a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). - example: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - current: - $ref: '#/components/schemas/v2.MetricValueStatus' - describedObject: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' - metric: - $ref: '#/components/schemas/v2.MetricIdentifier' - required: - - current - - describedObject - - metric - type: object - v2.PodsMetricSource: - 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. - example: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - metric: - $ref: '#/components/schemas/v2.MetricIdentifier' - target: - $ref: '#/components/schemas/v2.MetricTarget' - required: - - metric - - target - type: object - v2.PodsMetricStatus: - description: PodsMetricStatus indicates the current value of a metric describing - each pod in the current scale target (for example, transactions-processed-per-second). - example: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 selector: matchExpressions: - values: @@ -116859,619 +85807,11 @@ components: operator: operator matchLabels: key: matchLabels - properties: - current: - $ref: '#/components/schemas/v2.MetricValueStatus' - metric: - $ref: '#/components/schemas/v2.MetricIdentifier' - required: - - current - - metric - type: object - v2.ResourceMetricSource: - 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. - example: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - name: - description: name is the name of the resource in question. - type: string - target: - $ref: '#/components/schemas/v2.MetricTarget' - required: - - name - - target - type: object - v2.ResourceMetricStatus: - 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. - example: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - properties: - current: - $ref: '#/components/schemas/v2.MetricValueStatus' - name: - description: Name is the name of the resource in question. - type: string - required: - - current - - name - type: object - v2beta1.ContainerResourceMetricSource: - 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. - example: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - properties: - container: - description: container is the name of the container in the pods of the scaling - target - type: string - name: - description: name is the name of the resource in question. - type: string - targetAverageUtilization: - description: targetAverageUtilization is the target value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. - format: int32 - type: integer - targetAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - container - - name - type: object - v2beta1.ContainerResourceMetricStatus: - 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. - example: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - properties: - container: - description: container is the name of the container in the pods of the scaling - target - type: string - currentAverageUtilization: - description: currentAverageUtilization is the current value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. It will only be - present if `targetAverageValue` was set in the corresponding metric specification. - format: int32 - type: integer - currentAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - name: - description: name is the name of the resource in question. - type: string - required: - - container - - currentAverageValue - - name - type: object - v2beta1.CrossVersionObjectReference: - description: CrossVersionObjectReference contains enough information to let - you identify the referred resource. - example: - apiVersion: apiVersion - kind: kind - name: name - properties: - apiVersion: - description: API version of the referent - type: string - kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' - type: string - name: - description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' - type: string - required: - - kind - - name - type: object - v2beta1.ExternalMetricSource: - 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). Exactly one - "target" type should be set. - example: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - properties: - metricName: - description: metricName is the name of the metric in question. - type: string - metricSelector: - $ref: '#/components/schemas/v1.LabelSelector' - targetAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - targetValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - metricName - type: object - v2beta1.ExternalMetricStatus: - description: ExternalMetricStatus indicates the current value of a global metric - not associated with any Kubernetes object. - example: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - properties: - currentAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - currentValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - metricName: - description: metricName is the name of a metric used for autoscaling in - metric system. - type: string - metricSelector: - $ref: '#/components/schemas/v1.LabelSelector' - required: - - currentValue - - metricName - type: object - v2beta1.HorizontalPodAutoscaler: - 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. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 0 - minReplicas: 5 - metrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind - name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind - name: name - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name + minReadySeconds: 0 status: - desiredReplicas: 9 - currentReplicas: 7 + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -117483,143 +85823,8 @@ components: message: message type: type status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 3 - currentMetrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind - name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind - name: name + availableReplicas: 1 + observedGeneration: 5 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -117634,19 +85839,19 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerSpec' + $ref: '#/components/schemas/v1.ReplicaSetSpec' status: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerStatus' + $ref: '#/components/schemas/v1.ReplicaSetStatus' type: object x-kubernetes-group-version-kind: - - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta1 + - group: apps + kind: ReplicaSet + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v2beta1.HorizontalPodAutoscalerCondition: - description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler - at a certain point. + v1.ReplicaSetCondition: + description: ReplicaSetCondition describes the state of a replica set at a certain + point. example: reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -117655,30 +85860,28 @@ components: status: status properties: lastTransitionTime: - description: lastTransitionTime is the last time the condition transitioned - from one status to another + description: The last time the condition transitioned from one status to + another. format: date-time type: string message: - description: message is a human-readable explanation containing details - about the transition + description: A human readable message indicating details about the transition. type: string reason: - description: reason is the reason for the condition's last transition. + description: The reason for the condition's last transition. type: string status: - description: status is the status of the condition (True, False, Unknown) + description: Status of the condition, one of True, False, Unknown. type: string type: - description: type describes the current condition + description: Type of replica set condition. type: string required: - status - type type: object - v2beta1.HorizontalPodAutoscalerList: - description: HorizontalPodAutoscaler is a list of horizontal pod autoscaler - objects. + v1.ReplicaSetList: + description: ReplicaSetList is a collection of ReplicaSets. example: metadata: remainingItemCount: 1 @@ -117731,2775 +85934,8086 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind spec: - maxReplicas: 0 - minReplicas: 5 - metrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + status: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true apiVersion: apiVersion kind: kind name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion kind: kind name: name - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 9 - currentReplicas: 7 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 3 - currentMetrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 0 - minReplicas: 5 - metrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 9 - currentReplicas: 7 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 3 - currentMetrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + status: + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 properties: apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: items is the list of horizontal pod autoscaler objects. - items: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscaler' - 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: autoscaling - kind: HorizontalPodAutoscalerList - version: v2beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v2beta1.HorizontalPodAutoscalerSpec: - description: HorizontalPodAutoscalerSpec describes the desired functionality - of the HorizontalPodAutoscaler. - example: - maxReplicas: 0 - minReplicas: 5 - metrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind - name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind - name: name - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - properties: - maxReplicas: - description: maxReplicas is the upper limit for the number of replicas to - which the autoscaler can scale up. It cannot be less that minReplicas. - format: int32 - type: integer - metrics: - description: metrics contains the specifications for which to use to calculate - the desired replica count (the maximum replica count across all metrics - will be used). The desired replica count is calculated multiplying the - ratio between the target value and the current value by the current number - of pods. Ergo, metrics used must decrease as the pod count is increased, - and vice-versa. See the individual metric source types for more information - about how each type of metric must respond. - items: - $ref: '#/components/schemas/v2beta1.MetricSpec' - type: array - minReplicas: - description: minReplicas is the lower limit for the number of replicas to - which the autoscaler can scale down. It defaults to 1 pod. minReplicas - is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled - and at least one Object or External metric is configured. Scaling is - active as long as at least one metric value is available. - format: int32 - type: integer - scaleTargetRef: - $ref: '#/components/schemas/v2beta1.CrossVersionObjectReference' - required: - - maxReplicas - - scaleTargetRef - type: object - v2beta1.HorizontalPodAutoscalerStatus: - description: HorizontalPodAutoscalerStatus describes the current status of a - horizontal pod autoscaler. - example: - desiredReplicas: 9 - currentReplicas: 7 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 3 - currentMetrics: - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind - name: name - - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind - name: name - properties: - conditions: - description: conditions is the set of conditions required for this autoscaler - to scale its target, and indicates whether or not those conditions are - met. - items: - $ref: '#/components/schemas/v2beta1.HorizontalPodAutoscalerCondition' - type: array - currentMetrics: - description: currentMetrics is the last read state of the metrics used by - this autoscaler. - items: - $ref: '#/components/schemas/v2beta1.MetricStatus' - type: array - currentReplicas: - description: currentReplicas is current number of replicas of pods managed - by this autoscaler, as last seen by the autoscaler. - format: int32 - type: integer - desiredReplicas: - description: desiredReplicas is the desired number of replicas of pods managed - by this autoscaler, as last calculated by the autoscaler. - format: int32 - type: integer - lastScaleTime: - description: lastScaleTime is the last time the HorizontalPodAutoscaler - scaled the number of pods, used by the autoscaler to control how often - the number of pods is changed. - format: date-time - type: string - observedGeneration: - description: observedGeneration is the most recent generation observed by - this autoscaler. - format: int64 - type: integer - required: - - currentReplicas - - desiredReplicas - type: object - v2beta1.MetricSpec: - description: MetricSpec specifies how to scale based on a single metric (only - `type` and one other matching field should be set at once). - example: - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - targetAverageValue: targetAverageValue - targetValue: targetValue - resource: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - containerResource: - container: container - targetAverageUtilization: 6 - targetAverageValue: targetAverageValue - name: name - pods: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind - name: name - properties: - containerResource: - $ref: '#/components/schemas/v2beta1.ContainerResourceMetricSource' - external: - $ref: '#/components/schemas/v2beta1.ExternalMetricSource' - object: - $ref: '#/components/schemas/v2beta1.ObjectMetricSource' - pods: - $ref: '#/components/schemas/v2beta1.PodsMetricSource' - resource: - $ref: '#/components/schemas/v2beta1.ResourceMetricSource' - type: - description: 'type is the type of metric source. It should be one of "ContainerResource", - "External", "Object", "Pods" or "Resource", each mapping to a matching - field in the object. Note: "ContainerResource" type is available on when - the feature-gate HPAContainerMetrics is enabled' - type: string - required: - - type - type: object - v2beta1.MetricStatus: - description: MetricStatus describes the last-read state of a single metric. - example: - external: - metricSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - metricName: metricName - currentAverageValue: currentAverageValue - currentValue: currentValue - resource: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - containerResource: - container: container - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 5 - pods: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind - name: name - properties: - containerResource: - $ref: '#/components/schemas/v2beta1.ContainerResourceMetricStatus' - external: - $ref: '#/components/schemas/v2beta1.ExternalMetricStatus' - object: - $ref: '#/components/schemas/v2beta1.ObjectMetricStatus' - pods: - $ref: '#/components/schemas/v2beta1.PodsMetricStatus' - resource: - $ref: '#/components/schemas/v2beta1.ResourceMetricStatus' - type: - description: 'type is the type of metric source. It will be one of "ContainerResource", - "External", "Object", "Pods" or "Resource", each corresponds to a matching - field in the object. Note: "ContainerResource" type is available on when - the feature-gate HPAContainerMetrics is enabled' - type: string - required: - - type - type: object - v2beta1.ObjectMetricSource: - description: ObjectMetricSource indicates how to scale on a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). - example: - averageValue: averageValue - metricName: metricName - targetValue: targetValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - apiVersion: apiVersion - kind: kind - name: name - properties: - averageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - metricName: - description: metricName is the name of the metric in question. - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - target: - $ref: '#/components/schemas/v2beta1.CrossVersionObjectReference' - targetValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - metricName - - target - - targetValue - type: object - v2beta1.ObjectMetricStatus: - description: ObjectMetricStatus indicates the current value of a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). - example: - averageValue: averageValue - metricName: metricName - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - currentValue: currentValue - target: - apiVersion: apiVersion - kind: kind - name: name - properties: - averageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - currentValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - metricName: - description: metricName is the name of the metric in question. - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - target: - $ref: '#/components/schemas/v2beta1.CrossVersionObjectReference' - required: - - currentValue - - metricName - - target - type: object - v2beta1.PodsMetricSource: - 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. - example: - metricName: metricName - targetAverageValue: targetAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - metricName: - description: metricName is the name of the metric in question - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - targetAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - metricName - - targetAverageValue - type: object - v2beta1.PodsMetricStatus: - description: PodsMetricStatus indicates the current value of a metric describing - each pod in the current scale target (for example, transactions-processed-per-second). - example: - metricName: metricName - currentAverageValue: currentAverageValue - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - currentAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - metricName: - description: metricName is the name of the metric in question - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - required: - - currentAverageValue - - metricName - type: object - v2beta1.ResourceMetricSource: - 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. - example: - targetAverageUtilization: 1 - targetAverageValue: targetAverageValue - name: name - properties: - name: - description: name is the name of the resource in question. - type: string - targetAverageUtilization: - description: targetAverageUtilization is the target value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. - format: int32 - type: integer - targetAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - name - type: object - v2beta1.ResourceMetricStatus: - 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. - example: - currentAverageValue: currentAverageValue - name: name - currentAverageUtilization: 2 - properties: - currentAverageUtilization: - description: currentAverageUtilization is the current value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. It will only be - present if `targetAverageValue` was set in the corresponding metric specification. - format: int32 - type: integer - currentAverageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - name: - description: name is the name of the resource in question. - type: string - required: - - currentAverageValue - - name - type: object - v2beta2.ContainerResourceMetricSource: - 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. - example: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - container: - description: container is the name of the container in the pods of the scaling - target - type: string - name: - description: name is the name of the resource in question. - type: string - target: - $ref: '#/components/schemas/v2beta2.MetricTarget' - required: - - container - - name - - target - type: object - v2beta2.ContainerResourceMetricStatus: - 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. - example: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - properties: - container: - description: Container is the name of the container in the pods of the scaling - target - type: string - current: - $ref: '#/components/schemas/v2beta2.MetricValueStatus' - name: - description: Name is the name of the resource in question. - type: string - required: - - container - - current - - name - type: object - v2beta2.CrossVersionObjectReference: - description: CrossVersionObjectReference contains enough information to let - you identify the referred resource. - example: - apiVersion: apiVersion - kind: kind - name: name - properties: - apiVersion: - description: API version of the referent + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string + items: + description: 'List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller' + items: + $ref: '#/components/schemas/v1.ReplicaSet' + type: array kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' - type: string - name: - description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' + 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: - - kind - - name - type: object - v2beta2.ExternalMetricSource: - 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). - example: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - metric: - $ref: '#/components/schemas/v2beta2.MetricIdentifier' - target: - $ref: '#/components/schemas/v2beta2.MetricTarget' - required: - - metric - - target + - items type: object - v2beta2.ExternalMetricStatus: - description: ExternalMetricStatus indicates the current value of a global metric - not associated with any Kubernetes object. + x-kubernetes-group-version-kind: + - group: apps + kind: ReplicaSetList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ReplicaSetSpec: + description: ReplicaSetSpec is the specification of a ReplicaSet. example: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - - values: - - values - - values + - effect: effect + tolerationSeconds: 9 + value: value key: key operator: operator - matchLabels: - key: matchLabels - properties: - current: - $ref: '#/components/schemas/v2beta2.MetricValueStatus' - metric: - $ref: '#/components/schemas/v2beta2.MetricIdentifier' - required: - - current - - metric - type: object - v2beta2.HPAScalingPolicy: - description: HPAScalingPolicy is a single policy which must hold true for a - specified past interval. - example: - periodSeconds: 0 - type: type - value: 6 - properties: - periodSeconds: - description: PeriodSeconds specifies the window of time for which the policy - should hold true. PeriodSeconds must be greater than zero and less than - or equal to 1800 (30 min). - format: int32 - type: integer - type: - description: Type is used to specify the scaling policy. - type: string - value: - description: Value contains the amount of change which is permitted by the - policy. It must be greater than zero - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object - v2beta2.HPAScalingRules: - description: HPAScalingRules configures the scaling behavior for one direction. - These Rules are applied after calculating DesiredReplicas from metrics for - the HPA. They can limit the scaling velocity by specifying scaling policies. - They can prevent flapping by specifying the stabilization window, so that - the number of replicas is not set instantly, instead, the safest value from - the stabilization window is chosen. - example: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - properties: - policies: - description: policies is a list of potential scaling polices which can be - used during scaling. At least one policy must be specified, otherwise - the HPAScalingRules will be discarded as invalid - items: - $ref: '#/components/schemas/v2beta2.HPAScalingPolicy' - type: array - selectPolicy: - description: selectPolicy is used to specify which policy should be used. - If not set, the default value MaxPolicySelect is used. - type: string - stabilizationWindowSeconds: - description: 'StabilizationWindowSeconds is the number of seconds for which - past recommendations should be considered while scaling up or scaling - down. StabilizationWindowSeconds must be greater than or equal to zero - and less than or equal to 3600 (one hour). If not set, use the default - values: - For scale up: 0 (i.e. no stabilization is done). - For scale - down: 300 (i.e. the stabilization window is 300 seconds long).' - format: int32 - type: integer - type: object - v2beta2.HorizontalPodAutoscaler: - 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. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - target: - averageValue: averageValue - averageUtilization: 5 + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path type: type - value: value - containerResource: - container: container + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - target: - averageValue: averageValue - averageUtilization: 5 + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path type: type - value: value - pods: - metric: + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - - external: - metric: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - selector: - matchExpressions: - - values: - - values - - values + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - metric: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + - devicePath: devicePath name: name - current: - averageValue: averageValue - averageUtilization: 7 + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath name: name - selector: - matchExpressions: - - values: - - values - - values + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - 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/v2beta2.HorizontalPodAutoscalerSpec' - status: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerStatus' - type: object - x-kubernetes-group-version-kind: - - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2beta2 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v2beta2.HorizontalPodAutoscalerBehavior: - description: HorizontalPodAutoscalerBehavior configures the scaling behavior - of the target in both Up and Down directions (scaleUp and scaleDown fields - respectively). - example: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - properties: - scaleDown: - $ref: '#/components/schemas/v2beta2.HPAScalingRules' - scaleUp: - $ref: '#/components/schemas/v2beta2.HPAScalingRules' - type: object - v2beta2.HorizontalPodAutoscalerCondition: - description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler - at a certain point. - example: - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - properties: - lastTransitionTime: - description: lastTransitionTime is the last time the condition transitioned - from one status to another - format: date-time - type: string - message: - description: message is a human-readable explanation containing details - about the transition - type: string - reason: - description: reason is the reason for the condition's last transition. - type: string - status: - description: status is the status of the condition (True, False, Unknown) - type: string - type: - description: type describes the current condition - type: string - required: - - status - - type - type: object - v2beta2.HorizontalPodAutoscalerList: - description: HorizontalPodAutoscalerList is a list of horizontal pod autoscaler - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + optional: true + prefix: prefix + secretRef: name: name - metric: + optional: true + - configMapRef: name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - - external: - metric: + optional: true + prefix: prefix + secretRef: name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container + - devicePath: devicePath name: name - target: - averageValue: averageValue - averageUtilization: 5 + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 + user: user + seccompProfile: + localhostProfile: localhostProfile type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - metric: + optional: true + prefix: prefix + secretRef: name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level type: type - value: 6 - - periodSeconds: 0 + user: user + seccompProfile: + localhostProfile: localhostProfile type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind + optional: true + prefix: prefix + secretRef: name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: + optional: true + - configMapRef: name: name - selector: - matchExpressions: + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: - values: - values - values @@ -120510,17 +94024,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: + matchFields: - values: - values - values @@ -120531,30 +94035,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: + - matchExpressions: - values: - values - values @@ -120565,22 +94046,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: + matchFields: - values: - values - values @@ -120591,65 +94057,8 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: - name: name - selector: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: matchExpressions: - values: - values @@ -120661,33 +94070,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: + matchFields: - values: - values - values @@ -120698,22 +94081,8 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: + weight: 6 + - preference: matchExpressions: - values: - values @@ -120725,18 +94094,7 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - - external: - metric: - name: name - selector: - matchExpressions: + matchFields: - values: - values - values @@ -120747,32 +94105,10 @@ components: - values key: key operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -120786,88 +94122,25 @@ components: operator: operator matchLabels: key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: + namespaceSelector: matchExpressions: - values: - values - values key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - status: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: matchExpressions: - values: - values @@ -120881,27 +94154,7 @@ components: operator: operator matchLabels: key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: + namespaceSelector: matchExpressions: - values: - values @@ -120915,19 +94168,82 @@ components: operator: operator matchLabels: key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -120941,14 +94257,7 @@ components: operator: operator matchLabels: key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: + namespaceSelector: matchExpressions: - values: - values @@ -120962,27 +94271,11 @@ components: operator: operator matchLabels: key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: matchExpressions: - values: - values @@ -120996,19 +94289,7 @@ components: operator: operator matchLabels: key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: + namespaceSelector: matchExpressions: - values: - values @@ -121022,497 +94303,81 @@ components: operator: operator matchLabels: key: matchLabels - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: items is the list of horizontal pod autoscaler objects. - items: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' - 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: autoscaling - kind: HorizontalPodAutoscalerList - version: v2beta2 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v2beta2.HorizontalPodAutoscalerSpec: - description: HorizontalPodAutoscalerSpec describes the desired functionality - of the HorizontalPodAutoscaler. - example: - maxReplicas: 5 - minReplicas: 2 - metrics: - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - behavior: - scaleUp: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleDown: - selectPolicy: selectPolicy - stabilizationWindowSeconds: 1 - policies: - - periodSeconds: 0 - type: type - value: 6 - - periodSeconds: 0 - type: type - value: 6 - scaleTargetRef: - apiVersion: apiVersion - kind: kind - name: name - properties: - behavior: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerBehavior' - maxReplicas: - description: maxReplicas is the upper limit for the number of replicas to - which the autoscaler can scale up. It cannot be less that minReplicas. - format: int32 - type: integer - metrics: - description: metrics contains the specifications for which to use to calculate - the desired replica count (the maximum replica count across all metrics - will be used). The desired replica count is calculated multiplying the - ratio between the target value and the current value by the current number - of pods. Ergo, metrics used must decrease as the pod count is increased, - and vice-versa. See the individual metric source types for more information - about how each type of metric must respond. If not set, the default metric - will be set to 80% average CPU utilization. - items: - $ref: '#/components/schemas/v2beta2.MetricSpec' - type: array - minReplicas: - description: minReplicas is the lower limit for the number of replicas to - which the autoscaler can scale down. It defaults to 1 pod. minReplicas - is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled - and at least one Object or External metric is configured. Scaling is - active as long as at least one metric value is available. - format: int32 - type: integer - scaleTargetRef: - $ref: '#/components/schemas/v2beta2.CrossVersionObjectReference' - required: - - maxReplicas - - scaleTargetRef - type: object - v2beta2.HorizontalPodAutoscalerStatus: - description: HorizontalPodAutoscalerStatus describes the current status of a - horizontal pod autoscaler. - example: - desiredReplicas: 3 - currentReplicas: 9 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - status: status - lastScaleTime: 2000-01-23T04:56:07.000+00:00 - observedGeneration: 2 - currentMetrics: - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - conditions: - description: conditions is the set of conditions required for this autoscaler - to scale its target, and indicates whether or not those conditions are - met. - items: - $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerCondition' - type: array - currentMetrics: - description: currentMetrics is the last read state of the metrics used by - this autoscaler. - items: - $ref: '#/components/schemas/v2beta2.MetricStatus' - type: array - currentReplicas: - description: currentReplicas is current number of replicas of pods managed - by this autoscaler, as last seen by the autoscaler. - format: int32 - type: integer - desiredReplicas: - description: desiredReplicas is the desired number of replicas of pods managed - by this autoscaler, as last calculated by the autoscaler. - format: int32 - type: integer - lastScaleTime: - description: lastScaleTime is the last time the HorizontalPodAutoscaler - scaled the number of pods, used by the autoscaler to control how often - the number of pods is changed. - format: date-time - type: string - observedGeneration: - description: observedGeneration is the most recent generation observed by - this autoscaler. - format: int64 - type: integer - required: - - currentReplicas - - desiredReplicas - type: object - v2beta2.MetricIdentifier: - description: MetricIdentifier defines the name and optionally selector for a - metric - example: - name: name + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + replicas: 6 selector: matchExpressions: - values: @@ -121522,609 +94387,161 @@ components: operator: operator - values: - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - name: - description: name is the name of the given metric - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - required: - - name - type: object - v2beta2.MetricSpec: - description: MetricSpec specifies how to scale based on a single metric (only - `type` and one other matching field should be set at once). - example: - external: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - resource: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - containerResource: - container: container - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - pods: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - containerResource: - $ref: '#/components/schemas/v2beta2.ContainerResourceMetricSource' - external: - $ref: '#/components/schemas/v2beta2.ExternalMetricSource' - object: - $ref: '#/components/schemas/v2beta2.ObjectMetricSource' - pods: - $ref: '#/components/schemas/v2beta2.PodsMetricSource' - resource: - $ref: '#/components/schemas/v2beta2.ResourceMetricSource' - type: - description: 'type is the type of metric source. It should be one of "ContainerResource", - "External", "Object", "Pods" or "Resource", each mapping to a matching - field in the object. Note: "ContainerResource" type is available on when - the feature-gate HPAContainerMetrics is enabled' - type: string - required: - - type - type: object - v2beta2.MetricStatus: - description: MetricStatus describes the last-read state of a single metric. - example: - external: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - resource: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - containerResource: - container: container - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name - pods: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - type: type - object: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - containerResource: - $ref: '#/components/schemas/v2beta2.ContainerResourceMetricStatus' - external: - $ref: '#/components/schemas/v2beta2.ExternalMetricStatus' - object: - $ref: '#/components/schemas/v2beta2.ObjectMetricStatus' - pods: - $ref: '#/components/schemas/v2beta2.PodsMetricStatus' - resource: - $ref: '#/components/schemas/v2beta2.ResourceMetricStatus' - type: - description: 'type is the type of metric source. It will be one of "ContainerResource", - "External", "Object", "Pods" or "Resource", each corresponds to a matching - field in the object. Note: "ContainerResource" type is available on when - the feature-gate HPAContainerMetrics is enabled' - type: string - required: - - type - type: object - v2beta2.MetricTarget: - description: MetricTarget defines the target value, average value, or average - utilization of a specific metric - example: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - averageUtilization: - description: averageUtilization is the target value of the average of the - resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. Currently only valid - for Resource metric source type - format: int32 - type: integer - averageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - type: - description: type represents whether the metric type is Utilization, Value, - or AverageValue - type: string - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - required: - - type - type: object - v2beta2.MetricValueStatus: - description: MetricValueStatus holds the current value for a metric - example: - averageValue: averageValue - averageUtilization: 7 - value: value + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 properties: - averageUtilization: - description: currentAverageUtilization is the current value of the average - of the resource metric across all relevant pods, represented as a percentage - of the requested value of the resource for the pods. + minReadySeconds: + description: Minimum number of seconds for which a newly created pod should + be ready without any of its container crashing, for it to be considered + available. Defaults to 0 (pod will be considered available as soon as + it is ready) format: int32 type: integer - averageValue: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. - format: quantity - type: string - type: object - v2beta2.ObjectMetricSource: - description: ObjectMetricSource indicates how to scale on a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). - example: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value - properties: - describedObject: - $ref: '#/components/schemas/v2beta2.CrossVersionObjectReference' - metric: - $ref: '#/components/schemas/v2beta2.MetricIdentifier' - target: - $ref: '#/components/schemas/v2beta2.MetricTarget' - required: - - describedObject - - metric - - target - type: object - v2beta2.ObjectMetricStatus: - description: ObjectMetricStatus indicates the current value of a metric describing - a kubernetes object (for example, hits-per-second on an Ingress object). - example: - describedObject: - apiVersion: apiVersion - kind: kind - name: name - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - current: - $ref: '#/components/schemas/v2beta2.MetricValueStatus' - describedObject: - $ref: '#/components/schemas/v2beta2.CrossVersionObjectReference' - metric: - $ref: '#/components/schemas/v2beta2.MetricIdentifier' + replicas: + description: 'Replicas is the number of desired replicas. This is a pointer + to distinguish between explicit zero and unspecified. Defaults to 1. More + info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller' + format: int32 + type: integer + selector: + $ref: '#/components/schemas/v1.LabelSelector' + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' required: - - current - - describedObject - - metric + - selector type: object - v2beta2.PodsMetricSource: - 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. + v1.ReplicaSetStatus: + description: ReplicaSetStatus represents the current status of a ReplicaSet. example: - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - target: - averageValue: averageValue - averageUtilization: 5 + fullyLabeledReplicas: 5 + replicas: 7 + readyReplicas: 2 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - value: value + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + availableReplicas: 1 + observedGeneration: 5 properties: - metric: - $ref: '#/components/schemas/v2beta2.MetricIdentifier' - target: - $ref: '#/components/schemas/v2beta2.MetricTarget' + availableReplicas: + description: The number of available replicas (ready for at least minReadySeconds) + for this replica set. + format: int32 + type: integer + conditions: + description: Represents the latest available observations of a replica set's + current state. + items: + $ref: '#/components/schemas/v1.ReplicaSetCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: type + fullyLabeledReplicas: + description: The number of pods that have labels matching the labels of + the pod template of the replicaset. + format: int32 + type: integer + observedGeneration: + description: ObservedGeneration reflects the generation of the most recently + observed ReplicaSet. + format: int64 + type: integer + readyReplicas: + description: readyReplicas is the number of pods targeted by this ReplicaSet + with a Ready Condition. + format: int32 + type: integer + replicas: + description: 'Replicas is the most recently oberved number of replicas. + More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller' + format: int32 + type: integer required: - - metric - - target + - replicas type: object - v2beta2.PodsMetricStatus: - description: PodsMetricStatus indicates the current value of a metric describing - each pod in the current scale target (for example, transactions-processed-per-second). + v1.RollingUpdateDaemonSet: + description: Spec to control the desired behavior of daemon set rolling update. example: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - metric: - name: name - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + maxSurge: maxSurge + maxUnavailable: maxUnavailable properties: - current: - $ref: '#/components/schemas/v2beta2.MetricValueStatus' - metric: - $ref: '#/components/schemas/v2beta2.MetricIdentifier' - required: - - current - - metric + maxSurge: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string + type: string + maxUnavailable: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string + type: string type: object - v2beta2.ResourceMetricSource: - 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. + v1.RollingUpdateDeployment: + description: Spec to control the desired behavior of rolling update. example: - name: name - target: - averageValue: averageValue - averageUtilization: 5 - type: type - value: value + maxSurge: maxSurge + maxUnavailable: maxUnavailable properties: - name: - description: name is the name of the resource in question. + maxSurge: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string + type: string + maxUnavailable: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string type: string - target: - $ref: '#/components/schemas/v2beta2.MetricTarget' - required: - - name - - target type: object - v2beta2.ResourceMetricStatus: - 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. + v1.RollingUpdateStatefulSetStrategy: + description: RollingUpdateStatefulSetStrategy is used to communicate parameter + for RollingUpdateStatefulSetStrategyType. example: - current: - averageValue: averageValue - averageUtilization: 7 - value: value - name: name + partition: 5 + maxUnavailable: maxUnavailable properties: - current: - $ref: '#/components/schemas/v2beta2.MetricValueStatus' - name: - description: Name is the name of the resource in question. + maxUnavailable: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string type: string - required: - - current - - name + partition: + description: Partition indicates the ordinal at which the StatefulSet should + be partitioned for updates. During a rolling update, all pods from ordinal + Replicas-1 to Partition are updated. All pods from ordinal Partition-1 + to 0 remain untouched. This is helpful in being able to do a canary based + deployment. The default value is 0. + format: int32 + type: integer type: object - v1.CronJob: - description: CronJob represents the configuration of a single cron job. + v1.StatefulSet: + 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. example: metadata: generation: 6 @@ -122169,16 +94586,13 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind spec: - suspend: true - schedule: schedule - jobTemplate: + template: metadata: generation: 6 finalizers: @@ -122222,438 +94636,256 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: items: - mode: 6 path: path @@ -122672,44 +94904,8 @@ components: containerName: containerName fieldRef: apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors + fieldPath: fieldPath configMap: - defaultMode: 9 name: name optional: true items: @@ -122719,158 +94915,8 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -122879,149 +94925,11 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -123041,43 +94949,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: @@ -123087,7747 +94959,5618 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + secret: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + configMap: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + key: key + - mode: 6 + path: path + key: key + secret: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + configMap: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: name: name - containerPort: 4 - hostPort: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 7 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 9 - status: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.CronJobSpec' - status: - $ref: '#/components/schemas/v1.CronJobStatus' - type: object - x-kubernetes-group-version-kind: - - group: batch - kind: CronJob - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1.CronJobList: - description: CronJobList is a collection of cron jobs. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - suspend: true - schedule: schedule - jobTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true + optional: true + key: key + fieldRef: apiVersion: apiVersion - kind: kind + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - name: name value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name + value: value - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + preStop: + tcpSocket: + port: port + host: host + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + podManagementPolicy: podManagementPolicy + updateStrategy: + type: type + rollingUpdate: + partition: 5 + maxUnavailable: maxUnavailable + replicas: 6 + persistentVolumeClaimRetentionPolicy: + whenScaled: whenScaled + whenDeleted: whenDeleted + revisionHistoryLimit: 1 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + serviceName: serviceName + volumeClaimTemplates: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + status: + currentRevision: currentRevision + replicas: 2 + updateRevision: updateRevision + readyReplicas: 3 + collisionCount: 2 + currentReplicas: 7 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 9 + 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.StatefulSetSpec' + status: + $ref: '#/components/schemas/v1.StatefulSetStatus' + type: object + x-kubernetes-group-version-kind: + - group: apps + kind: StatefulSet + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.StatefulSetCondition: + description: StatefulSetCondition describes the state of a statefulset at a + certain point. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status to another. + format: date-time + type: string + message: + description: A human readable message indicating details about the transition. + type: string + reason: + description: The reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of statefulset condition. + type: string + required: + - status + - type + type: object + v1.StatefulSetList: + description: StatefulSetList is a collection of StatefulSets. + 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: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - prefix: prefix - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - - configMapRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - optional: true - prefix: prefix - secretRef: + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + configMap: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + key: key + - mode: 6 + path: path + key: key + secret: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + configMap: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + key: key + - mode: 6 + path: path + key: key + secret: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + configMap: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + key: key + - mode: 6 + path: path + key: key + secret: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key + - mode: 6 + path: path resourceFieldRef: divisor: divisor resource: resource containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key fieldRef: apiVersion: apiVersion fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + configMap: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: name: name - containerPort: 4 - hostPort: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 7 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 9 - status: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - suspend: true - schedule: schedule - jobTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + optional: true + prefix: prefix + secretRef: name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - name: name value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - name: name value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + podManagementPolicy: podManagementPolicy + updateStrategy: + type: type + rollingUpdate: + partition: 5 + maxUnavailable: maxUnavailable + replicas: 6 + persistentVolumeClaimRetentionPolicy: + whenScaled: whenScaled + whenDeleted: whenDeleted + revisionHistoryLimit: 1 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + serviceName: serviceName + volumeClaimTemplates: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} selector: matchExpressions: - values: @@ -130842,66 +100585,158 @@ components: operator: operator matchLabels: key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 7 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 9 - status: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-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 - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: items is the list of CronJobs. - items: - $ref: '#/components/schemas/v1.CronJob' - 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: batch - kind: CronJobList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.CronJobSpec: - description: CronJobSpec describes how the job execution will look like and - when it will actually run. - example: - suspend: true - schedule: schedule - jobTemplate: - metadata: + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + status: + currentRevision: currentRevision + replicas: 2 + updateRevision: updateRevision + readyReplicas: 3 + collisionCount: 2 + currentReplicas: 7 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 9 + - metadata: generation: 6 finalizers: - finalizers @@ -130944,12 +100779,12 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace + apiVersion: apiVersion + kind: kind spec: - suspend: true template: metadata: generation: 6 @@ -130994,7 +100829,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -131085,8 +100919,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -131103,8 +100939,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -131121,6 +100962,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -131186,7 +101030,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -131554,7 +101397,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -132355,6 +102197,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -133514,494 +103357,285 @@ components: - values - values key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 7 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 9 - properties: - concurrencyPolicy: - description: |+ - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - - type: string - failedJobsHistoryLimit: - description: The number of failed finished jobs to retain. Value must be - non-negative integer. Defaults to 1. - format: int32 - type: integer - jobTemplate: - $ref: '#/components/schemas/v1.JobTemplateSpec' - schedule: - description: The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - type: string - startingDeadlineSeconds: - description: Optional deadline in seconds for starting the job if it misses - scheduled time for any reason. Missed jobs executions will be counted - as failed ones. - format: int64 - type: integer - successfulJobsHistoryLimit: - description: The number of successful finished jobs to retain. Value must - be non-negative integer. Defaults to 3. - format: int32 - type: integer - suspend: - description: This flag tells the controller to suspend subsequent executions, - it does not apply to already started executions. Defaults to false. - type: boolean - timeZone: - description: 'The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. - If not specified, this will rely on the time zone of the kube-controller-manager - process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` - feature gate.' - type: string - required: - - jobTemplate - - schedule - type: object - v1.CronJobStatus: - description: CronJobStatus represents the current state of a cron job. - example: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 - properties: - active: - description: A list of pointers to currently running jobs. - items: - $ref: '#/components/schemas/v1.ObjectReference' - type: array - x-kubernetes-list-type: atomic - lastScheduleTime: - description: Information when was the last time the job was successfully - scheduled. - format: date-time - type: string - lastSuccessfulTime: - description: Information when was the last time the job successfully completed. - format: date-time - type: string - type: object - v1.Job: - description: Job represents the configuration of a single job. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + podManagementPolicy: podManagementPolicy + updateStrategy: + type: type + rollingUpdate: + partition: 5 + maxUnavailable: maxUnavailable + replicas: 6 + persistentVolumeClaimRetentionPolicy: + whenScaled: whenScaled + whenDeleted: whenDeleted + revisionHistoryLimit: 1 + selector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minReadySeconds: 0 + serviceName: serviceName + volumeClaimTemplates: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: matchExpressions: - values: - values @@ -134015,11 +103649,94 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: matchExpressions: - values: - values @@ -134033,770 +103750,1196 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + status: + currentRevision: currentRevision + replicas: 2 + updateRevision: updateRevision + readyReplicas: 3 + collisionCount: 2 + currentReplicas: 7 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 9 + 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 stateful sets. + items: + $ref: '#/components/schemas/v1.StatefulSet' + type: array + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: apps + kind: StatefulSetList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.StatefulSetPersistentVolumeClaimRetentionPolicy: + description: StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy + used for PVCs created from the StatefulSet VolumeClaimTemplates. + example: + whenScaled: whenScaled + whenDeleted: whenDeleted + properties: + whenDeleted: + description: WhenDeleted specifies what happens to PVCs created from StatefulSet + VolumeClaimTemplates when the StatefulSet is deleted. The default policy + of `Retain` causes PVCs to not be affected by StatefulSet deletion. The + `Delete` policy causes those PVCs to be deleted. + type: string + whenScaled: + description: WhenScaled specifies what happens to PVCs created from StatefulSet + VolumeClaimTemplates when the StatefulSet is scaled down. The default + policy of `Retain` causes PVCs to not be affected by a scaledown. The + `Delete` policy causes the associated PVCs for any excess pods above the + replica count to be deleted. + type: string + type: object + v1.StatefulSetSpec: + description: A StatefulSetSpec is the specification of a StatefulSet. + example: + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - optional: true - items: - - mode: 6 - path: path + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 name: name - nfs: + optional: true + items: + - mode: 6 path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + key: key + - mode: 6 path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - optional: true - items: - - mode: 6 - path: path + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - secret: + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + key: key + - mode: 6 path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: name: name - readOnly: true - fsType: fsType - keyring: keyring + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - - mode: 6 - path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -134807,59 +104950,14 @@ components: value: value - name: name value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + preStop: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -134870,179 +104968,224 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + prefix: prefix + secretRef: name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + - configMapRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + prefix: prefix + secretRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + optional: true + - volumeDevices: + - devicePath: devicePath name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - configMapRef: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135053,59 +105196,14 @@ components: value: value - name: name value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + preStop: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135116,247 +105214,230 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + prefix: prefix + secretRef: name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + - configMapRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + prefix: prefix + secretRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - configMapRef: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135367,129 +105448,14 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + preStop: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135500,46 +105466,223 @@ components: value: value - name: name value: value - stdinOnce: true - envFrom: - - configMapRef: + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - configMapRef: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135550,58 +105693,14 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + preStop: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135612,180 +105711,224 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + prefix: prefix + secretRef: name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + - configMapRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + prefix: prefix + secretRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - configMapRef: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135796,58 +105939,14 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + preStop: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -135858,179 +105957,223 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + prefix: prefix + secretRef: name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + - configMapRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + prefix: prefix + secretRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + optional: true + - volumeDevices: + - devicePath: devicePath name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - configMapRef: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - prefix: prefix - secretRef: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -136041,58 +106184,14 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 + preStop: tcpSocket: port: port host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 exec: command: - command - command - grpc: - port: 5 - service: service httpGet: path: path scheme: scheme @@ -136103,255 +106202,217 @@ components: value: value - name: name value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + prefix: prefix + secretRef: name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + - configMapRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + prefix: prefix + secretRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -136383,7 +106444,9 @@ components: namespaces: - namespaces - namespaces - - labelSelector: + weight: 1 + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -136415,78 +106478,76 @@ components: namespaces: - namespaces - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -136518,7 +106579,9 @@ components: namespaces: - namespaces - namespaces - - labelSelector: + weight: 1 + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -136550,81 +106613,2059 @@ components: namespaces: - namespaces - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode + weight: 1 + hostPID: true + podManagementPolicy: podManagementPolicy + updateStrategy: + type: type + rollingUpdate: + partition: 5 + maxUnavailable: maxUnavailable + replicas: 6 + persistentVolumeClaimRetentionPolicy: + whenScaled: whenScaled + whenDeleted: whenDeleted + revisionHistoryLimit: 1 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minReadySeconds: 0 + serviceName: serviceName + volumeClaimTemplates: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + status: + phase: phase + allocatedResources: {} + accessModes: + - accessModes + - accessModes + resizeStatus: resizeStatus + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + capacity: {} + properties: + minReadySeconds: + description: Minimum number of seconds for which a newly created pod should + be ready without any of its container crashing for it to be considered + available. Defaults to 0 (pod will be considered available as soon as + it is ready) + format: int32 + type: integer + persistentVolumeClaimRetentionPolicy: + $ref: '#/components/schemas/v1.StatefulSetPersistentVolumeClaimRetentionPolicy' + podManagementPolicy: + description: |+ + podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. + + type: string + replicas: + description: replicas is the desired number of replicas of the given Template. + These are replicas in the sense that they are instantiations of the same + Template, but individual replicas also have a consistent identity. If + unspecified, defaults to 1. + format: int32 + type: integer + revisionHistoryLimit: + description: revisionHistoryLimit is the maximum number of revisions that + will be maintained in the StatefulSet's revision history. The revision + history consists of all revisions not represented by a currently applied + StatefulSetSpec version. The default value is 10. + format: int32 + type: integer + selector: + $ref: '#/components/schemas/v1.LabelSelector' + serviceName: + description: 'serviceName is the name of the service that governs this StatefulSet. + This service must exist before the StatefulSet, and is responsible for + the network identity of the set. Pods get DNS/hostnames that follow the + pattern: pod-specific-string.serviceName.default.svc.cluster.local where + "pod-specific-string" is managed by the StatefulSet controller.' + type: string + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' + updateStrategy: + $ref: '#/components/schemas/v1.StatefulSetUpdateStrategy' + volumeClaimTemplates: + description: volumeClaimTemplates is a list of claims that pods are allowed + to reference. The StatefulSet controller is responsible for mapping network + identities to claims in a way that maintains the identity of a pod. Every + claim in this list must have at least one matching (by name) volumeMount + in one container in the template. A claim in this list takes precedence + over any volumes in the template, with the same name. + items: + $ref: '#/components/schemas/v1.PersistentVolumeClaim' + type: array + required: + - selector + - serviceName + - template + type: object + v1.StatefulSetStatus: + description: StatefulSetStatus represents the current state of a StatefulSet. + example: + currentRevision: currentRevision + replicas: 2 + updateRevision: updateRevision + readyReplicas: 3 + collisionCount: 2 + currentReplicas: 7 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + updatedReplicas: 4 + availableReplicas: 5 + observedGeneration: 9 + properties: + availableReplicas: + description: Total number of available pods (ready for at least minReadySeconds) + targeted by this statefulset. + format: int32 + type: integer + collisionCount: + description: collisionCount is the count of hash collisions for the StatefulSet. + The StatefulSet controller uses this field as a collision avoidance mechanism + when it needs to create the name for the newest ControllerRevision. + format: int32 + type: integer + conditions: + description: Represents the latest available observations of a statefulset's + current state. + items: + $ref: '#/components/schemas/v1.StatefulSetCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: type + currentReplicas: + description: currentReplicas is the number of Pods created by the StatefulSet + controller from the StatefulSet version indicated by currentRevision. + format: int32 + type: integer + currentRevision: + description: currentRevision, if not empty, indicates the version of the + StatefulSet used to generate Pods in the sequence [0,currentReplicas). + type: string + observedGeneration: + description: observedGeneration is the most recent generation observed for + this StatefulSet. It corresponds to the StatefulSet's generation, which + is updated on mutation by the API Server. + format: int64 + type: integer + readyReplicas: + description: readyReplicas is the number of pods created for this StatefulSet + with a Ready Condition. + format: int32 + type: integer + replicas: + description: replicas is the number of Pods created by the StatefulSet controller. + format: int32 + type: integer + updateRevision: + description: updateRevision, if not empty, indicates the version of the + StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) + type: string + updatedReplicas: + description: updatedReplicas is the number of Pods created by the StatefulSet + controller from the StatefulSet version indicated by updateRevision. + format: int32 + type: integer + required: + - replicas + type: object + v1.StatefulSetUpdateStrategy: + 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. + example: + type: type + rollingUpdate: + partition: 5 + maxUnavailable: maxUnavailable + properties: + rollingUpdate: + $ref: '#/components/schemas/v1.RollingUpdateStatefulSetStrategy' + type: + description: |+ + Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. + + type: string + type: object + v1.BoundObjectReference: + description: BoundObjectReference is a reference to an object that a token is + bound to. + example: + uid: uid + apiVersion: apiVersion + kind: kind + name: name + properties: + apiVersion: + description: API version of the referent. + type: string + kind: + description: Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + type: string + name: + description: Name of the referent. + type: string + uid: + description: UID of the referent. + type: string + type: object + authentication.v1.TokenRequest: + description: TokenRequest requests a token for a given service account. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + boundObjectRef: + uid: uid + apiVersion: apiVersion + kind: kind + name: name + expirationSeconds: 0 + audiences: + - audiences + - audiences + status: + expirationTimestamp: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.TokenRequestSpec' + status: + $ref: '#/components/schemas/v1.TokenRequestStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authentication.k8s.io + kind: TokenRequest + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.TokenRequestSpec: + description: TokenRequestSpec contains client provided parameters of a token + request. + example: + boundObjectRef: + uid: uid + apiVersion: apiVersion + kind: kind + name: name + expirationSeconds: 0 + audiences: + - audiences + - audiences + properties: + audiences: + description: Audiences are the intendend audiences of the token. A recipient + of a token must identify themself with an identifier in the list of audiences + of the token, and otherwise should reject the token. A token issued for + multiple audiences may be used to authenticate against any of the audiences + listed but implies a high degree of trust between the target audiences. + items: + type: string + type: array + boundObjectRef: + $ref: '#/components/schemas/v1.BoundObjectReference' + expirationSeconds: + description: ExpirationSeconds is the requested duration of validity of + the request. The token issuer may return a token with a different validity + duration so a client needs to check the 'expiration' field in a response. + format: int64 + type: integer + required: + - audiences + type: object + v1.TokenRequestStatus: + description: TokenRequestStatus is the result of a token request. + example: + expirationTimestamp: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + expirationTimestamp: + description: ExpirationTimestamp is the time of expiration of the returned + token. + format: date-time + type: string + token: + description: Token is the opaque bearer token. + type: string + required: + - expirationTimestamp + - token + type: object + v1.TokenReview: + description: 'TokenReview attempts to authenticate a token to a known user. + Note: TokenReview requests may be cached by the webhook token authenticator + plugin in the kube-apiserver.' + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + audiences: + - audiences + - audiences + token: token + status: + authenticated: true + audiences: + - audiences + - audiences + error: error + user: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.TokenReviewSpec' + status: + $ref: '#/components/schemas/v1.TokenReviewStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authentication.k8s.io + kind: TokenReview + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.TokenReviewSpec: + description: TokenReviewSpec is a description of the token authentication request. + example: + audiences: + - audiences + - audiences + token: token + properties: + audiences: + description: Audiences is a list of the identifiers that the resource server + presented with the token identifies as. Audience-aware token authenticators + will verify that the token was intended for at least one of the audiences + in this list. If no audiences are provided, the audience will default + to the audience of the Kubernetes apiserver. + items: + type: string + type: array + token: + description: Token is the opaque bearer token. + type: string + type: object + v1.TokenReviewStatus: + description: TokenReviewStatus is the result of the token authentication request. + example: + authenticated: true + audiences: + - audiences + - audiences + error: error + user: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + audiences: + description: Audiences are audience identifiers chosen by the authenticator + that are compatible with both the TokenReview and token. An identifier + is any identifier in the intersection of the TokenReviewSpec audiences + and the token's audiences. A client of the TokenReview API that sets the + spec.audiences field should validate that a compatible audience identifier + is returned in the status.audiences field to ensure that the TokenReview + server is audience aware. If a TokenReview returns an empty status.audience + field where status.authenticated is "true", the token is valid against + the audience of the Kubernetes API server. + items: + type: string + type: array + authenticated: + description: Authenticated indicates that the token was associated with + a known user. + type: boolean + error: + description: Error indicates that the token couldn't be checked + type: string + user: + $ref: '#/components/schemas/v1.UserInfo' + type: object + v1.UserInfo: + description: UserInfo holds the information about the user needed to implement + the user.Info interface. + example: + uid: uid + extra: + key: + - extra + - extra + groups: + - groups + - groups + username: username + properties: + extra: + additionalProperties: + items: + type: string + type: array + description: Any additional information provided by the authenticator. + type: object + groups: + description: The names of groups this user is a part of. + items: + type: string + type: array + uid: + description: A unique value that identifies this user across time. If this + user is deleted and another user by the same name is added, they will + have different UIDs. + type: string + username: + description: The name that uniquely identifies this user among all active + users. + type: string + type: object + v1.LocalSubjectAccessReview: + 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. + 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: + uid: uid + nonResourceAttributes: + path: path + verb: verb + extra: + key: + - extra + - extra + groups: + - groups + - groups + resourceAttributes: + resource: resource + subresource: subresource + name: name + namespace: namespace + verb: verb + version: version + group: group + user: user + status: + reason: reason + allowed: true + evaluationError: evaluationError + denied: true + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' + status: + $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authorization.k8s.io + kind: LocalSubjectAccessReview + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.NonResourceAttributes: + description: NonResourceAttributes includes the authorization attributes available + for non-resource requests to the Authorizer interface + example: + path: path + verb: verb + properties: + path: + description: Path is the URL path of the request + type: string + verb: + description: Verb is the standard HTTP verb + type: string + type: object + v1.NonResourceRule: + description: NonResourceRule holds information that describes a rule for the + non-resource + example: + verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + properties: + nonResourceURLs: + description: NonResourceURLs is a set of partial urls that a user should + have access to. *s are allowed, but only as the full, final step in the + path. "*" means all. + items: + type: string + type: array + verbs: + description: 'Verb is a list of kubernetes non-resource API verbs, like: + get, post, put, delete, patch, head, options. "*" means all.' + items: + type: string + type: array + required: + - verbs + type: object + v1.ResourceAttributes: + description: ResourceAttributes includes the authorization attributes available + for resource requests to the Authorizer interface + example: + resource: resource + subresource: subresource + name: name + namespace: namespace + verb: verb + version: version + group: group + properties: + group: + description: Group is the API Group of the Resource. "*" means all. + type: string + name: + description: Name is the name of the resource being requested for a "get" + or deleted for a "delete". "" (empty) means all. + type: string + namespace: + description: Namespace is the namespace of the action being requested. Currently, + there is no distinction between no namespace and all namespaces "" (empty) + is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped + resources "" (empty) means "all" for namespace scoped resources from a + SubjectAccessReview or SelfSubjectAccessReview + type: string + resource: + description: Resource is one of the existing resource types. "*" means + all. + type: string + subresource: + description: Subresource is one of the existing resource types. "" means + none. + type: string + verb: + description: 'Verb is a kubernetes resource API verb, like: get, list, watch, + create, update, delete, proxy. "*" means all.' + type: string + version: + description: Version is the API Version of the Resource. "*" means all. + type: string + type: object + v1.ResourceRule: + 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. + example: + resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: APIGroups is the name of the APIGroup that contains the resources. If + multiple API groups are specified, any action requested against one of + the enumerated resources in any API group will be allowed. "*" means + all. + items: + type: string + type: array + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. "*" means + all. + items: + type: string + type: array + resources: + description: |- + Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. + items: + type: string + type: array + verbs: + description: 'Verb is a list of kubernetes resource API verbs, like: get, + list, watch, create, update, delete, proxy. "*" means all.' + items: + type: string + type: array + required: + - verbs + type: object + v1.SelfSubjectAccessReview: + 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 + 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: + nonResourceAttributes: + path: path + verb: verb + resourceAttributes: + resource: resource + subresource: subresource + name: name + namespace: namespace + verb: verb + version: version + group: group + status: + reason: reason + allowed: true + evaluationError: evaluationError + denied: true + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.SelfSubjectAccessReviewSpec' + status: + $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authorization.k8s.io + kind: SelfSubjectAccessReview + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.SelfSubjectAccessReviewSpec: + description: SelfSubjectAccessReviewSpec is a description of the access request. Exactly + one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes + must be set + example: + nonResourceAttributes: + path: path + verb: verb + resourceAttributes: + resource: resource + subresource: subresource + name: name + namespace: namespace + verb: verb + version: version + group: group + properties: + nonResourceAttributes: + $ref: '#/components/schemas/v1.NonResourceAttributes' + resourceAttributes: + $ref: '#/components/schemas/v1.ResourceAttributes' + type: object + v1.SelfSubjectRulesReview: + 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. + 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: + namespace: namespace + status: + incomplete: true + nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + evaluationError: evaluationError + 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.SelfSubjectRulesReviewSpec' + status: + $ref: '#/components/schemas/v1.SubjectRulesReviewStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authorization.k8s.io + kind: SelfSubjectRulesReview + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.SelfSubjectRulesReviewSpec: + description: SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. + example: + namespace: namespace + properties: + namespace: + description: Namespace to evaluate rules for. Required. + type: string + type: object + v1.SubjectAccessReview: + description: SubjectAccessReview checks whether or not a user or group can perform + an action. + 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: + uid: uid + nonResourceAttributes: + path: path + verb: verb + extra: + key: + - extra + - extra + groups: + - groups + - groups + resourceAttributes: + resource: resource + subresource: subresource + name: name + namespace: namespace + verb: verb + version: version + group: group + user: user + status: + reason: reason + allowed: true + evaluationError: evaluationError + denied: true + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' + status: + $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: authorization.k8s.io + kind: SubjectAccessReview + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.SubjectAccessReviewSpec: + description: SubjectAccessReviewSpec is a description of the access request. Exactly + one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes + must be set + example: + uid: uid + nonResourceAttributes: + path: path + verb: verb + extra: + key: + - extra + - extra + groups: + - groups + - groups + resourceAttributes: + resource: resource + subresource: subresource + name: name + namespace: namespace + verb: verb + version: version + group: group + user: user + properties: + extra: + additionalProperties: + items: + type: string + type: array + description: Extra corresponds to the user.Info.GetExtra() method from the + authenticator. Since that is input to the authorizer it needs a reflection + here. + type: object + groups: + description: Groups is the groups you're testing for. + items: + type: string + type: array + nonResourceAttributes: + $ref: '#/components/schemas/v1.NonResourceAttributes' + resourceAttributes: + $ref: '#/components/schemas/v1.ResourceAttributes' + uid: + description: UID information about the requesting user. + type: string + user: + description: User is the user you're testing for. If you specify "User" + but not "Groups", then is it interpreted as "What if User were not a member + of any groups + type: string + type: object + v1.SubjectAccessReviewStatus: + description: SubjectAccessReviewStatus + example: + reason: reason + allowed: true + evaluationError: evaluationError + denied: true + properties: + allowed: + description: Allowed is required. True if the action would be allowed, false + otherwise. + type: boolean + denied: + description: Denied is optional. True if the action would be denied, otherwise + false. If both allowed is false and denied is false, then the authorizer + has no opinion on whether to authorize the action. Denied may not be true + if Allowed is true. + type: boolean + evaluationError: + description: EvaluationError is an indication that some error occurred during + the authorization check. It is entirely possible to get an error and be + able to continue determine authorization status in spite of it. For instance, + RBAC can be missing a role, but enough roles are still present and bound + to reason about the request. + type: string + reason: + description: Reason is optional. It indicates why a request was allowed + or denied. + type: string + required: + - allowed + type: object + v1.SubjectRulesReviewStatus: + 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. + example: + incomplete: true + nonResourceRules: + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - verbs: + - verbs + - verbs + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + evaluationError: evaluationError + properties: + evaluationError: + description: EvaluationError can appear in combination with Rules. It indicates + an error occurred during rule evaluation, such as an authorizer that doesn't + support rule evaluation, and that ResourceRules and/or NonResourceRules + may be incomplete. + type: string + incomplete: + description: Incomplete is true when the rules returned by this call are + incomplete. This is most commonly encountered when an authorizer, such + as an external authorizer, doesn't support rules evaluation. + type: boolean + nonResourceRules: + description: NonResourceRules is the list of actions the subject is allowed + to perform on non-resources. The list ordering isn't significant, may + contain duplicates, and possibly be incomplete. + items: + $ref: '#/components/schemas/v1.NonResourceRule' + type: array + resourceRules: + description: ResourceRules is the list of actions the subject is allowed + to perform on resources. The list ordering isn't significant, may contain + duplicates, and possibly be incomplete. + items: + $ref: '#/components/schemas/v1.ResourceRule' + type: array + required: + - incomplete + - nonResourceRules + - resourceRules + type: object + v1.CrossVersionObjectReference: + description: CrossVersionObjectReference contains enough information to let + you identify the referred resource. + example: + apiVersion: apiVersion + kind: kind + name: name + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' + type: string + name: + description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + v1.HorizontalPodAutoscaler: + description: configuration of a horizontal pod autoscaler. + 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: + maxReplicas: 0 + minReplicas: 6 + targetCPUUtilizationPercentage: 1 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + status: + currentCPUUtilizationPercentage: 5 + desiredReplicas: 2 + currentReplicas: 5 + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 7 + 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.HorizontalPodAutoscalerSpec' + status: + $ref: '#/components/schemas/v1.HorizontalPodAutoscalerStatus' + type: object + x-kubernetes-group-version-kind: + - group: autoscaling + kind: HorizontalPodAutoscaler + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.HorizontalPodAutoscalerList: + description: list of horizontal pod autoscaler 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: + maxReplicas: 0 + minReplicas: 6 + targetCPUUtilizationPercentage: 1 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + status: + currentCPUUtilizationPercentage: 5 + desiredReplicas: 2 + currentReplicas: 5 + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 7 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-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: + maxReplicas: 0 + minReplicas: 6 + targetCPUUtilizationPercentage: 1 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + status: + currentCPUUtilizationPercentage: 5 + desiredReplicas: 2 + currentReplicas: 5 + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 7 + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + items: + description: list of horizontal pod autoscaler objects. + items: + $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + 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: autoscaling + kind: HorizontalPodAutoscalerList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.HorizontalPodAutoscalerSpec: + description: specification of a horizontal pod autoscaler. + example: + maxReplicas: 0 + minReplicas: 6 + targetCPUUtilizationPercentage: 1 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + properties: + maxReplicas: + description: upper limit for the number of pods that can be set by the autoscaler; + cannot be smaller than MinReplicas. + format: int32 + type: integer + minReplicas: + description: minReplicas is the lower limit for the number of replicas to + which the autoscaler can scale down. It defaults to 1 pod. minReplicas + is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled + and at least one Object or External metric is configured. Scaling is + active as long as at least one metric value is available. + format: int32 + type: integer + scaleTargetRef: + $ref: '#/components/schemas/v1.CrossVersionObjectReference' + targetCPUUtilizationPercentage: + description: target average CPU utilization (represented as a percentage + of requested CPU) over all the pods; if not specified the default autoscaling + policy will be used. + format: int32 + type: integer + required: + - maxReplicas + - scaleTargetRef + type: object + v1.HorizontalPodAutoscalerStatus: + description: current status of a horizontal pod autoscaler + example: + currentCPUUtilizationPercentage: 5 + desiredReplicas: 2 + currentReplicas: 5 + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 7 + properties: + currentCPUUtilizationPercentage: + description: current average CPU utilization over all pods, represented + as a percentage of requested CPU, e.g. 70 means that an average pod is + using now 70% of its requested CPU. + format: int32 + type: integer + currentReplicas: + description: current number of replicas of pods managed by this autoscaler. + format: int32 + type: integer + desiredReplicas: + description: desired number of replicas of pods managed by this autoscaler. + format: int32 + type: integer + lastScaleTime: + description: last time the HorizontalPodAutoscaler scaled the number of + pods; used by the autoscaler to control how often the number of pods is + changed. + format: date-time + type: string + observedGeneration: + description: most recent generation observed by this autoscaler. + format: int64 + type: integer + required: + - currentReplicas + - desiredReplicas + type: object + v1.Scale: + description: Scale represents a scaling request for a resource. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + replicas: 0 + status: + replicas: 6 + selector: selector + 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.ScaleSpec' + status: + $ref: '#/components/schemas/v1.ScaleStatus' + type: object + x-kubernetes-group-version-kind: + - group: autoscaling + kind: Scale + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ScaleSpec: + description: ScaleSpec describes the attributes of a scale subresource. + example: + replicas: 0 + properties: + replicas: + description: desired number of instances for the scaled object. + format: int32 + type: integer + type: object + v1.ScaleStatus: + description: ScaleStatus represents the current status of a scale subresource. + example: + replicas: 6 + selector: selector + properties: + replicas: + description: actual number of observed instances of the scaled object. + format: int32 + type: integer + selector: + description: 'label query over pods that should match the replicas count. + This is same as the label selector but in the string format to avoid introspection + by clients. The string will be in the same format as the query-param syntax. + More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors' + type: string + required: + - replicas + type: object + v2.ContainerResourceMetricSource: + 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. + example: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + container: + description: container is the name of the container in the pods of the scaling + target + type: string + name: + description: name is the name of the resource in question. + type: string + target: + $ref: '#/components/schemas/v2.MetricTarget' + required: + - container + - name + - target + type: object + v2.ContainerResourceMetricStatus: + 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. + example: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + properties: + container: + description: Container is the name of the container in the pods of the scaling + target + type: string + current: + $ref: '#/components/schemas/v2.MetricValueStatus' + name: + description: Name is the name of the resource in question. + type: string + required: + - container + - current + - name + type: object + v2.CrossVersionObjectReference: + description: CrossVersionObjectReference contains enough information to let + you identify the referred resource. + example: + apiVersion: apiVersion + kind: kind + name: name + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' + type: string + name: + description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + required: + - kind + - name + type: object + v2.ExternalMetricSource: + 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). + example: + metric: + name: name selector: matchExpressions: - values: @@ -136639,36 +108680,553 @@ components: operator: operator matchLabels: key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + metric: + $ref: '#/components/schemas/v2.MetricIdentifier' + target: + $ref: '#/components/schemas/v2.MetricTarget' + required: + - metric + - target + type: object + v2.ExternalMetricStatus: + description: ExternalMetricStatus indicates the current value of a global metric + not associated with any Kubernetes object. + example: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + current: + $ref: '#/components/schemas/v2.MetricValueStatus' + metric: + $ref: '#/components/schemas/v2.MetricIdentifier' + required: + - current + - metric + type: object + v2.HPAScalingPolicy: + description: HPAScalingPolicy is a single policy which must hold true for a + specified past interval. + example: + periodSeconds: 0 + type: type + value: 6 + properties: + periodSeconds: + description: PeriodSeconds specifies the window of time for which the policy + should hold true. PeriodSeconds must be greater than zero and less than + or equal to 1800 (30 min). + format: int32 + type: integer + type: + description: Type is used to specify the scaling policy. + type: string + value: + description: Value contains the amount of change which is permitted by the + policy. It must be greater than zero + format: int32 + type: integer + required: + - periodSeconds + - type + - value + type: object + v2.HPAScalingRules: + description: HPAScalingRules configures the scaling behavior for one direction. + These Rules are applied after calculating DesiredReplicas from metrics for + the HPA. They can limit the scaling velocity by specifying scaling policies. + They can prevent flapping by specifying the stabilization window, so that + the number of replicas is not set instantly, instead, the safest value from + the stabilization window is chosen. + example: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + properties: + policies: + description: policies is a list of potential scaling polices which can be + used during scaling. At least one policy must be specified, otherwise + the HPAScalingRules will be discarded as invalid + items: + $ref: '#/components/schemas/v2.HPAScalingPolicy' + type: array + x-kubernetes-list-type: atomic + selectPolicy: + description: selectPolicy is used to specify which policy should be used. + If not set, the default value Max is used. + type: string + stabilizationWindowSeconds: + description: 'StabilizationWindowSeconds is the number of seconds for which + past recommendations should be considered while scaling up or scaling + down. StabilizationWindowSeconds must be greater than or equal to zero + and less than or equal to 3600 (one hour). If not set, use the default + values: - For scale up: 0 (i.e. no stabilization is done). - For scale + down: 300 (i.e. the stabilization window is 300 seconds long).' + format: int32 + type: integer + type: object + v2.HorizontalPodAutoscaler: + 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. + 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: + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name status: - completionTime: 2000-01-23T04:56:07.000+00:00 - completedIndexes: completedIndexes - ready: 1 - active: 0 - startTime: 2000-01-23T04:56:07.000+00:00 - uncountedTerminatedPods: - failed: - - failed - - failed - succeeded: - - succeeded - - succeeded - failed: 6 + desiredReplicas: 3 + currentReplicas: 9 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status - succeeded: 5 + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -136683,52 +109241,82 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1.JobSpec' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerSpec' status: - $ref: '#/components/schemas/v1.JobStatus' + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerStatus' type: object x-kubernetes-group-version-kind: - - group: batch - kind: Job - version: v1 + - group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.JobCondition: - description: JobCondition describes current state of a job. + v2.HorizontalPodAutoscalerBehavior: + description: HorizontalPodAutoscalerBehavior configures the scaling behavior + of the target in both Up and Down directions (scaleUp and scaleDown fields + respectively). + example: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + properties: + scaleDown: + $ref: '#/components/schemas/v2.HPAScalingRules' + scaleUp: + $ref: '#/components/schemas/v2.HPAScalingRules' + type: object + v2.HorizontalPodAutoscalerCondition: + description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler + at a certain point. example: reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status properties: - lastProbeTime: - description: Last time the condition was checked. - format: date-time - type: string lastTransitionTime: - description: Last time the condition transit from one status to another. + description: lastTransitionTime is the last time the condition transitioned + from one status to another format: date-time type: string message: - description: Human readable message indicating details about last transition. + description: message is a human-readable explanation containing details + about the transition type: string reason: - description: (brief) reason for the condition's last transition. + description: reason is the reason for the condition's last transition. type: string status: - description: Status of the condition, one of True, False, Unknown. + description: status is the status of the condition (True, False, Unknown) type: string type: - description: Type of job condition, Complete or Failed. + description: type describes the current condition type: string required: - status - type type: object - v1.JobList: - description: JobList is a collection of jobs. + v2.HorizontalPodAutoscalerList: + description: HorizontalPodAutoscalerList is a list of horizontal pod autoscaler + objects. example: metadata: remainingItemCount: 1 @@ -136781,152 +109369,56 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 + target: + averageValue: averageValue + averageUtilization: 5 + type: type value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + pods: + metric: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + selector: matchExpressions: - values: - values @@ -136940,11 +109432,20 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: matchExpressions: - values: - values @@ -136958,2598 +109459,1256 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + status: + desiredReplicas: 3 + currentReplicas: 9 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + status: + desiredReplicas: 3 + currentReplicas: 9 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + items: + description: items is the list of horizontal pod autoscaler objects. + items: + $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + 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: autoscaling + kind: HorizontalPodAutoscalerList + version: v2 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v2.HorizontalPodAutoscalerSpec: + description: HorizontalPodAutoscalerSpec describes the desired functionality + of the HorizontalPodAutoscaler. + example: + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + properties: + behavior: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerBehavior' + maxReplicas: + description: maxReplicas is the upper limit for the number of replicas to + which the autoscaler can scale up. It cannot be less that minReplicas. + format: int32 + type: integer + metrics: + description: metrics contains the specifications for which to use to calculate + the desired replica count (the maximum replica count across all metrics + will be used). The desired replica count is calculated multiplying the + ratio between the target value and the current value by the current number + of pods. Ergo, metrics used must decrease as the pod count is increased, + and vice-versa. See the individual metric source types for more information + about how each type of metric must respond. If not set, the default metric + will be set to 80% average CPU utilization. + items: + $ref: '#/components/schemas/v2.MetricSpec' + type: array + x-kubernetes-list-type: atomic + minReplicas: + description: minReplicas is the lower limit for the number of replicas to + which the autoscaler can scale down. It defaults to 1 pod. minReplicas + is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled + and at least one Object or External metric is configured. Scaling is + active as long as at least one metric value is available. + format: int32 + type: integer + scaleTargetRef: + $ref: '#/components/schemas/v2.CrossVersionObjectReference' + required: + - maxReplicas + - scaleTargetRef + type: object + v2.HorizontalPodAutoscalerStatus: + description: HorizontalPodAutoscalerStatus describes the current status of a + horizontal pod autoscaler. + example: + desiredReplicas: 3 + currentReplicas: 9 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + conditions: + description: conditions is the set of conditions required for this autoscaler + to scale its target, and indicates whether or not those conditions are + met. + items: + $ref: '#/components/schemas/v2.HorizontalPodAutoscalerCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + currentMetrics: + description: currentMetrics is the last read state of the metrics used by + this autoscaler. + items: + $ref: '#/components/schemas/v2.MetricStatus' + type: array + x-kubernetes-list-type: atomic + currentReplicas: + description: currentReplicas is current number of replicas of pods managed + by this autoscaler, as last seen by the autoscaler. + format: int32 + type: integer + desiredReplicas: + description: desiredReplicas is the desired number of replicas of pods managed + by this autoscaler, as last calculated by the autoscaler. + format: int32 + type: integer + lastScaleTime: + description: lastScaleTime is the last time the HorizontalPodAutoscaler + scaled the number of pods, used by the autoscaler to control how often + the number of pods is changed. + format: date-time + type: string + observedGeneration: + description: observedGeneration is the most recent generation observed by + this autoscaler. + format: int64 + type: integer + required: + - desiredReplicas + type: object + v2.MetricIdentifier: + description: MetricIdentifier defines the name and optionally selector for a + metric + example: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + name: + description: name is the name of the given metric + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + required: + - name + type: object + v2.MetricSpec: + description: MetricSpec specifies how to scale based on a single metric (only + `type` and one other matching field should be set at once). + example: + external: + metric: + name: name selector: matchExpressions: - values: @@ -139564,2892 +110723,2187 @@ components: operator: operator matchLabels: key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - status: - completionTime: 2000-01-23T04:56:07.000+00:00 - completedIndexes: completedIndexes - ready: 1 - active: 0 - startTime: 2000-01-23T04:56:07.000+00:00 - uncountedTerminatedPods: - failed: - - failed - - failed - succeeded: - - succeeded - - succeeded - failed: 6 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - succeeded: 5 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + containerResource: + $ref: '#/components/schemas/v2.ContainerResourceMetricSource' + external: + $ref: '#/components/schemas/v2.ExternalMetricSource' + object: + $ref: '#/components/schemas/v2.ObjectMetricSource' + pods: + $ref: '#/components/schemas/v2.PodsMetricSource' + resource: + $ref: '#/components/schemas/v2.ResourceMetricSource' + type: + description: 'type is the type of metric source. It should be one of "ContainerResource", + "External", "Object", "Pods" or "Resource", each mapping to a matching + field in the object. Note: "ContainerResource" type is available on when + the feature-gate HPAContainerMetrics is enabled' + type: string + required: + - type + type: object + v2.MetricStatus: + description: MetricStatus describes the last-read state of a single metric. + example: + external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + containerResource: + $ref: '#/components/schemas/v2.ContainerResourceMetricStatus' + external: + $ref: '#/components/schemas/v2.ExternalMetricStatus' + object: + $ref: '#/components/schemas/v2.ObjectMetricStatus' + pods: + $ref: '#/components/schemas/v2.PodsMetricStatus' + resource: + $ref: '#/components/schemas/v2.ResourceMetricStatus' + type: + description: 'type is the type of metric source. It will be one of "ContainerResource", + "External", "Object", "Pods" or "Resource", each corresponds to a matching + field in the object. Note: "ContainerResource" type is available on when + the feature-gate HPAContainerMetrics is enabled' + type: string + required: + - type + type: object + v2.MetricTarget: + description: MetricTarget defines the target value, average value, or average + utilization of a specific metric + example: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + averageUtilization: + description: averageUtilization is the target value of the average of the + resource metric across all relevant pods, represented as a percentage + of the requested value of the resource for the pods. Currently only valid + for Resource metric source type + format: int32 + type: integer + averageValue: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + type: + description: type represents whether the metric type is Utilization, Value, + or AverageValue + type: string + 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: + - type + type: object + v2.MetricValueStatus: + description: MetricValueStatus holds the current value for a metric + example: + averageValue: averageValue + averageUtilization: 7 + value: value + properties: + averageUtilization: + description: currentAverageUtilization is the current value of the average + of the resource metric across all relevant pods, represented as a percentage + of the requested value of the resource for the pods. + format: int32 + type: integer + averageValue: + 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 + 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 + type: object + v2.ObjectMetricSource: + description: ObjectMetricSource indicates how to scale on a metric describing + a kubernetes object (for example, hits-per-second on an Ingress object). + example: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + describedObject: + $ref: '#/components/schemas/v2.CrossVersionObjectReference' + metric: + $ref: '#/components/schemas/v2.MetricIdentifier' + target: + $ref: '#/components/schemas/v2.MetricTarget' + required: + - describedObject + - metric + - target + type: object + v2.ObjectMetricStatus: + description: ObjectMetricStatus indicates the current value of a metric describing + a kubernetes object (for example, hits-per-second on an Ingress object). + example: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + current: + $ref: '#/components/schemas/v2.MetricValueStatus' + describedObject: + $ref: '#/components/schemas/v2.CrossVersionObjectReference' + metric: + $ref: '#/components/schemas/v2.MetricIdentifier' + required: + - current + - describedObject + - metric + type: object + v2.PodsMetricSource: + 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. + example: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + metric: + $ref: '#/components/schemas/v2.MetricIdentifier' + target: + $ref: '#/components/schemas/v2.MetricTarget' + required: + - metric + - target + type: object + v2.PodsMetricStatus: + description: PodsMetricStatus indicates the current value of a metric describing + each pod in the current scale target (for example, transactions-processed-per-second). + example: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + current: + $ref: '#/components/schemas/v2.MetricValueStatus' + metric: + $ref: '#/components/schemas/v2.MetricIdentifier' + required: + - current + - metric + type: object + v2.ResourceMetricSource: + 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. + example: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + name: + description: name is the name of the resource in question. + type: string + target: + $ref: '#/components/schemas/v2.MetricTarget' + required: + - name + - target + type: object + v2.ResourceMetricStatus: + 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. + example: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + properties: + current: + $ref: '#/components/schemas/v2.MetricValueStatus' + name: + description: Name is the name of the resource in question. + type: string + required: + - current + - name + type: object + v2beta2.ContainerResourceMetricSource: + 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. + example: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + container: + description: container is the name of the container in the pods of the scaling + target + type: string + name: + description: name is the name of the resource in question. + type: string + target: + $ref: '#/components/schemas/v2beta2.MetricTarget' + required: + - container + - name + - target + type: object + v2beta2.ContainerResourceMetricStatus: + 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. + example: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + properties: + container: + description: Container is the name of the container in the pods of the scaling + target + type: string + current: + $ref: '#/components/schemas/v2beta2.MetricValueStatus' + name: + description: Name is the name of the resource in question. + type: string + required: + - container + - current + - name + type: object + v2beta2.CrossVersionObjectReference: + description: CrossVersionObjectReference contains enough information to let + you identify the referred resource. + example: + apiVersion: apiVersion + kind: kind + name: name + properties: + apiVersion: + description: API version of the referent + type: string + kind: + description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' + type: string + name: + description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + required: + - kind + - name + type: object + v2beta2.ExternalMetricSource: + 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). + example: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + metric: + $ref: '#/components/schemas/v2beta2.MetricIdentifier' + target: + $ref: '#/components/schemas/v2beta2.MetricTarget' + required: + - metric + - target + type: object + v2beta2.ExternalMetricStatus: + description: ExternalMetricStatus indicates the current value of a global metric + not associated with any Kubernetes object. + example: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + current: + $ref: '#/components/schemas/v2beta2.MetricValueStatus' + metric: + $ref: '#/components/schemas/v2beta2.MetricIdentifier' + required: + - current + - metric + type: object + v2beta2.HPAScalingPolicy: + description: HPAScalingPolicy is a single policy which must hold true for a + specified past interval. + example: + periodSeconds: 0 + type: type + value: 6 + properties: + periodSeconds: + description: PeriodSeconds specifies the window of time for which the policy + should hold true. PeriodSeconds must be greater than zero and less than + or equal to 1800 (30 min). + format: int32 + type: integer + type: + description: Type is used to specify the scaling policy. + type: string + value: + description: Value contains the amount of change which is permitted by the + policy. It must be greater than zero + format: int32 + type: integer + required: + - periodSeconds + - type + - value + type: object + v2beta2.HPAScalingRules: + description: HPAScalingRules configures the scaling behavior for one direction. + These Rules are applied after calculating DesiredReplicas from metrics for + the HPA. They can limit the scaling velocity by specifying scaling policies. + They can prevent flapping by specifying the stabilization window, so that + the number of replicas is not set instantly, instead, the safest value from + the stabilization window is chosen. + example: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + properties: + policies: + description: policies is a list of potential scaling polices which can be + used during scaling. At least one policy must be specified, otherwise + the HPAScalingRules will be discarded as invalid + items: + $ref: '#/components/schemas/v2beta2.HPAScalingPolicy' + type: array + selectPolicy: + description: selectPolicy is used to specify which policy should be used. + If not set, the default value MaxPolicySelect is used. + type: string + stabilizationWindowSeconds: + description: 'StabilizationWindowSeconds is the number of seconds for which + past recommendations should be considered while scaling up or scaling + down. StabilizationWindowSeconds must be greater than or equal to zero + and less than or equal to 3600 (one hour). If not set, use the default + values: - For scale up: 0 (i.e. no stabilization is done). - For scale + down: 300 (i.e. the stabilization window is 300 seconds long).' + format: int32 + type: integer + type: object + v2beta2.HorizontalPodAutoscaler: + 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. + 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: + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + status: + desiredReplicas: 3 + currentReplicas: 9 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: - name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerSpec' + status: + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerStatus' + type: object + x-kubernetes-group-version-kind: + - group: autoscaling + kind: HorizontalPodAutoscaler + version: v2beta2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v2beta2.HorizontalPodAutoscalerBehavior: + description: HorizontalPodAutoscalerBehavior configures the scaling behavior + of the target in both Up and Down directions (scaleUp and scaleDown fields + respectively). + example: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + properties: + scaleDown: + $ref: '#/components/schemas/v2beta2.HPAScalingRules' + scaleUp: + $ref: '#/components/schemas/v2beta2.HPAScalingRules' + type: object + v2beta2.HorizontalPodAutoscalerCondition: + description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler + at a certain point. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: lastTransitionTime is the last time the condition transitioned + from one status to another + format: date-time + type: string + message: + description: message is a human-readable explanation containing details + about the transition + type: string + reason: + description: reason is the reason for the condition's last transition. + type: string + status: + description: status is the status of the condition (True, False, Unknown) + type: string + type: + description: type describes the current condition + type: string + required: + - status + - type + type: object + v2beta2.HorizontalPodAutoscalerList: + description: HorizontalPodAutoscalerList is a list of horizontal pod autoscaler + 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: + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + status: + desiredReplicas: 3 + currentReplicas: 9 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + - external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name status: - completionTime: 2000-01-23T04:56:07.000+00:00 - completedIndexes: completedIndexes - ready: 1 - active: 0 - startTime: 2000-01-23T04:56:07.000+00:00 - uncountedTerminatedPods: - failed: - - failed - - failed - succeeded: - - succeeded - - succeeded - failed: 6 + desiredReplicas: 3 + currentReplicas: 9 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - succeeded: 5 + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -142457,9 +112911,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is the list of Jobs. + description: items is the list of horizontal pod autoscaler objects. items: - $ref: '#/components/schemas/v1.Job' + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscaler' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -142472,153 +112926,108 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: batch - kind: JobList - version: v1 + - group: autoscaling + kind: HorizontalPodAutoscalerList + version: v2beta2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.JobSpec: - description: JobSpec describes how the job execution will look like. + v2beta2.HorizontalPodAutoscalerSpec: + description: HorizontalPodAutoscalerSpec describes the desired functionality + of the HorizontalPodAutoscaler. example: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + maxReplicas: 5 + minReplicas: 2 + metrics: + - external: + metric: name: name - blockOwnerDeletion: true - - uid: uid - controller: true + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: apiVersion: apiVersion kind: kind name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + - external: + metric: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + selector: matchExpressions: - values: - values @@ -142632,11 +113041,30 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: matchExpressions: - values: - values @@ -142650,2990 +113078,6787 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + behavior: + scaleUp: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleDown: + selectPolicy: selectPolicy + stabilizationWindowSeconds: 1 + policies: + - periodSeconds: 0 + type: type + value: 6 + - periodSeconds: 0 + type: type + value: 6 + scaleTargetRef: + apiVersion: apiVersion + kind: kind + name: name + properties: + behavior: + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerBehavior' + maxReplicas: + description: maxReplicas is the upper limit for the number of replicas to + which the autoscaler can scale up. It cannot be less that minReplicas. + format: int32 + type: integer + metrics: + description: metrics contains the specifications for which to use to calculate + the desired replica count (the maximum replica count across all metrics + will be used). The desired replica count is calculated multiplying the + ratio between the target value and the current value by the current number + of pods. Ergo, metrics used must decrease as the pod count is increased, + and vice-versa. See the individual metric source types for more information + about how each type of metric must respond. If not set, the default metric + will be set to 80% average CPU utilization. + items: + $ref: '#/components/schemas/v2beta2.MetricSpec' + type: array + minReplicas: + description: minReplicas is the lower limit for the number of replicas to + which the autoscaler can scale down. It defaults to 1 pod. minReplicas + is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled + and at least one Object or External metric is configured. Scaling is + active as long as at least one metric value is available. + format: int32 + type: integer + scaleTargetRef: + $ref: '#/components/schemas/v2beta2.CrossVersionObjectReference' + required: + - maxReplicas + - scaleTargetRef + type: object + v2beta2.HorizontalPodAutoscalerStatus: + description: HorizontalPodAutoscalerStatus describes the current status of a + horizontal pod autoscaler. + example: + desiredReplicas: 3 + currentReplicas: 9 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + lastScaleTime: 2000-01-23T04:56:07.000+00:00 + observedGeneration: 2 + currentMetrics: + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + matchLabels: + key: matchLabels + - external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + conditions: + description: conditions is the set of conditions required for this autoscaler + to scale its target, and indicates whether or not those conditions are + met. + items: + $ref: '#/components/schemas/v2beta2.HorizontalPodAutoscalerCondition' + type: array + currentMetrics: + description: currentMetrics is the last read state of the metrics used by + this autoscaler. + items: + $ref: '#/components/schemas/v2beta2.MetricStatus' + type: array + currentReplicas: + description: currentReplicas is current number of replicas of pods managed + by this autoscaler, as last seen by the autoscaler. + format: int32 + type: integer + desiredReplicas: + description: desiredReplicas is the desired number of replicas of pods managed + by this autoscaler, as last calculated by the autoscaler. + format: int32 + type: integer + lastScaleTime: + description: lastScaleTime is the last time the HorizontalPodAutoscaler + scaled the number of pods, used by the autoscaler to control how often + the number of pods is changed. + format: date-time + type: string + observedGeneration: + description: observedGeneration is the most recent generation observed by + this autoscaler. + format: int64 + type: integer + required: + - currentReplicas + - desiredReplicas + type: object + v2beta2.MetricIdentifier: + description: MetricIdentifier defines the name and optionally selector for a + metric + example: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + name: + description: name is the name of the given metric + type: string + selector: + $ref: '#/components/schemas/v1.LabelSelector' + required: + - name + type: object + v2beta2.MetricSpec: + description: MetricSpec specifies how to scale based on a single metric (only + `type` and one other matching field should be set at once). + example: + external: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + resource: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + containerResource: + container: container + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + pods: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + containerResource: + $ref: '#/components/schemas/v2beta2.ContainerResourceMetricSource' + external: + $ref: '#/components/schemas/v2beta2.ExternalMetricSource' + object: + $ref: '#/components/schemas/v2beta2.ObjectMetricSource' + pods: + $ref: '#/components/schemas/v2beta2.PodsMetricSource' + resource: + $ref: '#/components/schemas/v2beta2.ResourceMetricSource' + type: + description: 'type is the type of metric source. It should be one of "ContainerResource", + "External", "Object", "Pods" or "Resource", each mapping to a matching + field in the object. Note: "ContainerResource" type is available on when + the feature-gate HPAContainerMetrics is enabled' + type: string + required: + - type + type: object + v2beta2.MetricStatus: + description: MetricStatus describes the last-read state of a single metric. + example: + external: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + resource: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + containerResource: + container: container + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + pods: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + type: type + object: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + containerResource: + $ref: '#/components/schemas/v2beta2.ContainerResourceMetricStatus' + external: + $ref: '#/components/schemas/v2beta2.ExternalMetricStatus' + object: + $ref: '#/components/schemas/v2beta2.ObjectMetricStatus' + pods: + $ref: '#/components/schemas/v2beta2.PodsMetricStatus' + resource: + $ref: '#/components/schemas/v2beta2.ResourceMetricStatus' + type: + description: 'type is the type of metric source. It will be one of "ContainerResource", + "External", "Object", "Pods" or "Resource", each corresponds to a matching + field in the object. Note: "ContainerResource" type is available on when + the feature-gate HPAContainerMetrics is enabled' + type: string + required: + - type + type: object + v2beta2.MetricTarget: + description: MetricTarget defines the target value, average value, or average + utilization of a specific metric + example: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + averageUtilization: + description: averageUtilization is the target value of the average of the + resource metric across all relevant pods, represented as a percentage + of the requested value of the resource for the pods. Currently only valid + for Resource metric source type + format: int32 + type: integer + averageValue: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + type: + description: type represents whether the metric type is Utilization, Value, + or AverageValue + type: string + 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: + - type + type: object + v2beta2.MetricValueStatus: + description: MetricValueStatus holds the current value for a metric + example: + averageValue: averageValue + averageUtilization: 7 + value: value + properties: + averageUtilization: + description: currentAverageUtilization is the current value of the average + of the resource metric across all relevant pods, represented as a percentage + of the requested value of the resource for the pods. + format: int32 + type: integer + averageValue: + 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 + 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 + type: object + v2beta2.ObjectMetricSource: + description: ObjectMetricSource indicates how to scale on a metric describing + a kubernetes object (for example, hits-per-second on an Ingress object). + example: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + describedObject: + $ref: '#/components/schemas/v2beta2.CrossVersionObjectReference' + metric: + $ref: '#/components/schemas/v2beta2.MetricIdentifier' + target: + $ref: '#/components/schemas/v2beta2.MetricTarget' + required: + - describedObject + - metric + - target + type: object + v2beta2.ObjectMetricStatus: + description: ObjectMetricStatus indicates the current value of a metric describing + a kubernetes object (for example, hits-per-second on an Ingress object). + example: + describedObject: + apiVersion: apiVersion + kind: kind + name: name + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + current: + $ref: '#/components/schemas/v2beta2.MetricValueStatus' + describedObject: + $ref: '#/components/schemas/v2beta2.CrossVersionObjectReference' + metric: + $ref: '#/components/schemas/v2beta2.MetricIdentifier' + required: + - current + - describedObject + - metric + type: object + v2beta2.PodsMetricSource: + 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. + example: + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + metric: + $ref: '#/components/schemas/v2beta2.MetricIdentifier' + target: + $ref: '#/components/schemas/v2beta2.MetricTarget' + required: + - metric + - target + type: object + v2beta2.PodsMetricStatus: + description: PodsMetricStatus indicates the current value of a metric describing + each pod in the current scale target (for example, transactions-processed-per-second). + example: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + metric: + name: name + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + current: + $ref: '#/components/schemas/v2beta2.MetricValueStatus' + metric: + $ref: '#/components/schemas/v2beta2.MetricIdentifier' + required: + - current + - metric + type: object + v2beta2.ResourceMetricSource: + 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. + example: + name: name + target: + averageValue: averageValue + averageUtilization: 5 + type: type + value: value + properties: + name: + description: name is the name of the resource in question. + type: string + target: + $ref: '#/components/schemas/v2beta2.MetricTarget' + required: + - name + - target + type: object + v2beta2.ResourceMetricStatus: + 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. + example: + current: + averageValue: averageValue + averageUtilization: 7 + value: value + name: name + properties: + current: + $ref: '#/components/schemas/v2beta2.MetricValueStatus' + name: + description: Name is the name of the resource in question. + type: string + required: + - current + - name + type: object + v1.CronJob: + description: CronJob represents the configuration of a single cron job. + 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: + suspend: true + schedule: schedule + jobTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: + namespace: namespace + spec: + suspend: true + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + kind: kind name: name - optional: true - key: key - fieldRef: + blockOwnerDeletion: true + - uid: uid + controller: true apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: - name: name value: value - name: name value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: - name: name value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value - - name: name + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - preStop: - tcpSocket: - port: port - host: host - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 command: - command - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - preStop: - tcpSocket: - port: port - host: host - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 command: - command - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 command: - command - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - preStop: - tcpSocket: - port: port - host: host - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 command: - command - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: - name: name value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - name: name value: value - preStop: - tcpSocket: - port: port - host: host - exec: + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 command: - command - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - properties: - activeDeadlineSeconds: - description: 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. - format: int64 - type: integer - backoffLimit: - description: Specifies the number of retries before marking this job failed. - Defaults to 6 - format: int32 - type: integer - completionMode: - description: |- - 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. - type: string - completions: - description: 'Specifies the desired number of successfully finished pods - the job should be run with. Setting to nil 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/' - format: int32 - type: integer - manualSelector: - description: 'manualSelector controls generation of pod labels and pod selectors. - Leave `manualSelector` unset unless you are certain what you are doing. - When false or unset, the system pick labels unique to this job and appends - those labels to the pod template. When true, the user is responsible - for picking unique labels and specifying the selector. Failure to pick - a unique label may cause this and other jobs to not function correctly. However, - You may see `manualSelector=true` in jobs that were created with the old - `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector' - type: boolean - parallelism: - description: '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/' - format: int32 - type: integer - selector: - $ref: '#/components/schemas/v1.LabelSelector' - suspend: - description: 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. - type: boolean - template: - $ref: '#/components/schemas/v1.PodTemplateSpec' - ttlSecondsAfterFinished: - description: ttlSecondsAfterFinished limits the lifetime of a Job that has - finished execution (either Complete or Failed). If this field is set, - ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically - deleted. When the Job is being deleted, its lifecycle guarantees (e.g. - finalizers) will be honored. If this field is unset, the Job won't be - automatically deleted. If this field is set to zero, the Job becomes eligible - to be deleted immediately after it finishes. - format: int32 - type: integer - required: - - template - type: object - v1.JobStatus: - description: JobStatus represents the current state of a Job. - example: - completionTime: 2000-01-23T04:56:07.000+00:00 - completedIndexes: completedIndexes - ready: 1 - active: 0 - startTime: 2000-01-23T04:56:07.000+00:00 - uncountedTerminatedPods: - failed: - - failed - - failed - succeeded: - - succeeded - - succeeded - failed: 6 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - succeeded: 5 - properties: - active: - description: The number of pending and running pods. - format: int32 - type: integer - completedIndexes: - description: CompletedIndexes holds the completed indexes when .spec.completionMode - = "Indexed" in a text format. The indexes are represented as decimal integers - separated by commas. The numbers are listed in increasing order. Three - or more consecutive numbers are compressed and represented by the first - and last element of the series, separated by a hyphen. For example, if - the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". - type: string - completionTime: - description: Represents time when the job was completed. It is not guaranteed - to be set in happens-before order across separate operations. It is represented - in RFC3339 form and is in UTC. The completion time is only set when the - job finishes successfully. - format: date-time - type: string - conditions: - description: 'The latest available observations of an object''s current - state. When a Job fails, one of the conditions will have type "Failed" - and status true. When a Job is suspended, one of the conditions will have - type "Suspended" and status true; when the Job is resumed, the status - of this condition will become false. When a Job is completed, one of the - conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/' - items: - $ref: '#/components/schemas/v1.JobCondition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: atomic - x-kubernetes-patch-merge-key: type - failed: - description: The number of pods which reached phase Failed. - format: int32 - type: integer - ready: - description: |- - The number of pods which have a Ready condition. - - This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). - format: int32 - type: integer - startTime: - description: Represents time when the job controller started processing - a job. When a Job is created in the suspended state, this field is not - set until the first time it is resumed. This field is reset every time - a Job is resumed from suspension. It is represented in RFC3339 form and - is in UTC. - format: date-time - type: string - succeeded: - description: The number of pods which reached phase Succeeded. - format: int32 - type: integer - uncountedTerminatedPods: - $ref: '#/components/schemas/v1.UncountedTerminatedPods' - type: object - v1.JobTemplateSpec: - description: JobTemplateSpec describes the data a Job should have when created - from a template - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 + startingDeadlineSeconds: 9 + concurrencyPolicy: concurrencyPolicy + timeZone: timeZone + failedJobsHistoryLimit: 0 + successfulJobsHistoryLimit: 3 + status: + lastScheduleTime: 2000-01-23T04:56:07.000+00:00 + active: - uid: uid - controller: true apiVersion: apiVersion kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - blockOwnerDeletion: true + namespace: namespace - uid: uid - controller: true apiVersion: apiVersion kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace + namespace: namespace + lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + $ref: '#/components/schemas/v1.CronJobSpec' + status: + $ref: '#/components/schemas/v1.CronJobStatus' + type: object + x-kubernetes-group-version-kind: + - group: batch + kind: CronJob + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.CronJobList: + description: CronJobList is a collection of cron jobs. + 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 - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-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: + suspend: true + schedule: schedule + jobTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: + namespace: namespace + spec: + suspend: true + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: matchExpressions: - values: - values @@ -145647,803 +119872,3162 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 + startingDeadlineSeconds: 9 + concurrencyPolicy: concurrencyPolicy + timeZone: timeZone + failedJobsHistoryLimit: 0 + successfulJobsHistoryLimit: 3 + status: + lastScheduleTime: 2000-01-23T04:56:07.000+00:00 + active: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + suspend: true + schedule: schedule + jobTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + suspend: true + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath name: name - volumeName: volumeName + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: requests: {} limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath name: name - volumeName: volumeName + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir resources: requests: {} limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 - name: name - optional: true - items: - - mode: 6 - path: path + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values key: key - - mode: 6 - path: path + operator: operator + - values: + - values + - values key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 + startingDeadlineSeconds: 9 + concurrencyPolicy: concurrencyPolicy + timeZone: timeZone + failedJobsHistoryLimit: 0 + successfulJobsHistoryLimit: 3 + status: + lastScheduleTime: 2000-01-23T04:56:07.000+00:00 + active: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + items: + description: items is the list of CronJobs. + items: + $ref: '#/components/schemas/v1.CronJob' + 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: batch + kind: CronJobList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.CronJobSpec: + description: CronJobSpec describes how the job execution will look like and + when it will actually run. + example: + suspend: true + schedule: schedule + jobTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + suspend: true + template: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - - devicePath: devicePath + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames securityContext: - privileged: true runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop seLinuxOptions: role: role level: level type: type user: user + fsGroup: 6 seccompProfile: localhostProfile: localhostProfile type: type @@ -146452,114 +123036,849 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 value: value - valueFrom: - secretKeyRef: + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: name: name - optional: true + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + - mode: 6 + path: path key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -146570,14 +123889,59 @@ components: value: value - name: name value: value - preStop: + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -146588,224 +123952,179 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -146816,14 +124135,59 @@ components: value: value - name: name value: value - preStop: + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -146834,229 +124198,248 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147067,14 +124450,129 @@ components: value: value - name: name value: value - preStop: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147085,223 +124583,46 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147312,14 +124633,58 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147330,224 +124695,180 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP name: name - optional: true - prefix: prefix - secretRef: + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP name: name - optional: true - - configMapRef: + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - prefix: prefix - secretRef: + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147558,14 +124879,58 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147576,223 +124941,179 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: - - name: name - value: value - valueFrom: - secretKeyRef: + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: + - configMapRef: name: name optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + prefix: prefix + secretRef: name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147803,14 +125124,58 @@ components: value: value - name: name value: value - preStop: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 tcpSocket: port: port host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 exec: command: - command - command + grpc: + port: 5 + service: service httpGet: path: path scheme: scheme @@ -147821,217 +125186,255 @@ components: value: value - name: name value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -148063,9 +125466,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -148097,76 +125498,78 @@ components: namespaces: - namespaces - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: matchExpressions: - values: - values @@ -148198,9 +125601,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -148232,61 +125633,216 @@ components: namespaces: - namespaces - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 + startingDeadlineSeconds: 9 + concurrencyPolicy: concurrencyPolicy + timeZone: timeZone + failedJobsHistoryLimit: 0 + successfulJobsHistoryLimit: 3 properties: - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.JobSpec' + concurrencyPolicy: + description: |+ + Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one + + type: string + failedJobsHistoryLimit: + description: The number of failed finished jobs to retain. Value must be + non-negative integer. Defaults to 1. + format: int32 + type: integer + jobTemplate: + $ref: '#/components/schemas/v1.JobTemplateSpec' + schedule: + description: The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + type: string + startingDeadlineSeconds: + description: Optional deadline in seconds for starting the job if it misses + scheduled time for any reason. Missed jobs executions will be counted + as failed ones. + format: int64 + type: integer + successfulJobsHistoryLimit: + description: The number of successful finished jobs to retain. Value must + be non-negative integer. Defaults to 3. + format: int32 + type: integer + suspend: + description: This flag tells the controller to suspend subsequent executions, + it does not apply to already started executions. Defaults to false. + type: boolean + timeZone: + description: The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. + If not specified, this will default to the time zone of the kube-controller-manager + process. The set of valid time zone names and the time zone offset is + loaded from the system-wide time zone database by the API server during + CronJob validation and the controller manager during execution. If no + system-wide time zone database can be found a bundled version of the database + is used instead. If the time zone name becomes invalid during the lifetime + of a CronJob or due to a change in host configuration, the controller + will stop creating new new Jobs and will create a system event with the + reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones + This is beta field and must be enabled via the `CronJobTimeZone` feature + gate. + type: string + required: + - jobTemplate + - schedule type: object - v1.UncountedTerminatedPods: - description: UncountedTerminatedPods holds UIDs of Pods that have terminated - but haven't been accounted in Job status counters. + v1.CronJobStatus: + description: CronJobStatus represents the current state of a cron job. example: - failed: - - failed - - failed - succeeded: - - succeeded - - succeeded + lastScheduleTime: 2000-01-23T04:56:07.000+00:00 + active: + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + - uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 properties: - failed: - description: Failed holds UIDs of failed Pods. - items: - type: string - type: array - x-kubernetes-list-type: set - succeeded: - description: Succeeded holds UIDs of succeeded Pods. + active: + description: A list of pointers to currently running jobs. items: - type: string + $ref: '#/components/schemas/v1.ObjectReference' type: array - x-kubernetes-list-type: set + x-kubernetes-list-type: atomic + lastScheduleTime: + description: Information when was the last time the job was successfully + scheduled. + format: date-time + type: string + lastSuccessfulTime: + description: Information when was the last time the job successfully completed. + format: date-time + type: string type: object - v1beta1.CronJob: - description: CronJob represents the configuration of a single cron job. + v1.Job: + description: Job represents the configuration of a single job. example: metadata: generation: 6 @@ -148331,7 +125887,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -148339,8 +125894,7 @@ components: kind: kind spec: suspend: true - schedule: schedule - jobTemplate: + template: metadata: generation: 6 finalizers: @@ -148384,287 +125938,287 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 6 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -148673,149 +126227,11 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -148835,43 +126251,330 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath configMap: - defaultMode: 9 name: name optional: true items: @@ -148881,158 +126584,8 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -149041,149 +126594,11 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -149203,43 +126618,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: @@ -149249,1947 +126628,2111 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 6 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 1 + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 status: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + completionTime: 2000-01-23T04:56:07.000+00:00 + completedIndexes: completedIndexes + ready: 1 + active: 0 + startTime: 2000-01-23T04:56:07.000+00:00 + uncountedTerminatedPods: + failed: + - failed + - failed + succeeded: + - succeeded + - succeeded + failed: 6 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + succeeded: 5 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -151204,18 +128747,52 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: - $ref: '#/components/schemas/v1beta1.CronJobSpec' + $ref: '#/components/schemas/v1.JobSpec' status: - $ref: '#/components/schemas/v1beta1.CronJobStatus' + $ref: '#/components/schemas/v1.JobStatus' type: object x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1beta1 + kind: Job + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.CronJobList: - description: CronJobList is a collection of cron jobs. + v1.JobCondition: + description: JobCondition describes current state of a job. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + properties: + lastProbeTime: + description: Last time the condition was checked. + format: date-time + type: string + lastTransitionTime: + description: Last time the condition transit from one status to another. + format: date-time + type: string + message: + description: Human readable message indicating details about last transition. + type: string + reason: + description: (brief) reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type of job condition, Complete or Failed. + type: string + required: + - status + - type + type: object + v1.JobList: + description: JobList is a collection of jobs. example: metadata: remainingItemCount: 1 @@ -151268,7 +128845,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -151276,8 +128852,7 @@ components: kind: kind spec: suspend: true - schedule: schedule - jobTemplate: + template: metadata: generation: 6 finalizers: @@ -151321,287 +128896,331 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 6 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values + secret: + name: name + optional: true + items: + - mode: 6 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -151610,149 +129229,290 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: items: - mode: 6 path: path @@ -151772,43 +129532,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: @@ -151818,158 +129542,8 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -151978,149 +129552,11 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -152140,1993 +129576,2121 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + stdinOnce: true + envFrom: + - configMapRef: name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 6 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 1 + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 status: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + completionTime: 2000-01-23T04:56:07.000+00:00 + completedIndexes: completedIndexes + ready: 1 + active: 0 + startTime: 2000-01-23T04:56:07.000+00:00 + uncountedTerminatedPods: + failed: + - failed + - failed + succeeded: + - succeeded + - succeeded + failed: 6 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + succeeded: 5 - metadata: generation: 6 finalizers: @@ -154170,7 +131734,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -154178,8 +131741,7 @@ components: kind: kind spec: suspend: true - schedule: schedule - jobTemplate: + template: metadata: generation: 6 finalizers: @@ -154223,438 +131785,300 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values key: key operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - values: + - values + - values key: key operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode - secret: - secretName: secretName - defaultMode: 6 - optional: true + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: items: - mode: 6 path: path - key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath - mode: 6 path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: - path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -154674,43 +132098,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: @@ -154720,158 +132108,8 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -154880,149 +132118,334 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + serviceAccountToken: path: path - secretRef: + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode volumeName: volumeName - secretRef: + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -155042,1993 +132465,2121 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 4 - hostPort: 7 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 6 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 1 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 status: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + completionTime: 2000-01-23T04:56:07.000+00:00 + completedIndexes: completedIndexes + ready: 1 + active: 0 + startTime: 2000-01-23T04:56:07.000+00:00 + uncountedTerminatedPods: + failed: + - failed + - failed + succeeded: + - succeeded + - succeeded + failed: 6 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + succeeded: 5 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -157036,9 +134587,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is the list of CronJobs. + description: items is the list of Jobs. items: - $ref: '#/components/schemas/v1beta1.CronJob' + $ref: '#/components/schemas/v1.Job' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -157052,17 +134603,15 @@ components: type: object x-kubernetes-group-version-kind: - group: batch - kind: CronJobList - version: v1beta1 + kind: JobList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.CronJobSpec: - description: CronJobSpec describes how the job execution will look like and - when it will actually run. + v1.JobSpec: + description: JobSpec describes how the job execution will look like. example: suspend: true - schedule: schedule - jobTemplate: + template: metadata: generation: 6 finalizers: @@ -157106,287 +134655,654 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace spec: - suspend: true - template: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + dnsPolicy: dnsPolicy + nodeName: nodeName + terminationGracePeriodSeconds: 5 + dnsConfig: + searches: + - searches + - searches + nameservers: + - nameservers + - nameservers + options: + - name: name + value: value + - name: name + value: value + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + priorityClassName: priorityClassName + hostAliases: + - ip: ip + hostnames: + - hostnames + - hostnames + - ip: ip + hostnames: + - hostnames + - hostnames + securityContext: + runAsUser: 1 + seLinuxOptions: + role: role + level: level + type: type + user: user + fsGroup: 6 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + fsGroupChangePolicy: fsGroupChangePolicy + supplementalGroups: + - 4 + - 4 + runAsGroup: 7 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + tolerations: + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 9 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: {} + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 6 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + volumes: + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - dnsPolicy: dnsPolicy - nodeName: nodeName - terminationGracePeriodSeconds: 5 - dnsConfig: - searches: - - searches - - searches - nameservers: - - nameservers - - nameservers - options: - - name: name - value: value - - name: name - value: value - hostNetwork: true - readinessGates: - - conditionType: conditionType - - conditionType: conditionType - serviceAccountName: serviceAccountName - imagePullSecrets: - - name: name - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 1 - seLinuxOptions: - role: role - level: level - type: type - user: user - fsGroup: 6 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 4 - - 4 - runAsGroup: 7 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value - preemptionPolicy: preemptionPolicy - nodeSelector: - key: nodeSelector - hostname: hostname - runtimeClassName: runtimeClassName - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value + - mode: 6 + path: path key: key - operator: operator - automountServiceAccountToken: true - schedulerName: schedulerName - activeDeadlineSeconds: 0 - os: + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: {} - hostIPC: true - topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 9 - labelSelector: - matchExpressions: - - values: - - values - - values + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + - quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + readOnly: true + fsType: fsType + ephemeral: + volumeClaimTemplate: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + spec: + storageClassName: storageClassName + dataSourceRef: + apiGroup: apiGroup + kind: kind + name: name + volumeName: volumeName + resources: + requests: {} + limits: {} + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + accessModes: + - accessModes + - accessModes + dataSource: + apiGroup: apiGroup + kind: kind + name: name + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 6 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: + name: name + optional: true + items: + - mode: 6 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 6 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - minDomains: 6 - topologyKey: topologyKey - volumes: - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name optional: true items: - mode: 6 @@ -157395,149 +135311,11 @@ components: - mode: 6 path: path key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 + audience: audience + expirationSeconds: 5 + - downwardAPI: items: - mode: 6 path: path @@ -157557,43 +135335,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors configMap: - defaultMode: 9 name: name optional: true items: @@ -157603,2379 +135345,2253 @@ components: - mode: 6 path: path key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: - path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - readOnly: true - fsType: fsType - ephemeral: - volumeClaimTemplate: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - volumeName: volumeName - resources: - requests: {} - limits: {} - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind - name: name - volumeMode: volumeMode secret: - secretName: secretName - defaultMode: 6 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 5 + defaultMode: 6 + cephfs: + path: path + secretRef: + name: name + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + emptyDir: + sizeLimit: sizeLimit + medium: medium + glusterfs: + path: path + endpoints: endpoints + readOnly: true + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + volumeID: volumeID + readOnly: true + fsType: fsType + downwardAPI: + defaultMode: 3 + items: + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 6 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 6 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 9 + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + name: name + readOnly: true + fsType: fsType + csi: + driver: driver + nodePublishSecretRef: + name: name + readOnly: true + fsType: fsType + volumeAttributes: + key: volumeAttributes + name: name + nfs: + path: path + server: server + readOnly: true + persistentVolumeClaim: + claimName: claimName + readOnly: true + gitRepo: + repository: repository + directory: directory + revision: revision + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - projected: - sources: - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - - downwardAPI: - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - configMap: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - secret: - name: name - optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 5 - defaultMode: 6 - cephfs: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - secretRef: - name: name - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - endpoints: endpoints - readOnly: true - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 3 - items: - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 6 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 6 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - configMap: - defaultMode: 9 + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + targetContainerName: targetContainerName + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - items: - - mode: 6 - path: path - key: key - - mode: 6 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: - name: name - readOnly: true - fsType: fsType - volumeAttributes: - key: volumeAttributes - name: name - nfs: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - server: server - readOnly: true - persistentVolumeClaim: - claimName: claimName - readOnly: true - gitRepo: - repository: repository - directory: directory - revision: revision - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + serviceAccount: serviceAccount + priority: 1 + restartPolicy: restartPolicy + shareProcessNamespace: true + hostUsers: true + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - targetContainerName: targetContainerName - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - serviceAccount: serviceAccount - priority: 1 - restartPolicy: restartPolicy - shareProcessNamespace: true - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + image: image + imagePullPolicy: imagePullPolicy + livenessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + requests: {} + limits: {} + securityContext: + privileged: true + runAsUser: 1 + capabilities: + add: + - add + - add + drop: + - drop + - drop + seLinuxOptions: + role: role + level: level + type: type + user: user + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + procMount: procMount + allowPrivilegeEscalation: true + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: command: - command - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - volumeDevices: - - devicePath: devicePath + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: name: name - - devicePath: devicePath + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - image: image - imagePullPolicy: imagePullPolicy - livenessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - requests: {} - limits: {} - securityContext: - privileged: true - runAsUser: 1 - capabilities: - add: - - add - - add - drop: - - drop - - drop - seLinuxOptions: - role: role - level: level - type: type - user: user - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - procMount: procMount - allowPrivilegeEscalation: true - runAsGroup: 1 - runAsNonRoot: true - readOnlyRootFilesystem: true - startupProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + ports: + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + - protocol: protocol + hostIP: hostIP + name: name + containerPort: 4 + hostPort: 7 + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + lifecycle: + postStart: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + preStop: + tcpSocket: + port: port + host: host + exec: + command: + - command + - command + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + name: name + tty: true + readinessProbe: + terminationGracePeriodSeconds: 3 + failureThreshold: 5 + periodSeconds: 7 + tcpSocket: + port: port + host: host + timeoutSeconds: 2 + successThreshold: 9 + initialDelaySeconds: 2 + exec: + command: + - command + - command + grpc: + port: 5 + service: service + httpGet: + path: path + scheme: scheme + port: port + host: host + httpHeaders: - name: name value: value - valueFrom: - secretKeyRef: - name: name - optional: true + - name: name + value: value + stdinOnce: true + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + weight: 6 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name - optional: true + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: - name: name - optional: true + operator: operator + - values: + - values + - values key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - ports: - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 4 - hostPort: 7 - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation - name: name - readOnly: true - subPath: subPath - subPathExpr: subPathExpr - args: - - args - - args - lifecycle: - postStart: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - preStop: - tcpSocket: - port: port - host: host - exec: - command: - - command - - command - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - name: name - tty: true - readinessProbe: - terminationGracePeriodSeconds: 3 - failureThreshold: 5 - periodSeconds: 7 - tcpSocket: - port: port - host: host - timeoutSeconds: 2 - successThreshold: 9 - initialDelaySeconds: 2 - exec: - command: - - command - - command - grpc: - port: 5 - service: service - httpGet: - path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - stdinOnce: true - envFrom: - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - - configMapRef: - name: name - optional: true - prefix: prefix - secretRef: - name: name - optional: true - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - preferredDuringSchedulingIgnoredDuringExecution: - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - - preference: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - weight: 6 - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - namespaces: - - namespaces - - namespaces - weight: 1 - hostPID: true - backoffLimit: 1 - manualSelector: true - parallelism: 5 - completions: 5 - completionMode: completionMode - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 - startingDeadlineSeconds: 6 - concurrencyPolicy: concurrencyPolicy - timeZone: timeZone - failedJobsHistoryLimit: 0 - successfulJobsHistoryLimit: 1 + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 1 + hostPID: true + backoffLimit: 1 + manualSelector: true + parallelism: 5 + completions: 5 + completionMode: completionMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + activeDeadlineSeconds: 6 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 properties: - concurrencyPolicy: - description: 'Specifies how to treat concurrent executions of a Job. Valid - values are: - "Allow" (default): allows CronJobs to run concurrently; - - "Forbid": forbids concurrent runs, skipping next run if previous run - hasn''t finished yet; - "Replace": cancels currently running job and replaces - it with a new one' - type: string - failedJobsHistoryLimit: - description: The number of failed finished jobs to retain. This is a pointer - to distinguish between explicit zero and not specified. Defaults to 1. + activeDeadlineSeconds: + description: 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. + format: int64 + type: integer + backoffLimit: + description: Specifies the number of retries before marking this job failed. + Defaults to 6 format: int32 type: integer - jobTemplate: - $ref: '#/components/schemas/v1beta1.JobTemplateSpec' - schedule: - description: The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. + completionMode: + description: |- + 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. type: string - startingDeadlineSeconds: - description: Optional deadline in seconds for starting the job if it misses - scheduled time for any reason. Missed jobs executions will be counted - as failed ones. - format: int64 + completions: + description: 'Specifies the desired number of successfully finished pods + the job should be run with. Setting to nil 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/' + format: int32 type: integer - successfulJobsHistoryLimit: - description: The number of successful finished jobs to retain. This is a - pointer to distinguish between explicit zero and not specified. Defaults - to 3. + manualSelector: + description: 'manualSelector controls generation of pod labels and pod selectors. + Leave `manualSelector` unset unless you are certain what you are doing. + When false or unset, the system pick labels unique to this job and appends + those labels to the pod template. When true, the user is responsible + for picking unique labels and specifying the selector. Failure to pick + a unique label may cause this and other jobs to not function correctly. However, + You may see `manualSelector=true` in jobs that were created with the old + `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector' + type: boolean + parallelism: + description: '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/' format: int32 type: integer + podFailurePolicy: + $ref: '#/components/schemas/v1.PodFailurePolicy' + selector: + $ref: '#/components/schemas/v1.LabelSelector' suspend: - description: This flag tells the controller to suspend subsequent executions, - it does not apply to already started executions. Defaults to false. + description: 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. type: boolean - timeZone: - description: 'The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. - If not specified, this will rely on the time zone of the kube-controller-manager - process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` - feature gate.' - type: string + template: + $ref: '#/components/schemas/v1.PodTemplateSpec' + ttlSecondsAfterFinished: + description: ttlSecondsAfterFinished limits the lifetime of a Job that has + finished execution (either Complete or Failed). If this field is set, + ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically + deleted. When the Job is being deleted, its lifecycle guarantees (e.g. + finalizers) will be honored. If this field is unset, the Job won't be + automatically deleted. If this field is set to zero, the Job becomes eligible + to be deleted immediately after it finishes. + format: int32 + type: integer required: - - jobTemplate - - schedule + - template type: object - v1beta1.CronJobStatus: - description: CronJobStatus represents the current state of a cron job. + v1.JobStatus: + description: JobStatus represents the current state of a Job. example: - lastScheduleTime: 2000-01-23T04:56:07.000+00:00 - active: - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - lastSuccessfulTime: 2000-01-23T04:56:07.000+00:00 + completionTime: 2000-01-23T04:56:07.000+00:00 + completedIndexes: completedIndexes + ready: 1 + active: 0 + startTime: 2000-01-23T04:56:07.000+00:00 + uncountedTerminatedPods: + failed: + - failed + - failed + succeeded: + - succeeded + - succeeded + failed: 6 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + succeeded: 5 properties: active: - description: A list of pointers to currently running jobs. + description: The number of pending and running pods. + format: int32 + type: integer + completedIndexes: + description: CompletedIndexes holds the completed indexes when .spec.completionMode + = "Indexed" in a text format. The indexes are represented as decimal integers + separated by commas. The numbers are listed in increasing order. Three + or more consecutive numbers are compressed and represented by the first + and last element of the series, separated by a hyphen. For example, if + the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". + type: string + completionTime: + description: Represents time when the job was completed. It is not guaranteed + to be set in happens-before order across separate operations. It is represented + in RFC3339 form and is in UTC. The completion time is only set when the + job finishes successfully. + format: date-time + type: string + conditions: + description: 'The latest available observations of an object''s current + state. When a Job fails, one of the conditions will have type "Failed" + and status true. When a Job is suspended, one of the conditions will have + type "Suspended" and status true; when the Job is resumed, the status + of this condition will become false. When a Job is completed, one of the + conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/' items: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: '#/components/schemas/v1.JobCondition' type: array + x-kubernetes-patch-strategy: merge x-kubernetes-list-type: atomic - lastScheduleTime: - description: Information when was the last time the job was successfully - scheduled. - format: date-time - type: string - lastSuccessfulTime: - description: Information when was the last time the job successfully completed. + x-kubernetes-patch-merge-key: type + failed: + description: The number of pods which reached phase Failed. + format: int32 + type: integer + ready: + description: |- + The number of pods which have a Ready condition. + + This field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default). + format: int32 + type: integer + startTime: + description: Represents time when the job controller started processing + a job. When a Job is created in the suspended state, this field is not + set until the first time it is resumed. This field is reset every time + a Job is resumed from suspension. It is represented in RFC3339 form and + is in UTC. format: date-time type: string + succeeded: + description: The number of pods which reached phase Succeeded. + format: int32 + type: integer + uncountedTerminatedPods: + $ref: '#/components/schemas/v1.UncountedTerminatedPods' type: object - v1beta1.JobTemplateSpec: + v1.JobTemplateSpec: description: JobTemplateSpec describes the data a Job should have when created from a template example: @@ -160022,7 +137638,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -160072,7 +137687,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -160163,8 +137777,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -160181,8 +137797,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -160199,6 +137820,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -160264,7 +137888,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -160632,7 +138255,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -161433,6 +139055,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -162804,13 +140427,215 @@ components: matchLabels: key: matchLabels activeDeadlineSeconds: 6 - ttlSecondsAfterFinished: 2 + podFailurePolicy: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + ttlSecondsAfterFinished: 7 properties: metadata: $ref: '#/components/schemas/v1.ObjectMeta' spec: $ref: '#/components/schemas/v1.JobSpec' type: object + v1.PodFailurePolicy: + description: PodFailurePolicy describes how failed pods influence the backoffLimit. + example: + rules: + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + - onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + properties: + rules: + description: A list of pod failure policy rules. The rules are evaluated + in order. Once a rule matches a Pod failure, the remaining of the rules + are ignored. When no rule matches the Pod failure, the default handling + applies - the counter of pod failures is incremented and it is checked + against the backoffLimit. At most 20 elements are allowed. + items: + $ref: '#/components/schemas/v1.PodFailurePolicyRule' + type: array + x-kubernetes-list-type: atomic + required: + - rules + type: object + v1.PodFailurePolicyOnExitCodesRequirement: + 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. + example: + containerName: containerName + values: + - 2 + - 2 + operator: operator + properties: + containerName: + description: Restricts the check for exit codes to the container with the + specified name. When null, the rule applies to all containers. When specified, + it should match one the container or initContainer names in the pod template. + type: string + operator: + description: |+ + Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code + (might be multiple if there are multiple containers not restricted + by the 'containerName' field) is in the set of specified values. + - NotIn: the requirement is satisfied if at least one container exit code + (might be multiple if there are multiple containers not restricted + by the 'containerName' field) is not in the set of specified values. + Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. + + type: string + values: + description: Specifies the set of values. Each returned container exit code + (might be multiple in case of multiple containers) is checked against + this set of values with respect to the operator. The list of values must + be ordered and must not contain duplicates. Value '0' cannot be used for + the In operator. At least one element is required. At most 255 elements + are allowed. + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + - values + type: object + v1.PodFailurePolicyOnPodConditionsPattern: + description: PodFailurePolicyOnPodConditionsPattern describes a pattern for + matching an actual pod condition type. + example: + type: type + status: status + properties: + status: + description: Specifies the required Pod condition status. To match a pod + condition it is required that the specified status equals the pod condition + status. Defaults to True. + type: string + type: + description: Specifies the required Pod condition type. To match a pod condition + it is required that specified type equals the pod condition type. + type: string + required: + - status + - type + type: object + v1.PodFailurePolicyRule: + 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. + example: + onExitCodes: + containerName: containerName + values: + - 2 + - 2 + operator: operator + action: action + onPodConditions: + - type: type + status: status + - type: type + status: status + properties: + action: + description: |+ + Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all + running pods are terminated. + - Ignore: indicates that the counter towards the .backoffLimit is not + incremented and a replacement pod is created. + - Count: indicates that the pod is handled in the default way - the + counter towards the .backoffLimit is incremented. + Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + + type: string + onExitCodes: + $ref: '#/components/schemas/v1.PodFailurePolicyOnExitCodesRequirement' + onPodConditions: + description: Represents the requirement on the pod conditions. The requirement + is represented as a list of pod condition patterns. The requirement is + satisfied if at least one pattern matches an actual pod condition. At + most 20 elements are allowed. + items: + $ref: '#/components/schemas/v1.PodFailurePolicyOnPodConditionsPattern' + type: array + x-kubernetes-list-type: atomic + required: + - action + - onPodConditions + type: object + v1.UncountedTerminatedPods: + description: UncountedTerminatedPods holds UIDs of Pods that have terminated + but haven't been accounted in Job status counters. + example: + failed: + - failed + - failed + succeeded: + - succeeded + - succeeded + properties: + failed: + description: Failed holds UIDs of failed Pods. + items: + type: string + type: array + x-kubernetes-list-type: set + succeeded: + description: Succeeded holds UIDs of succeeded Pods. + items: + type: string + type: array + x-kubernetes-list-type: set + type: object v1.CertificateSigningRequest: description: |- CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. @@ -162864,7 +140689,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -163033,7 +140857,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -163113,7 +140936,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -163396,7 +141218,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -163484,7 +141305,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -163539,7 +141359,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -164179,7 +141998,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -164232,6 +142050,9 @@ components: name: name namespace: namespace volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace readOnly: true controllerExpandSecretRef: name: name @@ -164251,6 +142072,8 @@ components: description: fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". type: string + nodeExpandSecretRef: + $ref: '#/components/schemas/v1.SecretReference' nodePublishSecretRef: $ref: '#/components/schemas/v1.SecretReference' nodeStageSecretRef: @@ -164562,7 +142385,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -164659,7 +142481,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -164717,7 +142538,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -164806,7 +142626,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -164953,7 +142772,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -165007,7 +142825,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -165473,12 +143290,12 @@ components: in a pod must have a unique name (DNS_LABEL). Cannot be updated. type: string ports: - description: List of ports to expose from the container. Exposing a port - here gives the system additional information about the network connections - a container uses, but is primarily informational. Not specifying a port - here DOES NOT prevent that port from being exposed. Any port which is - listening on the default "0.0.0.0" address inside a container will be - accessible from the network. Cannot be updated. + description: List of ports to expose from the container. Not specifying + a port here DOES NOT prevent that port from being exposed. Any port which + is listening on the default "0.0.0.0" address inside a container will + be accessible from the network. Modifying this array with strategic merge + patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. + Cannot be updated. items: $ref: '#/components/schemas/v1.ContainerPort' type: array @@ -165562,8 +143379,8 @@ components: sizeBytes: 6 properties: names: - description: Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", - "dockerhub.io/google_containers/hyperkube:v1.0.7"] + description: Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", + "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] items: type: string type: array @@ -165906,38 +143723,41 @@ components: medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' type: string sizeLimit: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." format: quantity type: string type: object @@ -166008,15 +143828,13 @@ components: type: object x-kubernetes-map-type: atomic v1.EndpointSubset: - 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 ] + 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:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"\ + ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675},\ + \ {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints\ + \ can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309,\ + \ 10.10.2.2:309 ]" example: notReadyAddresses: - nodeName: nodeName @@ -166095,19 +143913,13 @@ components: type: array type: object v1.Endpoints: - 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}] - }, - ] + description: "Endpoints is a collection of endpoints that implement the actual\ + \ service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t \ + \ Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports:\ + \ [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t\ + \ },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports:\ + \ [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t \ + \ },\n\t]" example: metadata: generation: 6 @@ -166152,7 +143964,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -166354,7 +144165,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -166514,7 +144324,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -166750,8 +144559,6 @@ components: 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. - - This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate. example: volumeDevices: - devicePath: devicePath @@ -167189,7 +144996,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -167281,7 +145087,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -167442,7 +145247,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -167523,7 +145327,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -168286,7 +146089,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -168429,7 +146231,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -168492,7 +146293,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -168726,7 +146526,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -168856,7 +146655,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -168922,7 +146720,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -169064,7 +146861,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -169489,7 +147285,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -169638,7 +147433,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -170267,7 +148061,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -170475,6 +148268,9 @@ components: name: name namespace: namespace volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace readOnly: true controllerExpandSecretRef: name: name @@ -170584,7 +148380,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -170758,7 +148553,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -170860,7 +148654,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -171128,7 +148921,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -171246,7 +149038,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -171454,295 +149245,300 @@ components: name: name namespace: namespace volumeHandle: volumeHandle - readOnly: true - controllerExpandSecretRef: + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + status: + phase: phase + reason: reason + message: message + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: {} + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: name: name namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - status: - phase: phase - reason: reason - message: message - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: {} - cephfs: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: - name: name - namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle readOnly: true controllerExpandSecretRef: name: name @@ -172012,6 +149808,9 @@ components: name: name namespace: namespace volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace readOnly: true controllerExpandSecretRef: name: name @@ -172215,7 +150014,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -172308,8 +150106,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -172326,8 +150126,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -172344,6 +150149,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -172409,7 +150217,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -172777,7 +150584,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -173578,6 +151384,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -175670,9 +153477,9 @@ components: type: string type: object v1.PodIP: - description: |- - IP address information for entries in the (plural) PodIPs field. Each entry includes: - IP: An IP address allocated to the pod. Routable at least within the cluster. + description: "IP address information for entries in the (plural) PodIPs field.\ + \ Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable\ + \ at least within the cluster." example: ip: ip properties: @@ -175734,7 +153541,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -175827,8 +153633,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -175845,8 +153653,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -175863,6 +153676,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -175928,7 +153744,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -176296,7 +154111,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -177097,6 +154911,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -178729,7 +156544,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -178822,8 +156636,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -178840,8 +156656,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -178858,6 +156679,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -178923,7 +156747,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -179291,7 +157114,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -180092,6 +157914,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -181921,8 +159744,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -181939,8 +159764,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -181957,6 +159787,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -182022,7 +159855,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -182390,7 +160222,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -183191,6 +161022,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -184581,9 +162413,7 @@ components: 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. This - field is beta-level and available on clusters that haven't disabled the - EphemeralContainers feature gate. + to an existing pod, use the pod's ephemeralcontainers subresource. items: $ref: '#/components/schemas/v1.EphemeralContainer' type: array @@ -184609,6 +162439,17 @@ components: hostPID: description: 'Use the host''s pid namespace. Optional: Default to false.' type: boolean + hostUsers: + description: 'Use the host''s user namespace. Optional: Default to true. + If set to true or not present, the pod will be run in the host user namespace, + useful for when the pod needs a feature only available to the host user + namespace, such as loading a kernel module with CAP_SYS_MODULE. When set + to false, a new userns is created for the pod. Setting false is useful + for mitigating container breakout vulnerabilities even allowing users + to run their containers as root without actually having root privileges + on the host. This field is alpha-level and is only honored by servers + that enable the UserNamespacesSupport feature.' + type: boolean hostname: description: Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. @@ -185042,8 +162883,6 @@ components: type: array ephemeralContainerStatuses: description: Status for any ephemeral containers that have run in this pod. - This field is beta-level and available on clusters that haven't disabled - the EphemeralContainers feature gate. items: $ref: '#/components/schemas/v1.ContainerStatus' type: array @@ -185159,7 +162998,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -185250,8 +163088,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -185268,8 +163108,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -185286,6 +163131,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -185351,7 +163199,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -185719,7 +163566,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -186520,6 +164366,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -187914,7 +165761,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -187997,7 +165843,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -188088,8 +165933,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -188106,8 +165953,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -188124,6 +165976,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -188189,7 +166044,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -188557,7 +166411,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -189358,6 +167211,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -190752,7 +168606,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -190802,7 +168655,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -190893,8 +168745,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -190911,8 +168765,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -190929,6 +168788,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -190994,7 +168856,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -191362,7 +169223,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -192163,6 +170023,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -193557,7 +171418,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -193637,7 +171497,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -193728,8 +171587,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -193746,8 +171607,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -193764,6 +171630,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -193829,7 +171698,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -194197,7 +172065,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -194998,6 +172865,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -196823,7 +174691,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -196874,7 +174741,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -196965,8 +174831,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -196983,8 +174851,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -197001,6 +174874,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -197066,7 +174942,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -197434,7 +175309,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -198235,6 +176109,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -199716,7 +177591,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -199767,7 +177641,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -199858,8 +177731,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -199876,8 +177751,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -199894,6 +177774,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -199959,7 +177842,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -200327,7 +178209,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -201128,6 +179009,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -202543,7 +180425,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -202594,7 +180475,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -202685,8 +180565,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -202703,8 +180585,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -202721,6 +180608,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -202786,7 +180676,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -203154,7 +181043,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -203955,6 +181843,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -205402,7 +183291,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -205493,8 +183381,10 @@ components: overhead: {} hostIPC: true topologySpreadConstraints: - - whenUnsatisfiable: whenUnsatisfiable + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -205511,8 +183401,13 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey - - whenUnsatisfiable: whenUnsatisfiable + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -205529,6 +183424,9 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys volumes: - quobyte: volume: volume @@ -205594,7 +183492,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -205962,7 +183859,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -206763,6 +184659,7 @@ components: priority: 1 restartPolicy: restartPolicy shareProcessNamespace: true + hostUsers: true subdomain: subdomain containers: - volumeDevices: @@ -208213,38 +186110,41 @@ components: description: 'Container name: required for volumes, optional for env vars' type: string divisor: - description: |- - Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." format: quantity type: string resource: @@ -208300,7 +186200,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -208404,7 +186303,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -208473,7 +186371,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -208869,7 +186766,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209020,7 +186916,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209075,7 +186970,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209349,7 +187243,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209504,7 +187397,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209630,7 +187522,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209698,7 +187589,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209836,7 +187726,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -209962,7 +187851,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -210221,7 +188109,7 @@ components: type: string externalTrafficPolicy: description: |+ - externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. + externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. type: string healthCheckNodePort: @@ -210233,15 +188121,16 @@ components: node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. - changing type). + changing type). This field cannot be updated once set. format: int32 type: integer internalTrafficPolicy: - description: InternalTrafficPolicy specifies if the cluster internal traffic - should be routed to all endpoints or node-local endpoints only. "Cluster" - routes internal traffic to a Service to all endpoints. "Local" routes - traffic to node-local endpoints only, traffic is dropped if no node-local - endpoints are ready. The default value is "Cluster". + description: InternalTrafficPolicy describes how nodes distribute service + traffic they receive on the ClusterIP. If set to "Local", the proxy will + assume that pods only want to talk to endpoints of the service on the + same node as the pod, dropping the traffic if there are no local endpoints. + The default value, "Cluster", uses the standard behavior of routing to + all endpoints evenly (possibly modified by topology and other features). type: string ipFamilies: description: |- @@ -210628,8 +188517,10 @@ components: description: TopologySpreadConstraint specifies how to spread matching pods among the given topology. example: + nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable maxSkew: 9 + nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: - values: @@ -210646,9 +188537,23 @@ components: key: matchLabels minDomains: 6 topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys properties: labelSelector: $ref: '#/components/schemas/v1.LabelSelector' + matchLabelKeys: + description: MatchLabelKeys is a set of pod label keys to select the pods + over which spreading will be calculated. The keys are used to lookup values + from the incoming pod labels, those key-value labels are ANDed with labelSelector + to select the group of existing pods over which spreading will be calculated + for the incoming pod. Keys that don't exist in the incoming pod labels + will be ignored. A null or empty list means only match against labelSelector. + items: + type: string + type: array + x-kubernetes-list-type: atomic maxSkew: description: 'MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum @@ -210672,18 +188577,31 @@ components: For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. - This is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate. + This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). format: int32 type: integer + nodeAffinityPolicy: + description: |- + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + + If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + type: string + nodeTaintsPolicy: + description: |- + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + + If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + type: string topologyKey: description: TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes - match the node selector. e.g. If TopologyKey is "kubernetes.io/hostname", - each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", - each zone is a domain of that topology. It's a required field. + meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. + If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that + topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone + is a domain of that topology. It's a required field. type: string whenUnsatisfiable: description: |+ @@ -210790,7 +188708,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -211505,8 +189422,7 @@ components: type: string nodeName: description: nodeName represents the name of the Node hosting this endpoint. - This can be used to determine endpoints local to a Node. This field can - be enabled with the EndpointSliceNodeName feature gate. + This can be used to determine endpoints local to a Node. type: string targetRef: $ref: '#/components/schemas/v1.ObjectReference' @@ -211692,7 +189608,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -211856,7 +189771,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -211964,972 +189878,21 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - addressType: addressType - kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: List of endpoint slices - items: - $ref: '#/components/schemas/v1.EndpointSlice' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSliceList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.ForZone: - description: ForZone provides information about which zones should consume this - endpoint. - example: - name: name - properties: - name: - description: name represents the name of the zone. - type: string - required: - - name - type: object - v1beta1.Endpoint: - description: Endpoint represents a single logical "backend" implementing a service. - example: - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - properties: - addresses: - description: 'addresses of this endpoint. The contents of this field are - interpreted according to the corresponding EndpointSlice addressType field. - Consumers must handle different types of addresses in the context of their - own capabilities. This must contain at least one address but no more than - 100. These are all assumed to be fungible and clients may choose to only - use the first element. Refer to: https://issue.k8s.io/106267' - items: - type: string - type: array - x-kubernetes-list-type: set - conditions: - $ref: '#/components/schemas/v1beta1.EndpointConditions' - hints: - $ref: '#/components/schemas/v1beta1.EndpointHints' - hostname: - description: hostname of this endpoint. This field may be used by consumers - of endpoints to distinguish endpoints from each other (e.g. in DNS names). - Multiple endpoints which use the same hostname should be considered fungible - (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label - (RFC 1123) validation. - type: string - nodeName: - description: nodeName represents the name of the Node hosting this endpoint. - This can be used to determine endpoints local to a Node. This field can - be enabled with the EndpointSliceNodeName feature gate. - type: string - targetRef: - $ref: '#/components/schemas/v1.ObjectReference' - topology: - additionalProperties: - type: string - description: |- - topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node - where the endpoint is located. This should match the corresponding - node label. - * topology.kubernetes.io/zone: the value indicates the zone where the - endpoint is located. This should match the corresponding node label. - * topology.kubernetes.io/region: the value indicates the region where the - endpoint is located. This should match the corresponding node label. - This field is deprecated and will be removed in future api versions. - type: object - required: - - addresses - type: object - v1beta1.EndpointConditions: - description: EndpointConditions represents the current condition of an endpoint. - example: - ready: true - terminating: true - serving: true - properties: - ready: - description: ready indicates that this endpoint is prepared to receive traffic, - according to whatever system is managing the endpoint. A nil value indicates - an unknown state. In most cases consumers should interpret this unknown - state as ready. For compatibility reasons, ready should never be "true" - for terminating endpoints. - type: boolean - serving: - description: serving is identical to ready except that it is set regardless - of the terminating state of endpoints. This condition should be set to - true for a ready endpoint that is terminating. If nil, consumers should - defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition - feature gate. - type: boolean - terminating: - description: terminating indicates that this endpoint is terminating. A - nil value indicates an unknown state. Consumers should interpret this - unknown state to mean that the endpoint is not terminating. This field - can be enabled with the EndpointSliceTerminatingCondition feature gate. - type: boolean - type: object - v1beta1.EndpointHints: - description: EndpointHints provides hints describing how an endpoint should - be consumed. - example: - forZones: - - name: name - - name: name - properties: - forZones: - description: forZones indicates the zone(s) this endpoint should be consumed - by to enable topology aware routing. May contain a maximum of 8 entries. - items: - $ref: '#/components/schemas/v1beta1.ForZone' - type: array - x-kubernetes-list-type: atomic - type: object - v1beta1.EndpointPort: - description: EndpointPort represents a Port used by an EndpointSlice - example: - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - properties: - appProtocol: - description: The application protocol for this port. This field follows - standard Kubernetes label syntax. Un-prefixed names are reserved for IANA - standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). - Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. - type: string - name: - description: 'The name of this port. All ports in an EndpointSlice must - have a unique name. If the EndpointSlice is dervied from a Kubernetes - service, this corresponds to the Service.ports[].name. Name must either - be an empty string or pass DNS_LABEL validation: * must be no more than - 63 characters long. * must consist of lower case alphanumeric characters - or ''-''. * must start and end with an alphanumeric character. Default - is empty string.' - type: string - port: - description: The port number of the endpoint. If this is not specified, - ports are not restricted and must be interpreted in the context of the - specific consumer. - format: int32 - type: integer - protocol: - description: The IP protocol for this port. Must be UDP, TCP, or SCTP. Default - is TCP. - type: string - type: object - v1beta1.EndpointSlice: - description: EndpointSlice represents a subset of the endpoints that implement - a service. For a given service there may be multiple EndpointSlice objects, - selected by labels, which must be joined to produce the full set of endpoints. - example: - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - addressType: addressType - kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - properties: - addressType: - description: 'addressType specifies the type of address carried by this - EndpointSlice. All addresses in this slice must be the same type. This - field is immutable after creation. The following address types are currently - supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 - Address. * FQDN: Represents a Fully Qualified Domain Name.' - type: string - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - endpoints: - description: endpoints is a list of unique endpoints in this slice. Each - slice may include a maximum of 1000 endpoints. - items: - $ref: '#/components/schemas/v1beta1.Endpoint' - type: array - x-kubernetes-list-type: atomic - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - ports: - description: ports specifies the list of network ports exposed by each endpoint - in this slice. Each port must have a unique name. When ports is empty, - it indicates that there are no defined ports. When a port is defined with - a nil port value, it indicates "all ports". Each slice may include a maximum - of 100 ports. - items: - $ref: '#/components/schemas/v1beta1.EndpointPort' - type: array - x-kubernetes-list-type: atomic - required: - - addressType - - endpoints - type: object - x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSlice - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.EndpointSliceList: - description: EndpointSliceList represents a list of endpoint slices - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - addressType: addressType - kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - endpoints: - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - - nodeName: nodeName - targetRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - addresses: - - addresses - - addresses - hostname: hostname - hints: - forZones: - - name: name - - name: name - topology: - key: topology - conditions: - ready: true - terminating: true - serving: true - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - addressType: addressType - kind: kind - ports: - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: List of endpoint slices - items: - $ref: '#/components/schemas/v1beta1.EndpointSlice' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSliceList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.ForZone: - description: ForZone provides information about which zones should consume this - endpoint. - example: - name: name - properties: - name: - description: name represents the name of the zone. - type: string - required: - - name - type: object - events.v1.Event: - description: Event is a report of an event somewhere in the cluster. It generally - denotes some state change in the system. Events have a limited retention time - and triggers and messages may evolve with time. Event consumers should not - rely on the timing of an event with a given Reason reflecting a consistent - underlying trigger, or the continued existence of events with that Reason. Events - should be treated as informative, best-effort, supplemental data. - example: - note: note - reason: reason - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 - apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action - properties: - action: - description: action is what action was taken/failed regarding to the regarding - object. It is machine-readable. This field cannot be empty for new Events - and it can have at most 128 characters. - type: string - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - deprecatedCount: - description: deprecatedCount is the deprecated field assuring backward compatibility - with core.v1 Event type. - format: int32 - type: integer - deprecatedFirstTimestamp: - description: deprecatedFirstTimestamp is the deprecated field assuring backward - compatibility with core.v1 Event type. - format: date-time - type: string - deprecatedLastTimestamp: - description: deprecatedLastTimestamp is the deprecated field assuring backward - compatibility with core.v1 Event type. - format: date-time - type: string - deprecatedSource: - $ref: '#/components/schemas/v1.EventSource' - eventTime: - description: eventTime is the time when this Event was first observed. It - is required. - format: date-time - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - note: - description: note is a human-readable description of the status of this - operation. Maximal length of the note is 1kB, but libraries should be - prepared to handle values up to 64kB. - type: string - reason: - description: reason is why the action was taken. It is human-readable. This - field cannot be empty for new Events and it can have at most 128 characters. - type: string - regarding: - $ref: '#/components/schemas/v1.ObjectReference' - related: - $ref: '#/components/schemas/v1.ObjectReference' - reportingController: - description: reportingController is the name of the controller that emitted - this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for - new Events. - type: string - reportingInstance: - description: reportingInstance is the ID of the controller instance, e.g. - `kubelet-xyzf`. This field cannot be empty for new Events and it can have - at most 128 characters. - type: string - series: - $ref: '#/components/schemas/events.v1.EventSeries' - type: - description: type is the type of this event (Normal, Warning), new types - could be added in the future. It is machine-readable. This field cannot - be empty for new Events. - type: string - required: - - eventTime - type: object - x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: Event - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - events.v1.EventList: - description: EventList is a list of Event objects. - example: - metadata: - remainingItemCount: 1 - continue: continue - resourceVersion: resourceVersion - selfLink: selfLink - apiVersion: apiVersion - kind: kind - items: - - note: note - reason: reason - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 - kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 - apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action - - note: note - reason: reason - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 + apiVersion: apiVersion + addressType: addressType kind: kind - deprecatedSource: - component: component - host: host - type: type - deprecatedLastTimestamp: 2000-01-23T04:56:07.000+00:00 - regarding: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + ports: + - protocol: protocol + port: 0 + appProtocol: appProtocol name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 - apiVersion: apiVersion - reportingController: reportingController - related: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath + - protocol: protocol + port: 0 + appProtocol: appProtocol name: name - namespace: namespace - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -212937,9 +189900,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: List of endpoint slices items: - $ref: '#/components/schemas/events.v1.Event' + $ref: '#/components/schemas/v1.EndpointSlice' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -212952,36 +189915,24 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: EventList + - group: discovery.k8s.io + kind: EndpointSliceList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - events.v1.EventSeries: - description: EventSeries contain information on series of events, i.e. thing - that was/is happening continuously for some time. How often to update the - EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" - shows how this struct is updated on heartbeats and can guide customized reporter - implementations. + v1.ForZone: + description: ForZone provides information about which zones should consume this + endpoint. example: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 + name: name properties: - count: - description: count is the number of occurrences in this series up to the - last heartbeat time. - format: int32 - type: integer - lastObservedTime: - description: lastObservedTime is the time when last Event from the series - was seen before last heartbeat. - format: date-time + name: + description: name represents the name of the zone. type: string required: - - count - - lastObservedTime + - name type: object - v1beta1.Event: + events.v1.Event: description: Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not @@ -213034,7 +189985,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -213073,7 +190023,8 @@ components: properties: action: description: action is what action was taken/failed regarding to the regarding - object. It is machine-readable. This field can have at most 128 characters. + object. It is machine-readable. This field cannot be empty for new Events + and it can have at most 128 characters. type: string apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -213116,7 +190067,7 @@ components: type: string reason: description: reason is why the action was taken. It is human-readable. This - field can have at most 128 characters. + field cannot be empty for new Events and it can have at most 128 characters. type: string regarding: $ref: '#/components/schemas/v1.ObjectReference' @@ -213133,10 +190084,11 @@ components: at most 128 characters. type: string series: - $ref: '#/components/schemas/v1beta1.EventSeries' + $ref: '#/components/schemas/events.v1.EventSeries' type: description: type is the type of this event (Normal, Warning), new types - could be added in the future. It is machine-readable. + could be added in the future. It is machine-readable. This field cannot + be empty for new Events. type: string required: - eventTime @@ -213144,10 +190096,10 @@ components: x-kubernetes-group-version-kind: - group: events.k8s.io kind: Event - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.EventList: + events.v1.EventList: description: EventList is a list of Event objects. example: metadata: @@ -213203,7 +190155,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -213284,7 +190235,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -213329,7 +190279,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1beta1.Event' + $ref: '#/components/schemas/events.v1.Event' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -213344,12 +190294,15 @@ components: x-kubernetes-group-version-kind: - group: events.k8s.io kind: EventList - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.EventSeries: + events.v1.EventSeries: description: EventSeries contain information on series of events, i.e. thing - that was/is happening continuously for some time. + that was/is happening continuously for some time. How often to update the + EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" + shows how this struct is updated on heartbeats and can guide customized reporter + implementations. example: count: 6 lastObservedTime: 2000-01-23T04:56:07.000+00:00 @@ -213429,7 +190382,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -213676,7 +190628,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -213858,7 +190809,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -214238,8 +191188,8 @@ components: v1beta1.LimitedPriorityLevelConfiguration: description: |- LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - * How are requests for this priority level limited? - * What should be done with requests that exceed the limit? + - How are requests for this priority level limited? + - What should be done with requests that exceed the limit? example: limitResponse: queuing: @@ -214439,7 +191389,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -214577,7 +191526,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -214648,7 +191596,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -215006,7 +191953,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -215253,7 +192199,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -215435,7 +192380,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -215815,8 +192759,8 @@ components: v1beta2.LimitedPriorityLevelConfiguration: description: |- LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - * How are requests for this priority level limited? - * What should be done with requests that exceed the limit? + - How are requests for this priority level limited? + - What should be done with requests that exceed the limit? example: limitResponse: queuing: @@ -216016,7 +192960,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -216154,7 +193097,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -216225,7 +193167,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -216679,7 +193620,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -216875,7 +193815,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -216965,7 +193904,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -217022,7 +193960,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -217173,7 +194110,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -217319,7 +194255,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -217607,15 +194542,16 @@ components: defaultBackend: $ref: '#/components/schemas/v1.IngressBackend' ingressClassName: - description: IngressClassName is the name of the IngressClass cluster resource. - The associated IngressClass defines which controller will implement the - resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. - For backwards compatibility, when that annotation is set, it must be given - precedence over this field. The controller may emit a warning if the field - and annotation have different values. Implementations of this API should - ignore Ingresses without a class specified. An IngressClass resource may - be marked as default, which can be used to set a default value for this - field. For more information, refer to the IngressClass documentation. + description: IngressClassName is the name of an IngressClass cluster resource. + Ingress controller implementations use this field to know whether they + should be serving this Ingress resource, by a transitive connection (controller + -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` + annotation (simple constant name) was never formally defined, it was widely + supported by Ingress controllers to create a direct binding between Ingress + controller and Ingress resources. Newly created Ingress resources should + prefer using the field. However, even though the annotation is officially + deprecated, for backwards compatibility reasons, ingress controllers should + still honor that annotation if present. type: string rules: description: A list of host rules used to configure the Ingress. If unspecified, @@ -217735,7 +194671,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -218350,7 +195285,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -218729,7 +195663,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -219148,9 +196081,7 @@ components: description: If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a - named (string) port. The endPort must be equal or greater than port. This - feature is in Beta state and is enabled by default. It can be disabled - using the Feature Gate "NetworkPolicyEndPort". + named (string) port. The endPort must be equal or greater than port. format: int32 type: integer port: @@ -219572,28 +196503,17 @@ components: format: int32 type: integer type: object - v1.Overhead: - description: Overhead structure represents the resource overhead associated - with running a pod. - example: - podFixed: {} - properties: - podFixed: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: PodFixed represents the fixed resource overhead associated - with running a pod. - type: object - type: object - v1.RuntimeClass: - description: RuntimeClass defines a class of container runtime supported in - the cluster. The RuntimeClass is used to determine which container runtime - is used to run all containers in a pod. RuntimeClasses are manually defined - by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet - is responsible for resolving the RuntimeClassName reference before running - the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ + v1alpha1.ClusterCIDR: + description: ClusterCIDR represents a single configuration for per-Node Pod + CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config + for kube-controller-manager). A cluster may have any number of ClusterCIDR + resources, all of which will be considered when allocating a CIDR for a Node. A + ClusterCIDR is eligible to be used for a given Node when the node selector + matches the node in question and has free CIDRs to allocate. In case of multiple + matching ClusterCIDR resources, the allocator will attempt to break ties using + internal heuristics, but any ClusterCIDR whose node selector matches the Node + may be used. example: - handler: handler metadata: generation: 6 finalizers: @@ -219637,44 +196557,67 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: {} - scheduling: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator + spec: + ipv4: ipv4 + perNodeHostBits: 0 + ipv6: ipv6 nodeSelector: - key: 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: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string - handler: - description: Handler specifies the underlying runtime and configuration - that the CRI implementation will use to handle pods of this class. The - possible values are specific to the node & CRI configuration. It is assumed - that all handlers are available on every node, and handlers of the same - name are equivalent on every node. For example, a handler called "runc" - might specify that the runc OCI runtime (using native Linux containers) - will be used to run the containers in a pod. The Handler must be lowercase, - conform to the DNS Label (RFC 1123) requirements, and is immutable. - type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client @@ -219682,21 +196625,17 @@ components: type: string metadata: $ref: '#/components/schemas/v1.ObjectMeta' - overhead: - $ref: '#/components/schemas/v1.Overhead' - scheduling: - $ref: '#/components/schemas/v1.Scheduling' - required: - - handler + spec: + $ref: '#/components/schemas/v1alpha1.ClusterCIDRSpec' type: object x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClass - version: v1 + - group: networking.k8s.io + kind: ClusterCIDR + version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.RuntimeClassList: - description: RuntimeClassList is a list of RuntimeClass objects. + v1alpha1.ClusterCIDRList: + description: ClusterCIDRList contains a list of ClusterCIDR. example: metadata: remainingItemCount: 1 @@ -219706,8 +196645,7 @@ components: apiVersion: apiVersion kind: kind items: - - handler: handler - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -219750,30 +196688,62 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: {} - scheduling: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator + spec: + ipv4: ipv4 + perNodeHostBits: 0 + ipv6: ipv6 nodeSelector: - key: nodeSelector - - handler: handler - metadata: + 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 + - metadata: generation: 6 finalizers: - finalizers @@ -219816,28 +196786,61 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: {} - scheduling: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator + spec: + ipv4: ipv4 + perNodeHostBits: 0 + ipv6: ipv6 nodeSelector: - key: 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: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -219845,9 +196848,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: Items is a list of schema objects. + description: Items is the list of ClusterCIDRs. items: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: '#/components/schemas/v1alpha1.ClusterCIDR' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -219860,49 +196863,88 @@ components: - items type: object x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClassList - version: v1 + - group: networking.k8s.io + kind: ClusterCIDRList + version: v1alpha1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.Scheduling: - description: Scheduling specifies the scheduling constraints for nodes supporting - a RuntimeClass. + v1alpha1.ClusterCIDRSpec: + description: ClusterCIDRSpec defines the desired state of ClusterCIDR. example: - tolerations: - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator - - effect: effect - tolerationSeconds: 9 - value: value - key: key - operator: operator + ipv4: ipv4 + perNodeHostBits: 0 + ipv6: ipv6 nodeSelector: - key: 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: + ipv4: + description: IPv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8"). + At least one of IPv4 and IPv6 must be specified. This field is immutable. + type: string + ipv6: + description: IPv6 defines an IPv6 IP block in CIDR notation(e.g. "fd12:3456:789a:1::/64"). + At least one of IPv4 and IPv6 must be specified. This field is immutable. + type: string nodeSelector: - additionalProperties: - type: string - description: nodeSelector lists labels that must be present on nodes that - support this RuntimeClass. Pods using this RuntimeClass can only be scheduled - to a node matched by this selector. The RuntimeClass nodeSelector is merged - with a pod's existing nodeSelector. Any conflicts will cause the pod to - be rejected in admission. - type: object - x-kubernetes-map-type: atomic - tolerations: - description: tolerations are appended (excluding duplicates) to pods running - with this RuntimeClass during admission, effectively unioning the set - of nodes tolerated by the pod and the RuntimeClass. - items: - $ref: '#/components/schemas/v1.Toleration' - type: array - x-kubernetes-list-type: atomic + $ref: '#/components/schemas/v1.NodeSelector' + perNodeHostBits: + description: PerNodeHostBits defines the number of host bits to be configured + per node. A subnet mask determines how much of the address is used for + network bits and host bits. For example an IPv4 address of 192.168.0.0/24, + splits the address into 24 bits for the network portion and 8 bits for + the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask + for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field + is immutable. + format: int32 + type: integer + required: + - perNodeHostBits type: object - v1beta1.Overhead: + v1.Overhead: description: Overhead structure represents the resource overhead associated with running a pod. example: @@ -219915,13 +196957,13 @@ components: with running a pod. type: object type: object - v1beta1.RuntimeClass: + v1.RuntimeClass: description: RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime - is used to run all containers in a pod. RuntimeClasses are (currently) 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://git.k8s.io/enhancements/keps/sig-node/585-runtime-class + is used to run all containers in a pod. RuntimeClasses are manually defined + by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet + is responsible for resolving the RuntimeClassName reference before running + the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ example: handler: handler metadata: @@ -219967,7 +197009,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -220013,19 +197054,19 @@ components: metadata: $ref: '#/components/schemas/v1.ObjectMeta' overhead: - $ref: '#/components/schemas/v1beta1.Overhead' + $ref: '#/components/schemas/v1.Overhead' scheduling: - $ref: '#/components/schemas/v1beta1.Scheduling' + $ref: '#/components/schemas/v1.Scheduling' required: - handler type: object x-kubernetes-group-version-kind: - group: node.k8s.io kind: RuntimeClass - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta1.RuntimeClassList: + v1.RuntimeClassList: description: RuntimeClassList is a list of RuntimeClass objects. example: metadata: @@ -220080,7 +197121,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -220146,7 +197186,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -220177,7 +197216,7 @@ components: items: description: Items is a list of schema objects. items: - $ref: '#/components/schemas/v1beta1.RuntimeClass' + $ref: '#/components/schemas/v1.RuntimeClass' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -220192,10 +197231,10 @@ components: x-kubernetes-group-version-kind: - group: node.k8s.io kind: RuntimeClassList - version: v1beta1 + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.Scheduling: + v1.Scheduling: description: Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. example: @@ -220292,7 +197331,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -220367,7 +197405,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -220489,652 +197526,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: Items is a list of PodDisruptionBudgets - items: - $ref: '#/components/schemas/v1.PodDisruptionBudget' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudgetList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.PodDisruptionBudgetSpec: - description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - example: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - maxUnavailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - minAvailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - v1.PodDisruptionBudgetStatus: - description: PodDisruptionBudgetStatus represents information about the status - of a PodDisruptionBudget. Status may trail the actual state of a system. - example: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 - properties: - conditions: - description: |- - Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute - the number of allowed disruptions. Therefore no disruptions are - allowed and the status of the condition will be False. - - InsufficientPods: The number of pods are either at or below the number - required by the PodDisruptionBudget. No disruptions are - allowed and the status of the condition will be False. - - SufficientPods: There are more pods than required by the PodDisruptionBudget. - The condition will be True, and the number of allowed - disruptions are provided by the disruptionsAllowed property. - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - currentHealthy: - description: current number of healthy pods - format: int32 - type: integer - desiredHealthy: - description: minimum desired number of healthy pods - format: int32 - type: integer - disruptedPods: - additionalProperties: - description: Time is a wrapper around time.Time which supports correct - marshaling to YAML and JSON. Wrappers are provided for many of the - factory methods that the time package offers. - format: date-time - type: string - description: DisruptedPods contains information about pods whose eviction - was processed by the API server eviction subresource handler but has not - yet been observed by the PodDisruptionBudget controller. A pod will be - in this map from the time when the API server processed the eviction request - to the time when the pod is seen by PDB controller as having been marked - for deletion (or after a timeout). The key in the map is the name of the - pod and the value is the time when the API server processed the eviction - request. If the deletion didn't occur and a pod is still there it will - be removed from the list automatically by PodDisruptionBudget controller - after some time. If everything goes smooth this map should be empty for - the most of the time. Large number of entries in the map may indicate - problems with pod deletions. - type: object - disruptionsAllowed: - description: Number of pod disruptions that are currently allowed. - format: int32 - type: integer - expectedPods: - description: total number of pods counted by this disruption budget - format: int32 - type: integer - observedGeneration: - description: Most recent generation observed when updating this PDB status. - DisruptionsAllowed and other status information is valid only if observedGeneration - equals to PDB's object generation. - format: int64 - type: integer - required: - - currentHealthy - - desiredHealthy - - disruptionsAllowed - - expectedPods - type: object - v1beta1.AllowedCSIDriver: - description: AllowedCSIDriver represents a single inline CSI Driver that is - allowed to be used. - example: - name: name - properties: - name: - description: Name is the registered name of the CSI driver - type: string - required: - - name - type: object - v1beta1.AllowedFlexVolume: - description: AllowedFlexVolume represents a single Flexvolume that is allowed - to be used. - example: - driver: driver - properties: - driver: - description: driver is the name of the Flexvolume driver. - type: string - required: - - driver - type: object - v1beta1.AllowedHostPath: - description: AllowedHostPath defines the host volume conditions that will be - enabled by a policy for pods to use. It requires the path prefix to be defined. - example: - readOnly: true - pathPrefix: pathPrefix - properties: - pathPrefix: - description: |- - pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - - Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - type: string - readOnly: - description: when set to true, will allow host volumes matching the pathPrefix - only if all volume mounts are readOnly. - type: boolean - type: object - v1beta1.FSGroupStrategyOptions: - description: FSGroupStrategyOptions defines the strategy type and options used - to create the strategy. - example: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - properties: - ranges: - description: ranges are the allowed ranges of fs groups. If you would like - to force a single fs group then supply a single range with the same start - and end. Required for MustRunAs. - items: - $ref: '#/components/schemas/v1beta1.IDRange' - type: array - rule: - description: rule is the strategy that will dictate what FSGroup is used - in the SecurityContext. - type: string - type: object - v1beta1.HostPortRange: - description: HostPortRange defines a range of host ports that will be enabled - by a policy for pods to use. It requires both the start and end to be defined. - example: - min: 5 - max: 1 - properties: - max: - description: max is the end of the range, inclusive. - format: int32 - type: integer - min: - description: min is the start of the range, inclusive. - format: int32 - type: integer - required: - - max - - min - type: object - v1beta1.IDRange: - description: IDRange provides a min/max of an allowed range of IDs. - example: - min: 6 - max: 0 - properties: - max: - description: max is the end of the range, inclusive. - format: int64 - type: integer - min: - description: min is the start of the range, inclusive. - format: int64 - type: integer - required: - - max - - min - type: object - v1beta1.PodDisruptionBudget: - description: PodDisruptionBudget is an object to define the max disruption that - can be caused to a collection of pods - example: - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetSpec' - status: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudgetStatus' - type: object - x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudget - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.PodDisruptionBudgetList: - description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - status: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -221178,468 +197569,6 @@ components: status: status observedGeneration: 5 desiredHealthy: 6 - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - items: - description: items list individual PodDisruptionBudget objects - items: - $ref: '#/components/schemas/v1beta1.PodDisruptionBudget' - type: array - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - type: object - x-kubernetes-group-version-kind: - - group: policy - kind: PodDisruptionBudgetList - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1beta1.PodDisruptionBudgetSpec: - description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. - example: - minAvailable: minAvailable - maxUnavailable: maxUnavailable - selector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - maxUnavailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - minAvailable: - description: IntOrString is a type that can hold an int32 or a string. When - used in JSON or YAML marshalling and unmarshalling, it produces or consumes - the inner type. This allows you to have, for example, a JSON field that - can accept a name or number. - format: int-or-string - type: string - selector: - $ref: '#/components/schemas/v1.LabelSelector' - type: object - v1beta1.PodDisruptionBudgetStatus: - description: PodDisruptionBudgetStatus represents information about the status - of a PodDisruptionBudget. Status may trail the actual state of a system. - example: - currentHealthy: 0 - expectedPods: 5 - disruptionsAllowed: 1 - disruptedPods: - key: 2000-01-23T04:56:07.000+00:00 - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 5 - status: status - observedGeneration: 5 - desiredHealthy: 6 - properties: - conditions: - description: |- - Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute - the number of allowed disruptions. Therefore no disruptions are - allowed and the status of the condition will be False. - - InsufficientPods: The number of pods are either at or below the number - required by the PodDisruptionBudget. No disruptions are - allowed and the status of the condition will be False. - - SufficientPods: There are more pods than required by the PodDisruptionBudget. - The condition will be True, and the number of allowed - disruptions are provided by the disruptionsAllowed property. - items: - $ref: '#/components/schemas/v1.Condition' - type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type - currentHealthy: - description: current number of healthy pods - format: int32 - type: integer - desiredHealthy: - description: minimum desired number of healthy pods - format: int32 - type: integer - disruptedPods: - additionalProperties: - description: Time is a wrapper around time.Time which supports correct - marshaling to YAML and JSON. Wrappers are provided for many of the - factory methods that the time package offers. - format: date-time - type: string - description: DisruptedPods contains information about pods whose eviction - was processed by the API server eviction subresource handler but has not - yet been observed by the PodDisruptionBudget controller. A pod will be - in this map from the time when the API server processed the eviction request - to the time when the pod is seen by PDB controller as having been marked - for deletion (or after a timeout). The key in the map is the name of the - pod and the value is the time when the API server processed the eviction - request. If the deletion didn't occur and a pod is still there it will - be removed from the list automatically by PodDisruptionBudget controller - after some time. If everything goes smooth this map should be empty for - the most of the time. Large number of entries in the map may indicate - problems with pod deletions. - type: object - disruptionsAllowed: - description: Number of pod disruptions that are currently allowed. - format: int32 - type: integer - expectedPods: - description: total number of pods counted by this disruption budget - format: int32 - type: integer - observedGeneration: - description: Most recent generation observed when updating this PDB status. - DisruptionsAllowed and other status information is valid only if observedGeneration - equals to PDB's object generation. - format: int64 - type: integer - required: - - currentHealthy - - desiredHealthy - - disruptionsAllowed - - expectedPods - type: object - v1beta1.PodSecurityPolicy: - description: PodSecurityPolicy governs the ability to make requests that affect - the Security Context that will be applied to a pod and container. Deprecated - in 1.21. - 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - defaultAddCapabilities: - - defaultAddCapabilities - - defaultAddCapabilities - hostPorts: - - min: 5 - max: 1 - - min: 5 - max: 1 - allowedProcMountTypes: - - allowedProcMountTypes - - allowedProcMountTypes - fsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - seLinux: - seLinuxOptions: - role: role - level: level - type: type - user: user - rule: rule - hostNetwork: true - hostIPC: true - volumes: - - volumes - - volumes - requiredDropCapabilities: - - requiredDropCapabilities - - requiredDropCapabilities - runAsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - allowedCapabilities: - - allowedCapabilities - - allowedCapabilities - readOnlyRootFilesystem: true - privileged: true - runAsUser: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - runtimeClass: - allowedRuntimeClassNames: - - allowedRuntimeClassNames - - allowedRuntimeClassNames - defaultRuntimeClassName: defaultRuntimeClassName - allowedHostPaths: - - readOnly: true - pathPrefix: pathPrefix - - readOnly: true - pathPrefix: pathPrefix - forbiddenSysctls: - - forbiddenSysctls - - forbiddenSysctls - allowedCSIDrivers: - - name: name - - name: name - supplementalGroups: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - defaultAllowPrivilegeEscalation: true - allowedUnsafeSysctls: - - allowedUnsafeSysctls - - allowedUnsafeSysctls - allowPrivilegeEscalation: true - allowedFlexVolumes: - - driver: driver - - driver: driver - hostPID: true - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicySpec' - type: object - x-kubernetes-group-version-kind: - - group: policy - kind: PodSecurityPolicy - version: v1beta1 - x-implements: - - io.kubernetes.client.common.KubernetesObject - v1beta1.PodSecurityPolicyList: - description: PodSecurityPolicyList is a list of PodSecurityPolicy 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 - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - defaultAddCapabilities: - - defaultAddCapabilities - - defaultAddCapabilities - hostPorts: - - min: 5 - max: 1 - - min: 5 - max: 1 - allowedProcMountTypes: - - allowedProcMountTypes - - allowedProcMountTypes - fsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - seLinux: - seLinuxOptions: - role: role - level: level - type: type - user: user - rule: rule - hostNetwork: true - hostIPC: true - volumes: - - volumes - - volumes - requiredDropCapabilities: - - requiredDropCapabilities - - requiredDropCapabilities - runAsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - allowedCapabilities: - - allowedCapabilities - - allowedCapabilities - readOnlyRootFilesystem: true - privileged: true - runAsUser: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - runtimeClass: - allowedRuntimeClassNames: - - allowedRuntimeClassNames - - allowedRuntimeClassNames - defaultRuntimeClassName: defaultRuntimeClassName - allowedHostPaths: - - readOnly: true - pathPrefix: pathPrefix - - readOnly: true - pathPrefix: pathPrefix - forbiddenSysctls: - - forbiddenSysctls - - forbiddenSysctls - allowedCSIDrivers: - - name: name - - name: name - supplementalGroups: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - defaultAllowPrivilegeEscalation: true - allowedUnsafeSysctls: - - allowedUnsafeSysctls - - allowedUnsafeSysctls - allowPrivilegeEscalation: true - allowedFlexVolumes: - - driver: driver - - driver: driver - hostPID: true - metadata: generation: 6 finalizers: @@ -221683,97 +197612,49 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace apiVersion: apiVersion kind: kind spec: - defaultAddCapabilities: - - defaultAddCapabilities - - defaultAddCapabilities - hostPorts: - - min: 5 - max: 1 - - min: 5 - max: 1 - allowedProcMountTypes: - - allowedProcMountTypes - - allowedProcMountTypes - fsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - seLinux: - seLinuxOptions: - role: role - level: level - type: type - user: user - rule: rule - hostNetwork: true - hostIPC: true - volumes: - - volumes - - volumes - requiredDropCapabilities: - - requiredDropCapabilities - - requiredDropCapabilities - runAsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - allowedCapabilities: - - allowedCapabilities - - allowedCapabilities - readOnlyRootFilesystem: true - privileged: true - runAsUser: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - runtimeClass: - allowedRuntimeClassNames: - - allowedRuntimeClassNames - - allowedRuntimeClassNames - defaultRuntimeClassName: defaultRuntimeClassName - allowedHostPaths: - - readOnly: true - pathPrefix: pathPrefix - - readOnly: true - pathPrefix: pathPrefix - forbiddenSysctls: - - forbiddenSysctls - - forbiddenSysctls - allowedCSIDrivers: - - name: name - - name: name - supplementalGroups: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - defaultAllowPrivilegeEscalation: true - allowedUnsafeSysctls: - - allowedUnsafeSysctls - - allowedUnsafeSysctls - allowPrivilegeEscalation: true - allowedFlexVolumes: - - driver: driver - - driver: driver - hostPID: true + minAvailable: minAvailable + maxUnavailable: maxUnavailable + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + status: + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 5 + desiredHealthy: 6 properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -221781,9 +197662,9 @@ components: internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' type: string items: - description: items is a list of schema objects. + description: Items is a list of PodDisruptionBudgets items: - $ref: '#/components/schemas/v1beta1.PodSecurityPolicy' + $ref: '#/components/schemas/v1.PodDisruptionBudget' type: array kind: description: 'Kind is a string value representing the REST resource this @@ -221797,344 +197678,138 @@ components: type: object x-kubernetes-group-version-kind: - group: policy - kind: PodSecurityPolicyList - version: v1beta1 + kind: PodDisruptionBudgetList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta1.PodSecurityPolicySpec: - description: PodSecurityPolicySpec defines the policy enforced. - example: - defaultAddCapabilities: - - defaultAddCapabilities - - defaultAddCapabilities - hostPorts: - - min: 5 - max: 1 - - min: 5 - max: 1 - allowedProcMountTypes: - - allowedProcMountTypes - - allowedProcMountTypes - fsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - seLinux: - seLinuxOptions: - role: role - level: level - type: type - user: user - rule: rule - hostNetwork: true - hostIPC: true - volumes: - - volumes - - volumes - requiredDropCapabilities: - - requiredDropCapabilities - - requiredDropCapabilities - runAsGroup: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - allowedCapabilities: - - allowedCapabilities - - allowedCapabilities - readOnlyRootFilesystem: true - privileged: true - runAsUser: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - runtimeClass: - allowedRuntimeClassNames: - - allowedRuntimeClassNames - - allowedRuntimeClassNames - defaultRuntimeClassName: defaultRuntimeClassName - allowedHostPaths: - - readOnly: true - pathPrefix: pathPrefix - - readOnly: true - pathPrefix: pathPrefix - forbiddenSysctls: - - forbiddenSysctls - - forbiddenSysctls - allowedCSIDrivers: - - name: name - - name: name - supplementalGroups: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - defaultAllowPrivilegeEscalation: true - allowedUnsafeSysctls: - - allowedUnsafeSysctls - - allowedUnsafeSysctls - allowPrivilegeEscalation: true - allowedFlexVolumes: - - driver: driver - - driver: driver - hostPID: true - properties: - allowPrivilegeEscalation: - description: allowPrivilegeEscalation determines if a pod can request to - allow privilege escalation. If unspecified, defaults to true. - type: boolean - allowedCSIDrivers: - description: AllowedCSIDrivers is an allowlist of inline CSI drivers that - must be explicitly set to be embedded within a pod spec. An empty value - indicates that any CSI driver can be used for inline ephemeral volumes. - This is a beta field, and is only honored if the API server enables the - CSIInlineVolume feature gate. - items: - $ref: '#/components/schemas/v1beta1.AllowedCSIDriver' - type: array - allowedCapabilities: - description: allowedCapabilities is a list of capabilities that can be requested - to add to the container. Capabilities in this field may be added at the - pod author's discretion. You must not list a capability in both allowedCapabilities - and requiredDropCapabilities. - items: - type: string - type: array - allowedFlexVolumes: - description: allowedFlexVolumes is an allowlist of Flexvolumes. Empty or - nil indicates that all Flexvolumes may be used. This parameter is effective - only when the usage of the Flexvolumes is allowed in the "volumes" field. - items: - $ref: '#/components/schemas/v1beta1.AllowedFlexVolume' - type: array - allowedHostPaths: - description: allowedHostPaths is an allowlist of host paths. Empty indicates - that all host paths may be used. - items: - $ref: '#/components/schemas/v1beta1.AllowedHostPath' - type: array - allowedProcMountTypes: - description: AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. - Empty or nil indicates that only the DefaultProcMountType may be used. - This requires the ProcMountType feature flag to be enabled. - items: - type: string - type: array - allowedUnsafeSysctls: - description: |- - allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection. - - Examples: e.g. "foo/*" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc. - items: - type: string - type: array - defaultAddCapabilities: - description: defaultAddCapabilities is the default set of capabilities that - will be added to the container unless the pod spec specifically drops - the capability. You may not list a capability in both defaultAddCapabilities - and requiredDropCapabilities. Capabilities added here are implicitly allowed, - and need not be included in the allowedCapabilities list. - items: - type: string - type: array - defaultAllowPrivilegeEscalation: - description: defaultAllowPrivilegeEscalation controls the default setting - for whether a process can gain more privileges than its parent process. - type: boolean - forbiddenSysctls: - description: |- - forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "*" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. - - Examples: e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. - items: - type: string - type: array - fsGroup: - $ref: '#/components/schemas/v1beta1.FSGroupStrategyOptions' - hostIPC: - description: hostIPC determines if the policy allows the use of HostIPC - in the pod spec. - type: boolean - hostNetwork: - description: hostNetwork determines if the policy allows the use of HostNetwork - in the pod spec. - type: boolean - hostPID: - description: hostPID determines if the policy allows the use of HostPID - in the pod spec. - type: boolean - hostPorts: - description: hostPorts determines which host port ranges are allowed to - be exposed. - items: - $ref: '#/components/schemas/v1beta1.HostPortRange' - type: array - privileged: - description: privileged determines if a pod can request to be run as privileged. - type: boolean - readOnlyRootFilesystem: - description: readOnlyRootFilesystem when set to true will force containers - to run with a read only root file system. If the container specifically - requests to run with a non-read only root file system the PSP should deny - the pod. If set to false the container may run with a read only root file - system if it wishes but it will not be forced to. - type: boolean - requiredDropCapabilities: - description: requiredDropCapabilities are the capabilities that will be - dropped from the container. These are required to be dropped and cannot - be added. - items: - type: string - type: array - runAsGroup: - $ref: '#/components/schemas/v1beta1.RunAsGroupStrategyOptions' - runAsUser: - $ref: '#/components/schemas/v1beta1.RunAsUserStrategyOptions' - runtimeClass: - $ref: '#/components/schemas/v1beta1.RuntimeClassStrategyOptions' - seLinux: - $ref: '#/components/schemas/v1beta1.SELinuxStrategyOptions' - supplementalGroups: - $ref: '#/components/schemas/v1beta1.SupplementalGroupsStrategyOptions' - volumes: - description: volumes is an allowlist of volume plugins. Empty indicates - that no volumes may be used. To allow all volumes you may use '*'. - items: - type: string - type: array - required: - - fsGroup - - runAsUser - - seLinux - - supplementalGroups - type: object - v1beta1.RunAsGroupStrategyOptions: - description: RunAsGroupStrategyOptions defines the strategy type and any options - used to create the strategy. - example: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule - properties: - ranges: - description: ranges are the allowed ranges of gids that may be used. If - you would like to force a single gid then supply a single range with the - same start and end. Required for MustRunAs. - items: - $ref: '#/components/schemas/v1beta1.IDRange' - type: array - rule: - description: rule is the strategy that will dictate the allowable RunAsGroup - values that may be set. - type: string - required: - - rule - type: object - v1beta1.RunAsUserStrategyOptions: - description: RunAsUserStrategyOptions defines the strategy type and any options - used to create the strategy. + v1.PodDisruptionBudgetSpec: + description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. example: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule + minAvailable: minAvailable + maxUnavailable: maxUnavailable + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: - ranges: - description: ranges are the allowed ranges of uids that may be used. If - you would like to force a single uid then supply a single range with the - same start and end. Required for MustRunAs. - items: - $ref: '#/components/schemas/v1beta1.IDRange' - type: array - rule: - description: rule is the strategy that will dictate the allowable RunAsUser - values that may be set. + maxUnavailable: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string type: string - required: - - rule - type: object - v1beta1.RuntimeClassStrategyOptions: - description: RuntimeClassStrategyOptions define the strategy that will dictate - the allowable RuntimeClasses for a pod. - example: - allowedRuntimeClassNames: - - allowedRuntimeClassNames - - allowedRuntimeClassNames - defaultRuntimeClassName: defaultRuntimeClassName - properties: - allowedRuntimeClassNames: - description: allowedRuntimeClassNames is an allowlist of RuntimeClass names - that may be specified on a pod. A value of "*" means that any RuntimeClass - name is allowed, and must be the only item in the list. An empty list - requires the RuntimeClassName field to be unset. - items: - type: string - type: array - defaultRuntimeClassName: - description: defaultRuntimeClassName is the default RuntimeClassName to - set on the pod. The default MUST be allowed by the allowedRuntimeClassNames - list. A value of nil does not mutate the Pod. + minAvailable: + description: IntOrString is a type that can hold an int32 or a string. When + used in JSON or YAML marshalling and unmarshalling, it produces or consumes + the inner type. This allows you to have, for example, a JSON field that + can accept a name or number. + format: int-or-string type: string - required: - - allowedRuntimeClassNames + selector: + $ref: '#/components/schemas/v1.LabelSelector' type: object - v1beta1.SELinuxStrategyOptions: - description: SELinuxStrategyOptions defines the strategy type and any options - used to create the strategy. + v1.PodDisruptionBudgetStatus: + description: PodDisruptionBudgetStatus represents information about the status + of a PodDisruptionBudget. Status may trail the actual state of a system. example: - seLinuxOptions: - role: role - level: level + currentHealthy: 0 + expectedPods: 5 + disruptionsAllowed: 1 + disruptedPods: + key: 2000-01-23T04:56:07.000+00:00 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message type: type - user: user - rule: rule - properties: - rule: - description: rule is the strategy that will dictate the allowable labels - that may be set. - type: string - seLinuxOptions: - $ref: '#/components/schemas/v1.SELinuxOptions' - required: - - rule - type: object - v1beta1.SupplementalGroupsStrategyOptions: - description: SupplementalGroupsStrategyOptions defines the strategy type and - options used to create the strategy. - example: - ranges: - - min: 6 - max: 0 - - min: 6 - max: 0 - rule: rule + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + observedGeneration: 5 + desiredHealthy: 6 properties: - ranges: - description: ranges are the allowed ranges of supplemental groups. If you - would like to force a single supplemental group then supply a single range - with the same start and end. Required for MustRunAs. + conditions: + description: |- + Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute + the number of allowed disruptions. Therefore no disruptions are + allowed and the status of the condition will be False. + - InsufficientPods: The number of pods are either at or below the number + required by the PodDisruptionBudget. No disruptions are + allowed and the status of the condition will be False. + - SufficientPods: There are more pods than required by the PodDisruptionBudget. + The condition will be True, and the number of allowed + disruptions are provided by the disruptionsAllowed property. items: - $ref: '#/components/schemas/v1beta1.IDRange' + $ref: '#/components/schemas/v1.Condition' type: array - rule: - description: rule is the strategy that will dictate what supplemental groups - is used in the SecurityContext. - type: string + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + currentHealthy: + description: current number of healthy pods + format: int32 + type: integer + desiredHealthy: + description: minimum desired number of healthy pods + format: int32 + type: integer + disruptedPods: + additionalProperties: + description: Time is a wrapper around time.Time which supports correct + marshaling to YAML and JSON. Wrappers are provided for many of the + factory methods that the time package offers. + format: date-time + type: string + description: DisruptedPods contains information about pods whose eviction + was processed by the API server eviction subresource handler but has not + yet been observed by the PodDisruptionBudget controller. A pod will be + in this map from the time when the API server processed the eviction request + to the time when the pod is seen by PDB controller as having been marked + for deletion (or after a timeout). The key in the map is the name of the + pod and the value is the time when the API server processed the eviction + request. If the deletion didn't occur and a pod is still there it will + be removed from the list automatically by PodDisruptionBudget controller + after some time. If everything goes smooth this map should be empty for + the most of the time. Large number of entries in the map may indicate + problems with pod deletions. + type: object + disruptionsAllowed: + description: Number of pod disruptions that are currently allowed. + format: int32 + type: integer + expectedPods: + description: total number of pods counted by this disruption budget + format: int32 + type: integer + observedGeneration: + description: Most recent generation observed when updating this PDB status. + DisruptionsAllowed and other status information is valid only if observedGeneration + equals to PDB's object generation. + format: int64 + type: integer + required: + - currentHealthy + - desiredHealthy + - disruptionsAllowed + - expectedPods type: object v1.AggregationRule: description: AggregationRule describes how to locate ClusterRoles to aggregate @@ -222223,7 +197898,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -222363,7 +198037,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -222465,7 +198138,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -222527,7 +198199,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -222627,7 +198298,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -222735,7 +198405,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -222851,7 +198520,8 @@ components: apiGroups: description: APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of - the enumerated resources in any API group will be allowed. + the enumerated resources in any API group will be allowed. "" represents + the core API group and "*" represents all API groups. items: type: string type: array @@ -222933,7 +198603,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223045,7 +198714,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223147,7 +198815,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223209,7 +198876,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223309,7 +198975,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223389,7 +199054,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223555,7 +199219,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223663,7 +199326,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223716,7 +199378,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223803,7 +199464,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223823,6 +199483,7 @@ components: - volumeLifecycleModes - volumeLifecycleModes podInfoOnMount: true + seLinuxMount: true properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -223901,7 +199562,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223921,6 +199581,7 @@ components: - volumeLifecycleModes - volumeLifecycleModes podInfoOnMount: true + seLinuxMount: true - metadata: generation: 6 finalizers: @@ -223964,7 +199625,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -223984,6 +199644,7 @@ components: - volumeLifecycleModes - volumeLifecycleModes podInfoOnMount: true + seLinuxMount: true properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -224027,6 +199688,7 @@ components: - volumeLifecycleModes - volumeLifecycleModes podInfoOnMount: true + seLinuxMount: true properties: attachRequired: description: |- @@ -224057,6 +199719,16 @@ components: 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. type: boolean + seLinuxMount: + description: |- + 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". + type: boolean storageCapacity: description: |- If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information. @@ -224145,7 +199817,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224292,7 +199963,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224357,7 +200027,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224494,7 +200163,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224523,38 +200191,41 @@ 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 capacity: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + 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 kind: @@ -224563,38 +200234,41 @@ components: 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 maximumVolumeSize: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." format: quantity type: string metadata: @@ -224672,7 +200346,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224738,7 +200411,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224840,7 +200512,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -224990,7 +200661,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -225067,7 +200737,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -225195,7 +200864,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -225407,6 +201075,9 @@ components: name: name namespace: namespace volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace readOnly: true controllerExpandSecretRef: name: name @@ -225532,7 +201203,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -225744,306 +201414,311 @@ components: name: name namespace: namespace volumeHandle: volumeHandle - readOnly: true - controllerExpandSecretRef: - name: name - namespace: namespace - fsType: fsType - volumeAttributes: - key: volumeAttributes - nfs: - path: path - server: server - readOnly: true - persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy - portworxVolume: - volumeID: volumeID - readOnly: true - fsType: fsType - vsphereVolume: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType - fc: - lun: 1 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: - path: path - type: type - attacher: attacher - status: - attachmentMetadata: - key: attachmentMetadata - detachError: - time: 2000-01-23T04:56:07.000+00:00 - message: message - attachError: - time: 2000-01-23T04:56:07.000+00:00 - message: message - attached: true - - metadata: - generation: 6 - finalizers: - - finalizers - - finalizers - resourceVersion: resourceVersion - annotations: - key: annotations - generateName: generateName - deletionTimestamp: 2000-01-23T04:56:07.000+00:00 - labels: - key: labels - ownerReferences: - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind - name: name - blockOwnerDeletion: true - selfLink: selfLink - deletionGracePeriodSeconds: 0 - uid: uid - managedFields: - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - - apiVersion: apiVersion - fieldsV1: '{}' - manager: manager - subresource: subresource - time: 2000-01-23T04:56:07.000+00:00 - operation: operation - fieldsType: fieldsType - clusterName: clusterName - creationTimestamp: 2000-01-23T04:56:07.000+00:00 - name: name - namespace: namespace - apiVersion: apiVersion - kind: kind - spec: - nodeName: nodeName - source: - persistentVolumeName: persistentVolumeName - inlineVolumeSpec: - claimRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - quobyte: - volume: volume - registry: registry - readOnly: true - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName - secretNamespace: secretNamespace - readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - mountOptions: - - mountOptions - - mountOptions - local: - path: path - fsType: fsType - capacity: {} - cephfs: - path: path - secretRef: - name: name - namespace: namespace - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway - accessModes: - - accessModes - - accessModes - glusterfs: - path: path - endpoints: endpoints - readOnly: true - endpointsNamespace: endpointsNamespace - gcePersistentDisk: - partition: 2 - readOnly: true - pdName: pdName - fsType: fsType - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: - secretRef: - name: name - namespace: namespace - volumeID: volumeID - readOnly: true - fsType: fsType - awsElasticBlockStore: - partition: 8 - volumeID: volumeID - readOnly: true - fsType: fsType - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchFields: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - flocker: - datasetName: datasetName - datasetUUID: datasetUUID - volumeMode: volumeMode - iscsi: - chapAuthSession: true - iscsiInterface: iscsiInterface - lun: 0 - chapAuthDiscovery: true - iqn: iqn - portals: - - portals - - portals - secretRef: + nodeExpandSecretRef: + name: name + namespace: namespace + readOnly: true + controllerExpandSecretRef: + name: name + namespace: namespace + fsType: fsType + volumeAttributes: + key: volumeAttributes + nfs: + path: path + server: server + readOnly: true + persistentVolumeReclaimPolicy: persistentVolumeReclaimPolicy + portworxVolume: + volumeID: volumeID + readOnly: true + fsType: fsType + vsphereVolume: + storagePolicyName: storagePolicyName + storagePolicyID: storagePolicyID + volumePath: volumePath + fsType: fsType + fc: + lun: 1 + targetWWNs: + - targetWWNs + - targetWWNs + readOnly: true + wwids: + - wwids + - wwids + fsType: fsType + hostPath: + path: path + type: type + attacher: attacher + status: + attachmentMetadata: + key: attachmentMetadata + detachError: + time: 2000-01-23T04:56:07.000+00:00 + message: message + attachError: + time: 2000-01-23T04:56:07.000+00:00 + message: message + attached: true + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: '{}' + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + nodeName: nodeName + source: + persistentVolumeName: persistentVolumeName + inlineVolumeSpec: + claimRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + quobyte: + volume: volume + registry: registry + readOnly: true + user: user + tenant: tenant + group: group + azureFile: + secretName: secretName + secretNamespace: secretNamespace + readOnly: true + shareName: shareName + flexVolume: + driver: driver + options: + key: options + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + mountOptions: + - mountOptions + - mountOptions + local: + path: path + fsType: fsType + capacity: {} + cephfs: + path: path + secretRef: + name: name + namespace: namespace + secretFile: secretFile + readOnly: true + user: user + monitors: + - monitors + - monitors + scaleIO: + system: system + protectionDomain: protectionDomain + sslEnabled: true + storageMode: storageMode + volumeName: volumeName + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + storagePool: storagePool + gateway: gateway + accessModes: + - accessModes + - accessModes + glusterfs: + path: path + endpoints: endpoints + readOnly: true + endpointsNamespace: endpointsNamespace + gcePersistentDisk: + partition: 2 + readOnly: true + pdName: pdName + fsType: fsType + photonPersistentDisk: + pdID: pdID + fsType: fsType + azureDisk: + diskName: diskName + kind: kind + readOnly: true + cachingMode: cachingMode + diskURI: diskURI + fsType: fsType + cinder: + secretRef: + name: name + namespace: namespace + volumeID: volumeID + readOnly: true + fsType: fsType + awsElasticBlockStore: + partition: 8 + volumeID: volumeID + readOnly: true + fsType: fsType + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + - matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchFields: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + volumeMode: volumeMode + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 0 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: + name: name + namespace: namespace + initiatorName: initiatorName + readOnly: true + fsType: fsType + targetPortal: targetPortal + rbd: + image: image + pool: pool + secretRef: + name: name + namespace: namespace + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + storageClassName: storageClassName + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: + uid: uid + apiVersion: apiVersion + kind: kind + resourceVersion: resourceVersion + fieldPath: fieldPath + name: name + namespace: namespace + readOnly: true + fsType: fsType + csi: + controllerPublishSecretRef: + name: name + namespace: namespace + driver: driver + nodePublishSecretRef: + name: name + namespace: namespace + nodeStageSecretRef: + name: name + namespace: namespace + volumeHandle: volumeHandle + nodeExpandSecretRef: name: name namespace: namespace - initiatorName: initiatorName - readOnly: true - fsType: fsType - targetPortal: targetPortal - rbd: - image: image - pool: pool - secretRef: - name: name - namespace: namespace - readOnly: true - fsType: fsType - keyring: keyring - user: user - monitors: - - monitors - - monitors - storageClassName: storageClassName - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: - uid: uid - apiVersion: apiVersion - kind: kind - resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - readOnly: true - fsType: fsType - csi: - controllerPublishSecretRef: - name: name - namespace: namespace - driver: driver - nodePublishSecretRef: - name: name - namespace: namespace - nodeStageSecretRef: - name: name - namespace: namespace - volumeHandle: volumeHandle readOnly: true controllerExpandSecretRef: name: name @@ -226325,6 +202000,9 @@ components: name: name namespace: namespace volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace readOnly: true controllerExpandSecretRef: name: name @@ -226575,6 +202253,9 @@ components: name: name namespace: namespace volumeHandle: volumeHandle + nodeExpandSecretRef: + name: name + namespace: namespace readOnly: true controllerExpandSecretRef: name: name @@ -226745,7 +202426,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -226774,38 +202454,41 @@ 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 capacity: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + 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 kind: @@ -226814,38 +202497,41 @@ components: 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 maximumVolumeSize: - 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. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." format: quantity type: string metadata: @@ -226923,7 +202609,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -226989,7 +202674,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -227160,7 +202844,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -227514,7 +203197,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -227795,7 +203477,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -229131,38 +204812,39 @@ components: - conversionReviewVersions type: object resource.Quantity: - description: |- - Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. - - 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: - a. No precision is lost - b. No fractional digits will be emitted - c. 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. + 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 v1.APIGroup: @@ -229711,6 +205393,9 @@ components: - group: networking.k8s.io kind: DeleteOptions version: v1 + - group: networking.k8s.io + kind: DeleteOptions + version: v1alpha1 - group: networking.k8s.io kind: DeleteOptions version: v1beta1 @@ -229984,7 +205669,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -229997,12 +205681,6 @@ components: metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations' type: object - clusterName: - description: |- - Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. - - The name in the go struct is changed to help clients detect accidental use. - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. @@ -230462,6 +206140,9 @@ components: - group: networking.k8s.io kind: WatchEvent version: v1 + - group: networking.k8s.io + kind: WatchEvent + version: v1alpha1 - group: networking.k8s.io kind: WatchEvent version: v1beta1 @@ -230604,7 +206285,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -230743,7 +206423,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace @@ -230815,7 +206494,6 @@ components: time: 2000-01-23T04:56:07.000+00:00 operation: operation fieldsType: fieldsType - clusterName: clusterName creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace diff --git a/kubernetes/docs/AutoscalingV2beta1Api.md b/kubernetes/docs/AutoscalingV2beta1Api.md deleted file mode 100644 index b9d213f455..0000000000 --- a/kubernetes/docs/AutoscalingV2beta1Api.md +++ /dev/null @@ -1,1011 +0,0 @@ -# AutoscalingV2beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteCollectionNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers | -[**deleteNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**getAPIResources**](AutoscalingV2beta1Api.md#getAPIResources) | **GET** /apis/autoscaling/v2beta1/ | -[**listHorizontalPodAutoscalerForAllNamespaces**](AutoscalingV2beta1Api.md#listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2beta1/horizontalpodautoscalers | -[**listNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers | -[**patchNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**patchNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2beta1Api.md#patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**readNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**readNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2beta1Api.md#readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -[**replaceNamespacedHorizontalPodAutoscaler**](AutoscalingV2beta1Api.md#replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name} | -[**replaceNamespacedHorizontalPodAutoscalerStatus**](AutoscalingV2beta1Api.md#replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | - - - -# **createNamespacedHorizontalPodAutoscaler** -> V2beta1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V2beta1HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#createNamespacedHorizontalPodAutoscaler"); - System.err.println("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** | [**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) - - - -delete collection of HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(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. - 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. - 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 - 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.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); - System.err.println("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. | [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] - **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] - **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**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#deleteNamespacedHorizontalPodAutoscaler"); - System.err.println("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 HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### 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.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listHorizontalPodAutoscalerForAllNamespaces** -> V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(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. - 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 - 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 { - V2beta1HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#listHorizontalPodAutoscalerForAllNamespaces"); - System.err.println("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. | [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] - **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 - -[**V2beta1HorizontalPodAutoscalerList**](V2beta1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedHorizontalPodAutoscaler** -> V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(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. - 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 - 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 { - V2beta1HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#listNamespacedHorizontalPodAutoscaler"); - System.err.println("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. | [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] - **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 - -[**V2beta1HorizontalPodAutoscalerList**](V2beta1HorizontalPodAutoscalerList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchNamespacedHorizontalPodAutoscaler** -> V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V2beta1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#patchNamespacedHorizontalPodAutoscaler"); - System.err.println("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 HorizontalPodAutoscaler | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedHorizontalPodAutoscalerStatus** -> V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V2beta1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#patchNamespacedHorizontalPodAutoscalerStatus"); - System.err.println("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 HorizontalPodAutoscaler | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readNamespacedHorizontalPodAutoscaler** -> V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, pretty) - - - -read the specified HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - 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. - try { - V2beta1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#readNamespacedHorizontalPodAutoscaler"); - System.err.println("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 HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedHorizontalPodAutoscalerStatus** -> V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty) - - - -read status of the specified HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - 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. - try { - V2beta1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#readNamespacedHorizontalPodAutoscalerStatus"); - System.err.println("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 HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedHorizontalPodAutoscaler** -> V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V2beta1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#replaceNamespacedHorizontalPodAutoscaler"); - System.err.println("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 HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedHorizontalPodAutoscalerStatus** -> V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified HorizontalPodAutoscaler - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.AutoscalingV2beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); - String name = "name_example"; // String | name of the HorizontalPodAutoscaler - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V2beta1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#replaceNamespacedHorizontalPodAutoscalerStatus"); - System.err.println("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 HorizontalPodAutoscaler | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V2beta1HorizontalPodAutoscaler**](V2beta1HorizontalPodAutoscaler.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/BatchV1beta1Api.md b/kubernetes/docs/BatchV1beta1Api.md deleted file mode 100644 index 301466c18f..0000000000 --- a/kubernetes/docs/BatchV1beta1Api.md +++ /dev/null @@ -1,1011 +0,0 @@ -# BatchV1beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedCronJob**](BatchV1beta1Api.md#createNamespacedCronJob) | **POST** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs | -[**deleteCollectionNamespacedCronJob**](BatchV1beta1Api.md#deleteCollectionNamespacedCronJob) | **DELETE** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs | -[**deleteNamespacedCronJob**](BatchV1beta1Api.md#deleteNamespacedCronJob) | **DELETE** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -[**getAPIResources**](BatchV1beta1Api.md#getAPIResources) | **GET** /apis/batch/v1beta1/ | -[**listCronJobForAllNamespaces**](BatchV1beta1Api.md#listCronJobForAllNamespaces) | **GET** /apis/batch/v1beta1/cronjobs | -[**listNamespacedCronJob**](BatchV1beta1Api.md#listNamespacedCronJob) | **GET** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs | -[**patchNamespacedCronJob**](BatchV1beta1Api.md#patchNamespacedCronJob) | **PATCH** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -[**patchNamespacedCronJobStatus**](BatchV1beta1Api.md#patchNamespacedCronJobStatus) | **PATCH** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status | -[**readNamespacedCronJob**](BatchV1beta1Api.md#readNamespacedCronJob) | **GET** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -[**readNamespacedCronJobStatus**](BatchV1beta1Api.md#readNamespacedCronJobStatus) | **GET** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status | -[**replaceNamespacedCronJob**](BatchV1beta1Api.md#replaceNamespacedCronJob) | **PUT** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name} | -[**replaceNamespacedCronJobStatus**](BatchV1beta1Api.md#replaceNamespacedCronJobStatus) | **PUT** /apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status | - - - -# **createNamespacedCronJob** -> V1beta1CronJob createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1CronJob result = apiInstance.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#createNamespacedCronJob"); - System.err.println("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** | [**V1beta1CronJob**](V1beta1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) - - - -delete collection of CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(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. - 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. - 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 - 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.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#deleteCollectionNamespacedCronJob"); - System.err.println("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. | [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] - **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] - **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**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedCronJob** -> V1Status deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#deleteNamespacedCronJob"); - System.err.println("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 CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### 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.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listCronJobForAllNamespaces** -> V1beta1CronJobList listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(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. - 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 - 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 { - V1beta1CronJobList result = apiInstance.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#listCronJobForAllNamespaces"); - System.err.println("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. | [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] - **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 - -[**V1beta1CronJobList**](V1beta1CronJobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedCronJob** -> V1beta1CronJobList listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(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. - 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 - 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 { - V1beta1CronJobList result = apiInstance.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#listNamespacedCronJob"); - System.err.println("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. | [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] - **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 - -[**V1beta1CronJobList**](V1beta1CronJobList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchNamespacedCronJob** -> V1beta1CronJob patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1CronJob result = apiInstance.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#patchNamespacedCronJob"); - System.err.println("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 CronJob | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedCronJobStatus** -> V1beta1CronJob patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1CronJob result = apiInstance.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#patchNamespacedCronJobStatus"); - System.err.println("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 CronJob | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readNamespacedCronJob** -> V1beta1CronJob readNamespacedCronJob(name, namespace, pretty) - - - -read the specified CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - 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. - try { - V1beta1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#readNamespacedCronJob"); - System.err.println("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 CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedCronJobStatus** -> V1beta1CronJob readNamespacedCronJobStatus(name, namespace, pretty) - - - -read status of the specified CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - 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. - try { - V1beta1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#readNamespacedCronJobStatus"); - System.err.println("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 CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedCronJob** -> V1beta1CronJob replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1CronJob result = apiInstance.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#replaceNamespacedCronJob"); - System.err.println("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 CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1CronJob**](V1beta1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedCronJobStatus** -> V1beta1CronJob replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified CronJob - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.BatchV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the CronJob - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1CronJob result = apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#replaceNamespacedCronJobStatus"); - System.err.println("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 CronJob | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1CronJob**](V1beta1CronJob.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1CronJob**](V1beta1CronJob.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/DiscoveryV1beta1Api.md b/kubernetes/docs/DiscoveryV1beta1Api.md deleted file mode 100644 index 45b9ef32cd..0000000000 --- a/kubernetes/docs/DiscoveryV1beta1Api.md +++ /dev/null @@ -1,766 +0,0 @@ -# DiscoveryV1beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#createNamespacedEndpointSlice) | **POST** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices | -[**deleteCollectionNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#deleteCollectionNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices | -[**deleteNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#deleteNamespacedEndpointSlice) | **DELETE** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | -[**getAPIResources**](DiscoveryV1beta1Api.md#getAPIResources) | **GET** /apis/discovery.k8s.io/v1beta1/ | -[**listEndpointSliceForAllNamespaces**](DiscoveryV1beta1Api.md#listEndpointSliceForAllNamespaces) | **GET** /apis/discovery.k8s.io/v1beta1/endpointslices | -[**listNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#listNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices | -[**patchNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#patchNamespacedEndpointSlice) | **PATCH** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | -[**readNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#readNamespacedEndpointSlice) | **GET** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | -[**replaceNamespacedEndpointSlice**](DiscoveryV1beta1Api.md#replaceNamespacedEndpointSlice) | **PUT** /apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name} | - - - -# **createNamespacedEndpointSlice** -> V1beta1EndpointSlice createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create an EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1EndpointSlice body = new V1beta1EndpointSlice(); // V1beta1EndpointSlice | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1EndpointSlice result = apiInstance.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#createNamespacedEndpointSlice"); - System.err.println("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** | [**V1beta1EndpointSlice**](V1beta1EndpointSlice.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1EndpointSlice**](V1beta1EndpointSlice.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedEndpointSlice** -> V1Status deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) - - - -delete collection of EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(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. - 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. - 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 - 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.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#deleteCollectionNamespacedEndpointSlice"); - System.err.println("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. | [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] - **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] - **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**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedEndpointSlice** -> V1Status deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete an EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the EndpointSlice - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#deleteNamespacedEndpointSlice"); - System.err.println("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 EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### 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.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listEndpointSliceForAllNamespaces** -> V1beta1EndpointSliceList listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(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. - 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 - 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 { - V1beta1EndpointSliceList result = apiInstance.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#listEndpointSliceForAllNamespaces"); - System.err.println("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. | [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] - **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 - -[**V1beta1EndpointSliceList**](V1beta1EndpointSliceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedEndpointSlice** -> V1beta1EndpointSliceList listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(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. - 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 - 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 { - V1beta1EndpointSliceList result = apiInstance.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#listNamespacedEndpointSlice"); - System.err.println("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. | [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] - **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 - -[**V1beta1EndpointSliceList**](V1beta1EndpointSliceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchNamespacedEndpointSlice** -> V1beta1EndpointSlice patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the EndpointSlice - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1EndpointSlice result = apiInstance.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#patchNamespacedEndpointSlice"); - System.err.println("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 EndpointSlice | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1EndpointSlice**](V1beta1EndpointSlice.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readNamespacedEndpointSlice** -> V1beta1EndpointSlice readNamespacedEndpointSlice(name, namespace, pretty) - - - -read the specified EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the EndpointSlice - 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. - try { - V1beta1EndpointSlice result = apiInstance.readNamespacedEndpointSlice(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#readNamespacedEndpointSlice"); - System.err.println("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 EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1EndpointSlice**](V1beta1EndpointSlice.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedEndpointSlice** -> V1beta1EndpointSlice replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified EndpointSlice - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.DiscoveryV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - DiscoveryV1beta1Api apiInstance = new DiscoveryV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the EndpointSlice - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1EndpointSlice body = new V1beta1EndpointSlice(); // V1beta1EndpointSlice | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1EndpointSlice result = apiInstance.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DiscoveryV1beta1Api#replaceNamespacedEndpointSlice"); - System.err.println("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 EndpointSlice | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1EndpointSlice**](V1beta1EndpointSlice.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1EndpointSlice**](V1beta1EndpointSlice.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/EventsV1beta1Api.md b/kubernetes/docs/EventsV1beta1Api.md deleted file mode 100644 index 78a9cd10a3..0000000000 --- a/kubernetes/docs/EventsV1beta1Api.md +++ /dev/null @@ -1,766 +0,0 @@ -# EventsV1beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedEvent**](EventsV1beta1Api.md#createNamespacedEvent) | **POST** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events | -[**deleteCollectionNamespacedEvent**](EventsV1beta1Api.md#deleteCollectionNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events | -[**deleteNamespacedEvent**](EventsV1beta1Api.md#deleteNamespacedEvent) | **DELETE** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | -[**getAPIResources**](EventsV1beta1Api.md#getAPIResources) | **GET** /apis/events.k8s.io/v1beta1/ | -[**listEventForAllNamespaces**](EventsV1beta1Api.md#listEventForAllNamespaces) | **GET** /apis/events.k8s.io/v1beta1/events | -[**listNamespacedEvent**](EventsV1beta1Api.md#listNamespacedEvent) | **GET** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events | -[**patchNamespacedEvent**](EventsV1beta1Api.md#patchNamespacedEvent) | **PATCH** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | -[**readNamespacedEvent**](EventsV1beta1Api.md#readNamespacedEvent) | **GET** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | -[**replaceNamespacedEvent**](EventsV1beta1Api.md#replaceNamespacedEvent) | **PUT** /apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name} | - - - -# **createNamespacedEvent** -> V1beta1Event createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create an Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1Event body = new V1beta1Event(); // V1beta1Event | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1Event result = apiInstance.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#createNamespacedEvent"); - System.err.println("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** | [**V1beta1Event**](V1beta1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1Event**](V1beta1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) - - - -delete collection of Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(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. - 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. - 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 - 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.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#deleteCollectionNamespacedEvent"); - System.err.println("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. | [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] - **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] - **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**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete an Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the Event - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#deleteNamespacedEvent"); - System.err.println("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 Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### 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.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listEventForAllNamespaces** -> V1beta1EventList listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(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. - 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 - 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 { - V1beta1EventList result = apiInstance.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#listEventForAllNamespaces"); - System.err.println("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. | [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] - **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 - -[**V1beta1EventList**](V1beta1EventList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedEvent** -> V1beta1EventList listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(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. - 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 - 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 { - V1beta1EventList result = apiInstance.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#listNamespacedEvent"); - System.err.println("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. | [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] - **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 - -[**V1beta1EventList**](V1beta1EventList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchNamespacedEvent** -> V1beta1Event patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the Event - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1Event result = apiInstance.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#patchNamespacedEvent"); - System.err.println("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 Event | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1Event**](V1beta1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readNamespacedEvent** -> V1beta1Event readNamespacedEvent(name, namespace, pretty) - - - -read the specified Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the Event - 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. - try { - V1beta1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#readNamespacedEvent"); - System.err.println("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 Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1Event**](V1beta1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedEvent** -> V1beta1Event replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified Event - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.EventsV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the Event - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1Event body = new V1beta1Event(); // V1beta1Event | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1Event result = apiInstance.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#replaceNamespacedEvent"); - System.err.println("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 Event | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1Event**](V1beta1Event.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1Event**](V1beta1Event.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/NodeV1beta1Api.md b/kubernetes/docs/NetworkingV1alpha1Api.md similarity index 88% rename from kubernetes/docs/NodeV1beta1Api.md rename to kubernetes/docs/NetworkingV1alpha1Api.md index a75f1d6c92..d44c00e5ca 100644 --- a/kubernetes/docs/NodeV1beta1Api.md +++ b/kubernetes/docs/NetworkingV1alpha1Api.md @@ -1,26 +1,26 @@ -# NodeV1beta1Api +# NetworkingV1alpha1Api All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createRuntimeClass**](NodeV1beta1Api.md#createRuntimeClass) | **POST** /apis/node.k8s.io/v1beta1/runtimeclasses | -[**deleteCollectionRuntimeClass**](NodeV1beta1Api.md#deleteCollectionRuntimeClass) | **DELETE** /apis/node.k8s.io/v1beta1/runtimeclasses | -[**deleteRuntimeClass**](NodeV1beta1Api.md#deleteRuntimeClass) | **DELETE** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | -[**getAPIResources**](NodeV1beta1Api.md#getAPIResources) | **GET** /apis/node.k8s.io/v1beta1/ | -[**listRuntimeClass**](NodeV1beta1Api.md#listRuntimeClass) | **GET** /apis/node.k8s.io/v1beta1/runtimeclasses | -[**patchRuntimeClass**](NodeV1beta1Api.md#patchRuntimeClass) | **PATCH** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | -[**readRuntimeClass**](NodeV1beta1Api.md#readRuntimeClass) | **GET** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | -[**replaceRuntimeClass**](NodeV1beta1Api.md#replaceRuntimeClass) | **PUT** /apis/node.k8s.io/v1beta1/runtimeclasses/{name} | +[**createClusterCIDR**](NetworkingV1alpha1Api.md#createClusterCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/clustercidrs | +[**deleteClusterCIDR**](NetworkingV1alpha1Api.md#deleteClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +[**deleteCollectionClusterCIDR**](NetworkingV1alpha1Api.md#deleteCollectionClusterCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/clustercidrs | +[**getAPIResources**](NetworkingV1alpha1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | +[**listClusterCIDR**](NetworkingV1alpha1Api.md#listClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs | +[**patchClusterCIDR**](NetworkingV1alpha1Api.md#patchClusterCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +[**readClusterCIDR**](NetworkingV1alpha1Api.md#readClusterCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | +[**replaceClusterCIDR**](NetworkingV1alpha1Api.md#replaceClusterCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/clustercidrs/{name} | - -# **createRuntimeClass** -> V1beta1RuntimeClass createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation) + +# **createClusterCIDR** +> V1alpha1ClusterCIDR createClusterCIDR(body, pretty, dryRun, fieldManager, fieldValidation) -create a RuntimeClass +create a ClusterCIDR ### Example ```java @@ -30,7 +30,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -43,17 +43,17 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); - V1beta1RuntimeClass body = new V1beta1RuntimeClass(); // V1beta1RuntimeClass | + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); + V1alpha1ClusterCIDR body = new V1alpha1ClusterCIDR(); // V1alpha1ClusterCIDR | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1RuntimeClass result = apiInstance.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1ClusterCIDR result = apiInstance.createClusterCIDR(body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#createRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#createClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -67,7 +67,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1beta1RuntimeClass**](V1beta1RuntimeClass.md)| | + **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1RuntimeClass**](V1beta1RuntimeClass.md) +[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) ### Authorization @@ -94,13 +94,13 @@ Name | Type | Description | Notes **202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteCollectionRuntimeClass** -> V1Status deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) + +# **deleteClusterCIDR** +> V1Status deleteClusterCIDR(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) -delete collection of RuntimeClass +delete a ClusterCIDR ### Example ```java @@ -110,7 +110,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -123,25 +123,19 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterCIDR String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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 - 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.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); + V1Status result = apiInstance.deleteClusterCIDR(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#deleteCollectionRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#deleteClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -155,18 +149,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **name** | **String**| name of the ClusterCIDR | **pretty** | **String**| If 'true', then the output is pretty printed. | [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] - **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] - **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 @@ -186,15 +174,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**202** | Accepted | - | **401** | Unauthorized | - | - -# **deleteRuntimeClass** -> V1Status deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) + +# **deleteCollectionClusterCIDR** +> V1Status deleteCollectionClusterCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) -delete a RuntimeClass +delete collection of ClusterCIDR ### Example ```java @@ -204,7 +193,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -217,19 +206,25 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the RuntimeClass + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + 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. + 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 + 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.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + V1Status result = apiInstance.deleteCollectionClusterCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#deleteRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#deleteCollectionClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -243,12 +238,18 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [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] + **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] + **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 @@ -268,7 +269,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**202** | Accepted | - | **401** | Unauthorized | - | @@ -287,7 +287,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -300,12 +300,12 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); try { V1APIResourceList result = apiInstance.getAPIResources(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#getAPIResources"); + System.err.println("Exception when calling NetworkingV1alpha1Api#getAPIResources"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -337,13 +337,13 @@ This endpoint does not need any parameter. **200** | OK | - | **401** | Unauthorized | - | - -# **listRuntimeClass** -> V1beta1RuntimeClassList listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) + +# **listClusterCIDR** +> V1alpha1ClusterCIDRList listClusterCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) -list or watch objects of kind RuntimeClass +list or watch objects of kind ClusterCIDR ### Example ```java @@ -353,7 +353,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -366,7 +366,7 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. 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. @@ -378,10 +378,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 { - V1beta1RuntimeClassList result = apiInstance.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); + V1alpha1ClusterCIDRList result = apiInstance.listClusterCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#listRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#listClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -408,7 +408,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1RuntimeClassList**](V1beta1RuntimeClassList.md) +[**V1alpha1ClusterCIDRList**](V1alpha1ClusterCIDRList.md) ### Authorization @@ -425,13 +425,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **patchRuntimeClass** -> V1beta1RuntimeClass patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force) + +# **patchClusterCIDR** +> V1alpha1ClusterCIDR patchClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force) -partially update the specified RuntimeClass +partially update the specified ClusterCIDR ### Example ```java @@ -441,7 +441,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -454,8 +454,8 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the RuntimeClass + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterCIDR V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -463,10 +463,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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1RuntimeClass result = apiInstance.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + V1alpha1ClusterCIDR result = apiInstance.patchClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#patchRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#patchClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -480,7 +480,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | + **name** | **String**| name of the ClusterCIDR | **body** | **V1Patch**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] @@ -490,7 +490,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1RuntimeClass**](V1beta1RuntimeClass.md) +[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) ### Authorization @@ -508,13 +508,13 @@ Name | Type | Description | Notes **201** | Created | - | **401** | Unauthorized | - | - -# **readRuntimeClass** -> V1beta1RuntimeClass readRuntimeClass(name, pretty) + +# **readClusterCIDR** +> V1alpha1ClusterCIDR readClusterCIDR(name, pretty) -read the specified RuntimeClass +read the specified ClusterCIDR ### Example ```java @@ -524,7 +524,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -537,14 +537,14 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the RuntimeClass + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterCIDR String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. try { - V1beta1RuntimeClass result = apiInstance.readRuntimeClass(name, pretty); + V1alpha1ClusterCIDR result = apiInstance.readClusterCIDR(name, pretty); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#readRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#readClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -558,12 +558,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | + **name** | **String**| name of the ClusterCIDR | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] ### Return type -[**V1beta1RuntimeClass**](V1beta1RuntimeClass.md) +[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) ### Authorization @@ -580,13 +580,13 @@ Name | Type | Description | Notes **200** | OK | - | **401** | Unauthorized | - | - -# **replaceRuntimeClass** -> V1beta1RuntimeClass replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation) + +# **replaceClusterCIDR** +> V1alpha1ClusterCIDR replaceClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation) -replace the specified RuntimeClass +replace the specified ClusterCIDR ### Example ```java @@ -596,7 +596,7 @@ import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Configuration; import io.kubernetes.client.openapi.auth.*; import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.NodeV1beta1Api; +import io.kubernetes.client.openapi.apis.NetworkingV1alpha1Api; public class Example { public static void main(String[] args) { @@ -609,18 +609,18 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //BearerToken.setApiKeyPrefix("Token"); - NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the RuntimeClass - V1beta1RuntimeClass body = new V1beta1RuntimeClass(); // V1beta1RuntimeClass | + NetworkingV1alpha1Api apiInstance = new NetworkingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterCIDR + V1alpha1ClusterCIDR body = new V1alpha1ClusterCIDR(); // V1alpha1ClusterCIDR | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1RuntimeClass result = apiInstance.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation); + V1alpha1ClusterCIDR result = apiInstance.replaceClusterCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#replaceRuntimeClass"); + System.err.println("Exception when calling NetworkingV1alpha1Api#replaceClusterCIDR"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -634,8 +634,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| name of the RuntimeClass | - **body** | [**V1beta1RuntimeClass**](V1beta1RuntimeClass.md)| | + **name** | **String**| name of the ClusterCIDR | + **body** | [**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md)| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] @@ -643,7 +643,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1RuntimeClass**](V1beta1RuntimeClass.md) +[**V1alpha1ClusterCIDR**](V1alpha1ClusterCIDR.md) ### Authorization diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md deleted file mode 100644 index c9cf5024d1..0000000000 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ /dev/null @@ -1,1599 +0,0 @@ -# PolicyV1beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#createNamespacedPodDisruptionBudget) | **POST** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -[**createPodSecurityPolicy**](PolicyV1beta1Api.md#createPodSecurityPolicy) | **POST** /apis/policy/v1beta1/podsecuritypolicies | -[**deleteCollectionNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#deleteCollectionNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -[**deleteCollectionPodSecurityPolicy**](PolicyV1beta1Api.md#deleteCollectionPodSecurityPolicy) | **DELETE** /apis/policy/v1beta1/podsecuritypolicies | -[**deleteNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#deleteNamespacedPodDisruptionBudget) | **DELETE** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**deletePodSecurityPolicy**](PolicyV1beta1Api.md#deletePodSecurityPolicy) | **DELETE** /apis/policy/v1beta1/podsecuritypolicies/{name} | -[**getAPIResources**](PolicyV1beta1Api.md#getAPIResources) | **GET** /apis/policy/v1beta1/ | -[**listNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#listNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets | -[**listPodDisruptionBudgetForAllNamespaces**](PolicyV1beta1Api.md#listPodDisruptionBudgetForAllNamespaces) | **GET** /apis/policy/v1beta1/poddisruptionbudgets | -[**listPodSecurityPolicy**](PolicyV1beta1Api.md#listPodSecurityPolicy) | **GET** /apis/policy/v1beta1/podsecuritypolicies | -[**patchNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#patchNamespacedPodDisruptionBudget) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**patchNamespacedPodDisruptionBudgetStatus**](PolicyV1beta1Api.md#patchNamespacedPodDisruptionBudgetStatus) | **PATCH** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**patchPodSecurityPolicy**](PolicyV1beta1Api.md#patchPodSecurityPolicy) | **PATCH** /apis/policy/v1beta1/podsecuritypolicies/{name} | -[**readNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#readNamespacedPodDisruptionBudget) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**readNamespacedPodDisruptionBudgetStatus**](PolicyV1beta1Api.md#readNamespacedPodDisruptionBudgetStatus) | **GET** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**readPodSecurityPolicy**](PolicyV1beta1Api.md#readPodSecurityPolicy) | **GET** /apis/policy/v1beta1/podsecuritypolicies/{name} | -[**replaceNamespacedPodDisruptionBudget**](PolicyV1beta1Api.md#replaceNamespacedPodDisruptionBudget) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name} | -[**replaceNamespacedPodDisruptionBudgetStatus**](PolicyV1beta1Api.md#replaceNamespacedPodDisruptionBudgetStatus) | **PUT** /apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status | -[**replacePodSecurityPolicy**](PolicyV1beta1Api.md#replacePodSecurityPolicy) | **PUT** /apis/policy/v1beta1/podsecuritypolicies/{name} | - - - -# **createNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodDisruptionBudget result = apiInstance.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#createNamespacedPodDisruptionBudget"); - System.err.println("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** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **createPodSecurityPolicy** -> V1beta1PodSecurityPolicy createPodSecurityPolicy(body, pretty, dryRun, fieldManager, fieldValidation) - - - -create a PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - V1beta1PodSecurityPolicy body = new V1beta1PodSecurityPolicy(); // V1beta1PodSecurityPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodSecurityPolicy result = apiInstance.createPodSecurityPolicy(body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#createPodSecurityPolicy"); - System.err.println("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** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deleteCollectionNamespacedPodDisruptionBudget** -> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) - - - -delete collection of PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(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. - 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. - 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 - 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.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deleteCollectionNamespacedPodDisruptionBudget"); - System.err.println("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. | [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] - **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] - **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**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteCollectionPodSecurityPolicy** -> V1Status deleteCollectionPodSecurityPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body) - - - -delete collection of PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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. - 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 - 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.deleteCollectionPodSecurityPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deleteCollectionPodSecurityPolicy"); - System.err.println("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. | [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] - **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] - **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**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **deleteNamespacedPodDisruptionBudget** -> V1Status deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deleteNamespacedPodDisruptionBudget"); - System.err.println("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 PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] - **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] - **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**202** | Accepted | - | -**401** | Unauthorized | - | - - -# **deletePodSecurityPolicy** -> V1beta1PodSecurityPolicy deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) - - - -delete a PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodSecurityPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 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 { - V1beta1PodSecurityPolicy result = apiInstance.deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deletePodSecurityPolicy"); - System.err.println("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 PodSecurityPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] - **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 - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### 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.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(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. - 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 - 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 { - V1beta1PodDisruptionBudgetList result = apiInstance.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#listNamespacedPodDisruptionBudget"); - System.err.println("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. | [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] - **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 - -[**V1beta1PodDisruptionBudgetList**](V1beta1PodDisruptionBudgetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listPodDisruptionBudgetForAllNamespaces** -> V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(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. - 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 - 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 { - V1beta1PodDisruptionBudgetList result = apiInstance.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#listPodDisruptionBudgetForAllNamespaces"); - System.err.println("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. | [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] - **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 - -[**V1beta1PodDisruptionBudgetList**](V1beta1PodDisruptionBudgetList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **listPodSecurityPolicy** -> V1beta1PodSecurityPolicyList listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch) - - - -list or watch objects of kind PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - 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 - 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 { - V1beta1PodSecurityPolicyList result = apiInstance.listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#listPodSecurityPolicy"); - System.err.println("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. | [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] - **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 - -[**V1beta1PodSecurityPolicyList**](V1beta1PodSecurityPolicyList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **patchNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodDisruptionBudget result = apiInstance.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#patchNamespacedPodDisruptionBudget"); - System.err.println("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 PodDisruptionBudget | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchNamespacedPodDisruptionBudgetStatus** -> V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update status of the specified PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodDisruptionBudget result = apiInstance.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#patchNamespacedPodDisruptionBudgetStatus"); - System.err.println("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 PodDisruptionBudget | - **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. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **patchPodSecurityPolicy** -> V1beta1PodSecurityPolicy patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force) - - - -partially update the specified PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodSecurityPolicy - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodSecurityPolicy result = apiInstance.patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#patchPodSecurityPolicy"); - System.err.println("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 PodSecurityPolicy | - **body** | **V1Patch**| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from 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 - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **readNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudget(name, namespace, pretty) - - - -read the specified PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - 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. - try { - V1beta1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudget(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#readNamespacedPodDisruptionBudget"); - System.err.println("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 PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readNamespacedPodDisruptionBudgetStatus** -> V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty) - - - -read status of the specified PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - 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. - try { - V1beta1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#readNamespacedPodDisruptionBudgetStatus"); - System.err.println("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 PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **readPodSecurityPolicy** -> V1beta1PodSecurityPolicy readPodSecurityPolicy(name, pretty) - - - -read the specified PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodSecurityPolicy - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - try { - V1beta1PodSecurityPolicy result = apiInstance.readPodSecurityPolicy(name, pretty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#readPodSecurityPolicy"); - System.err.println("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 PodSecurityPolicy | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - -### Return type - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodDisruptionBudget result = apiInstance.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#replaceNamespacedPodDisruptionBudget"); - System.err.println("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 PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replaceNamespacedPodDisruptionBudgetStatus** -> V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace status of the specified PodDisruptionBudget - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodDisruptionBudget - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodDisruptionBudget result = apiInstance.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#replaceNamespacedPodDisruptionBudgetStatus"); - System.err.println("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 PodDisruptionBudget | - **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1PodDisruptionBudget**](V1beta1PodDisruptionBudget.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - - -# **replacePodSecurityPolicy** -> V1beta1PodSecurityPolicy replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation) - - - -replace the specified PodSecurityPolicy - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.PolicyV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the PodSecurityPolicy - V1beta1PodSecurityPolicy body = new V1beta1PodSecurityPolicy(); // V1beta1PodSecurityPolicy | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1PodSecurityPolicy result = apiInstance.replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#replacePodSecurityPolicy"); - System.err.println("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 PodSecurityPolicy | - **body** | [**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md)| | - **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the 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 - -[**V1beta1PodSecurityPolicy**](V1beta1PodSecurityPolicy.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | - diff --git a/kubernetes/docs/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index ebbf79a1af..8957376143 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **fsGroupPolicy** | **String** | 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 is immutable. 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] **podInfoOnMount** | **Boolean** | If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. 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 VolumeConext 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 is immutable. | [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] **storageCapacity** | **Boolean** | If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information. The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object. Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published. This field was immutable in Kubernetes <= 1.22 and now is mutable. | [optional] **tokenRequests** | [**List<StorageV1TokenRequest>**](StorageV1TokenRequest.md) | TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. | [optional] **volumeLifecycleModes** | **List<String>** | volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable. | [optional] diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index c0b5d5eb7f..ab851acd78 100644 --- a/kubernetes/docs/V1CSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1CSIPersistentVolumeSource.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **controllerPublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **driver** | **String** | driver is the name of the driver to use for this volume. Required. | **fsType** | **String** | fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". | [optional] +**nodeExpandSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **nodePublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **nodeStageSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **readOnly** | **Boolean** | readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). | [optional] diff --git a/kubernetes/docs/V1CSIStorageCapacity.md b/kubernetes/docs/V1CSIStorageCapacity.md index d51fffc902..d320241233 100644 --- a/kubernetes/docs/V1CSIStorageCapacity.md +++ b/kubernetes/docs/V1CSIStorageCapacity.md @@ -8,9 +8,9 @@ CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given St 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] -**capacity** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**capacity** | [**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] **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] -**maximumVolumeSize** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**maximumVolumeSize** | [**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] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **nodeTopology** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **storageClassName** | **String** | The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. | diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index 965e0b8d14..dea036b3d1 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] **livenessProbe** | [**V1Probe**](V1Probe.md) | | [optional] **name** | **String** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | -**ports** | [**List<V1ContainerPort>**](V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] +**ports** | [**List<V1ContainerPort>**](V1ContainerPort.md) | List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. | [optional] **readinessProbe** | [**V1Probe**](V1Probe.md) | | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] **securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] diff --git a/kubernetes/docs/V1ContainerImage.md b/kubernetes/docs/V1ContainerImage.md index 355850d536..70a1974f45 100644 --- a/kubernetes/docs/V1ContainerImage.md +++ b/kubernetes/docs/V1ContainerImage.md @@ -7,7 +7,7 @@ Describe a container image Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**names** | **List<String>** | Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] | [optional] +**names** | **List<String>** | Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"] | [optional] **sizeBytes** | **Long** | The size of the image in bytes. | [optional] diff --git a/kubernetes/docs/V1CronJobSpec.md b/kubernetes/docs/V1CronJobSpec.md index 347603ac0f..8f474db39b 100644 --- a/kubernetes/docs/V1CronJobSpec.md +++ b/kubernetes/docs/V1CronJobSpec.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **startingDeadlineSeconds** | **Long** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] **successfulJobsHistoryLimit** | **Integer** | The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3. | [optional] **suspend** | **Boolean** | This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] -**timeZone** | **String** | The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate. | [optional] +**timeZone** | **String** | The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate. | [optional] diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md index fb7fbce6e5..3e5b19eb09 100644 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/docs/V1EmptyDirVolumeSource.md @@ -8,7 +8,7 @@ Represents an empty directory for a pod. Empty directory volumes support ownersh Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **medium** | **String** | medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] -**sizeLimit** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**sizeLimit** | [**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/V1Endpoint.md b/kubernetes/docs/V1Endpoint.md index 8695900f4e..18b004718b 100644 --- a/kubernetes/docs/V1Endpoint.md +++ b/kubernetes/docs/V1Endpoint.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **deprecatedTopology** | **Map<String, String>** | deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead. | [optional] **hints** | [**V1EndpointHints**](V1EndpointHints.md) | | [optional] **hostname** | **String** | hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. | [optional] -**nodeName** | **String** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. | [optional] +**nodeName** | **String** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. | [optional] **targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **zone** | **String** | zone is the name of the Zone this endpoint exists in. | [optional] diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md index cb65d64855..726eda4dea 100644 --- a/kubernetes/docs/V1EndpointSubset.md +++ b/kubernetes/docs/V1EndpointSubset.md @@ -2,7 +2,7 @@ # V1EndpointSubset -EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] +EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 75b9ddf0b0..76ef8fb631 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -2,7 +2,7 @@ # V1Endpoints -Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] +Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1EphemeralContainer.md b/kubernetes/docs/V1EphemeralContainer.md index 029295ca5f..9a437d7e85 100644 --- a/kubernetes/docs/V1EphemeralContainer.md +++ b/kubernetes/docs/V1EphemeralContainer.md @@ -2,7 +2,7 @@ # V1EphemeralContainer -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. This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate. +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. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1IngressSpec.md b/kubernetes/docs/V1IngressSpec.md index c58e376c6c..89c40cb045 100644 --- a/kubernetes/docs/V1IngressSpec.md +++ b/kubernetes/docs/V1IngressSpec.md @@ -8,7 +8,7 @@ IngressSpec describes the Ingress the user wishes to exist. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultBackend** | [**V1IngressBackend**](V1IngressBackend.md) | | [optional] -**ingressClassName** | **String** | IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation. | [optional] +**ingressClassName** | **String** | IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present. | [optional] **rules** | [**List<V1IngressRule>**](V1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] **tls** | [**List<V1IngressTLS>**](V1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 88f6875548..ea71125ac9 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **completions** | **Integer** | Specifies the desired number of successfully finished pods the job should be run with. Setting to nil 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] **manualSelector** | **Boolean** | manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector | [optional] **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] **selector** | [**V1LabelSelector**](V1LabelSelector.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] **template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | diff --git a/kubernetes/docs/V1NetworkPolicyPort.md b/kubernetes/docs/V1NetworkPolicyPort.md index 5493d43e1b..6045b1bf13 100644 --- a/kubernetes/docs/V1NetworkPolicyPort.md +++ b/kubernetes/docs/V1NetworkPolicyPort.md @@ -7,7 +7,7 @@ NetworkPolicyPort describes a port to allow traffic on Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**endPort** | **Integer** | If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\". | [optional] +**endPort** | **Integer** | If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. | [optional] **port** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **protocol** | **String** | The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index f64d3b2f4f..54fd16a102 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -8,7 +8,6 @@ ObjectMeta is metadata that all persisted resources must have, which includes al Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **Map<String, String>** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] -**clusterName** | **String** | Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. The name in the go struct is changed to help clients detect accidental use. | [optional] **creationTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] **deletionGracePeriodSeconds** | **Long** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] **deletionTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] diff --git a/kubernetes/docs/V1PodFailurePolicy.md b/kubernetes/docs/V1PodFailurePolicy.md new file mode 100644 index 0000000000..dd1b583417 --- /dev/null +++ b/kubernetes/docs/V1PodFailurePolicy.md @@ -0,0 +1,13 @@ + + +# V1PodFailurePolicy + +PodFailurePolicy describes how failed pods influence the backoffLimit. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rules** | [**List<V1PodFailurePolicyRule>**](V1PodFailurePolicyRule.md) | A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. | + + + diff --git a/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md b/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md new file mode 100644 index 0000000000..f015f76e73 --- /dev/null +++ b/kubernetes/docs/V1PodFailurePolicyOnExitCodesRequirement.md @@ -0,0 +1,15 @@ + + +# V1PodFailurePolicyOnExitCodesRequirement + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**containerName** | **String** | Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. | [optional] +**operator** | **String** | Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. | +**values** | **List<Integer>** | Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. | + + + diff --git a/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md b/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md new file mode 100644 index 0000000000..9a67a29081 --- /dev/null +++ b/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md @@ -0,0 +1,14 @@ + + +# V1PodFailurePolicyOnPodConditionsPattern + +PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. | +**type** | **String** | Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. | + + + diff --git a/kubernetes/docs/V1PodFailurePolicyRule.md b/kubernetes/docs/V1PodFailurePolicyRule.md new file mode 100644 index 0000000000..6046cab362 --- /dev/null +++ b/kubernetes/docs/V1PodFailurePolicyRule.md @@ -0,0 +1,15 @@ + + +# V1PodFailurePolicyRule + +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. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. | +**onExitCodes** | [**V1PodFailurePolicyOnExitCodesRequirement**](V1PodFailurePolicyOnExitCodesRequirement.md) | | [optional] +**onPodConditions** | [**List<V1PodFailurePolicyOnPodConditionsPattern>**](V1PodFailurePolicyOnPodConditionsPattern.md) | Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. | + + + diff --git a/kubernetes/docs/V1PodIP.md b/kubernetes/docs/V1PodIP.md index 10b6b429c4..59ed5ed31e 100644 --- a/kubernetes/docs/V1PodIP.md +++ b/kubernetes/docs/V1PodIP.md @@ -2,7 +2,7 @@ # V1PodIP -IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster. +IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index ed63fc0086..a2faf7bb27 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -14,11 +14,12 @@ Name | Type | Description | Notes **dnsConfig** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | | [optional] **dnsPolicy** | **String** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **enableServiceLinks** | **Boolean** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] -**ephemeralContainers** | [**List<V1EphemeralContainer>**](V1EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. | [optional] +**ephemeralContainers** | [**List<V1EphemeralContainer>**](V1EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. | [optional] **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. This is only valid for non-hostNetwork pods. | [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] **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] **imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | [optional] **initContainers** | [**List<V1Container>**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 746744ba80..53ef4a549c 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -9,7 +9,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) | The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] -**ephemeralContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. | [optional] +**ephemeralContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Status for any ephemeral containers that have run in this pod. | [optional] **hostIP** | **String** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. | [optional] **initContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] **message** | **String** | A human readable message indicating details about why the pod is in this condition. | [optional] diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md index 303735176c..9de688d5cf 100644 --- a/kubernetes/docs/V1PolicyRule.md +++ b/kubernetes/docs/V1PolicyRule.md @@ -7,7 +7,7 @@ PolicyRule holds information that describes a policy rule, but does not contain Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] +**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups. | [optional] **nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. | [optional] **resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] **resources** | **List<String>** | Resources is a list of resources this rule applies to. '*' represents all resources. | [optional] diff --git a/kubernetes/docs/V1ResourceFieldSelector.md b/kubernetes/docs/V1ResourceFieldSelector.md index 5d5d0c0dc2..a7c5e94255 100644 --- a/kubernetes/docs/V1ResourceFieldSelector.md +++ b/kubernetes/docs/V1ResourceFieldSelector.md @@ -8,7 +8,7 @@ ResourceFieldSelector represents container resources (cpu, memory) and their out Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containerName** | **String** | Container name: required for volumes, optional for env vars | [optional] -**divisor** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**divisor** | [**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] **resource** | **String** | Required: resource to select | diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index d752ae4067..5195367a9c 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -12,9 +12,9 @@ Name | Type | Description | Notes **clusterIPs** | **List<String>** | ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional] **externalIPs** | **List<String>** | externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. | [optional] **externalName** | **String** | externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". | [optional] -**externalTrafficPolicy** | **String** | externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. | [optional] -**healthCheckNodePort** | **Integer** | healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). | [optional] -**internalTrafficPolicy** | **String** | InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\". | [optional] +**externalTrafficPolicy** | **String** | externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. | [optional] +**healthCheckNodePort** | **Integer** | healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. | [optional] +**internalTrafficPolicy** | **String** | InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). | [optional] **ipFamilies** | **List<String>** | IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. | [optional] **ipFamilyPolicy** | **String** | IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName. | [optional] **loadBalancerClass** | **String** | loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. | [optional] diff --git a/kubernetes/docs/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index ce71815504..b39b955fd2 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -2,7 +2,7 @@ # V1StatefulSet -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. +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. ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index c9463af21f..e5dc401be6 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -7,7 +7,7 @@ A StatefulSetSpec is the specification of a StatefulSet. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. | [optional] +**minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **persistentVolumeClaimRetentionPolicy** | [**V1StatefulSetPersistentVolumeClaimRetentionPolicy**](V1StatefulSetPersistentVolumeClaimRetentionPolicy.md) | | [optional] **podManagementPolicy** | **String** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **Integer** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] diff --git a/kubernetes/docs/V1StatefulSetStatus.md b/kubernetes/docs/V1StatefulSetStatus.md index 4bc94aa44c..3b7ce55233 100644 --- a/kubernetes/docs/V1StatefulSetStatus.md +++ b/kubernetes/docs/V1StatefulSetStatus.md @@ -7,7 +7,7 @@ StatefulSetStatus represents the current state of a StatefulSet. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate. | [optional] +**availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. | [optional] **collisionCount** | **Integer** | collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] **conditions** | [**List<V1StatefulSetCondition>**](V1StatefulSetCondition.md) | Represents the latest available observations of a statefulset's current state. | [optional] **currentReplicas** | **Integer** | currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. | [optional] diff --git a/kubernetes/docs/V1TokenRequestSpec.md b/kubernetes/docs/V1TokenRequestSpec.md index d5778e59e4..1c6013fe6a 100644 --- a/kubernetes/docs/V1TokenRequestSpec.md +++ b/kubernetes/docs/V1TokenRequestSpec.md @@ -7,7 +7,7 @@ TokenRequestSpec contains client provided parameters of a token request. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audiences** | **List<String>** | Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | +**audiences** | **List<String>** | Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | **boundObjectRef** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] **expirationSeconds** | **Long** | ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. | [optional] diff --git a/kubernetes/docs/V1TopologySpreadConstraint.md b/kubernetes/docs/V1TopologySpreadConstraint.md index 67f6fec25c..f6b9b2b7ad 100644 --- a/kubernetes/docs/V1TopologySpreadConstraint.md +++ b/kubernetes/docs/V1TopologySpreadConstraint.md @@ -8,9 +8,12 @@ TopologySpreadConstraint specifies how to spread matching pods among the given t Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**matchLabelKeys** | **List<String>** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. | [optional] **maxSkew** | **Integer** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | -**minDomains** | **Integer** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate. | [optional] -**topologyKey** | **String** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes match the node selector. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | +**minDomains** | **Integer** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] +**nodeAffinityPolicy** | **String** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] +**nodeTaintsPolicy** | **String** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] +**topologyKey** | **String** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | **whenUnsatisfiable** | **String** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. | diff --git a/kubernetes/docs/V1beta1PodDisruptionBudget.md b/kubernetes/docs/V1alpha1ClusterCIDR.md similarity index 55% rename from kubernetes/docs/V1beta1PodDisruptionBudget.md rename to kubernetes/docs/V1alpha1ClusterCIDR.md index 9f06787e7b..525601be2e 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudget.md +++ b/kubernetes/docs/V1alpha1ClusterCIDR.md @@ -1,8 +1,8 @@ -# V1beta1PodDisruptionBudget +# V1alpha1ClusterCIDR -PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods +ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used. ## Properties Name | Type | Description | Notes @@ -10,8 +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** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | | [optional] -**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | | [optional] +**spec** | [**V1alpha1ClusterCIDRSpec**](V1alpha1ClusterCIDRSpec.md) | | [optional] ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta1CronJobList.md b/kubernetes/docs/V1alpha1ClusterCIDRList.md similarity index 83% rename from kubernetes/docs/V1beta1CronJobList.md rename to kubernetes/docs/V1alpha1ClusterCIDRList.md index 9e8b608003..f44fdc72b3 100644 --- a/kubernetes/docs/V1beta1CronJobList.md +++ b/kubernetes/docs/V1alpha1ClusterCIDRList.md @@ -1,14 +1,14 @@ -# V1beta1CronJobList +# V1alpha1ClusterCIDRList -CronJobList is a collection of cron jobs. +ClusterCIDRList contains a list of ClusterCIDR. ## 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<V1beta1CronJob>**](V1beta1CronJob.md) | items is the list of CronJobs. | +**items** | [**List<V1alpha1ClusterCIDR>**](V1alpha1ClusterCIDR.md) | Items is the list of ClusterCIDRs. | **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/V1alpha1ClusterCIDRSpec.md b/kubernetes/docs/V1alpha1ClusterCIDRSpec.md new file mode 100644 index 0000000000..4bbc5db29c --- /dev/null +++ b/kubernetes/docs/V1alpha1ClusterCIDRSpec.md @@ -0,0 +1,16 @@ + + +# V1alpha1ClusterCIDRSpec + +ClusterCIDRSpec defines the desired state of ClusterCIDR. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ipv4** | **String** | IPv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] +**ipv6** | **String** | IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] +**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] +**perNodeHostBits** | **Integer** | PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. | + + + diff --git a/kubernetes/docs/V1beta1AllowedCSIDriver.md b/kubernetes/docs/V1beta1AllowedCSIDriver.md deleted file mode 100644 index 5108237d12..0000000000 --- a/kubernetes/docs/V1beta1AllowedCSIDriver.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta1AllowedCSIDriver - -AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name is the registered name of the CSI driver | - - - diff --git a/kubernetes/docs/V1beta1AllowedFlexVolume.md b/kubernetes/docs/V1beta1AllowedFlexVolume.md deleted file mode 100644 index f75ae1cace..0000000000 --- a/kubernetes/docs/V1beta1AllowedFlexVolume.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta1AllowedFlexVolume - -AllowedFlexVolume represents a single Flexvolume that is allowed to be used. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**driver** | **String** | driver is the name of the Flexvolume driver. | - - - diff --git a/kubernetes/docs/V1beta1AllowedHostPath.md b/kubernetes/docs/V1beta1AllowedHostPath.md deleted file mode 100644 index 36544865bf..0000000000 --- a/kubernetes/docs/V1beta1AllowedHostPath.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1AllowedHostPath - -AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pathPrefix** | **String** | pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` | [optional] -**readOnly** | **Boolean** | when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. | [optional] - - - diff --git a/kubernetes/docs/V1beta1CSIStorageCapacity.md b/kubernetes/docs/V1beta1CSIStorageCapacity.md index 9fe21dca2c..6057389ce4 100644 --- a/kubernetes/docs/V1beta1CSIStorageCapacity.md +++ b/kubernetes/docs/V1beta1CSIStorageCapacity.md @@ -8,9 +8,9 @@ CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given St 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] -**capacity** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**capacity** | [**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] **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] -**maximumVolumeSize** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**maximumVolumeSize** | [**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] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **nodeTopology** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **storageClassName** | **String** | The name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable. | diff --git a/kubernetes/docs/V1beta1CronJob.md b/kubernetes/docs/V1beta1CronJob.md deleted file mode 100644 index 8ecb779dae..0000000000 --- a/kubernetes/docs/V1beta1CronJob.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1CronJob - -CronJob represents the configuration of a single cron job. -## 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** | [**V1beta1CronJobSpec**](V1beta1CronJobSpec.md) | | [optional] -**status** | [**V1beta1CronJobStatus**](V1beta1CronJobStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1CronJobSpec.md b/kubernetes/docs/V1beta1CronJobSpec.md deleted file mode 100644 index 51e84435d7..0000000000 --- a/kubernetes/docs/V1beta1CronJobSpec.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1CronJobSpec - -CronJobSpec describes how the job execution will look like and when it will actually run. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**concurrencyPolicy** | **String** | Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one | [optional] -**failedJobsHistoryLimit** | **Integer** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**jobTemplate** | [**V1beta1JobTemplateSpec**](V1beta1JobTemplateSpec.md) | | -**schedule** | **String** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | -**startingDeadlineSeconds** | **Long** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] -**successfulJobsHistoryLimit** | **Integer** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. | [optional] -**suspend** | **Boolean** | This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. | [optional] -**timeZone** | **String** | The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate. | [optional] - - - diff --git a/kubernetes/docs/V1beta1CronJobStatus.md b/kubernetes/docs/V1beta1CronJobStatus.md deleted file mode 100644 index c7082f5012..0000000000 --- a/kubernetes/docs/V1beta1CronJobStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1CronJobStatus - -CronJobStatus represents the current state of a cron job. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] -**lastScheduleTime** | [**OffsetDateTime**](OffsetDateTime.md) | Information when was the last time the job was successfully scheduled. | [optional] -**lastSuccessfulTime** | [**OffsetDateTime**](OffsetDateTime.md) | Information when was the last time the job successfully completed. | [optional] - - - diff --git a/kubernetes/docs/V1beta1Endpoint.md b/kubernetes/docs/V1beta1Endpoint.md deleted file mode 100644 index 103f8d3000..0000000000 --- a/kubernetes/docs/V1beta1Endpoint.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# V1beta1Endpoint - -Endpoint represents a single logical \"backend\" implementing a service. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | **List<String>** | addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267 | -**conditions** | [**V1beta1EndpointConditions**](V1beta1EndpointConditions.md) | | [optional] -**hints** | [**V1beta1EndpointHints**](V1beta1EndpointHints.md) | | [optional] -**hostname** | **String** | hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation. | [optional] -**nodeName** | **String** | nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate. | [optional] -**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**topology** | **Map<String, String>** | topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node where the endpoint is located. This should match the corresponding node label. * topology.kubernetes.io/zone: the value indicates the zone where the endpoint is located. This should match the corresponding node label. * topology.kubernetes.io/region: the value indicates the region where the endpoint is located. This should match the corresponding node label. This field is deprecated and will be removed in future api versions. | [optional] - - - diff --git a/kubernetes/docs/V1beta1EndpointConditions.md b/kubernetes/docs/V1beta1EndpointConditions.md deleted file mode 100644 index 66afa58fae..0000000000 --- a/kubernetes/docs/V1beta1EndpointConditions.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1EndpointConditions - -EndpointConditions represents the current condition of an endpoint. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ready** | **Boolean** | ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints. | [optional] -**serving** | **Boolean** | serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. | [optional] -**terminating** | **Boolean** | terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. | [optional] - - - diff --git a/kubernetes/docs/V1beta1EndpointHints.md b/kubernetes/docs/V1beta1EndpointHints.md deleted file mode 100644 index 2c59939bc8..0000000000 --- a/kubernetes/docs/V1beta1EndpointHints.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta1EndpointHints - -EndpointHints provides hints describing how an endpoint should be consumed. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**forZones** | [**List<V1beta1ForZone>**](V1beta1ForZone.md) | forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries. | [optional] - - - diff --git a/kubernetes/docs/V1beta1EndpointPort.md b/kubernetes/docs/V1beta1EndpointPort.md deleted file mode 100644 index c6593dcc53..0000000000 --- a/kubernetes/docs/V1beta1EndpointPort.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta1EndpointPort - -EndpointPort represents a Port used by an EndpointSlice -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appProtocol** | **String** | The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. | [optional] -**name** | **String** | The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string. | [optional] -**port** | **Integer** | The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. | [optional] -**protocol** | **String** | The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. | [optional] - - - diff --git a/kubernetes/docs/V1beta1EndpointSlice.md b/kubernetes/docs/V1beta1EndpointSlice.md deleted file mode 100644 index 17f84a49a8..0000000000 --- a/kubernetes/docs/V1beta1EndpointSlice.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# V1beta1EndpointSlice - -EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addressType** | **String** | addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name. | -**apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**endpoints** | [**List<V1beta1Endpoint>**](V1beta1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**ports** | [**List<V1beta1EndpointPort>**](V1beta1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports. | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1EndpointSliceList.md b/kubernetes/docs/V1beta1EndpointSliceList.md deleted file mode 100644 index 691b77755c..0000000000 --- a/kubernetes/docs/V1beta1EndpointSliceList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1EndpointSliceList - -EndpointSliceList represents a list of endpoint slices -## 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<V1beta1EndpointSlice>**](V1beta1EndpointSlice.md) | List of endpoint slices | -**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/V1beta1Event.md b/kubernetes/docs/V1beta1Event.md deleted file mode 100644 index f2660b8335..0000000000 --- a/kubernetes/docs/V1beta1Event.md +++ /dev/null @@ -1,33 +0,0 @@ - - -# V1beta1Event - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters. | [optional] -**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] -**deprecatedCount** | **Integer** | deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedFirstTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedLastTimestamp** | [**OffsetDateTime**](OffsetDateTime.md) | deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type. | [optional] -**deprecatedSource** | [**V1EventSource**](V1EventSource.md) | | [optional] -**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | eventTime is the time when this Event was first observed. It is required. | -**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] -**note** | **String** | note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] -**reason** | **String** | reason is why the action was taken. It is human-readable. This field can have at most 128 characters. | [optional] -**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] -**reportingController** | **String** | reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events. | [optional] -**reportingInstance** | **String** | reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters. | [optional] -**series** | [**V1beta1EventSeries**](V1beta1EventSeries.md) | | [optional] -**type** | **String** | type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1EventList.md b/kubernetes/docs/V1beta1EventList.md deleted file mode 100644 index ea31a0faac..0000000000 --- a/kubernetes/docs/V1beta1EventList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1EventList - -EventList is a list of Event 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<V1beta1Event>**](V1beta1Event.md) | items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta1EventSeries.md b/kubernetes/docs/V1beta1EventSeries.md deleted file mode 100644 index 17e314b50d..0000000000 --- a/kubernetes/docs/V1beta1EventSeries.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1EventSeries - -EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Integer** | count is the number of occurrences in this series up to the last heartbeat time. | -**lastObservedTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastObservedTime is the time when last Event from the series was seen before last heartbeat. | - - - diff --git a/kubernetes/docs/V1beta1FSGroupStrategyOptions.md b/kubernetes/docs/V1beta1FSGroupStrategyOptions.md deleted file mode 100644 index c6012a280e..0000000000 --- a/kubernetes/docs/V1beta1FSGroupStrategyOptions.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1FSGroupStrategyOptions - -FSGroupStrategyOptions defines the strategy type and options used to create the strategy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**List<V1beta1IDRange>**](V1beta1IDRange.md) | ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. | [optional] -**rule** | **String** | rule is the strategy that will dictate what FSGroup is used in the SecurityContext. | [optional] - - - diff --git a/kubernetes/docs/V1beta1ForZone.md b/kubernetes/docs/V1beta1ForZone.md deleted file mode 100644 index 202085b94f..0000000000 --- a/kubernetes/docs/V1beta1ForZone.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta1ForZone - -ForZone provides information about which zones should consume this endpoint. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name represents the name of the zone. | - - - diff --git a/kubernetes/docs/V1beta1HostPortRange.md b/kubernetes/docs/V1beta1HostPortRange.md deleted file mode 100644 index 6e010ec43a..0000000000 --- a/kubernetes/docs/V1beta1HostPortRange.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1HostPortRange - -HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max** | **Integer** | max is the end of the range, inclusive. | -**min** | **Integer** | min is the start of the range, inclusive. | - - - diff --git a/kubernetes/docs/V1beta1IDRange.md b/kubernetes/docs/V1beta1IDRange.md deleted file mode 100644 index 02063b0835..0000000000 --- a/kubernetes/docs/V1beta1IDRange.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1IDRange - -IDRange provides a min/max of an allowed range of IDs. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max** | **Long** | max is the end of the range, inclusive. | -**min** | **Long** | min is the start of the range, inclusive. | - - - diff --git a/kubernetes/docs/V1beta1JobTemplateSpec.md b/kubernetes/docs/V1beta1JobTemplateSpec.md deleted file mode 100644 index 5c3c126acb..0000000000 --- a/kubernetes/docs/V1beta1JobTemplateSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1JobTemplateSpec - -JobTemplateSpec describes the data a Job should have when created from a template -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta1LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1beta1LimitedPriorityLevelConfiguration.md index daa85c3868..eddd3fafec 100644 --- a/kubernetes/docs/V1beta1LimitedPriorityLevelConfiguration.md +++ b/kubernetes/docs/V1beta1LimitedPriorityLevelConfiguration.md @@ -2,7 +2,7 @@ # V1beta1LimitedPriorityLevelConfiguration -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? +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? ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V1beta1Overhead.md b/kubernetes/docs/V1beta1Overhead.md deleted file mode 100644 index b42fcf83ba..0000000000 --- a/kubernetes/docs/V1beta1Overhead.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# V1beta1Overhead - -Overhead structure represents the resource overhead associated with running a pod. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**podFixed** | [**Map<String, Quantity>**](Quantity.md) | PodFixed represents the fixed resource overhead associated with running a pod. | [optional] - - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md deleted file mode 100644 index a22f54592e..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1PodDisruptionBudgetList - -PodDisruptionBudgetList is a collection of PodDisruptionBudgets. -## 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<V1beta1PodDisruptionBudget>**](V1beta1PodDisruptionBudget.md) | items list individual PodDisruptionBudget 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/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md deleted file mode 100644 index 94a8f6c6c5..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1PodDisruptionBudgetSpec - -PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] -**minAvailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md deleted file mode 100644 index 3c1f91bb4b..0000000000 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# V1beta1PodDisruptionBudgetStatus - -PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property. | [optional] -**currentHealthy** | **Integer** | current number of healthy pods | -**desiredHealthy** | **Integer** | minimum desired number of healthy pods | -**disruptedPods** | [**Map<String, OffsetDateTime>**](OffsetDateTime.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | [optional] -**disruptionsAllowed** | **Integer** | Number of pod disruptions that are currently allowed. | -**expectedPods** | **Integer** | total number of pods counted by this disruption budget | -**observedGeneration** | **Long** | Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation. | [optional] - - - diff --git a/kubernetes/docs/V1beta1PodSecurityPolicy.md b/kubernetes/docs/V1beta1PodSecurityPolicy.md deleted file mode 100644 index 923752f5f4..0000000000 --- a/kubernetes/docs/V1beta1PodSecurityPolicy.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1PodSecurityPolicy - -PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21. -## 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** | [**V1beta1PodSecurityPolicySpec**](V1beta1PodSecurityPolicySpec.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1PodSecurityPolicyList.md b/kubernetes/docs/V1beta1PodSecurityPolicyList.md deleted file mode 100644 index 8b247cd4d3..0000000000 --- a/kubernetes/docs/V1beta1PodSecurityPolicyList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1PodSecurityPolicyList - -PodSecurityPolicyList is a list of PodSecurityPolicy 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<V1beta1PodSecurityPolicy>**](V1beta1PodSecurityPolicy.md) | items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta1PodSecurityPolicySpec.md b/kubernetes/docs/V1beta1PodSecurityPolicySpec.md deleted file mode 100644 index 3200ef3ad9..0000000000 --- a/kubernetes/docs/V1beta1PodSecurityPolicySpec.md +++ /dev/null @@ -1,36 +0,0 @@ - - -# V1beta1PodSecurityPolicySpec - -PodSecurityPolicySpec defines the policy enforced. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowPrivilegeEscalation** | **Boolean** | allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. | [optional] -**allowedCSIDrivers** | [**List<V1beta1AllowedCSIDriver>**](V1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate. | [optional] -**allowedCapabilities** | **List<String>** | allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. | [optional] -**allowedFlexVolumes** | [**List<V1beta1AllowedFlexVolume>**](V1beta1AllowedFlexVolume.md) | allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. | [optional] -**allowedHostPaths** | [**List<V1beta1AllowedHostPath>**](V1beta1AllowedHostPath.md) | allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used. | [optional] -**allowedProcMountTypes** | **List<String>** | AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. | [optional] -**allowedUnsafeSysctls** | **List<String>** | allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. | [optional] -**defaultAddCapabilities** | **List<String>** | defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. | [optional] -**defaultAllowPrivilegeEscalation** | **Boolean** | defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. | [optional] -**forbiddenSysctls** | **List<String>** | forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. | [optional] -**fsGroup** | [**V1beta1FSGroupStrategyOptions**](V1beta1FSGroupStrategyOptions.md) | | -**hostIPC** | **Boolean** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] -**hostNetwork** | **Boolean** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] -**hostPID** | **Boolean** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] -**hostPorts** | [**List<V1beta1HostPortRange>**](V1beta1HostPortRange.md) | hostPorts determines which host port ranges are allowed to be exposed. | [optional] -**privileged** | **Boolean** | privileged determines if a pod can request to be run as privileged. | [optional] -**readOnlyRootFilesystem** | **Boolean** | readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] -**requiredDropCapabilities** | **List<String>** | requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] -**runAsGroup** | [**V1beta1RunAsGroupStrategyOptions**](V1beta1RunAsGroupStrategyOptions.md) | | [optional] -**runAsUser** | [**V1beta1RunAsUserStrategyOptions**](V1beta1RunAsUserStrategyOptions.md) | | -**runtimeClass** | [**V1beta1RuntimeClassStrategyOptions**](V1beta1RuntimeClassStrategyOptions.md) | | [optional] -**seLinux** | [**V1beta1SELinuxStrategyOptions**](V1beta1SELinuxStrategyOptions.md) | | -**supplementalGroups** | [**V1beta1SupplementalGroupsStrategyOptions**](V1beta1SupplementalGroupsStrategyOptions.md) | | -**volumes** | **List<String>** | volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. | [optional] - - - diff --git a/kubernetes/docs/V1beta1RunAsGroupStrategyOptions.md b/kubernetes/docs/V1beta1RunAsGroupStrategyOptions.md deleted file mode 100644 index ba16f58ff3..0000000000 --- a/kubernetes/docs/V1beta1RunAsGroupStrategyOptions.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1RunAsGroupStrategyOptions - -RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**List<V1beta1IDRange>**](V1beta1IDRange.md) | ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. | [optional] -**rule** | **String** | rule is the strategy that will dictate the allowable RunAsGroup values that may be set. | - - - diff --git a/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md deleted file mode 100644 index 1ba0a8a1be..0000000000 --- a/kubernetes/docs/V1beta1RunAsUserStrategyOptions.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1RunAsUserStrategyOptions - -RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**List<V1beta1IDRange>**](V1beta1IDRange.md) | ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. | [optional] -**rule** | **String** | rule is the strategy that will dictate the allowable RunAsUser values that may be set. | - - - diff --git a/kubernetes/docs/V1beta1RuntimeClass.md b/kubernetes/docs/V1beta1RuntimeClass.md deleted file mode 100644 index 641fe26b7c..0000000000 --- a/kubernetes/docs/V1beta1RuntimeClass.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# V1beta1RuntimeClass - -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 (currently) 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://git.k8s.io/enhancements/keps/sig-node/585-runtime-class -## 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] -**handler** | **String** | Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable. | -**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] -**overhead** | [**V1beta1Overhead**](V1beta1Overhead.md) | | [optional] -**scheduling** | [**V1beta1Scheduling**](V1beta1Scheduling.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1RuntimeClassList.md b/kubernetes/docs/V1beta1RuntimeClassList.md deleted file mode 100644 index 77a7e952f0..0000000000 --- a/kubernetes/docs/V1beta1RuntimeClassList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1RuntimeClassList - -RuntimeClassList is a list of RuntimeClass 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<V1beta1RuntimeClass>**](V1beta1RuntimeClass.md) | Items is a list of schema objects. | -**kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/V1beta1RuntimeClassStrategyOptions.md deleted file mode 100644 index ef801be6b8..0000000000 --- a/kubernetes/docs/V1beta1RuntimeClassStrategyOptions.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1RuntimeClassStrategyOptions - -RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowedRuntimeClassNames** | **List<String>** | allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. | -**defaultRuntimeClassName** | **String** | defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. | [optional] - - - diff --git a/kubernetes/docs/V1beta1SELinuxStrategyOptions.md b/kubernetes/docs/V1beta1SELinuxStrategyOptions.md deleted file mode 100644 index 3c24037e00..0000000000 --- a/kubernetes/docs/V1beta1SELinuxStrategyOptions.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1SELinuxStrategyOptions - -SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rule** | **String** | rule is the strategy that will dictate the allowable labels that may be set. | -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] - - - diff --git a/kubernetes/docs/V1beta1Scheduling.md b/kubernetes/docs/V1beta1Scheduling.md deleted file mode 100644 index 9d700c5a29..0000000000 --- a/kubernetes/docs/V1beta1Scheduling.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1Scheduling - -Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodeSelector** | **Map<String, String>** | nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. | [optional] -**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. | [optional] - - - diff --git a/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md deleted file mode 100644 index 066d5dc093..0000000000 --- a/kubernetes/docs/V1beta1SupplementalGroupsStrategyOptions.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1SupplementalGroupsStrategyOptions - -SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ranges** | [**List<V1beta1IDRange>**](V1beta1IDRange.md) | ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. | [optional] -**rule** | **String** | rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. | [optional] - - - diff --git a/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md b/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md index 5f9056cab8..dd461dbc24 100644 --- a/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md +++ b/kubernetes/docs/V1beta2LimitedPriorityLevelConfiguration.md @@ -2,7 +2,7 @@ # V1beta2LimitedPriorityLevelConfiguration -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? +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? ## Properties Name | Type | Description | Notes diff --git a/kubernetes/docs/V2MetricTarget.md b/kubernetes/docs/V2MetricTarget.md index bd76ad0282..cc49f96838 100644 --- a/kubernetes/docs/V2MetricTarget.md +++ b/kubernetes/docs/V2MetricTarget.md @@ -8,9 +8,9 @@ MetricTarget defines the target value, average value, or average utilization of Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **averageUtilization** | **Integer** | averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type | [optional] -**averageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**averageValue** | [**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] **type** | **String** | type represents whether the metric type is Utilization, Value, or AverageValue | -**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: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +**value** | [**Quantity**](Quantity.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/V2MetricValueStatus.md b/kubernetes/docs/V2MetricValueStatus.md index 7fdb8d6896..283fb30b6a 100644 --- a/kubernetes/docs/V2MetricValueStatus.md +++ b/kubernetes/docs/V2MetricValueStatus.md @@ -8,8 +8,8 @@ MetricValueStatus holds the current value for a metric Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **averageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**averageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**value** | [**Quantity**](Quantity.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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**averageValue** | [**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] +**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. | [optional] diff --git a/kubernetes/docs/V2beta1ContainerResourceMetricSource.md b/kubernetes/docs/V2beta1ContainerResourceMetricSource.md deleted file mode 100644 index 46fc29ba15..0000000000 --- a/kubernetes/docs/V2beta1ContainerResourceMetricSource.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V2beta1ContainerResourceMetricSource - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container** | **String** | container is the name of the container in the pods of the scaling target | -**name** | **String** | name is the name of the resource in question. | -**targetAverageUtilization** | **Integer** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**targetAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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/V2beta1ContainerResourceMetricStatus.md b/kubernetes/docs/V2beta1ContainerResourceMetricStatus.md deleted file mode 100644 index 4d8d465d84..0000000000 --- a/kubernetes/docs/V2beta1ContainerResourceMetricStatus.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V2beta1ContainerResourceMetricStatus - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**container** | **String** | container is the name of the container in the pods of the scaling target | -**currentAverageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] -**currentAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | -**name** | **String** | name is the name of the resource in question. | - - - diff --git a/kubernetes/docs/V2beta1CrossVersionObjectReference.md b/kubernetes/docs/V2beta1CrossVersionObjectReference.md deleted file mode 100644 index 140042fea8..0000000000 --- a/kubernetes/docs/V2beta1CrossVersionObjectReference.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V2beta1CrossVersionObjectReference - -CrossVersionObjectReference contains enough information to let you identify the referred resource. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiVersion** | **String** | API version of the referent | [optional] -**kind** | **String** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | -**name** | **String** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | - - - diff --git a/kubernetes/docs/V2beta1ExternalMetricSource.md b/kubernetes/docs/V2beta1ExternalMetricSource.md deleted file mode 100644 index 48b7d82c07..0000000000 --- a/kubernetes/docs/V2beta1ExternalMetricSource.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V2beta1ExternalMetricSource - -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). Exactly one \"target\" type should be set. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metricName** | **String** | metricName is the name of the metric in question. | -**metricSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**targetAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] -**targetValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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/V2beta1ExternalMetricStatus.md b/kubernetes/docs/V2beta1ExternalMetricStatus.md deleted file mode 100644 index 2bbb1a9dd1..0000000000 --- a/kubernetes/docs/V2beta1ExternalMetricStatus.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V2beta1ExternalMetricStatus - -ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] -**currentValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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. | -**metricName** | **String** | metricName is the name of a metric used for autoscaling in metric system. | -**metricSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] - - - diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md deleted file mode 100644 index 9ba8df1b3d..0000000000 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V2beta1HorizontalPodAutoscaler - -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. -## 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** | [**V2beta1HorizontalPodAutoscalerSpec**](V2beta1HorizontalPodAutoscalerSpec.md) | | [optional] -**status** | [**V2beta1HorizontalPodAutoscalerStatus**](V2beta1HorizontalPodAutoscalerStatus.md) | | [optional] - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md deleted file mode 100644 index 37a1df8852..0000000000 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V2beta1HorizontalPodAutoscalerCondition - -HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastTransitionTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] -**message** | **String** | message is a human-readable explanation containing details about the transition | [optional] -**reason** | **String** | reason is the reason for the condition's last transition. | [optional] -**status** | **String** | status is the status of the condition (True, False, Unknown) | -**type** | **String** | type describes the current condition | - - - diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md deleted file mode 100644 index fbe3492173..0000000000 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V2beta1HorizontalPodAutoscalerList - -HorizontalPodAutoscaler is a list of horizontal pod autoscaler 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<V2beta1HorizontalPodAutoscaler>**](V2beta1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler 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/V2beta1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md deleted file mode 100644 index e09710ecd5..0000000000 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V2beta1HorizontalPodAutoscalerSpec - -HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | -**metrics** | [**List<V2beta1MetricSpec>**](V2beta1MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. | [optional] -**minReplicas** | **Integer** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. | [optional] -**scaleTargetRef** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | - - - diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md deleted file mode 100644 index f700338945..0000000000 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# V2beta1HorizontalPodAutoscalerStatus - -HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**conditions** | [**List<V2beta1HorizontalPodAutoscalerCondition>**](V2beta1HorizontalPodAutoscalerCondition.md) | conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. | [optional] -**currentMetrics** | [**List<V2beta1MetricStatus>**](V2beta1MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | [optional] -**currentReplicas** | **Integer** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | -**desiredReplicas** | **Integer** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**lastScaleTime** | [**OffsetDateTime**](OffsetDateTime.md) | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] -**observedGeneration** | **Long** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] - - - diff --git a/kubernetes/docs/V2beta1MetricSpec.md b/kubernetes/docs/V2beta1MetricSpec.md deleted file mode 100644 index 34f4a4b106..0000000000 --- a/kubernetes/docs/V2beta1MetricSpec.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# V2beta1MetricSpec - -MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerResource** | [**V2beta1ContainerResourceMetricSource**](V2beta1ContainerResourceMetricSource.md) | | [optional] -**external** | [**V2beta1ExternalMetricSource**](V2beta1ExternalMetricSource.md) | | [optional] -**_object** | [**V2beta1ObjectMetricSource**](V2beta1ObjectMetricSource.md) | | [optional] -**pods** | [**V2beta1PodsMetricSource**](V2beta1PodsMetricSource.md) | | [optional] -**resource** | [**V2beta1ResourceMetricSource**](V2beta1ResourceMetricSource.md) | | [optional] -**type** | **String** | type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled | - - - diff --git a/kubernetes/docs/V2beta1MetricStatus.md b/kubernetes/docs/V2beta1MetricStatus.md deleted file mode 100644 index 70b9746a8a..0000000000 --- a/kubernetes/docs/V2beta1MetricStatus.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# V2beta1MetricStatus - -MetricStatus describes the last-read state of a single metric. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**containerResource** | [**V2beta1ContainerResourceMetricStatus**](V2beta1ContainerResourceMetricStatus.md) | | [optional] -**external** | [**V2beta1ExternalMetricStatus**](V2beta1ExternalMetricStatus.md) | | [optional] -**_object** | [**V2beta1ObjectMetricStatus**](V2beta1ObjectMetricStatus.md) | | [optional] -**pods** | [**V2beta1PodsMetricStatus**](V2beta1PodsMetricStatus.md) | | [optional] -**resource** | [**V2beta1ResourceMetricStatus**](V2beta1ResourceMetricStatus.md) | | [optional] -**type** | **String** | type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled | - - - diff --git a/kubernetes/docs/V2beta1ObjectMetricSource.md b/kubernetes/docs/V2beta1ObjectMetricSource.md deleted file mode 100644 index fe5f8af04c..0000000000 --- a/kubernetes/docs/V2beta1ObjectMetricSource.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V2beta1ObjectMetricSource - -ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**averageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] -**metricName** | **String** | metricName is the name of the metric in question. | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | -**targetValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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/V2beta1ObjectMetricStatus.md b/kubernetes/docs/V2beta1ObjectMetricStatus.md deleted file mode 100644 index a43bf106dd..0000000000 --- a/kubernetes/docs/V2beta1ObjectMetricStatus.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V2beta1ObjectMetricStatus - -ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**averageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] -**currentValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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. | -**metricName** | **String** | metricName is the name of the metric in question. | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | - - - diff --git a/kubernetes/docs/V2beta1PodsMetricSource.md b/kubernetes/docs/V2beta1PodsMetricSource.md deleted file mode 100644 index 7daf6b1f90..0000000000 --- a/kubernetes/docs/V2beta1PodsMetricSource.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V2beta1PodsMetricSource - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metricName** | **String** | metricName is the name of the metric in question | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] -**targetAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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/V2beta1PodsMetricStatus.md b/kubernetes/docs/V2beta1PodsMetricStatus.md deleted file mode 100644 index e9a3a207cf..0000000000 --- a/kubernetes/docs/V2beta1PodsMetricStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V2beta1PodsMetricStatus - -PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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. | -**metricName** | **String** | metricName is the name of the metric in question | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] - - - diff --git a/kubernetes/docs/V2beta1ResourceMetricSource.md b/kubernetes/docs/V2beta1ResourceMetricSource.md deleted file mode 100644 index adfb7a0ee4..0000000000 --- a/kubernetes/docs/V2beta1ResourceMetricSource.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V2beta1ResourceMetricSource - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name is the name of the resource in question. | -**targetAverageUtilization** | **Integer** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**targetAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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/V2beta1ResourceMetricStatus.md b/kubernetes/docs/V2beta1ResourceMetricStatus.md deleted file mode 100644 index 03c6c891b5..0000000000 --- a/kubernetes/docs/V2beta1ResourceMetricStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V2beta1ResourceMetricStatus - -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. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currentAverageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] -**currentAverageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | -**name** | **String** | name is the name of the resource in question. | - - - diff --git a/kubernetes/docs/V2beta2MetricTarget.md b/kubernetes/docs/V2beta2MetricTarget.md index 4daafe2a03..02c0a05e42 100644 --- a/kubernetes/docs/V2beta2MetricTarget.md +++ b/kubernetes/docs/V2beta2MetricTarget.md @@ -8,9 +8,9 @@ MetricTarget defines the target value, average value, or average utilization of Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **averageUtilization** | **Integer** | averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type | [optional] -**averageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**averageValue** | [**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] **type** | **String** | type represents whether the metric type is Utilization, Value, or AverageValue | -**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: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +**value** | [**Quantity**](Quantity.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/V2beta2MetricValueStatus.md b/kubernetes/docs/V2beta2MetricValueStatus.md index 29c1a6cb41..4fce1b540f 100644 --- a/kubernetes/docs/V2beta2MetricValueStatus.md +++ b/kubernetes/docs/V2beta2MetricValueStatus.md @@ -8,8 +8,8 @@ MetricValueStatus holds the current value for a metric Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **averageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**averageValue** | [**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: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] -**value** | [**Quantity**](Quantity.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: a. No precision is lost b. No fractional digits will be emitted c. 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] +**averageValue** | [**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] +**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. | [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 692ce1c1dc..a7a22a24a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -17,7 +17,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[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 6250b33bb2..a6a1adf220 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[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 e40295be73..bae06c68e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[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 2c6b14c860..3ac6d24ddb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[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/AutoscalingV2beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta1Api.java deleted file mode 100644 index 6a1bc7c587..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2beta1Api.java +++ /dev/null @@ -1,4026 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 com.google.gson.reflect.TypeToken; -import io.kubernetes.client.custom.V1Patch; -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.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscaler; -import io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerList; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class AutoscalingV2beta1Api { - private ApiClient localVarApiClient; - - public AutoscalingV2beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public AutoscalingV2beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createNamespacedHorizontalPodAutoscaler - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedHorizontalPodAutoscalerCall( - String namespace, - V2beta1HorizontalPodAutoscaler 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers" - .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" - }; - 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, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall( - String namespace, - V2beta1HorizontalPodAutoscaler 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 createNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - createNamespacedHorizontalPodAutoscalerCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * create a HorizontalPodAutoscaler - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler( - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - createNamespacedHorizontalPodAutoscalerWithHttpInfo( - namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * create a HorizontalPodAutoscaler - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V2beta1HorizontalPodAutoscaler> - * @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 - createNamespacedHorizontalPodAutoscalerWithHttpInfo( - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - createNamespacedHorizontalPodAutoscalerValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) create a HorizontalPodAutoscaler - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedHorizontalPodAutoscalerAsync( - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createNamespacedHorizontalPodAutoscalerValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedHorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedHorizontalPodAutoscalerCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers" - .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 (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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - 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 deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - deleteCollectionNamespacedHorizontalPodAutoscalerCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - return localVarCall; - } - - /** - * delete collection of HorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedHorizontalPodAutoscaler( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); - return localVarResp.getData(); - } - - /** - * delete collection of HorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete collection of HorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedHorizontalPodAutoscalerAsync( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedHorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedHorizontalPodAutoscalerCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - 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 deleteNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - deleteNamespacedHorizontalPodAutoscalerCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - return localVarCall; - } - - /** - * delete a HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedHorizontalPodAutoscaler( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteNamespacedHorizontalPodAutoscalerWithHttpInfo( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body); - return localVarResp.getData(); - } - - /** - * delete a HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedHorizontalPodAutoscalerWithHttpInfo( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete a HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedHorizontalPodAutoscalerAsync( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - 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/autoscaling/v2beta1/"; - - 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" - }; - 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 listHorizontalPodAutoscalerForAllNamespaces - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listHorizontalPodAutoscalerForAllNamespacesCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/autoscaling/v2beta1/horizontalpodautoscalers"; - - 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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listHorizontalPodAutoscalerForAllNamespacesCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 V2beta1HorizontalPodAutoscalerList - * @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 V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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<V2beta1HorizontalPodAutoscalerList> - * @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 - listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind HorizontalPodAutoscaler - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listHorizontalPodAutoscalerForAllNamespacesAsync( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedHorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedHorizontalPodAutoscalerCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers" - .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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listNamespacedHorizontalPodAutoscalerValidateBeforeCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - listNamespacedHorizontalPodAutoscalerCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 V2beta1HorizontalPodAutoscalerList - * @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 V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listNamespacedHorizontalPodAutoscalerWithHttpInfo( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind HorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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<V2beta1HorizontalPodAutoscalerList> - * @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 - listNamespacedHorizontalPodAutoscalerWithHttpInfo( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listNamespacedHorizontalPodAutoscalerValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind HorizontalPodAutoscaler - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedHorizontalPodAutoscalerAsync( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listNamespacedHorizontalPodAutoscalerValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedHorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedHorizontalPodAutoscalerCall( - 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedHorizontalPodAutoscalerValidateBeforeCall( - 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 patchNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedHorizontalPodAutoscalerCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedHorizontalPodAutoscalerWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V2beta1HorizontalPodAutoscaler> - * @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 - patchNamespacedHorizontalPodAutoscalerWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedHorizontalPodAutoscalerValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedHorizontalPodAutoscalerAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedHorizontalPodAutoscalerValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedHorizontalPodAutoscalerStatus - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedHorizontalPodAutoscalerStatusCall( - 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - 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 patchNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedHorizontalPodAutoscalerStatusCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V2beta1HorizontalPodAutoscaler> - * @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 - patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedHorizontalPodAutoscalerStatusAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedHorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (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 readNamespacedHorizontalPodAutoscalerCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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" - }; - 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 readNamespacedHorizontalPodAutoscalerValidateBeforeCall( - 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 readNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @return V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler( - String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = - readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @return ApiResponse<V2beta1HorizontalPodAutoscaler> - * @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 - readNamespacedHorizontalPodAutoscalerWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (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 readNamespacedHorizontalPodAutoscalerAsync( - String name, - String namespace, - String pretty, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedHorizontalPodAutoscalerStatus - * - * @param name name of the HorizontalPodAutoscaler (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. (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 readNamespacedHorizontalPodAutoscalerStatusCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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" - }; - 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 readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - 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 readNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - okhttp3.Call localVarCall = - readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @return V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus( - String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = - readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @return ApiResponse<V2beta1HorizontalPodAutoscaler> - * @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 - readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (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 readNamespacedHorizontalPodAutoscalerStatusAsync( - String name, - String namespace, - String pretty, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedHorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedHorizontalPodAutoscalerCall( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler 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 replaceNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedHorizontalPodAutoscalerCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedHorizontalPodAutoscalerWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V2beta1HorizontalPodAutoscaler> - * @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 - replaceNamespacedHorizontalPodAutoscalerWithHttpInfo( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedHorizontalPodAutoscalerAsync( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedHorizontalPodAutoscalerStatus - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedHorizontalPodAutoscalerStatusCall( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler 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/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler 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 replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedHorizontalPodAutoscalerStatusCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V2beta1HorizontalPodAutoscaler - * @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 V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V2beta1HorizontalPodAutoscaler> - * @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 - replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace status of the specified HorizontalPodAutoscaler - * - * @param name name of the HorizontalPodAutoscaler (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedHorizontalPodAutoscalerStatusAsync( - String name, - String namespace, - V2beta1HorizontalPodAutoscaler body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall( - 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/BatchV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1beta1Api.java deleted file mode 100644 index 2b7cd51e4d..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1beta1Api.java +++ /dev/null @@ -1,4007 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 com.google.gson.reflect.TypeToken; -import io.kubernetes.client.custom.V1Patch; -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.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta1CronJob; -import io.kubernetes.client.openapi.models.V1beta1CronJobList; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class BatchV1beta1Api { - private ApiClient localVarApiClient; - - public BatchV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public BatchV1beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createNamespacedCronJob - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedCronJobCall( - String namespace, - V1beta1CronJob 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/batch/v1beta1/namespaces/{namespace}/cronjobs" - .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" - }; - 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, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedCronJobValidateBeforeCall( - String namespace, - V1beta1CronJob 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 createNamespacedCronJob(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling createNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = - createNamespacedCronJobCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * create a CronJob - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1CronJob - * @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 V1beta1CronJob createNamespacedCronJob( - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - createNamespacedCronJobWithHttpInfo( - namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * create a CronJob - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1CronJob> - * @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 createNamespacedCronJobWithHttpInfo( - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - createNamespacedCronJobValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) create a CronJob - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedCronJobAsync( - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createNamespacedCronJobValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedCronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedCronJobCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs" - .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 (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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - 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 deleteCollectionNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = - deleteCollectionNamespacedCronJobCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - return localVarCall; - } - - /** - * delete collection of CronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedCronJob( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteCollectionNamespacedCronJobWithHttpInfo( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); - return localVarResp.getData(); - } - - /** - * delete collection of CronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedCronJobWithHttpInfo( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteCollectionNamespacedCronJobValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete collection of CronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedCronJobAsync( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionNamespacedCronJobValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedCronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedCronJobCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - 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 deleteNamespacedCronJob(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling deleteNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = - deleteNamespacedCronJobCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - return localVarCall; - } - - /** - * delete a CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedCronJob( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteNamespacedCronJobWithHttpInfo( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body); - return localVarResp.getData(); - } - - /** - * delete a CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedCronJobWithHttpInfo( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteNamespacedCronJobValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete a CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedCronJobAsync( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteNamespacedCronJobValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - 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/batch/v1beta1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - 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 listCronJobForAllNamespaces - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listCronJobForAllNamespacesCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/batch/v1beta1/cronjobs"; - - 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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listCronJobForAllNamespacesValidateBeforeCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listCronJobForAllNamespacesCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind CronJob - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 V1beta1CronJobList - * @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 V1beta1CronJobList listCronJobForAllNamespaces( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listCronJobForAllNamespacesWithHttpInfo( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind CronJob - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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<V1beta1CronJobList> - * @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 listCronJobForAllNamespacesWithHttpInfo( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listCronJobForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind CronJob - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listCronJobForAllNamespacesAsync( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listCronJobForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedCronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedCronJobCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs" - .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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listNamespacedCronJobValidateBeforeCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling listNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = - listNamespacedCronJobCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind CronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 V1beta1CronJobList - * @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 V1beta1CronJobList listNamespacedCronJob( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listNamespacedCronJobWithHttpInfo( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind CronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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<V1beta1CronJobList> - * @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 listNamespacedCronJobWithHttpInfo( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listNamespacedCronJobValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind CronJob - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedCronJobAsync( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listNamespacedCronJobValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedCronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedCronJobCall( - 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/batch/v1beta1/namespaces/{namespace}/cronjobs/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedCronJobValidateBeforeCall( - 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 patchNamespacedCronJob(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedCronJob(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedCronJobCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1CronJob - * @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 V1beta1CronJob patchNamespacedCronJob( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedCronJobWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1CronJob> - * @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 patchNamespacedCronJobWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedCronJobValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedCronJobAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedCronJobValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedCronJobStatus - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedCronJobStatusCall( - 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/batch/v1beta1/namespaces/{namespace}/cronjobs/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedCronJobStatusValidateBeforeCall( - 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 patchNamespacedCronJobStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedCronJobStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedCronJobStatus(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedCronJobStatusCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1CronJob - * @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 V1beta1CronJob patchNamespacedCronJobStatus( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedCronJobStatusWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1CronJob> - * @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 patchNamespacedCronJobStatusWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedCronJobStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedCronJobStatusAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedCronJobStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedCronJob - * - * @param name name of the CronJob (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. (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 readNamespacedCronJobCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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" - }; - 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 readNamespacedCronJobValidateBeforeCall( - 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 readNamespacedCronJob(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = readNamespacedCronJobCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @return V1beta1CronJob - * @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 V1beta1CronJob readNamespacedCronJob(String name, String namespace, String pretty) - throws ApiException { - ApiResponse localVarResp = - readNamespacedCronJobWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @return ApiResponse<V1beta1CronJob> - * @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 readNamespacedCronJobWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read the specified CronJob - * - * @param name name of the CronJob (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. (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 readNamespacedCronJobAsync( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedCronJobStatus - * - * @param name name of the CronJob (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. (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 readNamespacedCronJobStatusCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{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" - }; - 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 readNamespacedCronJobStatusValidateBeforeCall( - 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 readNamespacedCronJobStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedCronJobStatus(Async)"); - } - - okhttp3.Call localVarCall = readNamespacedCronJobStatusCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @return V1beta1CronJob - * @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 V1beta1CronJob readNamespacedCronJobStatus(String name, String namespace, String pretty) - throws ApiException { - ApiResponse localVarResp = - readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @return ApiResponse<V1beta1CronJob> - * @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 readNamespacedCronJobStatusWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read status of the specified CronJob - * - * @param name name of the CronJob (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. (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 readNamespacedCronJobStatusAsync( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedCronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedCronJobCall( - String name, - String namespace, - V1beta1CronJob 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/batch/v1beta1/namespaces/{namespace}/cronjobs/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall( - String name, - String namespace, - V1beta1CronJob 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 replaceNamespacedCronJob(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedCronJob(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedCronJob(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedCronJobCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1CronJob - * @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 V1beta1CronJob replaceNamespacedCronJob( - String name, - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedCronJobWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1CronJob> - * @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 replaceNamespacedCronJobWithHttpInfo( - String name, - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedCronJobValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedCronJobAsync( - String name, - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedCronJobValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedCronJobStatus - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedCronJobStatusCall( - String name, - String namespace, - V1beta1CronJob 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/batch/v1beta1/namespaces/{namespace}/cronjobs/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall( - String name, - String namespace, - V1beta1CronJob 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 replaceNamespacedCronJobStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedCronJobStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedCronJobStatus(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedCronJobStatusCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1CronJob - * @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 V1beta1CronJob replaceNamespacedCronJobStatus( - String name, - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedCronJobStatusWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1CronJob> - * @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 replaceNamespacedCronJobStatusWithHttpInfo( - String name, - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedCronJobStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace status of the specified CronJob - * - * @param name name of the CronJob (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedCronJobStatusAsync( - String name, - String namespace, - V1beta1CronJob body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedCronJobStatusValidateBeforeCall( - 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/DiscoveryV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1beta1Api.java deleted file mode 100644 index 0d0e728d34..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1beta1Api.java +++ /dev/null @@ -1,3198 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 com.google.gson.reflect.TypeToken; -import io.kubernetes.client.custom.V1Patch; -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.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta1EndpointSlice; -import io.kubernetes.client.openapi.models.V1beta1EndpointSliceList; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class DiscoveryV1beta1Api { - private ApiClient localVarApiClient; - - public DiscoveryV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public DiscoveryV1beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createNamespacedEndpointSlice - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedEndpointSliceCall( - String namespace, - V1beta1EndpointSlice 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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices" - .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" - }; - 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, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedEndpointSliceValidateBeforeCall( - String namespace, - V1beta1EndpointSlice 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 createNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling createNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = - createNamespacedEndpointSliceCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * create an EndpointSlice - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1EndpointSlice - * @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 V1beta1EndpointSlice createNamespacedEndpointSlice( - String namespace, - V1beta1EndpointSlice body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - createNamespacedEndpointSliceWithHttpInfo( - namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * create an EndpointSlice - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1EndpointSlice> - * @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 createNamespacedEndpointSliceWithHttpInfo( - String namespace, - V1beta1EndpointSlice body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - createNamespacedEndpointSliceValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) create an EndpointSlice - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedEndpointSliceAsync( - String namespace, - V1beta1EndpointSlice body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createNamespacedEndpointSliceValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedEndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEndpointSliceCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices" - .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 (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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - 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 deleteCollectionNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = - deleteCollectionNamespacedEndpointSliceCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - return localVarCall; - } - - /** - * delete collection of EndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEndpointSlice( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteCollectionNamespacedEndpointSliceWithHttpInfo( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); - return localVarResp.getData(); - } - - /** - * delete collection of EndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEndpointSliceWithHttpInfo( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteCollectionNamespacedEndpointSliceValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete collection of EndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEndpointSliceAsync( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionNamespacedEndpointSliceValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedEndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEndpointSliceCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEndpointSliceValidateBeforeCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - 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 deleteNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling deleteNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = - deleteNamespacedEndpointSliceCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - return localVarCall; - } - - /** - * delete an EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEndpointSlice( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteNamespacedEndpointSliceWithHttpInfo( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body); - return localVarResp.getData(); - } - - /** - * delete an EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEndpointSliceWithHttpInfo( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteNamespacedEndpointSliceValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete an EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEndpointSliceAsync( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteNamespacedEndpointSliceValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - 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/discovery.k8s.io/v1beta1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - 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 listEndpointSliceForAllNamespaces - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listEndpointSliceForAllNamespacesCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/discovery.k8s.io/v1beta1/endpointslices"; - - 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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listEndpointSliceForAllNamespacesValidateBeforeCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listEndpointSliceForAllNamespacesCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind EndpointSlice - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 V1beta1EndpointSliceList - * @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 V1beta1EndpointSliceList listEndpointSliceForAllNamespaces( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listEndpointSliceForAllNamespacesWithHttpInfo( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind EndpointSlice - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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<V1beta1EndpointSliceList> - * @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 listEndpointSliceForAllNamespacesWithHttpInfo( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listEndpointSliceForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind EndpointSlice - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listEndpointSliceForAllNamespacesAsync( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listEndpointSliceForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedEndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedEndpointSliceCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices" - .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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listNamespacedEndpointSliceValidateBeforeCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling listNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = - listNamespacedEndpointSliceCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind EndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 V1beta1EndpointSliceList - * @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 V1beta1EndpointSliceList listNamespacedEndpointSlice( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listNamespacedEndpointSliceWithHttpInfo( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind EndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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<V1beta1EndpointSliceList> - * @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 listNamespacedEndpointSliceWithHttpInfo( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listNamespacedEndpointSliceValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind EndpointSlice - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedEndpointSliceAsync( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listNamespacedEndpointSliceValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedEndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedEndpointSliceCall( - 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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedEndpointSliceValidateBeforeCall( - 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 patchNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedEndpointSliceCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1EndpointSlice - * @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 V1beta1EndpointSlice patchNamespacedEndpointSlice( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedEndpointSliceWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1EndpointSlice> - * @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 patchNamespacedEndpointSliceWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedEndpointSliceValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedEndpointSliceAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedEndpointSliceValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedEndpointSlice - * - * @param name name of the EndpointSlice (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. (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 readNamespacedEndpointSliceCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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" - }; - 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 readNamespacedEndpointSliceValidateBeforeCall( - 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 readNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = readNamespacedEndpointSliceCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @return V1beta1EndpointSlice - * @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 V1beta1EndpointSlice readNamespacedEndpointSlice( - String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = - readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @return ApiResponse<V1beta1EndpointSlice> - * @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 readNamespacedEndpointSliceWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (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 readNamespacedEndpointSliceAsync( - String name, - String namespace, - String pretty, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedEndpointSliceValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedEndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedEndpointSliceCall( - String name, - String namespace, - V1beta1EndpointSlice 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/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedEndpointSliceValidateBeforeCall( - String name, - String namespace, - V1beta1EndpointSlice 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 replaceNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedEndpointSlice(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedEndpointSlice(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedEndpointSliceCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1EndpointSlice - * @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 V1beta1EndpointSlice replaceNamespacedEndpointSlice( - String name, - String namespace, - V1beta1EndpointSlice body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedEndpointSliceWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1EndpointSlice> - * @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 replaceNamespacedEndpointSliceWithHttpInfo( - String name, - String namespace, - V1beta1EndpointSlice body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedEndpointSliceValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace the specified EndpointSlice - * - * @param name name of the EndpointSlice (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedEndpointSliceAsync( - String name, - String namespace, - V1beta1EndpointSlice body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedEndpointSliceValidateBeforeCall( - 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/EventsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1beta1Api.java deleted file mode 100644 index 9e6d538963..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1beta1Api.java +++ /dev/null @@ -1,3195 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 com.google.gson.reflect.TypeToken; -import io.kubernetes.client.custom.V1Patch; -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.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta1Event; -import io.kubernetes.client.openapi.models.V1beta1EventList; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class EventsV1beta1Api { - private ApiClient localVarApiClient; - - public EventsV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public EventsV1beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createNamespacedEvent - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedEventCall( - String namespace, - V1beta1Event 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/events.k8s.io/v1beta1/namespaces/{namespace}/events" - .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" - }; - 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, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedEventValidateBeforeCall( - String namespace, - V1beta1Event 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 createNamespacedEvent(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling createNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = - createNamespacedEventCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * create an Event - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1Event - * @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 V1beta1Event createNamespacedEvent( - String namespace, - V1beta1Event body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - createNamespacedEventWithHttpInfo( - namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * create an Event - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1Event> - * @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 createNamespacedEventWithHttpInfo( - String namespace, - V1beta1Event body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - createNamespacedEventValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) create an Event - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedEventAsync( - String namespace, - V1beta1Event body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createNamespacedEventValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedEvent - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEventCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events" - .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 (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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - 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 deleteCollectionNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = - deleteCollectionNamespacedEventCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - return localVarCall; - } - - /** - * delete collection of Event - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEvent( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteCollectionNamespacedEventWithHttpInfo( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); - return localVarResp.getData(); - } - - /** - * delete collection of Event - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEventWithHttpInfo( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteCollectionNamespacedEventValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete collection of Event - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedEventAsync( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionNamespacedEventValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedEvent - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEventCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedEventValidateBeforeCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - 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 deleteNamespacedEvent(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling deleteNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = - deleteNamespacedEventCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - return localVarCall; - } - - /** - * delete an Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEvent( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteNamespacedEventWithHttpInfo( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body); - return localVarResp.getData(); - } - - /** - * delete an Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEventWithHttpInfo( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteNamespacedEventValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete an Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedEventAsync( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteNamespacedEventValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - 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/events.k8s.io/v1beta1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - 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 listEventForAllNamespaces - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listEventForAllNamespacesCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/events.k8s.io/v1beta1/events"; - - 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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listEventForAllNamespacesValidateBeforeCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listEventForAllNamespacesCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind Event - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 V1beta1EventList - * @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 V1beta1EventList listEventForAllNamespaces( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listEventForAllNamespacesWithHttpInfo( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind Event - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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<V1beta1EventList> - * @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 listEventForAllNamespacesWithHttpInfo( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listEventForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind Event - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listEventForAllNamespacesAsync( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listEventForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listNamespacedEvent - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedEventCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events" - .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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listNamespacedEventValidateBeforeCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = - listNamespacedEventCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind Event - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 V1beta1EventList - * @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 V1beta1EventList listNamespacedEvent( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listNamespacedEventWithHttpInfo( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind Event - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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<V1beta1EventList> - * @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 listNamespacedEventWithHttpInfo( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listNamespacedEventValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind Event - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedEventAsync( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listNamespacedEventValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedEvent - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedEventCall( - 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/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedEventValidateBeforeCall( - 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 patchNamespacedEvent(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedEvent(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedEventCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update the specified Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1Event - * @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 V1beta1Event patchNamespacedEvent( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedEventWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update the specified Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1Event> - * @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 patchNamespacedEventWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedEventValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update the specified Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedEventAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedEventValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedEvent - * - * @param name name of the Event (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. (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 readNamespacedEventCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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" - }; - 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 readNamespacedEventValidateBeforeCall( - 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 readNamespacedEvent(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = readNamespacedEventCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read the specified Event - * - * @param name name of the Event (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. (optional) - * @return V1beta1Event - * @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 V1beta1Event readNamespacedEvent(String name, String namespace, String pretty) - throws ApiException { - ApiResponse localVarResp = - readNamespacedEventWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read the specified Event - * - * @param name name of the Event (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. (optional) - * @return ApiResponse<V1beta1Event> - * @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 readNamespacedEventWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedEventValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read the specified Event - * - * @param name name of the Event (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. (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 readNamespacedEventAsync( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedEventValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedEvent - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedEventCall( - String name, - String namespace, - V1beta1Event 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/events.k8s.io/v1beta1/namespaces/{namespace}/events/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedEventValidateBeforeCall( - String name, - String namespace, - V1beta1Event 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 replaceNamespacedEvent(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedEvent(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedEvent(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedEventCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace the specified Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1Event - * @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 V1beta1Event replaceNamespacedEvent( - String name, - String namespace, - V1beta1Event body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedEventWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace the specified Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1Event> - * @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 replaceNamespacedEventWithHttpInfo( - String name, - String namespace, - V1beta1Event body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedEventValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace the specified Event - * - * @param name name of the Event (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedEventAsync( - String name, - String namespace, - V1beta1Event body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedEventValidateBeforeCall( - 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/NodeV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java similarity index 93% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1beta1Api.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java index 28b1077a5b..64679a0d23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java @@ -23,22 +23,22 @@ import io.kubernetes.client.openapi.models.V1APIResourceList; import io.kubernetes.client.openapi.models.V1DeleteOptions; import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta1RuntimeClass; -import io.kubernetes.client.openapi.models.V1beta1RuntimeClassList; +import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDR; +import io.kubernetes.client.openapi.models.V1alpha1ClusterCIDRList; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -public class NodeV1beta1Api { +public class NetworkingV1alpha1Api { private ApiClient localVarApiClient; - public NodeV1beta1Api() { + public NetworkingV1alpha1Api() { this(Configuration.getDefaultApiClient()); } - public NodeV1beta1Api(ApiClient apiClient) { + public NetworkingV1alpha1Api(ApiClient apiClient) { this.localVarApiClient = apiClient; } @@ -51,7 +51,7 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for createRuntimeClass + * Build call for createClusterCIDR * * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) @@ -88,8 +88,8 @@ public void setApiClient(ApiClient apiClient) { * 401 Unauthorized - * */ - public okhttp3.Call createRuntimeClassCall( - V1beta1RuntimeClass body, + public okhttp3.Call createClusterCIDRCall( + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, @@ -99,7 +99,7 @@ public okhttp3.Call createRuntimeClassCall( Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses"; + String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -152,8 +152,8 @@ public okhttp3.Call createRuntimeClassCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call createRuntimeClassValidateBeforeCall( - V1beta1RuntimeClass body, + private okhttp3.Call createClusterCIDRValidateBeforeCall( + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, @@ -164,16 +164,16 @@ private okhttp3.Call createRuntimeClassValidateBeforeCall( // verify the required parameter 'body' is set if (body == null) { throw new ApiException( - "Missing the required parameter 'body' when calling createRuntimeClass(Async)"); + "Missing the required parameter 'body' when calling createClusterCIDR(Async)"); } okhttp3.Call localVarCall = - createRuntimeClassCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + createClusterCIDRCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** - * create a RuntimeClass + * create a ClusterCIDR * * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) @@ -198,7 +198,7 @@ private okhttp3.Call createRuntimeClassValidateBeforeCall( * would be dropped from the object, or if any duplicate fields are present. The error * returned from the server will contain all unknown and duplicate fields encountered. * (optional) - * @return V1beta1RuntimeClass + * @return V1alpha1ClusterCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -210,20 +210,20 @@ private okhttp3.Call createRuntimeClassValidateBeforeCall( * 401 Unauthorized - * */ - public V1beta1RuntimeClass createRuntimeClass( - V1beta1RuntimeClass body, + public V1alpha1ClusterCIDR createClusterCIDR( + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = - createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + ApiResponse localVarResp = + createClusterCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * create a RuntimeClass + * create a ClusterCIDR * * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) @@ -248,7 +248,7 @@ public V1beta1RuntimeClass createRuntimeClass( * would be dropped from the 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<V1beta1RuntimeClass> + * @return ApiResponse<V1alpha1ClusterCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -260,22 +260,22 @@ public V1beta1RuntimeClass createRuntimeClass( * 401 Unauthorized - * */ - public ApiResponse createRuntimeClassWithHttpInfo( - V1beta1RuntimeClass body, + public ApiResponse createClusterCIDRWithHttpInfo( + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = - createRuntimeClassValidateBeforeCall( + createClusterCIDRValidateBeforeCall( body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) create a RuntimeClass + * (asynchronously) create a ClusterCIDR * * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) @@ -312,68 +312,34 @@ public ApiResponse createRuntimeClassWithHttpInfo( * 401 Unauthorized - * */ - public okhttp3.Call createRuntimeClassAsync( - V1beta1RuntimeClass body, + public okhttp3.Call createClusterCIDRAsync( + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, - final ApiCallback _callback) + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - createRuntimeClassValidateBeforeCall( + createClusterCIDRValidateBeforeCall( body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for deleteCollectionRuntimeClass + * Build call for deleteClusterCIDR * + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -385,17 +351,6 @@ public okhttp3.Call createRuntimeClassAsync( * 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 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 @@ -404,29 +359,26 @@ public okhttp3.Call createRuntimeClassAsync( * * * + * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionRuntimeClassCall( + public okhttp3.Call deleteClusterCIDRCall( + String name, String pretty, - String _continue, String dryRun, - String fieldSelector, Integer gracePeriodSeconds, - String labelSelector, - Integer limit, Boolean orphanDependents, String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses"; + String localVarPath = + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -434,31 +386,15 @@ public okhttp3.Call deleteCollectionRuntimeClassCall( 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 (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)); @@ -469,21 +405,6 @@ public okhttp3.Call deleteCollectionRuntimeClassCall( localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } - if (resourceVersion != null) { - localVarQueryParams.addAll( - localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll( - localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll( - localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -516,88 +437,48 @@ public okhttp3.Call deleteCollectionRuntimeClassCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall( + private okhttp3.Call deleteClusterCIDRValidateBeforeCall( + String name, String pretty, - String _continue, String dryRun, - String fieldSelector, Integer gracePeriodSeconds, - String labelSelector, - Integer limit, Boolean orphanDependents, String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, 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 deleteClusterCIDR(Async)"); + } + okhttp3.Call localVarCall = - deleteCollectionRuntimeClassCall( + deleteClusterCIDRCall( + name, pretty, - _continue, dryRun, - fieldSelector, gracePeriodSeconds, - labelSelector, - limit, orphanDependents, propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, body, _callback); return localVarCall; } /** - * delete collection of RuntimeClass + * delete a ClusterCIDR * + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -609,17 +490,6 @@ private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall( * 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 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 @@ -628,88 +498,37 @@ private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall( * * * + * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCollectionRuntimeClass( + public V1Status deleteClusterCIDR( + String name, String pretty, - String _continue, String dryRun, - String fieldSelector, Integer gracePeriodSeconds, - String labelSelector, - Integer limit, Boolean orphanDependents, String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = - deleteCollectionRuntimeClassWithHttpInfo( - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); + deleteClusterCIDRWithHttpInfo( + name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * delete collection of RuntimeClass + * delete a ClusterCIDR * + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -721,17 +540,6 @@ public V1Status deleteCollectionRuntimeClass( * 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 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 @@ -740,38 +548,27 @@ public V1Status deleteCollectionRuntimeClass( * * * + * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionRuntimeClassWithHttpInfo( + public ApiResponse deleteClusterCIDRWithHttpInfo( + String name, String pretty, - String _continue, String dryRun, - String fieldSelector, Integer gracePeriodSeconds, - String labelSelector, - Integer limit, Boolean orphanDependents, String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = - deleteCollectionRuntimeClassValidateBeforeCall( + deleteClusterCIDRValidateBeforeCall( + name, pretty, - _continue, dryRun, - fieldSelector, gracePeriodSeconds, - labelSelector, - limit, orphanDependents, propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); @@ -779,51 +576,17 @@ public ApiResponse deleteCollectionRuntimeClassWithHttpInfo( } /** - * (asynchronously) delete collection of RuntimeClass + * (asynchronously) delete a ClusterCIDR * + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -835,17 +598,6 @@ public ApiResponse deleteCollectionRuntimeClassWithHttpInfo( * 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 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 @@ -854,40 +606,29 @@ public ApiResponse deleteCollectionRuntimeClassWithHttpInfo( * * * + * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteCollectionRuntimeClassAsync( + public okhttp3.Call deleteClusterCIDRAsync( + String name, String pretty, - String _continue, String dryRun, - String fieldSelector, Integer gracePeriodSeconds, - String labelSelector, - Integer limit, Boolean orphanDependents, String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - deleteCollectionRuntimeClassValidateBeforeCall( + deleteClusterCIDRValidateBeforeCall( + name, pretty, - _continue, dryRun, - fieldSelector, gracePeriodSeconds, - labelSelector, - limit, orphanDependents, propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); @@ -895,17 +636,51 @@ public okhttp3.Call deleteCollectionRuntimeClassAsync( return localVarCall; } /** - * Build call for deleteRuntimeClass + * Build call for deleteCollectionClusterCIDR * - * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -917,6 +692,17 @@ public okhttp3.Call deleteCollectionRuntimeClassAsync( * 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 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 @@ -925,26 +711,29 @@ public okhttp3.Call deleteCollectionRuntimeClassAsync( * * * - * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteRuntimeClassCall( - String name, + public okhttp3.Call deleteCollectionClusterCIDRCall( String pretty, + String _continue, String dryRun, + String fieldSelector, Integer gracePeriodSeconds, + String labelSelector, + Integer limit, Boolean orphanDependents, String propagationPolicy, + String resourceVersion, + String resourceVersionMatch, + Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -952,15 +741,31 @@ public okhttp3.Call deleteRuntimeClassCall( 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 (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)); @@ -971,6 +776,21 @@ public okhttp3.Call deleteRuntimeClassCall( localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); @@ -1003,48 +823,88 @@ public okhttp3.Call deleteRuntimeClassCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteRuntimeClassValidateBeforeCall( - String name, + private okhttp3.Call deleteCollectionClusterCIDRValidateBeforeCall( String pretty, + String _continue, String dryRun, + String fieldSelector, Integer gracePeriodSeconds, + String labelSelector, + Integer limit, Boolean orphanDependents, String propagationPolicy, + String resourceVersion, + String resourceVersionMatch, + Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException( - "Missing the required parameter 'name' when calling deleteRuntimeClass(Async)"); - } - okhttp3.Call localVarCall = - deleteRuntimeClassCall( - name, + deleteCollectionClusterCIDRCall( pretty, + _continue, dryRun, + fieldSelector, gracePeriodSeconds, + labelSelector, + limit, orphanDependents, propagationPolicy, + resourceVersion, + resourceVersionMatch, + timeoutSeconds, body, _callback); return localVarCall; } /** - * delete a RuntimeClass + * delete collection of ClusterCIDR * - * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -1056,6 +916,17 @@ private okhttp3.Call deleteRuntimeClassValidateBeforeCall( * 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 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 @@ -1064,37 +935,88 @@ private okhttp3.Call deleteRuntimeClassValidateBeforeCall( * * * - * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteRuntimeClass( - String name, + public V1Status deleteCollectionClusterCIDR( String pretty, + String _continue, String dryRun, + String fieldSelector, Integer gracePeriodSeconds, + String labelSelector, + Integer limit, Boolean orphanDependents, String propagationPolicy, + String resourceVersion, + String resourceVersionMatch, + Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { ApiResponse localVarResp = - deleteRuntimeClassWithHttpInfo( - name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + deleteCollectionClusterCIDRWithHttpInfo( + pretty, + _continue, + dryRun, + fieldSelector, + gracePeriodSeconds, + labelSelector, + limit, + orphanDependents, + propagationPolicy, + resourceVersion, + resourceVersionMatch, + timeoutSeconds, + body); return localVarResp.getData(); } /** - * delete a RuntimeClass + * delete collection of ClusterCIDR * - * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -1106,6 +1028,17 @@ public V1Status deleteRuntimeClass( * 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 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 @@ -1114,27 +1047,38 @@ public V1Status deleteRuntimeClass( * * * - * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteRuntimeClassWithHttpInfo( - String name, + public ApiResponse deleteCollectionClusterCIDRWithHttpInfo( String pretty, + String _continue, String dryRun, + String fieldSelector, Integer gracePeriodSeconds, + String labelSelector, + Integer limit, Boolean orphanDependents, String propagationPolicy, + String resourceVersion, + String resourceVersionMatch, + Integer timeoutSeconds, V1DeleteOptions body) throws ApiException { okhttp3.Call localVarCall = - deleteRuntimeClassValidateBeforeCall( - name, + deleteCollectionClusterCIDRValidateBeforeCall( pretty, + _continue, dryRun, + fieldSelector, gracePeriodSeconds, + labelSelector, + limit, orphanDependents, propagationPolicy, + resourceVersion, + resourceVersionMatch, + timeoutSeconds, body, null); Type localVarReturnType = new TypeToken() {}.getType(); @@ -1142,17 +1086,51 @@ public ApiResponse deleteRuntimeClassWithHttpInfo( } /** - * (asynchronously) delete a RuntimeClass + * (asynchronously) delete collection of ClusterCIDR * - * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (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 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 @@ -1164,6 +1142,17 @@ public ApiResponse deleteRuntimeClassWithHttpInfo( * 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 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 @@ -1172,29 +1161,40 @@ public ApiResponse deleteRuntimeClassWithHttpInfo( * * * - * * *
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public okhttp3.Call deleteRuntimeClassAsync( - String name, + public okhttp3.Call deleteCollectionClusterCIDRAsync( String pretty, + String _continue, String dryRun, + String fieldSelector, Integer gracePeriodSeconds, + String labelSelector, + Integer limit, Boolean orphanDependents, String propagationPolicy, + String resourceVersion, + String resourceVersionMatch, + Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - deleteRuntimeClassValidateBeforeCall( - name, + deleteCollectionClusterCIDRValidateBeforeCall( pretty, + _continue, dryRun, + fieldSelector, gracePeriodSeconds, + labelSelector, + limit, orphanDependents, propagationPolicy, + resourceVersion, + resourceVersionMatch, + timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken() {}.getType(); @@ -1218,7 +1218,7 @@ public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiE Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/node.k8s.io/v1beta1/"; + String localVarPath = "/apis/networking.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1320,7 +1320,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c return localVarCall; } /** - * Build call for listRuntimeClass + * Build call for listClusterCIDR * * @param pretty If 'true', then the output is pretty printed. (optional) * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type @@ -1386,7 +1386,7 @@ public okhttp3.Call getAPIResourcesAsync(final ApiCallback _c * 401 Unauthorized - * */ - public okhttp3.Call listRuntimeClassCall( + public okhttp3.Call listClusterCIDRCall( String pretty, Boolean allowWatchBookmarks, String _continue, @@ -1402,7 +1402,7 @@ public okhttp3.Call listRuntimeClassCall( Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses"; + String localVarPath = "/apis/networking.k8s.io/v1alpha1/clustercidrs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1486,7 +1486,7 @@ public okhttp3.Call listRuntimeClassCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call listRuntimeClassValidateBeforeCall( + private okhttp3.Call listClusterCIDRValidateBeforeCall( String pretty, Boolean allowWatchBookmarks, String _continue, @@ -1501,7 +1501,7 @@ private okhttp3.Call listRuntimeClassValidateBeforeCall( throws ApiException { okhttp3.Call localVarCall = - listRuntimeClassCall( + listClusterCIDRCall( pretty, allowWatchBookmarks, _continue, @@ -1517,7 +1517,7 @@ private okhttp3.Call listRuntimeClassValidateBeforeCall( } /** - * list or watch objects of kind RuntimeClass + * list or watch objects of kind ClusterCIDR * * @param pretty If 'true', then the output is pretty printed. (optional) * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type @@ -1573,7 +1573,7 @@ private okhttp3.Call listRuntimeClassValidateBeforeCall( * 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 V1beta1RuntimeClassList + * @return V1alpha1ClusterCIDRList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -1583,7 +1583,7 @@ private okhttp3.Call listRuntimeClassValidateBeforeCall( * 401 Unauthorized - * */ - public V1beta1RuntimeClassList listRuntimeClass( + public V1alpha1ClusterCIDRList listClusterCIDR( String pretty, Boolean allowWatchBookmarks, String _continue, @@ -1595,8 +1595,8 @@ public V1beta1RuntimeClassList listRuntimeClass( Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse localVarResp = - listRuntimeClassWithHttpInfo( + ApiResponse localVarResp = + listClusterCIDRWithHttpInfo( pretty, allowWatchBookmarks, _continue, @@ -1611,7 +1611,7 @@ public V1beta1RuntimeClassList listRuntimeClass( } /** - * list or watch objects of kind RuntimeClass + * list or watch objects of kind ClusterCIDR * * @param pretty If 'true', then the output is pretty printed. (optional) * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type @@ -1667,7 +1667,7 @@ public V1beta1RuntimeClassList listRuntimeClass( * 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<V1beta1RuntimeClassList> + * @return ApiResponse<V1alpha1ClusterCIDRList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -1677,7 +1677,7 @@ public V1beta1RuntimeClassList listRuntimeClass( * 401 Unauthorized - * */ - public ApiResponse listRuntimeClassWithHttpInfo( + public ApiResponse listClusterCIDRWithHttpInfo( String pretty, Boolean allowWatchBookmarks, String _continue, @@ -1690,7 +1690,7 @@ public ApiResponse listRuntimeClassWithHttpInfo( Boolean watch) throws ApiException { okhttp3.Call localVarCall = - listRuntimeClassValidateBeforeCall( + listClusterCIDRValidateBeforeCall( pretty, allowWatchBookmarks, _continue, @@ -1702,12 +1702,12 @@ public ApiResponse listRuntimeClassWithHttpInfo( timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) list or watch objects of kind RuntimeClass + * (asynchronously) list or watch objects of kind ClusterCIDR * * @param pretty If 'true', then the output is pretty printed. (optional) * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type @@ -1773,7 +1773,7 @@ public ApiResponse listRuntimeClassWithHttpInfo( * 401 Unauthorized - * */ - public okhttp3.Call listRuntimeClassAsync( + public okhttp3.Call listClusterCIDRAsync( String pretty, Boolean allowWatchBookmarks, String _continue, @@ -1784,11 +1784,11 @@ public okhttp3.Call listRuntimeClassAsync( String resourceVersionMatch, Integer timeoutSeconds, Boolean watch, - final ApiCallback _callback) + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - listRuntimeClassValidateBeforeCall( + listClusterCIDRValidateBeforeCall( pretty, allowWatchBookmarks, _continue, @@ -1800,14 +1800,14 @@ public okhttp3.Call listRuntimeClassAsync( timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for patchRuntimeClass + * Build call for patchClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -1847,7 +1847,7 @@ public okhttp3.Call listRuntimeClassAsync( * 401 Unauthorized - * */ - public okhttp3.Call patchRuntimeClassCall( + public okhttp3.Call patchClusterCIDRCall( String name, V1Patch body, String pretty, @@ -1861,7 +1861,7 @@ public okhttp3.Call patchRuntimeClassCall( // create path and map variables String localVarPath = - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1923,7 +1923,7 @@ public okhttp3.Call patchRuntimeClassCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call patchRuntimeClassValidateBeforeCall( + private okhttp3.Call patchClusterCIDRValidateBeforeCall( String name, V1Patch body, String pretty, @@ -1937,25 +1937,25 @@ private okhttp3.Call patchRuntimeClassValidateBeforeCall( // verify the required parameter 'name' is set if (name == null) { throw new ApiException( - "Missing the required parameter 'name' when calling patchRuntimeClass(Async)"); + "Missing the required parameter 'name' when calling patchClusterCIDR(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( - "Missing the required parameter 'body' when calling patchRuntimeClass(Async)"); + "Missing the required parameter 'body' when calling patchClusterCIDR(Async)"); } okhttp3.Call localVarCall = - patchRuntimeClassCall( + patchClusterCIDRCall( name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); return localVarCall; } /** - * partially update the specified RuntimeClass + * partially update the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -1984,7 +1984,7 @@ private okhttp3.Call patchRuntimeClassValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will * re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply * patch requests. (optional) - * @return V1beta1RuntimeClass + * @return V1alpha1ClusterCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -1995,7 +1995,7 @@ private okhttp3.Call patchRuntimeClassValidateBeforeCall( * 401 Unauthorized - * */ - public V1beta1RuntimeClass patchRuntimeClass( + public V1alpha1ClusterCIDR patchClusterCIDR( String name, V1Patch body, String pretty, @@ -2004,16 +2004,16 @@ public V1beta1RuntimeClass patchRuntimeClass( String fieldValidation, Boolean force) throws ApiException { - ApiResponse localVarResp = - patchRuntimeClassWithHttpInfo( + ApiResponse localVarResp = + patchClusterCIDRWithHttpInfo( name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * partially update the specified RuntimeClass + * partially update the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -2042,7 +2042,7 @@ public V1beta1RuntimeClass patchRuntimeClass( * @param force Force is going to \"force\" Apply requests. 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<V1beta1RuntimeClass> + * @return ApiResponse<V1alpha1ClusterCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -2053,7 +2053,7 @@ public V1beta1RuntimeClass patchRuntimeClass( * 401 Unauthorized - * */ - public ApiResponse patchRuntimeClassWithHttpInfo( + public ApiResponse patchClusterCIDRWithHttpInfo( String name, V1Patch body, String pretty, @@ -2063,16 +2063,16 @@ public ApiResponse patchRuntimeClassWithHttpInfo( Boolean force) throws ApiException { okhttp3.Call localVarCall = - patchRuntimeClassValidateBeforeCall( + patchClusterCIDRValidateBeforeCall( name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) partially update the specified RuntimeClass + * (asynchronously) partially update the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -2112,7 +2112,7 @@ public ApiResponse patchRuntimeClassWithHttpInfo( * 401 Unauthorized - * */ - public okhttp3.Call patchRuntimeClassAsync( + public okhttp3.Call patchClusterCIDRAsync( String name, V1Patch body, String pretty, @@ -2120,20 +2120,20 @@ public okhttp3.Call patchRuntimeClassAsync( String fieldManager, String fieldValidation, Boolean force, - final ApiCallback _callback) + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - patchRuntimeClassValidateBeforeCall( + patchClusterCIDRValidateBeforeCall( name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for readRuntimeClass + * Build call for readClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -2145,13 +2145,13 @@ public okhttp3.Call patchRuntimeClassAsync( * 401 Unauthorized - * */ - public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCallback _callback) + public okhttp3.Call readClusterCIDRCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2192,25 +2192,25 @@ public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCa } @SuppressWarnings("rawtypes") - private okhttp3.Call readRuntimeClassValidateBeforeCall( + private okhttp3.Call readClusterCIDRValidateBeforeCall( 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 readRuntimeClass(Async)"); + "Missing the required parameter 'name' when calling readClusterCIDR(Async)"); } - okhttp3.Call localVarCall = readRuntimeClassCall(name, pretty, _callback); + okhttp3.Call localVarCall = readClusterCIDRCall(name, pretty, _callback); return localVarCall; } /** - * read the specified RuntimeClass + * read the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta1RuntimeClass + * @return V1alpha1ClusterCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -2220,17 +2220,17 @@ private okhttp3.Call readRuntimeClassValidateBeforeCall( * 401 Unauthorized - * */ - public V1beta1RuntimeClass readRuntimeClass(String name, String pretty) throws ApiException { - ApiResponse localVarResp = readRuntimeClassWithHttpInfo(name, pretty); + public V1alpha1ClusterCIDR readClusterCIDR(String name, String pretty) throws ApiException { + ApiResponse localVarResp = readClusterCIDRWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * read the specified RuntimeClass + * read the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta1RuntimeClass> + * @return ApiResponse<V1alpha1ClusterCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -2240,17 +2240,17 @@ public V1beta1RuntimeClass readRuntimeClass(String name, String pretty) throws A * 401 Unauthorized - * */ - public ApiResponse readRuntimeClassWithHttpInfo(String name, String pretty) + public ApiResponse readClusterCIDRWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = readClusterCIDRValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) read the specified RuntimeClass + * (asynchronously) read the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -2262,19 +2262,19 @@ public ApiResponse readRuntimeClassWithHttpInfo(String name * 401 Unauthorized - * */ - public okhttp3.Call readRuntimeClassAsync( - String name, String pretty, final ApiCallback _callback) + public okhttp3.Call readClusterCIDRAsync( + String name, String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = readClusterCIDRValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for replaceRuntimeClass + * Build call for replaceClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -2309,9 +2309,9 @@ public okhttp3.Call readRuntimeClassAsync( * 401 Unauthorized - * */ - public okhttp3.Call replaceRuntimeClassCall( + public okhttp3.Call replaceClusterCIDRCall( String name, - V1beta1RuntimeClass body, + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, @@ -2322,7 +2322,7 @@ public okhttp3.Call replaceRuntimeClassCall( // create path and map variables String localVarPath = - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}" .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2376,9 +2376,9 @@ public okhttp3.Call replaceRuntimeClassCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceRuntimeClassValidateBeforeCall( + private okhttp3.Call replaceClusterCIDRValidateBeforeCall( String name, - V1beta1RuntimeClass body, + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, @@ -2389,25 +2389,25 @@ private okhttp3.Call replaceRuntimeClassValidateBeforeCall( // verify the required parameter 'name' is set if (name == null) { throw new ApiException( - "Missing the required parameter 'name' when calling replaceRuntimeClass(Async)"); + "Missing the required parameter 'name' when calling replaceClusterCIDR(Async)"); } // verify the required parameter 'body' is set if (body == null) { throw new ApiException( - "Missing the required parameter 'body' when calling replaceRuntimeClass(Async)"); + "Missing the required parameter 'body' when calling replaceClusterCIDR(Async)"); } okhttp3.Call localVarCall = - replaceRuntimeClassCall( + replaceClusterCIDRCall( name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); return localVarCall; } /** - * replace the specified RuntimeClass + * replace the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -2431,7 +2431,7 @@ private okhttp3.Call replaceRuntimeClassValidateBeforeCall( * would be dropped from the object, or if any duplicate fields are present. The error * returned from the server will contain all unknown and duplicate fields encountered. * (optional) - * @return V1beta1RuntimeClass + * @return V1alpha1ClusterCIDR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -2442,23 +2442,23 @@ private okhttp3.Call replaceRuntimeClassValidateBeforeCall( * 401 Unauthorized - * */ - public V1beta1RuntimeClass replaceRuntimeClass( + public V1alpha1ClusterCIDR replaceClusterCIDR( String name, - V1beta1RuntimeClass body, + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { - ApiResponse localVarResp = - replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + ApiResponse localVarResp = + replaceClusterCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * replace the specified RuntimeClass + * replace the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -2482,7 +2482,7 @@ public V1beta1RuntimeClass replaceRuntimeClass( * would be dropped from the 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<V1beta1RuntimeClass> + * @return ApiResponse<V1alpha1ClusterCIDR> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details @@ -2493,25 +2493,25 @@ public V1beta1RuntimeClass replaceRuntimeClass( * 401 Unauthorized - * */ - public ApiResponse replaceRuntimeClassWithHttpInfo( + public ApiResponse replaceClusterCIDRWithHttpInfo( String name, - V1beta1RuntimeClass body, + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { okhttp3.Call localVarCall = - replaceRuntimeClassValidateBeforeCall( + replaceClusterCIDRValidateBeforeCall( name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * (asynchronously) replace the specified RuntimeClass + * (asynchronously) replace the specified ClusterCIDR * - * @param name name of the RuntimeClass (required) + * @param name name of the ClusterCIDR (required) * @param body (required) * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or @@ -2546,20 +2546,20 @@ public ApiResponse replaceRuntimeClassWithHttpInfo( * 401 Unauthorized - * */ - public okhttp3.Call replaceRuntimeClassAsync( + public okhttp3.Call replaceClusterCIDRAsync( String name, - V1beta1RuntimeClass body, + V1alpha1ClusterCIDR body, String pretty, String dryRun, String fieldManager, String fieldValidation, - final ApiCallback _callback) + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - replaceRuntimeClassValidateBeforeCall( + replaceClusterCIDRValidateBeforeCall( name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java deleted file mode 100644 index c4fb92daec..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1beta1Api.java +++ /dev/null @@ -1,6420 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY 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 com.google.gson.reflect.TypeToken; -import io.kubernetes.client.custom.V1Patch; -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.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudget; -import io.kubernetes.client.openapi.models.V1beta1PodDisruptionBudgetList; -import io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicy; -import io.kubernetes.client.openapi.models.V1beta1PodSecurityPolicyList; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class PolicyV1beta1Api { - private ApiClient localVarApiClient; - - public PolicyV1beta1Api() { - this(Configuration.getDefaultApiClient()); - } - - public PolicyV1beta1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - /** - * Build call for createNamespacedPodDisruptionBudget - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedPodDisruptionBudgetCall( - String namespace, - V1beta1PodDisruptionBudget 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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets" - .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" - }; - 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, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall( - String namespace, - V1beta1PodDisruptionBudget 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 createNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling createNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - createNamespacedPodDisruptionBudgetCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * create a PodDisruptionBudget - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget createNamespacedPodDisruptionBudget( - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - createNamespacedPodDisruptionBudgetWithHttpInfo( - namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * create a PodDisruptionBudget - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1PodDisruptionBudget> - * @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 createNamespacedPodDisruptionBudgetWithHttpInfo( - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - createNamespacedPodDisruptionBudgetValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) create a PodDisruptionBudget - * - * @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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createNamespacedPodDisruptionBudgetAsync( - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createNamespacedPodDisruptionBudgetValidateBeforeCall( - namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for createPodSecurityPolicy - * - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createPodSecurityPolicyCall( - V1beta1PodSecurityPolicy 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/policy/v1beta1/podsecuritypolicies"; - - 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" - }; - 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, - "POST", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createPodSecurityPolicyValidateBeforeCall( - V1beta1PodSecurityPolicy 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 createPodSecurityPolicy(Async)"); - } - - okhttp3.Call localVarCall = - createPodSecurityPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * create a PodSecurityPolicy - * - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1PodSecurityPolicy - * @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 V1beta1PodSecurityPolicy createPodSecurityPolicy( - V1beta1PodSecurityPolicy body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * create a PodSecurityPolicy - * - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1PodSecurityPolicy> - * @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 createPodSecurityPolicyWithHttpInfo( - V1beta1PodSecurityPolicy body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - createPodSecurityPolicyValidateBeforeCall( - body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) create a PodSecurityPolicy - * - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 createPodSecurityPolicyAsync( - V1beta1PodSecurityPolicy body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - createPodSecurityPolicyValidateBeforeCall( - body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionNamespacedPodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedPodDisruptionBudgetCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets" - .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 (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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - 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 deleteCollectionNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - deleteCollectionNamespacedPodDisruptionBudgetCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - return localVarCall; - } - - /** - * delete collection of PodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedPodDisruptionBudget( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); - return localVarResp.getData(); - } - - /** - * delete collection of PodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete collection of PodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionNamespacedPodDisruptionBudgetAsync( - String namespace, - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall( - namespace, - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteCollectionPodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionPodSecurityPolicyCall( - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies"; - - 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 (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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPodSecurityPolicyValidateBeforeCall( - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionPodSecurityPolicyCall( - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - return localVarCall; - } - - /** - * delete collection of PodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionPodSecurityPolicy( - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteCollectionPodSecurityPolicyWithHttpInfo( - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body); - return localVarResp.getData(); - } - - /** - * delete collection of PodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionPodSecurityPolicyWithHttpInfo( - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteCollectionPodSecurityPolicyValidateBeforeCall( - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete collection of PodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 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 deleteCollectionPodSecurityPolicyAsync( - String pretty, - String _continue, - String dryRun, - String fieldSelector, - Integer gracePeriodSeconds, - String labelSelector, - Integer limit, - Boolean orphanDependents, - String propagationPolicy, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteCollectionPodSecurityPolicyValidateBeforeCall( - pretty, - _continue, - dryRun, - fieldSelector, - gracePeriodSeconds, - labelSelector, - limit, - orphanDependents, - propagationPolicy, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deleteNamespacedPodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedPodDisruptionBudgetCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - 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 deleteNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling deleteNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - deleteNamespacedPodDisruptionBudgetCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - return localVarCall; - } - - /** - * delete a PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedPodDisruptionBudget( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deleteNamespacedPodDisruptionBudgetWithHttpInfo( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body); - return localVarResp.getData(); - } - - /** - * delete a PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedPodDisruptionBudgetWithHttpInfo( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deleteNamespacedPodDisruptionBudgetValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete a PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deleteNamespacedPodDisruptionBudgetAsync( - String name, - String namespace, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deleteNamespacedPodDisruptionBudgetValidateBeforeCall( - name, - namespace, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for deletePodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deletePodSecurityPolicyCall( - String name, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/podsecuritypolicies/{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 (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" - }; - 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, - "DELETE", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deletePodSecurityPolicyValidateBeforeCall( - String name, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - 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 deletePodSecurityPolicy(Async)"); - } - - okhttp3.Call localVarCall = - deletePodSecurityPolicyCall( - name, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - _callback); - return localVarCall; - } - - /** - * delete a PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 V1beta1PodSecurityPolicy - * @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 V1beta1PodSecurityPolicy deletePodSecurityPolicy( - String name, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - ApiResponse localVarResp = - deletePodSecurityPolicyWithHttpInfo( - name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * delete a PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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<V1beta1PodSecurityPolicy> - * @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 deletePodSecurityPolicyWithHttpInfo( - String name, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body) - throws ApiException { - okhttp3.Call localVarCall = - deletePodSecurityPolicyValidateBeforeCall( - name, - pretty, - dryRun, - gracePeriodSeconds, - orphanDependents, - propagationPolicy, - body, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) delete a PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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 orphanDependents Deprecated: please use the PropagationPolicy, this field will be - * deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the - * \"orphan\" 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 deletePodSecurityPolicyAsync( - String name, - String pretty, - String dryRun, - Integer gracePeriodSeconds, - Boolean orphanDependents, - String propagationPolicy, - V1DeleteOptions body, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - deletePodSecurityPolicyValidateBeforeCall( - name, - pretty, - dryRun, - gracePeriodSeconds, - 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/policy/v1beta1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" - }; - 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 listNamespacedPodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedPodDisruptionBudgetCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets" - .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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listNamespacedPodDisruptionBudgetValidateBeforeCall( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling listNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - listNamespacedPodDisruptionBudgetCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind PodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 V1beta1PodDisruptionBudgetList - * @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 V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listNamespacedPodDisruptionBudgetWithHttpInfo( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind PodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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<V1beta1PodDisruptionBudgetList> - * @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 listNamespacedPodDisruptionBudgetWithHttpInfo( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listNamespacedPodDisruptionBudgetValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind PodDisruptionBudget - * - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param pretty If 'true', then the output is pretty printed. (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 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 listNamespacedPodDisruptionBudgetAsync( - String namespace, - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listNamespacedPodDisruptionBudgetValidateBeforeCall( - namespace, - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listPodDisruptionBudgetForAllNamespaces - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listPodDisruptionBudgetForAllNamespacesCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/policy/v1beta1/poddisruptionbudgets"; - - 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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listPodDisruptionBudgetForAllNamespacesValidateBeforeCall( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listPodDisruptionBudgetForAllNamespacesCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind PodDisruptionBudget - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 V1beta1PodDisruptionBudgetList - * @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 V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listPodDisruptionBudgetForAllNamespacesWithHttpInfo( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind PodDisruptionBudget - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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<V1beta1PodDisruptionBudgetList> - * @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 - listPodDisruptionBudgetForAllNamespacesWithHttpInfo( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listPodDisruptionBudgetForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind PodDisruptionBudget - * - * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type - * \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and - * bookmarks are sent at the server's discretion. Clients should not assume bookmarks are - * returned at any specific interval, nor 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. (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 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 listPodDisruptionBudgetForAllNamespacesAsync( - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String pretty, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listPodDisruptionBudgetForAllNamespacesValidateBeforeCall( - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - pretty, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for listPodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 listPodSecurityPolicyCall( - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies"; - - 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 (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/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - }; - 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 listPodSecurityPolicyValidateBeforeCall( - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listPodSecurityPolicyCall( - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - return localVarCall; - } - - /** - * list or watch objects of kind PodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 V1beta1PodSecurityPolicyList - * @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 V1beta1PodSecurityPolicyList listPodSecurityPolicy( - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - ApiResponse localVarResp = - listPodSecurityPolicyWithHttpInfo( - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch); - return localVarResp.getData(); - } - - /** - * list or watch objects of kind PodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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<V1beta1PodSecurityPolicyList> - * @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 listPodSecurityPolicyWithHttpInfo( - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch) - throws ApiException { - okhttp3.Call localVarCall = - listPodSecurityPolicyValidateBeforeCall( - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) list or watch objects of kind PodSecurityPolicy - * - * @param pretty If 'true', then the output is pretty printed. (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 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 listPodSecurityPolicyAsync( - String pretty, - Boolean allowWatchBookmarks, - String _continue, - String fieldSelector, - String labelSelector, - Integer limit, - String resourceVersion, - String resourceVersionMatch, - Integer timeoutSeconds, - Boolean watch, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - listPodSecurityPolicyValidateBeforeCall( - pretty, - allowWatchBookmarks, - _continue, - fieldSelector, - labelSelector, - limit, - resourceVersion, - resourceVersionMatch, - timeoutSeconds, - watch, - _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedPodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedPodDisruptionBudgetCall( - 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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedPodDisruptionBudgetValidateBeforeCall( - 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 patchNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedPodDisruptionBudgetCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedPodDisruptionBudgetWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1PodDisruptionBudget> - * @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 patchNamespacedPodDisruptionBudgetWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedPodDisruptionBudgetValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedPodDisruptionBudgetAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedPodDisruptionBudgetValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchNamespacedPodDisruptionBudgetStatus - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedPodDisruptionBudgetStatusCall( - 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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - 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 patchNamespacedPodDisruptionBudgetStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling patchNamespacedPodDisruptionBudgetStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudgetStatus(Async)"); - } - - okhttp3.Call localVarCall = - patchNamespacedPodDisruptionBudgetStatusCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchNamespacedPodDisruptionBudgetStatusWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1PodDisruptionBudget> - * @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 - patchNamespacedPodDisruptionBudgetStatusWithHttpInfo( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchNamespacedPodDisruptionBudgetStatusAsync( - String name, - String namespace, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for patchPodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchPodSecurityPolicyCall( - 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/policy/v1beta1/podsecuritypolicies/{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" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - }; - 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 patchPodSecurityPolicyValidateBeforeCall( - 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 patchPodSecurityPolicy(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling patchPodSecurityPolicy(Async)"); - } - - okhttp3.Call localVarCall = - patchPodSecurityPolicyCall( - name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - return localVarCall; - } - - /** - * partially update the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 V1beta1PodSecurityPolicy - * @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 V1beta1PodSecurityPolicy patchPodSecurityPolicy( - String name, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - ApiResponse localVarResp = - patchPodSecurityPolicyWithHttpInfo( - name, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * partially update the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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<V1beta1PodSecurityPolicy> - * @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 patchPodSecurityPolicyWithHttpInfo( - String name, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force) - throws ApiException { - okhttp3.Call localVarCall = - patchPodSecurityPolicyValidateBeforeCall( - name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) partially update the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 patchPodSecurityPolicyAsync( - String name, - V1Patch body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - Boolean force, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - patchPodSecurityPolicyValidateBeforeCall( - name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedPodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (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 readNamespacedPodDisruptionBudgetCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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" - }; - 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 readNamespacedPodDisruptionBudgetValidateBeforeCall( - 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 readNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - readNamespacedPodDisruptionBudgetCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @return V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudget( - String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = - readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @return ApiResponse<V1beta1PodDisruptionBudget> - * @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 readNamespacedPodDisruptionBudgetWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (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 readNamespacedPodDisruptionBudgetAsync( - String name, - String namespace, - String pretty, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readNamespacedPodDisruptionBudgetStatus - * - * @param name name of the PodDisruptionBudget (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. (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 readNamespacedPodDisruptionBudgetStatusCall( - String name, String namespace, String pretty, final ApiCallback _callback) - throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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" - }; - 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 readNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - 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 readNamespacedPodDisruptionBudgetStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudgetStatus(Async)"); - } - - okhttp3.Call localVarCall = - readNamespacedPodDisruptionBudgetStatusCall(name, namespace, pretty, _callback); - return localVarCall; - } - - /** - * read status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @return V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus( - String name, String namespace, String pretty) throws ApiException { - ApiResponse localVarResp = - readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * read status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @return ApiResponse<V1beta1PodDisruptionBudget> - * @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 - readNamespacedPodDisruptionBudgetStatusWithHttpInfo( - String name, String namespace, String pretty) throws ApiException { - okhttp3.Call localVarCall = - readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (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 readNamespacedPodDisruptionBudgetStatusAsync( - String name, - String namespace, - String pretty, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - readNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for readPodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (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 readPodSecurityPolicyCall( - String name, String pretty, final ApiCallback _callback) throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = - "/apis/policy/v1beta1/podsecuritypolicies/{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" - }; - 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 readPodSecurityPolicyValidateBeforeCall( - 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 readPodSecurityPolicy(Async)"); - } - - okhttp3.Call localVarCall = readPodSecurityPolicyCall(name, pretty, _callback); - return localVarCall; - } - - /** - * read the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return V1beta1PodSecurityPolicy - * @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 V1beta1PodSecurityPolicy readPodSecurityPolicy(String name, String pretty) - throws ApiException { - ApiResponse localVarResp = - readPodSecurityPolicyWithHttpInfo(name, pretty); - return localVarResp.getData(); - } - - /** - * read the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @return ApiResponse<V1beta1PodSecurityPolicy> - * @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 readPodSecurityPolicyWithHttpInfo( - String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readPodSecurityPolicyValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) read the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param pretty If 'true', then the output is pretty printed. (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 readPodSecurityPolicyAsync( - String name, String pretty, final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = readPodSecurityPolicyValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedPodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedPodDisruptionBudgetCall( - String name, - String namespace, - V1beta1PodDisruptionBudget 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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall( - String name, - String namespace, - V1beta1PodDisruptionBudget 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 replaceNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedPodDisruptionBudget(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudget(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedPodDisruptionBudgetCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudget( - String name, - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedPodDisruptionBudgetWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1PodDisruptionBudget> - * @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 replaceNamespacedPodDisruptionBudgetWithHttpInfo( - String name, - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedPodDisruptionBudgetValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedPodDisruptionBudgetAsync( - String name, - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedPodDisruptionBudgetValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replaceNamespacedPodDisruptionBudgetStatus - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedPodDisruptionBudgetStatusCall( - String name, - String namespace, - V1beta1PodDisruptionBudget 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/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - String name, - String namespace, - V1beta1PodDisruptionBudget 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 replaceNamespacedPodDisruptionBudgetStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException( - "Missing the required parameter 'namespace' when calling replaceNamespacedPodDisruptionBudgetStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudgetStatus(Async)"); - } - - okhttp3.Call localVarCall = - replaceNamespacedPodDisruptionBudgetStatusCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1PodDisruptionBudget - * @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 V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus( - String name, - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1PodDisruptionBudget> - * @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 - replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo( - String name, - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace status of the specified PodDisruptionBudget - * - * @param name name of the PodDisruptionBudget (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. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replaceNamespacedPodDisruptionBudgetStatusAsync( - String name, - String namespace, - V1beta1PodDisruptionBudget body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall( - name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - /** - * Build call for replacePodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replacePodSecurityPolicyCall( - String name, - V1beta1PodSecurityPolicy 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/policy/v1beta1/podsecuritypolicies/{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" - }; - 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, - "PUT", - localVarQueryParams, - localVarCollectionQueryParams, - localVarPostBody, - localVarHeaderParams, - localVarCookieParams, - localVarFormParams, - localVarAuthNames, - _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replacePodSecurityPolicyValidateBeforeCall( - String name, - V1beta1PodSecurityPolicy 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 replacePodSecurityPolicy(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - "Missing the required parameter 'body' when calling replacePodSecurityPolicy(Async)"); - } - - okhttp3.Call localVarCall = - replacePodSecurityPolicyCall( - name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - return localVarCall; - } - - /** - * replace the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the object, or if any duplicate fields are present. The error - * returned from the server will contain all unknown and duplicate fields encountered. - * (optional) - * @return V1beta1PodSecurityPolicy - * @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 V1beta1PodSecurityPolicy replacePodSecurityPolicy( - String name, - V1beta1PodSecurityPolicy body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - ApiResponse localVarResp = - replacePodSecurityPolicyWithHttpInfo( - name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * replace the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from the 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<V1beta1PodSecurityPolicy> - * @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 replacePodSecurityPolicyWithHttpInfo( - String name, - V1beta1PodSecurityPolicy body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation) - throws ApiException { - okhttp3.Call localVarCall = - replacePodSecurityPolicyValidateBeforeCall( - name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken() {}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * (asynchronously) replace the specified PodSecurityPolicy - * - * @param name name of the PodSecurityPolicy (required) - * @param body (required) - * @param pretty If 'true', then the output is pretty printed. (optional) - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or - * unrecognized dryRun directive will result 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, provided that the - * `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - - * Ignore: This will ignore any unknown fields that are silently dropped from the object, and - * will ignore all but the last duplicate field that the decoder encounters. This is the - * default behavior prior to v1.23 and is the default behavior when the - * `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a - * warning via the standard warning response header for each unknown field that is dropped - * from the object, and for each duplicate field that is encountered. The request will still - * succeed if there are no other errors, and will only persist the last of any duplicate - * fields. This is the default when the `ServerSideFieldValidation` feature gate is - * enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields - * would be dropped from 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 replacePodSecurityPolicyAsync( - String name, - V1beta1PodSecurityPolicy body, - String pretty, - String dryRun, - String fieldManager, - String fieldValidation, - final ApiCallback _callback) - throws ApiException { - - okhttp3.Call localVarCall = - replacePodSecurityPolicyValidateBeforeCall( - 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 b83f325136..90a360085e 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 @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[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 9aef943c62..82fafc6149 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 @@ -18,7 +18,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[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 7b23a1d055..51fb9d4dc0 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_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 a365af34e1..90dd3d508a 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 @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; 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 7ae16db968..f5cd5910db 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_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 60f70cfe42..c2fc281984 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 @@ -24,7 +24,7 @@ "WebhookClientConfig contains the information to make a TLS connection with the webhook.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; 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 5eb0491954..afe6f3518e 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_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 d8df980a58..f5589da902 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 @@ -21,7 +21,7 @@ @ApiModel(description = "TokenRequest requests a token for a given service account.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1f4c895f78..30abd2895e 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointPort is a tuple that describes a single port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; 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 61916ab9c8..debf7fd77a 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 @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "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 42a29bf872..29aefa8a67 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of events.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 0625838540..096cc8df78 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 @@ -27,7 +27,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; 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 e781b73d01..9088804374 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; 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 c3445380b1..b03267b6e5 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 @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "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 6739bd8ddf..33757f2077 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EventList is a list of Event objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 2c12801211..f03b04bfa9 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; 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 eac5dec725..ce73a32dab 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 @@ -21,7 +21,7 @@ @ApiModel(description = "TokenRequest contains parameters of a service account token.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "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 d4d4ba4839..e393957f12 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 @@ -25,7 +25,7 @@ "APIGroup contains the name, the supported versions, and the preferred version of a group.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 5bf7461899..07cfda51a3 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 @@ -25,7 +25,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 34461e72d5..e8463e19db 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 @@ -24,7 +24,7 @@ description = "APIResource specifies the name of a resource and whether it is namespaced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "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 85b6e6a46a..65bd701916 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 d2bf034974..cd95c5575d 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 @@ -26,7 +26,7 @@ "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 f4e24946be..308642fd9d 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 @@ -23,7 +23,7 @@ description = "APIServiceCondition describes the state of an APIService at a particular point") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 cfb74ef33b..021713e0dd 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 @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceList is a list of APIService objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 5f834c5498..421d248e92 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 @@ -27,7 +27,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; 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 89c9860b02..1aec58c747 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 @@ -23,7 +23,7 @@ @ApiModel(description = "APIServiceStatus contains derived information about an API server") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "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 66c4856502..d3376e2a85 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1ca09ff682..a74d0f7c83 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 aa91439c88..8be3328010 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; 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 42255c6e66..fa8a037f1f 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 @@ -25,7 +25,7 @@ "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; 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 5f1a5f7fc6..a268aef575 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 @@ -21,7 +21,7 @@ @ApiModel(description = "AttachedVolume describes a volume attached to a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; 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 a4a3cbc349..63b42fc71e 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 @@ -23,7 +23,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; 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 51e2265aaa..5181403e65 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 @@ -23,7 +23,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; 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 ae8075542d..8fdb9d0d3c 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 @@ -23,7 +23,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; 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 2782ca5a0c..60baab4c6b 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 @@ -26,7 +26,7 @@ "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e615ae8398..5cfa2e1a2b 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 @@ -22,7 +22,7 @@ description = "BoundObjectReference is a reference to an object that a token is bound to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 7288002b3a..1f06ff7834 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 88a3443b1d..f8004bfd67 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 ccc74550ed..bd7cdd66ad 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @@ -45,6 +45,11 @@ public class V1CSIDriverSpec { @SerializedName(SERIALIZED_NAME_REQUIRES_REPUBLISH) private Boolean requiresRepublish; + public static final String SERIALIZED_NAME_SE_LINUX_MOUNT = "seLinuxMount"; + + @SerializedName(SERIALIZED_NAME_SE_LINUX_MOUNT) + private Boolean seLinuxMount; + public static final String SERIALIZED_NAME_STORAGE_CAPACITY = "storageCapacity"; @SerializedName(SERIALIZED_NAME_STORAGE_CAPACITY) @@ -185,6 +190,39 @@ public void setRequiresRepublish(Boolean requiresRepublish) { this.requiresRepublish = requiresRepublish; } + public V1CSIDriverSpec seLinuxMount(Boolean seLinuxMount) { + + this.seLinuxMount = seLinuxMount; + return this; + } + + /** + * SELinuxMount specifies if the CSI driver supports \"-o context\" mount option. When + * \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can + * be mounted separately with different `-o context` options. This is typical for + * storage backends that provide volumes as filesystems on block devices or as independent shared + * volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" + * mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set + * SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, + * Kubernetes will ensure that the volume is mounted only with a single SELinux context. When + * \"false\", Kubernetes won't pass any special SELinux mount options to the driver. + * This is typical for volumes that represent subdirectories of a bigger shared filesystem. + * Default is \"false\". + * + * @return seLinuxMount + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "SELinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\".") + public Boolean getSeLinuxMount() { + return seLinuxMount; + } + + public void setSeLinuxMount(Boolean seLinuxMount) { + this.seLinuxMount = seLinuxMount; + } + public V1CSIDriverSpec storageCapacity(Boolean storageCapacity) { this.storageCapacity = storageCapacity; @@ -307,6 +345,7 @@ public boolean equals(java.lang.Object o) { && Objects.equals(this.fsGroupPolicy, v1CSIDriverSpec.fsGroupPolicy) && Objects.equals(this.podInfoOnMount, v1CSIDriverSpec.podInfoOnMount) && Objects.equals(this.requiresRepublish, v1CSIDriverSpec.requiresRepublish) + && Objects.equals(this.seLinuxMount, v1CSIDriverSpec.seLinuxMount) && Objects.equals(this.storageCapacity, v1CSIDriverSpec.storageCapacity) && Objects.equals(this.tokenRequests, v1CSIDriverSpec.tokenRequests) && Objects.equals(this.volumeLifecycleModes, v1CSIDriverSpec.volumeLifecycleModes); @@ -319,6 +358,7 @@ public int hashCode() { fsGroupPolicy, podInfoOnMount, requiresRepublish, + seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes); @@ -332,6 +372,7 @@ public String toString() { sb.append(" fsGroupPolicy: ").append(toIndentedString(fsGroupPolicy)).append("\n"); sb.append(" podInfoOnMount: ").append(toIndentedString(podInfoOnMount)).append("\n"); sb.append(" requiresRepublish: ").append(toIndentedString(requiresRepublish)).append("\n"); + sb.append(" seLinuxMount: ").append(toIndentedString(seLinuxMount)).append("\n"); sb.append(" storageCapacity: ").append(toIndentedString(storageCapacity)).append("\n"); sb.append(" tokenRequests: ").append(toIndentedString(tokenRequests)).append("\n"); sb.append(" volumeLifecycleModes: ") 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 41a35dddbb..c28607837b 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 @@ -31,7 +31,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1a6892bf90..2b87324acb 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 @@ -25,7 +25,7 @@ "CSINodeDriver holds information about the specification of one CSI driver installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "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 71d86e48c8..81145202d1 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 0c7cf07c92..f1824a051c 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 @@ -25,7 +25,7 @@ "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "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 f60ff653a4..03bb1edf80 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 @@ -25,7 +25,7 @@ "Represents storage that is managed by an external CSI volume driver (Beta feature)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @@ -49,6 +49,11 @@ public class V1CSIPersistentVolumeSource { @SerializedName(SERIALIZED_NAME_FS_TYPE) private String fsType; + public static final String SERIALIZED_NAME_NODE_EXPAND_SECRET_REF = "nodeExpandSecretRef"; + + @SerializedName(SERIALIZED_NAME_NODE_EXPAND_SECRET_REF) + private V1SecretReference nodeExpandSecretRef; + public static final String SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF = "nodePublishSecretRef"; @SerializedName(SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF) @@ -164,6 +169,27 @@ public void setFsType(String fsType) { this.fsType = fsType; } + public V1CSIPersistentVolumeSource nodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + + this.nodeExpandSecretRef = nodeExpandSecretRef; + return this; + } + + /** + * Get nodeExpandSecretRef + * + * @return nodeExpandSecretRef + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getNodeExpandSecretRef() { + return nodeExpandSecretRef; + } + + public void setNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + this.nodeExpandSecretRef = nodeExpandSecretRef; + } + public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; @@ -298,6 +324,7 @@ public boolean equals(java.lang.Object o) { this.controllerPublishSecretRef, v1CSIPersistentVolumeSource.controllerPublishSecretRef) && Objects.equals(this.driver, v1CSIPersistentVolumeSource.driver) && Objects.equals(this.fsType, v1CSIPersistentVolumeSource.fsType) + && Objects.equals(this.nodeExpandSecretRef, v1CSIPersistentVolumeSource.nodeExpandSecretRef) && Objects.equals( this.nodePublishSecretRef, v1CSIPersistentVolumeSource.nodePublishSecretRef) && Objects.equals(this.nodeStageSecretRef, v1CSIPersistentVolumeSource.nodeStageSecretRef) @@ -313,6 +340,7 @@ public int hashCode() { controllerPublishSecretRef, driver, fsType, + nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, @@ -332,6 +360,9 @@ public String toString() { .append("\n"); sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); + sb.append(" nodeExpandSecretRef: ") + .append(toIndentedString(nodeExpandSecretRef)) + .append("\n"); sb.append(" nodePublishSecretRef: ") .append(toIndentedString(nodePublishSecretRef)) .append("\n"); 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 a86b717f4f..358b1f1536 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 @@ -40,7 +40,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -112,41 +112,41 @@ public V1CSIStorageCapacity capacity(Quantity capacity) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized + * as \"1536Mi\" Note that the quantity will NEVER be internally represented by a + * floating point number. That is the whole point of this exercise. Non-canonical values will + * still parse as long as they are well formed, but will be re-emitted in their canonical form. + * (So always use canonical form, or don't diff.) This format is intended to make it difficult + * to use these numbers without writing some sort of special handling code in the hopes that that + * will cause implementors to also use a fixed point implementation. * * @return capacity */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getCapacity() { return capacity; } @@ -190,41 +190,41 @@ public V1CSIStorageCapacity maximumVolumeSize(Quantity maximumVolumeSize) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized + * as \"1536Mi\" Note that the quantity will NEVER be internally represented by a + * floating point number. That is the whole point of this exercise. Non-canonical values will + * still parse as long as they are well formed, but will be re-emitted in their canonical form. + * (So always use canonical form, or don't diff.) This format is intended to make it difficult + * to use these numbers without writing some sort of special handling code in the hopes that that + * will cause implementors to also use a fixed point implementation. * * @return maximumVolumeSize */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getMaximumVolumeSize() { return maximumVolumeSize; } 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 f147e95693..3c8f7c40d9 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 dc38a8b919..604d777306 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 @@ -25,7 +25,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "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 de06bce9fd..10ff7f81fd 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; 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 4807dba449..db0f8eb9ba 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "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 d6a0c47e37..35946f8bb1 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "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 b3639b058a..58e2750db3 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 @@ -33,7 +33,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 577d01b917..c2b3ba8bce 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 @@ -26,7 +26,7 @@ "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 fcf9b68ffc..c9446d4ae9 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 @@ -25,7 +25,7 @@ "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 60cc33471b..2674b0e048 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 @@ -26,7 +26,7 @@ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; 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 077f3712c9..31778ee8a4 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 @@ -29,7 +29,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "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 8abb1371cf..5222a7939d 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 666056318f..2fa4d66698 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 1a2b09d5c3..828ec5af44 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 @@ -23,7 +23,7 @@ "ClientIPConfig represents the configurations of Client IP based session affinity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; 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 19ab084514..24fe94e357 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; 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 4b6d39ca6e..00d1e39da4 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 4d045ebac7..f9c8c7388b 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 5b3a442710..6175a581f9 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 2c45d4e44a..3dd49b725a 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Information about the condition of a component.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "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 232c204974..9b5b8792d6 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a26429a872..ddc438ef1c 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 cfc4cb4ed0..54b6053c23 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 @@ -24,7 +24,7 @@ "Condition contains details for one aspect of the current state of this API Resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 77cfc44efe..efcd7e1279 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 eb19410453..9053011662 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_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 c410323688..4b5148eb2d 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Selects a key from a ConfigMap.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "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 9b2e269ed3..726666935f 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 64145472fe..cf8a726ca1 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") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; 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 9e49a7f593..b8ddda092e 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "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 5306a007ab..4cf73cf75c 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; 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 1739e47252..7aab2a9ef2 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 @@ -23,7 +23,7 @@ @ApiModel(description = "A single application container that you want to run within a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @@ -408,18 +408,18 @@ public V1Container addPortsItem(V1ContainerPort portsItem) { } /** - * List of ports to expose from the container. Exposing a port here gives the system additional - * information about the network connections a container uses, but is primarily informational. Not - * specifying a port here DOES NOT prevent that port from being exposed. Any port which is - * listening on the default \"0.0.0.0\" address inside a container will be accessible - * from the network. Cannot be updated. + * List of ports to expose from the container. Not specifying a port here DOES NOT prevent that + * port from being exposed. Any port which is listening on the default \"0.0.0.0\" + * address inside a container will be accessible from the network. Modifying this array with + * strategic merge patch may corrupt the data. For more information See + * https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. * * @return ports */ @javax.annotation.Nullable @ApiModelProperty( value = - "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.") + "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.") public List getPorts() { return ports; } 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 099ec9a713..2d8e40556f 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Describe a container image") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @@ -50,15 +50,15 @@ public V1ContainerImage addNamesItem(String namesItem) { } /** - * Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", - * \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] + * Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", + * \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"] * * @return names */ @javax.annotation.Nullable @ApiModelProperty( value = - "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]") + "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]") public List getNames() { return names; } 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 1281e2848e..4b7e67d482 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ContainerPort represents a network port in a single container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; 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 ea627b99be..c3fa49f8f2 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 @@ -26,7 +26,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "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 1fec255960..a5c5660f2c 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 @@ -22,7 +22,7 @@ @ApiModel(description = "ContainerStateRunning is a running state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; 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 a52d181c56..562b113568 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 @@ -22,7 +22,7 @@ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; 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 c625668240..0196831b91 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "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 adacd9e341..851ba2a7f2 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 @@ -22,7 +22,7 @@ description = "ContainerStatus contains details for the current status of this container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ContainerStatus { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; 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 3cbda9284a..cb2fe64b0f 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 @@ -32,7 +32,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 8f6220a5ac..6c59b41692 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 @@ -25,7 +25,7 @@ "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a92c80057d..e5a5263cbc 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 @@ -21,7 +21,7 @@ @ApiModel(description = "CronJob represents the configuration of a single cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 7d05db208a..b202a9abb0 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CronJobList is a collection of cron jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 d8cffe7acc..07f33d8b28 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 @@ -23,7 +23,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @@ -237,17 +237,24 @@ public V1CronJobSpec timeZone(String timeZone) { } /** - * The time zone for the given schedule, see - * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely - * on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must - * be enabled via the `CronJobTimeZone` feature gate. + * The time zone name for the given schedule, see + * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will + * default to the time zone of the kube-controller-manager process. The set of valid time zone + * names and the time zone offset is loaded from the system-wide time zone database by the API + * server during CronJob validation and the controller manager during execution. If no system-wide + * time zone database can be found a bundled version of the database is used instead. If the time + * zone name becomes invalid during the lifetime of a CronJob or due to a change in host + * configuration, the controller will stop creating new new Jobs and will create a system event + * with the reason UnknownTimeZone. More information can be found in + * https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta + * field and must be enabled via the `CronJobTimeZone` feature gate. * * @return timeZone */ @javax.annotation.Nullable @ApiModelProperty( value = - "The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.") + "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate.") public String getTimeZone() { return timeZone; } 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 5a28e8a4cb..5edf5f2355 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 @@ -24,7 +24,7 @@ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "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 0387e974f7..c89cf75cb0 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 @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1284a019a5..0939d155c9 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 @@ -22,7 +22,7 @@ description = "CustomResourceColumnDefinition specifies a column for server side printing.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "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 bfba2fb601..bc5cb09207 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 @@ -22,7 +22,7 @@ description = "CustomResourceConversion describes how to convert different versions of a CR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "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 477de71926..37cb02cc94 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 f056fc619a..2b8d1e1ecd 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 @@ -24,7 +24,7 @@ "CustomResourceDefinitionCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 228c322f97..3a8e10a766 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 @@ -24,7 +24,7 @@ description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1d2bf2aaf7..572daca7f8 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "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 d8ae49ddae..b74de5955b 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionSpec describes how a user wants their resource to appear") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "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 94c8a775a6..62dba41975 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 @@ -25,7 +25,7 @@ "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; 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 15ba18560d..2eec980a14 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 @@ -23,7 +23,7 @@ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; 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 5a0afb45f8..327ed2216d 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 @@ -25,7 +25,7 @@ "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; 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 8afe63cfb9..fdf4e60d05 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 @@ -23,7 +23,7 @@ "CustomResourceSubresources defines the status and scale subresources for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "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 5783d6424f..2b71bcde61 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 @@ -22,7 +22,7 @@ description = "CustomResourceValidation is a list of validation methods for CustomResources.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; 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 467445de6a..14081682e6 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "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 2d1c4875f7..4f678a46e5 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 3f74f8b6b0..ffb8ae1393 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 @@ -22,7 +22,7 @@ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 4a4fafb112..cf8bf1cd40 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 967a58fbc3..4584b0b614 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; 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 212187c0fd..1f178f4952 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; 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 e518dad0b2..fa18e7a963 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 @@ -23,7 +23,7 @@ "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; 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 8cfee7e592..68406b21d7 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 2722f4e1be..f60830adee 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 282e69a654..d0862741a7 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 @@ -23,7 +23,7 @@ description = "DeploymentCondition describes the state of a deployment at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 ee862a85ff..ccc51984c8 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DeploymentList is a list of Deployments.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e7a2e63903..3fbf3559bf 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 @@ -22,7 +22,7 @@ description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; 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 a3f0754701..8ce5338bf5 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 @@ -23,7 +23,7 @@ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; 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 d6987dc01b..8163f31052 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 @@ -21,7 +21,7 @@ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; 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 57757be5bd..3a1c6ae9eb 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "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 13b2f9c5eb..cdbd9a3921 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 @@ -23,7 +23,7 @@ "DownwardAPIVolumeFile represents information to create the file containing the pod field") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; 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 7e10354d99..659c9473e7 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; 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 90906043b4..a867de68c9 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 @@ -27,7 +27,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @@ -73,41 +73,41 @@ public V1EmptyDirVolumeSource sizeLimit(Quantity sizeLimit) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized + * as \"1536Mi\" Note that the quantity will NEVER be internally represented by a + * floating point number. That is the whole point of this exercise. Non-canonical values will + * still parse as long as they are well formed, but will be re-emitted in their canonical form. + * (So always use canonical form, or don't diff.) This format is intended to make it difficult + * to use these numbers without writing some sort of special handling code in the hopes that that + * will cause implementors to also use a fixed point implementation. * * @return sizeLimit */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getSizeLimit() { return sizeLimit; } 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 6858edf721..ffd79036d6 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 @@ -25,7 +25,7 @@ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @@ -210,15 +210,14 @@ public V1Endpoint nodeName(String nodeName) { /** * nodeName represents the name of the Node hosting this endpoint. This can be used to determine - * endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature - * gate. + * endpoints local to a Node. * * @return nodeName */ @javax.annotation.Nullable @ApiModelProperty( value = - "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.") + "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.") public String getNodeName() { return nodeName; } 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 dd92957613..9e7d208b15 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "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 8fda604c0e..7c44db3c98 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "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 eedc0930db..2bb87ca4b0 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 @@ -24,7 +24,7 @@ description = "EndpointHints provides hints describing how an endpoint should be consumed.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; 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 fb88a63561..76efeec22d 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 @@ -29,7 +29,7 @@ "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; 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 78ce0c62fa..3b2a501fc8 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 11f3085911..c4720710fe 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 @@ -29,10 +29,10 @@ */ @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 ]") + "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 ]") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "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 00006aabe2..c3cc436451 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 @@ -30,10 +30,10 @@ */ @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 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}] }, ]") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a45f5c4805..ef13febfe6 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 @@ -23,7 +23,7 @@ @ApiModel(description = "EndpointsList is a list of endpoints.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 49c345cae5..3e84ae63af 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; 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 6d9a989da4..38cea718a2 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index 0d9e777587..b22c613065 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; 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 e4f00c1bfd..bae04a1f2a 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 @@ -25,15 +25,14 @@ * 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. This is a beta feature available on - * clusters that haven't disabled the EphemeralContainers feature gate. + * 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. This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.") + "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java index 189aec04b1..4bccd34680 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 @@ -22,7 +22,7 @@ description = "Represents an ephemeral volume that is handled by a normal storage driver.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; 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 56bc9dadb7..bd36e1d887 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 @@ -21,7 +21,7 @@ @ApiModel(description = "EventSource contains information for an event.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "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 47d058b94b..a72bdc52ce 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 @@ -27,7 +27,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//evictions.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 3f91bd7ed1..2bbe57b1ef 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ExecAction describes a \"run in container\" action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; 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 e7839b8fec..dabaf4d30f 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 @@ -23,7 +23,7 @@ "ExternalDocumentation allows referencing an external resource for extended documentation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "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 6cf538ee46..3b17fe94b2 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 8d4e5d7d79..843e0fbffe 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "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 0ef7e07c12..7898d08238 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "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 d3e5b0ca3d..a92c7dda40 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; 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 9a66a5d726..b01c6d8bd9 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 @@ -22,7 +22,7 @@ description = "ForZone provides information about which zones should consume this endpoint.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ForZone { public static final String SERIALIZED_NAME_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 fe2f6f53a0..8174d876b9 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 fe710bf83a..c9332baec4 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 @@ -19,7 +19,7 @@ /** V1GRPCAction */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "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 96e52b98a1..923ce3aaab 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "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 e65a3b1584..f6d0a85dd7 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "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 2ff04dd5d8..f08af8ca5c 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; 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 3b8c2f0f43..2bf92fceb7 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; 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 7158f1596d..1022c220ba 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 @@ -24,7 +24,7 @@ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "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 654c6df0d9..15c32d3a70 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 @@ -21,7 +21,7 @@ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HTTPHeader { public static final String SERIALIZED_NAME_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 59ba0cca14..16aef59fb2 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "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 8ab514d03c..184a637021 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:///? -> 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "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 ba72d9c3ff..4f2a0a696f 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 @@ -21,7 +21,7 @@ @ApiModel(description = "configuration of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 de959ea563..8ca87796ad 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 @@ -23,7 +23,7 @@ @ApiModel(description = "list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 7501ed86bf..19d7b6d4a3 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 @@ -21,7 +21,7 @@ @ApiModel(description = "specification of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; 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 d153201d9d..2b46ecc930 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 @@ -22,7 +22,7 @@ @ApiModel(description = "current status of a horizontal pod autoscaler") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; 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 37e9f8798d..93727fc89a 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; 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 5da9c6cd2c..d524bbeed5 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; 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 76e492b912..38eef4f6e3 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 @@ -30,7 +30,7 @@ "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "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 947b7515e9..ef9ffd89c2 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; 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 88b86e35c4..9f43f15763 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; 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 4b97bbe8b6..cbf431323e 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 558e1a00e5..0d8d6d38ae 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "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 ee67faae1a..ac4ba2b7d5 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 513123fcbf..6597fc7363 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e17ab6994f..dab1f34c94 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; 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 46a8fbc6ae..5fbede0735 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "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 59fed07075..ed1e8e860d 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressList is a collection of Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 12c0961bb0..94aa3b6f35 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "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 93e64ad0e1..403eabc236 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_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 15cd24e3d7..c273caab8d 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 @@ -23,7 +23,7 @@ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @@ -73,21 +73,21 @@ public V1IngressSpec ingressClassName(String ingressClassName) { } /** - * IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass - * defines which controller will implement the resource. This replaces the deprecated - * `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that - * annotation is set, it must be given precedence over this field. The controller may emit a - * warning if the field and annotation have different values. Implementations of this API should - * ignore Ingresses without a class specified. An IngressClass resource may be marked as default, - * which can be used to set a default value for this field. For more information, refer to the - * IngressClass documentation. + * IngressClassName is the name of an IngressClass cluster resource. Ingress controller + * implementations use this field to know whether they should be serving this Ingress resource, by + * a transitive connection (controller -> IngressClass -> Ingress resource). Although the + * `kubernetes.io/ingress.class` annotation (simple constant name) was never formally + * defined, it was widely supported by Ingress controllers to create a direct binding between + * Ingress controller and Ingress resources. Newly created Ingress resources should prefer using + * the field. However, even though the annotation is officially deprecated, for backwards + * compatibility reasons, ingress controllers should still honor that annotation if present. * * @return ingressClassName */ @javax.annotation.Nullable @ApiModelProperty( value = - "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.") + "IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.") public String getIngressClassName() { return ingressClassName; } 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 4143a2f362..cfde2e4e85 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 @@ -21,7 +21,7 @@ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; 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 dec2d6d3c1..4d85c16a48 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 @@ -24,7 +24,7 @@ description = "IngressTLS describes the transport layer security associated with an Ingress.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "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 e9b86ac8a2..f416230da8 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 @@ -27,7 +27,7 @@ "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$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 908c4f8d6d..ca9c2fbff0 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Job represents the configuration of a single job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 137e404075..9fd8e36abb 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 @@ -22,7 +22,7 @@ @ApiModel(description = "JobCondition describes current state of a job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; 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 6bdbe34c4e..97c73b0148 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 @@ -23,7 +23,7 @@ @ApiModel(description = "JobList is a collection of jobs.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 37c3ea199a..df0d3d4ca1 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 @@ -21,7 +21,7 @@ @ApiModel(description = "JobSpec describes how the job execution will look like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @@ -53,6 +53,11 @@ public class V1JobSpec { @SerializedName(SERIALIZED_NAME_PARALLELISM) private Integer parallelism; + public static final String SERIALIZED_NAME_POD_FAILURE_POLICY = "podFailurePolicy"; + + @SerializedName(SERIALIZED_NAME_POD_FAILURE_POLICY) + private V1PodFailurePolicy podFailurePolicy; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; @SerializedName(SERIALIZED_NAME_SELECTOR) @@ -239,6 +244,27 @@ public void setParallelism(Integer parallelism) { this.parallelism = parallelism; } + public V1JobSpec podFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + + this.podFailurePolicy = podFailurePolicy; + return this; + } + + /** + * Get podFailurePolicy + * + * @return podFailurePolicy + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodFailurePolicy getPodFailurePolicy() { + return podFailurePolicy; + } + + public void setPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + this.podFailurePolicy = podFailurePolicy; + } + public V1JobSpec selector(V1LabelSelector selector) { this.selector = selector; @@ -351,6 +377,7 @@ public boolean equals(java.lang.Object o) { && Objects.equals(this.completions, v1JobSpec.completions) && Objects.equals(this.manualSelector, v1JobSpec.manualSelector) && Objects.equals(this.parallelism, v1JobSpec.parallelism) + && Objects.equals(this.podFailurePolicy, v1JobSpec.podFailurePolicy) && Objects.equals(this.selector, v1JobSpec.selector) && Objects.equals(this.suspend, v1JobSpec.suspend) && Objects.equals(this.template, v1JobSpec.template) @@ -366,6 +393,7 @@ public int hashCode() { completions, manualSelector, parallelism, + podFailurePolicy, selector, suspend, template, @@ -384,6 +412,7 @@ public String toString() { sb.append(" completions: ").append(toIndentedString(completions)).append("\n"); sb.append(" manualSelector: ").append(toIndentedString(manualSelector)).append("\n"); sb.append(" parallelism: ").append(toIndentedString(parallelism)).append("\n"); + sb.append(" podFailurePolicy: ").append(toIndentedString(podFailurePolicy)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" suspend: ").append(toIndentedString(suspend)).append("\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); 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 37cc3bd67d..b02d705273 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 @@ -24,7 +24,7 @@ @ApiModel(description = "JobStatus represents the current state of a Job.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "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 a7e8973135..c00af18459 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 @@ -23,7 +23,7 @@ "JobTemplateSpec describes the data a Job should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "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 8d09f2e77b..b90970a238 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Maps a string key to a path within a volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "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 37e8027584..ccaa7b862f 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 @@ -31,7 +31,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; 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 81af321958..f5a39b5f86 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "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 278bbb50b6..2372ba551f 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Lease defines a lease concept.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 2fd6c3c65f..f5f46ade6f 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LeaseList is a list of Lease objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 19181ad17f..82a87bc9ce 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 @@ -22,7 +22,7 @@ @ApiModel(description = "LeaseSpec is a specification of a Lease.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; 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 5727fd35b3..ab26eca268 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; 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 18c5965049..39b8b6d544 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 @@ -26,7 +26,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "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 323386629f..4dd7e58e1d 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 @@ -22,7 +22,7 @@ description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e52f3afe5e..369f7b4295 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 @@ -26,7 +26,7 @@ "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "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 68d21e552a..3533fbb13d 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a1ad4f905a..e99d4cbd1e 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 @@ -24,7 +24,7 @@ description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; 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 a59b98c860..f10da200e9 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "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 1479d0ed74..0c5ac01bb6 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "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 d32240d728..ade82b90d0 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 @@ -23,7 +23,7 @@ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "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 c26a70a3c6..6963aa3633 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_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 c514095eb7..cba70d14a9 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 d049abbde7..7473b72d88 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 @@ -22,7 +22,7 @@ description = "Local represents directly-attached storage with node affinity (Beta feature)") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 5734b8b585..028dd9890e 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 @@ -27,7 +27,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6c3609c6f6..17b04421bb 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 @@ -27,7 +27,7 @@ "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; 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 1080da3a7c..6ea706fe88 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6a778341dd..a6f578c901 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 @@ -24,7 +24,7 @@ description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1584746307..9d6faf39b4 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; 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 dedb957532..aa550e3790 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 @@ -22,7 +22,7 @@ description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 875d98c741..1bdc9cc383 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 @@ -22,7 +22,7 @@ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 0bcda23ccc..9e32f73684 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceList is a list of Namespaces.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 3d867d5e12..051cf248f5 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "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 ada4148830..3ae6c2255f 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; 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 9bea6cc194..e03ff696ab 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 af60c50c40..372d4d38e1 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 @@ -29,7 +29,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") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "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 d03b222baf..c730dfc93c 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "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 4794687d96..2d9c83995e 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 b711a29422..cfb9d85619 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; 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 38955b7068..1436a5d575 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 @@ -22,7 +22,7 @@ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @@ -48,16 +48,14 @@ public V1NetworkPolicyPort endPort(Integer endPort) { /** * If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by * the policy. This field cannot be defined if the port field is not defined or if the port field - * is defined as a named (string) port. The endPort must be equal or greater than port. This - * feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate - * \"NetworkPolicyEndPort\". + * is defined as a named (string) port. The endPort must be equal or greater than port. * * @return endPort */ @javax.annotation.Nullable @ApiModelProperty( value = - "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".") + "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.") public Integer getEndPort() { return endPort; } 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 aa69246b8a..55c7c0538e 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java index 1a5938ebab..a97fd86124 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "NetworkPolicyStatus describe the current state of the NetworkPolicy.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NetworkPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; 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 b34c613c41..0bf9e07839 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e58415feb1..2a66f4dbd0 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NodeAddress contains information for the node's address.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "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 8bd21efaec..a9cc746e4e 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; 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 f6e66099b5..f363d0c003 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 @@ -22,7 +22,7 @@ @ApiModel(description = "NodeCondition contains condition information for a node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; 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 854e0aa611..a542bf9f50 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; 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 ccc64c7a97..455ac0dcba 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 @@ -23,7 +23,7 @@ "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "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 ce480f3a10..b4abbf4589 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; 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 2284a0abde..5fa2c1d532 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 @@ -24,7 +24,7 @@ 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 d03cce713b..cd17390a6a 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; 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 fb31fb7841..54db9cefa5 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "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 40e8254c6c..4b7fad7fd9 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; 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 24dc6782cd..3ee20edf18 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 @@ -23,7 +23,7 @@ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; 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 881411c244..81581aadeb 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 @@ -26,7 +26,7 @@ @ApiModel(description = "NodeStatus is information about the current status of a node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; 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 0111270622..3da652da73 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 @@ -21,7 +21,7 @@ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "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 2b1a704528..cc125926f1 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 @@ -26,7 +26,7 @@ "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; 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 219b502552..fb35ea0c78 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 @@ -24,7 +24,7 @@ description = "NonResourceRule holds information that describes a rule for the non-resource") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; 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 948773aa24..bfcb3c8c1d 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 ed8d66aecd..3661a4a31f 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 @@ -31,18 +31,13 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) private Map annotations = null; - public static final String SERIALIZED_NAME_CLUSTER_NAME = "clusterName"; - - @SerializedName(SERIALIZED_NAME_CLUSTER_NAME) - private String clusterName; - public static final String SERIALIZED_NAME_CREATION_TIMESTAMP = "creationTimestamp"; @SerializedName(SERIALIZED_NAME_CREATION_TIMESTAMP) @@ -147,31 +142,6 @@ public void setAnnotations(Map annotations) { this.annotations = annotations; } - public V1ObjectMeta clusterName(String clusterName) { - - this.clusterName = clusterName; - return this; - } - - /** - * Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; - * it will be removed completely in 1.25. The name in the go struct is changed to help clients - * detect accidental use. - * - * @return clusterName - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. The name in the go struct is changed to help clients detect accidental use.") - public String getClusterName() { - return clusterName; - } - - public void setClusterName(String clusterName) { - this.clusterName = clusterName; - } - public V1ObjectMeta creationTimestamp(OffsetDateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; @@ -597,7 +567,6 @@ public boolean equals(java.lang.Object o) { } V1ObjectMeta v1ObjectMeta = (V1ObjectMeta) o; return Objects.equals(this.annotations, v1ObjectMeta.annotations) - && Objects.equals(this.clusterName, v1ObjectMeta.clusterName) && Objects.equals(this.creationTimestamp, v1ObjectMeta.creationTimestamp) && Objects.equals(this.deletionGracePeriodSeconds, v1ObjectMeta.deletionGracePeriodSeconds) && Objects.equals(this.deletionTimestamp, v1ObjectMeta.deletionTimestamp) @@ -618,7 +587,6 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Objects.hash( annotations, - clusterName, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, @@ -640,7 +608,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ObjectMeta {\n"); sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); - sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); sb.append(" creationTimestamp: ").append(toIndentedString(creationTimestamp)).append("\n"); sb.append(" deletionGracePeriodSeconds: ") .append(toIndentedString(deletionGracePeriodSeconds)) 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 987961ccb9..ea9c9d7238 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 @@ -23,7 +23,7 @@ "ObjectReference contains enough information to let you inspect or modify the referred object.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6881f7d692..8408343fc3 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 @@ -26,7 +26,7 @@ "Overhead structure represents the resource overhead associated with running a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; 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 2ffa3dd13d..0fdede6cb9 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 51dcf2b5e0..46e6ee35b5 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 @@ -26,7 +26,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") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 b607ad64f6..797b29b0b4 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 @@ -22,7 +22,7 @@ description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a3f92d733e..63181620c9 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 @@ -22,7 +22,7 @@ @ApiModel(description = "PersistentVolumeClaimCondition contails details about state of pvc") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; 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 034cb615fe..81d7197445 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 81d9d5f3b4..5fbe169dbf 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; 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 271323d908..e4080d7c51 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 @@ -27,7 +27,7 @@ description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; 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 348699e80e..7dd3954791 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 @@ -26,7 +26,7 @@ "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "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 714036e62c..6784936bcc 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 @@ -28,7 +28,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).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; 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 852d29334e..53d0e0ec27 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 4bddb2a44d..b470ae939f 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 @@ -26,7 +26,7 @@ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; 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 fe15a331b2..7a1930b899 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_MESSAGE = "message"; 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 4bed4cd3b9..9292aadf31 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 f46da55b3c..0d80dcfb9a 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 c20d708b9e..f34ea10f24 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; 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 96a8ac0b33..0b21e901a5 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 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; 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 1882f16522..8f9806d82a 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 @@ -23,7 +23,7 @@ @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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; 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 ea8abecf71..8fae70335b 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 @@ -22,7 +22,7 @@ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; 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 7ac2e9b9f5..effba1e005 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 @@ -27,7 +27,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "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 38f6d6c9f0..dce6687798 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_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 4e2dc4a803..1b0e71b4e4 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 bc34eaf95d..3184ea8252 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 9827f72ec5..af76031b0e 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 @@ -22,7 +22,7 @@ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; 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 45096bb786..8c38ea651d 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 @@ -31,7 +31,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; 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 new file mode 100644 index 0000000000..490aa892bf --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java @@ -0,0 +1,99 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** 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 = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1PodFailurePolicy { + public static final String SERIALIZED_NAME_RULES = "rules"; + + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = new ArrayList<>(); + + public V1PodFailurePolicy rules(List rules) { + + this.rules = rules; + return this; + } + + public V1PodFailurePolicy addRulesItem(V1PodFailurePolicyRule rulesItem) { + this.rules.add(rulesItem); + return this; + } + + /** + * A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod + * failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the + * default handling applies - the counter of pod failures is incremented and it is checked against + * the backoffLimit. At most 20 elements are allowed. + * + * @return rules + */ + @ApiModelProperty( + required = true, + value = + "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.") + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodFailurePolicy v1PodFailurePolicy = (V1PodFailurePolicy) o; + return Objects.equals(this.rules, v1PodFailurePolicy.rules); + } + + @Override + public int hashCode() { + return Objects.hash(rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodFailurePolicy {\n"); + sb.append(" rules: ").append(toIndentedString(rules)).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/V1PodFailurePolicyOnExitCodesRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java new file mode 100644 index 0000000000..c06da94deb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java @@ -0,0 +1,179 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * 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 = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1PodFailurePolicyOnExitCodesRequirement { + public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; + + @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + private String containerName; + + 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 = new ArrayList<>(); + + public V1PodFailurePolicyOnExitCodesRequirement containerName(String containerName) { + + this.containerName = containerName; + return this; + } + + /** + * Restricts the check for exit codes to the container with the specified name. When null, the + * rule applies to all containers. When specified, it should match one the container or + * initContainer names in the pod template. + * + * @return containerName + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.") + public String getContainerName() { + return containerName; + } + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + public V1PodFailurePolicyOnExitCodesRequirement operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * Represents the relationship between the container exit code(s) and the specified values. + * Containers completed with success (exit code 0) are excluded from the requirement check. + * Possible values are: - In: the requirement is satisfied if at least one container exit code + * (might be multiple if there are multiple containers not restricted by the + * 'containerName' field) is in the set of specified values. - NotIn: the requirement is + * satisfied if at least one container exit code (might be multiple if there are multiple + * containers not restricted by the 'containerName' field) is not in the set of specified + * values. Additional values are considered to be added in the future. Clients should react to an + * unknown operator by assuming the requirement is not satisfied. + * + * @return operator + */ + @ApiModelProperty( + required = true, + value = + "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is in the set of specified values. - NotIn: the requirement is satisfied if at least one container exit code (might be multiple if there are multiple containers not restricted by the 'containerName' field) is not in the set of specified values. Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. ") + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public V1PodFailurePolicyOnExitCodesRequirement values(List values) { + + this.values = values; + return this; + } + + public V1PodFailurePolicyOnExitCodesRequirement addValuesItem(Integer valuesItem) { + this.values.add(valuesItem); + return this; + } + + /** + * Specifies the set of values. Each returned container exit code (might be multiple in case of + * multiple containers) is checked against this set of values with respect to the operator. The + * list of values must be ordered and must not contain duplicates. Value '0' cannot be + * used for the In operator. At least one element is required. At most 255 elements are allowed. + * + * @return values + */ + @ApiModelProperty( + required = true, + value = + "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.") + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodFailurePolicyOnExitCodesRequirement v1PodFailurePolicyOnExitCodesRequirement = + (V1PodFailurePolicyOnExitCodesRequirement) o; + return Objects.equals( + this.containerName, v1PodFailurePolicyOnExitCodesRequirement.containerName) + && Objects.equals(this.operator, v1PodFailurePolicyOnExitCodesRequirement.operator) + && Objects.equals(this.values, v1PodFailurePolicyOnExitCodesRequirement.values); + } + + @Override + public int hashCode() { + return Objects.hash(containerName, operator, values); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodFailurePolicyOnExitCodesRequirement {\n"); + sb.append(" containerName: ").append(toIndentedString(containerName)).append("\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/V1PodFailurePolicyOnPodConditionsPattern.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java new file mode 100644 index 0000000000..fff6340591 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -0,0 +1,127 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.Objects; + +/** + * 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 = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1PodFailurePolicyOnPodConditionsPattern { + public static final String SERIALIZED_NAME_STATUS = "status"; + + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public V1PodFailurePolicyOnPodConditionsPattern status(String status) { + + this.status = status; + return this; + } + + /** + * Specifies the required Pod condition status. To match a pod condition it is required that the + * specified status equals the pod condition status. Defaults to True. + * + * @return status + */ + @ApiModelProperty( + required = true, + value = + "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public V1PodFailurePolicyOnPodConditionsPattern type(String type) { + + this.type = type; + return this; + } + + /** + * Specifies the required Pod condition type. To match a pod condition it is required that + * specified type equals the pod condition type. + * + * @return type + */ + @ApiModelProperty( + required = true, + value = + "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodFailurePolicyOnPodConditionsPattern v1PodFailurePolicyOnPodConditionsPattern = + (V1PodFailurePolicyOnPodConditionsPattern) o; + return Objects.equals(this.status, v1PodFailurePolicyOnPodConditionsPattern.status) + && Objects.equals(this.type, v1PodFailurePolicyOnPodConditionsPattern.type); + } + + @Override + public int hashCode() { + return Objects.hash(status, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodFailurePolicyOnPodConditionsPattern {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(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/V1PodFailurePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java new file mode 100644 index 0000000000..4f2ea818aa --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java @@ -0,0 +1,169 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * 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 = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1PodFailurePolicyRule { + public static final String SERIALIZED_NAME_ACTION = "action"; + + @SerializedName(SERIALIZED_NAME_ACTION) + private String action; + + public static final String SERIALIZED_NAME_ON_EXIT_CODES = "onExitCodes"; + + @SerializedName(SERIALIZED_NAME_ON_EXIT_CODES) + private V1PodFailurePolicyOnExitCodesRequirement onExitCodes; + + public static final String SERIALIZED_NAME_ON_POD_CONDITIONS = "onPodConditions"; + + @SerializedName(SERIALIZED_NAME_ON_POD_CONDITIONS) + private List onPodConditions = new ArrayList<>(); + + public V1PodFailurePolicyRule action(String action) { + + this.action = action; + return this; + } + + /** + * Specifies the action taken on a pod failure when the requirements are satisfied. Possible + * values are: - FailJob: indicates that the pod's job is marked as Failed and all running + * pods are terminated. - Ignore: indicates that the counter towards the .backoffLimit is not + * incremented and a replacement pod is created. - Count: indicates that the pod is handled in the + * default way - the counter towards the .backoffLimit is incremented. Additional values are + * considered to be added in the future. Clients should react to an unknown action by skipping the + * rule. + * + * @return action + */ + @ApiModelProperty( + required = true, + value = + "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. ") + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public V1PodFailurePolicyRule onExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + + this.onExitCodes = onExitCodes; + return this; + } + + /** + * Get onExitCodes + * + * @return onExitCodes + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodFailurePolicyOnExitCodesRequirement getOnExitCodes() { + return onExitCodes; + } + + public void setOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + this.onExitCodes = onExitCodes; + } + + public V1PodFailurePolicyRule onPodConditions( + List onPodConditions) { + + this.onPodConditions = onPodConditions; + return this; + } + + public V1PodFailurePolicyRule addOnPodConditionsItem( + V1PodFailurePolicyOnPodConditionsPattern onPodConditionsItem) { + this.onPodConditions.add(onPodConditionsItem); + return this; + } + + /** + * Represents the requirement on the pod conditions. The requirement is represented as a list of + * pod condition patterns. The requirement is satisfied if at least one pattern matches an actual + * pod condition. At most 20 elements are allowed. + * + * @return onPodConditions + */ + @ApiModelProperty( + required = true, + value = + "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.") + public List getOnPodConditions() { + return onPodConditions; + } + + public void setOnPodConditions(List onPodConditions) { + this.onPodConditions = onPodConditions; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodFailurePolicyRule v1PodFailurePolicyRule = (V1PodFailurePolicyRule) o; + return Objects.equals(this.action, v1PodFailurePolicyRule.action) + && Objects.equals(this.onExitCodes, v1PodFailurePolicyRule.onExitCodes) + && Objects.equals(this.onPodConditions, v1PodFailurePolicyRule.onPodConditions); + } + + @Override + public int hashCode() { + return Objects.hash(action, onExitCodes, onPodConditions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodFailurePolicyRule {\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" onExitCodes: ").append(toIndentedString(onExitCodes)).append("\n"); + sb.append(" onPodConditions: ").append(toIndentedString(onPodConditions)).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/V1PodIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java index dc905dcaff..72f3b17e08 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 @@ -23,10 +23,10 @@ */ @ApiModel( description = - "IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster.") + "IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "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 75436f3c00..bf9fc9e31a 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodList is a list of Pods.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 ae3e812c17..5ef55187a6 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodOS defines the OS parameters of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodOS { public static final String SERIALIZED_NAME_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 d59c9658ee..74402eb5a4 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; 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 ee4eee2a7c..2c323dbaab 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; 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 9d31ed27eb..057e139ca7 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 @@ -26,7 +26,7 @@ @ApiModel(description = "PodSpec is a description of a pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @@ -89,6 +89,11 @@ public class V1PodSpec { @SerializedName(SERIALIZED_NAME_HOST_P_I_D) private Boolean hostPID; + public static final String SERIALIZED_NAME_HOST_USERS = "hostUsers"; + + @SerializedName(SERIALIZED_NAME_HOST_USERS) + private Boolean hostUsers; + public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) @@ -401,16 +406,14 @@ public V1PodSpec addEphemeralContainersItem(V1EphemeralContainer ephemeralContai * 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. This - * field is beta-level and available on clusters that haven't disabled the EphemeralContainers - * feature gate. + * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. * * @return ephemeralContainers */ @javax.annotation.Nullable @ApiModelProperty( value = - "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.") + "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.") public List getEphemeralContainers() { return ephemeralContainers; } @@ -517,6 +520,35 @@ public void setHostPID(Boolean hostPID) { this.hostPID = hostPID; } + public V1PodSpec hostUsers(Boolean hostUsers) { + + this.hostUsers = hostUsers; + return this; + } + + /** + * Use the host's user namespace. Optional: Default to true. If set to true or not present, + * the pod will be run in the host user namespace, useful for when the pod needs a feature only + * available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When + * set to false, a new userns is created for the pod. Setting false is useful for mitigating + * container breakout vulnerabilities even allowing users to run their containers as root without + * actually having root privileges on the host. This field is alpha-level and is only honored by + * servers that enable the UserNamespacesSupport feature. + * + * @return hostUsers + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.") + public Boolean getHostUsers() { + return hostUsers; + } + + public void setHostUsers(Boolean hostUsers) { + this.hostUsers = hostUsers; + } + public V1PodSpec hostname(String hostname) { this.hostname = hostname; @@ -1214,6 +1246,7 @@ public boolean equals(java.lang.Object o) { && Objects.equals(this.hostIPC, v1PodSpec.hostIPC) && Objects.equals(this.hostNetwork, v1PodSpec.hostNetwork) && Objects.equals(this.hostPID, v1PodSpec.hostPID) + && Objects.equals(this.hostUsers, v1PodSpec.hostUsers) && Objects.equals(this.hostname, v1PodSpec.hostname) && Objects.equals(this.imagePullSecrets, v1PodSpec.imagePullSecrets) && Objects.equals(this.initContainers, v1PodSpec.initContainers) @@ -1256,6 +1289,7 @@ public int hashCode() { hostIPC, hostNetwork, hostPID, + hostUsers, hostname, imagePullSecrets, initContainers, @@ -1304,6 +1338,7 @@ public String toString() { sb.append(" hostIPC: ").append(toIndentedString(hostIPC)).append("\n"); sb.append(" hostNetwork: ").append(toIndentedString(hostNetwork)).append("\n"); 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(" imagePullSecrets: ").append(toIndentedString(imagePullSecrets)).append("\n"); sb.append(" initContainers: ").append(toIndentedString(initContainers)).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 88793fac21..8ab1ef4c0c 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @@ -178,15 +178,12 @@ public V1PodStatus addEphemeralContainerStatusesItem( } /** - * Status for any ephemeral containers that have run in this pod. This field is beta-level and - * available on clusters that haven't disabled the EphemeralContainers feature gate. + * Status for any ephemeral containers that have run in this pod. * * @return ephemeralContainerStatuses */ @javax.annotation.Nullable - @ApiModelProperty( - value = - "Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.") + @ApiModelProperty(value = "Status for any ephemeral containers that have run in this pod.") public List getEphemeralContainerStatuses() { return ephemeralContainerStatuses; } 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 98e0e69600..f1c8a0be55 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 4f6cbd19f0..304eafb7c5 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 92e2d4e028..73875d1304 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 @@ -23,7 +23,7 @@ "PodTemplateSpec describes the data a pod should have when created from a template") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "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 b343c55919..ee085798bc 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @@ -72,14 +72,15 @@ public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { /** * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are * specified, any action requested against one of the enumerated resources in any API group will - * be allowed. + * be allowed. \"\" represents the core API group and \"*\" represents all API + * groups. * * @return apiGroups */ @javax.annotation.Nullable @ApiModelProperty( value = - "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.") + "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.") public List getApiGroups() { return apiGroups; } 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 f11571b512..5359cc849e 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 @@ -19,7 +19,7 @@ /** V1PortStatus */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "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 a543358a69..c76648478d 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 @@ -21,7 +21,7 @@ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 ff860bb12a..0c2e5c7fe9 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 @@ -23,7 +23,7 @@ "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; 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 97ad14ec2a..dd2f25765e 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 @@ -26,7 +26,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).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "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 4f0bd8d32b..22c76e3b68 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 7c691d9e36..585285b9cb 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 @@ -23,7 +23,7 @@ @ApiModel(description = "PriorityClassList is a collection of priority classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 f8df30d013..73583a0247 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "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 d05c6400b6..70319a1024 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 @@ -23,7 +23,7 @@ @ApiModel(description = "Represents a projected volume source") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; 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 7e9248ce1c..96cc600b54 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "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 028a8f5bdd..97ff089283 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 d27fa9f672..dc67764f35 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 0e90fdfcb7..ecb93cbdd3 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 @@ -23,7 +23,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a95d53d010..ae5bd8d1c6 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 @@ -23,7 +23,7 @@ description = "ReplicaSetCondition describes the state of a replica set at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 71af8adfef..c690160926 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 243bfb326d..4bec4dc313 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; 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 622ea50ae0..6fe323615e 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; 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 56c8319213..e101af0d86 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 @@ -22,7 +22,7 @@ description = "ReplicationController represents the configuration of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 ce31f7f31b..6b971e725f 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 @@ -27,7 +27,7 @@ "ReplicationControllerCondition describes the state of a replication controller at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 3ea3aa1764..a6484b606b 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 9a46cc2383..74263375a0 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 @@ -24,7 +24,7 @@ description = "ReplicationControllerSpec is the specification of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; 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 529998db52..f5ee044616 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 @@ -25,7 +25,7 @@ "ReplicationControllerStatus represents the current status of a replication controller.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; 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 03430288b1..14bc66d476 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 @@ -26,7 +26,7 @@ "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_GROUP = "group"; 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 7539e8e15c..18de6e74f0 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 @@ -24,7 +24,7 @@ "ResourceFieldSelector represents container resources (cpu, memory) and their output format") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @@ -71,41 +71,41 @@ public V1ResourceFieldSelector divisor(Quantity divisor) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized + * as \"1536Mi\" Note that the quantity will NEVER be internally represented by a + * floating point number. That is the whole point of this exercise. Non-canonical values will + * still parse as long as they are well formed, but will be re-emitted in their canonical form. + * (So always use canonical form, or don't diff.) This format is intended to make it difficult + * to use these numbers without writing some sort of special handling code in the hopes that that + * will cause implementors to also use a fixed point implementation. * * @return divisor */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getDivisor() { return divisor; } 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 e9ae860cde..b08ce30411 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 c9c092418c..fc3829b060 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e0d1c8c02c..894029ccfe 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 @@ -26,7 +26,7 @@ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "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 1b99615cc1..aa39ae949f 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 @@ -24,7 +24,7 @@ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "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 dc00371d25..a1aaa71c93 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 @@ -24,7 +24,7 @@ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; 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 13134ce801..b8be62de11 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; 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 bc0864d796..a598889347 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1a863786ec..7cd5b55b0e 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 @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6457522a7e..d333df2e84 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 ebacf2b9b7..0c18820be5 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RoleList is a collection of Roles") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 2ff20be44d..12976b3443 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 @@ -21,7 +21,7 @@ @ApiModel(description = "RoleRef contains information that points to the role being used") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; 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 b5d92b01e3..8e808244f2 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 @@ -22,7 +22,7 @@ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; 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 8fc8ad513d..d00dfd3183 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 @@ -22,7 +22,7 @@ @ApiModel(description = "Spec to control the desired behavior of rolling update.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; 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 2a9796cbc0..4e47b780ba 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 @@ -27,7 +27,7 @@ "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; 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 e47c508d64..a83be6d830 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; 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 edfcbc75cb..ffe2f28b99 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 @@ -29,7 +29,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/") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 cbcf84379e..5fb4cb8e10 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 @@ -23,7 +23,7 @@ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 4f336b9507..dc5423612c 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "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 f1999565da..6d40a2d73e 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Scale represents a scaling request for a resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 3e7dacfe1b..c6d410b5e7 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 71eec4f4fd..6aff844e12 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 665bd5fb8d..584c9053ed 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "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 0db9d5f587..6efde013c4 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "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 1cf4bd6889..3b161c9fd0 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 @@ -27,7 +27,7 @@ "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; 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 0681cc2e94..9600f2ad57 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; 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 90d161ef0f..72464cad19 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "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 75cec4f3f4..ef3994c721 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; 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 6cea7938c7..6d5aab5f82 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 @@ -28,7 +28,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 990e739910..9ac16589c3 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 @@ -26,7 +26,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_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 3b21b9bafa..29e1ff6461 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "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 d4d6a5c4b0..40ae942ea7 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 @@ -23,7 +23,7 @@ @ApiModel(description = "SecretList is a list of Secret.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 e106487788..65bf33138a 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "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 8a78506862..e82b498f04 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecretReference { public static final String SERIALIZED_NAME_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 816c9d5499..ae04854e31 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; 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 df6833525e..b983dd3f8e 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; 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 cfdb9102e8..11f3cf4c34 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 @@ -27,7 +27,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") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6e61524a17..16717dfb13 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; 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 49fc95c478..23354d23c8 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 @@ -31,7 +31,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 8b643b4964..7bee39d0fd 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 @@ -23,7 +23,7 @@ "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "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 c99e19c6d1..de10d3d504 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; 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 4e8fa2fde8..00898ba5cb 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6309b4c715..036ca26821 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 @@ -28,7 +28,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") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 824837489e..6c7ee54fd6 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 b6f6ffd178..8e2394c0a0 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).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "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 c68777ae16..8ae596d6e5 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 @@ -21,7 +21,7 @@ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; 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 c8247a287a..76a0fda43d 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceList holds a list of services.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 418efa7960..53606930f0 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 @@ -22,7 +22,7 @@ @ApiModel(description = "ServicePort contains information on service's port.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; 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 f26aaf736c..608d42779e 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 @@ -25,7 +25,7 @@ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @@ -302,18 +302,24 @@ public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy) { } /** - * externalTrafficPolicy denotes if this Service desires to route external traffic to node-local - * or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a - * second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced - * traffic spreading. \"Cluster\" obscures the client source IP and may cause a second - * hop to another node, but should have good overall load-spreading. + * externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the + * Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and + * LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way + * that assumes that external load balancers will take care of balancing the service traffic + * between nodes, and so each node will deliver traffic only to the node-local endpoints of the + * service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no + * endpoints will be dropped.) The default value, \"Cluster\", uses the standard + * behavior of routing to all endpoints evenly (possibly modified by topology and other features). + * Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always + * get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster + * may need to take traffic policy into account when picking a node. * * @return externalTrafficPolicy */ @javax.annotation.Nullable @ApiModelProperty( value = - "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. ") + "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. ") public String getExternalTrafficPolicy() { return externalTrafficPolicy; } @@ -335,14 +341,15 @@ public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort) { * automatically allocated. External systems (e.g. load-balancers) can use this port to determine * if a given node holds endpoints for this service or not. If this field is specified when * creating a Service which does not need it, creation will fail. This field will be wiped when - * updating a Service to no longer need it (e.g. changing type). + * updating a Service to no longer need it (e.g. changing type). This field cannot be updated once + * set. * * @return healthCheckNodePort */ @javax.annotation.Nullable @ApiModelProperty( value = - "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).") + "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.") public Integer getHealthCheckNodePort() { return healthCheckNodePort; } @@ -358,18 +365,18 @@ public V1ServiceSpec internalTrafficPolicy(String internalTrafficPolicy) { } /** - * InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all - * endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a - * Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, - * traffic is dropped if no node-local endpoints are ready. The default value is - * \"Cluster\". + * InternalTrafficPolicy describes how nodes distribute service traffic they receive on the + * ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to + * endpoints of the service on the same node as the pod, dropping the traffic if there are no + * local endpoints. The default value, \"Cluster\", uses the standard behavior of + * routing to all endpoints evenly (possibly modified by topology and other features). * * @return internalTrafficPolicy */ @javax.annotation.Nullable @ApiModelProperty( value = - "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".") + "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).") public String getInternalTrafficPolicy() { return internalTrafficPolicy; } 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 4a836f3b58..726f3075f5 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 @@ -23,7 +23,7 @@ @ApiModel(description = "ServiceStatus represents the current status of a service.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "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 5db0f4a15f..fbd7a92325 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; 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 f456aa6934..36a9ed5989 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 @@ -25,10 +25,10 @@ */ @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.") + "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 6e8e1dd260..66a5b3ce94 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 @@ -23,7 +23,7 @@ description = "StatefulSetCondition describes the state of a statefulset at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 38753096ab..1f5d4976e4 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 bd9c7df5f2..76db07b47d 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 @@ -26,7 +26,7 @@ "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; 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 82af06ec86..4c6d178d88 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 @@ -23,7 +23,7 @@ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @@ -85,15 +85,14 @@ public V1StatefulSetSpec minReadySeconds(Integer minReadySeconds) { /** * Minimum number of seconds for which a newly created pod should be ready without any of its * container crashing for it to be considered available. Defaults to 0 (pod will be considered - * available as soon as it is ready) This is an alpha field and requires enabling - * StatefulSetMinReadySeconds feature gate. + * available as soon as it is ready) * * @return minReadySeconds */ @javax.annotation.Nullable @ApiModelProperty( value = - "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.") + "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") public Integer getMinReadySeconds() { return minReadySeconds; } 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 3b0905cb20..6dcbc9af1d 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @@ -83,15 +83,14 @@ public V1StatefulSetStatus availableReplicas(Integer availableReplicas) { /** * Total number of available pods (ready for at least minReadySeconds) targeted by this - * statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature - * gate. + * statefulset. * * @return availableReplicas */ @javax.annotation.Nullable @ApiModelProperty( value = - "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.") + "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.") public Integer getAvailableReplicas() { return availableReplicas; } 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 4e34127643..8bb824d929 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; 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 a5ccddf08c..f26b26f306 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 @@ -21,7 +21,7 @@ @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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 90e2f861e9..19b8187f62 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "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 7960423556..9ef3fe2829 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "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 a2377520f0..6e75c1e72e 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 @@ -31,7 +31,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; 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 8fa757d57b..996349bdd9 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 @@ -23,7 +23,7 @@ @ApiModel(description = "StorageClassList is a collection of storage classes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 5044796cde..6938eddc69 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a StorageOS persistent volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 250aa35ef7..cc6b0fd6f7 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a StorageOS persistent volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java index eb1780d064..cd8af0bb61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Subject.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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; 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 3f5c40937f..a47e36bb46 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 @@ -23,7 +23,7 @@ "SubjectAccessReview checks whether or not a user or group can perform an action.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 5101ef6f91..0d9f7e2d84 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 @@ -30,7 +30,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "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 67ee38c535..a4d93bc315 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 @@ -21,7 +21,7 @@ @ApiModel(description = "SubjectAccessReviewStatus") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "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 4263810aae..f3fb90f633 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 @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; 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 697119a39a..2099b192f9 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Sysctl defines a kernel parameter to be set") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Sysctl { public static final String SERIALIZED_NAME_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 cb2879ac0a..0311ab58d8 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 @@ -22,7 +22,7 @@ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "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 1385e7b971..d97a41d237 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 @@ -27,7 +27,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java index 63b39057c8..983c68f109 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @@ -52,7 +52,7 @@ public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { } /** - * Audiences are the intendend audiences of the token. A recipient of a token must identitfy + * Audiences are the intendend audiences of the token. A recipient of a token must identify * themself with an identifier in the list of audiences of the token, and otherwise should reject * the token. A token issued for multiple audiences may be used to authenticate against any of the * audiences listed but implies a high degree of trust between the target audiences. @@ -62,7 +62,7 @@ public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { @ApiModelProperty( required = true, value = - "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") + "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") public List getAudiences() { return audiences; } 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 c351840176..0bb886809f 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 @@ -22,7 +22,7 @@ @ApiModel(description = "TokenRequestStatus is the result of a token request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; 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 3265886b43..5e163532ed 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 @@ -26,7 +26,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 17f578a841..2469855fa8 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "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 1a87d1f3d3..8bf4cbbc1b 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 @@ -23,7 +23,7 @@ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "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 2b112bbbcc..8efbf521ae 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "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 0badfdb182..3210fb7155 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "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 781677b658..58b8a094f9 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; 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 26524f4067..fe24de6672 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 @@ -15,6 +15,8 @@ import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; /** TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ @@ -23,13 +25,18 @@ "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) private V1LabelSelector labelSelector; + public static final String SERIALIZED_NAME_MATCH_LABEL_KEYS = "matchLabelKeys"; + + @SerializedName(SERIALIZED_NAME_MATCH_LABEL_KEYS) + private List matchLabelKeys = null; + public static final String SERIALIZED_NAME_MAX_SKEW = "maxSkew"; @SerializedName(SERIALIZED_NAME_MAX_SKEW) @@ -40,6 +47,16 @@ public class V1TopologySpreadConstraint { @SerializedName(SERIALIZED_NAME_MIN_DOMAINS) private Integer minDomains; + public static final String SERIALIZED_NAME_NODE_AFFINITY_POLICY = "nodeAffinityPolicy"; + + @SerializedName(SERIALIZED_NAME_NODE_AFFINITY_POLICY) + private String nodeAffinityPolicy; + + public static final String SERIALIZED_NAME_NODE_TAINTS_POLICY = "nodeTaintsPolicy"; + + @SerializedName(SERIALIZED_NAME_NODE_TAINTS_POLICY) + private String nodeTaintsPolicy; + public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) @@ -71,6 +88,41 @@ public void setLabelSelector(V1LabelSelector labelSelector) { this.labelSelector = labelSelector; } + public V1TopologySpreadConstraint matchLabelKeys(List matchLabelKeys) { + + this.matchLabelKeys = matchLabelKeys; + return this; + } + + public V1TopologySpreadConstraint addMatchLabelKeysItem(String matchLabelKeysItem) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList<>(); + } + this.matchLabelKeys.add(matchLabelKeysItem); + return this; + } + + /** + * MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be + * calculated. The keys are used to lookup values from the incoming pod labels, those key-value + * labels are ANDed with labelSelector to select the group of existing pods over which spreading + * will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels + * will be ignored. A null or empty list means only match against labelSelector. + * + * @return matchLabelKeys + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.") + public List getMatchLabelKeys() { + return matchLabelKeys; + } + + public void setMatchLabelKeys(List matchLabelKeys) { + this.matchLabelKeys = matchLabelKeys; + } + public V1TopologySpreadConstraint maxSkew(Integer maxSkew) { this.maxSkew = maxSkew; @@ -125,14 +177,15 @@ public V1TopologySpreadConstraint minDomains(Integer minDomains) { * domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this * situation, new pod with the same labelSelector cannot be scheduled, because computed skew will * be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is - * an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate. + * a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled + * by default). * * @return minDomains */ @javax.annotation.Nullable @ApiModelProperty( value = - "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate.") + "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).") public Integer getMinDomains() { return minDomains; } @@ -141,6 +194,61 @@ public void setMinDomains(Integer minDomains) { this.minDomains = minDomains; } + public V1TopologySpreadConstraint nodeAffinityPolicy(String nodeAffinityPolicy) { + + this.nodeAffinityPolicy = nodeAffinityPolicy; + return this; + } + + /** + * NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when + * calculating pod topology spread skew. Options are: - Honor: only nodes matching + * nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector + * are ignored. All nodes are included in the calculations. If this value is nil, the behavior is + * equivalent to the Honor policy. This is a alpha-level feature enabled by the + * NodeInclusionPolicyInPodTopologySpread feature flag. + * + * @return nodeAffinityPolicy + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.") + public String getNodeAffinityPolicy() { + return nodeAffinityPolicy; + } + + public void setNodeAffinityPolicy(String nodeAffinityPolicy) { + this.nodeAffinityPolicy = nodeAffinityPolicy; + } + + public V1TopologySpreadConstraint nodeTaintsPolicy(String nodeTaintsPolicy) { + + this.nodeTaintsPolicy = nodeTaintsPolicy; + return this; + } + + /** + * NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread + * skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the + * incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are + * included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a + * alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + * + * @return nodeTaintsPolicy + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.") + public String getNodeTaintsPolicy() { + return nodeTaintsPolicy; + } + + public void setNodeTaintsPolicy(String nodeTaintsPolicy) { + this.nodeTaintsPolicy = nodeTaintsPolicy; + } + public V1TopologySpreadConstraint topologyKey(String topologyKey) { this.topologyKey = topologyKey; @@ -152,9 +260,9 @@ public V1TopologySpreadConstraint topologyKey(String topologyKey) { * values are considered to be in the same topology. We consider each <key, value> as a * \"bucket\", and try to put balanced number of pods into each bucket. We define a * domain as a particular instance of a topology. Also, we define an eligible domain as a domain - * whose nodes match the node selector. e.g. If TopologyKey is - * \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if - * TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that + * whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If + * TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. + * And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that * topology. It's a required field. * * @return topologyKey @@ -162,7 +270,7 @@ public V1TopologySpreadConstraint topologyKey(String topologyKey) { @ApiModelProperty( required = true, value = - "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes match the node selector. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.") + "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.") public String getTopologyKey() { return topologyKey; } @@ -214,15 +322,26 @@ public boolean equals(java.lang.Object o) { } V1TopologySpreadConstraint v1TopologySpreadConstraint = (V1TopologySpreadConstraint) o; return Objects.equals(this.labelSelector, v1TopologySpreadConstraint.labelSelector) + && Objects.equals(this.matchLabelKeys, v1TopologySpreadConstraint.matchLabelKeys) && Objects.equals(this.maxSkew, v1TopologySpreadConstraint.maxSkew) && Objects.equals(this.minDomains, v1TopologySpreadConstraint.minDomains) + && Objects.equals(this.nodeAffinityPolicy, v1TopologySpreadConstraint.nodeAffinityPolicy) + && Objects.equals(this.nodeTaintsPolicy, v1TopologySpreadConstraint.nodeTaintsPolicy) && Objects.equals(this.topologyKey, v1TopologySpreadConstraint.topologyKey) && Objects.equals(this.whenUnsatisfiable, v1TopologySpreadConstraint.whenUnsatisfiable); } @Override public int hashCode() { - return Objects.hash(labelSelector, maxSkew, minDomains, topologyKey, whenUnsatisfiable); + return Objects.hash( + labelSelector, + matchLabelKeys, + maxSkew, + minDomains, + nodeAffinityPolicy, + nodeTaintsPolicy, + topologyKey, + whenUnsatisfiable); } @Override @@ -230,8 +349,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TopologySpreadConstraint {\n"); sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" matchLabelKeys: ").append(toIndentedString(matchLabelKeys)).append("\n"); sb.append(" maxSkew: ").append(toIndentedString(maxSkew)).append("\n"); sb.append(" minDomains: ").append(toIndentedString(minDomains)).append("\n"); + sb.append(" nodeAffinityPolicy: ").append(toIndentedString(nodeAffinityPolicy)).append("\n"); + sb.append(" nodeTaintsPolicy: ").append(toIndentedString(nodeTaintsPolicy)).append("\n"); sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); sb.append(" whenUnsatisfiable: ").append(toIndentedString(whenUnsatisfiable)).append("\n"); sb.append("}"); 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 0b8a751c93..97b78456c4 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; 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 c13212481b..9ff1094125 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "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 3f37e08bc4..8acdeaa9be 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 @@ -27,7 +27,7 @@ "UserInfo holds the information about the user needed to implement the user.Info interface.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; 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 02baea6c04..89c657eb23 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 @@ -27,7 +27,7 @@ "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; 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 c75526af8e..1bed7e12a9 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 79865fe03a..5bfb419b72 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 @@ -24,7 +24,7 @@ description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 44a4078243..df6c6fa821 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 @@ -23,7 +23,7 @@ "ValidationRule describes a validation rule written in the CEL expression language.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1ValidationRule { public static final String SERIALIZED_NAME_MESSAGE = "message"; 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 7a57ad552d..dd0a70b566 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 @@ -23,7 +23,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; 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 4259e2979e..2cf6a1b40a 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 8435234d5c..a563fbe10a 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 1ac2ba8006..b9a4125827 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 @@ -27,7 +27,7 @@ "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; 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 57fa3d71f9..524c530838 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 @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "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 13b0b4f588..84c58c825f 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 @@ -23,7 +23,7 @@ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; 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 bc3cb032dd..26de0c58fc 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 @@ -22,7 +22,7 @@ description = "volumeDevice describes a mapping of a raw block device within a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; 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 5ac18248d7..c4963d9206 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 @@ -22,7 +22,7 @@ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeError { public static final String SERIALIZED_NAME_MESSAGE = "message"; 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 c489cee47e..5280ca57a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -21,7 +21,7 @@ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; 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 c75158627e..3565439d36 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 @@ -25,7 +25,7 @@ "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "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 117e8c08d6..3df200af17 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 @@ -22,7 +22,7 @@ description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "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 b93ce682f3..9b36a339e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java @@ -21,7 +21,7 @@ @ApiModel(description = "Projection that may be projected along with other supported volume types") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; 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 b30dc96c7d..ab4d42cc7e 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Represents a vSphere volume resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; 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 5fe998348d..c50973f739 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Event represents a single event to a watched resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "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 e8cc4edcb8..95092f026e 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 @@ -23,7 +23,7 @@ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; 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 1cc50c2778..350a4ac63f 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; 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 20ced2a64b..8eb859c1e0 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 @@ -22,7 +22,7 @@ description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java similarity index 68% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java index 2fd1d0d89f..8c3c93a460 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDR.java @@ -18,16 +18,21 @@ import java.util.Objects; /** - * PodSecurityPolicy governs the ability to make requests that affect the Security Context that will - * be applied to a pod and container. Deprecated in 1.21. + * ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the + * MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may + * have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR + * for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches + * the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR + * resources, the allocator will attempt to break ties using internal heuristics, but any + * ClusterCIDR whose node selector matches the Node may be used. */ @ApiModel( description = - "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.") + "ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodSecurityPolicy implements io.kubernetes.client.common.KubernetesObject { + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1alpha1ClusterCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -46,9 +51,9 @@ public class V1beta1PodSecurityPolicy implements io.kubernetes.client.common.Kub public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - private V1beta1PodSecurityPolicySpec spec; + private V1alpha1ClusterCIDRSpec spec; - public V1beta1PodSecurityPolicy apiVersion(String apiVersion) { + public V1alpha1ClusterCIDR apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -74,7 +79,7 @@ public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } - public V1beta1PodSecurityPolicy kind(String kind) { + public V1alpha1ClusterCIDR kind(String kind) { this.kind = kind; return this; @@ -100,7 +105,7 @@ public void setKind(String kind) { this.kind = kind; } - public V1beta1PodSecurityPolicy metadata(V1ObjectMeta metadata) { + public V1alpha1ClusterCIDR metadata(V1ObjectMeta metadata) { this.metadata = metadata; return this; @@ -121,7 +126,7 @@ public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } - public V1beta1PodSecurityPolicy spec(V1beta1PodSecurityPolicySpec spec) { + public V1alpha1ClusterCIDR spec(V1alpha1ClusterCIDRSpec spec) { this.spec = spec; return this; @@ -134,11 +139,11 @@ public V1beta1PodSecurityPolicy spec(V1beta1PodSecurityPolicySpec spec) { */ @javax.annotation.Nullable @ApiModelProperty(value = "") - public V1beta1PodSecurityPolicySpec getSpec() { + public V1alpha1ClusterCIDRSpec getSpec() { return spec; } - public void setSpec(V1beta1PodSecurityPolicySpec spec) { + public void setSpec(V1alpha1ClusterCIDRSpec spec) { this.spec = spec; } @@ -150,11 +155,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1PodSecurityPolicy v1beta1PodSecurityPolicy = (V1beta1PodSecurityPolicy) o; - return Objects.equals(this.apiVersion, v1beta1PodSecurityPolicy.apiVersion) - && Objects.equals(this.kind, v1beta1PodSecurityPolicy.kind) - && Objects.equals(this.metadata, v1beta1PodSecurityPolicy.metadata) - && Objects.equals(this.spec, v1beta1PodSecurityPolicy.spec); + V1alpha1ClusterCIDR v1alpha1ClusterCIDR = (V1alpha1ClusterCIDR) o; + return Objects.equals(this.apiVersion, v1alpha1ClusterCIDR.apiVersion) + && Objects.equals(this.kind, v1alpha1ClusterCIDR.kind) + && Objects.equals(this.metadata, v1alpha1ClusterCIDR.metadata) + && Objects.equals(this.spec, v1alpha1ClusterCIDR.spec); } @Override @@ -165,7 +170,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodSecurityPolicy {\n"); + sb.append("class V1alpha1ClusterCIDR {\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/V1beta1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java similarity index 79% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java index 1823df4c82..47d5def092 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRList.java @@ -19,12 +19,12 @@ import java.util.List; import java.util.Objects; -/** RuntimeClassList is a list of RuntimeClass objects. */ -@ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") +/** ClusterCIDRList contains a list of ClusterCIDR. */ +@ApiModel(description = "ClusterCIDRList contains a list of ClusterCIDR.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1alpha1ClusterCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -33,7 +33,7 @@ public class V1beta1RuntimeClassList implements io.kubernetes.client.common.Kube 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"; @@ -45,7 +45,7 @@ public class V1beta1RuntimeClassList implements io.kubernetes.client.common.Kube @SerializedName(SERIALIZED_NAME_METADATA) private V1ListMeta metadata; - public V1beta1RuntimeClassList apiVersion(String apiVersion) { + public V1alpha1ClusterCIDRList apiVersion(String apiVersion) { this.apiVersion = apiVersion; return this; @@ -71,32 +71,32 @@ public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } - public V1beta1RuntimeClassList items(List items) { + public V1alpha1ClusterCIDRList items(List items) { this.items = items; return this; } - public V1beta1RuntimeClassList addItemsItem(V1beta1RuntimeClass itemsItem) { + public V1alpha1ClusterCIDRList addItemsItem(V1alpha1ClusterCIDR itemsItem) { this.items.add(itemsItem); return this; } /** - * Items is a list of schema objects. + * Items is the list of ClusterCIDRs. * * @return items */ - @ApiModelProperty(required = true, value = "Items is a list of schema objects.") - public List getItems() { + @ApiModelProperty(required = true, value = "Items is the list of ClusterCIDRs.") + public List getItems() { return items; } - public void setItems(List items) { + public void setItems(List items) { this.items = items; } - public V1beta1RuntimeClassList kind(String kind) { + public V1alpha1ClusterCIDRList kind(String kind) { this.kind = kind; return this; @@ -122,7 +122,7 @@ public void setKind(String kind) { this.kind = kind; } - public V1beta1RuntimeClassList metadata(V1ListMeta metadata) { + public V1alpha1ClusterCIDRList metadata(V1ListMeta metadata) { this.metadata = metadata; return this; @@ -151,11 +151,11 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1beta1RuntimeClassList v1beta1RuntimeClassList = (V1beta1RuntimeClassList) o; - return Objects.equals(this.apiVersion, v1beta1RuntimeClassList.apiVersion) - && Objects.equals(this.items, v1beta1RuntimeClassList.items) - && Objects.equals(this.kind, v1beta1RuntimeClassList.kind) - && Objects.equals(this.metadata, v1beta1RuntimeClassList.metadata); + V1alpha1ClusterCIDRList v1alpha1ClusterCIDRList = (V1alpha1ClusterCIDRList) o; + return Objects.equals(this.apiVersion, v1alpha1ClusterCIDRList.apiVersion) + && Objects.equals(this.items, v1alpha1ClusterCIDRList.items) + && Objects.equals(this.kind, v1alpha1ClusterCIDRList.kind) + && Objects.equals(this.metadata, v1alpha1ClusterCIDRList.metadata); } @Override @@ -166,7 +166,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1RuntimeClassList {\n"); + sb.append("class V1alpha1ClusterCIDRList {\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/V1alpha1ClusterCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java new file mode 100644 index 0000000000..26c0f82dac --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterCIDRSpec.java @@ -0,0 +1,183 @@ +/* +Copyright 2022 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.Objects; + +/** ClusterCIDRSpec defines the desired state of ClusterCIDR. */ +@ApiModel(description = "ClusterCIDRSpec defines the desired state of ClusterCIDR.") +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") +public class V1alpha1ClusterCIDRSpec { + public static final String SERIALIZED_NAME_IPV4 = "ipv4"; + + @SerializedName(SERIALIZED_NAME_IPV4) + private String ipv4; + + public static final String SERIALIZED_NAME_IPV6 = "ipv6"; + + @SerializedName(SERIALIZED_NAME_IPV6) + private String ipv6; + + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) + private V1NodeSelector nodeSelector; + + public static final String SERIALIZED_NAME_PER_NODE_HOST_BITS = "perNodeHostBits"; + + @SerializedName(SERIALIZED_NAME_PER_NODE_HOST_BITS) + private Integer perNodeHostBits; + + public V1alpha1ClusterCIDRSpec ipv4(String ipv4) { + + this.ipv4 = ipv4; + return this; + } + + /** + * IPv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of + * IPv4 and IPv6 must be specified. This field is immutable. + * + * @return ipv4 + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "IPv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.") + public String getIpv4() { + return ipv4; + } + + public void setIpv4(String ipv4) { + this.ipv4 = ipv4; + } + + public V1alpha1ClusterCIDRSpec ipv6(String ipv6) { + + this.ipv6 = ipv6; + return this; + } + + /** + * IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At + * least one of IPv4 and IPv6 must be specified. This field is immutable. + * + * @return ipv6 + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.") + public String getIpv6() { + return ipv6; + } + + public void setIpv6(String ipv6) { + this.ipv6 = ipv6; + } + + public V1alpha1ClusterCIDRSpec 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 V1alpha1ClusterCIDRSpec perNodeHostBits(Integer perNodeHostBits) { + + this.perNodeHostBits = perNodeHostBits; + return this; + } + + /** + * PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask + * determines how much of the address is used for network bits and host bits. For example an IPv4 + * address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits + * for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 + * for IPv6). Minimum value is 4 (16 IPs). This field is immutable. + * + * @return perNodeHostBits + */ + @ApiModelProperty( + required = true, + value = + "PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.") + public Integer getPerNodeHostBits() { + return perNodeHostBits; + } + + public void setPerNodeHostBits(Integer perNodeHostBits) { + this.perNodeHostBits = perNodeHostBits; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ClusterCIDRSpec v1alpha1ClusterCIDRSpec = (V1alpha1ClusterCIDRSpec) o; + return Objects.equals(this.ipv4, v1alpha1ClusterCIDRSpec.ipv4) + && Objects.equals(this.ipv6, v1alpha1ClusterCIDRSpec.ipv6) + && Objects.equals(this.nodeSelector, v1alpha1ClusterCIDRSpec.nodeSelector) + && Objects.equals(this.perNodeHostBits, v1alpha1ClusterCIDRSpec.perNodeHostBits); + } + + @Override + public int hashCode() { + return Objects.hash(ipv4, ipv6, nodeSelector, perNodeHostBits); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ClusterCIDRSpec {\n"); + sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); + sb.append(" ipv6: ").append(toIndentedString(ipv6)).append("\n"); + sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" perNodeHostBits: ").append(toIndentedString(perNodeHostBits)).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 c4cfcd62d6..64ddee52ec 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; 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 e9fd0d00e7..c5da365d0e 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 @@ -21,7 +21,7 @@ @ApiModel(description = "Storage version of a specific resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 a08ab5d75b..1afcaf474b 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 @@ -22,7 +22,7 @@ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 53bb6beb05..9901826ceb 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 @@ -23,7 +23,7 @@ @ApiModel(description = "A list of StorageVersions.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 9f4054eb90..d3294dab28 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 @@ -28,7 +28,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java deleted file mode 100644 index 04d40ba35f..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedCSIDriver.java +++ /dev/null @@ -1,88 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. */ -@ApiModel( - description = - "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1AllowedCSIDriver { - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public V1beta1AllowedCSIDriver name(String name) { - - this.name = name; - return this; - } - - /** - * Name is the registered name of the CSI driver - * - * @return name - */ - @ApiModelProperty(required = true, value = "Name is the registered name of the CSI driver") - 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; - } - V1beta1AllowedCSIDriver v1beta1AllowedCSIDriver = (V1beta1AllowedCSIDriver) o; - return Objects.equals(this.name, v1beta1AllowedCSIDriver.name); - } - - @Override - public int hashCode() { - return Objects.hash(name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1AllowedCSIDriver {\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/V1beta1AllowedFlexVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolume.java deleted file mode 100644 index bb225a86d6..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedFlexVolume.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** AllowedFlexVolume represents a single Flexvolume that is allowed to be used. */ -@ApiModel( - description = "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1AllowedFlexVolume { - public static final String SERIALIZED_NAME_DRIVER = "driver"; - - @SerializedName(SERIALIZED_NAME_DRIVER) - private String driver; - - public V1beta1AllowedFlexVolume driver(String driver) { - - this.driver = driver; - return this; - } - - /** - * driver is the name of the Flexvolume driver. - * - * @return driver - */ - @ApiModelProperty(required = true, value = "driver is the name of the Flexvolume driver.") - public String getDriver() { - return driver; - } - - public void setDriver(String driver) { - this.driver = driver; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1AllowedFlexVolume v1beta1AllowedFlexVolume = (V1beta1AllowedFlexVolume) o; - return Objects.equals(this.driver, v1beta1AllowedFlexVolume.driver); - } - - @Override - public int hashCode() { - return Objects.hash(driver); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1AllowedFlexVolume {\n"); - sb.append(" driver: ").append(toIndentedString(driver)).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/V1beta1AllowedHostPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPath.java deleted file mode 100644 index bf02faf778..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllowedHostPath.java +++ /dev/null @@ -1,128 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to - * use. It requires the path prefix to be defined. - */ -@ApiModel( - description = - "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1AllowedHostPath { - public static final String SERIALIZED_NAME_PATH_PREFIX = "pathPrefix"; - - @SerializedName(SERIALIZED_NAME_PATH_PREFIX) - private String pathPrefix; - - public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; - - @SerializedName(SERIALIZED_NAME_READ_ONLY) - private Boolean readOnly; - - public V1beta1AllowedHostPath pathPrefix(String pathPrefix) { - - this.pathPrefix = pathPrefix; - return this; - } - - /** - * pathPrefix is the path prefix that the host volume must match. It does not support - * `*`. Trailing slashes are trimmed when validating the path prefix with a host path. - * Examples: `/foo` would allow `/foo`, `/foo/` and - * `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` - * - * @return pathPrefix - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`") - public String getPathPrefix() { - return pathPrefix; - } - - public void setPathPrefix(String pathPrefix) { - this.pathPrefix = pathPrefix; - } - - public V1beta1AllowedHostPath readOnly(Boolean readOnly) { - - this.readOnly = readOnly; - return this; - } - - /** - * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are - * readOnly. - * - * @return readOnly - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.") - public Boolean getReadOnly() { - return readOnly; - } - - public void setReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1AllowedHostPath v1beta1AllowedHostPath = (V1beta1AllowedHostPath) o; - return Objects.equals(this.pathPrefix, v1beta1AllowedHostPath.pathPrefix) - && Objects.equals(this.readOnly, v1beta1AllowedHostPath.readOnly); - } - - @Override - public int hashCode() { - return Objects.hash(pathPrefix, readOnly); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1AllowedHostPath {\n"); - sb.append(" pathPrefix: ").append(toIndentedString(pathPrefix)).append("\n"); - sb.append(" readOnly: ").append(toIndentedString(readOnly)).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/V1beta1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java index b318ed8000..022320312a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacity.java @@ -40,7 +40,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @@ -112,41 +112,41 @@ public V1beta1CSIStorageCapacity capacity(Quantity capacity) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized + * as \"1536Mi\" Note that the quantity will NEVER be internally represented by a + * floating point number. That is the whole point of this exercise. Non-canonical values will + * still parse as long as they are well formed, but will be re-emitted in their canonical form. + * (So always use canonical form, or don't diff.) This format is intended to make it difficult + * to use these numbers without writing some sort of special handling code in the hopes that that + * will cause implementors to also use a fixed point implementation. * * @return capacity */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getCapacity() { return capacity; } @@ -190,41 +190,41 @@ public V1beta1CSIStorageCapacity maximumVolumeSize(Quantity maximumVolumeSize) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized + * as \"1536Mi\" Note that the quantity will NEVER be internally represented by a + * floating point number. That is the whole point of this exercise. Non-canonical values will + * still parse as long as they are well formed, but will be re-emitted in their canonical form. + * (So always use canonical form, or don't diff.) This format is intended to make it difficult + * to use these numbers without writing some sort of special handling code in the hopes that that + * will cause implementors to also use a fixed point implementation. * * @return maximumVolumeSize */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") public Quantity getMaximumVolumeSize() { return maximumVolumeSize; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java index 41685538c3..1ecc9911d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CSIStorageCapacityList.java @@ -23,7 +23,7 @@ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java deleted file mode 100644 index 934daa5e7b..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJob.java +++ /dev/null @@ -1,209 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1CronJob 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 V1beta1CronJobSpec spec; - - public static final String SERIALIZED_NAME_STATUS = "status"; - - @SerializedName(SERIALIZED_NAME_STATUS) - private V1beta1CronJobStatus status; - - public V1beta1CronJob 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 V1beta1CronJob 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 V1beta1CronJob 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 V1beta1CronJob spec(V1beta1CronJobSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * - * @return spec - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1CronJobSpec getSpec() { - return spec; - } - - public void setSpec(V1beta1CronJobSpec spec) { - this.spec = spec; - } - - public V1beta1CronJob status(V1beta1CronJobStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1CronJobStatus getStatus() { - return status; - } - - public void setStatus(V1beta1CronJobStatus status) { - this.status = status; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJob v1beta1CronJob = (V1beta1CronJob) o; - return Objects.equals(this.apiVersion, v1beta1CronJob.apiVersion) - && Objects.equals(this.kind, v1beta1CronJob.kind) - && Objects.equals(this.metadata, v1beta1CronJob.metadata) - && Objects.equals(this.spec, v1beta1CronJob.spec) - && Objects.equals(this.status, v1beta1CronJob.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1CronJob {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V1beta1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobList.java deleted file mode 100644 index 09be852801..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobList.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1CronJobList 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 V1beta1CronJobList 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 V1beta1CronJobList items(List items) { - - this.items = items; - return this; - } - - public V1beta1CronJobList addItemsItem(V1beta1CronJob itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items is the list of CronJobs. - * - * @return items - */ - @ApiModelProperty(required = true, value = "items is the list of CronJobs.") - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - public V1beta1CronJobList 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 V1beta1CronJobList 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; - } - V1beta1CronJobList v1beta1CronJobList = (V1beta1CronJobList) o; - return Objects.equals(this.apiVersion, v1beta1CronJobList.apiVersion) - && Objects.equals(this.items, v1beta1CronJobList.items) - && Objects.equals(this.kind, v1beta1CronJobList.kind) - && Objects.equals(this.metadata, v1beta1CronJobList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1CronJobList {\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/V1beta1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpec.java deleted file mode 100644 index 3561e0ce3d..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobSpec.java +++ /dev/null @@ -1,323 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1CronJobSpec { - public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; - - @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) - private String concurrencyPolicy; - - public static final String SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT = "failedJobsHistoryLimit"; - - @SerializedName(SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT) - private Integer failedJobsHistoryLimit; - - public static final String SERIALIZED_NAME_JOB_TEMPLATE = "jobTemplate"; - - @SerializedName(SERIALIZED_NAME_JOB_TEMPLATE) - private V1beta1JobTemplateSpec jobTemplate; - - public static final String SERIALIZED_NAME_SCHEDULE = "schedule"; - - @SerializedName(SERIALIZED_NAME_SCHEDULE) - private String schedule; - - public static final String SERIALIZED_NAME_STARTING_DEADLINE_SECONDS = "startingDeadlineSeconds"; - - @SerializedName(SERIALIZED_NAME_STARTING_DEADLINE_SECONDS) - private Long startingDeadlineSeconds; - - public static final String SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT = - "successfulJobsHistoryLimit"; - - @SerializedName(SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT) - private Integer successfulJobsHistoryLimit; - - public static final String SERIALIZED_NAME_SUSPEND = "suspend"; - - @SerializedName(SERIALIZED_NAME_SUSPEND) - private Boolean suspend; - - public static final String SERIALIZED_NAME_TIME_ZONE = "timeZone"; - - @SerializedName(SERIALIZED_NAME_TIME_ZONE) - private String timeZone; - - public V1beta1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { - - this.concurrencyPolicy = concurrencyPolicy; - return this; - } - - /** - * Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" - * (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent - * runs, skipping next run if previous run hasn't finished yet; - \"Replace\": - * cancels currently running job and replaces it with a new one - * - * @return concurrencyPolicy - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one") - public String getConcurrencyPolicy() { - return concurrencyPolicy; - } - - public void setConcurrencyPolicy(String concurrencyPolicy) { - this.concurrencyPolicy = concurrencyPolicy; - } - - public V1beta1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) { - - this.failedJobsHistoryLimit = failedJobsHistoryLimit; - return this; - } - - /** - * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit - * zero and not specified. Defaults to 1. - * - * @return failedJobsHistoryLimit - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") - public Integer getFailedJobsHistoryLimit() { - return failedJobsHistoryLimit; - } - - public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { - this.failedJobsHistoryLimit = failedJobsHistoryLimit; - } - - public V1beta1CronJobSpec jobTemplate(V1beta1JobTemplateSpec jobTemplate) { - - this.jobTemplate = jobTemplate; - return this; - } - - /** - * Get jobTemplate - * - * @return jobTemplate - */ - @ApiModelProperty(required = true, value = "") - public V1beta1JobTemplateSpec getJobTemplate() { - return jobTemplate; - } - - public void setJobTemplate(V1beta1JobTemplateSpec jobTemplate) { - this.jobTemplate = jobTemplate; - } - - public V1beta1CronJobSpec schedule(String schedule) { - - this.schedule = schedule; - return this; - } - - /** - * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. - * - * @return schedule - */ - @ApiModelProperty( - required = true, - value = "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.") - public String getSchedule() { - return schedule; - } - - public void setSchedule(String schedule) { - this.schedule = schedule; - } - - public V1beta1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) { - - this.startingDeadlineSeconds = startingDeadlineSeconds; - return this; - } - - /** - * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. - * Missed jobs executions will be counted as failed ones. - * - * @return startingDeadlineSeconds - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.") - public Long getStartingDeadlineSeconds() { - return startingDeadlineSeconds; - } - - public void setStartingDeadlineSeconds(Long startingDeadlineSeconds) { - this.startingDeadlineSeconds = startingDeadlineSeconds; - } - - public V1beta1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { - - this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - return this; - } - - /** - * The number of successful finished jobs to retain. This is a pointer to distinguish between - * explicit zero and not specified. Defaults to 3. - * - * @return successfulJobsHistoryLimit - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.") - public Integer getSuccessfulJobsHistoryLimit() { - return successfulJobsHistoryLimit; - } - - public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { - this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - } - - public V1beta1CronJobSpec suspend(Boolean suspend) { - - this.suspend = suspend; - return this; - } - - /** - * This flag tells the controller to suspend subsequent executions, it does not apply to already - * started executions. Defaults to false. - * - * @return suspend - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.") - public Boolean getSuspend() { - return suspend; - } - - public void setSuspend(Boolean suspend) { - this.suspend = suspend; - } - - public V1beta1CronJobSpec timeZone(String timeZone) { - - this.timeZone = timeZone; - return this; - } - - /** - * The time zone for the given schedule, see - * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely - * on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must - * be enabled via the `CronJobTimeZone` feature gate. - * - * @return timeZone - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.") - public String getTimeZone() { - return timeZone; - } - - public void setTimeZone(String timeZone) { - this.timeZone = timeZone; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJobSpec v1beta1CronJobSpec = (V1beta1CronJobSpec) o; - return Objects.equals(this.concurrencyPolicy, v1beta1CronJobSpec.concurrencyPolicy) - && Objects.equals(this.failedJobsHistoryLimit, v1beta1CronJobSpec.failedJobsHistoryLimit) - && Objects.equals(this.jobTemplate, v1beta1CronJobSpec.jobTemplate) - && Objects.equals(this.schedule, v1beta1CronJobSpec.schedule) - && Objects.equals(this.startingDeadlineSeconds, v1beta1CronJobSpec.startingDeadlineSeconds) - && Objects.equals( - this.successfulJobsHistoryLimit, v1beta1CronJobSpec.successfulJobsHistoryLimit) - && Objects.equals(this.suspend, v1beta1CronJobSpec.suspend) - && Objects.equals(this.timeZone, v1beta1CronJobSpec.timeZone); - } - - @Override - public int hashCode() { - return Objects.hash( - concurrencyPolicy, - failedJobsHistoryLimit, - jobTemplate, - schedule, - startingDeadlineSeconds, - successfulJobsHistoryLimit, - suspend, - timeZone); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1CronJobSpec {\n"); - sb.append(" concurrencyPolicy: ").append(toIndentedString(concurrencyPolicy)).append("\n"); - sb.append(" failedJobsHistoryLimit: ") - .append(toIndentedString(failedJobsHistoryLimit)) - .append("\n"); - sb.append(" jobTemplate: ").append(toIndentedString(jobTemplate)).append("\n"); - sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); - sb.append(" startingDeadlineSeconds: ") - .append(toIndentedString(startingDeadlineSeconds)) - .append("\n"); - sb.append(" successfulJobsHistoryLimit: ") - .append(toIndentedString(successfulJobsHistoryLimit)) - .append("\n"); - sb.append(" suspend: ").append(toIndentedString(suspend)).append("\n"); - sb.append(" timeZone: ").append(toIndentedString(timeZone)).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/V1beta1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatus.java deleted file mode 100644 index ba4f095b7f..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CronJobStatus.java +++ /dev/null @@ -1,155 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1CronJobStatus { - public static final String SERIALIZED_NAME_ACTIVE = "active"; - - @SerializedName(SERIALIZED_NAME_ACTIVE) - private List active = null; - - public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; - - @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) - private OffsetDateTime lastScheduleTime; - - public static final String SERIALIZED_NAME_LAST_SUCCESSFUL_TIME = "lastSuccessfulTime"; - - @SerializedName(SERIALIZED_NAME_LAST_SUCCESSFUL_TIME) - private OffsetDateTime lastSuccessfulTime; - - public V1beta1CronJobStatus active(List active) { - - this.active = active; - return this; - } - - public V1beta1CronJobStatus addActiveItem(V1ObjectReference activeItem) { - if (this.active == null) { - this.active = new ArrayList<>(); - } - this.active.add(activeItem); - return this; - } - - /** - * A list of pointers to currently running jobs. - * - * @return active - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "A list of pointers to currently running jobs.") - public List getActive() { - return active; - } - - public void setActive(List active) { - this.active = active; - } - - public V1beta1CronJobStatus lastScheduleTime(OffsetDateTime lastScheduleTime) { - - this.lastScheduleTime = lastScheduleTime; - return this; - } - - /** - * Information when was the last time the job was successfully scheduled. - * - * @return lastScheduleTime - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "Information when was the last time the job was successfully scheduled.") - public OffsetDateTime getLastScheduleTime() { - return lastScheduleTime; - } - - public void setLastScheduleTime(OffsetDateTime lastScheduleTime) { - this.lastScheduleTime = lastScheduleTime; - } - - public V1beta1CronJobStatus lastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { - - this.lastSuccessfulTime = lastSuccessfulTime; - return this; - } - - /** - * Information when was the last time the job successfully completed. - * - * @return lastSuccessfulTime - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "Information when was the last time the job successfully completed.") - public OffsetDateTime getLastSuccessfulTime() { - return lastSuccessfulTime; - } - - public void setLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { - this.lastSuccessfulTime = lastSuccessfulTime; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJobStatus v1beta1CronJobStatus = (V1beta1CronJobStatus) o; - return Objects.equals(this.active, v1beta1CronJobStatus.active) - && Objects.equals(this.lastScheduleTime, v1beta1CronJobStatus.lastScheduleTime) - && Objects.equals(this.lastSuccessfulTime, v1beta1CronJobStatus.lastSuccessfulTime); - } - - @Override - public int hashCode() { - return Objects.hash(active, lastScheduleTime, lastSuccessfulTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1CronJobStatus {\n"); - sb.append(" active: ").append(toIndentedString(active)).append("\n"); - sb.append(" lastScheduleTime: ").append(toIndentedString(lastScheduleTime)).append("\n"); - sb.append(" lastSuccessfulTime: ").append(toIndentedString(lastSuccessfulTime)).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/V1beta1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Endpoint.java deleted file mode 100644 index e24bf13135..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Endpoint.java +++ /dev/null @@ -1,298 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1Endpoint { - public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; - - @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = new ArrayList<>(); - - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private V1beta1EndpointConditions conditions; - - public static final String SERIALIZED_NAME_HINTS = "hints"; - - @SerializedName(SERIALIZED_NAME_HINTS) - private V1beta1EndpointHints hints; - - public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; - - @SerializedName(SERIALIZED_NAME_HOSTNAME) - private String hostname; - - public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; - - @SerializedName(SERIALIZED_NAME_NODE_NAME) - private String nodeName; - - public static final String SERIALIZED_NAME_TARGET_REF = "targetRef"; - - @SerializedName(SERIALIZED_NAME_TARGET_REF) - private V1ObjectReference targetRef; - - public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; - - @SerializedName(SERIALIZED_NAME_TOPOLOGY) - private Map topology = null; - - public V1beta1Endpoint addresses(List addresses) { - - this.addresses = addresses; - return this; - } - - public V1beta1Endpoint addAddressesItem(String addressesItem) { - this.addresses.add(addressesItem); - return this; - } - - /** - * addresses of this endpoint. The contents of this field are interpreted according to the - * corresponding EndpointSlice addressType field. Consumers must handle different types of - * addresses in the context of their own capabilities. This must contain at least one address but - * no more than 100. These are all assumed to be fungible and clients may choose to only use the - * first element. Refer to: https://issue.k8s.io/106267 - * - * @return addresses - */ - @ApiModelProperty( - required = true, - value = - "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267") - public List getAddresses() { - return addresses; - } - - public void setAddresses(List addresses) { - this.addresses = addresses; - } - - public V1beta1Endpoint conditions(V1beta1EndpointConditions conditions) { - - this.conditions = conditions; - return this; - } - - /** - * Get conditions - * - * @return conditions - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1EndpointConditions getConditions() { - return conditions; - } - - public void setConditions(V1beta1EndpointConditions conditions) { - this.conditions = conditions; - } - - public V1beta1Endpoint hints(V1beta1EndpointHints hints) { - - this.hints = hints; - return this; - } - - /** - * Get hints - * - * @return hints - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1EndpointHints getHints() { - return hints; - } - - public void setHints(V1beta1EndpointHints hints) { - this.hints = hints; - } - - public V1beta1Endpoint hostname(String hostname) { - - this.hostname = hostname; - return this; - } - - /** - * hostname of this endpoint. This field may be used by consumers of endpoints to distinguish - * endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname - * should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS - * Label (RFC 1123) validation. - * - * @return hostname - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.") - public String getHostname() { - return hostname; - } - - public void setHostname(String hostname) { - this.hostname = hostname; - } - - public V1beta1Endpoint nodeName(String nodeName) { - - this.nodeName = nodeName; - return this; - } - - /** - * nodeName represents the name of the Node hosting this endpoint. This can be used to determine - * endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature - * gate. - * - * @return nodeName - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.") - public String getNodeName() { - return nodeName; - } - - public void setNodeName(String nodeName) { - this.nodeName = nodeName; - } - - public V1beta1Endpoint targetRef(V1ObjectReference targetRef) { - - this.targetRef = targetRef; - return this; - } - - /** - * Get targetRef - * - * @return targetRef - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1ObjectReference getTargetRef() { - return targetRef; - } - - public void setTargetRef(V1ObjectReference targetRef) { - this.targetRef = targetRef; - } - - public V1beta1Endpoint topology(Map topology) { - - this.topology = topology; - return this; - } - - public V1beta1Endpoint putTopologyItem(String key, String topologyItem) { - if (this.topology == null) { - this.topology = new HashMap<>(); - } - this.topology.put(key, topologyItem); - return this; - } - - /** - * topology contains arbitrary topology information associated with the endpoint. These key/value - * pairs must conform with the label format. - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a - * maximum of 16 key/value pairs. This includes, but is not limited to the following well known - * keys: * kubernetes.io/hostname: the value indicates the hostname of the node where the endpoint - * is located. This should match the corresponding node label. * topology.kubernetes.io/zone: the - * value indicates the zone where the endpoint is located. This should match the corresponding - * node label. * topology.kubernetes.io/region: the value indicates the region where the endpoint - * is located. This should match the corresponding node label. This field is deprecated and will - * be removed in future api versions. - * - * @return topology - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node where the endpoint is located. This should match the corresponding node label. * topology.kubernetes.io/zone: the value indicates the zone where the endpoint is located. This should match the corresponding node label. * topology.kubernetes.io/region: the value indicates the region where the endpoint is located. This should match the corresponding node label. This field is deprecated and will be removed in future api versions.") - public Map getTopology() { - return topology; - } - - public void setTopology(Map topology) { - this.topology = topology; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Endpoint v1beta1Endpoint = (V1beta1Endpoint) o; - return Objects.equals(this.addresses, v1beta1Endpoint.addresses) - && Objects.equals(this.conditions, v1beta1Endpoint.conditions) - && Objects.equals(this.hints, v1beta1Endpoint.hints) - && Objects.equals(this.hostname, v1beta1Endpoint.hostname) - && Objects.equals(this.nodeName, v1beta1Endpoint.nodeName) - && Objects.equals(this.targetRef, v1beta1Endpoint.targetRef) - && Objects.equals(this.topology, v1beta1Endpoint.topology); - } - - @Override - public int hashCode() { - return Objects.hash(addresses, conditions, hints, hostname, nodeName, targetRef, topology); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1Endpoint {\n"); - sb.append(" addresses: ").append(toIndentedString(addresses)).append("\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" hints: ").append(toIndentedString(hints)).append("\n"); - sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); - sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); - sb.append(" targetRef: ").append(toIndentedString(targetRef)).append("\n"); - sb.append(" topology: ").append(toIndentedString(topology)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V1beta1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditions.java deleted file mode 100644 index 02116756da..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointConditions.java +++ /dev/null @@ -1,157 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EndpointConditions { - public static final String SERIALIZED_NAME_READY = "ready"; - - @SerializedName(SERIALIZED_NAME_READY) - private Boolean ready; - - public static final String SERIALIZED_NAME_SERVING = "serving"; - - @SerializedName(SERIALIZED_NAME_SERVING) - private Boolean serving; - - public static final String SERIALIZED_NAME_TERMINATING = "terminating"; - - @SerializedName(SERIALIZED_NAME_TERMINATING) - private Boolean terminating; - - public V1beta1EndpointConditions ready(Boolean ready) { - - this.ready = ready; - return this; - } - - /** - * ready indicates that this endpoint is prepared to receive traffic, according to whatever system - * is managing the endpoint. A nil value indicates an unknown state. In most cases consumers - * should interpret this unknown state as ready. For compatibility reasons, ready should never be - * \"true\" for terminating endpoints. - * - * @return ready - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints.") - public Boolean getReady() { - return ready; - } - - public void setReady(Boolean ready) { - this.ready = ready; - } - - public V1beta1EndpointConditions serving(Boolean serving) { - - this.serving = serving; - return this; - } - - /** - * serving is identical to ready except that it is set regardless of the terminating state of - * endpoints. This condition should be set to true for a ready endpoint that is terminating. If - * nil, consumers should defer to the ready condition. This field can be enabled with the - * EndpointSliceTerminatingCondition feature gate. - * - * @return serving - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.") - public Boolean getServing() { - return serving; - } - - public void setServing(Boolean serving) { - this.serving = serving; - } - - public V1beta1EndpointConditions terminating(Boolean terminating) { - - this.terminating = terminating; - return this; - } - - /** - * terminating indicates that this endpoint is terminating. A nil value indicates an unknown - * state. Consumers should interpret this unknown state to mean that the endpoint is not - * terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. - * - * @return terminating - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.") - public Boolean getTerminating() { - return terminating; - } - - public void setTerminating(Boolean terminating) { - this.terminating = terminating; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EndpointConditions v1beta1EndpointConditions = (V1beta1EndpointConditions) o; - return Objects.equals(this.ready, v1beta1EndpointConditions.ready) - && Objects.equals(this.serving, v1beta1EndpointConditions.serving) - && Objects.equals(this.terminating, v1beta1EndpointConditions.terminating); - } - - @Override - public int hashCode() { - return Objects.hash(ready, serving, terminating); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EndpointConditions {\n"); - sb.append(" ready: ").append(toIndentedString(ready)).append("\n"); - sb.append(" serving: ").append(toIndentedString(serving)).append("\n"); - sb.append(" terminating: ").append(toIndentedString(terminating)).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/V1beta1EndpointHints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHints.java deleted file mode 100644 index 2a19fd4038..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointHints.java +++ /dev/null @@ -1,101 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EndpointHints { - public static final String SERIALIZED_NAME_FOR_ZONES = "forZones"; - - @SerializedName(SERIALIZED_NAME_FOR_ZONES) - private List forZones = null; - - public V1beta1EndpointHints forZones(List forZones) { - - this.forZones = forZones; - return this; - } - - public V1beta1EndpointHints addForZonesItem(V1beta1ForZone forZonesItem) { - if (this.forZones == null) { - this.forZones = new ArrayList<>(); - } - this.forZones.add(forZonesItem); - return this; - } - - /** - * forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware - * routing. May contain a maximum of 8 entries. - * - * @return forZones - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.") - public List getForZones() { - return forZones; - } - - public void setForZones(List forZones) { - this.forZones = forZones; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EndpointHints v1beta1EndpointHints = (V1beta1EndpointHints) o; - return Objects.equals(this.forZones, v1beta1EndpointHints.forZones); - } - - @Override - public int hashCode() { - return Objects.hash(forZones); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EndpointHints {\n"); - sb.append(" forZones: ").append(toIndentedString(forZones)).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/V1beta1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPort.java deleted file mode 100644 index 2e92a70e09..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointPort.java +++ /dev/null @@ -1,186 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EndpointPort { - public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; - - @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) - private String appProtocol; - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_PORT = "port"; - - @SerializedName(SERIALIZED_NAME_PORT) - private Integer port; - - public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; - - @SerializedName(SERIALIZED_NAME_PROTOCOL) - private String protocol; - - public V1beta1EndpointPort appProtocol(String appProtocol) { - - this.appProtocol = appProtocol; - return this; - } - - /** - * The application protocol for this port. This field follows standard Kubernetes label syntax. - * Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and - * https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed - * names such as mycompany.com/my-custom-protocol. - * - * @return appProtocol - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.") - public String getAppProtocol() { - return appProtocol; - } - - public void setAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - } - - public V1beta1EndpointPort name(String name) { - - this.name = name; - return this; - } - - /** - * The name of this port. All ports in an EndpointSlice must have a unique name. If the - * EndpointSlice is dervied from a Kubernetes service, this corresponds to the - * Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must - * be no more than 63 characters long. * must consist of lower case alphanumeric characters or - * '-'. * must start and end with an alphanumeric character. Default is empty string. - * - * @return name - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public V1beta1EndpointPort port(Integer port) { - - this.port = port; - return this; - } - - /** - * The port number of the endpoint. If this is not specified, ports are not restricted and must be - * interpreted in the context of the specific consumer. - * - * @return port - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.") - public Integer getPort() { - return port; - } - - public void setPort(Integer port) { - this.port = port; - } - - public V1beta1EndpointPort protocol(String protocol) { - - this.protocol = protocol; - return this; - } - - /** - * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - * - * @return protocol - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EndpointPort v1beta1EndpointPort = (V1beta1EndpointPort) o; - return Objects.equals(this.appProtocol, v1beta1EndpointPort.appProtocol) - && Objects.equals(this.name, v1beta1EndpointPort.name) - && Objects.equals(this.port, v1beta1EndpointPort.port) - && Objects.equals(this.protocol, v1beta1EndpointPort.protocol); - } - - @Override - public int hashCode() { - return Objects.hash(appProtocol, name, port, protocol); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EndpointPort {\n"); - sb.append(" appProtocol: ").append(toIndentedString(appProtocol)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" port: ").append(toIndentedString(port)).append("\n"); - sb.append(" protocol: ").append(toIndentedString(protocol)).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/V1beta1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSlice.java deleted file mode 100644 index 0161cba554..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSlice.java +++ /dev/null @@ -1,271 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * EndpointSlice represents a subset of the endpoints that implement a service. For a given service - * there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce - * the full set of endpoints. - */ -@ApiModel( - description = - "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; - - @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) - private String addressType; - - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; - - @SerializedName(SERIALIZED_NAME_ENDPOINTS) - private List endpoints = 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 V1ObjectMeta metadata; - - public static final String SERIALIZED_NAME_PORTS = "ports"; - - @SerializedName(SERIALIZED_NAME_PORTS) - private List ports = null; - - public V1beta1EndpointSlice addressType(String addressType) { - - this.addressType = addressType; - return this; - } - - /** - * addressType specifies the type of address carried by this EndpointSlice. All addresses in this - * slice must be the same type. This field is immutable after creation. The following address - * types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 - * Address. * FQDN: Represents a Fully Qualified Domain Name. - * - * @return addressType - */ - @ApiModelProperty( - required = true, - value = - "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.") - public String getAddressType() { - return addressType; - } - - public void setAddressType(String addressType) { - this.addressType = addressType; - } - - public V1beta1EndpointSlice 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 V1beta1EndpointSlice endpoints(List endpoints) { - - this.endpoints = endpoints; - return this; - } - - public V1beta1EndpointSlice addEndpointsItem(V1beta1Endpoint endpointsItem) { - this.endpoints.add(endpointsItem); - return this; - } - - /** - * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 - * endpoints. - * - * @return endpoints - */ - @ApiModelProperty( - required = true, - value = - "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.") - public List getEndpoints() { - return endpoints; - } - - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - public V1beta1EndpointSlice 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 V1beta1EndpointSlice 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 V1beta1EndpointSlice ports(List ports) { - - this.ports = ports; - return this; - } - - public V1beta1EndpointSlice addPortsItem(V1beta1EndpointPort portsItem) { - if (this.ports == null) { - this.ports = new ArrayList<>(); - } - this.ports.add(portsItem); - return this; - } - - /** - * ports specifies the list of network ports exposed by each endpoint in this slice. Each port - * must have a unique name. When ports is empty, it indicates that there are no defined ports. - * When a port is defined with a nil port value, it indicates \"all ports\". Each slice - * may include a maximum of 100 ports. - * - * @return ports - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.") - public List getPorts() { - return ports; - } - - public void setPorts(List ports) { - this.ports = ports; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EndpointSlice v1beta1EndpointSlice = (V1beta1EndpointSlice) o; - return Objects.equals(this.addressType, v1beta1EndpointSlice.addressType) - && Objects.equals(this.apiVersion, v1beta1EndpointSlice.apiVersion) - && Objects.equals(this.endpoints, v1beta1EndpointSlice.endpoints) - && Objects.equals(this.kind, v1beta1EndpointSlice.kind) - && Objects.equals(this.metadata, v1beta1EndpointSlice.metadata) - && Objects.equals(this.ports, v1beta1EndpointSlice.ports); - } - - @Override - public int hashCode() { - return Objects.hash(addressType, apiVersion, endpoints, kind, metadata, ports); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EndpointSlice {\n"); - sb.append(" addressType: ").append(toIndentedString(addressType)).append("\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" ports: ").append(toIndentedString(ports)).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/V1beta1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceList.java deleted file mode 100644 index 763c81441a..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EndpointSliceList.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EndpointSliceList 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 V1beta1EndpointSliceList 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 V1beta1EndpointSliceList items(List items) { - - this.items = items; - return this; - } - - public V1beta1EndpointSliceList addItemsItem(V1beta1EndpointSlice itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * List of endpoint slices - * - * @return items - */ - @ApiModelProperty(required = true, value = "List of endpoint slices") - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - public V1beta1EndpointSliceList 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 V1beta1EndpointSliceList 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; - } - V1beta1EndpointSliceList v1beta1EndpointSliceList = (V1beta1EndpointSliceList) o; - return Objects.equals(this.apiVersion, v1beta1EndpointSliceList.apiVersion) - && Objects.equals(this.items, v1beta1EndpointSliceList.items) - && Objects.equals(this.kind, v1beta1EndpointSliceList.kind) - && Objects.equals(this.metadata, v1beta1EndpointSliceList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EndpointSliceList {\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/V1beta1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Event.java deleted file mode 100644 index 42b8797174..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Event.java +++ /dev/null @@ -1,606 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1Event implements io.kubernetes.client.common.KubernetesObject { - public static final String SERIALIZED_NAME_ACTION = "action"; - - @SerializedName(SERIALIZED_NAME_ACTION) - private String action; - - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - public static final String SERIALIZED_NAME_DEPRECATED_COUNT = "deprecatedCount"; - - @SerializedName(SERIALIZED_NAME_DEPRECATED_COUNT) - private Integer deprecatedCount; - - public static final String SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP = - "deprecatedFirstTimestamp"; - - @SerializedName(SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP) - private OffsetDateTime deprecatedFirstTimestamp; - - public static final String SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP = "deprecatedLastTimestamp"; - - @SerializedName(SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP) - private OffsetDateTime deprecatedLastTimestamp; - - public static final String SERIALIZED_NAME_DEPRECATED_SOURCE = "deprecatedSource"; - - @SerializedName(SERIALIZED_NAME_DEPRECATED_SOURCE) - private V1EventSource deprecatedSource; - - public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; - - @SerializedName(SERIALIZED_NAME_EVENT_TIME) - private OffsetDateTime eventTime; - - 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_NOTE = "note"; - - @SerializedName(SERIALIZED_NAME_NOTE) - private String note; - - public static final String SERIALIZED_NAME_REASON = "reason"; - - @SerializedName(SERIALIZED_NAME_REASON) - private String reason; - - public static final String SERIALIZED_NAME_REGARDING = "regarding"; - - @SerializedName(SERIALIZED_NAME_REGARDING) - private V1ObjectReference regarding; - - public static final String SERIALIZED_NAME_RELATED = "related"; - - @SerializedName(SERIALIZED_NAME_RELATED) - private V1ObjectReference related; - - public static final String SERIALIZED_NAME_REPORTING_CONTROLLER = "reportingController"; - - @SerializedName(SERIALIZED_NAME_REPORTING_CONTROLLER) - private String reportingController; - - public static final String SERIALIZED_NAME_REPORTING_INSTANCE = "reportingInstance"; - - @SerializedName(SERIALIZED_NAME_REPORTING_INSTANCE) - private String reportingInstance; - - public static final String SERIALIZED_NAME_SERIES = "series"; - - @SerializedName(SERIALIZED_NAME_SERIES) - private V1beta1EventSeries series; - - public static final String SERIALIZED_NAME_TYPE = "type"; - - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public V1beta1Event action(String action) { - - this.action = action; - return this; - } - - /** - * action is what action was taken/failed regarding to the regarding object. It is - * machine-readable. This field can have at most 128 characters. - * - * @return action - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.") - public String getAction() { - return action; - } - - public void setAction(String action) { - this.action = action; - } - - public V1beta1Event 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 V1beta1Event deprecatedCount(Integer deprecatedCount) { - - this.deprecatedCount = deprecatedCount; - return this; - } - - /** - * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event - * type. - * - * @return deprecatedCount - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.") - public Integer getDeprecatedCount() { - return deprecatedCount; - } - - public void setDeprecatedCount(Integer deprecatedCount) { - this.deprecatedCount = deprecatedCount; - } - - public V1beta1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { - - this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - return this; - } - - /** - * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 - * Event type. - * - * @return deprecatedFirstTimestamp - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - public OffsetDateTime getDeprecatedFirstTimestamp() { - return deprecatedFirstTimestamp; - } - - public void setDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { - this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - } - - public V1beta1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { - - this.deprecatedLastTimestamp = deprecatedLastTimestamp; - return this; - } - - /** - * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 - * Event type. - * - * @return deprecatedLastTimestamp - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.") - public OffsetDateTime getDeprecatedLastTimestamp() { - return deprecatedLastTimestamp; - } - - public void setDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { - this.deprecatedLastTimestamp = deprecatedLastTimestamp; - } - - public V1beta1Event deprecatedSource(V1EventSource deprecatedSource) { - - this.deprecatedSource = deprecatedSource; - return this; - } - - /** - * Get deprecatedSource - * - * @return deprecatedSource - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1EventSource getDeprecatedSource() { - return deprecatedSource; - } - - public void setDeprecatedSource(V1EventSource deprecatedSource) { - this.deprecatedSource = deprecatedSource; - } - - public V1beta1Event eventTime(OffsetDateTime eventTime) { - - this.eventTime = eventTime; - return this; - } - - /** - * eventTime is the time when this Event was first observed. It is required. - * - * @return eventTime - */ - @ApiModelProperty( - required = true, - value = "eventTime is the time when this Event was first observed. It is required.") - public OffsetDateTime getEventTime() { - return eventTime; - } - - public void setEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - } - - public V1beta1Event 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 V1beta1Event 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 V1beta1Event note(String note) { - - this.note = note; - return this; - } - - /** - * note is a human-readable description of the status of this operation. Maximal length of the - * note is 1kB, but libraries should be prepared to handle values up to 64kB. - * - * @return note - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.") - public String getNote() { - return note; - } - - public void setNote(String note) { - this.note = note; - } - - public V1beta1Event reason(String reason) { - - this.reason = reason; - return this; - } - - /** - * reason is why the action was taken. It is human-readable. This field can have at most 128 - * characters. - * - * @return reason - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "reason is why the action was taken. It is human-readable. This field can have at most 128 characters.") - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public V1beta1Event regarding(V1ObjectReference regarding) { - - this.regarding = regarding; - return this; - } - - /** - * Get regarding - * - * @return regarding - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1ObjectReference getRegarding() { - return regarding; - } - - public void setRegarding(V1ObjectReference regarding) { - this.regarding = regarding; - } - - public V1beta1Event related(V1ObjectReference related) { - - this.related = related; - return this; - } - - /** - * Get related - * - * @return related - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1ObjectReference getRelated() { - return related; - } - - public void setRelated(V1ObjectReference related) { - this.related = related; - } - - public V1beta1Event reportingController(String reportingController) { - - this.reportingController = reportingController; - return this; - } - - /** - * reportingController is the name of the controller that emitted this Event, e.g. - * `kubernetes.io/kubelet`. This field cannot be empty for new Events. - * - * @return reportingController - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.") - public String getReportingController() { - return reportingController; - } - - public void setReportingController(String reportingController) { - this.reportingController = reportingController; - } - - public V1beta1Event reportingInstance(String reportingInstance) { - - this.reportingInstance = reportingInstance; - return this; - } - - /** - * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This - * field cannot be empty for new Events and it can have at most 128 characters. - * - * @return reportingInstance - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.") - public String getReportingInstance() { - return reportingInstance; - } - - public void setReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; - } - - public V1beta1Event series(V1beta1EventSeries series) { - - this.series = series; - return this; - } - - /** - * Get series - * - * @return series - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1EventSeries getSeries() { - return series; - } - - public void setSeries(V1beta1EventSeries series) { - this.series = series; - } - - public V1beta1Event type(String type) { - - this.type = type; - return this; - } - - /** - * type is the type of this event (Normal, Warning), new types could be added in the future. It is - * machine-readable. - * - * @return type - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Event v1beta1Event = (V1beta1Event) o; - return Objects.equals(this.action, v1beta1Event.action) - && Objects.equals(this.apiVersion, v1beta1Event.apiVersion) - && Objects.equals(this.deprecatedCount, v1beta1Event.deprecatedCount) - && Objects.equals(this.deprecatedFirstTimestamp, v1beta1Event.deprecatedFirstTimestamp) - && Objects.equals(this.deprecatedLastTimestamp, v1beta1Event.deprecatedLastTimestamp) - && Objects.equals(this.deprecatedSource, v1beta1Event.deprecatedSource) - && Objects.equals(this.eventTime, v1beta1Event.eventTime) - && Objects.equals(this.kind, v1beta1Event.kind) - && Objects.equals(this.metadata, v1beta1Event.metadata) - && Objects.equals(this.note, v1beta1Event.note) - && Objects.equals(this.reason, v1beta1Event.reason) - && Objects.equals(this.regarding, v1beta1Event.regarding) - && Objects.equals(this.related, v1beta1Event.related) - && Objects.equals(this.reportingController, v1beta1Event.reportingController) - && Objects.equals(this.reportingInstance, v1beta1Event.reportingInstance) - && Objects.equals(this.series, v1beta1Event.series) - && Objects.equals(this.type, v1beta1Event.type); - } - - @Override - public int hashCode() { - return Objects.hash( - action, - apiVersion, - deprecatedCount, - deprecatedFirstTimestamp, - deprecatedLastTimestamp, - deprecatedSource, - eventTime, - kind, - metadata, - note, - reason, - regarding, - related, - reportingController, - reportingInstance, - series, - type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1Event {\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" deprecatedCount: ").append(toIndentedString(deprecatedCount)).append("\n"); - sb.append(" deprecatedFirstTimestamp: ") - .append(toIndentedString(deprecatedFirstTimestamp)) - .append("\n"); - sb.append(" deprecatedLastTimestamp: ") - .append(toIndentedString(deprecatedLastTimestamp)) - .append("\n"); - sb.append(" deprecatedSource: ").append(toIndentedString(deprecatedSource)).append("\n"); - sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append(" regarding: ").append(toIndentedString(regarding)).append("\n"); - sb.append(" related: ").append(toIndentedString(related)).append("\n"); - sb.append(" reportingController: ") - .append(toIndentedString(reportingController)) - .append("\n"); - sb.append(" reportingInstance: ").append(toIndentedString(reportingInstance)).append("\n"); - sb.append(" series: ").append(toIndentedString(series)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V1beta1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventList.java deleted file mode 100644 index 753af6482d..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventList.java +++ /dev/null @@ -1,187 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EventList 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 V1beta1EventList 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 V1beta1EventList items(List items) { - - this.items = items; - return this; - } - - public V1beta1EventList addItemsItem(V1beta1Event itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items is a list of schema objects. - * - * @return items - */ - @ApiModelProperty(required = true, value = "items is a list of schema objects.") - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - public V1beta1EventList 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 V1beta1EventList 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; - } - V1beta1EventList v1beta1EventList = (V1beta1EventList) o; - return Objects.equals(this.apiVersion, v1beta1EventList.apiVersion) - && Objects.equals(this.items, v1beta1EventList.items) - && Objects.equals(this.kind, v1beta1EventList.kind) - && Objects.equals(this.metadata, v1beta1EventList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EventList {\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/V1beta1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeries.java deleted file mode 100644 index 0e79aeb393..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1EventSeries.java +++ /dev/null @@ -1,124 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1EventSeries { - public static final String SERIALIZED_NAME_COUNT = "count"; - - @SerializedName(SERIALIZED_NAME_COUNT) - private Integer count; - - public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; - - @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) - private OffsetDateTime lastObservedTime; - - public V1beta1EventSeries count(Integer count) { - - this.count = count; - return this; - } - - /** - * count is the number of occurrences in this series up to the last heartbeat time. - * - * @return count - */ - @ApiModelProperty( - required = true, - value = "count is the number of occurrences in this series up to the last heartbeat time.") - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public V1beta1EventSeries lastObservedTime(OffsetDateTime lastObservedTime) { - - this.lastObservedTime = lastObservedTime; - return this; - } - - /** - * lastObservedTime is the time when last Event from the series was seen before last heartbeat. - * - * @return lastObservedTime - */ - @ApiModelProperty( - required = true, - value = - "lastObservedTime is the time when last Event from the series was seen before last heartbeat.") - public OffsetDateTime getLastObservedTime() { - return lastObservedTime; - } - - public void setLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EventSeries v1beta1EventSeries = (V1beta1EventSeries) o; - return Objects.equals(this.count, v1beta1EventSeries.count) - && Objects.equals(this.lastObservedTime, v1beta1EventSeries.lastObservedTime); - } - - @Override - public int hashCode() { - return Objects.hash(count, lastObservedTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1EventSeries {\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); - sb.append(" lastObservedTime: ").append(toIndentedString(lastObservedTime)).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/V1beta1FSGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptions.java deleted file mode 100644 index ef4fd416c6..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FSGroupStrategyOptions.java +++ /dev/null @@ -1,131 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** FSGroupStrategyOptions defines the strategy type and options used to create the strategy. */ -@ApiModel( - description = - "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1FSGroupStrategyOptions { - public static final String SERIALIZED_NAME_RANGES = "ranges"; - - @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; - - public static final String SERIALIZED_NAME_RULE = "rule"; - - @SerializedName(SERIALIZED_NAME_RULE) - private String rule; - - public V1beta1FSGroupStrategyOptions ranges(List ranges) { - - this.ranges = ranges; - return this; - } - - public V1beta1FSGroupStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { - if (this.ranges == null) { - this.ranges = new ArrayList<>(); - } - this.ranges.add(rangesItem); - return this; - } - - /** - * ranges are the allowed ranges of fs groups. If you would like to force a single fs group then - * supply a single range with the same start and end. Required for MustRunAs. - * - * @return ranges - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.") - public List getRanges() { - return ranges; - } - - public void setRanges(List ranges) { - this.ranges = ranges; - } - - public V1beta1FSGroupStrategyOptions rule(String rule) { - - this.rule = rule; - return this; - } - - /** - * rule is the strategy that will dictate what FSGroup is used in the SecurityContext. - * - * @return rule - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.") - public String getRule() { - return rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1FSGroupStrategyOptions v1beta1FSGroupStrategyOptions = (V1beta1FSGroupStrategyOptions) o; - return Objects.equals(this.ranges, v1beta1FSGroupStrategyOptions.ranges) - && Objects.equals(this.rule, v1beta1FSGroupStrategyOptions.rule); - } - - @Override - public int hashCode() { - return Objects.hash(ranges, rule); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1FSGroupStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" rule: ").append(toIndentedString(rule)).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/V1beta1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java index 67f2610896..e378b54f2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowDistinguisherMethod.java @@ -21,7 +21,7 @@ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java index bbf037bd7a..d0837366f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchema.java @@ -27,7 +27,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\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java index 84d63ea182..7f93908dd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java index 3b326cc21d..db49ecf29f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaList.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java index ae15147b80..b64d5d8e65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java index 54128259c9..d3ce7524d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1FlowSchemaStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZone.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZone.java deleted file mode 100644 index d08f1571d7..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ForZone.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1ForZone { - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public V1beta1ForZone name(String name) { - - this.name = name; - return this; - } - - /** - * name represents the name of the zone. - * - * @return name - */ - @ApiModelProperty(required = true, value = "name represents the name of the zone.") - 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; - } - V1beta1ForZone v1beta1ForZone = (V1beta1ForZone) o; - return Objects.equals(this.name, v1beta1ForZone.name); - } - - @Override - public int hashCode() { - return Objects.hash(name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1ForZone {\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/V1beta1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java index 073bae1a79..14f925f3d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1GroupSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java deleted file mode 100644 index e7bdd4e3af..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1HostPortRange.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It - * requires both the start and end to be defined. - */ -@ApiModel( - description = - "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1HostPortRange { - public static final String SERIALIZED_NAME_MAX = "max"; - - @SerializedName(SERIALIZED_NAME_MAX) - private Integer max; - - public static final String SERIALIZED_NAME_MIN = "min"; - - @SerializedName(SERIALIZED_NAME_MIN) - private Integer min; - - public V1beta1HostPortRange max(Integer max) { - - this.max = max; - return this; - } - - /** - * max is the end of the range, inclusive. - * - * @return max - */ - @ApiModelProperty(required = true, value = "max is the end of the range, inclusive.") - public Integer getMax() { - return max; - } - - public void setMax(Integer max) { - this.max = max; - } - - public V1beta1HostPortRange min(Integer min) { - - this.min = min; - return this; - } - - /** - * min is the start of the range, inclusive. - * - * @return min - */ - @ApiModelProperty(required = true, value = "min is the start of the range, inclusive.") - public Integer getMin() { - return min; - } - - public void setMin(Integer min) { - this.min = min; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1HostPortRange v1beta1HostPortRange = (V1beta1HostPortRange) o; - return Objects.equals(this.max, v1beta1HostPortRange.max) - && Objects.equals(this.min, v1beta1HostPortRange.min); - } - - @Override - public int hashCode() { - return Objects.hash(max, min); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1HostPortRange {\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); - sb.append(" min: ").append(toIndentedString(min)).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/V1beta1IDRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRange.java deleted file mode 100644 index 6603b26d26..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IDRange.java +++ /dev/null @@ -1,113 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** IDRange provides a min/max of an allowed range of IDs. */ -@ApiModel(description = "IDRange provides a min/max of an allowed range of IDs.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1IDRange { - public static final String SERIALIZED_NAME_MAX = "max"; - - @SerializedName(SERIALIZED_NAME_MAX) - private Long max; - - public static final String SERIALIZED_NAME_MIN = "min"; - - @SerializedName(SERIALIZED_NAME_MIN) - private Long min; - - public V1beta1IDRange max(Long max) { - - this.max = max; - return this; - } - - /** - * max is the end of the range, inclusive. - * - * @return max - */ - @ApiModelProperty(required = true, value = "max is the end of the range, inclusive.") - public Long getMax() { - return max; - } - - public void setMax(Long max) { - this.max = max; - } - - public V1beta1IDRange min(Long min) { - - this.min = min; - return this; - } - - /** - * min is the start of the range, inclusive. - * - * @return min - */ - @ApiModelProperty(required = true, value = "min is the start of the range, inclusive.") - public Long getMin() { - return min; - } - - public void setMin(Long min) { - this.min = min; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1IDRange v1beta1IDRange = (V1beta1IDRange) o; - return Objects.equals(this.max, v1beta1IDRange.max) - && Objects.equals(this.min, v1beta1IDRange.min); - } - - @Override - public int hashCode() { - return Objects.hash(max, min); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1IDRange {\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); - sb.append(" min: ").append(toIndentedString(min)).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/V1beta1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpec.java deleted file mode 100644 index db3fac9e0e..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JobTemplateSpec.java +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1JobTemplateSpec { - 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 V1JobSpec spec; - - public V1beta1JobTemplateSpec 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 V1beta1JobTemplateSpec spec(V1JobSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * - * @return spec - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1JobSpec getSpec() { - return spec; - } - - public void setSpec(V1JobSpec 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; - } - V1beta1JobTemplateSpec v1beta1JobTemplateSpec = (V1beta1JobTemplateSpec) o; - return Objects.equals(this.metadata, v1beta1JobTemplateSpec.metadata) - && Objects.equals(this.spec, v1beta1JobTemplateSpec.spec); - } - - @Override - public int hashCode() { - return Objects.hash(metadata, spec); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1JobTemplateSpec {\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/V1beta1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java index be9248c2df..39b585d702 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitResponse.java @@ -23,7 +23,7 @@ "LimitResponse defines how to handle requests that can not be executed right now.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java index 44095cc9e3..dd7c078a75 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LimitedPriorityLevelConfiguration.java @@ -19,15 +19,15 @@ /** * 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 + * 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?") + "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_ASSURED_CONCURRENCY_SHARES = "assuredConcurrencyShares"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java index 372fb05991..d99bbdbedc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NonResourcePolicyRule.java @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java deleted file mode 100644 index 0575a8c75a..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Overhead.java +++ /dev/null @@ -1,101 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1Overhead { - public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; - - @SerializedName(SERIALIZED_NAME_POD_FIXED) - private Map podFixed = null; - - public V1beta1Overhead podFixed(Map podFixed) { - - this.podFixed = podFixed; - return this; - } - - public V1beta1Overhead putPodFixedItem(String key, Quantity podFixedItem) { - if (this.podFixed == null) { - this.podFixed = new HashMap<>(); - } - this.podFixed.put(key, podFixedItem); - return this; - } - - /** - * PodFixed represents the fixed resource overhead associated with running a pod. - * - * @return podFixed - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "PodFixed represents the fixed resource overhead associated with running a pod.") - public Map getPodFixed() { - return podFixed; - } - - public void setPodFixed(Map podFixed) { - this.podFixed = podFixed; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Overhead v1beta1Overhead = (V1beta1Overhead) o; - return Objects.equals(this.podFixed, v1beta1Overhead.podFixed); - } - - @Override - public int hashCode() { - return Objects.hash(podFixed); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1Overhead {\n"); - sb.append(" podFixed: ").append(toIndentedString(podFixed)).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/V1beta1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudget.java deleted file mode 100644 index 6e5b1f89a2..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudget.java +++ /dev/null @@ -1,214 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodDisruptionBudget 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 V1beta1PodDisruptionBudgetSpec spec; - - public static final String SERIALIZED_NAME_STATUS = "status"; - - @SerializedName(SERIALIZED_NAME_STATUS) - private V1beta1PodDisruptionBudgetStatus status; - - public V1beta1PodDisruptionBudget 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 V1beta1PodDisruptionBudget 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 V1beta1PodDisruptionBudget 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 V1beta1PodDisruptionBudget spec(V1beta1PodDisruptionBudgetSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * - * @return spec - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1PodDisruptionBudgetSpec getSpec() { - return spec; - } - - public void setSpec(V1beta1PodDisruptionBudgetSpec spec) { - this.spec = spec; - } - - public V1beta1PodDisruptionBudget status(V1beta1PodDisruptionBudgetStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1PodDisruptionBudgetStatus getStatus() { - return status; - } - - public void setStatus(V1beta1PodDisruptionBudgetStatus status) { - this.status = status; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudget v1beta1PodDisruptionBudget = (V1beta1PodDisruptionBudget) o; - return Objects.equals(this.apiVersion, v1beta1PodDisruptionBudget.apiVersion) - && Objects.equals(this.kind, v1beta1PodDisruptionBudget.kind) - && Objects.equals(this.metadata, v1beta1PodDisruptionBudget.metadata) - && Objects.equals(this.spec, v1beta1PodDisruptionBudget.spec) - && Objects.equals(this.status, v1beta1PodDisruptionBudget.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodDisruptionBudget {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V1beta1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetList.java deleted file mode 100644 index 25a98df436..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetList.java +++ /dev/null @@ -1,189 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ -@ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodDisruptionBudgetList - 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 V1beta1PodDisruptionBudgetList 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 V1beta1PodDisruptionBudgetList items(List items) { - - this.items = items; - return this; - } - - public V1beta1PodDisruptionBudgetList addItemsItem(V1beta1PodDisruptionBudget itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items list individual PodDisruptionBudget objects - * - * @return items - */ - @ApiModelProperty(required = true, value = "items list individual PodDisruptionBudget objects") - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - public V1beta1PodDisruptionBudgetList 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 V1beta1PodDisruptionBudgetList 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; - } - V1beta1PodDisruptionBudgetList v1beta1PodDisruptionBudgetList = - (V1beta1PodDisruptionBudgetList) o; - return Objects.equals(this.apiVersion, v1beta1PodDisruptionBudgetList.apiVersion) - && Objects.equals(this.items, v1beta1PodDisruptionBudgetList.items) - && Objects.equals(this.kind, v1beta1PodDisruptionBudgetList.kind) - && Objects.equals(this.metadata, v1beta1PodDisruptionBudgetList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodDisruptionBudgetList {\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/V1beta1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpec.java deleted file mode 100644 index 2df2f7f1ea..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetSpec.java +++ /dev/null @@ -1,153 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.IntOrString; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodDisruptionBudgetSpec { - public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; - - @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) - private IntOrString maxUnavailable; - - public static final String SERIALIZED_NAME_MIN_AVAILABLE = "minAvailable"; - - @SerializedName(SERIALIZED_NAME_MIN_AVAILABLE) - private IntOrString minAvailable; - - public static final String SERIALIZED_NAME_SELECTOR = "selector"; - - @SerializedName(SERIALIZED_NAME_SELECTOR) - private V1LabelSelector selector; - - public V1beta1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable) { - - this.maxUnavailable = maxUnavailable; - return this; - } - - /** - * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling - * and unmarshalling, it produces or consumes the inner type. This allows you to have, for - * example, a JSON field that can accept a name or number. - * - * @return maxUnavailable - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") - public IntOrString getMaxUnavailable() { - return maxUnavailable; - } - - public void setMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - } - - public V1beta1PodDisruptionBudgetSpec minAvailable(IntOrString minAvailable) { - - this.minAvailable = minAvailable; - return this; - } - - /** - * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling - * and unmarshalling, it produces or consumes the inner type. This allows you to have, for - * example, a JSON field that can accept a name or number. - * - * @return minAvailable - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") - public IntOrString getMinAvailable() { - return minAvailable; - } - - public void setMinAvailable(IntOrString minAvailable) { - this.minAvailable = minAvailable; - } - - public V1beta1PodDisruptionBudgetSpec selector(V1LabelSelector selector) { - - this.selector = selector; - return this; - } - - /** - * Get selector - * - * @return selector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getSelector() { - return selector; - } - - public void setSelector(V1LabelSelector selector) { - this.selector = selector; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudgetSpec v1beta1PodDisruptionBudgetSpec = - (V1beta1PodDisruptionBudgetSpec) o; - return Objects.equals(this.maxUnavailable, v1beta1PodDisruptionBudgetSpec.maxUnavailable) - && Objects.equals(this.minAvailable, v1beta1PodDisruptionBudgetSpec.minAvailable) - && Objects.equals(this.selector, v1beta1PodDisruptionBudgetSpec.selector); - } - - @Override - public int hashCode() { - return Objects.hash(maxUnavailable, minAvailable, selector); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodDisruptionBudgetSpec {\n"); - sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); - sb.append(" minAvailable: ").append(toIndentedString(minAvailable)).append("\n"); - sb.append(" selector: ").append(toIndentedString(selector)).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/V1beta1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatus.java deleted file mode 100644 index f936c84a62..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodDisruptionBudgetStatus.java +++ /dev/null @@ -1,315 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodDisruptionBudgetStatus { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; - - public static final String SERIALIZED_NAME_CURRENT_HEALTHY = "currentHealthy"; - - @SerializedName(SERIALIZED_NAME_CURRENT_HEALTHY) - private Integer currentHealthy; - - public static final String SERIALIZED_NAME_DESIRED_HEALTHY = "desiredHealthy"; - - @SerializedName(SERIALIZED_NAME_DESIRED_HEALTHY) - private Integer desiredHealthy; - - public static final String SERIALIZED_NAME_DISRUPTED_PODS = "disruptedPods"; - - @SerializedName(SERIALIZED_NAME_DISRUPTED_PODS) - private Map disruptedPods = null; - - public static final String SERIALIZED_NAME_DISRUPTIONS_ALLOWED = "disruptionsAllowed"; - - @SerializedName(SERIALIZED_NAME_DISRUPTIONS_ALLOWED) - private Integer disruptionsAllowed; - - public static final String SERIALIZED_NAME_EXPECTED_PODS = "expectedPods"; - - @SerializedName(SERIALIZED_NAME_EXPECTED_PODS) - private Integer expectedPods; - - public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; - - @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) - private Long observedGeneration; - - public V1beta1PodDisruptionBudgetStatus conditions(List conditions) { - - this.conditions = conditions; - return this; - } - - public V1beta1PodDisruptionBudgetStatus addConditionsItem(V1Condition conditionsItem) { - if (this.conditions == null) { - this.conditions = new ArrayList<>(); - } - this.conditions.add(conditionsItem); - return this; - } - - /** - * Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed - * condition. The following are known values for the reason field (additional reasons could be - * added in the future): - SyncFailed: The controller encountered an error and wasn't able to - * compute the number of allowed disruptions. Therefore no disruptions are allowed and the status - * of the condition will be False. - InsufficientPods: The number of pods are either at or below - * the number required by the PodDisruptionBudget. No disruptions are allowed and the status of - * the condition will be False. - SufficientPods: There are more pods than required by the - * PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are - * provided by the disruptionsAllowed property. - * - * @return conditions - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute the number of allowed disruptions. Therefore no disruptions are allowed and the status of the condition will be False. - InsufficientPods: The number of pods are either at or below the number required by the PodDisruptionBudget. No disruptions are allowed and the status of the condition will be False. - SufficientPods: There are more pods than required by the PodDisruptionBudget. The condition will be True, and the number of allowed disruptions are provided by the disruptionsAllowed property.") - public List getConditions() { - return conditions; - } - - public void setConditions(List conditions) { - this.conditions = conditions; - } - - public V1beta1PodDisruptionBudgetStatus currentHealthy(Integer currentHealthy) { - - this.currentHealthy = currentHealthy; - return this; - } - - /** - * current number of healthy pods - * - * @return currentHealthy - */ - @ApiModelProperty(required = true, value = "current number of healthy pods") - public Integer getCurrentHealthy() { - return currentHealthy; - } - - public void setCurrentHealthy(Integer currentHealthy) { - this.currentHealthy = currentHealthy; - } - - public V1beta1PodDisruptionBudgetStatus desiredHealthy(Integer desiredHealthy) { - - this.desiredHealthy = desiredHealthy; - return this; - } - - /** - * minimum desired number of healthy pods - * - * @return desiredHealthy - */ - @ApiModelProperty(required = true, value = "minimum desired number of healthy pods") - public Integer getDesiredHealthy() { - return desiredHealthy; - } - - public void setDesiredHealthy(Integer desiredHealthy) { - this.desiredHealthy = desiredHealthy; - } - - public V1beta1PodDisruptionBudgetStatus disruptedPods(Map disruptedPods) { - - this.disruptedPods = disruptedPods; - return this; - } - - public V1beta1PodDisruptionBudgetStatus putDisruptedPodsItem( - String key, OffsetDateTime disruptedPodsItem) { - if (this.disruptedPods == null) { - this.disruptedPods = new HashMap<>(); - } - this.disruptedPods.put(key, disruptedPodsItem); - return this; - } - - /** - * DisruptedPods contains information about pods whose eviction was processed by the API server - * eviction subresource handler but has not yet been observed by the PodDisruptionBudget - * controller. A pod will be in this map from the time when the API server processed the eviction - * request to the time when the pod is seen by PDB controller as having been marked for deletion - * (or after a timeout). The key in the map is the name of the pod and the value is the time when - * the API server processed the eviction request. If the deletion didn't occur and a pod is - * still there it will be removed from the list automatically by PodDisruptionBudget controller - * after some time. If everything goes smooth this map should be empty for the most of the time. - * Large number of entries in the map may indicate problems with pod deletions. - * - * @return disruptedPods - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.") - public Map getDisruptedPods() { - return disruptedPods; - } - - public void setDisruptedPods(Map disruptedPods) { - this.disruptedPods = disruptedPods; - } - - public V1beta1PodDisruptionBudgetStatus disruptionsAllowed(Integer disruptionsAllowed) { - - this.disruptionsAllowed = disruptionsAllowed; - return this; - } - - /** - * Number of pod disruptions that are currently allowed. - * - * @return disruptionsAllowed - */ - @ApiModelProperty( - required = true, - value = "Number of pod disruptions that are currently allowed.") - public Integer getDisruptionsAllowed() { - return disruptionsAllowed; - } - - public void setDisruptionsAllowed(Integer disruptionsAllowed) { - this.disruptionsAllowed = disruptionsAllowed; - } - - public V1beta1PodDisruptionBudgetStatus expectedPods(Integer expectedPods) { - - this.expectedPods = expectedPods; - return this; - } - - /** - * total number of pods counted by this disruption budget - * - * @return expectedPods - */ - @ApiModelProperty( - required = true, - value = "total number of pods counted by this disruption budget") - public Integer getExpectedPods() { - return expectedPods; - } - - public void setExpectedPods(Integer expectedPods) { - this.expectedPods = expectedPods; - } - - public V1beta1PodDisruptionBudgetStatus observedGeneration(Long observedGeneration) { - - this.observedGeneration = observedGeneration; - return this; - } - - /** - * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other - * status information is valid only if observedGeneration equals to PDB's object generation. - * - * @return observedGeneration - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.") - public Long getObservedGeneration() { - return observedGeneration; - } - - public void setObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudgetStatus v1beta1PodDisruptionBudgetStatus = - (V1beta1PodDisruptionBudgetStatus) o; - return Objects.equals(this.conditions, v1beta1PodDisruptionBudgetStatus.conditions) - && Objects.equals(this.currentHealthy, v1beta1PodDisruptionBudgetStatus.currentHealthy) - && Objects.equals(this.desiredHealthy, v1beta1PodDisruptionBudgetStatus.desiredHealthy) - && Objects.equals(this.disruptedPods, v1beta1PodDisruptionBudgetStatus.disruptedPods) - && Objects.equals( - this.disruptionsAllowed, v1beta1PodDisruptionBudgetStatus.disruptionsAllowed) - && Objects.equals(this.expectedPods, v1beta1PodDisruptionBudgetStatus.expectedPods) - && Objects.equals( - this.observedGeneration, v1beta1PodDisruptionBudgetStatus.observedGeneration); - } - - @Override - public int hashCode() { - return Objects.hash( - conditions, - currentHealthy, - desiredHealthy, - disruptedPods, - disruptionsAllowed, - expectedPods, - observedGeneration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodDisruptionBudgetStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" currentHealthy: ").append(toIndentedString(currentHealthy)).append("\n"); - sb.append(" desiredHealthy: ").append(toIndentedString(desiredHealthy)).append("\n"); - sb.append(" disruptedPods: ").append(toIndentedString(disruptedPods)).append("\n"); - sb.append(" disruptionsAllowed: ").append(toIndentedString(disruptionsAllowed)).append("\n"); - sb.append(" expectedPods: ").append(toIndentedString(expectedPods)).append("\n"); - sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V1beta1PodSecurityPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyList.java deleted file mode 100644 index 2361098a00..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicyList.java +++ /dev/null @@ -1,188 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** PodSecurityPolicyList is a list of PodSecurityPolicy objects. */ -@ApiModel(description = "PodSecurityPolicyList is a list of PodSecurityPolicy objects.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodSecurityPolicyList - 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 V1beta1PodSecurityPolicyList 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 V1beta1PodSecurityPolicyList items(List items) { - - this.items = items; - return this; - } - - public V1beta1PodSecurityPolicyList addItemsItem(V1beta1PodSecurityPolicy itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items is a list of schema objects. - * - * @return items - */ - @ApiModelProperty(required = true, value = "items is a list of schema objects.") - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - public V1beta1PodSecurityPolicyList 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 V1beta1PodSecurityPolicyList 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; - } - V1beta1PodSecurityPolicyList v1beta1PodSecurityPolicyList = (V1beta1PodSecurityPolicyList) o; - return Objects.equals(this.apiVersion, v1beta1PodSecurityPolicyList.apiVersion) - && Objects.equals(this.items, v1beta1PodSecurityPolicyList.items) - && Objects.equals(this.kind, v1beta1PodSecurityPolicyList.kind) - && Objects.equals(this.metadata, v1beta1PodSecurityPolicyList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodSecurityPolicyList {\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/V1beta1PodSecurityPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpec.java deleted file mode 100644 index 84f0c869f4..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodSecurityPolicySpec.java +++ /dev/null @@ -1,941 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** PodSecurityPolicySpec defines the policy enforced. */ -@ApiModel(description = "PodSecurityPolicySpec defines the policy enforced.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1PodSecurityPolicySpec { - public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = - "allowPrivilegeEscalation"; - - @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) - private Boolean allowPrivilegeEscalation; - - public static final String SERIALIZED_NAME_ALLOWED_C_S_I_DRIVERS = "allowedCSIDrivers"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_C_S_I_DRIVERS) - private List allowedCSIDrivers = null; - - public static final String SERIALIZED_NAME_ALLOWED_CAPABILITIES = "allowedCapabilities"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_CAPABILITIES) - private List allowedCapabilities = null; - - public static final String SERIALIZED_NAME_ALLOWED_FLEX_VOLUMES = "allowedFlexVolumes"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_FLEX_VOLUMES) - private List allowedFlexVolumes = null; - - public static final String SERIALIZED_NAME_ALLOWED_HOST_PATHS = "allowedHostPaths"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_HOST_PATHS) - private List allowedHostPaths = null; - - public static final String SERIALIZED_NAME_ALLOWED_PROC_MOUNT_TYPES = "allowedProcMountTypes"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_PROC_MOUNT_TYPES) - private List allowedProcMountTypes = null; - - public static final String SERIALIZED_NAME_ALLOWED_UNSAFE_SYSCTLS = "allowedUnsafeSysctls"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_UNSAFE_SYSCTLS) - private List allowedUnsafeSysctls = null; - - public static final String SERIALIZED_NAME_DEFAULT_ADD_CAPABILITIES = "defaultAddCapabilities"; - - @SerializedName(SERIALIZED_NAME_DEFAULT_ADD_CAPABILITIES) - private List defaultAddCapabilities = null; - - public static final String SERIALIZED_NAME_DEFAULT_ALLOW_PRIVILEGE_ESCALATION = - "defaultAllowPrivilegeEscalation"; - - @SerializedName(SERIALIZED_NAME_DEFAULT_ALLOW_PRIVILEGE_ESCALATION) - private Boolean defaultAllowPrivilegeEscalation; - - public static final String SERIALIZED_NAME_FORBIDDEN_SYSCTLS = "forbiddenSysctls"; - - @SerializedName(SERIALIZED_NAME_FORBIDDEN_SYSCTLS) - private List forbiddenSysctls = null; - - public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; - - @SerializedName(SERIALIZED_NAME_FS_GROUP) - private V1beta1FSGroupStrategyOptions fsGroup; - - public static final String SERIALIZED_NAME_HOST_I_P_C = "hostIPC"; - - @SerializedName(SERIALIZED_NAME_HOST_I_P_C) - private Boolean hostIPC; - - public static final String SERIALIZED_NAME_HOST_NETWORK = "hostNetwork"; - - @SerializedName(SERIALIZED_NAME_HOST_NETWORK) - private Boolean hostNetwork; - - public static final String SERIALIZED_NAME_HOST_P_I_D = "hostPID"; - - @SerializedName(SERIALIZED_NAME_HOST_P_I_D) - private Boolean hostPID; - - public static final String SERIALIZED_NAME_HOST_PORTS = "hostPorts"; - - @SerializedName(SERIALIZED_NAME_HOST_PORTS) - private List hostPorts = null; - - public static final String SERIALIZED_NAME_PRIVILEGED = "privileged"; - - @SerializedName(SERIALIZED_NAME_PRIVILEGED) - private Boolean privileged; - - public static final String SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM = "readOnlyRootFilesystem"; - - @SerializedName(SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM) - private Boolean readOnlyRootFilesystem; - - public static final String SERIALIZED_NAME_REQUIRED_DROP_CAPABILITIES = - "requiredDropCapabilities"; - - @SerializedName(SERIALIZED_NAME_REQUIRED_DROP_CAPABILITIES) - private List requiredDropCapabilities = null; - - public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; - - @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) - private V1beta1RunAsGroupStrategyOptions runAsGroup; - - public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; - - @SerializedName(SERIALIZED_NAME_RUN_AS_USER) - private V1beta1RunAsUserStrategyOptions runAsUser; - - public static final String SERIALIZED_NAME_RUNTIME_CLASS = "runtimeClass"; - - @SerializedName(SERIALIZED_NAME_RUNTIME_CLASS) - private V1beta1RuntimeClassStrategyOptions runtimeClass; - - public static final String SERIALIZED_NAME_SE_LINUX = "seLinux"; - - @SerializedName(SERIALIZED_NAME_SE_LINUX) - private V1beta1SELinuxStrategyOptions seLinux; - - public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; - - @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) - private V1beta1SupplementalGroupsStrategyOptions supplementalGroups; - - public static final String SERIALIZED_NAME_VOLUMES = "volumes"; - - @SerializedName(SERIALIZED_NAME_VOLUMES) - private List volumes = null; - - public V1beta1PodSecurityPolicySpec allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { - - this.allowPrivilegeEscalation = allowPrivilegeEscalation; - return this; - } - - /** - * allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If - * unspecified, defaults to true. - * - * @return allowPrivilegeEscalation - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.") - public Boolean getAllowPrivilegeEscalation() { - return allowPrivilegeEscalation; - } - - public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { - this.allowPrivilegeEscalation = allowPrivilegeEscalation; - } - - public V1beta1PodSecurityPolicySpec allowedCSIDrivers( - List allowedCSIDrivers) { - - this.allowedCSIDrivers = allowedCSIDrivers; - return this; - } - - public V1beta1PodSecurityPolicySpec addAllowedCSIDriversItem( - V1beta1AllowedCSIDriver allowedCSIDriversItem) { - if (this.allowedCSIDrivers == null) { - this.allowedCSIDrivers = new ArrayList<>(); - } - this.allowedCSIDrivers.add(allowedCSIDriversItem); - return this; - } - - /** - * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be - * embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline - * ephemeral volumes. This is a beta field, and is only honored if the API server enables the - * CSIInlineVolume feature gate. - * - * @return allowedCSIDrivers - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.") - public List getAllowedCSIDrivers() { - return allowedCSIDrivers; - } - - public void setAllowedCSIDrivers(List allowedCSIDrivers) { - this.allowedCSIDrivers = allowedCSIDrivers; - } - - public V1beta1PodSecurityPolicySpec allowedCapabilities(List allowedCapabilities) { - - this.allowedCapabilities = allowedCapabilities; - return this; - } - - public V1beta1PodSecurityPolicySpec addAllowedCapabilitiesItem(String allowedCapabilitiesItem) { - if (this.allowedCapabilities == null) { - this.allowedCapabilities = new ArrayList<>(); - } - this.allowedCapabilities.add(allowedCapabilitiesItem); - return this; - } - - /** - * allowedCapabilities is a list of capabilities that can be requested to add to the container. - * Capabilities in this field may be added at the pod author's discretion. You must not list a - * capability in both allowedCapabilities and requiredDropCapabilities. - * - * @return allowedCapabilities - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.") - public List getAllowedCapabilities() { - return allowedCapabilities; - } - - public void setAllowedCapabilities(List allowedCapabilities) { - this.allowedCapabilities = allowedCapabilities; - } - - public V1beta1PodSecurityPolicySpec allowedFlexVolumes( - List allowedFlexVolumes) { - - this.allowedFlexVolumes = allowedFlexVolumes; - return this; - } - - public V1beta1PodSecurityPolicySpec addAllowedFlexVolumesItem( - V1beta1AllowedFlexVolume allowedFlexVolumesItem) { - if (this.allowedFlexVolumes == null) { - this.allowedFlexVolumes = new ArrayList<>(); - } - this.allowedFlexVolumes.add(allowedFlexVolumesItem); - return this; - } - - /** - * allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes - * may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in - * the \"volumes\" field. - * - * @return allowedFlexVolumes - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.") - public List getAllowedFlexVolumes() { - return allowedFlexVolumes; - } - - public void setAllowedFlexVolumes(List allowedFlexVolumes) { - this.allowedFlexVolumes = allowedFlexVolumes; - } - - public V1beta1PodSecurityPolicySpec allowedHostPaths( - List allowedHostPaths) { - - this.allowedHostPaths = allowedHostPaths; - return this; - } - - public V1beta1PodSecurityPolicySpec addAllowedHostPathsItem( - V1beta1AllowedHostPath allowedHostPathsItem) { - if (this.allowedHostPaths == null) { - this.allowedHostPaths = new ArrayList<>(); - } - this.allowedHostPaths.add(allowedHostPathsItem); - return this; - } - - /** - * allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be - * used. - * - * @return allowedHostPaths - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.") - public List getAllowedHostPaths() { - return allowedHostPaths; - } - - public void setAllowedHostPaths(List allowedHostPaths) { - this.allowedHostPaths = allowedHostPaths; - } - - public V1beta1PodSecurityPolicySpec allowedProcMountTypes(List allowedProcMountTypes) { - - this.allowedProcMountTypes = allowedProcMountTypes; - return this; - } - - public V1beta1PodSecurityPolicySpec addAllowedProcMountTypesItem( - String allowedProcMountTypesItem) { - if (this.allowedProcMountTypes == null) { - this.allowedProcMountTypes = new ArrayList<>(); - } - this.allowedProcMountTypes.add(allowedProcMountTypesItem); - return this; - } - - /** - * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that - * only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be - * enabled. - * - * @return allowedProcMountTypes - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.") - public List getAllowedProcMountTypes() { - return allowedProcMountTypes; - } - - public void setAllowedProcMountTypes(List allowedProcMountTypes) { - this.allowedProcMountTypes = allowedProcMountTypes; - } - - public V1beta1PodSecurityPolicySpec allowedUnsafeSysctls(List allowedUnsafeSysctls) { - - this.allowedUnsafeSysctls = allowedUnsafeSysctls; - return this; - } - - public V1beta1PodSecurityPolicySpec addAllowedUnsafeSysctlsItem(String allowedUnsafeSysctlsItem) { - if (this.allowedUnsafeSysctls == null) { - this.allowedUnsafeSysctls = new ArrayList<>(); - } - this.allowedUnsafeSysctls.add(allowedUnsafeSysctlsItem); - return this; - } - - /** - * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each - * entry is either a plain sysctl name or ends in \"*\" in which case it is considered - * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to - * allowlist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. - * \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. - * \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. - * - * @return allowedUnsafeSysctls - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.") - public List getAllowedUnsafeSysctls() { - return allowedUnsafeSysctls; - } - - public void setAllowedUnsafeSysctls(List allowedUnsafeSysctls) { - this.allowedUnsafeSysctls = allowedUnsafeSysctls; - } - - public V1beta1PodSecurityPolicySpec defaultAddCapabilities(List defaultAddCapabilities) { - - this.defaultAddCapabilities = defaultAddCapabilities; - return this; - } - - public V1beta1PodSecurityPolicySpec addDefaultAddCapabilitiesItem( - String defaultAddCapabilitiesItem) { - if (this.defaultAddCapabilities == null) { - this.defaultAddCapabilities = new ArrayList<>(); - } - this.defaultAddCapabilities.add(defaultAddCapabilitiesItem); - return this; - } - - /** - * defaultAddCapabilities is the default set of capabilities that will be added to the container - * unless the pod spec specifically drops the capability. You may not list a capability in both - * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly - * allowed, and need not be included in the allowedCapabilities list. - * - * @return defaultAddCapabilities - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.") - public List getDefaultAddCapabilities() { - return defaultAddCapabilities; - } - - public void setDefaultAddCapabilities(List defaultAddCapabilities) { - this.defaultAddCapabilities = defaultAddCapabilities; - } - - public V1beta1PodSecurityPolicySpec defaultAllowPrivilegeEscalation( - Boolean defaultAllowPrivilegeEscalation) { - - this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - return this; - } - - /** - * defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain - * more privileges than its parent process. - * - * @return defaultAllowPrivilegeEscalation - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.") - public Boolean getDefaultAllowPrivilegeEscalation() { - return defaultAllowPrivilegeEscalation; - } - - public void setDefaultAllowPrivilegeEscalation(Boolean defaultAllowPrivilegeEscalation) { - this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; - } - - public V1beta1PodSecurityPolicySpec forbiddenSysctls(List forbiddenSysctls) { - - this.forbiddenSysctls = forbiddenSysctls; - return this; - } - - public V1beta1PodSecurityPolicySpec addForbiddenSysctlsItem(String forbiddenSysctlsItem) { - if (this.forbiddenSysctls == null) { - this.forbiddenSysctls = new ArrayList<>(); - } - this.forbiddenSysctls.add(forbiddenSysctlsItem); - return this; - } - - /** - * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is - * either a plain sysctl name or ends in \"*\" in which case it is considered as a - * prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. - * \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. - * \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. - * - * @return forbiddenSysctls - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.") - public List getForbiddenSysctls() { - return forbiddenSysctls; - } - - public void setForbiddenSysctls(List forbiddenSysctls) { - this.forbiddenSysctls = forbiddenSysctls; - } - - public V1beta1PodSecurityPolicySpec fsGroup(V1beta1FSGroupStrategyOptions fsGroup) { - - this.fsGroup = fsGroup; - return this; - } - - /** - * Get fsGroup - * - * @return fsGroup - */ - @ApiModelProperty(required = true, value = "") - public V1beta1FSGroupStrategyOptions getFsGroup() { - return fsGroup; - } - - public void setFsGroup(V1beta1FSGroupStrategyOptions fsGroup) { - this.fsGroup = fsGroup; - } - - public V1beta1PodSecurityPolicySpec hostIPC(Boolean hostIPC) { - - this.hostIPC = hostIPC; - return this; - } - - /** - * hostIPC determines if the policy allows the use of HostIPC in the pod spec. - * - * @return hostIPC - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "hostIPC determines if the policy allows the use of HostIPC in the pod spec.") - public Boolean getHostIPC() { - return hostIPC; - } - - public void setHostIPC(Boolean hostIPC) { - this.hostIPC = hostIPC; - } - - public V1beta1PodSecurityPolicySpec hostNetwork(Boolean hostNetwork) { - - this.hostNetwork = hostNetwork; - return this; - } - - /** - * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. - * - * @return hostNetwork - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.") - public Boolean getHostNetwork() { - return hostNetwork; - } - - public void setHostNetwork(Boolean hostNetwork) { - this.hostNetwork = hostNetwork; - } - - public V1beta1PodSecurityPolicySpec hostPID(Boolean hostPID) { - - this.hostPID = hostPID; - return this; - } - - /** - * hostPID determines if the policy allows the use of HostPID in the pod spec. - * - * @return hostPID - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "hostPID determines if the policy allows the use of HostPID in the pod spec.") - public Boolean getHostPID() { - return hostPID; - } - - public void setHostPID(Boolean hostPID) { - this.hostPID = hostPID; - } - - public V1beta1PodSecurityPolicySpec hostPorts(List hostPorts) { - - this.hostPorts = hostPorts; - return this; - } - - public V1beta1PodSecurityPolicySpec addHostPortsItem(V1beta1HostPortRange hostPortsItem) { - if (this.hostPorts == null) { - this.hostPorts = new ArrayList<>(); - } - this.hostPorts.add(hostPortsItem); - return this; - } - - /** - * hostPorts determines which host port ranges are allowed to be exposed. - * - * @return hostPorts - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "hostPorts determines which host port ranges are allowed to be exposed.") - public List getHostPorts() { - return hostPorts; - } - - public void setHostPorts(List hostPorts) { - this.hostPorts = hostPorts; - } - - public V1beta1PodSecurityPolicySpec privileged(Boolean privileged) { - - this.privileged = privileged; - return this; - } - - /** - * privileged determines if a pod can request to be run as privileged. - * - * @return privileged - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "privileged determines if a pod can request to be run as privileged.") - public Boolean getPrivileged() { - return privileged; - } - - public void setPrivileged(Boolean privileged) { - this.privileged = privileged; - } - - public V1beta1PodSecurityPolicySpec readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { - - this.readOnlyRootFilesystem = readOnlyRootFilesystem; - return this; - } - - /** - * readOnlyRootFilesystem when set to true will force containers to run with a read only root file - * system. If the container specifically requests to run with a non-read only root file system the - * PSP should deny the pod. If set to false the container may run with a read only root file - * system if it wishes but it will not be forced to. - * - * @return readOnlyRootFilesystem - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.") - public Boolean getReadOnlyRootFilesystem() { - return readOnlyRootFilesystem; - } - - public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { - this.readOnlyRootFilesystem = readOnlyRootFilesystem; - } - - public V1beta1PodSecurityPolicySpec requiredDropCapabilities( - List requiredDropCapabilities) { - - this.requiredDropCapabilities = requiredDropCapabilities; - return this; - } - - public V1beta1PodSecurityPolicySpec addRequiredDropCapabilitiesItem( - String requiredDropCapabilitiesItem) { - if (this.requiredDropCapabilities == null) { - this.requiredDropCapabilities = new ArrayList<>(); - } - this.requiredDropCapabilities.add(requiredDropCapabilitiesItem); - return this; - } - - /** - * requiredDropCapabilities are the capabilities that will be dropped from the container. These - * are required to be dropped and cannot be added. - * - * @return requiredDropCapabilities - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.") - public List getRequiredDropCapabilities() { - return requiredDropCapabilities; - } - - public void setRequiredDropCapabilities(List requiredDropCapabilities) { - this.requiredDropCapabilities = requiredDropCapabilities; - } - - public V1beta1PodSecurityPolicySpec runAsGroup(V1beta1RunAsGroupStrategyOptions runAsGroup) { - - this.runAsGroup = runAsGroup; - return this; - } - - /** - * Get runAsGroup - * - * @return runAsGroup - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1RunAsGroupStrategyOptions getRunAsGroup() { - return runAsGroup; - } - - public void setRunAsGroup(V1beta1RunAsGroupStrategyOptions runAsGroup) { - this.runAsGroup = runAsGroup; - } - - public V1beta1PodSecurityPolicySpec runAsUser(V1beta1RunAsUserStrategyOptions runAsUser) { - - this.runAsUser = runAsUser; - return this; - } - - /** - * Get runAsUser - * - * @return runAsUser - */ - @ApiModelProperty(required = true, value = "") - public V1beta1RunAsUserStrategyOptions getRunAsUser() { - return runAsUser; - } - - public void setRunAsUser(V1beta1RunAsUserStrategyOptions runAsUser) { - this.runAsUser = runAsUser; - } - - public V1beta1PodSecurityPolicySpec runtimeClass( - V1beta1RuntimeClassStrategyOptions runtimeClass) { - - this.runtimeClass = runtimeClass; - return this; - } - - /** - * Get runtimeClass - * - * @return runtimeClass - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1RuntimeClassStrategyOptions getRuntimeClass() { - return runtimeClass; - } - - public void setRuntimeClass(V1beta1RuntimeClassStrategyOptions runtimeClass) { - this.runtimeClass = runtimeClass; - } - - public V1beta1PodSecurityPolicySpec seLinux(V1beta1SELinuxStrategyOptions seLinux) { - - this.seLinux = seLinux; - return this; - } - - /** - * Get seLinux - * - * @return seLinux - */ - @ApiModelProperty(required = true, value = "") - public V1beta1SELinuxStrategyOptions getSeLinux() { - return seLinux; - } - - public void setSeLinux(V1beta1SELinuxStrategyOptions seLinux) { - this.seLinux = seLinux; - } - - public V1beta1PodSecurityPolicySpec supplementalGroups( - V1beta1SupplementalGroupsStrategyOptions supplementalGroups) { - - this.supplementalGroups = supplementalGroups; - return this; - } - - /** - * Get supplementalGroups - * - * @return supplementalGroups - */ - @ApiModelProperty(required = true, value = "") - public V1beta1SupplementalGroupsStrategyOptions getSupplementalGroups() { - return supplementalGroups; - } - - public void setSupplementalGroups(V1beta1SupplementalGroupsStrategyOptions supplementalGroups) { - this.supplementalGroups = supplementalGroups; - } - - public V1beta1PodSecurityPolicySpec volumes(List volumes) { - - this.volumes = volumes; - return this; - } - - public V1beta1PodSecurityPolicySpec addVolumesItem(String volumesItem) { - if (this.volumes == null) { - this.volumes = new ArrayList<>(); - } - this.volumes.add(volumesItem); - return this; - } - - /** - * volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To - * allow all volumes you may use '*'. - * - * @return volumes - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.") - public List getVolumes() { - return volumes; - } - - public void setVolumes(List volumes) { - this.volumes = volumes; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodSecurityPolicySpec v1beta1PodSecurityPolicySpec = (V1beta1PodSecurityPolicySpec) o; - return Objects.equals( - this.allowPrivilegeEscalation, v1beta1PodSecurityPolicySpec.allowPrivilegeEscalation) - && Objects.equals(this.allowedCSIDrivers, v1beta1PodSecurityPolicySpec.allowedCSIDrivers) - && Objects.equals( - this.allowedCapabilities, v1beta1PodSecurityPolicySpec.allowedCapabilities) - && Objects.equals(this.allowedFlexVolumes, v1beta1PodSecurityPolicySpec.allowedFlexVolumes) - && Objects.equals(this.allowedHostPaths, v1beta1PodSecurityPolicySpec.allowedHostPaths) - && Objects.equals( - this.allowedProcMountTypes, v1beta1PodSecurityPolicySpec.allowedProcMountTypes) - && Objects.equals( - this.allowedUnsafeSysctls, v1beta1PodSecurityPolicySpec.allowedUnsafeSysctls) - && Objects.equals( - this.defaultAddCapabilities, v1beta1PodSecurityPolicySpec.defaultAddCapabilities) - && Objects.equals( - this.defaultAllowPrivilegeEscalation, - v1beta1PodSecurityPolicySpec.defaultAllowPrivilegeEscalation) - && Objects.equals(this.forbiddenSysctls, v1beta1PodSecurityPolicySpec.forbiddenSysctls) - && Objects.equals(this.fsGroup, v1beta1PodSecurityPolicySpec.fsGroup) - && Objects.equals(this.hostIPC, v1beta1PodSecurityPolicySpec.hostIPC) - && Objects.equals(this.hostNetwork, v1beta1PodSecurityPolicySpec.hostNetwork) - && Objects.equals(this.hostPID, v1beta1PodSecurityPolicySpec.hostPID) - && Objects.equals(this.hostPorts, v1beta1PodSecurityPolicySpec.hostPorts) - && Objects.equals(this.privileged, v1beta1PodSecurityPolicySpec.privileged) - && Objects.equals( - this.readOnlyRootFilesystem, v1beta1PodSecurityPolicySpec.readOnlyRootFilesystem) - && Objects.equals( - this.requiredDropCapabilities, v1beta1PodSecurityPolicySpec.requiredDropCapabilities) - && Objects.equals(this.runAsGroup, v1beta1PodSecurityPolicySpec.runAsGroup) - && Objects.equals(this.runAsUser, v1beta1PodSecurityPolicySpec.runAsUser) - && Objects.equals(this.runtimeClass, v1beta1PodSecurityPolicySpec.runtimeClass) - && Objects.equals(this.seLinux, v1beta1PodSecurityPolicySpec.seLinux) - && Objects.equals(this.supplementalGroups, v1beta1PodSecurityPolicySpec.supplementalGroups) - && Objects.equals(this.volumes, v1beta1PodSecurityPolicySpec.volumes); - } - - @Override - public int hashCode() { - return Objects.hash( - allowPrivilegeEscalation, - allowedCSIDrivers, - allowedCapabilities, - allowedFlexVolumes, - allowedHostPaths, - allowedProcMountTypes, - allowedUnsafeSysctls, - defaultAddCapabilities, - defaultAllowPrivilegeEscalation, - forbiddenSysctls, - fsGroup, - hostIPC, - hostNetwork, - hostPID, - hostPorts, - privileged, - readOnlyRootFilesystem, - requiredDropCapabilities, - runAsGroup, - runAsUser, - runtimeClass, - seLinux, - supplementalGroups, - volumes); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1PodSecurityPolicySpec {\n"); - sb.append(" allowPrivilegeEscalation: ") - .append(toIndentedString(allowPrivilegeEscalation)) - .append("\n"); - sb.append(" allowedCSIDrivers: ").append(toIndentedString(allowedCSIDrivers)).append("\n"); - sb.append(" allowedCapabilities: ") - .append(toIndentedString(allowedCapabilities)) - .append("\n"); - sb.append(" allowedFlexVolumes: ").append(toIndentedString(allowedFlexVolumes)).append("\n"); - sb.append(" allowedHostPaths: ").append(toIndentedString(allowedHostPaths)).append("\n"); - sb.append(" allowedProcMountTypes: ") - .append(toIndentedString(allowedProcMountTypes)) - .append("\n"); - sb.append(" allowedUnsafeSysctls: ") - .append(toIndentedString(allowedUnsafeSysctls)) - .append("\n"); - sb.append(" defaultAddCapabilities: ") - .append(toIndentedString(defaultAddCapabilities)) - .append("\n"); - sb.append(" defaultAllowPrivilegeEscalation: ") - .append(toIndentedString(defaultAllowPrivilegeEscalation)) - .append("\n"); - sb.append(" forbiddenSysctls: ").append(toIndentedString(forbiddenSysctls)).append("\n"); - sb.append(" fsGroup: ").append(toIndentedString(fsGroup)).append("\n"); - sb.append(" hostIPC: ").append(toIndentedString(hostIPC)).append("\n"); - sb.append(" hostNetwork: ").append(toIndentedString(hostNetwork)).append("\n"); - sb.append(" hostPID: ").append(toIndentedString(hostPID)).append("\n"); - sb.append(" hostPorts: ").append(toIndentedString(hostPorts)).append("\n"); - sb.append(" privileged: ").append(toIndentedString(privileged)).append("\n"); - sb.append(" readOnlyRootFilesystem: ") - .append(toIndentedString(readOnlyRootFilesystem)) - .append("\n"); - sb.append(" requiredDropCapabilities: ") - .append(toIndentedString(requiredDropCapabilities)) - .append("\n"); - sb.append(" runAsGroup: ").append(toIndentedString(runAsGroup)).append("\n"); - sb.append(" runAsUser: ").append(toIndentedString(runAsUser)).append("\n"); - sb.append(" runtimeClass: ").append(toIndentedString(runtimeClass)).append("\n"); - sb.append(" seLinux: ").append(toIndentedString(seLinux)).append("\n"); - sb.append(" supplementalGroups: ").append(toIndentedString(supplementalGroups)).append("\n"); - sb.append(" volumes: ").append(toIndentedString(volumes)).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/V1beta1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java index 4cfe97e5f1..8069097a40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PolicyRulesWithSubjects.java @@ -31,7 +31,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java index 3522f9381c..04a17aea61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfiguration.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfiguration represents the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java index 33aebaeebf..fccc4c5953 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationCondition.java @@ -23,7 +23,7 @@ description = "PriorityLevelConfigurationCondition defines the condition of priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java index c9fa25f22d..2b431e4728 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationList.java @@ -24,7 +24,7 @@ description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java index 23046d263d..2e6893ddd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationReference.java @@ -26,7 +26,7 @@ "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java index f9701a44e6..a80433c69a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationSpec.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_LIMITED = "limited"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java index eb7228f75d..b549d8d1e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PriorityLevelConfigurationStatus.java @@ -28,7 +28,7 @@ "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java index b13b813443..9be20956b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1QueuingConfiguration.java @@ -21,7 +21,7 @@ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java index 34cc433584..658e00b55d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePolicyRule.java @@ -33,7 +33,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java deleted file mode 100644 index da2d384e07..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsGroupStrategyOptions.java +++ /dev/null @@ -1,135 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. - */ -@ApiModel( - description = - "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1RunAsGroupStrategyOptions { - public static final String SERIALIZED_NAME_RANGES = "ranges"; - - @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; - - public static final String SERIALIZED_NAME_RULE = "rule"; - - @SerializedName(SERIALIZED_NAME_RULE) - private String rule; - - public V1beta1RunAsGroupStrategyOptions ranges(List ranges) { - - this.ranges = ranges; - return this; - } - - public V1beta1RunAsGroupStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { - if (this.ranges == null) { - this.ranges = new ArrayList<>(); - } - this.ranges.add(rangesItem); - return this; - } - - /** - * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid - * then supply a single range with the same start and end. Required for MustRunAs. - * - * @return ranges - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.") - public List getRanges() { - return ranges; - } - - public void setRanges(List ranges) { - this.ranges = ranges; - } - - public V1beta1RunAsGroupStrategyOptions rule(String rule) { - - this.rule = rule; - return this; - } - - /** - * rule is the strategy that will dictate the allowable RunAsGroup values that may be set. - * - * @return rule - */ - @ApiModelProperty( - required = true, - value = - "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.") - public String getRule() { - return rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RunAsGroupStrategyOptions v1beta1RunAsGroupStrategyOptions = - (V1beta1RunAsGroupStrategyOptions) o; - return Objects.equals(this.ranges, v1beta1RunAsGroupStrategyOptions.ranges) - && Objects.equals(this.rule, v1beta1RunAsGroupStrategyOptions.rule); - } - - @Override - public int hashCode() { - return Objects.hash(ranges, rule); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1RunAsGroupStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" rule: ").append(toIndentedString(rule)).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/V1beta1RunAsUserStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptions.java deleted file mode 100644 index 77a558ec6b..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RunAsUserStrategyOptions.java +++ /dev/null @@ -1,135 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. - */ -@ApiModel( - description = - "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1RunAsUserStrategyOptions { - public static final String SERIALIZED_NAME_RANGES = "ranges"; - - @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; - - public static final String SERIALIZED_NAME_RULE = "rule"; - - @SerializedName(SERIALIZED_NAME_RULE) - private String rule; - - public V1beta1RunAsUserStrategyOptions ranges(List ranges) { - - this.ranges = ranges; - return this; - } - - public V1beta1RunAsUserStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { - if (this.ranges == null) { - this.ranges = new ArrayList<>(); - } - this.ranges.add(rangesItem); - return this; - } - - /** - * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid - * then supply a single range with the same start and end. Required for MustRunAs. - * - * @return ranges - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.") - public List getRanges() { - return ranges; - } - - public void setRanges(List ranges) { - this.ranges = ranges; - } - - public V1beta1RunAsUserStrategyOptions rule(String rule) { - - this.rule = rule; - return this; - } - - /** - * rule is the strategy that will dictate the allowable RunAsUser values that may be set. - * - * @return rule - */ - @ApiModelProperty( - required = true, - value = - "rule is the strategy that will dictate the allowable RunAsUser values that may be set.") - public String getRule() { - return rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RunAsUserStrategyOptions v1beta1RunAsUserStrategyOptions = - (V1beta1RunAsUserStrategyOptions) o; - return Objects.equals(this.ranges, v1beta1RunAsUserStrategyOptions.ranges) - && Objects.equals(this.rule, v1beta1RunAsUserStrategyOptions.rule); - } - - @Override - public int hashCode() { - return Objects.hash(ranges, rule); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1RunAsUserStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" rule: ").append(toIndentedString(rule)).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/V1beta1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClass.java deleted file mode 100644 index 97348e0632..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClass.java +++ /dev/null @@ -1,253 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 (currently) 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://git.k8s.io/enhancements/keps/sig-node/585-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 (currently) 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://git.k8s.io/enhancements/keps/sig-node/585-runtime-class") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1RuntimeClass 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_HANDLER = "handler"; - - @SerializedName(SERIALIZED_NAME_HANDLER) - private String handler; - - 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_OVERHEAD = "overhead"; - - @SerializedName(SERIALIZED_NAME_OVERHEAD) - private V1beta1Overhead overhead; - - public static final String SERIALIZED_NAME_SCHEDULING = "scheduling"; - - @SerializedName(SERIALIZED_NAME_SCHEDULING) - private V1beta1Scheduling scheduling; - - public V1beta1RuntimeClass 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 V1beta1RuntimeClass handler(String handler) { - - this.handler = handler; - return this; - } - - /** - * Handler specifies the underlying runtime and configuration that the CRI implementation will use - * to handle pods of this class. The possible values are specific to the node & CRI - * configuration. It is assumed that all handlers are available on every node, and handlers of the - * same name are equivalent on every node. For example, a handler called \"runc\" might - * specify that the runc OCI runtime (using native Linux containers) will be used to run the - * containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) - * requirements, and is immutable. - * - * @return handler - */ - @ApiModelProperty( - required = true, - value = - "Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.") - public String getHandler() { - return handler; - } - - public void setHandler(String handler) { - this.handler = handler; - } - - public V1beta1RuntimeClass 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 V1beta1RuntimeClass 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 V1beta1RuntimeClass overhead(V1beta1Overhead overhead) { - - this.overhead = overhead; - return this; - } - - /** - * Get overhead - * - * @return overhead - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1Overhead getOverhead() { - return overhead; - } - - public void setOverhead(V1beta1Overhead overhead) { - this.overhead = overhead; - } - - public V1beta1RuntimeClass scheduling(V1beta1Scheduling scheduling) { - - this.scheduling = scheduling; - return this; - } - - /** - * Get scheduling - * - * @return scheduling - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1beta1Scheduling getScheduling() { - return scheduling; - } - - public void setScheduling(V1beta1Scheduling scheduling) { - this.scheduling = scheduling; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RuntimeClass v1beta1RuntimeClass = (V1beta1RuntimeClass) o; - return Objects.equals(this.apiVersion, v1beta1RuntimeClass.apiVersion) - && Objects.equals(this.handler, v1beta1RuntimeClass.handler) - && Objects.equals(this.kind, v1beta1RuntimeClass.kind) - && Objects.equals(this.metadata, v1beta1RuntimeClass.metadata) - && Objects.equals(this.overhead, v1beta1RuntimeClass.overhead) - && Objects.equals(this.scheduling, v1beta1RuntimeClass.scheduling); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1RuntimeClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" handler: ").append(toIndentedString(handler)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" overhead: ").append(toIndentedString(overhead)).append("\n"); - sb.append(" scheduling: ").append(toIndentedString(scheduling)).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/V1beta1RuntimeClassStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptions.java deleted file mode 100644 index 77f31af763..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1RuntimeClassStrategyOptions.java +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses - * for a pod. - */ -@ApiModel( - description = - "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1RuntimeClassStrategyOptions { - public static final String SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES = - "allowedRuntimeClassNames"; - - @SerializedName(SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES) - private List allowedRuntimeClassNames = new ArrayList<>(); - - public static final String SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME = "defaultRuntimeClassName"; - - @SerializedName(SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME) - private String defaultRuntimeClassName; - - public V1beta1RuntimeClassStrategyOptions allowedRuntimeClassNames( - List allowedRuntimeClassNames) { - - this.allowedRuntimeClassNames = allowedRuntimeClassNames; - return this; - } - - public V1beta1RuntimeClassStrategyOptions addAllowedRuntimeClassNamesItem( - String allowedRuntimeClassNamesItem) { - this.allowedRuntimeClassNames.add(allowedRuntimeClassNamesItem); - return this; - } - - /** - * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. - * A value of \"*\" means that any RuntimeClass name is allowed, and must be the only - * item in the list. An empty list requires the RuntimeClassName field to be unset. - * - * @return allowedRuntimeClassNames - */ - @ApiModelProperty( - required = true, - value = - "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.") - public List getAllowedRuntimeClassNames() { - return allowedRuntimeClassNames; - } - - public void setAllowedRuntimeClassNames(List allowedRuntimeClassNames) { - this.allowedRuntimeClassNames = allowedRuntimeClassNames; - } - - public V1beta1RuntimeClassStrategyOptions defaultRuntimeClassName( - String defaultRuntimeClassName) { - - this.defaultRuntimeClassName = defaultRuntimeClassName; - return this; - } - - /** - * defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be - * allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. - * - * @return defaultRuntimeClassName - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.") - public String getDefaultRuntimeClassName() { - return defaultRuntimeClassName; - } - - public void setDefaultRuntimeClassName(String defaultRuntimeClassName) { - this.defaultRuntimeClassName = defaultRuntimeClassName; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RuntimeClassStrategyOptions v1beta1RuntimeClassStrategyOptions = - (V1beta1RuntimeClassStrategyOptions) o; - return Objects.equals( - this.allowedRuntimeClassNames, - v1beta1RuntimeClassStrategyOptions.allowedRuntimeClassNames) - && Objects.equals( - this.defaultRuntimeClassName, - v1beta1RuntimeClassStrategyOptions.defaultRuntimeClassName); - } - - @Override - public int hashCode() { - return Objects.hash(allowedRuntimeClassNames, defaultRuntimeClassName); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1RuntimeClassStrategyOptions {\n"); - sb.append(" allowedRuntimeClassNames: ") - .append(toIndentedString(allowedRuntimeClassNames)) - .append("\n"); - sb.append(" defaultRuntimeClassName: ") - .append(toIndentedString(defaultRuntimeClassName)) - .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/V1beta1SELinuxStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptions.java deleted file mode 100644 index 97657e917e..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SELinuxStrategyOptions.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. */ -@ApiModel( - description = - "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1SELinuxStrategyOptions { - public static final String SERIALIZED_NAME_RULE = "rule"; - - @SerializedName(SERIALIZED_NAME_RULE) - private String rule; - - public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; - - @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) - private V1SELinuxOptions seLinuxOptions; - - public V1beta1SELinuxStrategyOptions rule(String rule) { - - this.rule = rule; - return this; - } - - /** - * rule is the strategy that will dictate the allowable labels that may be set. - * - * @return rule - */ - @ApiModelProperty( - required = true, - value = "rule is the strategy that will dictate the allowable labels that may be set.") - public String getRule() { - return rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - public V1beta1SELinuxStrategyOptions seLinuxOptions(V1SELinuxOptions seLinuxOptions) { - - this.seLinuxOptions = seLinuxOptions; - return this; - } - - /** - * Get seLinuxOptions - * - * @return seLinuxOptions - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1SELinuxOptions getSeLinuxOptions() { - return seLinuxOptions; - } - - public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { - this.seLinuxOptions = seLinuxOptions; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SELinuxStrategyOptions v1beta1SELinuxStrategyOptions = (V1beta1SELinuxStrategyOptions) o; - return Objects.equals(this.rule, v1beta1SELinuxStrategyOptions.rule) - && Objects.equals(this.seLinuxOptions, v1beta1SELinuxStrategyOptions.seLinuxOptions); - } - - @Override - public int hashCode() { - return Objects.hash(rule, seLinuxOptions); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1SELinuxStrategyOptions {\n"); - sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); - sb.append(" seLinuxOptions: ").append(toIndentedString(seLinuxOptions)).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/V1beta1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Scheduling.java deleted file mode 100644 index 217a0edd16..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Scheduling.java +++ /dev/null @@ -1,145 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1Scheduling { - public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; - - @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) - private Map nodeSelector = null; - - public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; - - @SerializedName(SERIALIZED_NAME_TOLERATIONS) - private List tolerations = null; - - public V1beta1Scheduling nodeSelector(Map nodeSelector) { - - this.nodeSelector = nodeSelector; - return this; - } - - public V1beta1Scheduling putNodeSelectorItem(String key, String nodeSelectorItem) { - if (this.nodeSelector == null) { - this.nodeSelector = new HashMap<>(); - } - this.nodeSelector.put(key, nodeSelectorItem); - return this; - } - - /** - * nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods - * using this RuntimeClass can only be scheduled to a node matched by this selector. The - * RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will - * cause the pod to be rejected in admission. - * - * @return nodeSelector - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.") - public Map getNodeSelector() { - return nodeSelector; - } - - public void setNodeSelector(Map nodeSelector) { - this.nodeSelector = nodeSelector; - } - - public V1beta1Scheduling tolerations(List tolerations) { - - this.tolerations = tolerations; - return this; - } - - public V1beta1Scheduling addTolerationsItem(V1Toleration tolerationsItem) { - if (this.tolerations == null) { - this.tolerations = new ArrayList<>(); - } - this.tolerations.add(tolerationsItem); - return this; - } - - /** - * tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during - * admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. - * - * @return tolerations - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.") - public List getTolerations() { - return tolerations; - } - - public void setTolerations(List tolerations) { - this.tolerations = tolerations; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Scheduling v1beta1Scheduling = (V1beta1Scheduling) o; - return Objects.equals(this.nodeSelector, v1beta1Scheduling.nodeSelector) - && Objects.equals(this.tolerations, v1beta1Scheduling.tolerations); - } - - @Override - public int hashCode() { - return Objects.hash(nodeSelector, tolerations); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1Scheduling {\n"); - sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).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/V1beta1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java index 3f8df8bc7d..7298bfed4c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceAccountSubject.java @@ -23,7 +23,7 @@ "ServiceAccountSubject holds detailed information for service-account-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java index 24fe638ddb..74425058ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Subject.java @@ -26,7 +26,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java deleted file mode 100644 index 8355558a22..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1SupplementalGroupsStrategyOptions.java +++ /dev/null @@ -1,137 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the - * strategy. - */ -@ApiModel( - description = - "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V1beta1SupplementalGroupsStrategyOptions { - public static final String SERIALIZED_NAME_RANGES = "ranges"; - - @SerializedName(SERIALIZED_NAME_RANGES) - private List ranges = null; - - public static final String SERIALIZED_NAME_RULE = "rule"; - - @SerializedName(SERIALIZED_NAME_RULE) - private String rule; - - public V1beta1SupplementalGroupsStrategyOptions ranges(List ranges) { - - this.ranges = ranges; - return this; - } - - public V1beta1SupplementalGroupsStrategyOptions addRangesItem(V1beta1IDRange rangesItem) { - if (this.ranges == null) { - this.ranges = new ArrayList<>(); - } - this.ranges.add(rangesItem); - return this; - } - - /** - * ranges are the allowed ranges of supplemental groups. If you would like to force a single - * supplemental group then supply a single range with the same start and end. Required for - * MustRunAs. - * - * @return ranges - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.") - public List getRanges() { - return ranges; - } - - public void setRanges(List ranges) { - this.ranges = ranges; - } - - public V1beta1SupplementalGroupsStrategyOptions rule(String rule) { - - this.rule = rule; - return this; - } - - /** - * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. - * - * @return rule - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.") - public String getRule() { - return rule; - } - - public void setRule(String rule) { - this.rule = rule; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SupplementalGroupsStrategyOptions v1beta1SupplementalGroupsStrategyOptions = - (V1beta1SupplementalGroupsStrategyOptions) o; - return Objects.equals(this.ranges, v1beta1SupplementalGroupsStrategyOptions.ranges) - && Objects.equals(this.rule, v1beta1SupplementalGroupsStrategyOptions.rule); - } - - @Override - public int hashCode() { - return Objects.hash(ranges, rule); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1SupplementalGroupsStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); - sb.append(" rule: ").append(toIndentedString(rule)).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/V1beta1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java index ef0509ab17..28e13ee5ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1UserSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java index 72ef2759aa..1ec1009847 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowDistinguisherMethod.java @@ -21,7 +21,7 @@ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java index 775c34017f..9144eea60d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchema.java @@ -27,7 +27,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\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java index 60eab2f634..70ee26c7c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaCondition.java @@ -22,7 +22,7 @@ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java index a99006a099..9f933f95e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaList.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java index bbdd47f299..7ae39d2fc8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaSpec.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java index 937ddf418c..8ef845b778 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2FlowSchemaStatus.java @@ -23,7 +23,7 @@ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java index c72432f609..c561cbae01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2GroupSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java index e363b7a119..d5604b926c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitResponse.java @@ -23,7 +23,7 @@ "LimitResponse defines how to handle requests that can not be executed right now.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java index f6950022f3..dcb0a16af4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2LimitedPriorityLevelConfiguration.java @@ -19,15 +19,15 @@ /** * 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 + * 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?") + "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_ASSURED_CONCURRENCY_SHARES = "assuredConcurrencyShares"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java index 217111385b..f484746c40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NonResourcePolicyRule.java @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java index e0ec946d01..f1b6807c7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PolicyRulesWithSubjects.java @@ -31,7 +31,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java index 1d63dcf13b..6661620e5c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfiguration.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfiguration represents the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java index b51e2c3c33..7ec4804a3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationCondition.java @@ -23,7 +23,7 @@ description = "PriorityLevelConfigurationCondition defines the condition of priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java index 6fa0d7b6c5..63357272de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationList.java @@ -24,7 +24,7 @@ description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java index 08b9f6f3fe..d754211998 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationReference.java @@ -26,7 +26,7 @@ "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java index 48471c3e57..f3c35371eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationSpec.java @@ -22,7 +22,7 @@ description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_LIMITED = "limited"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java index 9333e2b285..760e717ee6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2PriorityLevelConfigurationStatus.java @@ -28,7 +28,7 @@ "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java index e11e914b8c..d32b0f5390 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2QueuingConfiguration.java @@ -21,7 +21,7 @@ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java index 583b27b681..edc67d6115 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePolicyRule.java @@ -33,7 +33,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java index 05844287ec..70084dbd62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ServiceAccountSubject.java @@ -23,7 +23,7 @@ "ServiceAccountSubject holds detailed information for service-account-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java index 6b0e58e5a6..731174db6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Subject.java @@ -26,7 +26,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2Subject { public static final String SERIALIZED_NAME_GROUP = "group"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java index b30fef3e37..32b0ea2a2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2UserSubject.java @@ -21,7 +21,7 @@ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V1beta2UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; 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 7ea8db6271..479ed6fd94 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 @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "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 3912e85dc4..ce1353639d 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 @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "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 cadbe60dc8..76f71d7857 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 @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 ecb2331b26..13be738eac 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 @@ -27,7 +27,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).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "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 c45ea41b9d..983fcaeead 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "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 085f9b22c2..c43b8ac68a 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 @@ -23,7 +23,7 @@ "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; 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 0ca3c624b7..668b786a58 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. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "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 87d1fc3faa..c2bc69f06a 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 7e3f94b9d3..5ad850d84c 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; 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 57b2cfa080..77ccd11058 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 @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; 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 9bfdf536cd..c970a6f063 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 @@ -24,7 +24,7 @@ description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; 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 f6bc50d5c8..dc8318ac58 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 @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "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 af8e28cc42..c044786717 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 @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "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 0f77e9af3f..a86c95d65c 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 @@ -21,7 +21,7 @@ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2MetricIdentifier { public static final String SERIALIZED_NAME_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 8eef4b872b..f19371f826 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; 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 9a7e53e0a0..a997683d42 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 @@ -21,7 +21,7 @@ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; 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 8ba154eaf6..9e8eeaa1a3 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 @@ -26,7 +26,7 @@ "MetricTarget defines the target value, average value, or average utilization of a specific metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @@ -82,41 +82,41 @@ public V2MetricTarget averageValue(Quantity averageValue) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 averageValue */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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 getAverageValue() { return averageValue; } @@ -156,41 +156,41 @@ public V2MetricTarget value(Quantity 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: <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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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; } 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 1249baedf9..6ddcbec603 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 @@ -22,7 +22,7 @@ @ApiModel(description = "MetricValueStatus holds the current value for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @@ -72,41 +72,41 @@ public V2MetricValueStatus averageValue(Quantity averageValue) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 averageValue */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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 getAverageValue() { return averageValue; } @@ -124,41 +124,41 @@ public V2MetricValueStatus value(Quantity 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: <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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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; } 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 201e8ad5ae..911d9ddf4a 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; 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 d66525d788..abbd7f5d32 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "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 780036295a..787f93efd1 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 @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "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 5250df7f62..2fad74603a 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 @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "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 b850c8dddc..d79f3ea1b0 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 @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ResourceMetricSource { public static final String SERIALIZED_NAME_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 a44e0ce08b..a6402f1878 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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSource.java deleted file mode 100644 index 6fcc218234..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricSource.java +++ /dev/null @@ -1,223 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ContainerResourceMetricSource { - public static final String SERIALIZED_NAME_CONTAINER = "container"; - - @SerializedName(SERIALIZED_NAME_CONTAINER) - private String container; - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TARGET_AVERAGE_UTILIZATION = - "targetAverageUtilization"; - - @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_UTILIZATION) - private Integer targetAverageUtilization; - - public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; - - @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) - private Quantity targetAverageValue; - - public V2beta1ContainerResourceMetricSource container(String container) { - - this.container = container; - return this; - } - - /** - * container is the name of the container in the pods of the scaling target - * - * @return container - */ - @ApiModelProperty( - required = true, - value = "container is the name of the container in the pods of the scaling target") - public String getContainer() { - return container; - } - - public void setContainer(String container) { - this.container = container; - } - - public V2beta1ContainerResourceMetricSource name(String name) { - - this.name = name; - return this; - } - - /** - * name is the name of the resource in question. - * - * @return name - */ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public V2beta1ContainerResourceMetricSource targetAverageUtilization( - Integer targetAverageUtilization) { - - this.targetAverageUtilization = targetAverageUtilization; - return this; - } - - /** - * targetAverageUtilization is the target value of the average of the resource metric across all - * relevant pods, represented as a percentage of the requested value of the resource for the pods. - * - * @return targetAverageUtilization - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") - public Integer getTargetAverageUtilization() { - return targetAverageUtilization; - } - - public void setTargetAverageUtilization(Integer targetAverageUtilization) { - this.targetAverageUtilization = targetAverageUtilization; - } - - public V2beta1ContainerResourceMetricSource targetAverageValue(Quantity targetAverageValue) { - - this.targetAverageValue = targetAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 targetAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getTargetAverageValue() { - return targetAverageValue; - } - - public void setTargetAverageValue(Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ContainerResourceMetricSource v2beta1ContainerResourceMetricSource = - (V2beta1ContainerResourceMetricSource) o; - return Objects.equals(this.container, v2beta1ContainerResourceMetricSource.container) - && Objects.equals(this.name, v2beta1ContainerResourceMetricSource.name) - && Objects.equals( - this.targetAverageUtilization, - v2beta1ContainerResourceMetricSource.targetAverageUtilization) - && Objects.equals( - this.targetAverageValue, v2beta1ContainerResourceMetricSource.targetAverageValue); - } - - @Override - public int hashCode() { - return Objects.hash(container, name, targetAverageUtilization, targetAverageValue); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ContainerResourceMetricSource {\n"); - sb.append(" container: ").append(toIndentedString(container)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" targetAverageUtilization: ") - .append(toIndentedString(targetAverageUtilization)) - .append("\n"); - sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).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/V2beta1ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatus.java deleted file mode 100644 index 85c2e497b2..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ContainerResourceMetricStatus.java +++ /dev/null @@ -1,226 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ContainerResourceMetricStatus { - public static final String SERIALIZED_NAME_CONTAINER = "container"; - - @SerializedName(SERIALIZED_NAME_CONTAINER) - private String container; - - public static final String SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION = - "currentAverageUtilization"; - - @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION) - private Integer currentAverageUtilization; - - public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; - - @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) - private Quantity currentAverageValue; - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public V2beta1ContainerResourceMetricStatus container(String container) { - - this.container = container; - return this; - } - - /** - * container is the name of the container in the pods of the scaling target - * - * @return container - */ - @ApiModelProperty( - required = true, - value = "container is the name of the container in the pods of the scaling target") - public String getContainer() { - return container; - } - - public void setContainer(String container) { - this.container = container; - } - - public V2beta1ContainerResourceMetricStatus currentAverageUtilization( - Integer currentAverageUtilization) { - - this.currentAverageUtilization = currentAverageUtilization; - return this; - } - - /** - * currentAverageUtilization is the current value of the average of the resource metric across all - * relevant pods, represented as a percentage of the requested value of the resource for the pods. - * It will only be present if `targetAverageValue` was set in the corresponding metric - * specification. - * - * @return currentAverageUtilization - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.") - public Integer getCurrentAverageUtilization() { - return currentAverageUtilization; - } - - public void setCurrentAverageUtilization(Integer currentAverageUtilization) { - this.currentAverageUtilization = currentAverageUtilization; - } - - public V2beta1ContainerResourceMetricStatus currentAverageValue(Quantity currentAverageValue) { - - this.currentAverageValue = currentAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 currentAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getCurrentAverageValue() { - return currentAverageValue; - } - - public void setCurrentAverageValue(Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - } - - public V2beta1ContainerResourceMetricStatus name(String name) { - - this.name = name; - return this; - } - - /** - * name is the name of the resource in question. - * - * @return name - */ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - 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; - } - V2beta1ContainerResourceMetricStatus v2beta1ContainerResourceMetricStatus = - (V2beta1ContainerResourceMetricStatus) o; - return Objects.equals(this.container, v2beta1ContainerResourceMetricStatus.container) - && Objects.equals( - this.currentAverageUtilization, - v2beta1ContainerResourceMetricStatus.currentAverageUtilization) - && Objects.equals( - this.currentAverageValue, v2beta1ContainerResourceMetricStatus.currentAverageValue) - && Objects.equals(this.name, v2beta1ContainerResourceMetricStatus.name); - } - - @Override - public int hashCode() { - return Objects.hash(container, currentAverageUtilization, currentAverageValue, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ContainerResourceMetricStatus {\n"); - sb.append(" container: ").append(toIndentedString(container)).append("\n"); - sb.append(" currentAverageUtilization: ") - .append(toIndentedString(currentAverageUtilization)) - .append("\n"); - sb.append(" currentAverageValue: ") - .append(toIndentedString(currentAverageValue)) - .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/V2beta1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReference.java deleted file mode 100644 index 20d9d01ffd..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1CrossVersionObjectReference.java +++ /dev/null @@ -1,154 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1CrossVersionObjectReference { - 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_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public V2beta1CrossVersionObjectReference apiVersion(String apiVersion) { - - this.apiVersion = apiVersion; - return this; - } - - /** - * API version of the referent - * - * @return apiVersion - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "API version of the referent") - public String getApiVersion() { - return apiVersion; - } - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - public V2beta1CrossVersionObjectReference kind(String kind) { - - this.kind = kind; - return this; - } - - /** - * Kind of the referent; More info: - * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" - * - * @return kind - */ - @ApiModelProperty( - required = true, - value = - "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"") - public String getKind() { - return kind; - } - - public void setKind(String kind) { - this.kind = kind; - } - - public V2beta1CrossVersionObjectReference name(String name) { - - this.name = name; - return this; - } - - /** - * Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names - * - * @return name - */ - @ApiModelProperty( - required = true, - value = - "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names") - 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; - } - V2beta1CrossVersionObjectReference v2beta1CrossVersionObjectReference = - (V2beta1CrossVersionObjectReference) o; - return Objects.equals(this.apiVersion, v2beta1CrossVersionObjectReference.apiVersion) - && Objects.equals(this.kind, v2beta1CrossVersionObjectReference.kind) - && Objects.equals(this.name, v2beta1CrossVersionObjectReference.name); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1CrossVersionObjectReference {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).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/V2beta1ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSource.java deleted file mode 100644 index 0f17553338..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricSource.java +++ /dev/null @@ -1,239 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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). Exactly one \"target\" type should be set. - */ -@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). Exactly one \"target\" type should be set.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ExternalMetricSource { - public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; - - @SerializedName(SERIALIZED_NAME_METRIC_NAME) - private String metricName; - - public static final String SERIALIZED_NAME_METRIC_SELECTOR = "metricSelector"; - - @SerializedName(SERIALIZED_NAME_METRIC_SELECTOR) - private V1LabelSelector metricSelector; - - public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; - - @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) - private Quantity targetAverageValue; - - public static final String SERIALIZED_NAME_TARGET_VALUE = "targetValue"; - - @SerializedName(SERIALIZED_NAME_TARGET_VALUE) - private Quantity targetValue; - - public V2beta1ExternalMetricSource metricName(String metricName) { - - this.metricName = metricName; - return this; - } - - /** - * metricName is the name of the metric in question. - * - * @return metricName - */ - @ApiModelProperty(required = true, value = "metricName is the name of the metric in question.") - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public V2beta1ExternalMetricSource metricSelector(V1LabelSelector metricSelector) { - - this.metricSelector = metricSelector; - return this; - } - - /** - * Get metricSelector - * - * @return metricSelector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getMetricSelector() { - return metricSelector; - } - - public void setMetricSelector(V1LabelSelector metricSelector) { - this.metricSelector = metricSelector; - } - - public V2beta1ExternalMetricSource targetAverageValue(Quantity targetAverageValue) { - - this.targetAverageValue = targetAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 targetAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getTargetAverageValue() { - return targetAverageValue; - } - - public void setTargetAverageValue(Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - } - - public V2beta1ExternalMetricSource targetValue(Quantity targetValue) { - - this.targetValue = targetValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 targetValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getTargetValue() { - return targetValue; - } - - public void setTargetValue(Quantity targetValue) { - this.targetValue = targetValue; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ExternalMetricSource v2beta1ExternalMetricSource = (V2beta1ExternalMetricSource) o; - return Objects.equals(this.metricName, v2beta1ExternalMetricSource.metricName) - && Objects.equals(this.metricSelector, v2beta1ExternalMetricSource.metricSelector) - && Objects.equals(this.targetAverageValue, v2beta1ExternalMetricSource.targetAverageValue) - && Objects.equals(this.targetValue, v2beta1ExternalMetricSource.targetValue); - } - - @Override - public int hashCode() { - return Objects.hash(metricName, metricSelector, targetAverageValue, targetValue); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ExternalMetricSource {\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); - sb.append(" metricSelector: ").append(toIndentedString(metricSelector)).append("\n"); - sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).append("\n"); - sb.append(" targetValue: ").append(toIndentedString(targetValue)).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/V2beta1ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatus.java deleted file mode 100644 index 53a0815b5b..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatus.java +++ /dev/null @@ -1,242 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ExternalMetricStatus { - public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; - - @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) - private Quantity currentAverageValue; - - public static final String SERIALIZED_NAME_CURRENT_VALUE = "currentValue"; - - @SerializedName(SERIALIZED_NAME_CURRENT_VALUE) - private Quantity currentValue; - - public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; - - @SerializedName(SERIALIZED_NAME_METRIC_NAME) - private String metricName; - - public static final String SERIALIZED_NAME_METRIC_SELECTOR = "metricSelector"; - - @SerializedName(SERIALIZED_NAME_METRIC_SELECTOR) - private V1LabelSelector metricSelector; - - public V2beta1ExternalMetricStatus currentAverageValue(Quantity currentAverageValue) { - - this.currentAverageValue = currentAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 currentAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getCurrentAverageValue() { - return currentAverageValue; - } - - public void setCurrentAverageValue(Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - } - - public V2beta1ExternalMetricStatus currentValue(Quantity currentValue) { - - this.currentValue = currentValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 currentValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getCurrentValue() { - return currentValue; - } - - public void setCurrentValue(Quantity currentValue) { - this.currentValue = currentValue; - } - - public V2beta1ExternalMetricStatus metricName(String metricName) { - - this.metricName = metricName; - return this; - } - - /** - * metricName is the name of a metric used for autoscaling in metric system. - * - * @return metricName - */ - @ApiModelProperty( - required = true, - value = "metricName is the name of a metric used for autoscaling in metric system.") - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public V2beta1ExternalMetricStatus metricSelector(V1LabelSelector metricSelector) { - - this.metricSelector = metricSelector; - return this; - } - - /** - * Get metricSelector - * - * @return metricSelector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getMetricSelector() { - return metricSelector; - } - - public void setMetricSelector(V1LabelSelector metricSelector) { - this.metricSelector = metricSelector; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ExternalMetricStatus v2beta1ExternalMetricStatus = (V2beta1ExternalMetricStatus) o; - return Objects.equals(this.currentAverageValue, v2beta1ExternalMetricStatus.currentAverageValue) - && Objects.equals(this.currentValue, v2beta1ExternalMetricStatus.currentValue) - && Objects.equals(this.metricName, v2beta1ExternalMetricStatus.metricName) - && Objects.equals(this.metricSelector, v2beta1ExternalMetricStatus.metricSelector); - } - - @Override - public int hashCode() { - return Objects.hash(currentAverageValue, currentValue, metricName, metricSelector); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ExternalMetricStatus {\n"); - sb.append(" currentAverageValue: ") - .append(toIndentedString(currentAverageValue)) - .append("\n"); - sb.append(" currentValue: ").append(toIndentedString(currentValue)).append("\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); - sb.append(" metricSelector: ").append(toIndentedString(metricSelector)).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/V2beta1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscaler.java deleted file mode 100644 index 270a8e0d5b..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscaler.java +++ /dev/null @@ -1,217 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1HorizontalPodAutoscaler - 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 V2beta1HorizontalPodAutoscalerSpec spec; - - public static final String SERIALIZED_NAME_STATUS = "status"; - - @SerializedName(SERIALIZED_NAME_STATUS) - private V2beta1HorizontalPodAutoscalerStatus status; - - public V2beta1HorizontalPodAutoscaler 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 V2beta1HorizontalPodAutoscaler 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 V2beta1HorizontalPodAutoscaler 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 V2beta1HorizontalPodAutoscaler spec(V2beta1HorizontalPodAutoscalerSpec spec) { - - this.spec = spec; - return this; - } - - /** - * Get spec - * - * @return spec - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1HorizontalPodAutoscalerSpec getSpec() { - return spec; - } - - public void setSpec(V2beta1HorizontalPodAutoscalerSpec spec) { - this.spec = spec; - } - - public V2beta1HorizontalPodAutoscaler status(V2beta1HorizontalPodAutoscalerStatus status) { - - this.status = status; - return this; - } - - /** - * Get status - * - * @return status - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1HorizontalPodAutoscalerStatus getStatus() { - return status; - } - - public void setStatus(V2beta1HorizontalPodAutoscalerStatus status) { - this.status = status; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscaler v2beta1HorizontalPodAutoscaler = - (V2beta1HorizontalPodAutoscaler) o; - return Objects.equals(this.apiVersion, v2beta1HorizontalPodAutoscaler.apiVersion) - && Objects.equals(this.kind, v2beta1HorizontalPodAutoscaler.kind) - && Objects.equals(this.metadata, v2beta1HorizontalPodAutoscaler.metadata) - && Objects.equals(this.spec, v2beta1HorizontalPodAutoscaler.spec) - && Objects.equals(this.status, v2beta1HorizontalPodAutoscaler.status); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1HorizontalPodAutoscaler {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V2beta1HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerCondition.java deleted file mode 100644 index d00e2585b6..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerCondition.java +++ /dev/null @@ -1,211 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1HorizontalPodAutoscalerCondition { - public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; - - @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) - private OffsetDateTime lastTransitionTime; - - public static final String SERIALIZED_NAME_MESSAGE = "message"; - - @SerializedName(SERIALIZED_NAME_MESSAGE) - private String message; - - public static final String SERIALIZED_NAME_REASON = "reason"; - - @SerializedName(SERIALIZED_NAME_REASON) - private String reason; - - public static final String SERIALIZED_NAME_STATUS = "status"; - - @SerializedName(SERIALIZED_NAME_STATUS) - private String status; - - public static final String SERIALIZED_NAME_TYPE = "type"; - - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public V2beta1HorizontalPodAutoscalerCondition lastTransitionTime( - OffsetDateTime lastTransitionTime) { - - this.lastTransitionTime = lastTransitionTime; - return this; - } - - /** - * lastTransitionTime is the last time the condition transitioned from one status to another - * - * @return lastTransitionTime - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "lastTransitionTime is the last time the condition transitioned from one status to another") - public OffsetDateTime getLastTransitionTime() { - return lastTransitionTime; - } - - public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - } - - public V2beta1HorizontalPodAutoscalerCondition message(String message) { - - this.message = message; - return this; - } - - /** - * message is a human-readable explanation containing details about the transition - * - * @return message - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "message is a human-readable explanation containing details about the transition") - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public V2beta1HorizontalPodAutoscalerCondition reason(String reason) { - - this.reason = reason; - return this; - } - - /** - * reason is the reason for the condition's last transition. - * - * @return reason - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "reason is the reason for the condition's last transition.") - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public V2beta1HorizontalPodAutoscalerCondition status(String status) { - - this.status = status; - return this; - } - - /** - * status is the status of the condition (True, False, Unknown) - * - * @return status - */ - @ApiModelProperty( - required = true, - value = "status is the status of the condition (True, False, Unknown)") - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public V2beta1HorizontalPodAutoscalerCondition type(String type) { - - this.type = type; - return this; - } - - /** - * type describes the current condition - * - * @return type - */ - @ApiModelProperty(required = true, value = "type describes the current condition") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerCondition v2beta1HorizontalPodAutoscalerCondition = - (V2beta1HorizontalPodAutoscalerCondition) o; - return Objects.equals( - this.lastTransitionTime, v2beta1HorizontalPodAutoscalerCondition.lastTransitionTime) - && Objects.equals(this.message, v2beta1HorizontalPodAutoscalerCondition.message) - && Objects.equals(this.reason, v2beta1HorizontalPodAutoscalerCondition.reason) - && Objects.equals(this.status, v2beta1HorizontalPodAutoscalerCondition.status) - && Objects.equals(this.type, v2beta1HorizontalPodAutoscalerCondition.type); - } - - @Override - public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1HorizontalPodAutoscalerCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V2beta1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerList.java deleted file mode 100644 index cc5db2576c..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerList.java +++ /dev/null @@ -1,191 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. */ -@ApiModel(description = "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.") -@javax.annotation.Generated( - value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1HorizontalPodAutoscalerList - 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 V2beta1HorizontalPodAutoscalerList 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 V2beta1HorizontalPodAutoscalerList items(List items) { - - this.items = items; - return this; - } - - public V2beta1HorizontalPodAutoscalerList addItemsItem(V2beta1HorizontalPodAutoscaler itemsItem) { - this.items.add(itemsItem); - return this; - } - - /** - * items is the list of horizontal pod autoscaler objects. - * - * @return items - */ - @ApiModelProperty( - required = true, - value = "items is the list of horizontal pod autoscaler objects.") - public List getItems() { - return items; - } - - public void setItems(List items) { - this.items = items; - } - - public V2beta1HorizontalPodAutoscalerList 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 V2beta1HorizontalPodAutoscalerList 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; - } - V2beta1HorizontalPodAutoscalerList v2beta1HorizontalPodAutoscalerList = - (V2beta1HorizontalPodAutoscalerList) o; - return Objects.equals(this.apiVersion, v2beta1HorizontalPodAutoscalerList.apiVersion) - && Objects.equals(this.items, v2beta1HorizontalPodAutoscalerList.items) - && Objects.equals(this.kind, v2beta1HorizontalPodAutoscalerList.kind) - && Objects.equals(this.metadata, v2beta1HorizontalPodAutoscalerList.metadata); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1HorizontalPodAutoscalerList {\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/V2beta1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpec.java deleted file mode 100644 index 7c12d59c93..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerSpec.java +++ /dev/null @@ -1,201 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1HorizontalPodAutoscalerSpec { - public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; - - @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) - private Integer maxReplicas; - - public static final String SERIALIZED_NAME_METRICS = "metrics"; - - @SerializedName(SERIALIZED_NAME_METRICS) - private List metrics = null; - - public static final String SERIALIZED_NAME_MIN_REPLICAS = "minReplicas"; - - @SerializedName(SERIALIZED_NAME_MIN_REPLICAS) - private Integer minReplicas; - - public static final String SERIALIZED_NAME_SCALE_TARGET_REF = "scaleTargetRef"; - - @SerializedName(SERIALIZED_NAME_SCALE_TARGET_REF) - private V2beta1CrossVersionObjectReference scaleTargetRef; - - public V2beta1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { - - this.maxReplicas = maxReplicas; - return this; - } - - /** - * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. - * It cannot be less that minReplicas. - * - * @return maxReplicas - */ - @ApiModelProperty( - required = true, - value = - "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.") - public Integer getMaxReplicas() { - return maxReplicas; - } - - public void setMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - } - - public V2beta1HorizontalPodAutoscalerSpec metrics(List metrics) { - - this.metrics = metrics; - return this; - } - - public V2beta1HorizontalPodAutoscalerSpec addMetricsItem(V2beta1MetricSpec metricsItem) { - if (this.metrics == null) { - this.metrics = new ArrayList<>(); - } - this.metrics.add(metricsItem); - return this; - } - - /** - * metrics contains the specifications for which to use to calculate the desired replica count - * (the maximum replica count across all metrics will be used). The desired replica count is - * calculated multiplying the ratio between the target value and the current value by the current - * number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. - * See the individual metric source types for more information about how each type of metric must - * respond. - * - * @return metrics - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.") - public List getMetrics() { - return metrics; - } - - public void setMetrics(List metrics) { - this.metrics = metrics; - } - - public V2beta1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { - - this.minReplicas = minReplicas; - return this; - } - - /** - * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale - * down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate - * HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is - * active as long as at least one metric value is available. - * - * @return minReplicas - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.") - public Integer getMinReplicas() { - return minReplicas; - } - - public void setMinReplicas(Integer minReplicas) { - this.minReplicas = minReplicas; - } - - public V2beta1HorizontalPodAutoscalerSpec scaleTargetRef( - V2beta1CrossVersionObjectReference scaleTargetRef) { - - this.scaleTargetRef = scaleTargetRef; - return this; - } - - /** - * Get scaleTargetRef - * - * @return scaleTargetRef - */ - @ApiModelProperty(required = true, value = "") - public V2beta1CrossVersionObjectReference getScaleTargetRef() { - return scaleTargetRef; - } - - public void setScaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef) { - this.scaleTargetRef = scaleTargetRef; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerSpec v2beta1HorizontalPodAutoscalerSpec = - (V2beta1HorizontalPodAutoscalerSpec) o; - return Objects.equals(this.maxReplicas, v2beta1HorizontalPodAutoscalerSpec.maxReplicas) - && Objects.equals(this.metrics, v2beta1HorizontalPodAutoscalerSpec.metrics) - && Objects.equals(this.minReplicas, v2beta1HorizontalPodAutoscalerSpec.minReplicas) - && Objects.equals(this.scaleTargetRef, v2beta1HorizontalPodAutoscalerSpec.scaleTargetRef); - } - - @Override - public int hashCode() { - return Objects.hash(maxReplicas, metrics, minReplicas, scaleTargetRef); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1HorizontalPodAutoscalerSpec {\n"); - sb.append(" maxReplicas: ").append(toIndentedString(maxReplicas)).append("\n"); - sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); - sb.append(" minReplicas: ").append(toIndentedString(minReplicas)).append("\n"); - sb.append(" scaleTargetRef: ").append(toIndentedString(scaleTargetRef)).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/V2beta1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatus.java deleted file mode 100644 index 84d816cb32..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1HorizontalPodAutoscalerStatus.java +++ /dev/null @@ -1,276 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1HorizontalPodAutoscalerStatus { - public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; - - @SerializedName(SERIALIZED_NAME_CONDITIONS) - private List conditions = null; - - public static final String SERIALIZED_NAME_CURRENT_METRICS = "currentMetrics"; - - @SerializedName(SERIALIZED_NAME_CURRENT_METRICS) - private List currentMetrics = null; - - public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; - - @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) - private Integer currentReplicas; - - public static final String SERIALIZED_NAME_DESIRED_REPLICAS = "desiredReplicas"; - - @SerializedName(SERIALIZED_NAME_DESIRED_REPLICAS) - private Integer desiredReplicas; - - public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; - - @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) - private OffsetDateTime lastScaleTime; - - public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; - - @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) - private Long observedGeneration; - - public V2beta1HorizontalPodAutoscalerStatus conditions( - List conditions) { - - this.conditions = conditions; - return this; - } - - public V2beta1HorizontalPodAutoscalerStatus addConditionsItem( - V2beta1HorizontalPodAutoscalerCondition conditionsItem) { - if (this.conditions == null) { - this.conditions = new ArrayList<>(); - } - this.conditions.add(conditionsItem); - return this; - } - - /** - * conditions is the set of conditions required for this autoscaler to scale its target, and - * indicates whether or not those conditions are met. - * - * @return conditions - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.") - public List getConditions() { - return conditions; - } - - public void setConditions(List conditions) { - this.conditions = conditions; - } - - public V2beta1HorizontalPodAutoscalerStatus currentMetrics( - List currentMetrics) { - - this.currentMetrics = currentMetrics; - return this; - } - - public V2beta1HorizontalPodAutoscalerStatus addCurrentMetricsItem( - V2beta1MetricStatus currentMetricsItem) { - if (this.currentMetrics == null) { - this.currentMetrics = new ArrayList<>(); - } - this.currentMetrics.add(currentMetricsItem); - return this; - } - - /** - * currentMetrics is the last read state of the metrics used by this autoscaler. - * - * @return currentMetrics - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "currentMetrics is the last read state of the metrics used by this autoscaler.") - public List getCurrentMetrics() { - return currentMetrics; - } - - public void setCurrentMetrics(List currentMetrics) { - this.currentMetrics = currentMetrics; - } - - public V2beta1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) { - - this.currentReplicas = currentReplicas; - return this; - } - - /** - * currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen - * by the autoscaler. - * - * @return currentReplicas - */ - @ApiModelProperty( - required = true, - value = - "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.") - public Integer getCurrentReplicas() { - return currentReplicas; - } - - public void setCurrentReplicas(Integer currentReplicas) { - this.currentReplicas = currentReplicas; - } - - public V2beta1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) { - - this.desiredReplicas = desiredReplicas; - return this; - } - - /** - * desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last - * calculated by the autoscaler. - * - * @return desiredReplicas - */ - @ApiModelProperty( - required = true, - value = - "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.") - public Integer getDesiredReplicas() { - return desiredReplicas; - } - - public void setDesiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = desiredReplicas; - } - - public V2beta1HorizontalPodAutoscalerStatus lastScaleTime(OffsetDateTime lastScaleTime) { - - this.lastScaleTime = lastScaleTime; - return this; - } - - /** - * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by - * the autoscaler to control how often the number of pods is changed. - * - * @return lastScaleTime - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.") - public OffsetDateTime getLastScaleTime() { - return lastScaleTime; - } - - public void setLastScaleTime(OffsetDateTime lastScaleTime) { - this.lastScaleTime = lastScaleTime; - } - - public V2beta1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration) { - - this.observedGeneration = observedGeneration; - return this; - } - - /** - * observedGeneration is the most recent generation observed by this autoscaler. - * - * @return observedGeneration - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = "observedGeneration is the most recent generation observed by this autoscaler.") - public Long getObservedGeneration() { - return observedGeneration; - } - - public void setObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerStatus v2beta1HorizontalPodAutoscalerStatus = - (V2beta1HorizontalPodAutoscalerStatus) o; - return Objects.equals(this.conditions, v2beta1HorizontalPodAutoscalerStatus.conditions) - && Objects.equals(this.currentMetrics, v2beta1HorizontalPodAutoscalerStatus.currentMetrics) - && Objects.equals( - this.currentReplicas, v2beta1HorizontalPodAutoscalerStatus.currentReplicas) - && Objects.equals( - this.desiredReplicas, v2beta1HorizontalPodAutoscalerStatus.desiredReplicas) - && Objects.equals(this.lastScaleTime, v2beta1HorizontalPodAutoscalerStatus.lastScaleTime) - && Objects.equals( - this.observedGeneration, v2beta1HorizontalPodAutoscalerStatus.observedGeneration); - } - - @Override - public int hashCode() { - return Objects.hash( - conditions, - currentMetrics, - currentReplicas, - desiredReplicas, - lastScaleTime, - observedGeneration); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1HorizontalPodAutoscalerStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); - sb.append(" currentMetrics: ").append(toIndentedString(currentMetrics)).append("\n"); - sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); - sb.append(" desiredReplicas: ").append(toIndentedString(desiredReplicas)).append("\n"); - sb.append(" lastScaleTime: ").append(toIndentedString(lastScaleTime)).append("\n"); - sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V2beta1MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpec.java deleted file mode 100644 index 15a017c868..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricSpec.java +++ /dev/null @@ -1,238 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1MetricSpec { - public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; - - @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) - private V2beta1ContainerResourceMetricSource containerResource; - - public static final String SERIALIZED_NAME_EXTERNAL = "external"; - - @SerializedName(SERIALIZED_NAME_EXTERNAL) - private V2beta1ExternalMetricSource external; - - public static final String SERIALIZED_NAME_OBJECT = "object"; - - @SerializedName(SERIALIZED_NAME_OBJECT) - private V2beta1ObjectMetricSource _object; - - public static final String SERIALIZED_NAME_PODS = "pods"; - - @SerializedName(SERIALIZED_NAME_PODS) - private V2beta1PodsMetricSource pods; - - public static final String SERIALIZED_NAME_RESOURCE = "resource"; - - @SerializedName(SERIALIZED_NAME_RESOURCE) - private V2beta1ResourceMetricSource resource; - - public static final String SERIALIZED_NAME_TYPE = "type"; - - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public V2beta1MetricSpec containerResource( - V2beta1ContainerResourceMetricSource containerResource) { - - this.containerResource = containerResource; - return this; - } - - /** - * Get containerResource - * - * @return containerResource - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ContainerResourceMetricSource getContainerResource() { - return containerResource; - } - - public void setContainerResource(V2beta1ContainerResourceMetricSource containerResource) { - this.containerResource = containerResource; - } - - public V2beta1MetricSpec external(V2beta1ExternalMetricSource external) { - - this.external = external; - return this; - } - - /** - * Get external - * - * @return external - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ExternalMetricSource getExternal() { - return external; - } - - public void setExternal(V2beta1ExternalMetricSource external) { - this.external = external; - } - - public V2beta1MetricSpec _object(V2beta1ObjectMetricSource _object) { - - this._object = _object; - return this; - } - - /** - * Get _object - * - * @return _object - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ObjectMetricSource getObject() { - return _object; - } - - public void setObject(V2beta1ObjectMetricSource _object) { - this._object = _object; - } - - public V2beta1MetricSpec pods(V2beta1PodsMetricSource pods) { - - this.pods = pods; - return this; - } - - /** - * Get pods - * - * @return pods - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1PodsMetricSource getPods() { - return pods; - } - - public void setPods(V2beta1PodsMetricSource pods) { - this.pods = pods; - } - - public V2beta1MetricSpec resource(V2beta1ResourceMetricSource resource) { - - this.resource = resource; - return this; - } - - /** - * Get resource - * - * @return resource - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ResourceMetricSource getResource() { - return resource; - } - - public void setResource(V2beta1ResourceMetricSource resource) { - this.resource = resource; - } - - public V2beta1MetricSpec type(String type) { - - this.type = type; - return this; - } - - /** - * type is the type of metric source. It should be one of \"ContainerResource\", - * \"External\", \"Object\", \"Pods\" or \"Resource\", - * each mapping to a matching field in the object. Note: \"ContainerResource\" type is - * available on when the feature-gate HPAContainerMetrics is enabled - * - * @return type - */ - @ApiModelProperty( - required = true, - value = - "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1MetricSpec v2beta1MetricSpec = (V2beta1MetricSpec) o; - return Objects.equals(this.containerResource, v2beta1MetricSpec.containerResource) - && Objects.equals(this.external, v2beta1MetricSpec.external) - && Objects.equals(this._object, v2beta1MetricSpec._object) - && Objects.equals(this.pods, v2beta1MetricSpec.pods) - && Objects.equals(this.resource, v2beta1MetricSpec.resource) - && Objects.equals(this.type, v2beta1MetricSpec.type); - } - - @Override - public int hashCode() { - return Objects.hash(containerResource, external, _object, pods, resource, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1MetricSpec {\n"); - sb.append(" containerResource: ").append(toIndentedString(containerResource)).append("\n"); - sb.append(" external: ").append(toIndentedString(external)).append("\n"); - sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); - sb.append(" pods: ").append(toIndentedString(pods)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V2beta1MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatus.java deleted file mode 100644 index bbc262f015..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1MetricStatus.java +++ /dev/null @@ -1,233 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1MetricStatus { - public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; - - @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) - private V2beta1ContainerResourceMetricStatus containerResource; - - public static final String SERIALIZED_NAME_EXTERNAL = "external"; - - @SerializedName(SERIALIZED_NAME_EXTERNAL) - private V2beta1ExternalMetricStatus external; - - public static final String SERIALIZED_NAME_OBJECT = "object"; - - @SerializedName(SERIALIZED_NAME_OBJECT) - private V2beta1ObjectMetricStatus _object; - - public static final String SERIALIZED_NAME_PODS = "pods"; - - @SerializedName(SERIALIZED_NAME_PODS) - private V2beta1PodsMetricStatus pods; - - public static final String SERIALIZED_NAME_RESOURCE = "resource"; - - @SerializedName(SERIALIZED_NAME_RESOURCE) - private V2beta1ResourceMetricStatus resource; - - public static final String SERIALIZED_NAME_TYPE = "type"; - - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - - public V2beta1MetricStatus containerResource( - V2beta1ContainerResourceMetricStatus containerResource) { - - this.containerResource = containerResource; - return this; - } - - /** - * Get containerResource - * - * @return containerResource - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ContainerResourceMetricStatus getContainerResource() { - return containerResource; - } - - public void setContainerResource(V2beta1ContainerResourceMetricStatus containerResource) { - this.containerResource = containerResource; - } - - public V2beta1MetricStatus external(V2beta1ExternalMetricStatus external) { - - this.external = external; - return this; - } - - /** - * Get external - * - * @return external - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ExternalMetricStatus getExternal() { - return external; - } - - public void setExternal(V2beta1ExternalMetricStatus external) { - this.external = external; - } - - public V2beta1MetricStatus _object(V2beta1ObjectMetricStatus _object) { - - this._object = _object; - return this; - } - - /** - * Get _object - * - * @return _object - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ObjectMetricStatus getObject() { - return _object; - } - - public void setObject(V2beta1ObjectMetricStatus _object) { - this._object = _object; - } - - public V2beta1MetricStatus pods(V2beta1PodsMetricStatus pods) { - - this.pods = pods; - return this; - } - - /** - * Get pods - * - * @return pods - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1PodsMetricStatus getPods() { - return pods; - } - - public void setPods(V2beta1PodsMetricStatus pods) { - this.pods = pods; - } - - public V2beta1MetricStatus resource(V2beta1ResourceMetricStatus resource) { - - this.resource = resource; - return this; - } - - /** - * Get resource - * - * @return resource - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V2beta1ResourceMetricStatus getResource() { - return resource; - } - - public void setResource(V2beta1ResourceMetricStatus resource) { - this.resource = resource; - } - - public V2beta1MetricStatus type(String type) { - - this.type = type; - return this; - } - - /** - * type is the type of metric source. It will be one of \"ContainerResource\", - * \"External\", \"Object\", \"Pods\" or \"Resource\", - * each corresponds to a matching field in the object. Note: \"ContainerResource\" type - * is available on when the feature-gate HPAContainerMetrics is enabled - * - * @return type - */ - @ApiModelProperty( - required = true, - value = - "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled") - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1MetricStatus v2beta1MetricStatus = (V2beta1MetricStatus) o; - return Objects.equals(this.containerResource, v2beta1MetricStatus.containerResource) - && Objects.equals(this.external, v2beta1MetricStatus.external) - && Objects.equals(this._object, v2beta1MetricStatus._object) - && Objects.equals(this.pods, v2beta1MetricStatus.pods) - && Objects.equals(this.resource, v2beta1MetricStatus.resource) - && Objects.equals(this.type, v2beta1MetricStatus.type); - } - - @Override - public int hashCode() { - return Objects.hash(containerResource, external, _object, pods, resource, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1MetricStatus {\n"); - sb.append(" containerResource: ").append(toIndentedString(containerResource)).append("\n"); - sb.append(" external: ").append(toIndentedString(external)).append("\n"); - sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); - sb.append(" pods: ").append(toIndentedString(pods)).append("\n"); - sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V2beta1ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSource.java deleted file mode 100644 index 3c53b5af41..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricSource.java +++ /dev/null @@ -1,265 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ObjectMetricSource { - public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; - - @SerializedName(SERIALIZED_NAME_AVERAGE_VALUE) - private Quantity averageValue; - - public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; - - @SerializedName(SERIALIZED_NAME_METRIC_NAME) - private String metricName; - - public static final String SERIALIZED_NAME_SELECTOR = "selector"; - - @SerializedName(SERIALIZED_NAME_SELECTOR) - private V1LabelSelector selector; - - public static final String SERIALIZED_NAME_TARGET = "target"; - - @SerializedName(SERIALIZED_NAME_TARGET) - private V2beta1CrossVersionObjectReference target; - - public static final String SERIALIZED_NAME_TARGET_VALUE = "targetValue"; - - @SerializedName(SERIALIZED_NAME_TARGET_VALUE) - private Quantity targetValue; - - public V2beta1ObjectMetricSource averageValue(Quantity averageValue) { - - this.averageValue = averageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 averageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getAverageValue() { - return averageValue; - } - - public void setAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - } - - public V2beta1ObjectMetricSource metricName(String metricName) { - - this.metricName = metricName; - return this; - } - - /** - * metricName is the name of the metric in question. - * - * @return metricName - */ - @ApiModelProperty(required = true, value = "metricName is the name of the metric in question.") - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public V2beta1ObjectMetricSource selector(V1LabelSelector selector) { - - this.selector = selector; - return this; - } - - /** - * Get selector - * - * @return selector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getSelector() { - return selector; - } - - public void setSelector(V1LabelSelector selector) { - this.selector = selector; - } - - public V2beta1ObjectMetricSource target(V2beta1CrossVersionObjectReference target) { - - this.target = target; - return this; - } - - /** - * Get target - * - * @return target - */ - @ApiModelProperty(required = true, value = "") - public V2beta1CrossVersionObjectReference getTarget() { - return target; - } - - public void setTarget(V2beta1CrossVersionObjectReference target) { - this.target = target; - } - - public V2beta1ObjectMetricSource targetValue(Quantity targetValue) { - - this.targetValue = targetValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 targetValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getTargetValue() { - return targetValue; - } - - public void setTargetValue(Quantity targetValue) { - this.targetValue = targetValue; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ObjectMetricSource v2beta1ObjectMetricSource = (V2beta1ObjectMetricSource) o; - return Objects.equals(this.averageValue, v2beta1ObjectMetricSource.averageValue) - && Objects.equals(this.metricName, v2beta1ObjectMetricSource.metricName) - && Objects.equals(this.selector, v2beta1ObjectMetricSource.selector) - && Objects.equals(this.target, v2beta1ObjectMetricSource.target) - && Objects.equals(this.targetValue, v2beta1ObjectMetricSource.targetValue); - } - - @Override - public int hashCode() { - return Objects.hash(averageValue, metricName, selector, target, targetValue); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ObjectMetricSource {\n"); - sb.append(" averageValue: ").append(toIndentedString(averageValue)).append("\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); - sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); - sb.append(" target: ").append(toIndentedString(target)).append("\n"); - sb.append(" targetValue: ").append(toIndentedString(targetValue)).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/V2beta1ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatus.java deleted file mode 100644 index 068b0b0eb1..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ObjectMetricStatus.java +++ /dev/null @@ -1,265 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ObjectMetricStatus { - public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; - - @SerializedName(SERIALIZED_NAME_AVERAGE_VALUE) - private Quantity averageValue; - - public static final String SERIALIZED_NAME_CURRENT_VALUE = "currentValue"; - - @SerializedName(SERIALIZED_NAME_CURRENT_VALUE) - private Quantity currentValue; - - public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; - - @SerializedName(SERIALIZED_NAME_METRIC_NAME) - private String metricName; - - public static final String SERIALIZED_NAME_SELECTOR = "selector"; - - @SerializedName(SERIALIZED_NAME_SELECTOR) - private V1LabelSelector selector; - - public static final String SERIALIZED_NAME_TARGET = "target"; - - @SerializedName(SERIALIZED_NAME_TARGET) - private V2beta1CrossVersionObjectReference target; - - public V2beta1ObjectMetricStatus averageValue(Quantity averageValue) { - - this.averageValue = averageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 averageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getAverageValue() { - return averageValue; - } - - public void setAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - } - - public V2beta1ObjectMetricStatus currentValue(Quantity currentValue) { - - this.currentValue = currentValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 currentValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getCurrentValue() { - return currentValue; - } - - public void setCurrentValue(Quantity currentValue) { - this.currentValue = currentValue; - } - - public V2beta1ObjectMetricStatus metricName(String metricName) { - - this.metricName = metricName; - return this; - } - - /** - * metricName is the name of the metric in question. - * - * @return metricName - */ - @ApiModelProperty(required = true, value = "metricName is the name of the metric in question.") - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public V2beta1ObjectMetricStatus selector(V1LabelSelector selector) { - - this.selector = selector; - return this; - } - - /** - * Get selector - * - * @return selector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getSelector() { - return selector; - } - - public void setSelector(V1LabelSelector selector) { - this.selector = selector; - } - - public V2beta1ObjectMetricStatus target(V2beta1CrossVersionObjectReference target) { - - this.target = target; - return this; - } - - /** - * Get target - * - * @return target - */ - @ApiModelProperty(required = true, value = "") - public V2beta1CrossVersionObjectReference getTarget() { - return target; - } - - public void setTarget(V2beta1CrossVersionObjectReference target) { - this.target = target; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ObjectMetricStatus v2beta1ObjectMetricStatus = (V2beta1ObjectMetricStatus) o; - return Objects.equals(this.averageValue, v2beta1ObjectMetricStatus.averageValue) - && Objects.equals(this.currentValue, v2beta1ObjectMetricStatus.currentValue) - && Objects.equals(this.metricName, v2beta1ObjectMetricStatus.metricName) - && Objects.equals(this.selector, v2beta1ObjectMetricStatus.selector) - && Objects.equals(this.target, v2beta1ObjectMetricStatus.target); - } - - @Override - public int hashCode() { - return Objects.hash(averageValue, currentValue, metricName, selector, target); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ObjectMetricStatus {\n"); - sb.append(" averageValue: ").append(toIndentedString(averageValue)).append("\n"); - sb.append(" currentValue: ").append(toIndentedString(currentValue)).append("\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); - sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); - sb.append(" target: ").append(toIndentedString(target)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(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/V2beta1PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSource.java deleted file mode 100644 index 1a579d7681..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricSource.java +++ /dev/null @@ -1,180 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1PodsMetricSource { - public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; - - @SerializedName(SERIALIZED_NAME_METRIC_NAME) - private String metricName; - - public static final String SERIALIZED_NAME_SELECTOR = "selector"; - - @SerializedName(SERIALIZED_NAME_SELECTOR) - private V1LabelSelector selector; - - public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; - - @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) - private Quantity targetAverageValue; - - public V2beta1PodsMetricSource metricName(String metricName) { - - this.metricName = metricName; - return this; - } - - /** - * metricName is the name of the metric in question - * - * @return metricName - */ - @ApiModelProperty(required = true, value = "metricName is the name of the metric in question") - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public V2beta1PodsMetricSource selector(V1LabelSelector selector) { - - this.selector = selector; - return this; - } - - /** - * Get selector - * - * @return selector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getSelector() { - return selector; - } - - public void setSelector(V1LabelSelector selector) { - this.selector = selector; - } - - public V2beta1PodsMetricSource targetAverageValue(Quantity targetAverageValue) { - - this.targetAverageValue = targetAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 targetAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getTargetAverageValue() { - return targetAverageValue; - } - - public void setTargetAverageValue(Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1PodsMetricSource v2beta1PodsMetricSource = (V2beta1PodsMetricSource) o; - return Objects.equals(this.metricName, v2beta1PodsMetricSource.metricName) - && Objects.equals(this.selector, v2beta1PodsMetricSource.selector) - && Objects.equals(this.targetAverageValue, v2beta1PodsMetricSource.targetAverageValue); - } - - @Override - public int hashCode() { - return Objects.hash(metricName, selector, targetAverageValue); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1PodsMetricSource {\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); - sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); - sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).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/V2beta1PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatus.java deleted file mode 100644 index e6130353fa..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1PodsMetricStatus.java +++ /dev/null @@ -1,181 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1PodsMetricStatus { - public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; - - @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) - private Quantity currentAverageValue; - - public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; - - @SerializedName(SERIALIZED_NAME_METRIC_NAME) - private String metricName; - - public static final String SERIALIZED_NAME_SELECTOR = "selector"; - - @SerializedName(SERIALIZED_NAME_SELECTOR) - private V1LabelSelector selector; - - public V2beta1PodsMetricStatus currentAverageValue(Quantity currentAverageValue) { - - this.currentAverageValue = currentAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 currentAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getCurrentAverageValue() { - return currentAverageValue; - } - - public void setCurrentAverageValue(Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - } - - public V2beta1PodsMetricStatus metricName(String metricName) { - - this.metricName = metricName; - return this; - } - - /** - * metricName is the name of the metric in question - * - * @return metricName - */ - @ApiModelProperty(required = true, value = "metricName is the name of the metric in question") - public String getMetricName() { - return metricName; - } - - public void setMetricName(String metricName) { - this.metricName = metricName; - } - - public V2beta1PodsMetricStatus selector(V1LabelSelector selector) { - - this.selector = selector; - return this; - } - - /** - * Get selector - * - * @return selector - */ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - public V1LabelSelector getSelector() { - return selector; - } - - public void setSelector(V1LabelSelector selector) { - this.selector = selector; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1PodsMetricStatus v2beta1PodsMetricStatus = (V2beta1PodsMetricStatus) o; - return Objects.equals(this.currentAverageValue, v2beta1PodsMetricStatus.currentAverageValue) - && Objects.equals(this.metricName, v2beta1PodsMetricStatus.metricName) - && Objects.equals(this.selector, v2beta1PodsMetricStatus.selector); - } - - @Override - public int hashCode() { - return Objects.hash(currentAverageValue, metricName, selector); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1PodsMetricStatus {\n"); - sb.append(" currentAverageValue: ") - .append(toIndentedString(currentAverageValue)) - .append("\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); - sb.append(" selector: ").append(toIndentedString(selector)).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/V2beta1ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSource.java deleted file mode 100644 index a66c7de8f2..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricSource.java +++ /dev/null @@ -1,190 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ResourceMetricSource { - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_TARGET_AVERAGE_UTILIZATION = - "targetAverageUtilization"; - - @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_UTILIZATION) - private Integer targetAverageUtilization; - - public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; - - @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) - private Quantity targetAverageValue; - - public V2beta1ResourceMetricSource name(String name) { - - this.name = name; - return this; - } - - /** - * name is the name of the resource in question. - * - * @return name - */ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public V2beta1ResourceMetricSource targetAverageUtilization(Integer targetAverageUtilization) { - - this.targetAverageUtilization = targetAverageUtilization; - return this; - } - - /** - * targetAverageUtilization is the target value of the average of the resource metric across all - * relevant pods, represented as a percentage of the requested value of the resource for the pods. - * - * @return targetAverageUtilization - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") - public Integer getTargetAverageUtilization() { - return targetAverageUtilization; - } - - public void setTargetAverageUtilization(Integer targetAverageUtilization) { - this.targetAverageUtilization = targetAverageUtilization; - } - - public V2beta1ResourceMetricSource targetAverageValue(Quantity targetAverageValue) { - - this.targetAverageValue = targetAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 targetAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getTargetAverageValue() { - return targetAverageValue; - } - - public void setTargetAverageValue(Quantity targetAverageValue) { - this.targetAverageValue = targetAverageValue; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ResourceMetricSource v2beta1ResourceMetricSource = (V2beta1ResourceMetricSource) o; - return Objects.equals(this.name, v2beta1ResourceMetricSource.name) - && Objects.equals( - this.targetAverageUtilization, v2beta1ResourceMetricSource.targetAverageUtilization) - && Objects.equals(this.targetAverageValue, v2beta1ResourceMetricSource.targetAverageValue); - } - - @Override - public int hashCode() { - return Objects.hash(name, targetAverageUtilization, targetAverageValue); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ResourceMetricSource {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" targetAverageUtilization: ") - .append(toIndentedString(targetAverageUtilization)) - .append("\n"); - sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).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/V2beta1ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatus.java deleted file mode 100644 index a687138bf4..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1ResourceMetricStatus.java +++ /dev/null @@ -1,192 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import com.google.gson.annotations.SerializedName; -import io.kubernetes.client.custom.Quantity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.Objects; - -/** - * 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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") -public class V2beta1ResourceMetricStatus { - public static final String SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION = - "currentAverageUtilization"; - - @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION) - private Integer currentAverageUtilization; - - public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; - - @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) - private Quantity currentAverageValue; - - public static final String SERIALIZED_NAME_NAME = "name"; - - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public V2beta1ResourceMetricStatus currentAverageUtilization(Integer currentAverageUtilization) { - - this.currentAverageUtilization = currentAverageUtilization; - return this; - } - - /** - * currentAverageUtilization is the current value of the average of the resource metric across all - * relevant pods, represented as a percentage of the requested value of the resource for the pods. - * It will only be present if `targetAverageValue` was set in the corresponding metric - * specification. - * - * @return currentAverageUtilization - */ - @javax.annotation.Nullable - @ApiModelProperty( - value = - "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.") - public Integer getCurrentAverageUtilization() { - return currentAverageUtilization; - } - - public void setCurrentAverageUtilization(Integer currentAverageUtilization) { - this.currentAverageUtilization = currentAverageUtilization; - } - - public V2beta1ResourceMetricStatus currentAverageValue(Quantity currentAverageValue) { - - this.currentAverageValue = currentAverageValue; - 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: a. No precision is lost b. No fractional digits will be emitted c. 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 currentAverageValue - */ - @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: a. No precision is lost b. No fractional digits will be emitted c. 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 getCurrentAverageValue() { - return currentAverageValue; - } - - public void setCurrentAverageValue(Quantity currentAverageValue) { - this.currentAverageValue = currentAverageValue; - } - - public V2beta1ResourceMetricStatus name(String name) { - - this.name = name; - return this; - } - - /** - * name is the name of the resource in question. - * - * @return name - */ - @ApiModelProperty(required = true, value = "name is the name of the resource in question.") - 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; - } - V2beta1ResourceMetricStatus v2beta1ResourceMetricStatus = (V2beta1ResourceMetricStatus) o; - return Objects.equals( - this.currentAverageUtilization, v2beta1ResourceMetricStatus.currentAverageUtilization) - && Objects.equals(this.currentAverageValue, v2beta1ResourceMetricStatus.currentAverageValue) - && Objects.equals(this.name, v2beta1ResourceMetricStatus.name); - } - - @Override - public int hashCode() { - return Objects.hash(currentAverageUtilization, currentAverageValue, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ResourceMetricStatus {\n"); - sb.append(" currentAverageUtilization: ") - .append(toIndentedString(currentAverageUtilization)) - .append("\n"); - sb.append(" currentAverageValue: ") - .append(toIndentedString(currentAverageValue)) - .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/V2beta2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java index 4fa5e0137d..4b25cfc7bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricSource.java @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java index cc3b357ec3..79ee2f15ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ContainerResourceMetricStatus.java @@ -29,7 +29,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java index 99d90e98c0..15ac110b2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2CrossVersionObjectReference.java @@ -26,7 +26,7 @@ "CrossVersionObjectReference contains enough information to let you identify the referred resource.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java index 6d02681080..bcb00434e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricSource.java @@ -27,7 +27,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).") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java index 270aa334d0..cc8ee8619a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ExternalMetricStatus.java @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java index 1169f23c75..d583c5b7e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingPolicy.java @@ -23,7 +23,7 @@ "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java index d0a02494ee..b88ae9c857 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HPAScalingRules.java @@ -31,7 +31,7 @@ "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java index 089a3ff887..14496e6cf9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscaler.java @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java index 962ef8bbd5..0b8d465d6b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerBehavior.java @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java index 59a30371af..108dbad9f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerCondition.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java index 296aacab80..9406d11421 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerList.java @@ -24,7 +24,7 @@ description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java index 3746d9dfbf..2d6c0eaaa2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerSpec.java @@ -27,7 +27,7 @@ "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java index 8e920106c1..7a6b15f4c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2HorizontalPodAutoscalerStatus.java @@ -26,7 +26,7 @@ "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java index f82e13c14f..3972f2eb0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricIdentifier.java @@ -21,7 +21,7 @@ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java index 018eda805b..d26cf8cd3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricSpec.java @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java index 96f97dd47c..aac0b0b4f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricStatus.java @@ -21,7 +21,7 @@ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java index 3ebca1c88a..7782a227d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricTarget.java @@ -26,7 +26,7 @@ "MetricTarget defines the target value, average value, or average utilization of a specific metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @@ -82,41 +82,41 @@ public V2beta2MetricTarget averageValue(Quantity averageValue) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 averageValue */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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 getAverageValue() { return averageValue; } @@ -156,41 +156,41 @@ public V2beta2MetricTarget value(Quantity 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: <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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java index c52ea2b91f..b13a0f72a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2MetricValueStatus.java @@ -22,7 +22,7 @@ @ApiModel(description = "MetricValueStatus holds the current value for a metric") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @@ -72,41 +72,41 @@ public V2beta2MetricValueStatus averageValue(Quantity averageValue) { /** * 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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 averageValue */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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 getAverageValue() { return averageValue; } @@ -124,41 +124,41 @@ public V2beta2MetricValueStatus value(Quantity 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: <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> | + * 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 + * <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: a. No precision is lost b. No fractional digits will be emitted c. The + * 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. + * 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 */ @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: a. No precision is lost b. No fractional digits will be emitted c. 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.") + "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; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java index 1747bf1164..fe840abdf1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricSource.java @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java index 846047c9b1..b5aa2ddcb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ObjectMetricStatus.java @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java index a519d318ee..899a340927 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricSource.java @@ -27,7 +27,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java index 88afbd9525..6ba02d912d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2PodsMetricStatus.java @@ -26,7 +26,7 @@ "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 = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java index e8e0459a2b..c4bd23fd90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricSource.java @@ -30,7 +30,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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java index beb0e3d91e..9ae7aaad6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta2ResourceMetricStatus.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.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class V2beta2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "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 9c1352d6e5..31954d2d71 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 @@ -23,7 +23,7 @@ "Info contains versioning information. how we'll want to distribute that information.") @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - date = "2022-05-06T16:45:00.555Z[Etc/UTC]") + date = "2022-09-15T17:00:37.921Z[Etc/UTC]") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index cdff3a93e2..d01f84b6ee 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -1221,7 +1221,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. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate." + "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." }, "maxUnavailable": { "$ref": "#/definitions/intstr.IntOrString", @@ -1260,7 +1260,7 @@ "type": "object" }, "v1.StatefulSet": { - "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", "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", @@ -1382,7 +1382,7 @@ "description": "A StatefulSetSpec is the specification of a StatefulSet.", "properties": { "minReadySeconds": { - "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.", + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", "format": "int32", "type": "integer" }, @@ -1439,7 +1439,7 @@ "description": "StatefulSetStatus represents the current state of a StatefulSet.", "properties": { "availableReplicas": { - "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.", + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", "format": "int32", "type": "integer" }, @@ -1575,7 +1575,7 @@ "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { "audiences": { - "description": "Audiences are the intendend audiences of the token. A recipient of a token must identitfy themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", "items": { "type": "string" }, @@ -2941,531 +2941,6 @@ ], "type": "object" }, - "v2beta1.ContainerResourceMetricSource": { - "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.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." - } - }, - "required": [ - "name", - "container" - ], - "type": "object" - }, - "v2beta1.ContainerResourceMetricStatus": { - "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.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue", - "container" - ], - "type": "object" - }, - "v2beta1.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "v2beta1.ExternalMetricSource": { - "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). Exactly one \"target\" type should be set.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue." - }, - "targetValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue." - } - }, - "required": [ - "metricName" - ], - "type": "object" - }, - "v2beta1.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of metric averaged over autoscaled pods." - }, - "currentValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of a metric used for autoscaling in metric system.", - "type": "string" - }, - "metricSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "metricSelector is used to identify a specific time series within a given metric." - } - }, - "required": [ - "metricName", - "currentValue" - ], - "type": "object" - }, - "v2beta1.HorizontalPodAutoscaler": { - "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.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v2beta1.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the last time the condition transitioned from one status to another", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v2beta1.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" - }, - "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 is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v2beta1.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "format": "int32", - "type": "integer" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.", - "items": { - "$ref": "#/definitions/v2beta1.MetricSpec" - }, - "type": "array" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "v2beta1.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/v2beta1.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "format": "date-time", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "type": "object" - }, - "v2beta1.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta1.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of 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. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/v2beta1.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta1.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta1.PodsMetricSource", - "description": "pods refers to 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." - }, - "resource": { - "$ref": "#/definitions/v2beta1.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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." - }, - "type": { - "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta1.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta1.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/v2beta1.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta1.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta1.PodsMetricStatus", - "description": "pods refers to 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." - }, - "resource": { - "$ref": "#/definitions/v2beta1.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes 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." - }, - "type": { - "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta1.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "averageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics." - }, - "target": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - }, - "targetValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetValue is the target value of the metric (as a quantity)." - } - }, - "required": [ - "target", - "metricName", - "targetValue" - ], - "type": "object" - }, - "v2beta1.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "averageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "currentValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentValue is the current value of the metric (as a quantity)." - }, - "metricName": { - "description": "metricName is the name of the metric in question.", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - }, - "target": { - "$ref": "#/definitions/v2beta1.CrossVersionObjectReference", - "description": "target is the described Kubernetes object." - } - }, - "required": [ - "target", - "metricName", - "currentValue" - ], - "type": "object" - }, - "v2beta1.PodsMetricSource": { - "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.", - "properties": { - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics." - }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - } - }, - "required": [ - "metricName", - "targetAverageValue" - ], - "type": "object" - }, - "v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - } - }, - "required": [ - "metricName", - "currentAverageValue" - ], - "type": "object" - }, - "v2beta1.ResourceMetricSource": { - "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.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "targetAverageUtilization": { - "description": "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "targetAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v2beta1.ResourceMetricStatus": { - "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.", - "properties": { - "currentAverageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.", - "format": "int32", - "type": "integer" - }, - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification." - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "currentAverageValue" - ], - "type": "object" - }, "v2beta2.ContainerResourceMetricSource": { "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.", "properties": { @@ -4168,7 +3643,7 @@ "type": "boolean" }, "timeZone": { - "description": "The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.", + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones This is beta field and must be enabled via the `CronJobTimeZone` feature gate.", "type": "string" } }, @@ -4343,6 +3818,10 @@ "format": "int32", "type": "integer" }, + "podFailurePolicy": { + "$ref": "#/definitions/v1.PodFailurePolicy", + "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.\n\nThis field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default)." + }, "selector": { "$ref": "#/definitions/v1.LabelSelector", "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" @@ -4434,181 +3913,112 @@ }, "type": "object" }, - "v1.UncountedTerminatedPods": { - "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", "properties": { - "failed": { - "description": "Failed holds UIDs of failed Pods.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "succeeded": { - "description": "Succeeded holds UIDs of succeeded Pods.", + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", "items": { - "type": "string" + "$ref": "#/definitions/v1.PodFailurePolicyRule" }, "type": "array", - "x-kubernetes-list-type": "set" + "x-kubernetes-list-type": "atomic" } }, + "required": [ + "rules" + ], "type": "object" }, - "v1beta1.CronJob": { - "description": "CronJob represents the configuration of a single cron job.", + "v1.PodFailurePolicyOnExitCodesRequirement": { + "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.", "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", + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", "type": "string" }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.CronJobSpec", - "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.CronJobStatus", - "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1beta1.CronJobList": { - "description": "CronJobList is a collection of cron jobs.", - "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": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: - In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\n\n", "type": "string" }, - "items": { - "description": "items is the list of CronJobs.", + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", "items": { - "$ref": "#/definitions/v1beta1.CronJob" + "format": "int32", + "type": "integer" }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "type": "array", + "x-kubernetes-list-type": "set" } }, "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "batch", - "kind": "CronJobList", - "version": "v1beta1" - } + "operator", + "values" ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] + "type": "object" }, - "v1beta1.CronJobSpec": { - "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", "properties": { - "concurrencyPolicy": { - "description": "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", - "type": "string" - }, - "failedJobsHistoryLimit": { - "description": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", - "format": "int32", - "type": "integer" - }, - "jobTemplate": { - "$ref": "#/definitions/v1beta1.JobTemplateSpec", - "description": "Specifies the job that will be created when executing a CronJob." - }, - "schedule": { - "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", "type": "string" }, - "startingDeadlineSeconds": { - "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", - "format": "int64", - "type": "integer" - }, - "successfulJobsHistoryLimit": { - "description": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.", - "format": "int32", - "type": "integer" - }, - "suspend": { - "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", - "type": "boolean" - }, - "timeZone": { - "description": "The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.", + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", "type": "string" } }, "required": [ - "schedule", - "jobTemplate" + "type", + "status" ], "type": "object" }, - "v1beta1.CronJobStatus": { - "description": "CronJobStatus represents the current state of a cron job.", + "v1.PodFailurePolicyRule": { + "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.", "properties": { - "active": { - "description": "A list of pointers to currently running jobs.", + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\n\n", + "type": "string" + }, + "onExitCodes": { + "$ref": "#/definitions/v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", "items": { - "$ref": "#/definitions/v1.ObjectReference" + "$ref": "#/definitions/v1.PodFailurePolicyOnPodConditionsPattern" }, "type": "array", "x-kubernetes-list-type": "atomic" - }, - "lastScheduleTime": { - "description": "Information when was the last time the job was successfully scheduled.", - "format": "date-time", - "type": "string" - }, - "lastSuccessfulTime": { - "description": "Information when was the last time the job successfully completed.", - "format": "date-time", - "type": "string" } }, + "required": [ + "action", + "onPodConditions" + ], "type": "object" }, - "v1beta1.JobTemplateSpec": { - "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", "properties": { - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "failed": { + "description": "Failed holds UIDs of failed Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" }, - "spec": { - "$ref": "#/definitions/v1.JobSpec", - "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + "succeeded": { + "description": "Succeeded holds UIDs of succeeded Pods.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" } }, "type": "object" @@ -5090,7 +4500,7 @@ "properties": { "controllerExpandSecretRef": { "$ref": "#/definitions/v1.SecretReference", - "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an beta field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." }, "controllerPublishSecretRef": { "$ref": "#/definitions/v1.SecretReference", @@ -5104,6 +4514,10 @@ "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", "type": "string" }, + "nodeExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is an alpha field and requires enabling CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, "nodePublishSecretRef": { "$ref": "#/definitions/v1.SecretReference", "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." @@ -5673,7 +5087,7 @@ "type": "string" }, "ports": { - "description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.", + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", "items": { "$ref": "#/definitions/v1.ContainerPort" }, @@ -5754,7 +5168,7 @@ "description": "Describe a container image", "properties": { "names": { - "description": "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]", + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", "items": { "type": "string" }, @@ -6072,7 +5486,7 @@ "x-kubernetes-map-type": "atomic" }, "v1.EndpointSubset": { - "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:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "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:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", "properties": { "addresses": { "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", @@ -6099,7 +5513,7 @@ "type": "object" }, "v1.Endpoints": { - "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]", + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", "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", @@ -6233,7 +5647,7 @@ "type": "object" }, "v1.EphemeralContainer": { - "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.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.\n\nThis is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.", + "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.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", "properties": { "args": { "description": "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", @@ -8201,7 +7615,8 @@ }, "claimRef": { "$ref": "#/definitions/v1.ObjectReference", - "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding" + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" }, "csi": { "$ref": "#/definitions/v1.CSIPersistentVolumeSource", @@ -8513,7 +7928,7 @@ "type": "object" }, "v1.PodIP": { - "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.", + "description": "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.", "properties": { "ip": { "description": "ip is an IP address (IPv4 or IPv6) assigned to the pod", @@ -8680,7 +8095,7 @@ "type": "boolean" }, "ephemeralContainers": { - "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.", + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", "items": { "$ref": "#/definitions/v1.EphemeralContainer" }, @@ -8709,6 +8124,10 @@ "description": "Use the host's pid namespace. Optional: Default to false.", "type": "boolean" }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": "boolean" + }, "hostname": { "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", "type": "string" @@ -8745,7 +8164,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.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.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 This is a beta field and requires the IdentifyPodOS feature" + "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.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.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": { @@ -8871,7 +8290,7 @@ "type": "array" }, "ephemeralContainerStatuses": { - "description": "Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.", + "description": "Status for any ephemeral containers that have run in this pod.", "items": { "$ref": "#/definitions/v1.ContainerStatus" }, @@ -10280,16 +9699,16 @@ "type": "string" }, "externalTrafficPolicy": { - "description": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.\n\n", + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\n", "type": "string" }, "healthCheckNodePort": { - "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).", + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", "format": "int32", "type": "integer" }, "internalTrafficPolicy": { - "description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".", + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", "type": "string" }, "ipFamilies": { @@ -10576,18 +9995,34 @@ "$ref": "#/definitions/v1.LabelSelector", "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "maxSkew": { "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", "format": "int32", "type": "integer" }, "minDomains": { - "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate.", + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", "format": "int32", "type": "integer" }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": "string" + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": "string" + }, "topologyKey": { - "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes match the node selector. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", "type": "string" }, "whenUnsatisfiable": { @@ -10935,7 +10370,7 @@ "type": "string" }, "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", "type": "string" }, "targetRef": { @@ -11111,208 +10546,6 @@ ], "type": "object" }, - "v1beta1.Endpoint": { - "description": "Endpoint represents a single logical \"backend\" implementing a service.", - "properties": { - "addresses": { - "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "conditions": { - "$ref": "#/definitions/v1beta1.EndpointConditions", - "description": "conditions contains information about the current status of the endpoint." - }, - "hints": { - "$ref": "#/definitions/v1beta1.EndpointHints", - "description": "hints contains information associated with how an endpoint should be consumed." - }, - "hostname": { - "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", - "type": "string" - }, - "nodeName": { - "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.", - "type": "string" - }, - "targetRef": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." - }, - "topology": { - "additionalProperties": { - "type": "string" - }, - "description": "topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node\n where the endpoint is located. This should match the corresponding\n node label.\n* topology.kubernetes.io/zone: the value indicates the zone where the\n endpoint is located. This should match the corresponding node label.\n* topology.kubernetes.io/region: the value indicates the region where the\n endpoint is located. This should match the corresponding node label.\nThis field is deprecated and will be removed in future api versions.", - "type": "object" - } - }, - "required": [ - "addresses" - ], - "type": "object" - }, - "v1beta1.EndpointConditions": { - "description": "EndpointConditions represents the current condition of an endpoint.", - "properties": { - "ready": { - "description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints.", - "type": "boolean" - }, - "serving": { - "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "type": "boolean" - }, - "terminating": { - "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", - "type": "boolean" - } - }, - "type": "object" - }, - "v1beta1.EndpointHints": { - "description": "EndpointHints provides hints describing how an endpoint should be consumed.", - "properties": { - "forZones": { - "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing. May contain a maximum of 8 entries.", - "items": { - "$ref": "#/definitions/v1beta1.ForZone" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "type": "object" - }, - "v1beta1.EndpointPort": { - "description": "EndpointPort represents a Port used by an EndpointSlice", - "properties": { - "appProtocol": { - "description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", - "type": "string" - }, - "name": { - "description": "The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", - "type": "string" - }, - "port": { - "description": "The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", - "format": "int32", - "type": "integer" - }, - "protocol": { - "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.EndpointSlice": { - "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", - "properties": { - "addressType": { - "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", - "type": "string" - }, - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "endpoints": { - "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", - "items": { - "$ref": "#/definitions/v1beta1.Endpoint" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "ports": { - "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", - "items": { - "$ref": "#/definitions/v1beta1.EndpointPort" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "addressType", - "endpoints" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1beta1.EndpointSliceList": { - "description": "EndpointSliceList represents a list of endpoint slices", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "List of endpoint slices", - "items": { - "$ref": "#/definitions/v1beta1.EndpointSlice" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "discovery.k8s.io", - "kind": "EndpointSliceList", - "version": "v1beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v1beta1.ForZone": { - "description": "ForZone provides information about which zones should consume this endpoint.", - "properties": { - "name": { - "description": "name represents the name of the zone.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, "events.v1.Event": { "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", "properties": { @@ -11462,155 +10695,6 @@ ], "type": "object" }, - "v1beta1.Event": { - "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", - "properties": { - "action": { - "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.", - "type": "string" - }, - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "deprecatedCount": { - "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "int32", - "type": "integer" - }, - "deprecatedFirstTimestamp": { - "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "date-time", - "type": "string" - }, - "deprecatedLastTimestamp": { - "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.", - "format": "date-time", - "type": "string" - }, - "deprecatedSource": { - "$ref": "#/definitions/v1.EventSource", - "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." - }, - "eventTime": { - "description": "eventTime is the time when this Event was first observed. It is required.", - "format": "date-time", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "note": { - "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", - "type": "string" - }, - "reason": { - "description": "reason is why the action was taken. It is human-readable. This field can have at most 128 characters.", - "type": "string" - }, - "regarding": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." - }, - "related": { - "$ref": "#/definitions/v1.ObjectReference", - "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." - }, - "reportingController": { - "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", - "type": "string" - }, - "reportingInstance": { - "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", - "type": "string" - }, - "series": { - "$ref": "#/definitions/v1beta1.EventSeries", - "description": "series is data about the Event series this event represents or nil if it's a singleton Event." - }, - "type": { - "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable.", - "type": "string" - } - }, - "required": [ - "eventTime" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1beta1.EventList": { - "description": "EventList is a list of Event objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is a list of schema objects.", - "items": { - "$ref": "#/definitions/v1beta1.Event" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "events.k8s.io", - "kind": "EventList", - "version": "v1beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v1beta1.EventSeries": { - "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", - "properties": { - "count": { - "description": "count is the number of occurrences in this series up to the last heartbeat time.", - "format": "int32", - "type": "integer" - }, - "lastObservedTime": { - "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.", - "format": "date-time", - "type": "string" - } - }, - "required": [ - "count", - "lastObservedTime" - ], - "type": "object" - }, "v1beta1.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { @@ -11811,7 +10895,7 @@ ] }, "v1beta1.LimitedPriorityLevelConfiguration": { - "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n * How are requests for this priority level limited?\n * What should be done with requests that exceed the limit?", + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "properties": { "assuredConcurrencyShares": { "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", @@ -12374,7 +11458,7 @@ ] }, "v1beta2.LimitedPriorityLevelConfiguration": { - "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n * How are requests for this priority level limited?\n * What should be done with requests that exceed the limit?", + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", "properties": { "assuredConcurrencyShares": { "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", @@ -13036,7 +12120,7 @@ "description": "DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." }, "ingressClassName": { - "description": "IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.", + "description": "IngressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", "type": "string" }, "rules": { @@ -13222,7 +12306,7 @@ "description": "NetworkPolicyPort describes a port to allow traffic on", "properties": { "endPort": { - "description": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate \"NetworkPolicyEndPort\".", + "description": "If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", "format": "int32", "type": "integer" }, @@ -13305,73 +12389,49 @@ }, "type": "object" }, - "v1.Overhead": { - "description": "Overhead structure represents the resource overhead associated with running a pod.", - "properties": { - "podFixed": { - "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" - }, - "description": "PodFixed represents the fixed resource overhead associated with running a pod.", - "type": "object" - } - }, - "type": "object" - }, - "v1.RuntimeClass": { - "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", + "v1alpha1.ClusterCIDR": { + "description": "ClusterCIDR represents a single configuration for per-Node Pod CIDR allocations when the MultiCIDRRangeAllocator is enabled (see the config for kube-controller-manager). A cluster may have any number of ClusterCIDR resources, all of which will be considered when allocating a CIDR for a Node. A ClusterCIDR is eligible to be used for a given Node when the node selector matches the node in question and has free CIDRs to allocate. In case of multiple matching ClusterCIDR resources, the allocator will attempt to break ties using internal heuristics, but any ClusterCIDR whose node selector matches the Node may be used.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "handler": { - "description": "Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", - "type": "string" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "overhead": { - "$ref": "#/definitions/v1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, - "scheduling": { - "$ref": "#/definitions/v1.Scheduling", - "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + "spec": { + "$ref": "#/definitions/v1alpha1.ClusterCIDRSpec", + "description": "Spec is the desired state of the ClusterCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, - "required": [ - "handler" - ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1.RuntimeClassList": { - "description": "RuntimeClassList is a list of RuntimeClass objects.", + "v1alpha1.ClusterCIDRList": { + "description": "ClusterCIDRList contains a list of ClusterCIDR.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "Items is a list of schema objects.", + "description": "Items is the list of ClusterCIDRs.", "items": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" }, "type": "array" }, @@ -13381,7 +12441,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" } }, "required": [ @@ -13390,38 +12450,42 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "node.k8s.io", - "kind": "RuntimeClassList", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDRList", + "version": "v1alpha1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1.Scheduling": { - "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "v1alpha1.ClusterCIDRSpec": { + "description": "ClusterCIDRSpec defines the desired state of ClusterCIDR.", "properties": { + "ipv4": { + "description": "IPv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", + "type": "string" + }, + "ipv6": { + "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", + "type": "string" + }, "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", - "type": "object", - "x-kubernetes-map-type": "atomic" + "$ref": "#/definitions/v1.NodeSelector", + "description": "NodeSelector defines which nodes the config is applicable to. An empty or nil NodeSelector selects all nodes. This field is immutable." }, - "tolerations": { - "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", - "items": { - "$ref": "#/definitions/v1.Toleration" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" + "perNodeHostBits": { + "description": "PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable.", + "format": "int32", + "type": "integer" } }, + "required": [ + "perNodeHostBits" + ], "type": "object" }, - "v1beta1.Overhead": { + "v1.Overhead": { "description": "Overhead structure represents the resource overhead associated with running a pod.", "properties": { "podFixed": { @@ -13434,8 +12498,8 @@ }, "type": "object" }, - "v1beta1.RuntimeClass": { - "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) 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://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "v1.RuntimeClass": { + "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", "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", @@ -13454,11 +12518,11 @@ "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "overhead": { - "$ref": "#/definitions/v1beta1.Overhead", - "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md" + "$ref": "#/definitions/v1.Overhead", + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" }, "scheduling": { - "$ref": "#/definitions/v1beta1.Scheduling", + "$ref": "#/definitions/v1.Scheduling", "description": "Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." } }, @@ -13470,14 +12534,14 @@ { "group": "node.k8s.io", "kind": "RuntimeClass", - "version": "v1beta1" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.RuntimeClassList": { + "v1.RuntimeClassList": { "description": "RuntimeClassList is a list of RuntimeClass objects.", "properties": { "apiVersion": { @@ -13487,7 +12551,7 @@ "items": { "description": "Items is a list of schema objects.", "items": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.RuntimeClass" }, "type": "array" }, @@ -13508,14 +12572,14 @@ { "group": "node.k8s.io", "kind": "RuntimeClassList", - "version": "v1beta1" + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.Scheduling": { + "v1.Scheduling": { "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", "properties": { "nodeSelector": { @@ -13721,105 +12785,60 @@ ], "type": "object" }, - "v1beta1.AllowedCSIDriver": { - "description": "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.", + "v1.AggregationRule": { + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", "properties": { - "name": { - "description": "Name is the registered name of the CSI driver", - "type": "string" + "clusterRoleSelectors": { + "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "items": { + "$ref": "#/definitions/v1.LabelSelector" + }, + "type": "array" } }, - "required": [ - "name" - ], "type": "object" }, - "v1beta1.AllowedFlexVolume": { - "description": "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.", + "v1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", "properties": { - "driver": { - "description": "driver is the name of the Flexvolume driver.", + "aggregationRule": { + "$ref": "#/definitions/v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" - } - }, - "required": [ - "driver" - ], - "type": "object" - }, - "v1beta1.AllowedHostPath": { - "description": "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.", - "properties": { - "pathPrefix": { - "description": "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path.\n\nExamples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`", + }, + "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" }, - "readOnly": { - "description": "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.", - "type": "boolean" - } - }, - "type": "object" - }, - "v1beta1.FSGroupStrategyOptions": { - "description": "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.", + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", "items": { - "$ref": "#/definitions/v1beta1.IDRange" + "$ref": "#/definitions/v1.PolicyRule" }, "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.HostPortRange": { - "description": "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int32", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int32", - "type": "integer" } }, - "required": [ - "min", - "max" - ], - "type": "object" - }, - "v1beta1.IDRange": { - "description": "IDRange provides a min/max of an allowed range of IDs.", - "properties": { - "max": { - "description": "max is the end of the range, inclusive.", - "format": "int64", - "type": "integer" - }, - "min": { - "description": "min is the start of the range, inclusive.", - "format": "int64", - "type": "integer" + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" } - }, - "required": [ - "min", - "max" ], - "type": "object" + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] }, - "v1beta1.PodDisruptionBudget": { - "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "v1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", "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", @@ -13831,40 +12850,46 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata." }, - "spec": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetSpec", - "description": "Specification of the desired behavior of the PodDisruptionBudget." + "roleRef": { + "$ref": "#/definitions/v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." }, - "status": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetStatus", - "description": "Most recently observed status of the PodDisruptionBudget." + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/v1.Subject" + }, + "type": "array" } }, + "required": [ + "roleRef" + ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.PodDisruptionBudgetList": { - "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "v1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { - "description": "items list individual PodDisruptionBudget objects", + "description": "Items is a list of ClusterRoleBindings", "items": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.ClusterRoleBinding" }, "type": "array" }, @@ -13874,7 +12899,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata." } }, "required": [ @@ -13883,94 +12908,99 @@ "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodDisruptionBudgetList", - "version": "v1beta1" + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1beta1.PodDisruptionBudgetSpec": { - "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "v1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", "properties": { - "maxUnavailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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" }, - "minAvailable": { - "$ref": "#/definitions/intstr.IntOrString", - "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + "items": { + "description": "Items is a list of ClusterRoles", + "items": { + "$ref": "#/definitions/v1.ClusterRole" + }, + "type": "array" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector selects no pods. An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods. In policy/v1, an empty selector will select all pods in the namespace." + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard object's metadata." } }, - "type": "object" + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] }, - "v1beta1.PodDisruptionBudgetStatus": { - "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "v1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", "properties": { - "conditions": { - "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", "items": { - "$ref": "#/definitions/v1.Condition" + "type": "string" }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge" - }, - "currentHealthy": { - "description": "current number of healthy pods", - "format": "int32", - "type": "integer" - }, - "desiredHealthy": { - "description": "minimum desired number of healthy pods", - "format": "int32", - "type": "integer" + "type": "array" }, - "disruptedPods": { - "additionalProperties": { - "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", - "format": "date-time", + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { "type": "string" }, - "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", - "type": "object" + "type": "array" }, - "disruptionsAllowed": { - "description": "Number of pod disruptions that are currently allowed.", - "format": "int32", - "type": "integer" + "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" }, - "expectedPods": { - "description": "total number of pods counted by this disruption budget", - "format": "int32", - "type": "integer" + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": "string" + }, + "type": "array" }, - "observedGeneration": { - "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", - "format": "int64", - "type": "integer" + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" + "verbs" ], "type": "object" }, - "v1beta1.PodSecurityPolicy": { - "description": "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated in 1.21.", + "v1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", "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", @@ -13982,583 +13012,64 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "Standard object's metadata." }, - "spec": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicySpec", - "description": "spec defines the policy enforced." + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "#/definitions/v1.PolicyRule" + }, + "type": "array" } }, "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1beta1.PodSecurityPolicyList": { - "description": "PodSecurityPolicyList is a list of PodSecurityPolicy objects.", + "v1.RoleBinding": { + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, - "items": { - "description": "items is a list of schema objects.", - "items": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - }, - "type": "array" - }, "kind": { "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/definitions/v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/definitions/v1.Subject" + }, + "type": "array" } }, "required": [ - "items" + "roleRef" ], "type": "object", "x-kubernetes-group-version-kind": [ { - "group": "policy", - "kind": "PodSecurityPolicyList", - "version": "v1beta1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v1beta1.PodSecurityPolicySpec": { - "description": "PodSecurityPolicySpec defines the policy enforced.", - "properties": { - "allowPrivilegeEscalation": { - "description": "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.", - "type": "boolean" - }, - "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedCSIDriver" - }, - "type": "array" - }, - "allowedCapabilities": { - "description": "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedFlexVolumes": { - "description": "allowedFlexVolumes is an allowlist of Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedFlexVolume" - }, - "type": "array" - }, - "allowedHostPaths": { - "description": "allowedHostPaths is an allowlist of host paths. Empty indicates that all host paths may be used.", - "items": { - "$ref": "#/definitions/v1beta1.AllowedHostPath" - }, - "type": "array" - }, - "allowedProcMountTypes": { - "description": "AllowedProcMountTypes is an allowlist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowedUnsafeSysctls": { - "description": "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.\n\nExamples: e.g. \"foo/*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAddCapabilities": { - "description": "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultAllowPrivilegeEscalation": { - "description": "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.", - "type": "boolean" - }, - "forbiddenSysctls": { - "description": "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.\n\nExamples: e.g. \"foo/*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.", - "items": { - "type": "string" - }, - "type": "array" - }, - "fsGroup": { - "$ref": "#/definitions/v1beta1.FSGroupStrategyOptions", - "description": "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext." - }, - "hostIPC": { - "description": "hostIPC determines if the policy allows the use of HostIPC in the pod spec.", - "type": "boolean" - }, - "hostNetwork": { - "description": "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.", - "type": "boolean" - }, - "hostPID": { - "description": "hostPID determines if the policy allows the use of HostPID in the pod spec.", - "type": "boolean" - }, - "hostPorts": { - "description": "hostPorts determines which host port ranges are allowed to be exposed.", - "items": { - "$ref": "#/definitions/v1beta1.HostPortRange" - }, - "type": "array" - }, - "privileged": { - "description": "privileged determines if a pod can request to be run as privileged.", - "type": "boolean" - }, - "readOnlyRootFilesystem": { - "description": "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.", - "type": "boolean" - }, - "requiredDropCapabilities": { - "description": "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.", - "items": { - "type": "string" - }, - "type": "array" - }, - "runAsGroup": { - "$ref": "#/definitions/v1beta1.RunAsGroupStrategyOptions", - "description": "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled." - }, - "runAsUser": { - "$ref": "#/definitions/v1beta1.RunAsUserStrategyOptions", - "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." - }, - "runtimeClass": { - "$ref": "#/definitions/v1beta1.RuntimeClassStrategyOptions", - "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." - }, - "seLinux": { - "$ref": "#/definitions/v1beta1.SELinuxStrategyOptions", - "description": "seLinux is the strategy that will dictate the allowable labels that may be set." - }, - "supplementalGroups": { - "$ref": "#/definitions/v1beta1.SupplementalGroupsStrategyOptions", - "description": "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext." - }, - "volumes": { - "description": "volumes is an allowlist of volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "seLinux", - "runAsUser", - "supplementalGroups", - "fsGroup" - ], - "type": "object" - }, - "v1beta1.RunAsGroupStrategyOptions": { - "description": "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "v1beta1.RunAsUserStrategyOptions": { - "description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate the allowable RunAsUser values that may be set.", - "type": "string" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "v1beta1.RuntimeClassStrategyOptions": { - "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", - "properties": { - "allowedRuntimeClassNames": { - "description": "allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", - "items": { - "type": "string" - }, - "type": "array" - }, - "defaultRuntimeClassName": { - "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", - "type": "string" - } - }, - "required": [ - "allowedRuntimeClassNames" - ], - "type": "object" - }, - "v1beta1.SELinuxStrategyOptions": { - "description": "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.", - "properties": { - "rule": { - "description": "rule is the strategy that will dictate the allowable labels that may be set.", - "type": "string" - }, - "seLinuxOptions": { - "$ref": "#/definitions/v1.SELinuxOptions", - "description": "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" - } - }, - "required": [ - "rule" - ], - "type": "object" - }, - "v1beta1.SupplementalGroupsStrategyOptions": { - "description": "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.", - "properties": { - "ranges": { - "description": "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.", - "items": { - "$ref": "#/definitions/v1beta1.IDRange" - }, - "type": "array" - }, - "rule": { - "description": "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.", - "type": "string" - } - }, - "type": "object" - }, - "v1.AggregationRule": { - "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", - "properties": { - "clusterRoleSelectors": { - "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", - "items": { - "$ref": "#/definitions/v1.LabelSelector" - }, - "type": "array" - } - }, - "type": "object" - }, - "v1.ClusterRole": { - "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", - "properties": { - "aggregationRule": { - "$ref": "#/definitions/v1.AggregationRule", - "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." - }, - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this ClusterRole", - "items": { - "$ref": "#/definitions/v1.PolicyRule" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRole", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1.ClusterRoleBinding": { - "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/v1.RoleRef", - "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/v1.Subject" - }, - "type": "array" - } - }, - "required": [ - "roleRef" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBinding", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1.ClusterRoleBindingList": { - "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", - "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 ClusterRoleBindings", - "items": { - "$ref": "#/definitions/v1.ClusterRoleBinding" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleBindingList", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v1.ClusterRoleList": { - "description": "ClusterRoleList is a collection of ClusterRoles", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "Items is a list of ClusterRoles", - "items": { - "$ref": "#/definitions/v1.ClusterRole" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "Standard object's metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "ClusterRoleList", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesListObject" - ] - }, - "v1.PolicyRule": { - "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", - "properties": { - "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.", - "items": { - "type": "string" - }, - "type": "array" - }, - "nonResourceURLs": { - "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", - "items": { - "type": "string" - }, - "type": "array" - }, - "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" - }, - "resources": { - "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", - "items": { - "type": "string" - }, - "type": "array" - }, - "verbs": { - "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "verbs" - ], - "type": "object" - }, - "v1.Role": { - "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "rules": { - "description": "Rules holds all the PolicyRules for this Role", - "items": { - "$ref": "#/definitions/v1.PolicyRule" - }, - "type": "array" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "Role", - "version": "v1" - } - ], - "x-implements": [ - "io.kubernetes.client.common.KubernetesObject" - ] - }, - "v1.RoleBinding": { - "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata." - }, - "roleRef": { - "$ref": "#/definitions/v1.RoleRef", - "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error." - }, - "subjects": { - "description": "Subjects holds references to the objects the role applies to.", - "items": { - "$ref": "#/definitions/v1.Subject" - }, - "type": "array" - } - }, - "required": [ - "roleRef" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "rbac.authorization.k8s.io", - "kind": "RoleBinding", - "version": "v1" + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" } ], "x-implements": [ @@ -14870,6 +13381,10 @@ "description": "RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", "type": "boolean" }, + "seLinuxMount": { + "description": "SELinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": "boolean" + }, "storageCapacity": { "description": "If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", "type": "boolean" @@ -16141,7 +14656,7 @@ "type": "object" }, "resource.Quantity": { - "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\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 a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 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.", + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", "type": "string", "format": "quantity" }, @@ -16622,6 +15137,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "DeleteOptions", @@ -16833,10 +15353,6 @@ "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", "type": "object" }, - "clusterName": { - "description": "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.", - "type": "string" - }, "creationTimestamp": { "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", "format": "date-time", @@ -17289,6 +15805,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "networking.k8s.io", "kind": "WatchEvent", @@ -17603,7 +16124,7 @@ }, "info": { "title": "Kubernetes", - "version": "release-1.24" + "version": "release-1.25" }, "paths": { "/.well-known/openid-configuration/": { @@ -49647,7 +48168,7 @@ } ] }, - "/apis/autoscaling/v2beta1/": { + "/apis/autoscaling/v2beta2/": { "get": { "consumes": [ "application/json", @@ -49676,11 +48197,11 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ] } }, - "/apis/autoscaling/v2beta1/horizontalpodautoscalers": { + "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { "get": { "consumes": [ "*/*" @@ -49698,7 +48219,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" } }, "401": { @@ -49709,13 +48230,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" } }, "parameters": [ @@ -49791,7 +48312,7 @@ } ] }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { "delete": { "consumes": [ "*/*" @@ -49904,13 +48425,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" }, @@ -49996,7 +48517,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" } }, "401": { @@ -50007,13 +48528,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" } }, "parameters": [ @@ -50045,7 +48566,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, { @@ -50079,19 +48600,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50102,18 +48623,18 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "delete": { "consumes": [ "*/*" @@ -50183,13 +48704,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" }, @@ -50208,7 +48729,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50219,13 +48740,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" } }, "parameters": [ @@ -50309,13 +48830,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50326,13 +48847,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" }, @@ -50348,7 +48869,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, { @@ -50382,13 +48903,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50399,18 +48920,18 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { "consumes": [ "*/*" @@ -50426,7 +48947,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50437,13 +48958,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" } }, "parameters": [ @@ -50527,13 +49048,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50544,13 +49065,13 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" }, @@ -50566,7 +49087,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, { @@ -50600,13 +49121,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta1.HorizontalPodAutoscaler" + "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" } }, "401": { @@ -50617,18 +49138,18 @@ "https" ], "tags": [ - "autoscaling_v2beta1" + "autoscaling_v2beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2beta1" + "version": "v2beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { + "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -50702,7 +49223,7 @@ } ] }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -50784,7 +49305,7 @@ } ] }, - "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -50874,7 +49395,40 @@ } ] }, - "/apis/autoscaling/v2beta2/": { + "/apis/batch/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch" + ] + } + }, + "/apis/batch/v1/": { "get": { "consumes": [ "application/json", @@ -50903,17 +49457,17 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ] } }, - "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { + "/apis/batch/v1/cronjobs": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "description": "list or watch objects of kind CronJob", + "operationId": "listCronJobForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -50925,7 +49479,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.CronJobList" } }, "401": { @@ -50936,13 +49490,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" } }, "parameters": [ @@ -51018,13 +49572,124 @@ } ] }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/batch/v1/jobs": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Job", + "operationId": "listJobForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/batch/v1/namespaces/{namespace}/cronjobs": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "description": "delete collection of CronJob", + "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ { "in": "body", @@ -51131,13 +49796,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -51145,8 +49810,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", + "description": "list or watch objects of kind CronJob", + "operationId": "listNamespacedCronJob", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -51223,7 +49888,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.CronJobList" } }, "401": { @@ -51234,13 +49899,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" } }, "parameters": [ @@ -51264,15 +49929,15 @@ "consumes": [ "*/*" ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", + "description": "create a CronJob", + "operationId": "createNamespacedCronJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -51306,19 +49971,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51329,24 +49994,24 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", + "description": "delete a CronJob", + "operationId": "deleteNamespacedCronJob", "parameters": [ { "in": "body", @@ -51410,13 +50075,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -51424,8 +50089,8 @@ "consumes": [ "*/*" ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", + "description": "read the specified CronJob", + "operationId": "readNamespacedCronJob", "produces": [ "application/json", "application/yaml", @@ -51435,7 +50100,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51446,18 +50111,18 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, @@ -51487,8 +50152,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "description": "partially update the specified CronJob", + "operationId": "patchNamespacedCronJob", "parameters": [ { "in": "body", @@ -51536,13 +50201,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51553,13 +50218,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -51567,15 +50232,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", + "description": "replace the specified CronJob", + "operationId": "replaceNamespacedCronJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -51609,13 +50274,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51626,24 +50291,24 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "description": "read status of the specified CronJob", + "operationId": "readNamespacedCronJobStatus", "produces": [ "application/json", "application/yaml", @@ -51653,7 +50318,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51664,18 +50329,18 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" } }, "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, @@ -51705,8 +50370,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "description": "partially update status of the specified CronJob", + "operationId": "patchNamespacedCronJobStatus", "parameters": [ { "in": "body", @@ -51754,13 +50419,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51771,13 +50436,13 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -51785,15 +50450,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", + "description": "replace status of the specified CronJob", + "operationId": "replaceNamespacedCronJobStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -51827,13 +50492,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -51844,305 +50509,110 @@ "https" ], "tags": [ - "autoscaling_v2beta2" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" + "group": "batch", + "kind": "CronJob", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/": { - "get": { + "/apis/batch/v1/namespaces/{namespace}/jobs": { + "delete": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "responses": { - "200": { - "description": "OK", + "description": "delete collection of Job", + "operationId": "deleteCollectionNamespacedJob", + "parameters": [ + { + "in": "body", + "name": "body", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.DeleteOptions" } }, - "401": { - "description": "Unauthorized" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch" - ] - } - }, - "/apis/batch/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -52152,346 +50622,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ] - } - }, - "/apis/batch/v1/cronjobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listCronJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/jobs": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Job", - "operationId": "listJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of CronJob", - "operationId": "deleteCollectionNamespacedCronJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -52507,7 +50638,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52516,8 +50647,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind CronJob", - "operationId": "listNamespacedCronJob", + "description": "list or watch objects of kind Job", + "operationId": "listNamespacedJob", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -52594,7 +50725,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJobList" + "$ref": "#/definitions/v1.JobList" } }, "401": { @@ -52610,7 +50741,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" } }, @@ -52635,15 +50766,15 @@ "consumes": [ "*/*" ], - "description": "create a CronJob", - "operationId": "createNamespacedCronJob", + "description": "create a Job", + "operationId": "createNamespacedJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, { @@ -52677,19 +50808,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -52705,19 +50836,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CronJob", - "operationId": "deleteNamespacedCronJob", + "description": "delete a Job", + "operationId": "deleteNamespacedJob", "parameters": [ { "in": "body", @@ -52786,7 +50917,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52795,8 +50926,8 @@ "consumes": [ "*/*" ], - "description": "read the specified CronJob", - "operationId": "readNamespacedCronJob", + "description": "read the specified Job", + "operationId": "readNamespacedJob", "produces": [ "application/json", "application/yaml", @@ -52806,7 +50937,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -52822,13 +50953,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the Job", "in": "path", "name": "name", "required": true, @@ -52858,8 +50989,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified CronJob", - "operationId": "patchNamespacedCronJob", + "description": "partially update the specified Job", + "operationId": "patchNamespacedJob", "parameters": [ { "in": "body", @@ -52907,13 +51038,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -52929,7 +51060,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52938,15 +51069,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified CronJob", - "operationId": "replaceNamespacedCronJob", + "description": "replace the specified Job", + "operationId": "replaceNamespacedJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, { @@ -52980,13 +51111,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -53002,19 +51133,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified CronJob", - "operationId": "readNamespacedCronJobStatus", + "description": "read status of the specified Job", + "operationId": "readNamespacedJobStatus", "produces": [ "application/json", "application/yaml", @@ -53024,7 +51155,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -53040,13 +51171,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the Job", "in": "path", "name": "name", "required": true, @@ -53076,8 +51207,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified CronJob", - "operationId": "patchNamespacedCronJobStatus", + "description": "partially update status of the specified Job", + "operationId": "patchNamespacedJobStatus", "parameters": [ { "in": "body", @@ -53125,13 +51256,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -53147,7 +51278,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -53156,15 +51287,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified CronJob", - "operationId": "replaceNamespacedCronJobStatus", + "description": "replace status of the specified Job", + "operationId": "replaceNamespacedJobStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, { @@ -53198,13 +51329,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -53220,458 +51351,197 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "batch", - "kind": "CronJob", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Job", - "operationId": "deleteCollectionNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/batch/v1/watch/cronjobs": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Job", - "operationId": "listNamespacedJob", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a Job", - "operationId": "createNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a Job", - "operationId": "deleteNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/batch/v1/watch/jobs": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Job", - "operationId": "readNamespacedJob", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -53680,426 +51550,6 @@ "type": "string", "uniqueItems": true }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Job", - "operationId": "patchNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Job", - "operationId": "replaceNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Job", - "operationId": "readNamespacedJobStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Job", - "operationId": "patchNamespacedJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Job", - "operationId": "replaceNamespacedJobStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Job" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/batch/v1/watch/cronjobs": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -54137,7 +51587,7 @@ } ] }, - "/apis/batch/v1/watch/jobs": { + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54175,79 +51625,13 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the CronJob", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -54293,7 +51677,7 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54330,14 +51714,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -54383,7 +51759,7 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54420,6 +51796,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -54465,105 +51849,15 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1beta1/": { + "/apis/certificates.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -54573,7 +51867,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -54584,29 +51878,29 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates" ] } }, - "/apis/batch/v1beta1/cronjobs": { + "/apis/certificates.k8s.io/v1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], - "description": "list or watch objects of kind CronJob", - "operationId": "listCronJobForAllNamespaces", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJobList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -54617,95 +51911,17 @@ "https" ], "tags": [ - "batch_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "certificates_v1" + ] + } }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of CronJob", - "operationId": "deleteCollectionNamespacedCronJob", + "description": "delete collection of CertificateSigningRequest", + "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ { "in": "body", @@ -54812,13 +52028,13 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -54826,8 +52042,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind CronJob", - "operationId": "listNamespacedCronJob", + "description": "list or watch objects of kind CertificateSigningRequest", + "operationId": "listCertificateSigningRequest", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -54904,7 +52120,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJobList" + "$ref": "#/definitions/v1.CertificateSigningRequestList" } }, "401": { @@ -54915,24 +52131,16 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -54945,15 +52153,15 @@ "consumes": [ "*/*" ], - "description": "create a CronJob", - "operationId": "createNamespacedCronJob", + "description": "create a CertificateSigningRequest", + "operationId": "createCertificateSigningRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -54987,19 +52195,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55010,24 +52218,24 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CronJob", - "operationId": "deleteNamespacedCronJob", + "description": "delete a CertificateSigningRequest", + "operationId": "deleteCertificateSigningRequest", "parameters": [ { "in": "body", @@ -55091,13 +52299,13 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -55105,8 +52313,8 @@ "consumes": [ "*/*" ], - "description": "read the specified CronJob", - "operationId": "readNamespacedCronJob", + "description": "read the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequest", "produces": [ "application/json", "application/yaml", @@ -55116,7 +52324,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55127,32 +52335,24 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55168,8 +52368,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified CronJob", - "operationId": "patchNamespacedCronJob", + "description": "partially update the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequest", "parameters": [ { "in": "body", @@ -55217,13 +52417,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55234,13 +52434,13 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -55248,15 +52448,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified CronJob", - "operationId": "replaceNamespacedCronJob", + "description": "replace the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -55290,13 +52490,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55307,24 +52507,24 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified CronJob", - "operationId": "readNamespacedCronJobStatus", + "description": "read approval of the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequestApproval", "produces": [ "application/json", "application/yaml", @@ -55334,7 +52534,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55345,32 +52545,24 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55386,8 +52578,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified CronJob", - "operationId": "patchNamespacedCronJobStatus", + "description": "partially update approval of the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequestApproval", "parameters": [ { "in": "body", @@ -55435,13 +52627,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55452,13 +52644,13 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -55466,15 +52658,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified CronJob", - "operationId": "replaceNamespacedCronJobStatus", + "description": "replace approval of the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequestApproval", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -55508,13 +52700,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.CronJob" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -55525,92 +52717,228 @@ "https" ], "tags": [ - "batch_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1beta1" + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1beta1/watch/cronjobs": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + }, + "parameters": [ { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CertificateSigningRequest" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs": { + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -55647,14 +52975,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55692,7 +53012,7 @@ } ] }, - "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -55730,21 +53050,13 @@ "uniqueItems": true }, { - "description": "name of the CronJob", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -55782,7 +53094,7 @@ } ] }, - "/apis/certificates.k8s.io/": { + "/apis/coordination.k8s.io/": { "get": { "consumes": [ "application/json", @@ -55811,11 +53123,11 @@ "https" ], "tags": [ - "certificates" + "coordination" ] } }, - "/apis/certificates.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -55844,17 +53156,128 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ] } }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests": { + "/apis/coordination.k8s.io/v1/leases": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listLeaseForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.LeaseList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of CertificateSigningRequest", - "operationId": "deleteCollectionCertificateSigningRequest", + "description": "delete collection of Lease", + "operationId": "deleteCollectionNamespacedLease", "parameters": [ { "in": "body", @@ -55961,12 +53384,12 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -55975,8 +53398,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind CertificateSigningRequest", - "operationId": "listCertificateSigningRequest", + "description": "list or watch objects of kind Lease", + "operationId": "listNamespacedLease", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -56053,7 +53476,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequestList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -56064,16 +53487,24 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -56086,15 +53517,15 @@ "consumes": [ "*/*" ], - "description": "create a CertificateSigningRequest", - "operationId": "createCertificateSigningRequest", + "description": "create a Lease", + "operationId": "createNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, { @@ -56128,19 +53559,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -56151,24 +53582,24 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a CertificateSigningRequest", - "operationId": "deleteCertificateSigningRequest", + "description": "delete a Lease", + "operationId": "deleteNamespacedLease", "parameters": [ { "in": "body", @@ -56232,232 +53663,22 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequest", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { "get": { "consumes": [ "*/*" ], - "description": "read approval of the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequestApproval", + "description": "read the specified Lease", + "operationId": "readNamespacedLease", "produces": [ "application/json", "application/yaml", @@ -56467,7 +53688,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -56478,18 +53699,18 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" } }, "parameters": [ { - "description": "name of the CertificateSigningRequest", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -56497,211 +53718,9 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update approval of the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequestApproval", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace approval of the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequestApproval", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CertificateSigningRequest", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -56721,8 +53740,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequestStatus", + "description": "partially update the specified Lease", + "operationId": "patchNamespacedLease", "parameters": [ { "in": "body", @@ -56770,13 +53789,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -56787,12 +53806,12 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -56801,15 +53820,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequestStatus", + "description": "replace the specified Lease", + "operationId": "replaceNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, { @@ -56843,13 +53862,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -56860,18 +53879,18 @@ "https" ], "tags": [ - "certificates_v1" + "coordination_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "coordination.k8s.io", + "kind": "Lease", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { + "/apis/coordination.k8s.io/v1/watch/leases": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -56945,7 +53964,7 @@ } ] }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -56983,9 +54002,9 @@ "uniqueItems": true }, { - "description": "name of the CertificateSigningRequest", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -57027,40 +54046,130 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Lease", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/discovery.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery" ] } }, - "/apis/coordination.k8s.io/v1/": { + "/apis/discovery.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -57089,17 +54198,17 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ] } }, - "/apis/coordination.k8s.io/v1/leases": { + "/apis/discovery.k8s.io/v1/endpointslices": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Lease", - "operationId": "listLeaseForAllNamespaces", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listEndpointSliceForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -57111,7 +54220,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LeaseList" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -57122,12 +54231,12 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, @@ -57204,13 +54313,13 @@ } ] }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Lease", - "operationId": "deleteCollectionNamespacedLease", + "description": "delete collection of EndpointSlice", + "operationId": "deleteCollectionNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -57317,12 +54426,12 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -57331,8 +54440,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Lease", - "operationId": "listNamespacedLease", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listNamespacedEndpointSlice", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -57409,7 +54518,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LeaseList" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -57420,12 +54529,12 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, @@ -57450,15 +54559,15 @@ "consumes": [ "*/*" ], - "description": "create a Lease", - "operationId": "createNamespacedLease", + "description": "create an EndpointSlice", + "operationId": "createNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -57492,19 +54601,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -57515,24 +54624,24 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a Lease", - "operationId": "deleteNamespacedLease", + "description": "delete an EndpointSlice", + "operationId": "deleteNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -57596,12 +54705,12 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -57610,8 +54719,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Lease", - "operationId": "readNamespacedLease", + "description": "read the specified EndpointSlice", + "operationId": "readNamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -57621,7 +54730,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -57632,18 +54741,18 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, "parameters": [ { - "description": "name of the Lease", + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, @@ -57673,8 +54782,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Lease", - "operationId": "patchNamespacedLease", + "description": "partially update the specified EndpointSlice", + "operationId": "patchNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -57722,13 +54831,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -57739,12 +54848,12 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -57753,15 +54862,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Lease", - "operationId": "replaceNamespacedLease", + "description": "replace the specified EndpointSlice", + "operationId": "replaceNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -57795,13 +54904,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -57812,18 +54921,18 @@ "https" ], "tags": [ - "coordination_v1" + "discovery_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1/watch/leases": { + "/apis/discovery.k8s.io/v1/watch/endpointslices": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -57897,7 +55006,7 @@ } ] }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -57979,7 +55088,7 @@ } ] }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -58017,7 +55126,7 @@ "uniqueItems": true }, { - "description": "name of the Lease", + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, @@ -58069,7 +55178,7 @@ } ] }, - "/apis/discovery.k8s.io/": { + "/apis/events.k8s.io/": { "get": { "consumes": [ "application/json", @@ -58098,11 +55207,11 @@ "https" ], "tags": [ - "discovery" + "events" ] } }, - "/apis/discovery.k8s.io/v1/": { + "/apis/events.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -58131,17 +55240,17 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ] } }, - "/apis/discovery.k8s.io/v1/endpointslices": { + "/apis/events.k8s.io/v1/events": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listEndpointSliceForAllNamespaces", + "description": "list or watch objects of kind Event", + "operationId": "listEventForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -58153,7 +55262,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -58164,12 +55273,12 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -58246,13 +55355,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -58359,12 +55468,12 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -58373,8 +55482,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listNamespacedEndpointSlice", + "description": "list or watch objects of kind Event", + "operationId": "listNamespacedEvent", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -58451,7 +55560,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -58462,12 +55571,12 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, @@ -58492,15 +55601,15 @@ "consumes": [ "*/*" ], - "description": "create an EndpointSlice", - "operationId": "createNamespacedEndpointSlice", + "description": "create an Event", + "operationId": "createNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -58534,19 +55643,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -58557,24 +55666,24 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -58638,12 +55747,12 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -58652,8 +55761,8 @@ "consumes": [ "*/*" ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -58663,7 +55772,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -58674,18 +55783,18 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, "parameters": [ { - "description": "name of the EndpointSlice", + "description": "name of the Event", "in": "path", "name": "name", "required": true, @@ -58715,8 +55824,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -58764,13 +55873,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -58781,12 +55890,12 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -58795,15 +55904,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceNamespacedEndpointSlice", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -58837,13 +55946,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -58854,18 +55963,18 @@ "https" ], "tags": [ - "discovery_v1" + "events_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "/apis/events.k8s.io/v1/watch/events": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -58939,7 +56048,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -59021,7 +56130,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -59059,7 +56168,7 @@ "uniqueItems": true }, { - "description": "name of the EndpointSlice", + "description": "name of the Event", "in": "path", "name": "name", "required": true, @@ -59111,15 +56220,15 @@ } ] }, - "/apis/discovery.k8s.io/v1beta1/": { + "/apis/flowcontrol.apiserver.k8s.io/": { "get": { "consumes": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", @@ -59129,7 +56238,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -59140,29 +56249,29 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver" ] } }, - "/apis/discovery.k8s.io/v1beta1/endpointslices": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { "get": { "consumes": [ - "*/*" + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listEndpointSliceForAllNamespaces", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSliceList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -59173,95 +56282,17 @@ "https" ], "tags": [ - "discovery_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "flowcontrolApiserver_v1beta1" + ] + } }, - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -59368,12 +56399,12 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" }, "x-codegen-request-body-name": "body" @@ -59382,8 +56413,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listNamespacedEndpointSlice", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -59460,7 +56491,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSliceList" + "$ref": "#/definitions/v1beta1.FlowSchemaList" } }, "401": { @@ -59471,24 +56502,16 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -59501,15 +56524,15 @@ "consumes": [ "*/*" ], - "description": "create an EndpointSlice", - "operationId": "createNamespacedEndpointSlice", + "description": "create a FlowSchema", + "operationId": "createFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, { @@ -59543,19 +56566,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "401": { @@ -59566,24 +56589,24 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -59647,12 +56670,12 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" }, "x-codegen-request-body-name": "body" @@ -59661,8 +56684,8 @@ "consumes": [ "*/*" ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", "produces": [ "application/json", "application/yaml", @@ -59672,7 +56695,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "401": { @@ -59683,32 +56706,24 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" } }, "parameters": [ { - "description": "name of the EndpointSlice", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -59724,8 +56739,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", "parameters": [ { "in": "body", @@ -59773,13 +56788,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "401": { @@ -59790,12 +56805,12 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" }, "x-codegen-request-body-name": "body" @@ -59804,15 +56819,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceNamespacedEndpointSlice", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, { @@ -59846,13 +56861,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.EndpointSlice" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "401": { @@ -59863,348 +56878,34 @@ "https" ], "tags": [ - "discovery_v1beta1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1beta1/watch/endpointslices": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the EndpointSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1" - ] - } - }, - "/apis/events.k8s.io/v1/events": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.FlowSchema" } }, "401": { @@ -60215,110 +56916,50 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta1" } }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { - "delete": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -60327,46 +56968,207 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", - "name": "fieldSelector", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", "in": "query", - "name": "orphanDependents", + "name": "force", "type": "boolean", "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.FlowSchema" + } }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true }, { "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", @@ -60410,13 +57212,13 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -60424,8 +57226,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -60502,7 +57304,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationList" } }, "401": { @@ -60513,24 +57315,16 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -60543,15 +57337,15 @@ "consumes": [ "*/*" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, { @@ -60585,19 +57379,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "401": { @@ -60608,24 +57402,24 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -60689,13 +57483,13 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -60703,8 +57497,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -60714,7 +57508,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "401": { @@ -60725,18 +57519,18 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -60744,9 +57538,211 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -60766,8 +57762,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", "parameters": [ { "in": "body", @@ -60815,13 +57811,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "401": { @@ -60832,13 +57828,13 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -60846,15 +57842,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, { @@ -60888,13 +57884,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" } }, "401": { @@ -60905,18 +57901,18 @@ "https" ], "tags": [ - "events_v1" + "flowcontrolApiserver_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1/watch/events": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -60990,7 +57986,7 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61028,9 +58024,9 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the FlowSchema", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -61072,7 +58068,7 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61110,32 +58106,16 @@ "uniqueItems": true }, { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, @@ -61162,77 +58142,7 @@ } ] }, - "/apis/events.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ] - } - }, - "/apis/events.k8s.io/v1beta1/events": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.EventList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" - } - }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61269,6 +58179,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -61306,13 +58224,46 @@ } ] }, - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -61419,13 +58370,13 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -61433,8 +58384,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -61511,7 +58462,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.EventList" + "$ref": "#/definitions/v1beta2.FlowSchemaList" } }, "401": { @@ -61522,24 +58473,16 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -61552,15 +58495,15 @@ "consumes": [ "*/*" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create a FlowSchema", + "operationId": "createFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, { @@ -61594,19 +58537,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -61617,24 +58560,24 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -61698,13 +58641,13 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -61712,8 +58655,8 @@ "consumes": [ "*/*" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", "produces": [ "application/json", "application/yaml", @@ -61723,7 +58666,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -61734,32 +58677,24 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -61775,8 +58710,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", "parameters": [ { "in": "body", @@ -61824,13 +58759,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -61841,13 +58776,13 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -61855,15 +58790,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, { @@ -61897,13 +58832,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.Event" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -61914,272 +58849,24 @@ "https" ], "tags": [ - "events_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1beta1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1beta1/watch/events": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Event", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status": { "get": { "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "*/*" ], - "description": "get information of a group", - "operationId": "getAPIGroup", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -62189,7 +58876,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1beta2.FlowSchema" } }, "401": { @@ -62200,50 +58887,196 @@ "https" ], "tags": [ - "flowcontrolApiserver" - ] - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "flowcontrolApiserver_v1beta2" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" } }, "schemes": [ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" - ] + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -62350,13 +59183,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -62364,8 +59197,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -62442,7 +59275,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchemaList" + "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationList" } }, "401": { @@ -62453,13 +59286,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" } }, "parameters": [ @@ -62475,15 +59308,15 @@ "consumes": [ "*/*" ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, { @@ -62517,19 +59350,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -62540,24 +59373,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -62621,13 +59454,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -62635,8 +59468,8 @@ "consumes": [ "*/*" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -62646,7 +59479,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -62657,18 +59490,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -62690,8 +59523,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -62739,13 +59572,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -62756,13 +59589,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -62770,15 +59603,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, { @@ -62812,13 +59645,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -62829,24 +59662,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", "produces": [ "application/json", "application/yaml", @@ -62856,7 +59689,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -62867,18 +59700,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -62900,8 +59733,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", "parameters": [ { "in": "body", @@ -62949,13 +59782,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -62966,13 +59799,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" }, @@ -62980,15 +59813,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, { @@ -63022,13 +59855,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" + "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" } }, "401": { @@ -63039,24 +59872,402 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "flowcontrolApiserver_v1beta2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" + "kind": "PriorityLevelConfiguration", + "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver_v1alpha1" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", + "description": "delete collection of StorageVersion", + "operationId": "deleteCollectionStorageVersion", "parameters": [ { "in": "body", @@ -63163,13 +60374,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -63177,8 +60388,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", + "description": "list or watch objects of kind StorageVersion", + "operationId": "listStorageVersion", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -63255,7 +60466,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationList" + "$ref": "#/definitions/v1alpha1.StorageVersionList" } }, "401": { @@ -63266,13 +60477,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ @@ -63288,15 +60499,15 @@ "consumes": [ "*/*" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", + "description": "create a StorageVersion", + "operationId": "createStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -63330,19 +60541,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63353,24 +60564,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", + "description": "delete a StorageVersion", + "operationId": "deleteStorageVersion", "parameters": [ { "in": "body", @@ -63434,13 +60645,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -63448,8 +60659,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", + "description": "read the specified StorageVersion", + "operationId": "readStorageVersion", "produces": [ "application/json", "application/yaml", @@ -63459,7 +60670,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63470,18 +60681,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, @@ -63503,8 +60714,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", + "description": "partially update the specified StorageVersion", + "operationId": "patchStorageVersion", "parameters": [ { "in": "body", @@ -63552,13 +60763,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63569,13 +60780,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -63583,15 +60794,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", + "description": "replace the specified StorageVersion", + "operationId": "replaceStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -63625,13 +60836,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63642,24 +60853,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readStorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -63669,7 +60880,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63680,18 +60891,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, @@ -63713,8 +60924,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchStorageVersionStatus", "parameters": [ { "in": "body", @@ -63762,13 +60973,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63779,13 +60990,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -63793,15 +61004,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", + "description": "replace status of the specified StorageVersion", + "operationId": "replaceStorageVersionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -63835,13 +61046,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -63852,18 +61063,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -63937,7 +61148,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -63975,7 +61186,7 @@ "uniqueItems": true }, { - "description": "name of the FlowSchema", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, @@ -64019,163 +61230,40 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { + "/apis/networking.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -64204,17 +61292,17 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas": { + "/apis/networking.k8s.io/v1/ingressclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of IngressClass", + "operationId": "deleteCollectionIngressClass", "parameters": [ { "in": "body", @@ -64321,13 +61409,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -64335,8 +61423,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", + "description": "list or watch objects of kind IngressClass", + "operationId": "listIngressClass", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -64413,7 +61501,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchemaList" + "$ref": "#/definitions/v1.IngressClassList" } }, "401": { @@ -64424,13 +61512,13 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ @@ -64446,15 +61534,15 @@ "consumes": [ "*/*" ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", + "description": "create an IngressClass", + "operationId": "createIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -64488,19 +61576,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -64511,24 +61599,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete an IngressClass", + "operationId": "deleteIngressClass", "parameters": [ { "in": "body", @@ -64592,232 +61680,22 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", + "description": "read the specified IngressClass", + "operationId": "readIngressClass", "produces": [ "application/json", "application/yaml", @@ -64827,7 +61705,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -64838,18 +61716,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1beta2" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -64871,8 +61749,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", + "description": "partially update the specified IngressClass", + "operationId": "patchIngressClass", "parameters": [ { "in": "body", @@ -64920,5407 +61798,145 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.IngressClass" } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver" - ] - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ] - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of StorageVersion", - "operationId": "deleteCollectionStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listStorageVersion", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a StorageVersion", - "operationId": "createStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a StorageVersion", - "operationId": "deleteStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified StorageVersion", - "operationId": "readStorageVersion", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified StorageVersion", - "operationId": "patchStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified StorageVersion", - "operationId": "replaceStorageVersion", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified StorageVersion", - "operationId": "readStorageVersionStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "internalApiserver_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" - } - }, - "parameters": [ - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchStorageVersionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceStorageVersionStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - } - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ] - } - }, - "/apis/networking.k8s.io/v1/ingressclasses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of IngressClass", - "operationId": "deleteCollectionIngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listIngressClass", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressClassList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an IngressClass", - "operationId": "createIngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an IngressClass", - "operationId": "deleteIngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified IngressClass", - "operationId": "readIngressClass", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified IngressClass", - "operationId": "patchIngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified IngressClass", - "operationId": "replaceIngressClass", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IngressClass" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/ingresses": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Ingress", - "operationId": "listIngressForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of Ingress", - "operationId": "deleteCollectionNamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNamespacedIngress", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IngressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create an Ingress", - "operationId": "createNamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete an Ingress", - "operationId": "deleteNamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified Ingress", - "operationId": "readNamespacedIngress", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified Ingress", - "operationId": "patchNamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified Ingress", - "operationId": "replaceNamespacedIngress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified Ingress", - "operationId": "readNamespacedIngressStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNamespacedIngressStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNamespacedIngressStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Ingress" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "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" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteCollectionNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNamespacedNetworkPolicy", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a NetworkPolicy", - "operationId": "createNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicyStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicyStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicyStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/networking.k8s.io/v1/networkpolicies": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkPolicyForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "NetworkPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the IngressClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the NetworkPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.IngressClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified IngressClass", + "operationId": "replaceIngressClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.IngressClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.IngressClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.IngressClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/ingresses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Ingress", + "operationId": "listIngressForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.IngressList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } - ] - }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { + }, "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70394,79 +62010,13 @@ } ] }, - "/apis/node.k8s.io/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node" - ] - } - }, - "/apis/node.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1" - ] - } - }, - "/apis/node.k8s.io/v1/runtimeclasses": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteCollectionRuntimeClass", + "description": "delete collection of Ingress", + "operationId": "deleteCollectionNamespacedIngress", "parameters": [ { "in": "body", @@ -70573,12 +62123,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -70587,8 +62137,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listRuntimeClass", + "description": "list or watch objects of kind Ingress", + "operationId": "listNamespacedIngress", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -70665,7 +62215,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClassList" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -70676,16 +62226,24 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70698,15 +62256,15 @@ "consumes": [ "*/*" ], - "description": "create a RuntimeClass", - "operationId": "createRuntimeClass", + "description": "create an Ingress", + "operationId": "createNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -70740,19 +62298,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -70763,24 +62321,24 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteRuntimeClass", + "description": "delete an Ingress", + "operationId": "deleteNamespacedIngress", "parameters": [ { "in": "body", @@ -70844,12 +62402,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -70858,8 +62416,226 @@ "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readRuntimeClass", + "description": "read the specified Ingress", + "operationId": "readNamespacedIngress", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified Ingress", + "operationId": "patchNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "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" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified Ingress", + "operationId": "replaceNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "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" + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified Ingress", + "operationId": "readNamespacedIngressStatus", "produces": [ "application/json", "application/yaml", @@ -70869,7 +62645,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -70880,24 +62656,32 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the Ingress", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -70913,8 +62697,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchRuntimeClass", + "description": "partially update status of the specified Ingress", + "operationId": "patchNamespacedIngressStatus", "parameters": [ { "in": "body", @@ -70962,13 +62746,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -70979,12 +62763,12 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -70993,15 +62777,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceRuntimeClass", + "description": "replace status of the specified Ingress", + "operationId": "replaceNamespacedIngressStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -71035,13 +62819,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.RuntimeClass" + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -71052,213 +62836,24 @@ "https" ], "tags": [ - "node_v1" + "networking_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", + "group": "networking.k8s.io", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1/watch/runtimeclasses": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the RuntimeClass", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/node.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ] - } - }, - "/apis/node.k8s.io/v1beta1/runtimeclasses": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of RuntimeClass", - "operationId": "deleteCollectionRuntimeClass", + "description": "delete collection of NetworkPolicy", + "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -71365,13 +62960,13 @@ "https" ], "tags": [ - "node_v1beta1" + "networking_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71379,8 +62974,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind RuntimeClass", - "operationId": "listRuntimeClass", + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNamespacedNetworkPolicy", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -71457,7 +63052,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClassList" + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { @@ -71468,16 +63063,24 @@ "https" ], "tags": [ - "node_v1beta1" + "networking_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -71490,15 +63093,15 @@ "consumes": [ "*/*" ], - "description": "create a RuntimeClass", - "operationId": "createRuntimeClass", + "description": "create a NetworkPolicy", + "operationId": "createNamespacedNetworkPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -71532,19 +63135,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -71555,24 +63158,24 @@ "https" ], "tags": [ - "node_v1beta1" + "networking_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a RuntimeClass", - "operationId": "deleteRuntimeClass", + "description": "delete a NetworkPolicy", + "operationId": "deleteNamespacedNetworkPolicy", "parameters": [ { "in": "body", @@ -71636,22 +63239,240 @@ "https" ], "tags": [ - "node_v1beta1" + "networking_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified RuntimeClass", - "operationId": "readRuntimeClass", + "description": "read status of the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicyStatus", "produces": [ "application/json", "application/yaml", @@ -71661,7 +63482,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -71672,24 +63493,32 @@ "https" ], "tags": [ - "node_v1beta1" + "networking_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" } }, "parameters": [ { - "description": "name of the RuntimeClass", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -71705,8 +63534,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified RuntimeClass", - "operationId": "patchRuntimeClass", + "description": "partially update status of the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicyStatus", "parameters": [ { "in": "body", @@ -71754,13 +63583,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "401": { @@ -71771,13 +63600,13 @@ "https" ], "tags": [ - "node_v1beta1" + "networking_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71785,15 +63614,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified RuntimeClass", - "operationId": "replaceRuntimeClass", + "description": "replace status of the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicyStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, { @@ -71827,35 +63656,548 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.RuntimeClass" + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/networkpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkPolicyForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicyList" } }, "401": { "description": "Unauthorized" } }, - "schemes": [ - "https" - ], - "tags": [ - "node_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "node.k8s.io", - "kind": "RuntimeClass", - "version": "v1beta1" + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the IngressClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingresses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/node.k8s.io/v1beta1/watch/runtimeclasses": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -71892,6 +64234,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -71929,7 +64279,7 @@ } ] }, - "/apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -71967,13 +64317,21 @@ "uniqueItems": true }, { - "description": "name of the RuntimeClass", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -72011,351 +64369,89 @@ } ] }, - "/apis/policy/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy" - ] - } - }, - "/apis/policy/v1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ] - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listNamespacedPodDisruptionBudget", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { + ] + }, + "/apis/networking.k8s.io/v1alpha1/": { + "get": { "consumes": [ - "*/*" - ], - "description": "create a PodDisruptionBudget", - "operationId": "createNamespacedPodDisruptionBudget", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -72365,19 +64461,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -72388,24 +64472,17 @@ "https" ], "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "networking_v1alpha1" + ] } }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1alpha1/clustercidrs": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deleteNamespacedPodDisruptionBudget", + "description": "delete collection of ClusterCIDR", + "operationId": "deleteCollectionClusterCIDR", "parameters": [ { "in": "body", @@ -72414,6 +64491,13 @@ "$ref": "#/definitions/v1.DeleteOptions" } }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -72421,6 +64505,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, { "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", @@ -72428,6 +64519,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", @@ -72441,6 +64546,27 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true } ], "produces": [ @@ -72455,12 +64581,6 @@ "$ref": "#/definitions/v1.Status" } }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, "401": { "description": "Unauthorized" } @@ -72469,13 +64589,13 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -72483,18 +64603,85 @@ "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudget", + "description": "list or watch objects of kind ClusterCIDR", + "operationId": "listClusterCIDR", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDRList" } }, "401": { @@ -72505,32 +64692,16 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" } }, "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -72539,22 +64710,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudget", + "description": "create a ClusterCIDR", + "operationId": "createClusterCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, { @@ -72565,7 +64733,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", "name": "fieldManager", "type": "string", @@ -72577,13 +64745,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -72595,13 +64756,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -72612,29 +64779,30 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/networking.k8s.io/v1alpha1/clustercidrs/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudget", + "description": "delete a ClusterCIDR", + "operationId": "deleteClusterCIDR", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -72645,16 +64813,23 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldManager", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"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": "fieldValidation", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", "type": "string", "uniqueItems": true } @@ -72668,13 +64843,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -72685,24 +64860,22 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { + }, "get": { "consumes": [ "*/*" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudgetStatus", + "description": "read the specified ClusterCIDR", + "operationId": "readClusterCIDR", "produces": [ "application/json", "application/yaml", @@ -72712,7 +64885,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -72723,32 +64896,24 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the ClusterCIDR", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -72764,8 +64929,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "description": "partially update the specified ClusterCIDR", + "operationId": "patchClusterCIDR", "parameters": [ { "in": "body", @@ -72813,13 +64978,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -72830,13 +64995,13 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -72844,15 +65009,15 @@ "consumes": [ "*/*" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", + "description": "replace the specified ClusterCIDR", + "operationId": "replaceClusterCIDR", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, { @@ -72886,13 +65051,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudget" + "$ref": "#/definitions/v1alpha1.ClusterCIDR" } }, "401": { @@ -72903,129 +65068,18 @@ "https" ], "tags": [ - "policy_v1" + "networking_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" + "group": "networking.k8s.io", + "kind": "ClusterCIDR", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1/poddisruptionbudgets": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPodDisruptionBudgetForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PodDisruptionBudgetList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -73062,14 +65116,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73107,7 +65153,7 @@ } ] }, - "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/networking.k8s.io/v1alpha1/watch/clustercidrs/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -73145,21 +65191,13 @@ "uniqueItems": true }, { - "description": "name of the PodDisruptionBudget", + "description": "name of the ClusterCIDR", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73197,81 +65235,40 @@ } ] }, - "/apis/policy/v1/watch/poddisruptionbudgets": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/node.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "schemes": [ + "https" + ], + "tags": [ + "node" + ] + } }, - "/apis/policy/v1beta1/": { + "/apis/node.k8s.io/v1/": { "get": { "consumes": [ "application/json", @@ -73300,17 +65297,17 @@ "https" ], "tags": [ - "policy_v1beta1" + "node_v1" ] } }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/node.k8s.io/v1/runtimeclasses": { "delete": { "consumes": [ "*/*" ], - "description": "delete collection of PodDisruptionBudget", - "operationId": "deleteCollectionNamespacedPodDisruptionBudget", + "description": "delete collection of RuntimeClass", + "operationId": "deleteCollectionRuntimeClass", "parameters": [ { "in": "body", @@ -73417,13 +65414,13 @@ "https" ], "tags": [ - "policy_v1beta1" + "node_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -73431,8 +65428,8 @@ "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listNamespacedPodDisruptionBudget", + "description": "list or watch objects of kind RuntimeClass", + "operationId": "listRuntimeClass", "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -73509,7 +65506,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.RuntimeClassList" } }, "401": { @@ -73520,24 +65517,16 @@ "https" ], "tags": [ - "policy_v1beta1" + "node_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73550,15 +65539,15 @@ "consumes": [ "*/*" ], - "description": "create a PodDisruptionBudget", - "operationId": "createNamespacedPodDisruptionBudget", + "description": "create a RuntimeClass", + "operationId": "createRuntimeClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.RuntimeClass" } }, { @@ -73592,19 +65581,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.RuntimeClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.RuntimeClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.RuntimeClass" } }, "401": { @@ -73615,24 +65604,24 @@ "https" ], "tags": [ - "policy_v1beta1" + "node_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/node.k8s.io/v1/runtimeclasses/{name}": { "delete": { "consumes": [ "*/*" ], - "description": "delete a PodDisruptionBudget", - "operationId": "deleteNamespacedPodDisruptionBudget", + "description": "delete a RuntimeClass", + "operationId": "deleteRuntimeClass", "parameters": [ { "in": "body", @@ -73696,13 +65685,13 @@ "https" ], "tags": [ - "policy_v1beta1" + "node_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -73710,8 +65699,8 @@ "consumes": [ "*/*" ], - "description": "read the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudget", + "description": "read the specified RuntimeClass", + "operationId": "readRuntimeClass", "produces": [ "application/json", "application/yaml", @@ -73721,7 +65710,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.RuntimeClass" } }, "401": { @@ -73732,32 +65721,24 @@ "https" ], "tags": [ - "policy_v1beta1" + "node_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" } }, "parameters": [ { - "description": "name of the PodDisruptionBudget", + "description": "name of the RuntimeClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -73773,43 +65754,468 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudget", + "description": "partially update the specified RuntimeClass", + "operationId": "patchRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified RuntimeClass", + "operationId": "replaceRuntimeClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.RuntimeClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "node_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/node.k8s.io/v1/watch/runtimeclasses/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the RuntimeClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/policy/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy" + ] + } + }, + "/apis/policy/v1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ] + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodDisruptionBudget", + "operationId": "deleteCollectionNamespacedPodDisruptionBudget", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the 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": "dryRun", + "name": "propagationPolicy", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", "in": "query", - "name": "fieldManager", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", "in": "query", - "name": "fieldValidation", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", - "name": "force", - "type": "boolean", + "name": "timeoutSeconds", + "type": "integer", "uniqueItems": true } ], @@ -73822,13 +66228,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -73839,107 +66239,99 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "policy", "kind": "PodDisruptionBudget", - "version": "v1beta1" + "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { + "get": { "consumes": [ "*/*" ], - "description": "replace the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudget", + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listNamespacedPodDisruptionBudget", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", - "name": "dryRun", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" - } + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "401": { - "description": "Unauthorized" + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodDisruptionBudget", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { - "get": { - "consumes": [ - "*/*" ], - "description": "read status of the specified PodDisruptionBudget", - "operationId": "readNamespacedPodDisruptionBudgetStatus", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.PodDisruptionBudgetList" } }, "401": { @@ -73950,24 +66342,16 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "policy", "kind": "PodDisruptionBudget", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -73984,22 +66368,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" + "*/*" ], - "description": "partially update status of the specified PodDisruptionBudget", - "operationId": "patchNamespacedPodDisruptionBudgetStatus", + "description": "create a PodDisruptionBudget", + "operationId": "createNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, { @@ -74010,7 +66391,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", "name": "fieldManager", "type": "string", @@ -74022,13 +66403,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -74040,13 +66414,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.PodDisruptionBudget" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74057,29 +66437,30 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "policy", "kind": "PodDisruptionBudget", - "version": "v1beta1" + "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "delete": { "consumes": [ "*/*" ], - "description": "replace status of the specified PodDisruptionBudget", - "operationId": "replaceNamespacedPodDisruptionBudgetStatus", + "description": "delete a PodDisruptionBudget", + "operationId": "deleteNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -74090,16 +66471,23 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldManager", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"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": "fieldValidation", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", "type": "string", "uniqueItems": true } @@ -74113,13 +66501,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudget" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -74130,36 +66518,32 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "policy", "kind": "PodDisruptionBudget", - "version": "v1beta1" + "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/policy/v1beta1/poddisruptionbudgets": { + }, "get": { "consumes": [ "*/*" ], - "description": "list or watch objects of kind PodDisruptionBudget", - "operationId": "listPodDisruptionBudgetForAllNamespaces", + "description": "read the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudget", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodDisruptionBudgetList" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74170,110 +66554,58 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "policy", "kind": "PodDisruptionBudget", - "version": "v1beta1" + "version": "v1" } }, "parameters": [ { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/policy/v1beta1/podsecuritypolicies": { - "delete": { + ], + "patch": { "consumes": [ - "*/*" + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" ], - "description": "delete collection of PodSecurityPolicy", - "operationId": "deleteCollectionPodSecurityPolicy", + "description": "partially update the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -74282,67 +66614,25 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", - "name": "fieldSelector", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", "in": "query", - "name": "orphanDependents", + "name": "force", "type": "boolean", "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -74354,110 +66644,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PodSecurityPolicy", - "operationId": "listPodSecurityPolicy", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicyList" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74468,37 +66661,29 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - } + "kind": "PodDisruptionBudget", + "version": "v1" + }, + "x-codegen-request-body-name": "body" }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { + "put": { "consumes": [ "*/*" ], - "description": "create a PodSecurityPolicy", - "operationId": "createPodSecurityPolicy", + "description": "replace the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudget", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, { @@ -74532,19 +66717,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74555,103 +66734,24 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" + "kind": "PodDisruptionBudget", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1beta1/podsecuritypolicies/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PodSecurityPolicy", - "operationId": "deletePodSecurityPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "policy_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, + "/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status": { "get": { "consumes": [ "*/*" ], - "description": "read the specified PodSecurityPolicy", - "operationId": "readPodSecurityPolicy", + "description": "read status of the specified PodDisruptionBudget", + "operationId": "readNamespacedPodDisruptionBudgetStatus", "produces": [ "application/json", "application/yaml", @@ -74661,7 +66761,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74672,24 +66772,32 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" + "kind": "PodDisruptionBudget", + "version": "v1" } }, "parameters": [ { - "description": "name of the PodSecurityPolicy", + "description": "name of the PodDisruptionBudget", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -74705,8 +66813,8 @@ "application/strategic-merge-patch+json", "application/apply-patch+yaml" ], - "description": "partially update the specified PodSecurityPolicy", - "operationId": "patchPodSecurityPolicy", + "description": "partially update status of the specified PodDisruptionBudget", + "operationId": "patchNamespacedPodDisruptionBudgetStatus", "parameters": [ { "in": "body", @@ -74754,13 +66862,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74771,13 +66879,13 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" + "kind": "PodDisruptionBudget", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -74785,15 +66893,15 @@ "consumes": [ "*/*" ], - "description": "replace the specified PodSecurityPolicy", - "operationId": "replacePodSecurityPolicy", + "description": "replace status of the specified PodDisruptionBudget", + "operationId": "replaceNamespacedPodDisruptionBudgetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, { @@ -74827,13 +66935,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodSecurityPolicy" + "$ref": "#/definitions/v1.PodDisruptionBudget" } }, "401": { @@ -74844,18 +66952,55 @@ "https" ], "tags": [ - "policy_v1beta1" + "policy_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "policy", - "kind": "PodSecurityPolicy", - "version": "v1beta1" + "kind": "PodDisruptionBudget", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { + "/apis/policy/v1/poddisruptionbudgets": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodDisruptionBudget", + "operationId": "listPodDisruptionBudgetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PodDisruptionBudgetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "policy_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + }, "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -74892,14 +67037,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -74937,7 +67074,7 @@ } ] }, - "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -74974,14 +67111,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the PodDisruptionBudget", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -75027,7 +67156,7 @@ } ] }, - "/apis/policy/v1beta1/watch/poddisruptionbudgets": { + "/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -75065,79 +67194,21 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/policy/v1beta1/watch/podsecuritypolicies": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the PodDisruptionBudget", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -75175,7 +67246,7 @@ } ] }, - "/apis/policy/v1beta1/watch/podsecuritypolicies/{name}": { + "/apis/policy/v1/watch/poddisruptionbudgets": { "parameters": [ { "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", @@ -75212,14 +67283,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the PodSecurityPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed.", "in": "query", diff --git a/util/src/main/java/io/kubernetes/client/util/conversion/Jobs.java b/util/src/main/java/io/kubernetes/client/util/conversion/Jobs.java index dac982b853..98637a8f2c 100644 --- a/util/src/main/java/io/kubernetes/client/util/conversion/Jobs.java +++ b/util/src/main/java/io/kubernetes/client/util/conversion/Jobs.java @@ -12,12 +12,12 @@ */ package io.kubernetes.client.util.conversion; +import io.kubernetes.client.openapi.models.V1CronJob; +import io.kubernetes.client.openapi.models.V1CronJobSpec; import io.kubernetes.client.openapi.models.V1Job; import io.kubernetes.client.openapi.models.V1JobSpec; import io.kubernetes.client.openapi.models.V1ObjectMeta; import io.kubernetes.client.openapi.models.V1OwnerReference; -import io.kubernetes.client.openapi.models.V1beta1CronJob; -import io.kubernetes.client.openapi.models.V1beta1CronJobSpec; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -32,13 +32,13 @@ public class Jobs { * @param jobName cronJob name * @return V1Job object */ - public static V1Job cronJobToJob(V1beta1CronJob cronJob, String jobName) { + public static V1Job cronJobToJob(V1CronJob cronJob, String jobName) { Map annotations = new HashMap<>(); Map labels = new HashMap<>(); V1JobSpec jobSpec = null; - V1beta1CronJobSpec cronJobSpec = cronJob.getSpec(); + V1CronJobSpec cronJobSpec = cronJob.getSpec(); if (cronJobSpec != null && cronJobSpec.getJobTemplate() != null) { V1ObjectMeta metadata = cronJobSpec.getJobTemplate().getMetadata(); diff --git a/util/src/test/java/io/kubernetes/client/informer/cache/CacheTest.java b/util/src/test/java/io/kubernetes/client/informer/cache/CacheTest.java index ea41c2bc97..7f27760819 100644 --- a/util/src/test/java/io/kubernetes/client/informer/cache/CacheTest.java +++ b/util/src/test/java/io/kubernetes/client/informer/cache/CacheTest.java @@ -121,17 +121,17 @@ public void testCacheStore() { V1Pod pod = ((V1Pod) this.obj); List indexedObjectList = cache.byIndex(mockIndexName, this.index); assertEquals(0, indexedObjectList.size()); - assertEquals(null, pod.getMetadata().getClusterName()); + assertEquals(null, pod.getMetadata().getResourceVersion()); cache.add(this.obj); // replace cached object w/ null value String newClusterName = "test_cluster"; - pod.getMetadata().setClusterName(newClusterName); + pod.getMetadata().setResourceVersion(newClusterName); cache.update(this.obj); assertEquals(1, cache.list().size()); - assertEquals(newClusterName, pod.getMetadata().getClusterName()); + assertEquals(newClusterName, pod.getMetadata().getResourceVersion()); } @Test @@ -162,7 +162,6 @@ public void testAddIndexers() { Cache podCache = new Cache<>(); String nodeIndex = "node-index"; - String clusterIndex = "cluster-index"; Map>> indexers = new HashMap<>(); @@ -172,17 +171,11 @@ public void testAddIndexers() { return Arrays.asList(pod.getSpec().getNodeName()); }); - indexers.put( - clusterIndex, - (V1Pod pod) -> { - return Arrays.asList(pod.getMetadata().getClusterName()); - }); - podCache.addIndexers(indexers); V1Pod testPod = new V1Pod() - .metadata(new V1ObjectMeta().namespace("ns").name("n").clusterName("cluster1")) + .metadata(new V1ObjectMeta().namespace("ns").name("n")) .spec(new V1PodSpec().nodeName("node1")); podCache.add(testPod); @@ -192,8 +185,5 @@ public void testAddIndexers() { List nodeNameIndexedPods = podCache.byIndex(nodeIndex, "node1"); assertEquals(1, nodeNameIndexedPods.size()); - - List clusterNameIndexedPods = podCache.byIndex(clusterIndex, "cluster1"); - assertEquals(1, clusterNameIndexedPods.size()); } }